@equinor/fusion-framework-cli 0.2.3 → 0.3.1
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.
|
@@ -0,0 +1,390 @@
|
|
|
1
|
+
function D0(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in t)){const i=Object.getOwnPropertyDescriptor(n,o);i&&Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerpolicy&&(i.referrerPolicy=o.referrerpolicy),o.crossorigin==="use-credentials"?i.credentials="include":o.crossorigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();function H0(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var j={exports:{}},te={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Ya=Symbol.for("react.element"),F0=Symbol.for("react.portal"),$0=Symbol.for("react.fragment"),z0=Symbol.for("react.strict_mode"),j0=Symbol.for("react.profiler"),B0=Symbol.for("react.provider"),q0=Symbol.for("react.context"),K0=Symbol.for("react.forward_ref"),G0=Symbol.for("react.suspense"),V0=Symbol.for("react.memo"),W0=Symbol.for("react.lazy"),af=Symbol.iterator;function Y0(t){return t===null||typeof t!="object"?null:(t=af&&t[af]||t["@@iterator"],typeof t=="function"?t:null)}var Fg={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$g=Object.assign,zg={};function Ti(t,e,r){this.props=t,this.context=e,this.refs=zg,this.updater=r||Fg}Ti.prototype.isReactComponent={};Ti.prototype.setState=function(t,e){if(typeof t!="object"&&typeof t!="function"&&t!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")};Ti.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function jg(){}jg.prototype=Ti.prototype;function Fd(t,e,r){this.props=t,this.context=e,this.refs=zg,this.updater=r||Fg}var $d=Fd.prototype=new jg;$d.constructor=Fd;$g($d,Ti.prototype);$d.isPureReactComponent=!0;var sf=Array.isArray,Bg=Object.prototype.hasOwnProperty,zd={current:null},qg={key:!0,ref:!0,__self:!0,__source:!0};function Kg(t,e,r){var n,o={},i=null,a=null;if(e!=null)for(n in e.ref!==void 0&&(a=e.ref),e.key!==void 0&&(i=""+e.key),e)Bg.call(e,n)&&!qg.hasOwnProperty(n)&&(o[n]=e[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1<s){for(var c=Array(s),l=0;l<s;l++)c[l]=arguments[l+2];o.children=c}if(t&&t.defaultProps)for(n in s=t.defaultProps,s)o[n]===void 0&&(o[n]=s[n]);return{$$typeof:Ya,type:t,key:i,ref:a,props:o,_owner:zd.current}}function Q0(t,e){return{$$typeof:Ya,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function jd(t){return typeof t=="object"&&t!==null&&t.$$typeof===Ya}function J0(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var cf=/\/+/g;function Rl(t,e){return typeof t=="object"&&t!==null&&t.key!=null?J0(""+t.key):e.toString(36)}function Ms(t,e,r,n,o){var i=typeof t;(i==="undefined"||i==="boolean")&&(t=null);var a=!1;if(t===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(t.$$typeof){case Ya:case F0:a=!0}}if(a)return a=t,o=o(a),t=n===""?"."+Rl(a,0):n,sf(o)?(r="",t!=null&&(r=t.replace(cf,"$&/")+"/"),Ms(o,e,r,"",function(l){return l})):o!=null&&(jd(o)&&(o=Q0(o,r+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(cf,"$&/")+"/")+t)),e.push(o)),1;if(a=0,n=n===""?".":n+":",sf(t))for(var s=0;s<t.length;s++){i=t[s];var c=n+Rl(i,s);a+=Ms(i,e,r,c,o)}else if(c=Y0(t),typeof c=="function")for(t=c.call(t),s=0;!(i=t.next()).done;)i=i.value,c=n+Rl(i,s++),a+=Ms(i,e,r,c,o);else if(i==="object")throw e=String(t),Error("Objects are not valid as a React child (found: "+(e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)+"). If you meant to render a collection of children, use an array instead.");return a}function ls(t,e,r){if(t==null)return t;var n=[],o=0;return Ms(t,n,"","",function(i){return e.call(r,i,o++)}),n}function X0(t){if(t._status===-1){var e=t._result;e=e(),e.then(function(r){(t._status===0||t._status===-1)&&(t._status=1,t._result=r)},function(r){(t._status===0||t._status===-1)&&(t._status=2,t._result=r)}),t._status===-1&&(t._status=0,t._result=e)}if(t._status===1)return t._result.default;throw t._result}var Tt={current:null},Us={transition:null},Z0={ReactCurrentDispatcher:Tt,ReactCurrentBatchConfig:Us,ReactCurrentOwner:zd};te.Children={map:ls,forEach:function(t,e,r){ls(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return ls(t,function(){e++}),e},toArray:function(t){return ls(t,function(e){return e})||[]},only:function(t){if(!jd(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};te.Component=Ti;te.Fragment=$0;te.Profiler=j0;te.PureComponent=Fd;te.StrictMode=z0;te.Suspense=G0;te.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Z0;te.cloneElement=function(t,e,r){if(t==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+t+".");var n=$g({},t.props),o=t.key,i=t.ref,a=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,a=zd.current),e.key!==void 0&&(o=""+e.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(c in e)Bg.call(e,c)&&!qg.hasOwnProperty(c)&&(n[c]=e[c]===void 0&&s!==void 0?s[c]:e[c])}var c=arguments.length-2;if(c===1)n.children=r;else if(1<c){s=Array(c);for(var l=0;l<c;l++)s[l]=arguments[l+2];n.children=s}return{$$typeof:Ya,type:t.type,key:o,ref:i,props:n,_owner:a}};te.createContext=function(t){return t={$$typeof:q0,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:B0,_context:t},t.Consumer=t};te.createElement=Kg;te.createFactory=function(t){var e=Kg.bind(null,t);return e.type=t,e};te.createRef=function(){return{current:null}};te.forwardRef=function(t){return{$$typeof:K0,render:t}};te.isValidElement=jd;te.lazy=function(t){return{$$typeof:W0,_payload:{_status:-1,_result:t},_init:X0}};te.memo=function(t,e){return{$$typeof:V0,type:t,compare:e===void 0?null:e}};te.startTransition=function(t){var e=Us.transition;Us.transition={};try{t()}finally{Us.transition=e}};te.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};te.useCallback=function(t,e){return Tt.current.useCallback(t,e)};te.useContext=function(t){return Tt.current.useContext(t)};te.useDebugValue=function(){};te.useDeferredValue=function(t){return Tt.current.useDeferredValue(t)};te.useEffect=function(t,e){return Tt.current.useEffect(t,e)};te.useId=function(){return Tt.current.useId()};te.useImperativeHandle=function(t,e,r){return Tt.current.useImperativeHandle(t,e,r)};te.useInsertionEffect=function(t,e){return Tt.current.useInsertionEffect(t,e)};te.useLayoutEffect=function(t,e){return Tt.current.useLayoutEffect(t,e)};te.useMemo=function(t,e){return Tt.current.useMemo(t,e)};te.useReducer=function(t,e,r){return Tt.current.useReducer(t,e,r)};te.useRef=function(t){return Tt.current.useRef(t)};te.useState=function(t){return Tt.current.useState(t)};te.useSyncExternalStore=function(t,e,r){return Tt.current.useSyncExternalStore(t,e,r)};te.useTransition=function(){return Tt.current.useTransition()};te.version="18.2.0";(function(t){t.exports=te})(j);const Qa=H0(j.exports),Eu=D0({__proto__:null,default:Qa},[j.exports]);var Cu={},Gg={exports:{}},zt={},Vg={exports:{}},Wg={};/**
|
|
10
|
+
* @license React
|
|
11
|
+
* scheduler.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/(function(t){function e(L,J){var X=L.length;L.push(J);e:for(;0<X;){var Se=X-1>>>1,Le=L[Se];if(0<o(Le,J))L[Se]=J,L[X]=Le,X=Se;else break e}}function r(L){return L.length===0?null:L[0]}function n(L){if(L.length===0)return null;var J=L[0],X=L.pop();if(X!==J){L[0]=X;e:for(var Se=0,Le=L.length,wo=Le>>>1;Se<wo;){var Pr=2*(Se+1)-1,Nr=L[Pr],pr=Pr+1,ln=L[pr];if(0>o(Nr,X))pr<Le&&0>o(ln,Nr)?(L[Se]=ln,L[pr]=X,Se=pr):(L[Se]=Nr,L[Pr]=X,Se=Pr);else if(pr<Le&&0>o(ln,X))L[Se]=ln,L[pr]=X,Se=pr;else break e}}return J}function o(L,J){var X=L.sortIndex-J.sortIndex;return X!==0?X:L.id-J.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;t.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();t.unstable_now=function(){return a.now()-s}}var c=[],l=[],u=1,h=null,d=3,f=!1,m=!1,v=!1,E=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(L){for(var J=r(l);J!==null;){if(J.callback===null)n(l);else if(J.startTime<=L)n(l),J.sortIndex=J.expirationTime,e(c,J);else break;J=r(l)}}function w(L){if(v=!1,y(L),!m)if(r(c)!==null)m=!0,Oi(k);else{var J=r(l);J!==null&&xi(w,J.startTime-L)}}function k(L,J){m=!1,v&&(v=!1,g(O),O=-1),f=!0;var X=d;try{for(y(J),h=r(c);h!==null&&(!(h.expirationTime>J)||L&&!_t());){var Se=h.callback;if(typeof Se=="function"){h.callback=null,d=h.priorityLevel;var Le=Se(h.expirationTime<=J);J=t.unstable_now(),typeof Le=="function"?h.callback=Le:h===r(c)&&n(c),y(J)}else n(c);h=r(c)}if(h!==null)var wo=!0;else{var Pr=r(l);Pr!==null&&xi(w,Pr.startTime-J),wo=!1}return wo}finally{h=null,d=X,f=!1}}var P=!1,M=null,O=-1,se=5,B=-1;function _t(){return!(t.unstable_now()-B<se)}function Ln(){if(M!==null){var L=t.unstable_now();B=L;var J=!0;try{J=M(!0,L)}finally{J?Dn():(P=!1,M=null)}}else P=!1}var Dn;if(typeof p=="function")Dn=function(){p(Ln)};else if(typeof MessageChannel<"u"){var it=new MessageChannel,Hn=it.port2;it.port1.onmessage=Ln,Dn=function(){Hn.postMessage(null)}}else Dn=function(){E(Ln,0)};function Oi(L){M=L,P||(P=!0,Dn())}function xi(L,J){O=E(function(){L(t.unstable_now())},J)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(L){L.callback=null},t.unstable_continueExecution=function(){m||f||(m=!0,Oi(k))},t.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):se=0<L?Math.floor(1e3/L):5},t.unstable_getCurrentPriorityLevel=function(){return d},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(L){switch(d){case 1:case 2:case 3:var J=3;break;default:J=d}var X=d;d=J;try{return L()}finally{d=X}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(L,J){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var X=d;d=L;try{return J()}finally{d=X}},t.unstable_scheduleCallback=function(L,J,X){var Se=t.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?Se+X:Se):X=Se,L){case 1:var Le=-1;break;case 2:Le=250;break;case 5:Le=1073741823;break;case 4:Le=1e4;break;default:Le=5e3}return Le=X+Le,L={id:u++,callback:J,priorityLevel:L,startTime:X,expirationTime:Le,sortIndex:-1},X>Se?(L.sortIndex=X,e(l,L),r(c)===null&&L===r(l)&&(v?(g(O),O=-1):v=!0,xi(w,X-Se))):(L.sortIndex=Le,e(c,L),m||f||(m=!0,Oi(k))),L},t.unstable_shouldYield=_t,t.unstable_wrapCallback=function(L){var J=d;return function(){var X=d;d=J;try{return L.apply(this,arguments)}finally{d=X}}}})(Wg);(function(t){t.exports=Wg})(Vg);/**
|
|
18
|
+
* @license React
|
|
19
|
+
* react-dom.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/var Yg=j.exports,$t=Vg.exports;function b(t){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+t,r=1;r<arguments.length;r++)e+="&args[]="+encodeURIComponent(arguments[r]);return"Minified React error #"+t+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var Qg=new Set,Sa={};function yo(t,e){ui(t,e),ui(t+"Capture",e)}function ui(t,e){for(Sa[t]=e,t=0;t<e.length;t++)Qg.add(e[t])}var Jr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Su=Object.prototype.hasOwnProperty,e_=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,lf={},uf={};function t_(t){return Su.call(uf,t)?!0:Su.call(lf,t)?!1:e_.test(t)?uf[t]=!0:(lf[t]=!0,!1)}function r_(t,e,r,n){if(r!==null&&r.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return n?!1:r!==null?!r.acceptsBooleans:(t=t.toLowerCase().slice(0,5),t!=="data-"&&t!=="aria-");default:return!1}}function n_(t,e,r,n){if(e===null||typeof e>"u"||r_(t,e,r,n))return!0;if(n)return!1;if(r!==null)switch(r.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function bt(t,e,r,n,o,i,a){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=t,this.type=e,this.sanitizeURL=i,this.removeEmptyString=a}var nt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){nt[t]=new bt(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];nt[e]=new bt(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){nt[t]=new bt(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){nt[t]=new bt(t,2,!1,t,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(t){nt[t]=new bt(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){nt[t]=new bt(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){nt[t]=new bt(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){nt[t]=new bt(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){nt[t]=new bt(t,5,!1,t.toLowerCase(),null,!1,!1)});var Bd=/[\-:]([a-z])/g;function qd(t){return t[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(t){var e=t.replace(Bd,qd);nt[e]=new bt(e,1,!1,t,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(t){var e=t.replace(Bd,qd);nt[e]=new bt(e,1,!1,t,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(t){var e=t.replace(Bd,qd);nt[e]=new bt(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){nt[t]=new bt(t,1,!1,t.toLowerCase(),null,!1,!1)});nt.xlinkHref=new bt("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){nt[t]=new bt(t,1,!1,t.toLowerCase(),null,!0,!0)});function Kd(t,e,r,n){var o=nt.hasOwnProperty(e)?nt[e]:null;(o!==null?o.type!==0:n||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(n_(e,r,o,n)&&(r=null),n||o===null?t_(e)&&(r===null?t.removeAttribute(e):t.setAttribute(e,""+r)):o.mustUseProperty?t[o.propertyName]=r===null?o.type===3?!1:"":r:(e=o.attributeName,n=o.attributeNamespace,r===null?t.removeAttribute(e):(o=o.type,r=o===3||o===4&&r===!0?"":""+r,n?t.setAttributeNS(n,e,r):t.setAttribute(e,r))))}var on=Yg.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,us=Symbol.for("react.element"),Uo=Symbol.for("react.portal"),Lo=Symbol.for("react.fragment"),Gd=Symbol.for("react.strict_mode"),Tu=Symbol.for("react.profiler"),Jg=Symbol.for("react.provider"),Xg=Symbol.for("react.context"),Vd=Symbol.for("react.forward_ref"),bu=Symbol.for("react.suspense"),Iu=Symbol.for("react.suspense_list"),Wd=Symbol.for("react.memo"),fn=Symbol.for("react.lazy"),Zg=Symbol.for("react.offscreen"),df=Symbol.iterator;function Ui(t){return t===null||typeof t!="object"?null:(t=df&&t[df]||t["@@iterator"],typeof t=="function"?t:null)}var Pe=Object.assign,Pl;function Yi(t){if(Pl===void 0)try{throw Error()}catch(r){var e=r.stack.trim().match(/\n( *(at )?)/);Pl=e&&e[1]||""}return`
|
|
26
|
+
`+Pl+t}var Nl=!1;function Ol(t,e){if(!t||Nl)return"";Nl=!0;var r=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(l){var n=l}Reflect.construct(t,[],e)}else{try{e.call()}catch(l){n=l}t.call(e.prototype)}else{try{throw Error()}catch(l){n=l}t()}}catch(l){if(l&&n&&typeof l.stack=="string"){for(var o=l.stack.split(`
|
|
27
|
+
`),i=n.stack.split(`
|
|
28
|
+
`),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(a!==1||s!==1)do if(a--,s--,0>s||o[a]!==i[s]){var c=`
|
|
29
|
+
`+o[a].replace(" at new "," at ");return t.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",t.displayName)),c}while(1<=a&&0<=s);break}}}finally{Nl=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?Yi(t):""}function o_(t){switch(t.tag){case 5:return Yi(t.type);case 16:return Yi("Lazy");case 13:return Yi("Suspense");case 19:return Yi("SuspenseList");case 0:case 2:case 15:return t=Ol(t.type,!1),t;case 11:return t=Ol(t.type.render,!1),t;case 1:return t=Ol(t.type,!0),t;default:return""}}function ku(t){if(t==null)return null;if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t;switch(t){case Lo:return"Fragment";case Uo:return"Portal";case Tu:return"Profiler";case Gd:return"StrictMode";case bu:return"Suspense";case Iu:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case Xg:return(t.displayName||"Context")+".Consumer";case Jg:return(t._context.displayName||"Context")+".Provider";case Vd:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Wd:return e=t.displayName||null,e!==null?e:ku(t.type)||"Memo";case fn:e=t._payload,t=t._init;try{return ku(t(e))}catch{}}return null}function i_(t){var e=t.type;switch(t.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return t=e.render,t=t.displayName||t.name||"",e.displayName||(t!==""?"ForwardRef("+t+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return ku(e);case 8:return e===Gd?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Nn(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function em(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function a_(t){var e=em(t)?"checked":"value",r=Object.getOwnPropertyDescriptor(t.constructor.prototype,e),n=""+t[e];if(!t.hasOwnProperty(e)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var o=r.get,i=r.set;return Object.defineProperty(t,e,{configurable:!0,get:function(){return o.call(this)},set:function(a){n=""+a,i.call(this,a)}}),Object.defineProperty(t,e,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(a){n=""+a},stopTracking:function(){t._valueTracker=null,delete t[e]}}}}function ds(t){t._valueTracker||(t._valueTracker=a_(t))}function tm(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=em(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function nc(t){if(t=t||(typeof document<"u"?document:void 0),typeof t>"u")return null;try{return t.activeElement||t.body}catch{return t.body}}function Au(t,e){var r=e.checked;return Pe({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:t._wrapperState.initialChecked})}function hf(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=Nn(e.value!=null?e.value:r),t._wrapperState={initialChecked:n,initialValue:r,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function rm(t,e){e=e.checked,e!=null&&Kd(t,"checked",e,!1)}function Ru(t,e){rm(t,e);var r=Nn(e.value),n=e.type;if(r!=null)n==="number"?(r===0&&t.value===""||t.value!=r)&&(t.value=""+r):t.value!==""+r&&(t.value=""+r);else if(n==="submit"||n==="reset"){t.removeAttribute("value");return}e.hasOwnProperty("value")?Pu(t,e.type,r):e.hasOwnProperty("defaultValue")&&Pu(t,e.type,Nn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function ff(t,e,r){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var n=e.type;if(!(n!=="submit"&&n!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+t._wrapperState.initialValue,r||e===t.value||(t.value=e),t.defaultValue=e}r=t.name,r!==""&&(t.name=""),t.defaultChecked=!!t._wrapperState.initialChecked,r!==""&&(t.name=r)}function Pu(t,e,r){(e!=="number"||nc(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var Qi=Array.isArray;function ei(t,e,r,n){if(t=t.options,e){e={};for(var o=0;o<r.length;o++)e["$"+r[o]]=!0;for(r=0;r<t.length;r++)o=e.hasOwnProperty("$"+t[r].value),t[r].selected!==o&&(t[r].selected=o),o&&n&&(t[r].defaultSelected=!0)}else{for(r=""+Nn(r),e=null,o=0;o<t.length;o++){if(t[o].value===r){t[o].selected=!0,n&&(t[o].defaultSelected=!0);return}e!==null||t[o].disabled||(e=t[o])}e!==null&&(e.selected=!0)}}function Nu(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(b(91));return Pe({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function pf(t,e){var r=e.value;if(r==null){if(r=e.children,e=e.defaultValue,r!=null){if(e!=null)throw Error(b(92));if(Qi(r)){if(1<r.length)throw Error(b(93));r=r[0]}e=r}e==null&&(e=""),r=e}t._wrapperState={initialValue:Nn(r)}}function nm(t,e){var r=Nn(e.value),n=Nn(e.defaultValue);r!=null&&(r=""+r,r!==t.value&&(t.value=r),e.defaultValue==null&&t.defaultValue!==r&&(t.defaultValue=r)),n!=null&&(t.defaultValue=""+n)}function gf(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function om(t){switch(t){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function Ou(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?om(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var hs,im=function(t){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,r,n,o){MSApp.execUnsafeLocalFunction(function(){return t(e,r,n,o)})}:t}(function(t,e){if(t.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in t)t.innerHTML=e;else{for(hs=hs||document.createElement("div"),hs.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=hs.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function Ta(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var la={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},s_=["Webkit","ms","Moz","O"];Object.keys(la).forEach(function(t){s_.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),la[e]=la[t]})});function am(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||la.hasOwnProperty(t)&&la[t]?(""+e).trim():e+"px"}function sm(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=am(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,o):t[r]=o}}var c_=Pe({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function xu(t,e){if(e){if(c_[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(b(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(b(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(b(61))}if(e.style!=null&&typeof e.style!="object")throw Error(b(62))}}function Mu(t,e){if(t.indexOf("-")===-1)return typeof e.is=="string";switch(t){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Uu=null;function Yd(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Lu=null,ti=null,ri=null;function mf(t){if(t=Za(t)){if(typeof Lu!="function")throw Error(b(280));var e=t.stateNode;e&&(e=nl(e),Lu(t.stateNode,t.type,e))}}function cm(t){ti?ri?ri.push(t):ri=[t]:ti=t}function lm(){if(ti){var t=ti,e=ri;if(ri=ti=null,mf(t),e)for(t=0;t<e.length;t++)mf(e[t])}}function um(t,e){return t(e)}function dm(){}var xl=!1;function hm(t,e,r){if(xl)return t(e,r);xl=!0;try{return um(t,e,r)}finally{xl=!1,(ti!==null||ri!==null)&&(dm(),lm())}}function ba(t,e){var r=t.stateNode;if(r===null)return null;var n=nl(r);if(n===null)return null;r=n[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(n=!n.disabled)||(t=t.type,n=!(t==="button"||t==="input"||t==="select"||t==="textarea")),t=!n;break e;default:t=!1}if(t)return null;if(r&&typeof r!="function")throw Error(b(231,e,typeof r));return r}var Du=!1;if(Jr)try{var Li={};Object.defineProperty(Li,"passive",{get:function(){Du=!0}}),window.addEventListener("test",Li,Li),window.removeEventListener("test",Li,Li)}catch{Du=!1}function l_(t,e,r,n,o,i,a,s,c){var l=Array.prototype.slice.call(arguments,3);try{e.apply(r,l)}catch(u){this.onError(u)}}var ua=!1,oc=null,ic=!1,Hu=null,u_={onError:function(t){ua=!0,oc=t}};function d_(t,e,r,n,o,i,a,s,c){ua=!1,oc=null,l_.apply(u_,arguments)}function h_(t,e,r,n,o,i,a,s,c){if(d_.apply(this,arguments),ua){if(ua){var l=oc;ua=!1,oc=null}else throw Error(b(198));ic||(ic=!0,Hu=l)}}function _o(t){var e=t,r=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,(e.flags&4098)!==0&&(r=e.return),t=e.return;while(t)}return e.tag===3?r:null}function fm(t){if(t.tag===13){var e=t.memoizedState;if(e===null&&(t=t.alternate,t!==null&&(e=t.memoizedState)),e!==null)return e.dehydrated}return null}function vf(t){if(_o(t)!==t)throw Error(b(188))}function f_(t){var e=t.alternate;if(!e){if(e=_o(t),e===null)throw Error(b(188));return e!==t?null:t}for(var r=t,n=e;;){var o=r.return;if(o===null)break;var i=o.alternate;if(i===null){if(n=o.return,n!==null){r=n;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===r)return vf(o),t;if(i===n)return vf(o),e;i=i.sibling}throw Error(b(188))}if(r.return!==n.return)r=o,n=i;else{for(var a=!1,s=o.child;s;){if(s===r){a=!0,r=o,n=i;break}if(s===n){a=!0,n=o,r=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===r){a=!0,r=i,n=o;break}if(s===n){a=!0,n=i,r=o;break}s=s.sibling}if(!a)throw Error(b(189))}}if(r.alternate!==n)throw Error(b(190))}if(r.tag!==3)throw Error(b(188));return r.stateNode.current===r?t:e}function pm(t){return t=f_(t),t!==null?gm(t):null}function gm(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=gm(t);if(e!==null)return e;t=t.sibling}return null}var mm=$t.unstable_scheduleCallback,yf=$t.unstable_cancelCallback,p_=$t.unstable_shouldYield,g_=$t.unstable_requestPaint,Me=$t.unstable_now,m_=$t.unstable_getCurrentPriorityLevel,Qd=$t.unstable_ImmediatePriority,vm=$t.unstable_UserBlockingPriority,ac=$t.unstable_NormalPriority,v_=$t.unstable_LowPriority,ym=$t.unstable_IdlePriority,Zc=null,Sr=null;function y_(t){if(Sr&&typeof Sr.onCommitFiberRoot=="function")try{Sr.onCommitFiberRoot(Zc,t,void 0,(t.current.flags&128)===128)}catch{}}var ur=Math.clz32?Math.clz32:E_,__=Math.log,w_=Math.LN2;function E_(t){return t>>>=0,t===0?32:31-(__(t)/w_|0)|0}var fs=64,ps=4194304;function Ji(t){switch(t&-t){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return t&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return t}}function sc(t,e){var r=t.pendingLanes;if(r===0)return 0;var n=0,o=t.suspendedLanes,i=t.pingedLanes,a=r&268435455;if(a!==0){var s=a&~o;s!==0?n=Ji(s):(i&=a,i!==0&&(n=Ji(i)))}else a=r&~o,a!==0?n=Ji(a):i!==0&&(n=Ji(i));if(n===0)return 0;if(e!==0&&e!==n&&(e&o)===0&&(o=n&-n,i=e&-e,o>=i||o===16&&(i&4194240)!==0))return e;if((n&4)!==0&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0<e;)r=31-ur(e),o=1<<r,n|=t[r],e&=~o;return n}function C_(t,e){switch(t){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function S_(t,e){for(var r=t.suspendedLanes,n=t.pingedLanes,o=t.expirationTimes,i=t.pendingLanes;0<i;){var a=31-ur(i),s=1<<a,c=o[a];c===-1?((s&r)===0||(s&n)!==0)&&(o[a]=C_(s,e)):c<=e&&(t.expiredLanes|=s),i&=~s}}function Fu(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function _m(){var t=fs;return fs<<=1,(fs&4194240)===0&&(fs=64),t}function Ml(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function Ja(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-ur(e),t[e]=r}function T_(t,e){var r=t.pendingLanes&~e;t.pendingLanes=e,t.suspendedLanes=0,t.pingedLanes=0,t.expiredLanes&=e,t.mutableReadLanes&=e,t.entangledLanes&=e,e=t.entanglements;var n=t.eventTimes;for(t=t.expirationTimes;0<r;){var o=31-ur(r),i=1<<o;e[o]=0,n[o]=-1,t[o]=-1,r&=~i}}function Jd(t,e){var r=t.entangledLanes|=e;for(t=t.entanglements;r;){var n=31-ur(r),o=1<<n;o&e|t[n]&e&&(t[n]|=e),r&=~o}}var ue=0;function wm(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var Em,Xd,Cm,Sm,Tm,$u=!1,gs=[],Cn=null,Sn=null,Tn=null,Ia=new Map,ka=new Map,vn=[],b_="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function _f(t,e){switch(t){case"focusin":case"focusout":Cn=null;break;case"dragenter":case"dragleave":Sn=null;break;case"mouseover":case"mouseout":Tn=null;break;case"pointerover":case"pointerout":Ia.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":ka.delete(e.pointerId)}}function Di(t,e,r,n,o,i){return t===null||t.nativeEvent!==i?(t={blockedOn:e,domEventName:r,eventSystemFlags:n,nativeEvent:i,targetContainers:[o]},e!==null&&(e=Za(e),e!==null&&Xd(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function I_(t,e,r,n,o){switch(e){case"focusin":return Cn=Di(Cn,t,e,r,n,o),!0;case"dragenter":return Sn=Di(Sn,t,e,r,n,o),!0;case"mouseover":return Tn=Di(Tn,t,e,r,n,o),!0;case"pointerover":var i=o.pointerId;return Ia.set(i,Di(Ia.get(i)||null,t,e,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,ka.set(i,Di(ka.get(i)||null,t,e,r,n,o)),!0}return!1}function bm(t){var e=Vn(t.target);if(e!==null){var r=_o(e);if(r!==null){if(e=r.tag,e===13){if(e=fm(r),e!==null){t.blockedOn=e,Tm(t.priority,function(){Cm(r)});return}}else if(e===3&&r.stateNode.current.memoizedState.isDehydrated){t.blockedOn=r.tag===3?r.stateNode.containerInfo:null;return}}}t.blockedOn=null}function Ls(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var r=zu(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(r===null){r=t.nativeEvent;var n=new r.constructor(r.type,r);Uu=n,r.target.dispatchEvent(n),Uu=null}else return e=Za(r),e!==null&&Xd(e),t.blockedOn=r,!1;e.shift()}return!0}function wf(t,e,r){Ls(t)&&r.delete(e)}function k_(){$u=!1,Cn!==null&&Ls(Cn)&&(Cn=null),Sn!==null&&Ls(Sn)&&(Sn=null),Tn!==null&&Ls(Tn)&&(Tn=null),Ia.forEach(wf),ka.forEach(wf)}function Hi(t,e){t.blockedOn===e&&(t.blockedOn=null,$u||($u=!0,$t.unstable_scheduleCallback($t.unstable_NormalPriority,k_)))}function Aa(t){function e(o){return Hi(o,t)}if(0<gs.length){Hi(gs[0],t);for(var r=1;r<gs.length;r++){var n=gs[r];n.blockedOn===t&&(n.blockedOn=null)}}for(Cn!==null&&Hi(Cn,t),Sn!==null&&Hi(Sn,t),Tn!==null&&Hi(Tn,t),Ia.forEach(e),ka.forEach(e),r=0;r<vn.length;r++)n=vn[r],n.blockedOn===t&&(n.blockedOn=null);for(;0<vn.length&&(r=vn[0],r.blockedOn===null);)bm(r),r.blockedOn===null&&vn.shift()}var ni=on.ReactCurrentBatchConfig,cc=!0;function A_(t,e,r,n){var o=ue,i=ni.transition;ni.transition=null;try{ue=1,Zd(t,e,r,n)}finally{ue=o,ni.transition=i}}function R_(t,e,r,n){var o=ue,i=ni.transition;ni.transition=null;try{ue=4,Zd(t,e,r,n)}finally{ue=o,ni.transition=i}}function Zd(t,e,r,n){if(cc){var o=zu(t,e,r,n);if(o===null)ql(t,e,n,lc,r),_f(t,n);else if(I_(o,t,e,r,n))n.stopPropagation();else if(_f(t,n),e&4&&-1<b_.indexOf(t)){for(;o!==null;){var i=Za(o);if(i!==null&&Em(i),i=zu(t,e,r,n),i===null&&ql(t,e,n,lc,r),i===o)break;o=i}o!==null&&n.stopPropagation()}else ql(t,e,n,null,r)}}var lc=null;function zu(t,e,r,n){if(lc=null,t=Yd(n),t=Vn(t),t!==null)if(e=_o(t),e===null)t=null;else if(r=e.tag,r===13){if(t=fm(e),t!==null)return t;t=null}else if(r===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;t=null}else e!==t&&(t=null);return lc=t,null}function Im(t){switch(t){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(m_()){case Qd:return 1;case vm:return 4;case ac:case v_:return 16;case ym:return 536870912;default:return 16}default:return 16}}var wn=null,eh=null,Ds=null;function km(){if(Ds)return Ds;var t,e=eh,r=e.length,n,o="value"in wn?wn.value:wn.textContent,i=o.length;for(t=0;t<r&&e[t]===o[t];t++);var a=r-t;for(n=1;n<=a&&e[r-n]===o[i-n];n++);return Ds=o.slice(t,1<n?1-n:void 0)}function Hs(t){var e=t.keyCode;return"charCode"in t?(t=t.charCode,t===0&&e===13&&(t=13)):t=e,t===10&&(t=13),32<=t||t===13?t:0}function ms(){return!0}function Ef(){return!1}function jt(t){function e(r,n,o,i,a){this._reactName=r,this._targetInst=o,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var s in t)t.hasOwnProperty(s)&&(r=t[s],this[s]=r?r(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?ms:Ef,this.isPropagationStopped=Ef,this}return Pe(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var r=this.nativeEvent;r&&(r.preventDefault?r.preventDefault():typeof r.returnValue!="unknown"&&(r.returnValue=!1),this.isDefaultPrevented=ms)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=ms)},persist:function(){},isPersistent:ms}),e}var bi={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},th=jt(bi),Xa=Pe({},bi,{view:0,detail:0}),P_=jt(Xa),Ul,Ll,Fi,el=Pe({},Xa,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:rh,button:0,buttons:0,relatedTarget:function(t){return t.relatedTarget===void 0?t.fromElement===t.srcElement?t.toElement:t.fromElement:t.relatedTarget},movementX:function(t){return"movementX"in t?t.movementX:(t!==Fi&&(Fi&&t.type==="mousemove"?(Ul=t.screenX-Fi.screenX,Ll=t.screenY-Fi.screenY):Ll=Ul=0,Fi=t),Ul)},movementY:function(t){return"movementY"in t?t.movementY:Ll}}),Cf=jt(el),N_=Pe({},el,{dataTransfer:0}),O_=jt(N_),x_=Pe({},Xa,{relatedTarget:0}),Dl=jt(x_),M_=Pe({},bi,{animationName:0,elapsedTime:0,pseudoElement:0}),U_=jt(M_),L_=Pe({},bi,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),D_=jt(L_),H_=Pe({},bi,{data:0}),Sf=jt(H_),F_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$_={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},z_={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function j_(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=z_[t])?!!e[t]:!1}function rh(){return j_}var B_=Pe({},Xa,{key:function(t){if(t.key){var e=F_[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Hs(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?$_[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:rh,charCode:function(t){return t.type==="keypress"?Hs(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Hs(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),q_=jt(B_),K_=Pe({},el,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Tf=jt(K_),G_=Pe({},Xa,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:rh}),V_=jt(G_),W_=Pe({},bi,{propertyName:0,elapsedTime:0,pseudoElement:0}),Y_=jt(W_),Q_=Pe({},el,{deltaX:function(t){return"deltaX"in t?t.deltaX:"wheelDeltaX"in t?-t.wheelDeltaX:0},deltaY:function(t){return"deltaY"in t?t.deltaY:"wheelDeltaY"in t?-t.wheelDeltaY:"wheelDelta"in t?-t.wheelDelta:0},deltaZ:0,deltaMode:0}),J_=jt(Q_),X_=[9,13,27,32],nh=Jr&&"CompositionEvent"in window,da=null;Jr&&"documentMode"in document&&(da=document.documentMode);var Z_=Jr&&"TextEvent"in window&&!da,Am=Jr&&(!nh||da&&8<da&&11>=da),bf=String.fromCharCode(32),If=!1;function Rm(t,e){switch(t){case"keyup":return X_.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Pm(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Do=!1;function ew(t,e){switch(t){case"compositionend":return Pm(e);case"keypress":return e.which!==32?null:(If=!0,bf);case"textInput":return t=e.data,t===bf&&If?null:t;default:return null}}function tw(t,e){if(Do)return t==="compositionend"||!nh&&Rm(t,e)?(t=km(),Ds=eh=wn=null,Do=!1,t):null;switch(t){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return Am&&e.locale!=="ko"?null:e.data;default:return null}}var rw={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function kf(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!rw[t.type]:e==="textarea"}function Nm(t,e,r,n){cm(n),e=uc(e,"onChange"),0<e.length&&(r=new th("onChange","change",null,r,n),t.push({event:r,listeners:e}))}var ha=null,Ra=null;function nw(t){jm(t,0)}function tl(t){var e=$o(t);if(tm(e))return t}function ow(t,e){if(t==="change")return e}var Om=!1;if(Jr){var Hl;if(Jr){var Fl="oninput"in document;if(!Fl){var Af=document.createElement("div");Af.setAttribute("oninput","return;"),Fl=typeof Af.oninput=="function"}Hl=Fl}else Hl=!1;Om=Hl&&(!document.documentMode||9<document.documentMode)}function Rf(){ha&&(ha.detachEvent("onpropertychange",xm),Ra=ha=null)}function xm(t){if(t.propertyName==="value"&&tl(Ra)){var e=[];Nm(e,Ra,t,Yd(t)),hm(nw,e)}}function iw(t,e,r){t==="focusin"?(Rf(),ha=e,Ra=r,ha.attachEvent("onpropertychange",xm)):t==="focusout"&&Rf()}function aw(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return tl(Ra)}function sw(t,e){if(t==="click")return tl(e)}function cw(t,e){if(t==="input"||t==="change")return tl(e)}function lw(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var fr=typeof Object.is=="function"?Object.is:lw;function Pa(t,e){if(fr(t,e))return!0;if(typeof t!="object"||t===null||typeof e!="object"||e===null)return!1;var r=Object.keys(t),n=Object.keys(e);if(r.length!==n.length)return!1;for(n=0;n<r.length;n++){var o=r[n];if(!Su.call(e,o)||!fr(t[o],e[o]))return!1}return!0}function Pf(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function Nf(t,e){var r=Pf(t);t=0;for(var n;r;){if(r.nodeType===3){if(n=t+r.textContent.length,t<=e&&n>=e)return{node:r,offset:e-t};t=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=Pf(r)}}function Mm(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Mm(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Um(){for(var t=window,e=nc();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=nc(t.document)}return e}function oh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e&&(e==="input"&&(t.type==="text"||t.type==="search"||t.type==="tel"||t.type==="url"||t.type==="password")||e==="textarea"||t.contentEditable==="true")}function uw(t){var e=Um(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&Mm(r.ownerDocument.documentElement,r)){if(n!==null&&oh(r)){if(e=n.start,t=n.end,t===void 0&&(t=e),"selectionStart"in r)r.selectionStart=e,r.selectionEnd=Math.min(t,r.value.length);else if(t=(e=r.ownerDocument||document)&&e.defaultView||window,t.getSelection){t=t.getSelection();var o=r.textContent.length,i=Math.min(n.start,o);n=n.end===void 0?i:Math.min(n.end,o),!t.extend&&i>n&&(o=n,n=i,i=o),o=Nf(r,i);var a=Nf(r,n);o&&a&&(t.rangeCount!==1||t.anchorNode!==o.node||t.anchorOffset!==o.offset||t.focusNode!==a.node||t.focusOffset!==a.offset)&&(e=e.createRange(),e.setStart(o.node,o.offset),t.removeAllRanges(),i>n?(t.addRange(e),t.extend(a.node,a.offset)):(e.setEnd(a.node,a.offset),t.addRange(e)))}}for(e=[],t=r;t=t.parentNode;)t.nodeType===1&&e.push({element:t,left:t.scrollLeft,top:t.scrollTop});for(typeof r.focus=="function"&&r.focus(),r=0;r<e.length;r++)t=e[r],t.element.scrollLeft=t.left,t.element.scrollTop=t.top}}var dw=Jr&&"documentMode"in document&&11>=document.documentMode,Ho=null,ju=null,fa=null,Bu=!1;function Of(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Bu||Ho==null||Ho!==nc(n)||(n=Ho,"selectionStart"in n&&oh(n)?n={start:n.selectionStart,end:n.selectionEnd}:(n=(n.ownerDocument&&n.ownerDocument.defaultView||window).getSelection(),n={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}),fa&&Pa(fa,n)||(fa=n,n=uc(ju,"onSelect"),0<n.length&&(e=new th("onSelect","select",null,e,r),t.push({event:e,listeners:n}),e.target=Ho)))}function vs(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r}var Fo={animationend:vs("Animation","AnimationEnd"),animationiteration:vs("Animation","AnimationIteration"),animationstart:vs("Animation","AnimationStart"),transitionend:vs("Transition","TransitionEnd")},$l={},Lm={};Jr&&(Lm=document.createElement("div").style,"AnimationEvent"in window||(delete Fo.animationend.animation,delete Fo.animationiteration.animation,delete Fo.animationstart.animation),"TransitionEvent"in window||delete Fo.transitionend.transition);function rl(t){if($l[t])return $l[t];if(!Fo[t])return t;var e=Fo[t],r;for(r in e)if(e.hasOwnProperty(r)&&r in Lm)return $l[t]=e[r];return t}var Dm=rl("animationend"),Hm=rl("animationiteration"),Fm=rl("animationstart"),$m=rl("transitionend"),zm=new Map,xf="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function xn(t,e){zm.set(t,e),yo(e,[t])}for(var zl=0;zl<xf.length;zl++){var jl=xf[zl],hw=jl.toLowerCase(),fw=jl[0].toUpperCase()+jl.slice(1);xn(hw,"on"+fw)}xn(Dm,"onAnimationEnd");xn(Hm,"onAnimationIteration");xn(Fm,"onAnimationStart");xn("dblclick","onDoubleClick");xn("focusin","onFocus");xn("focusout","onBlur");xn($m,"onTransitionEnd");ui("onMouseEnter",["mouseout","mouseover"]);ui("onMouseLeave",["mouseout","mouseover"]);ui("onPointerEnter",["pointerout","pointerover"]);ui("onPointerLeave",["pointerout","pointerover"]);yo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));yo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));yo("onBeforeInput",["compositionend","keypress","textInput","paste"]);yo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));yo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));yo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Xi="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),pw=new Set("cancel close invalid load scroll toggle".split(" ").concat(Xi));function Mf(t,e,r){var n=t.type||"unknown-event";t.currentTarget=r,h_(n,e,void 0,t),t.currentTarget=null}function jm(t,e){e=(e&4)!==0;for(var r=0;r<t.length;r++){var n=t[r],o=n.event;n=n.listeners;e:{var i=void 0;if(e)for(var a=n.length-1;0<=a;a--){var s=n[a],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==i&&o.isPropagationStopped())break e;Mf(o,s,l),i=c}else for(a=0;a<n.length;a++){if(s=n[a],c=s.instance,l=s.currentTarget,s=s.listener,c!==i&&o.isPropagationStopped())break e;Mf(o,s,l),i=c}}}if(ic)throw t=Hu,ic=!1,Hu=null,t}function we(t,e){var r=e[Wu];r===void 0&&(r=e[Wu]=new Set);var n=t+"__bubble";r.has(n)||(Bm(e,t,2,!1),r.add(n))}function Bl(t,e,r){var n=0;e&&(n|=4),Bm(r,t,n,e)}var ys="_reactListening"+Math.random().toString(36).slice(2);function Na(t){if(!t[ys]){t[ys]=!0,Qg.forEach(function(r){r!=="selectionchange"&&(pw.has(r)||Bl(r,!1,t),Bl(r,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[ys]||(e[ys]=!0,Bl("selectionchange",!1,e))}}function Bm(t,e,r,n){switch(Im(e)){case 1:var o=A_;break;case 4:o=R_;break;default:o=Zd}r=o.bind(null,e,r,t),o=void 0,!Du||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(o=!0),n?o!==void 0?t.addEventListener(e,r,{capture:!0,passive:o}):t.addEventListener(e,r,!0):o!==void 0?t.addEventListener(e,r,{passive:o}):t.addEventListener(e,r,!1)}function ql(t,e,r,n,o){var i=n;if((e&1)===0&&(e&2)===0&&n!==null)e:for(;;){if(n===null)return;var a=n.tag;if(a===3||a===4){var s=n.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(a===4)for(a=n.return;a!==null;){var c=a.tag;if((c===3||c===4)&&(c=a.stateNode.containerInfo,c===o||c.nodeType===8&&c.parentNode===o))return;a=a.return}for(;s!==null;){if(a=Vn(s),a===null)return;if(c=a.tag,c===5||c===6){n=i=a;continue e}s=s.parentNode}}n=n.return}hm(function(){var l=i,u=Yd(r),h=[];e:{var d=zm.get(t);if(d!==void 0){var f=th,m=t;switch(t){case"keypress":if(Hs(r)===0)break e;case"keydown":case"keyup":f=q_;break;case"focusin":m="focus",f=Dl;break;case"focusout":m="blur",f=Dl;break;case"beforeblur":case"afterblur":f=Dl;break;case"click":if(r.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":f=Cf;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":f=O_;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":f=V_;break;case Dm:case Hm:case Fm:f=U_;break;case $m:f=Y_;break;case"scroll":f=P_;break;case"wheel":f=J_;break;case"copy":case"cut":case"paste":f=D_;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":f=Tf}var v=(e&4)!==0,E=!v&&t==="scroll",g=v?d!==null?d+"Capture":null:d;v=[];for(var p=l,y;p!==null;){y=p;var w=y.stateNode;if(y.tag===5&&w!==null&&(y=w,g!==null&&(w=ba(p,g),w!=null&&v.push(Oa(p,w,y)))),E)break;p=p.return}0<v.length&&(d=new f(d,m,null,r,u),h.push({event:d,listeners:v}))}}if((e&7)===0){e:{if(d=t==="mouseover"||t==="pointerover",f=t==="mouseout"||t==="pointerout",d&&r!==Uu&&(m=r.relatedTarget||r.fromElement)&&(Vn(m)||m[Xr]))break e;if((f||d)&&(d=u.window===u?u:(d=u.ownerDocument)?d.defaultView||d.parentWindow:window,f?(m=r.relatedTarget||r.toElement,f=l,m=m?Vn(m):null,m!==null&&(E=_o(m),m!==E||m.tag!==5&&m.tag!==6)&&(m=null)):(f=null,m=l),f!==m)){if(v=Cf,w="onMouseLeave",g="onMouseEnter",p="mouse",(t==="pointerout"||t==="pointerover")&&(v=Tf,w="onPointerLeave",g="onPointerEnter",p="pointer"),E=f==null?d:$o(f),y=m==null?d:$o(m),d=new v(w,p+"leave",f,r,u),d.target=E,d.relatedTarget=y,w=null,Vn(u)===l&&(v=new v(g,p+"enter",m,r,u),v.target=y,v.relatedTarget=E,w=v),E=w,f&&m)t:{for(v=f,g=m,p=0,y=v;y;y=To(y))p++;for(y=0,w=g;w;w=To(w))y++;for(;0<p-y;)v=To(v),p--;for(;0<y-p;)g=To(g),y--;for(;p--;){if(v===g||g!==null&&v===g.alternate)break t;v=To(v),g=To(g)}v=null}else v=null;f!==null&&Uf(h,d,f,v,!1),m!==null&&E!==null&&Uf(h,E,m,v,!0)}}e:{if(d=l?$o(l):window,f=d.nodeName&&d.nodeName.toLowerCase(),f==="select"||f==="input"&&d.type==="file")var k=ow;else if(kf(d))if(Om)k=cw;else{k=aw;var P=iw}else(f=d.nodeName)&&f.toLowerCase()==="input"&&(d.type==="checkbox"||d.type==="radio")&&(k=sw);if(k&&(k=k(t,l))){Nm(h,k,r,u);break e}P&&P(t,d,l),t==="focusout"&&(P=d._wrapperState)&&P.controlled&&d.type==="number"&&Pu(d,"number",d.value)}switch(P=l?$o(l):window,t){case"focusin":(kf(P)||P.contentEditable==="true")&&(Ho=P,ju=l,fa=null);break;case"focusout":fa=ju=Ho=null;break;case"mousedown":Bu=!0;break;case"contextmenu":case"mouseup":case"dragend":Bu=!1,Of(h,r,u);break;case"selectionchange":if(dw)break;case"keydown":case"keyup":Of(h,r,u)}var M;if(nh)e:{switch(t){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else Do?Rm(t,r)&&(O="onCompositionEnd"):t==="keydown"&&r.keyCode===229&&(O="onCompositionStart");O&&(Am&&r.locale!=="ko"&&(Do||O!=="onCompositionStart"?O==="onCompositionEnd"&&Do&&(M=km()):(wn=u,eh="value"in wn?wn.value:wn.textContent,Do=!0)),P=uc(l,O),0<P.length&&(O=new Sf(O,t,null,r,u),h.push({event:O,listeners:P}),M?O.data=M:(M=Pm(r),M!==null&&(O.data=M)))),(M=Z_?ew(t,r):tw(t,r))&&(l=uc(l,"onBeforeInput"),0<l.length&&(u=new Sf("onBeforeInput","beforeinput",null,r,u),h.push({event:u,listeners:l}),u.data=M))}jm(h,e)})}function Oa(t,e,r){return{instance:t,listener:e,currentTarget:r}}function uc(t,e){for(var r=e+"Capture",n=[];t!==null;){var o=t,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=ba(t,r),i!=null&&n.unshift(Oa(t,i,o)),i=ba(t,e),i!=null&&n.push(Oa(t,i,o))),t=t.return}return n}function To(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function Uf(t,e,r,n,o){for(var i=e._reactName,a=[];r!==null&&r!==n;){var s=r,c=s.alternate,l=s.stateNode;if(c!==null&&c===n)break;s.tag===5&&l!==null&&(s=l,o?(c=ba(r,i),c!=null&&a.unshift(Oa(r,c,s))):o||(c=ba(r,i),c!=null&&a.push(Oa(r,c,s)))),r=r.return}a.length!==0&&t.push({event:e,listeners:a})}var gw=/\r\n?/g,mw=/\u0000|\uFFFD/g;function Lf(t){return(typeof t=="string"?t:""+t).replace(gw,`
|
|
30
|
+
`).replace(mw,"")}function _s(t,e,r){if(e=Lf(e),Lf(t)!==e&&r)throw Error(b(425))}function dc(){}var qu=null,Ku=null;function Gu(t,e){return t==="textarea"||t==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var Vu=typeof setTimeout=="function"?setTimeout:void 0,vw=typeof clearTimeout=="function"?clearTimeout:void 0,Df=typeof Promise=="function"?Promise:void 0,yw=typeof queueMicrotask=="function"?queueMicrotask:typeof Df<"u"?function(t){return Df.resolve(null).then(t).catch(_w)}:Vu;function _w(t){setTimeout(function(){throw t})}function Kl(t,e){var r=e,n=0;do{var o=r.nextSibling;if(t.removeChild(r),o&&o.nodeType===8)if(r=o.data,r==="/$"){if(n===0){t.removeChild(o),Aa(e);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=o}while(r);Aa(e)}function bn(t){for(;t!=null;t=t.nextSibling){var e=t.nodeType;if(e===1||e===3)break;if(e===8){if(e=t.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return t}function Hf(t){t=t.previousSibling;for(var e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="$"||r==="$!"||r==="$?"){if(e===0)return t;e--}else r==="/$"&&e++}t=t.previousSibling}return null}var Ii=Math.random().toString(36).slice(2),wr="__reactFiber$"+Ii,xa="__reactProps$"+Ii,Xr="__reactContainer$"+Ii,Wu="__reactEvents$"+Ii,ww="__reactListeners$"+Ii,Ew="__reactHandles$"+Ii;function Vn(t){var e=t[wr];if(e)return e;for(var r=t.parentNode;r;){if(e=r[Xr]||r[wr]){if(r=e.alternate,e.child!==null||r!==null&&r.child!==null)for(t=Hf(t);t!==null;){if(r=t[wr])return r;t=Hf(t)}return e}t=r,r=t.parentNode}return null}function Za(t){return t=t[wr]||t[Xr],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function $o(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(b(33))}function nl(t){return t[xa]||null}var Yu=[],zo=-1;function Mn(t){return{current:t}}function Ce(t){0>zo||(t.current=Yu[zo],Yu[zo]=null,zo--)}function _e(t,e){zo++,Yu[zo]=t.current,t.current=e}var On={},vt=Mn(On),Nt=Mn(!1),ao=On;function di(t,e){var r=t.type.contextTypes;if(!r)return On;var n=t.stateNode;if(n&&n.__reactInternalMemoizedUnmaskedChildContext===e)return n.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in r)o[i]=e[i];return n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=e,t.__reactInternalMemoizedMaskedChildContext=o),o}function Ot(t){return t=t.childContextTypes,t!=null}function hc(){Ce(Nt),Ce(vt)}function Ff(t,e,r){if(vt.current!==On)throw Error(b(168));_e(vt,e),_e(Nt,r)}function qm(t,e,r){var n=t.stateNode;if(e=e.childContextTypes,typeof n.getChildContext!="function")return r;n=n.getChildContext();for(var o in n)if(!(o in e))throw Error(b(108,i_(t)||"Unknown",o));return Pe({},r,n)}function fc(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||On,ao=vt.current,_e(vt,t),_e(Nt,Nt.current),!0}function $f(t,e,r){var n=t.stateNode;if(!n)throw Error(b(169));r?(t=qm(t,e,ao),n.__reactInternalMemoizedMergedChildContext=t,Ce(Nt),Ce(vt),_e(vt,t)):Ce(Nt),_e(Nt,r)}var $r=null,ol=!1,Gl=!1;function Km(t){$r===null?$r=[t]:$r.push(t)}function Cw(t){ol=!0,Km(t)}function Un(){if(!Gl&&$r!==null){Gl=!0;var t=0,e=ue;try{var r=$r;for(ue=1;t<r.length;t++){var n=r[t];do n=n(!0);while(n!==null)}$r=null,ol=!1}catch(o){throw $r!==null&&($r=$r.slice(t+1)),mm(Qd,Un),o}finally{ue=e,Gl=!1}}return null}var jo=[],Bo=0,pc=null,gc=0,Gt=[],Vt=0,so=null,zr=1,jr="";function jn(t,e){jo[Bo++]=gc,jo[Bo++]=pc,pc=t,gc=e}function Gm(t,e,r){Gt[Vt++]=zr,Gt[Vt++]=jr,Gt[Vt++]=so,so=t;var n=zr;t=jr;var o=32-ur(n)-1;n&=~(1<<o),r+=1;var i=32-ur(e)+o;if(30<i){var a=o-o%5;i=(n&(1<<a)-1).toString(32),n>>=a,o-=a,zr=1<<32-ur(e)+o|r<<o|n,jr=i+t}else zr=1<<i|r<<o|n,jr=t}function ih(t){t.return!==null&&(jn(t,1),Gm(t,1,0))}function ah(t){for(;t===pc;)pc=jo[--Bo],jo[Bo]=null,gc=jo[--Bo],jo[Bo]=null;for(;t===so;)so=Gt[--Vt],Gt[Vt]=null,jr=Gt[--Vt],Gt[Vt]=null,zr=Gt[--Vt],Gt[Vt]=null}var Ht=null,Lt=null,be=!1,sr=null;function Vm(t,e){var r=Yt(5,null,null,0);r.elementType="DELETED",r.stateNode=e,r.return=t,e=t.deletions,e===null?(t.deletions=[r],t.flags|=16):e.push(r)}function zf(t,e){switch(t.tag){case 5:var r=t.type;return e=e.nodeType!==1||r.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(t.stateNode=e,Ht=t,Lt=bn(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,Ht=t,Lt=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(r=so!==null?{id:zr,overflow:jr}:null,t.memoizedState={dehydrated:e,treeContext:r,retryLane:1073741824},r=Yt(18,null,null,0),r.stateNode=e,r.return=t,t.child=r,Ht=t,Lt=null,!0):!1;default:return!1}}function Qu(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Ju(t){if(be){var e=Lt;if(e){var r=e;if(!zf(t,e)){if(Qu(t))throw Error(b(418));e=bn(r.nextSibling);var n=Ht;e&&zf(t,e)?Vm(n,r):(t.flags=t.flags&-4097|2,be=!1,Ht=t)}}else{if(Qu(t))throw Error(b(418));t.flags=t.flags&-4097|2,be=!1,Ht=t}}}function jf(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Ht=t}function ws(t){if(t!==Ht)return!1;if(!be)return jf(t),be=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Gu(t.type,t.memoizedProps)),e&&(e=Lt)){if(Qu(t))throw Wm(),Error(b(418));for(;e;)Vm(t,e),e=bn(e.nextSibling)}if(jf(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(b(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="/$"){if(e===0){Lt=bn(t.nextSibling);break e}e--}else r!=="$"&&r!=="$!"&&r!=="$?"||e++}t=t.nextSibling}Lt=null}}else Lt=Ht?bn(t.stateNode.nextSibling):null;return!0}function Wm(){for(var t=Lt;t;)t=bn(t.nextSibling)}function hi(){Lt=Ht=null,be=!1}function sh(t){sr===null?sr=[t]:sr.push(t)}var Sw=on.ReactCurrentBatchConfig;function ir(t,e){if(t&&t.defaultProps){e=Pe({},e),t=t.defaultProps;for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e}return e}var mc=Mn(null),vc=null,qo=null,ch=null;function lh(){ch=qo=vc=null}function uh(t){var e=mc.current;Ce(mc),t._currentValue=e}function Xu(t,e,r){for(;t!==null;){var n=t.alternate;if((t.childLanes&e)!==e?(t.childLanes|=e,n!==null&&(n.childLanes|=e)):n!==null&&(n.childLanes&e)!==e&&(n.childLanes|=e),t===r)break;t=t.return}}function oi(t,e){vc=t,ch=qo=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&e)!==0&&(Pt=!0),t.firstContext=null)}function Xt(t){var e=t._currentValue;if(ch!==t)if(t={context:t,memoizedValue:e,next:null},qo===null){if(vc===null)throw Error(b(308));qo=t,vc.dependencies={lanes:0,firstContext:t}}else qo=qo.next=t;return e}var Wn=null;function dh(t){Wn===null?Wn=[t]:Wn.push(t)}function Ym(t,e,r,n){var o=e.interleaved;return o===null?(r.next=r,dh(e)):(r.next=o.next,o.next=r),e.interleaved=r,Zr(t,n)}function Zr(t,e){t.lanes|=e;var r=t.alternate;for(r!==null&&(r.lanes|=e),r=t,t=t.return;t!==null;)t.childLanes|=e,r=t.alternate,r!==null&&(r.childLanes|=e),r=t,t=t.return;return r.tag===3?r.stateNode:null}var pn=!1;function hh(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Qm(t,e){t=t.updateQueue,e.updateQueue===t&&(e.updateQueue={baseState:t.baseState,firstBaseUpdate:t.firstBaseUpdate,lastBaseUpdate:t.lastBaseUpdate,shared:t.shared,effects:t.effects})}function Kr(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function In(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(ne&2)!==0){var o=n.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),n.pending=e,Zr(t,r)}return o=n.interleaved,o===null?(e.next=e,dh(n)):(e.next=o.next,o.next=e),n.interleaved=e,Zr(t,r)}function Fs(t,e,r){if(e=e.updateQueue,e!==null&&(e=e.shared,(r&4194240)!==0)){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Jd(t,r)}}function Bf(t,e){var r=t.updateQueue,n=t.alternate;if(n!==null&&(n=n.updateQueue,r===n)){var o=null,i=null;if(r=r.firstBaseUpdate,r!==null){do{var a={eventTime:r.eventTime,lane:r.lane,tag:r.tag,payload:r.payload,callback:r.callback,next:null};i===null?o=i=a:i=i.next=a,r=r.next}while(r!==null);i===null?o=i=e:i=i.next=e}else o=i=e;r={baseState:n.baseState,firstBaseUpdate:o,lastBaseUpdate:i,shared:n.shared,effects:n.effects},t.updateQueue=r;return}t=r.lastBaseUpdate,t===null?r.firstBaseUpdate=e:t.next=e,r.lastBaseUpdate=e}function yc(t,e,r,n){var o=t.updateQueue;pn=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var c=s,l=c.next;c.next=null,a===null?i=l:a.next=l,a=c;var u=t.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(i!==null){var h=o.baseState;a=0,u=l=c=null,s=i;do{var d=s.lane,f=s.eventTime;if((n&d)===d){u!==null&&(u=u.next={eventTime:f,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=t,v=s;switch(d=e,f=r,v.tag){case 1:if(m=v.payload,typeof m=="function"){h=m.call(f,h,d);break e}h=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=v.payload,d=typeof m=="function"?m.call(f,h,d):m,d==null)break e;h=Pe({},h,d);break e;case 2:pn=!0}}s.callback!==null&&s.lane!==0&&(t.flags|=64,d=o.effects,d===null?o.effects=[s]:d.push(s))}else f={eventTime:f,lane:d,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=f,c=h):u=u.next=f,a|=d;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;d=s,s=d.next,d.next=null,o.lastBaseUpdate=d,o.shared.pending=null}}while(1);if(u===null&&(c=h),o.baseState=c,o.firstBaseUpdate=l,o.lastBaseUpdate=u,e=o.shared.interleaved,e!==null){o=e;do a|=o.lane,o=o.next;while(o!==e)}else i===null&&(o.shared.lanes=0);lo|=a,t.lanes=a,t.memoizedState=h}}function qf(t,e,r){if(t=e.effects,e.effects=null,t!==null)for(e=0;e<t.length;e++){var n=t[e],o=n.callback;if(o!==null){if(n.callback=null,n=r,typeof o!="function")throw Error(b(191,o));o.call(n)}}}var Jm=new Yg.Component().refs;function Zu(t,e,r,n){e=t.memoizedState,r=r(n,e),r=r==null?e:Pe({},e,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var il={isMounted:function(t){return(t=t._reactInternals)?_o(t)===t:!1},enqueueSetState:function(t,e,r){t=t._reactInternals;var n=St(),o=An(t),i=Kr(n,o);i.payload=e,r!=null&&(i.callback=r),e=In(t,i,o),e!==null&&(dr(e,t,o,n),Fs(e,t,o))},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=St(),o=An(t),i=Kr(n,o);i.tag=1,i.payload=e,r!=null&&(i.callback=r),e=In(t,i,o),e!==null&&(dr(e,t,o,n),Fs(e,t,o))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=St(),n=An(t),o=Kr(r,n);o.tag=2,e!=null&&(o.callback=e),e=In(t,o,n),e!==null&&(dr(e,t,n,r),Fs(e,t,n))}};function Kf(t,e,r,n,o,i,a){return t=t.stateNode,typeof t.shouldComponentUpdate=="function"?t.shouldComponentUpdate(n,i,a):e.prototype&&e.prototype.isPureReactComponent?!Pa(r,n)||!Pa(o,i):!0}function Xm(t,e,r){var n=!1,o=On,i=e.contextType;return typeof i=="object"&&i!==null?i=Xt(i):(o=Ot(e)?ao:vt.current,n=e.contextTypes,i=(n=n!=null)?di(t,o):On),e=new e(r,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=il,t.stateNode=e,e._reactInternals=t,n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=o,t.__reactInternalMemoizedMaskedChildContext=i),e}function Gf(t,e,r,n){t=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(r,n),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(r,n),e.state!==t&&il.enqueueReplaceState(e,e.state,null)}function ed(t,e,r,n){var o=t.stateNode;o.props=r,o.state=t.memoizedState,o.refs=Jm,hh(t);var i=e.contextType;typeof i=="object"&&i!==null?o.context=Xt(i):(i=Ot(e)?ao:vt.current,o.context=di(t,i)),o.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(Zu(t,e,i,r),o.state=t.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof o.getSnapshotBeforeUpdate=="function"||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(e=o.state,typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount(),e!==o.state&&il.enqueueReplaceState(o,o.state,null),yc(t,r,o,n),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308)}function $i(t,e,r){if(t=r.ref,t!==null&&typeof t!="function"&&typeof t!="object"){if(r._owner){if(r=r._owner,r){if(r.tag!==1)throw Error(b(309));var n=r.stateNode}if(!n)throw Error(b(147,t));var o=n,i=""+t;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===i?e.ref:(e=function(a){var s=o.refs;s===Jm&&(s=o.refs={}),a===null?delete s[i]:s[i]=a},e._stringRef=i,e)}if(typeof t!="string")throw Error(b(284));if(!r._owner)throw Error(b(290,t))}return t}function Es(t,e){throw t=Object.prototype.toString.call(e),Error(b(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Vf(t){var e=t._init;return e(t._payload)}function Zm(t){function e(g,p){if(t){var y=g.deletions;y===null?(g.deletions=[p],g.flags|=16):y.push(p)}}function r(g,p){if(!t)return null;for(;p!==null;)e(g,p),p=p.sibling;return null}function n(g,p){for(g=new Map;p!==null;)p.key!==null?g.set(p.key,p):g.set(p.index,p),p=p.sibling;return g}function o(g,p){return g=Rn(g,p),g.index=0,g.sibling=null,g}function i(g,p,y){return g.index=y,t?(y=g.alternate,y!==null?(y=y.index,y<p?(g.flags|=2,p):y):(g.flags|=2,p)):(g.flags|=1048576,p)}function a(g){return t&&g.alternate===null&&(g.flags|=2),g}function s(g,p,y,w){return p===null||p.tag!==6?(p=Zl(y,g.mode,w),p.return=g,p):(p=o(p,y),p.return=g,p)}function c(g,p,y,w){var k=y.type;return k===Lo?u(g,p,y.props.children,w,y.key):p!==null&&(p.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===fn&&Vf(k)===p.type)?(w=o(p,y.props),w.ref=$i(g,p,y),w.return=g,w):(w=Ks(y.type,y.key,y.props,null,g.mode,w),w.ref=$i(g,p,y),w.return=g,w)}function l(g,p,y,w){return p===null||p.tag!==4||p.stateNode.containerInfo!==y.containerInfo||p.stateNode.implementation!==y.implementation?(p=eu(y,g.mode,w),p.return=g,p):(p=o(p,y.children||[]),p.return=g,p)}function u(g,p,y,w,k){return p===null||p.tag!==7?(p=eo(y,g.mode,w,k),p.return=g,p):(p=o(p,y),p.return=g,p)}function h(g,p,y){if(typeof p=="string"&&p!==""||typeof p=="number")return p=Zl(""+p,g.mode,y),p.return=g,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case us:return y=Ks(p.type,p.key,p.props,null,g.mode,y),y.ref=$i(g,null,p),y.return=g,y;case Uo:return p=eu(p,g.mode,y),p.return=g,p;case fn:var w=p._init;return h(g,w(p._payload),y)}if(Qi(p)||Ui(p))return p=eo(p,g.mode,y,null),p.return=g,p;Es(g,p)}return null}function d(g,p,y,w){var k=p!==null?p.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return k!==null?null:s(g,p,""+y,w);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case us:return y.key===k?c(g,p,y,w):null;case Uo:return y.key===k?l(g,p,y,w):null;case fn:return k=y._init,d(g,p,k(y._payload),w)}if(Qi(y)||Ui(y))return k!==null?null:u(g,p,y,w,null);Es(g,y)}return null}function f(g,p,y,w,k){if(typeof w=="string"&&w!==""||typeof w=="number")return g=g.get(y)||null,s(p,g,""+w,k);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case us:return g=g.get(w.key===null?y:w.key)||null,c(p,g,w,k);case Uo:return g=g.get(w.key===null?y:w.key)||null,l(p,g,w,k);case fn:var P=w._init;return f(g,p,y,P(w._payload),k)}if(Qi(w)||Ui(w))return g=g.get(y)||null,u(p,g,w,k,null);Es(p,w)}return null}function m(g,p,y,w){for(var k=null,P=null,M=p,O=p=0,se=null;M!==null&&O<y.length;O++){M.index>O?(se=M,M=null):se=M.sibling;var B=d(g,M,y[O],w);if(B===null){M===null&&(M=se);break}t&&M&&B.alternate===null&&e(g,M),p=i(B,p,O),P===null?k=B:P.sibling=B,P=B,M=se}if(O===y.length)return r(g,M),be&&jn(g,O),k;if(M===null){for(;O<y.length;O++)M=h(g,y[O],w),M!==null&&(p=i(M,p,O),P===null?k=M:P.sibling=M,P=M);return be&&jn(g,O),k}for(M=n(g,M);O<y.length;O++)se=f(M,g,O,y[O],w),se!==null&&(t&&se.alternate!==null&&M.delete(se.key===null?O:se.key),p=i(se,p,O),P===null?k=se:P.sibling=se,P=se);return t&&M.forEach(function(_t){return e(g,_t)}),be&&jn(g,O),k}function v(g,p,y,w){var k=Ui(y);if(typeof k!="function")throw Error(b(150));if(y=k.call(y),y==null)throw Error(b(151));for(var P=k=null,M=p,O=p=0,se=null,B=y.next();M!==null&&!B.done;O++,B=y.next()){M.index>O?(se=M,M=null):se=M.sibling;var _t=d(g,M,B.value,w);if(_t===null){M===null&&(M=se);break}t&&M&&_t.alternate===null&&e(g,M),p=i(_t,p,O),P===null?k=_t:P.sibling=_t,P=_t,M=se}if(B.done)return r(g,M),be&&jn(g,O),k;if(M===null){for(;!B.done;O++,B=y.next())B=h(g,B.value,w),B!==null&&(p=i(B,p,O),P===null?k=B:P.sibling=B,P=B);return be&&jn(g,O),k}for(M=n(g,M);!B.done;O++,B=y.next())B=f(M,g,O,B.value,w),B!==null&&(t&&B.alternate!==null&&M.delete(B.key===null?O:B.key),p=i(B,p,O),P===null?k=B:P.sibling=B,P=B);return t&&M.forEach(function(Ln){return e(g,Ln)}),be&&jn(g,O),k}function E(g,p,y,w){if(typeof y=="object"&&y!==null&&y.type===Lo&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case us:e:{for(var k=y.key,P=p;P!==null;){if(P.key===k){if(k=y.type,k===Lo){if(P.tag===7){r(g,P.sibling),p=o(P,y.props.children),p.return=g,g=p;break e}}else if(P.elementType===k||typeof k=="object"&&k!==null&&k.$$typeof===fn&&Vf(k)===P.type){r(g,P.sibling),p=o(P,y.props),p.ref=$i(g,P,y),p.return=g,g=p;break e}r(g,P);break}else e(g,P);P=P.sibling}y.type===Lo?(p=eo(y.props.children,g.mode,w,y.key),p.return=g,g=p):(w=Ks(y.type,y.key,y.props,null,g.mode,w),w.ref=$i(g,p,y),w.return=g,g=w)}return a(g);case Uo:e:{for(P=y.key;p!==null;){if(p.key===P)if(p.tag===4&&p.stateNode.containerInfo===y.containerInfo&&p.stateNode.implementation===y.implementation){r(g,p.sibling),p=o(p,y.children||[]),p.return=g,g=p;break e}else{r(g,p);break}else e(g,p);p=p.sibling}p=eu(y,g.mode,w),p.return=g,g=p}return a(g);case fn:return P=y._init,E(g,p,P(y._payload),w)}if(Qi(y))return m(g,p,y,w);if(Ui(y))return v(g,p,y,w);Es(g,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,p!==null&&p.tag===6?(r(g,p.sibling),p=o(p,y),p.return=g,g=p):(r(g,p),p=Zl(y,g.mode,w),p.return=g,g=p),a(g)):r(g,p)}return E}var fi=Zm(!0),ev=Zm(!1),es={},Tr=Mn(es),Ma=Mn(es),Ua=Mn(es);function Yn(t){if(t===es)throw Error(b(174));return t}function fh(t,e){switch(_e(Ua,e),_e(Ma,t),_e(Tr,es),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Ou(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Ou(e,t)}Ce(Tr),_e(Tr,e)}function pi(){Ce(Tr),Ce(Ma),Ce(Ua)}function tv(t){Yn(Ua.current);var e=Yn(Tr.current),r=Ou(e,t.type);e!==r&&(_e(Ma,t),_e(Tr,r))}function ph(t){Ma.current===t&&(Ce(Tr),Ce(Ma))}var Ae=Mn(0);function _c(t){for(var e=t;e!==null;){if(e.tag===13){var r=e.memoizedState;if(r!==null&&(r=r.dehydrated,r===null||r.data==="$?"||r.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if((e.flags&128)!==0)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var Vl=[];function gh(){for(var t=0;t<Vl.length;t++)Vl[t]._workInProgressVersionPrimary=null;Vl.length=0}var $s=on.ReactCurrentDispatcher,Wl=on.ReactCurrentBatchConfig,co=0,Re=null,$e=null,qe=null,wc=!1,pa=!1,La=0,Tw=0;function ct(){throw Error(b(321))}function mh(t,e){if(e===null)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!fr(t[r],e[r]))return!1;return!0}function vh(t,e,r,n,o,i){if(co=i,Re=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,$s.current=t===null||t.memoizedState===null?Aw:Rw,t=r(n,o),pa){i=0;do{if(pa=!1,La=0,25<=i)throw Error(b(301));i+=1,qe=$e=null,e.updateQueue=null,$s.current=Pw,t=r(n,o)}while(pa)}if($s.current=Ec,e=$e!==null&&$e.next!==null,co=0,qe=$e=Re=null,wc=!1,e)throw Error(b(300));return t}function yh(){var t=La!==0;return La=0,t}function yr(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return qe===null?Re.memoizedState=qe=t:qe=qe.next=t,qe}function Zt(){if($e===null){var t=Re.alternate;t=t!==null?t.memoizedState:null}else t=$e.next;var e=qe===null?Re.memoizedState:qe.next;if(e!==null)qe=e,$e=t;else{if(t===null)throw Error(b(310));$e=t,t={memoizedState:$e.memoizedState,baseState:$e.baseState,baseQueue:$e.baseQueue,queue:$e.queue,next:null},qe===null?Re.memoizedState=qe=t:qe=qe.next=t}return qe}function Da(t,e){return typeof e=="function"?e(t):e}function Yl(t){var e=Zt(),r=e.queue;if(r===null)throw Error(b(311));r.lastRenderedReducer=t;var n=$e,o=n.baseQueue,i=r.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}n.baseQueue=o=i,r.pending=null}if(o!==null){i=o.next,n=n.baseState;var s=a=null,c=null,l=i;do{var u=l.lane;if((co&u)===u)c!==null&&(c=c.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),n=l.hasEagerState?l.eagerState:t(n,l.action);else{var h={lane:u,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};c===null?(s=c=h,a=n):c=c.next=h,Re.lanes|=u,lo|=u}l=l.next}while(l!==null&&l!==i);c===null?a=n:c.next=s,fr(n,e.memoizedState)||(Pt=!0),e.memoizedState=n,e.baseState=a,e.baseQueue=c,r.lastRenderedState=n}if(t=r.interleaved,t!==null){o=t;do i=o.lane,Re.lanes|=i,lo|=i,o=o.next;while(o!==t)}else o===null&&(r.lanes=0);return[e.memoizedState,r.dispatch]}function Ql(t){var e=Zt(),r=e.queue;if(r===null)throw Error(b(311));r.lastRenderedReducer=t;var n=r.dispatch,o=r.pending,i=e.memoizedState;if(o!==null){r.pending=null;var a=o=o.next;do i=t(i,a.action),a=a.next;while(a!==o);fr(i,e.memoizedState)||(Pt=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),r.lastRenderedState=i}return[i,n]}function rv(){}function nv(t,e){var r=Re,n=Zt(),o=e(),i=!fr(n.memoizedState,o);if(i&&(n.memoizedState=o,Pt=!0),n=n.queue,_h(av.bind(null,r,n,t),[t]),n.getSnapshot!==e||i||qe!==null&&qe.memoizedState.tag&1){if(r.flags|=2048,Ha(9,iv.bind(null,r,n,o,e),void 0,null),Ve===null)throw Error(b(349));(co&30)!==0||ov(r,e,o)}return o}function ov(t,e,r){t.flags|=16384,t={getSnapshot:e,value:r},e=Re.updateQueue,e===null?(e={lastEffect:null,stores:null},Re.updateQueue=e,e.stores=[t]):(r=e.stores,r===null?e.stores=[t]:r.push(t))}function iv(t,e,r,n){e.value=r,e.getSnapshot=n,sv(e)&&cv(t)}function av(t,e,r){return r(function(){sv(e)&&cv(t)})}function sv(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!fr(t,r)}catch{return!0}}function cv(t){var e=Zr(t,1);e!==null&&dr(e,t,1,-1)}function Wf(t){var e=yr();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Da,lastRenderedState:t},e.queue=t,t=t.dispatch=kw.bind(null,Re,t),[e.memoizedState,t]}function Ha(t,e,r,n){return t={tag:t,create:e,destroy:r,deps:n,next:null},e=Re.updateQueue,e===null?(e={lastEffect:null,stores:null},Re.updateQueue=e,e.lastEffect=t.next=t):(r=e.lastEffect,r===null?e.lastEffect=t.next=t:(n=r.next,r.next=t,t.next=n,e.lastEffect=t)),t}function lv(){return Zt().memoizedState}function zs(t,e,r,n){var o=yr();Re.flags|=t,o.memoizedState=Ha(1|e,r,void 0,n===void 0?null:n)}function al(t,e,r,n){var o=Zt();n=n===void 0?null:n;var i=void 0;if($e!==null){var a=$e.memoizedState;if(i=a.destroy,n!==null&&mh(n,a.deps)){o.memoizedState=Ha(e,r,i,n);return}}Re.flags|=t,o.memoizedState=Ha(1|e,r,i,n)}function Yf(t,e){return zs(8390656,8,t,e)}function _h(t,e){return al(2048,8,t,e)}function uv(t,e){return al(4,2,t,e)}function dv(t,e){return al(4,4,t,e)}function hv(t,e){if(typeof e=="function")return t=t(),e(t),function(){e(null)};if(e!=null)return t=t(),e.current=t,function(){e.current=null}}function fv(t,e,r){return r=r!=null?r.concat([t]):null,al(4,4,hv.bind(null,e,t),r)}function wh(){}function pv(t,e){var r=Zt();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&mh(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function gv(t,e){var r=Zt();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&mh(e,n[1])?n[0]:(t=t(),r.memoizedState=[t,e],t)}function mv(t,e,r){return(co&21)===0?(t.baseState&&(t.baseState=!1,Pt=!0),t.memoizedState=r):(fr(r,e)||(r=_m(),Re.lanes|=r,lo|=r,t.baseState=!0),e)}function bw(t,e){var r=ue;ue=r!==0&&4>r?r:4,t(!0);var n=Wl.transition;Wl.transition={};try{t(!1),e()}finally{ue=r,Wl.transition=n}}function vv(){return Zt().memoizedState}function Iw(t,e,r){var n=An(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},yv(t))_v(e,r);else if(r=Ym(t,e,r,n),r!==null){var o=St();dr(r,t,n,o),wv(r,e,n)}}function kw(t,e,r){var n=An(t),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(yv(t))_v(e,o);else{var i=t.alternate;if(t.lanes===0&&(i===null||i.lanes===0)&&(i=e.lastRenderedReducer,i!==null))try{var a=e.lastRenderedState,s=i(a,r);if(o.hasEagerState=!0,o.eagerState=s,fr(s,a)){var c=e.interleaved;c===null?(o.next=o,dh(e)):(o.next=c.next,c.next=o),e.interleaved=o;return}}catch{}finally{}r=Ym(t,e,o,n),r!==null&&(o=St(),dr(r,t,n,o),wv(r,e,n))}}function yv(t){var e=t.alternate;return t===Re||e!==null&&e===Re}function _v(t,e){pa=wc=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function wv(t,e,r){if((r&4194240)!==0){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Jd(t,r)}}var Ec={readContext:Xt,useCallback:ct,useContext:ct,useEffect:ct,useImperativeHandle:ct,useInsertionEffect:ct,useLayoutEffect:ct,useMemo:ct,useReducer:ct,useRef:ct,useState:ct,useDebugValue:ct,useDeferredValue:ct,useTransition:ct,useMutableSource:ct,useSyncExternalStore:ct,useId:ct,unstable_isNewReconciler:!1},Aw={readContext:Xt,useCallback:function(t,e){return yr().memoizedState=[t,e===void 0?null:e],t},useContext:Xt,useEffect:Yf,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,zs(4194308,4,hv.bind(null,e,t),r)},useLayoutEffect:function(t,e){return zs(4194308,4,t,e)},useInsertionEffect:function(t,e){return zs(4,2,t,e)},useMemo:function(t,e){var r=yr();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=yr();return e=r!==void 0?r(e):e,n.memoizedState=n.baseState=e,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:t,lastRenderedState:e},n.queue=t,t=t.dispatch=Iw.bind(null,Re,t),[n.memoizedState,t]},useRef:function(t){var e=yr();return t={current:t},e.memoizedState=t},useState:Wf,useDebugValue:wh,useDeferredValue:function(t){return yr().memoizedState=t},useTransition:function(){var t=Wf(!1),e=t[0];return t=bw.bind(null,t[1]),yr().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=Re,o=yr();if(be){if(r===void 0)throw Error(b(407));r=r()}else{if(r=e(),Ve===null)throw Error(b(349));(co&30)!==0||ov(n,e,r)}o.memoizedState=r;var i={value:r,getSnapshot:e};return o.queue=i,Yf(av.bind(null,n,i,t),[t]),n.flags|=2048,Ha(9,iv.bind(null,n,i,r,e),void 0,null),r},useId:function(){var t=yr(),e=Ve.identifierPrefix;if(be){var r=jr,n=zr;r=(n&~(1<<32-ur(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=La++,0<r&&(e+="H"+r.toString(32)),e+=":"}else r=Tw++,e=":"+e+"r"+r.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},Rw={readContext:Xt,useCallback:pv,useContext:Xt,useEffect:_h,useImperativeHandle:fv,useInsertionEffect:uv,useLayoutEffect:dv,useMemo:gv,useReducer:Yl,useRef:lv,useState:function(){return Yl(Da)},useDebugValue:wh,useDeferredValue:function(t){var e=Zt();return mv(e,$e.memoizedState,t)},useTransition:function(){var t=Yl(Da)[0],e=Zt().memoizedState;return[t,e]},useMutableSource:rv,useSyncExternalStore:nv,useId:vv,unstable_isNewReconciler:!1},Pw={readContext:Xt,useCallback:pv,useContext:Xt,useEffect:_h,useImperativeHandle:fv,useInsertionEffect:uv,useLayoutEffect:dv,useMemo:gv,useReducer:Ql,useRef:lv,useState:function(){return Ql(Da)},useDebugValue:wh,useDeferredValue:function(t){var e=Zt();return $e===null?e.memoizedState=t:mv(e,$e.memoizedState,t)},useTransition:function(){var t=Ql(Da)[0],e=Zt().memoizedState;return[t,e]},useMutableSource:rv,useSyncExternalStore:nv,useId:vv,unstable_isNewReconciler:!1};function gi(t,e){try{var r="",n=e;do r+=o_(n),n=n.return;while(n);var o=r}catch(i){o=`
|
|
31
|
+
Error generating stack: `+i.message+`
|
|
32
|
+
`+i.stack}return{value:t,source:e,stack:o,digest:null}}function Jl(t,e,r){return{value:t,source:null,stack:r!=null?r:null,digest:e!=null?e:null}}function td(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var Nw=typeof WeakMap=="function"?WeakMap:Map;function Ev(t,e,r){r=Kr(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){Sc||(Sc=!0,dd=n),td(t,e)},r}function Cv(t,e,r){r=Kr(-1,r),r.tag=3;var n=t.type.getDerivedStateFromError;if(typeof n=="function"){var o=e.value;r.payload=function(){return n(o)},r.callback=function(){td(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){td(t,e),typeof n!="function"&&(kn===null?kn=new Set([this]):kn.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),r}function Qf(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new Nw;var o=new Set;n.set(e,o)}else o=n.get(e),o===void 0&&(o=new Set,n.set(e,o));o.has(r)||(o.add(r),t=Kw.bind(null,t,e,r),e.then(t,t))}function Jf(t){do{var e;if((e=t.tag===13)&&(e=t.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return t;t=t.return}while(t!==null);return null}function Xf(t,e,r,n,o){return(t.mode&1)===0?(t===e?t.flags|=65536:(t.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(e=Kr(-1,1),e.tag=2,In(r,e,1))),r.lanes|=1),t):(t.flags|=65536,t.lanes=o,t)}var Ow=on.ReactCurrentOwner,Pt=!1;function wt(t,e,r,n){e.child=t===null?ev(e,null,r,n):fi(e,t.child,r,n)}function Zf(t,e,r,n,o){r=r.render;var i=e.ref;return oi(e,o),n=vh(t,e,r,n,i,o),r=yh(),t!==null&&!Pt?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~o,en(t,e,o)):(be&&r&&ih(e),e.flags|=1,wt(t,e,n,o),e.child)}function ep(t,e,r,n,o){if(t===null){var i=r.type;return typeof i=="function"&&!Ah(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=i,Sv(t,e,i,n,o)):(t=Ks(r.type,null,n,e,e.mode,o),t.ref=e.ref,t.return=e,e.child=t)}if(i=t.child,(t.lanes&o)===0){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:Pa,r(a,n)&&t.ref===e.ref)return en(t,e,o)}return e.flags|=1,t=Rn(i,n),t.ref=e.ref,t.return=e,e.child=t}function Sv(t,e,r,n,o){if(t!==null){var i=t.memoizedProps;if(Pa(i,n)&&t.ref===e.ref)if(Pt=!1,e.pendingProps=n=i,(t.lanes&o)!==0)(t.flags&131072)!==0&&(Pt=!0);else return e.lanes=t.lanes,en(t,e,o)}return rd(t,e,r,n,o)}function Tv(t,e,r){var n=e.pendingProps,o=n.children,i=t!==null?t.memoizedState:null;if(n.mode==="hidden")if((e.mode&1)===0)e.memoizedState={baseLanes:0,cachePool:null,transitions:null},_e(Go,Ut),Ut|=r;else{if((r&1073741824)===0)return t=i!==null?i.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,_e(Go,Ut),Ut|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,_e(Go,Ut),Ut|=n}else i!==null?(n=i.baseLanes|r,e.memoizedState=null):n=r,_e(Go,Ut),Ut|=n;return wt(t,e,o,r),e.child}function bv(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function rd(t,e,r,n,o){var i=Ot(r)?ao:vt.current;return i=di(e,i),oi(e,o),r=vh(t,e,r,n,i,o),n=yh(),t!==null&&!Pt?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~o,en(t,e,o)):(be&&n&&ih(e),e.flags|=1,wt(t,e,r,o),e.child)}function tp(t,e,r,n,o){if(Ot(r)){var i=!0;fc(e)}else i=!1;if(oi(e,o),e.stateNode===null)js(t,e),Xm(e,r,n),ed(e,r,n,o),n=!0;else if(t===null){var a=e.stateNode,s=e.memoizedProps;a.props=s;var c=a.context,l=r.contextType;typeof l=="object"&&l!==null?l=Xt(l):(l=Ot(r)?ao:vt.current,l=di(e,l));var u=r.getDerivedStateFromProps,h=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";h||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||c!==l)&&Gf(e,a,n,l),pn=!1;var d=e.memoizedState;a.state=d,yc(e,n,a,o),c=e.memoizedState,s!==n||d!==c||Nt.current||pn?(typeof u=="function"&&(Zu(e,r,u,n),c=e.memoizedState),(s=pn||Kf(e,r,s,n,d,c,l))?(h||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(e.flags|=4194308)):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=n,e.memoizedState=c),a.props=n,a.state=c,a.context=l,n=s):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{a=e.stateNode,Qm(t,e),s=e.memoizedProps,l=e.type===e.elementType?s:ir(e.type,s),a.props=l,h=e.pendingProps,d=a.context,c=r.contextType,typeof c=="object"&&c!==null?c=Xt(c):(c=Ot(r)?ao:vt.current,c=di(e,c));var f=r.getDerivedStateFromProps;(u=typeof f=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==h||d!==c)&&Gf(e,a,n,c),pn=!1,d=e.memoizedState,a.state=d,yc(e,n,a,o);var m=e.memoizedState;s!==h||d!==m||Nt.current||pn?(typeof f=="function"&&(Zu(e,r,f,n),m=e.memoizedState),(l=pn||Kf(e,r,l,n,d,m,c)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,m,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,m,c)),typeof a.componentDidUpdate=="function"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=m),a.props=n,a.state=m,a.context=c,n=l):(typeof a.componentDidUpdate!="function"||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&d===t.memoizedState||(e.flags|=1024),n=!1)}return nd(t,e,r,n,i,o)}function nd(t,e,r,n,o,i){bv(t,e);var a=(e.flags&128)!==0;if(!n&&!a)return o&&$f(e,r,!1),en(t,e,i);n=e.stateNode,Ow.current=e;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,t!==null&&a?(e.child=fi(e,t.child,null,i),e.child=fi(e,null,s,i)):wt(t,e,s,i),e.memoizedState=n.state,o&&$f(e,r,!0),e.child}function Iv(t){var e=t.stateNode;e.pendingContext?Ff(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Ff(t,e.context,!1),fh(t,e.containerInfo)}function rp(t,e,r,n,o){return hi(),sh(o),e.flags|=256,wt(t,e,r,n),e.child}var od={dehydrated:null,treeContext:null,retryLane:0};function id(t){return{baseLanes:t,cachePool:null,transitions:null}}function kv(t,e,r){var n=e.pendingProps,o=Ae.current,i=!1,a=(e.flags&128)!==0,s;if((s=a)||(s=t!==null&&t.memoizedState===null?!1:(o&2)!==0),s?(i=!0,e.flags&=-129):(t===null||t.memoizedState!==null)&&(o|=1),_e(Ae,o&1),t===null)return Ju(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?((e.mode&1)===0?e.lanes=1:t.data==="$!"?e.lanes=8:e.lanes=1073741824,null):(a=n.children,t=n.fallback,i?(n=e.mode,i=e.child,a={mode:"hidden",children:a},(n&1)===0&&i!==null?(i.childLanes=0,i.pendingProps=a):i=ll(a,n,0,null),t=eo(t,n,r,null),i.return=e,t.return=e,i.sibling=t,e.child=i,e.child.memoizedState=id(r),e.memoizedState=od,t):Eh(e,a));if(o=t.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return xw(t,e,a,n,s,o,r);if(i){i=n.fallback,a=e.mode,o=t.child,s=o.sibling;var c={mode:"hidden",children:n.children};return(a&1)===0&&e.child!==o?(n=e.child,n.childLanes=0,n.pendingProps=c,e.deletions=null):(n=Rn(o,c),n.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Rn(s,i):(i=eo(i,a,r,null),i.flags|=2),i.return=e,n.return=e,n.sibling=i,e.child=n,n=i,i=e.child,a=t.child.memoizedState,a=a===null?id(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=t.childLanes&~r,e.memoizedState=od,n}return i=t.child,t=i.sibling,n=Rn(i,{mode:"visible",children:n.children}),(e.mode&1)===0&&(n.lanes=r),n.return=e,n.sibling=null,t!==null&&(r=e.deletions,r===null?(e.deletions=[t],e.flags|=16):r.push(t)),e.child=n,e.memoizedState=null,n}function Eh(t,e){return e=ll({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function Cs(t,e,r,n){return n!==null&&sh(n),fi(e,t.child,null,r),t=Eh(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function xw(t,e,r,n,o,i,a){if(r)return e.flags&256?(e.flags&=-257,n=Jl(Error(b(422))),Cs(t,e,a,n)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(i=n.fallback,o=e.mode,n=ll({mode:"visible",children:n.children},o,0,null),i=eo(i,o,a,null),i.flags|=2,n.return=e,i.return=e,n.sibling=i,e.child=n,(e.mode&1)!==0&&fi(e,t.child,null,a),e.child.memoizedState=id(a),e.memoizedState=od,i);if((e.mode&1)===0)return Cs(t,e,a,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var s=n.dgst;return n=s,i=Error(b(419)),n=Jl(i,n,void 0),Cs(t,e,a,n)}if(s=(a&t.childLanes)!==0,Pt||s){if(n=Ve,n!==null){switch(a&-a){case 4:o=2;break;case 16:o=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:o=32;break;case 536870912:o=268435456;break;default:o=0}o=(o&(n.suspendedLanes|a))!==0?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Zr(t,o),dr(n,t,o,-1))}return kh(),n=Jl(Error(b(421))),Cs(t,e,a,n)}return o.data==="$?"?(e.flags|=128,e.child=t.child,e=Gw.bind(null,t),o._reactRetry=e,null):(t=i.treeContext,Lt=bn(o.nextSibling),Ht=e,be=!0,sr=null,t!==null&&(Gt[Vt++]=zr,Gt[Vt++]=jr,Gt[Vt++]=so,zr=t.id,jr=t.overflow,so=e),e=Eh(e,n.children),e.flags|=4096,e)}function np(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Xu(t.return,e,r)}function Xl(t,e,r,n,o){var i=t.memoizedState;i===null?t.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:n,tail:r,tailMode:o}:(i.isBackwards=e,i.rendering=null,i.renderingStartTime=0,i.last=n,i.tail=r,i.tailMode=o)}function Av(t,e,r){var n=e.pendingProps,o=n.revealOrder,i=n.tail;if(wt(t,e,n.children,r),n=Ae.current,(n&2)!==0)n=n&1|2,e.flags|=128;else{if(t!==null&&(t.flags&128)!==0)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&np(t,r,e);else if(t.tag===19)np(t,r,e);else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;t=t.return}t.sibling.return=t.return,t=t.sibling}n&=1}if(_e(Ae,n),(e.mode&1)===0)e.memoizedState=null;else switch(o){case"forwards":for(r=e.child,o=null;r!==null;)t=r.alternate,t!==null&&_c(t)===null&&(o=r),r=r.sibling;r=o,r===null?(o=e.child,e.child=null):(o=r.sibling,r.sibling=null),Xl(e,!1,o,r,i);break;case"backwards":for(r=null,o=e.child,e.child=null;o!==null;){if(t=o.alternate,t!==null&&_c(t)===null){e.child=o;break}t=o.sibling,o.sibling=r,r=o,o=t}Xl(e,!0,r,null,i);break;case"together":Xl(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function js(t,e){(e.mode&1)===0&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function en(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),lo|=e.lanes,(r&e.childLanes)===0)return null;if(t!==null&&e.child!==t.child)throw Error(b(153));if(e.child!==null){for(t=e.child,r=Rn(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=Rn(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function Mw(t,e,r){switch(e.tag){case 3:Iv(e),hi();break;case 5:tv(e);break;case 1:Ot(e.type)&&fc(e);break;case 4:fh(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,o=e.memoizedProps.value;_e(mc,n._currentValue),n._currentValue=o;break;case 13:if(n=e.memoizedState,n!==null)return n.dehydrated!==null?(_e(Ae,Ae.current&1),e.flags|=128,null):(r&e.child.childLanes)!==0?kv(t,e,r):(_e(Ae,Ae.current&1),t=en(t,e,r),t!==null?t.sibling:null);_e(Ae,Ae.current&1);break;case 19:if(n=(r&e.childLanes)!==0,(t.flags&128)!==0){if(n)return Av(t,e,r);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),_e(Ae,Ae.current),n)break;return null;case 22:case 23:return e.lanes=0,Tv(t,e,r)}return en(t,e,r)}var Rv,ad,Pv,Nv;Rv=function(t,e){for(var r=e.child;r!==null;){if(r.tag===5||r.tag===6)t.appendChild(r.stateNode);else if(r.tag!==4&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return;r=r.return}r.sibling.return=r.return,r=r.sibling}};ad=function(){};Pv=function(t,e,r,n){var o=t.memoizedProps;if(o!==n){t=e.stateNode,Yn(Tr.current);var i=null;switch(r){case"input":o=Au(t,o),n=Au(t,n),i=[];break;case"select":o=Pe({},o,{value:void 0}),n=Pe({},n,{value:void 0}),i=[];break;case"textarea":o=Nu(t,o),n=Nu(t,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(t.onclick=dc)}xu(r,n);var a;r=null;for(l in o)if(!n.hasOwnProperty(l)&&o.hasOwnProperty(l)&&o[l]!=null)if(l==="style"){var s=o[l];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(Sa.hasOwnProperty(l)?i||(i=[]):(i=i||[]).push(l,null));for(l in n){var c=n[l];if(s=o!=null?o[l]:void 0,n.hasOwnProperty(l)&&c!==s&&(c!=null||s!=null))if(l==="style")if(s){for(a in s)!s.hasOwnProperty(a)||c&&c.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in c)c.hasOwnProperty(a)&&s[a]!==c[a]&&(r||(r={}),r[a]=c[a])}else r||(i||(i=[]),i.push(l,r)),r=c;else l==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(i=i||[]).push(l,c)):l==="children"?typeof c!="string"&&typeof c!="number"||(i=i||[]).push(l,""+c):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(Sa.hasOwnProperty(l)?(c!=null&&l==="onScroll"&&we("scroll",t),i||s===c||(i=[])):(i=i||[]).push(l,c))}r&&(i=i||[]).push("style",r);var l=i;(e.updateQueue=l)&&(e.flags|=4)}};Nv=function(t,e,r,n){r!==n&&(e.flags|=4)};function zi(t,e){if(!be)switch(t.tailMode){case"hidden":e=t.tail;for(var r=null;e!==null;)e.alternate!==null&&(r=e),e=e.sibling;r===null?t.tail=null:r.sibling=null;break;case"collapsed":r=t.tail;for(var n=null;r!==null;)r.alternate!==null&&(n=r),r=r.sibling;n===null?e||t.tail===null?t.tail=null:t.tail.sibling=null:n.sibling=null}}function lt(t){var e=t.alternate!==null&&t.alternate.child===t.child,r=0,n=0;if(e)for(var o=t.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags&14680064,n|=o.flags&14680064,o.return=t,o=o.sibling;else for(o=t.child;o!==null;)r|=o.lanes|o.childLanes,n|=o.subtreeFlags,n|=o.flags,o.return=t,o=o.sibling;return t.subtreeFlags|=n,t.childLanes=r,e}function Uw(t,e,r){var n=e.pendingProps;switch(ah(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return lt(e),null;case 1:return Ot(e.type)&&hc(),lt(e),null;case 3:return n=e.stateNode,pi(),Ce(Nt),Ce(vt),gh(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(ws(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,sr!==null&&(pd(sr),sr=null))),ad(t,e),lt(e),null;case 5:ph(e);var o=Yn(Ua.current);if(r=e.type,t!==null&&e.stateNode!=null)Pv(t,e,r,n,o),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(e.stateNode===null)throw Error(b(166));return lt(e),null}if(t=Yn(Tr.current),ws(e)){n=e.stateNode,r=e.type;var i=e.memoizedProps;switch(n[wr]=e,n[xa]=i,t=(e.mode&1)!==0,r){case"dialog":we("cancel",n),we("close",n);break;case"iframe":case"object":case"embed":we("load",n);break;case"video":case"audio":for(o=0;o<Xi.length;o++)we(Xi[o],n);break;case"source":we("error",n);break;case"img":case"image":case"link":we("error",n),we("load",n);break;case"details":we("toggle",n);break;case"input":hf(n,i),we("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},we("invalid",n);break;case"textarea":pf(n,i),we("invalid",n)}xu(r,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];a==="children"?typeof s=="string"?n.textContent!==s&&(i.suppressHydrationWarning!==!0&&_s(n.textContent,s,t),o=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&_s(n.textContent,s,t),o=["children",""+s]):Sa.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&we("scroll",n)}switch(r){case"input":ds(n),ff(n,i,!0);break;case"textarea":ds(n),gf(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=dc)}n=o,e.updateQueue=n,n!==null&&(e.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,t==="http://www.w3.org/1999/xhtml"&&(t=om(r)),t==="http://www.w3.org/1999/xhtml"?r==="script"?(t=a.createElement("div"),t.innerHTML="<script><\/script>",t=t.removeChild(t.firstChild)):typeof n.is=="string"?t=a.createElement(r,{is:n.is}):(t=a.createElement(r),r==="select"&&(a=t,n.multiple?a.multiple=!0:n.size&&(a.size=n.size))):t=a.createElementNS(t,r),t[wr]=e,t[xa]=n,Rv(t,e,!1,!1),e.stateNode=t;e:{switch(a=Mu(r,n),r){case"dialog":we("cancel",t),we("close",t),o=n;break;case"iframe":case"object":case"embed":we("load",t),o=n;break;case"video":case"audio":for(o=0;o<Xi.length;o++)we(Xi[o],t);o=n;break;case"source":we("error",t),o=n;break;case"img":case"image":case"link":we("error",t),we("load",t),o=n;break;case"details":we("toggle",t),o=n;break;case"input":hf(t,n),o=Au(t,n),we("invalid",t);break;case"option":o=n;break;case"select":t._wrapperState={wasMultiple:!!n.multiple},o=Pe({},n,{value:void 0}),we("invalid",t);break;case"textarea":pf(t,n),o=Nu(t,n),we("invalid",t);break;default:o=n}xu(r,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var c=s[i];i==="style"?sm(t,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&im(t,c)):i==="children"?typeof c=="string"?(r!=="textarea"||c!=="")&&Ta(t,c):typeof c=="number"&&Ta(t,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Sa.hasOwnProperty(i)?c!=null&&i==="onScroll"&&we("scroll",t):c!=null&&Kd(t,i,c,a))}switch(r){case"input":ds(t),ff(t,n,!1);break;case"textarea":ds(t),gf(t);break;case"option":n.value!=null&&t.setAttribute("value",""+Nn(n.value));break;case"select":t.multiple=!!n.multiple,i=n.value,i!=null?ei(t,!!n.multiple,i,!1):n.defaultValue!=null&&ei(t,!!n.multiple,n.defaultValue,!0);break;default:typeof o.onClick=="function"&&(t.onclick=dc)}switch(r){case"button":case"input":case"select":case"textarea":n=!!n.autoFocus;break e;case"img":n=!0;break e;default:n=!1}}n&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return lt(e),null;case 6:if(t&&e.stateNode!=null)Nv(t,e,t.memoizedProps,n);else{if(typeof n!="string"&&e.stateNode===null)throw Error(b(166));if(r=Yn(Ua.current),Yn(Tr.current),ws(e)){if(n=e.stateNode,r=e.memoizedProps,n[wr]=e,(i=n.nodeValue!==r)&&(t=Ht,t!==null))switch(t.tag){case 3:_s(n.nodeValue,r,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&_s(n.nodeValue,r,(t.mode&1)!==0)}i&&(e.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[wr]=e,e.stateNode=n}return lt(e),null;case 13:if(Ce(Ae),n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(be&&Lt!==null&&(e.mode&1)!==0&&(e.flags&128)===0)Wm(),hi(),e.flags|=98560,i=!1;else if(i=ws(e),n!==null&&n.dehydrated!==null){if(t===null){if(!i)throw Error(b(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(b(317));i[wr]=e}else hi(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;lt(e),i=!1}else sr!==null&&(pd(sr),sr=null),i=!0;if(!i)return e.flags&65536?e:null}return(e.flags&128)!==0?(e.lanes=r,e):(n=n!==null,n!==(t!==null&&t.memoizedState!==null)&&n&&(e.child.flags|=8192,(e.mode&1)!==0&&(t===null||(Ae.current&1)!==0?ze===0&&(ze=3):kh())),e.updateQueue!==null&&(e.flags|=4),lt(e),null);case 4:return pi(),ad(t,e),t===null&&Na(e.stateNode.containerInfo),lt(e),null;case 10:return uh(e.type._context),lt(e),null;case 17:return Ot(e.type)&&hc(),lt(e),null;case 19:if(Ce(Ae),i=e.memoizedState,i===null)return lt(e),null;if(n=(e.flags&128)!==0,a=i.rendering,a===null)if(n)zi(i,!1);else{if(ze!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(a=_c(t),a!==null){for(e.flags|=128,zi(i,!1),n=a.updateQueue,n!==null&&(e.updateQueue=n,e.flags|=4),e.subtreeFlags=0,n=r,r=e.child;r!==null;)i=r,t=n,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=t,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,t=a.dependencies,i.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),r=r.sibling;return _e(Ae,Ae.current&1|2),e.child}t=t.sibling}i.tail!==null&&Me()>mi&&(e.flags|=128,n=!0,zi(i,!1),e.lanes=4194304)}else{if(!n)if(t=_c(a),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),zi(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!be)return lt(e),null}else 2*Me()-i.renderingStartTime>mi&&r!==1073741824&&(e.flags|=128,n=!0,zi(i,!1),e.lanes=4194304);i.isBackwards?(a.sibling=e.child,e.child=a):(r=i.last,r!==null?r.sibling=a:e.child=a,i.last=a)}return i.tail!==null?(e=i.tail,i.rendering=e,i.tail=e.sibling,i.renderingStartTime=Me(),e.sibling=null,r=Ae.current,_e(Ae,n?r&1|2:r&1),e):(lt(e),null);case 22:case 23:return Ih(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&(e.mode&1)!==0?(Ut&1073741824)!==0&&(lt(e),e.subtreeFlags&6&&(e.flags|=8192)):lt(e),null;case 24:return null;case 25:return null}throw Error(b(156,e.tag))}function Lw(t,e){switch(ah(e),e.tag){case 1:return Ot(e.type)&&hc(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return pi(),Ce(Nt),Ce(vt),gh(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 5:return ph(e),null;case 13:if(Ce(Ae),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(b(340));hi()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return Ce(Ae),null;case 4:return pi(),null;case 10:return uh(e.type._context),null;case 22:case 23:return Ih(),null;case 24:return null;default:return null}}var Ss=!1,gt=!1,Dw=typeof WeakSet=="function"?WeakSet:Set,H=null;function Ko(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ne(t,e,n)}else r.current=null}function sd(t,e,r){try{r()}catch(n){Ne(t,e,n)}}var op=!1;function Hw(t,e){if(qu=cc,t=Um(),oh(t)){if("selectionStart"in t)var r={start:t.selectionStart,end:t.selectionEnd};else e:{r=(r=t.ownerDocument)&&r.defaultView||window;var n=r.getSelection&&r.getSelection();if(n&&n.rangeCount!==0){r=n.anchorNode;var o=n.anchorOffset,i=n.focusNode;n=n.focusOffset;try{r.nodeType,i.nodeType}catch{r=null;break e}var a=0,s=-1,c=-1,l=0,u=0,h=t,d=null;t:for(;;){for(var f;h!==r||o!==0&&h.nodeType!==3||(s=a+o),h!==i||n!==0&&h.nodeType!==3||(c=a+n),h.nodeType===3&&(a+=h.nodeValue.length),(f=h.firstChild)!==null;)d=h,h=f;for(;;){if(h===t)break t;if(d===r&&++l===o&&(s=a),d===i&&++u===n&&(c=a),(f=h.nextSibling)!==null)break;h=d,d=h.parentNode}h=f}r=s===-1||c===-1?null:{start:s,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(Ku={focusedElem:t,selectionRange:r},cc=!1,H=e;H!==null;)if(e=H,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,H=t;else for(;H!==null;){e=H;try{var m=e.alternate;if((e.flags&1024)!==0)switch(e.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var v=m.memoizedProps,E=m.memoizedState,g=e.stateNode,p=g.getSnapshotBeforeUpdate(e.elementType===e.type?v:ir(e.type,v),E);g.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var y=e.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(b(163))}}catch(w){Ne(e,e.return,w)}if(t=e.sibling,t!==null){t.return=e.return,H=t;break}H=e.return}return m=op,op=!1,m}function ga(t,e,r){var n=e.updateQueue;if(n=n!==null?n.lastEffect:null,n!==null){var o=n=n.next;do{if((o.tag&t)===t){var i=o.destroy;o.destroy=void 0,i!==void 0&&sd(e,r,i)}o=o.next}while(o!==n)}}function sl(t,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var r=e=e.next;do{if((r.tag&t)===t){var n=r.create;r.destroy=n()}r=r.next}while(r!==e)}}function cd(t){var e=t.ref;if(e!==null){var r=t.stateNode;switch(t.tag){case 5:t=r;break;default:t=r}typeof e=="function"?e(t):e.current=t}}function Ov(t){var e=t.alternate;e!==null&&(t.alternate=null,Ov(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[wr],delete e[xa],delete e[Wu],delete e[ww],delete e[Ew])),t.stateNode=null,t.return=null,t.dependencies=null,t.memoizedProps=null,t.memoizedState=null,t.pendingProps=null,t.stateNode=null,t.updateQueue=null}function xv(t){return t.tag===5||t.tag===3||t.tag===4}function ip(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||xv(t.return))return null;t=t.return}for(t.sibling.return=t.return,t=t.sibling;t.tag!==5&&t.tag!==6&&t.tag!==18;){if(t.flags&2||t.child===null||t.tag===4)continue e;t.child.return=t,t=t.child}if(!(t.flags&2))return t.stateNode}}function ld(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.nodeType===8?r.parentNode.insertBefore(t,e):r.insertBefore(t,e):(r.nodeType===8?(e=r.parentNode,e.insertBefore(t,r)):(e=r,e.appendChild(t)),r=r._reactRootContainer,r!=null||e.onclick!==null||(e.onclick=dc));else if(n!==4&&(t=t.child,t!==null))for(ld(t,e,r),t=t.sibling;t!==null;)ld(t,e,r),t=t.sibling}function ud(t,e,r){var n=t.tag;if(n===5||n===6)t=t.stateNode,e?r.insertBefore(t,e):r.appendChild(t);else if(n!==4&&(t=t.child,t!==null))for(ud(t,e,r),t=t.sibling;t!==null;)ud(t,e,r),t=t.sibling}var Xe=null,ar=!1;function un(t,e,r){for(r=r.child;r!==null;)Mv(t,e,r),r=r.sibling}function Mv(t,e,r){if(Sr&&typeof Sr.onCommitFiberUnmount=="function")try{Sr.onCommitFiberUnmount(Zc,r)}catch{}switch(r.tag){case 5:gt||Ko(r,e);case 6:var n=Xe,o=ar;Xe=null,un(t,e,r),Xe=n,ar=o,Xe!==null&&(ar?(t=Xe,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):Xe.removeChild(r.stateNode));break;case 18:Xe!==null&&(ar?(t=Xe,r=r.stateNode,t.nodeType===8?Kl(t.parentNode,r):t.nodeType===1&&Kl(t,r),Aa(t)):Kl(Xe,r.stateNode));break;case 4:n=Xe,o=ar,Xe=r.stateNode.containerInfo,ar=!0,un(t,e,r),Xe=n,ar=o;break;case 0:case 11:case 14:case 15:if(!gt&&(n=r.updateQueue,n!==null&&(n=n.lastEffect,n!==null))){o=n=n.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&((i&2)!==0||(i&4)!==0)&&sd(r,e,a),o=o.next}while(o!==n)}un(t,e,r);break;case 1:if(!gt&&(Ko(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Ne(r,e,s)}un(t,e,r);break;case 21:un(t,e,r);break;case 22:r.mode&1?(gt=(n=gt)||r.memoizedState!==null,un(t,e,r),gt=n):un(t,e,r);break;default:un(t,e,r)}}function ap(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new Dw),e.forEach(function(n){var o=Vw.bind(null,t,n);r.has(n)||(r.add(n),n.then(o,o))})}}function tr(t,e){var r=e.deletions;if(r!==null)for(var n=0;n<r.length;n++){var o=r[n];try{var i=t,a=e,s=a;e:for(;s!==null;){switch(s.tag){case 5:Xe=s.stateNode,ar=!1;break e;case 3:Xe=s.stateNode.containerInfo,ar=!0;break e;case 4:Xe=s.stateNode.containerInfo,ar=!0;break e}s=s.return}if(Xe===null)throw Error(b(160));Mv(i,a,o),Xe=null,ar=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(l){Ne(o,e,l)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)Uv(e,t),e=e.sibling}function Uv(t,e){var r=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(tr(e,t),gr(t),n&4){try{ga(3,t,t.return),sl(3,t)}catch(v){Ne(t,t.return,v)}try{ga(5,t,t.return)}catch(v){Ne(t,t.return,v)}}break;case 1:tr(e,t),gr(t),n&512&&r!==null&&Ko(r,r.return);break;case 5:if(tr(e,t),gr(t),n&512&&r!==null&&Ko(r,r.return),t.flags&32){var o=t.stateNode;try{Ta(o,"")}catch(v){Ne(t,t.return,v)}}if(n&4&&(o=t.stateNode,o!=null)){var i=t.memoizedProps,a=r!==null?r.memoizedProps:i,s=t.type,c=t.updateQueue;if(t.updateQueue=null,c!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&rm(o,i),Mu(s,a);var l=Mu(s,i);for(a=0;a<c.length;a+=2){var u=c[a],h=c[a+1];u==="style"?sm(o,h):u==="dangerouslySetInnerHTML"?im(o,h):u==="children"?Ta(o,h):Kd(o,u,h,l)}switch(s){case"input":Ru(o,i);break;case"textarea":nm(o,i);break;case"select":var d=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var f=i.value;f!=null?ei(o,!!i.multiple,f,!1):d!==!!i.multiple&&(i.defaultValue!=null?ei(o,!!i.multiple,i.defaultValue,!0):ei(o,!!i.multiple,i.multiple?[]:"",!1))}o[xa]=i}catch(v){Ne(t,t.return,v)}}break;case 6:if(tr(e,t),gr(t),n&4){if(t.stateNode===null)throw Error(b(162));o=t.stateNode,i=t.memoizedProps;try{o.nodeValue=i}catch(v){Ne(t,t.return,v)}}break;case 3:if(tr(e,t),gr(t),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Aa(e.containerInfo)}catch(v){Ne(t,t.return,v)}break;case 4:tr(e,t),gr(t);break;case 13:tr(e,t),gr(t),o=t.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(Th=Me())),n&4&&ap(t);break;case 22:if(u=r!==null&&r.memoizedState!==null,t.mode&1?(gt=(l=gt)||u,tr(e,t),gt=l):tr(e,t),gr(t),n&8192){if(l=t.memoizedState!==null,(t.stateNode.isHidden=l)&&!u&&(t.mode&1)!==0)for(H=t,u=t.child;u!==null;){for(h=H=u;H!==null;){switch(d=H,f=d.child,d.tag){case 0:case 11:case 14:case 15:ga(4,d,d.return);break;case 1:Ko(d,d.return);var m=d.stateNode;if(typeof m.componentWillUnmount=="function"){n=d,r=d.return;try{e=n,m.props=e.memoizedProps,m.state=e.memoizedState,m.componentWillUnmount()}catch(v){Ne(n,r,v)}}break;case 5:Ko(d,d.return);break;case 22:if(d.memoizedState!==null){cp(h);continue}}f!==null?(f.return=d,H=f):cp(h)}u=u.sibling}e:for(u=null,h=t;;){if(h.tag===5){if(u===null){u=h;try{o=h.stateNode,l?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=h.stateNode,c=h.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,s.style.display=am("display",a))}catch(v){Ne(t,t.return,v)}}}else if(h.tag===6){if(u===null)try{h.stateNode.nodeValue=l?"":h.memoizedProps}catch(v){Ne(t,t.return,v)}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===t)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===t)break e;for(;h.sibling===null;){if(h.return===null||h.return===t)break e;u===h&&(u=null),h=h.return}u===h&&(u=null),h.sibling.return=h.return,h=h.sibling}}break;case 19:tr(e,t),gr(t),n&4&&ap(t);break;case 21:break;default:tr(e,t),gr(t)}}function gr(t){var e=t.flags;if(e&2){try{e:{for(var r=t.return;r!==null;){if(xv(r)){var n=r;break e}r=r.return}throw Error(b(160))}switch(n.tag){case 5:var o=n.stateNode;n.flags&32&&(Ta(o,""),n.flags&=-33);var i=ip(t);ud(t,i,o);break;case 3:case 4:var a=n.stateNode.containerInfo,s=ip(t);ld(t,s,a);break;default:throw Error(b(161))}}catch(c){Ne(t,t.return,c)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function Fw(t,e,r){H=t,Lv(t)}function Lv(t,e,r){for(var n=(t.mode&1)!==0;H!==null;){var o=H,i=o.child;if(o.tag===22&&n){var a=o.memoizedState!==null||Ss;if(!a){var s=o.alternate,c=s!==null&&s.memoizedState!==null||gt;s=Ss;var l=gt;if(Ss=a,(gt=c)&&!l)for(H=o;H!==null;)a=H,c=a.child,a.tag===22&&a.memoizedState!==null?lp(o):c!==null?(c.return=a,H=c):lp(o);for(;i!==null;)H=i,Lv(i),i=i.sibling;H=o,Ss=s,gt=l}sp(t)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,H=i):sp(t)}}function sp(t){for(;H!==null;){var e=H;if((e.flags&8772)!==0){var r=e.alternate;try{if((e.flags&8772)!==0)switch(e.tag){case 0:case 11:case 15:gt||sl(5,e);break;case 1:var n=e.stateNode;if(e.flags&4&&!gt)if(r===null)n.componentDidMount();else{var o=e.elementType===e.type?r.memoizedProps:ir(e.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;i!==null&&qf(e,i,n);break;case 3:var a=e.updateQueue;if(a!==null){if(r=null,e.child!==null)switch(e.child.tag){case 5:r=e.child.stateNode;break;case 1:r=e.child.stateNode}qf(e,a,r)}break;case 5:var s=e.stateNode;if(r===null&&e.flags&4){r=s;var c=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&r.focus();break;case"img":c.src&&(r.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var l=e.alternate;if(l!==null){var u=l.memoizedState;if(u!==null){var h=u.dehydrated;h!==null&&Aa(h)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(b(163))}gt||e.flags&512&&cd(e)}catch(d){Ne(e,e.return,d)}}if(e===t){H=null;break}if(r=e.sibling,r!==null){r.return=e.return,H=r;break}H=e.return}}function cp(t){for(;H!==null;){var e=H;if(e===t){H=null;break}var r=e.sibling;if(r!==null){r.return=e.return,H=r;break}H=e.return}}function lp(t){for(;H!==null;){var e=H;try{switch(e.tag){case 0:case 11:case 15:var r=e.return;try{sl(4,e)}catch(c){Ne(e,r,c)}break;case 1:var n=e.stateNode;if(typeof n.componentDidMount=="function"){var o=e.return;try{n.componentDidMount()}catch(c){Ne(e,o,c)}}var i=e.return;try{cd(e)}catch(c){Ne(e,i,c)}break;case 5:var a=e.return;try{cd(e)}catch(c){Ne(e,a,c)}}}catch(c){Ne(e,e.return,c)}if(e===t){H=null;break}var s=e.sibling;if(s!==null){s.return=e.return,H=s;break}H=e.return}}var $w=Math.ceil,Cc=on.ReactCurrentDispatcher,Ch=on.ReactCurrentOwner,Qt=on.ReactCurrentBatchConfig,ne=0,Ve=null,De=null,rt=0,Ut=0,Go=Mn(0),ze=0,Fa=null,lo=0,cl=0,Sh=0,ma=null,Rt=null,Th=0,mi=1/0,Hr=null,Sc=!1,dd=null,kn=null,Ts=!1,En=null,Tc=0,va=0,hd=null,Bs=-1,qs=0;function St(){return(ne&6)!==0?Me():Bs!==-1?Bs:Bs=Me()}function An(t){return(t.mode&1)===0?1:(ne&2)!==0&&rt!==0?rt&-rt:Sw.transition!==null?(qs===0&&(qs=_m()),qs):(t=ue,t!==0||(t=window.event,t=t===void 0?16:Im(t.type)),t)}function dr(t,e,r,n){if(50<va)throw va=0,hd=null,Error(b(185));Ja(t,r,n),((ne&2)===0||t!==Ve)&&(t===Ve&&((ne&2)===0&&(cl|=r),ze===4&&yn(t,rt)),xt(t,n),r===1&&ne===0&&(e.mode&1)===0&&(mi=Me()+500,ol&&Un()))}function xt(t,e){var r=t.callbackNode;S_(t,e);var n=sc(t,t===Ve?rt:0);if(n===0)r!==null&&yf(r),t.callbackNode=null,t.callbackPriority=0;else if(e=n&-n,t.callbackPriority!==e){if(r!=null&&yf(r),e===1)t.tag===0?Cw(up.bind(null,t)):Km(up.bind(null,t)),yw(function(){(ne&6)===0&&Un()}),r=null;else{switch(wm(n)){case 1:r=Qd;break;case 4:r=vm;break;case 16:r=ac;break;case 536870912:r=ym;break;default:r=ac}r=qv(r,Dv.bind(null,t))}t.callbackPriority=e,t.callbackNode=r}}function Dv(t,e){if(Bs=-1,qs=0,(ne&6)!==0)throw Error(b(327));var r=t.callbackNode;if(ii()&&t.callbackNode!==r)return null;var n=sc(t,t===Ve?rt:0);if(n===0)return null;if((n&30)!==0||(n&t.expiredLanes)!==0||e)e=bc(t,n);else{e=n;var o=ne;ne|=2;var i=Fv();(Ve!==t||rt!==e)&&(Hr=null,mi=Me()+500,Zn(t,e));do try{Bw();break}catch(s){Hv(t,s)}while(1);lh(),Cc.current=i,ne=o,De!==null?e=0:(Ve=null,rt=0,e=ze)}if(e!==0){if(e===2&&(o=Fu(t),o!==0&&(n=o,e=fd(t,o))),e===1)throw r=Fa,Zn(t,0),yn(t,n),xt(t,Me()),r;if(e===6)yn(t,n);else{if(o=t.current.alternate,(n&30)===0&&!zw(o)&&(e=bc(t,n),e===2&&(i=Fu(t),i!==0&&(n=i,e=fd(t,i))),e===1))throw r=Fa,Zn(t,0),yn(t,n),xt(t,Me()),r;switch(t.finishedWork=o,t.finishedLanes=n,e){case 0:case 1:throw Error(b(345));case 2:Bn(t,Rt,Hr);break;case 3:if(yn(t,n),(n&130023424)===n&&(e=Th+500-Me(),10<e)){if(sc(t,0)!==0)break;if(o=t.suspendedLanes,(o&n)!==n){St(),t.pingedLanes|=t.suspendedLanes&o;break}t.timeoutHandle=Vu(Bn.bind(null,t,Rt,Hr),e);break}Bn(t,Rt,Hr);break;case 4:if(yn(t,n),(n&4194240)===n)break;for(e=t.eventTimes,o=-1;0<n;){var a=31-ur(n);i=1<<a,a=e[a],a>o&&(o=a),n&=~i}if(n=o,n=Me()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*$w(n/1960))-n,10<n){t.timeoutHandle=Vu(Bn.bind(null,t,Rt,Hr),n);break}Bn(t,Rt,Hr);break;case 5:Bn(t,Rt,Hr);break;default:throw Error(b(329))}}}return xt(t,Me()),t.callbackNode===r?Dv.bind(null,t):null}function fd(t,e){var r=ma;return t.current.memoizedState.isDehydrated&&(Zn(t,e).flags|=256),t=bc(t,e),t!==2&&(e=Rt,Rt=r,e!==null&&pd(e)),t}function pd(t){Rt===null?Rt=t:Rt.push.apply(Rt,t)}function zw(t){for(var e=t;;){if(e.flags&16384){var r=e.updateQueue;if(r!==null&&(r=r.stores,r!==null))for(var n=0;n<r.length;n++){var o=r[n],i=o.getSnapshot;o=o.value;try{if(!fr(i(),o))return!1}catch{return!1}}}if(r=e.child,e.subtreeFlags&16384&&r!==null)r.return=e,e=r;else{if(e===t)break;for(;e.sibling===null;){if(e.return===null||e.return===t)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function yn(t,e){for(e&=~Sh,e&=~cl,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var r=31-ur(e),n=1<<r;t[r]=-1,e&=~n}}function up(t){if((ne&6)!==0)throw Error(b(327));ii();var e=sc(t,0);if((e&1)===0)return xt(t,Me()),null;var r=bc(t,e);if(t.tag!==0&&r===2){var n=Fu(t);n!==0&&(e=n,r=fd(t,n))}if(r===1)throw r=Fa,Zn(t,0),yn(t,e),xt(t,Me()),r;if(r===6)throw Error(b(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,Bn(t,Rt,Hr),xt(t,Me()),null}function bh(t,e){var r=ne;ne|=1;try{return t(e)}finally{ne=r,ne===0&&(mi=Me()+500,ol&&Un())}}function uo(t){En!==null&&En.tag===0&&(ne&6)===0&&ii();var e=ne;ne|=1;var r=Qt.transition,n=ue;try{if(Qt.transition=null,ue=1,t)return t()}finally{ue=n,Qt.transition=r,ne=e,(ne&6)===0&&Un()}}function Ih(){Ut=Go.current,Ce(Go)}function Zn(t,e){t.finishedWork=null,t.finishedLanes=0;var r=t.timeoutHandle;if(r!==-1&&(t.timeoutHandle=-1,vw(r)),De!==null)for(r=De.return;r!==null;){var n=r;switch(ah(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&hc();break;case 3:pi(),Ce(Nt),Ce(vt),gh();break;case 5:ph(n);break;case 4:pi();break;case 13:Ce(Ae);break;case 19:Ce(Ae);break;case 10:uh(n.type._context);break;case 22:case 23:Ih()}r=r.return}if(Ve=t,De=t=Rn(t.current,null),rt=Ut=e,ze=0,Fa=null,Sh=cl=lo=0,Rt=ma=null,Wn!==null){for(e=0;e<Wn.length;e++)if(r=Wn[e],n=r.interleaved,n!==null){r.interleaved=null;var o=n.next,i=r.pending;if(i!==null){var a=i.next;i.next=o,n.next=a}r.pending=n}Wn=null}return t}function Hv(t,e){do{var r=De;try{if(lh(),$s.current=Ec,wc){for(var n=Re.memoizedState;n!==null;){var o=n.queue;o!==null&&(o.pending=null),n=n.next}wc=!1}if(co=0,qe=$e=Re=null,pa=!1,La=0,Ch.current=null,r===null||r.return===null){ze=1,Fa=e,De=null;break}e:{var i=t,a=r.return,s=r,c=e;if(e=rt,s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var l=c,u=s,h=u.tag;if((u.mode&1)===0&&(h===0||h===11||h===15)){var d=u.alternate;d?(u.updateQueue=d.updateQueue,u.memoizedState=d.memoizedState,u.lanes=d.lanes):(u.updateQueue=null,u.memoizedState=null)}var f=Jf(a);if(f!==null){f.flags&=-257,Xf(f,a,s,i,e),f.mode&1&&Qf(i,l,e),e=f,c=l;var m=e.updateQueue;if(m===null){var v=new Set;v.add(c),e.updateQueue=v}else m.add(c);break e}else{if((e&1)===0){Qf(i,l,e),kh();break e}c=Error(b(426))}}else if(be&&s.mode&1){var E=Jf(a);if(E!==null){(E.flags&65536)===0&&(E.flags|=256),Xf(E,a,s,i,e),sh(gi(c,s));break e}}i=c=gi(c,s),ze!==4&&(ze=2),ma===null?ma=[i]:ma.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e;var g=Ev(i,c,e);Bf(i,g);break e;case 1:s=c;var p=i.type,y=i.stateNode;if((i.flags&128)===0&&(typeof p.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(kn===null||!kn.has(y)))){i.flags|=65536,e&=-e,i.lanes|=e;var w=Cv(i,s,e);Bf(i,w);break e}}i=i.return}while(i!==null)}zv(r)}catch(k){e=k,De===r&&r!==null&&(De=r=r.return);continue}break}while(1)}function Fv(){var t=Cc.current;return Cc.current=Ec,t===null?Ec:t}function kh(){(ze===0||ze===3||ze===2)&&(ze=4),Ve===null||(lo&268435455)===0&&(cl&268435455)===0||yn(Ve,rt)}function bc(t,e){var r=ne;ne|=2;var n=Fv();(Ve!==t||rt!==e)&&(Hr=null,Zn(t,e));do try{jw();break}catch(o){Hv(t,o)}while(1);if(lh(),ne=r,Cc.current=n,De!==null)throw Error(b(261));return Ve=null,rt=0,ze}function jw(){for(;De!==null;)$v(De)}function Bw(){for(;De!==null&&!p_();)$v(De)}function $v(t){var e=Bv(t.alternate,t,Ut);t.memoizedProps=t.pendingProps,e===null?zv(t):De=e,Ch.current=null}function zv(t){var e=t;do{var r=e.alternate;if(t=e.return,(e.flags&32768)===0){if(r=Uw(r,e,Ut),r!==null){De=r;return}}else{if(r=Lw(r,e),r!==null){r.flags&=32767,De=r;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{ze=6,De=null;return}}if(e=e.sibling,e!==null){De=e;return}De=e=t}while(e!==null);ze===0&&(ze=5)}function Bn(t,e,r){var n=ue,o=Qt.transition;try{Qt.transition=null,ue=1,qw(t,e,r,n)}finally{Qt.transition=o,ue=n}return null}function qw(t,e,r,n){do ii();while(En!==null);if((ne&6)!==0)throw Error(b(327));r=t.finishedWork;var o=t.finishedLanes;if(r===null)return null;if(t.finishedWork=null,t.finishedLanes=0,r===t.current)throw Error(b(177));t.callbackNode=null,t.callbackPriority=0;var i=r.lanes|r.childLanes;if(T_(t,i),t===Ve&&(De=Ve=null,rt=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Ts||(Ts=!0,qv(ac,function(){return ii(),null})),i=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||i){i=Qt.transition,Qt.transition=null;var a=ue;ue=1;var s=ne;ne|=4,Ch.current=null,Hw(t,r),Uv(r,t),uw(Ku),cc=!!qu,Ku=qu=null,t.current=r,Fw(r),g_(),ne=s,ue=a,Qt.transition=i}else t.current=r;if(Ts&&(Ts=!1,En=t,Tc=o),i=t.pendingLanes,i===0&&(kn=null),y_(r.stateNode),xt(t,Me()),e!==null)for(n=t.onRecoverableError,r=0;r<e.length;r++)o=e[r],n(o.value,{componentStack:o.stack,digest:o.digest});if(Sc)throw Sc=!1,t=dd,dd=null,t;return(Tc&1)!==0&&t.tag!==0&&ii(),i=t.pendingLanes,(i&1)!==0?t===hd?va++:(va=0,hd=t):va=0,Un(),null}function ii(){if(En!==null){var t=wm(Tc),e=Qt.transition,r=ue;try{if(Qt.transition=null,ue=16>t?16:t,En===null)var n=!1;else{if(t=En,En=null,Tc=0,(ne&6)!==0)throw Error(b(331));var o=ne;for(ne|=4,H=t.current;H!==null;){var i=H,a=i.child;if((H.flags&16)!==0){var s=i.deletions;if(s!==null){for(var c=0;c<s.length;c++){var l=s[c];for(H=l;H!==null;){var u=H;switch(u.tag){case 0:case 11:case 15:ga(8,u,i)}var h=u.child;if(h!==null)h.return=u,H=h;else for(;H!==null;){u=H;var d=u.sibling,f=u.return;if(Ov(u),u===l){H=null;break}if(d!==null){d.return=f,H=d;break}H=f}}}var m=i.alternate;if(m!==null){var v=m.child;if(v!==null){m.child=null;do{var E=v.sibling;v.sibling=null,v=E}while(v!==null)}}H=i}}if((i.subtreeFlags&2064)!==0&&a!==null)a.return=i,H=a;else e:for(;H!==null;){if(i=H,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:ga(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,H=g;break e}H=i.return}}var p=t.current;for(H=p;H!==null;){a=H;var y=a.child;if((a.subtreeFlags&2064)!==0&&y!==null)y.return=a,H=y;else e:for(a=p;H!==null;){if(s=H,(s.flags&2048)!==0)try{switch(s.tag){case 0:case 11:case 15:sl(9,s)}}catch(k){Ne(s,s.return,k)}if(s===a){H=null;break e}var w=s.sibling;if(w!==null){w.return=s.return,H=w;break e}H=s.return}}if(ne=o,Un(),Sr&&typeof Sr.onPostCommitFiberRoot=="function")try{Sr.onPostCommitFiberRoot(Zc,t)}catch{}n=!0}return n}finally{ue=r,Qt.transition=e}}return!1}function dp(t,e,r){e=gi(r,e),e=Ev(t,e,1),t=In(t,e,1),e=St(),t!==null&&(Ja(t,1,e),xt(t,e))}function Ne(t,e,r){if(t.tag===3)dp(t,t,r);else for(;e!==null;){if(e.tag===3){dp(e,t,r);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(kn===null||!kn.has(n))){t=gi(r,t),t=Cv(e,t,1),e=In(e,t,1),t=St(),e!==null&&(Ja(e,1,t),xt(e,t));break}}e=e.return}}function Kw(t,e,r){var n=t.pingCache;n!==null&&n.delete(e),e=St(),t.pingedLanes|=t.suspendedLanes&r,Ve===t&&(rt&r)===r&&(ze===4||ze===3&&(rt&130023424)===rt&&500>Me()-Th?Zn(t,0):Sh|=r),xt(t,e)}function jv(t,e){e===0&&((t.mode&1)===0?e=1:(e=ps,ps<<=1,(ps&130023424)===0&&(ps=4194304)));var r=St();t=Zr(t,e),t!==null&&(Ja(t,e,r),xt(t,r))}function Gw(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),jv(t,r)}function Vw(t,e){var r=0;switch(t.tag){case 13:var n=t.stateNode,o=t.memoizedState;o!==null&&(r=o.retryLane);break;case 19:n=t.stateNode;break;default:throw Error(b(314))}n!==null&&n.delete(e),jv(t,r)}var Bv;Bv=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||Nt.current)Pt=!0;else{if((t.lanes&r)===0&&(e.flags&128)===0)return Pt=!1,Mw(t,e,r);Pt=(t.flags&131072)!==0}else Pt=!1,be&&(e.flags&1048576)!==0&&Gm(e,gc,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;js(t,e),t=e.pendingProps;var o=di(e,vt.current);oi(e,r),o=vh(null,e,n,t,o,r);var i=yh();return e.flags|=1,typeof o=="object"&&o!==null&&typeof o.render=="function"&&o.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,Ot(n)?(i=!0,fc(e)):i=!1,e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,hh(e),o.updater=il,e.stateNode=o,o._reactInternals=e,ed(e,n,t,r),e=nd(null,e,n,!0,i,r)):(e.tag=0,be&&i&&ih(e),wt(null,e,o,r),e=e.child),e;case 16:n=e.elementType;e:{switch(js(t,e),t=e.pendingProps,o=n._init,n=o(n._payload),e.type=n,o=e.tag=Yw(n),t=ir(n,t),o){case 0:e=rd(null,e,n,t,r);break e;case 1:e=tp(null,e,n,t,r);break e;case 11:e=Zf(null,e,n,t,r);break e;case 14:e=ep(null,e,n,ir(n.type,t),r);break e}throw Error(b(306,n,""))}return e;case 0:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:ir(n,o),rd(t,e,n,o,r);case 1:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:ir(n,o),tp(t,e,n,o,r);case 3:e:{if(Iv(e),t===null)throw Error(b(387));n=e.pendingProps,i=e.memoizedState,o=i.element,Qm(t,e),yc(e,n,null,r);var a=e.memoizedState;if(n=a.element,i.isDehydrated)if(i={element:n,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},e.updateQueue.baseState=i,e.memoizedState=i,e.flags&256){o=gi(Error(b(423)),e),e=rp(t,e,n,r,o);break e}else if(n!==o){o=gi(Error(b(424)),e),e=rp(t,e,n,r,o);break e}else for(Lt=bn(e.stateNode.containerInfo.firstChild),Ht=e,be=!0,sr=null,r=ev(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(hi(),n===o){e=en(t,e,r);break e}wt(t,e,n,r)}e=e.child}return e;case 5:return tv(e),t===null&&Ju(e),n=e.type,o=e.pendingProps,i=t!==null?t.memoizedProps:null,a=o.children,Gu(n,o)?a=null:i!==null&&Gu(n,i)&&(e.flags|=32),bv(t,e),wt(t,e,a,r),e.child;case 6:return t===null&&Ju(e),null;case 13:return kv(t,e,r);case 4:return fh(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=fi(e,null,n,r):wt(t,e,n,r),e.child;case 11:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:ir(n,o),Zf(t,e,n,o,r);case 7:return wt(t,e,e.pendingProps,r),e.child;case 8:return wt(t,e,e.pendingProps.children,r),e.child;case 12:return wt(t,e,e.pendingProps.children,r),e.child;case 10:e:{if(n=e.type._context,o=e.pendingProps,i=e.memoizedProps,a=o.value,_e(mc,n._currentValue),n._currentValue=a,i!==null)if(fr(i.value,a)){if(i.children===o.children&&!Nt.current){e=en(t,e,r);break e}}else for(i=e.child,i!==null&&(i.return=e);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var c=s.firstContext;c!==null;){if(c.context===n){if(i.tag===1){c=Kr(-1,r&-r),c.tag=2;var l=i.updateQueue;if(l!==null){l=l.shared;var u=l.pending;u===null?c.next=c:(c.next=u.next,u.next=c),l.pending=c}}i.lanes|=r,c=i.alternate,c!==null&&(c.lanes|=r),Xu(i.return,r,e),s.lanes|=r;break}c=c.next}}else if(i.tag===10)a=i.type===e.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error(b(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),Xu(a,r,e),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===e){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}wt(t,e,o.children,r),e=e.child}return e;case 9:return o=e.type,n=e.pendingProps.children,oi(e,r),o=Xt(o),n=n(o),e.flags|=1,wt(t,e,n,r),e.child;case 14:return n=e.type,o=ir(n,e.pendingProps),o=ir(n.type,o),ep(t,e,n,o,r);case 15:return Sv(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:ir(n,o),js(t,e),e.tag=1,Ot(n)?(t=!0,fc(e)):t=!1,oi(e,r),Xm(e,n,o),ed(e,n,o,r),nd(null,e,n,!0,t,r);case 19:return Av(t,e,r);case 22:return Tv(t,e,r)}throw Error(b(156,e.tag))};function qv(t,e){return mm(t,e)}function Ww(t,e,r,n){this.tag=t,this.key=r,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=n,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Yt(t,e,r,n){return new Ww(t,e,r,n)}function Ah(t){return t=t.prototype,!(!t||!t.isReactComponent)}function Yw(t){if(typeof t=="function")return Ah(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Vd)return 11;if(t===Wd)return 14}return 2}function Rn(t,e){var r=t.alternate;return r===null?(r=Yt(t.tag,e,t.key,t.mode),r.elementType=t.elementType,r.type=t.type,r.stateNode=t.stateNode,r.alternate=t,t.alternate=r):(r.pendingProps=e,r.type=t.type,r.flags=0,r.subtreeFlags=0,r.deletions=null),r.flags=t.flags&14680064,r.childLanes=t.childLanes,r.lanes=t.lanes,r.child=t.child,r.memoizedProps=t.memoizedProps,r.memoizedState=t.memoizedState,r.updateQueue=t.updateQueue,e=t.dependencies,r.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},r.sibling=t.sibling,r.index=t.index,r.ref=t.ref,r}function Ks(t,e,r,n,o,i){var a=2;if(n=t,typeof t=="function")Ah(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case Lo:return eo(r.children,o,i,e);case Gd:a=8,o|=8;break;case Tu:return t=Yt(12,r,e,o|2),t.elementType=Tu,t.lanes=i,t;case bu:return t=Yt(13,r,e,o),t.elementType=bu,t.lanes=i,t;case Iu:return t=Yt(19,r,e,o),t.elementType=Iu,t.lanes=i,t;case Zg:return ll(r,o,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case Jg:a=10;break e;case Xg:a=9;break e;case Vd:a=11;break e;case Wd:a=14;break e;case fn:a=16,n=null;break e}throw Error(b(130,t==null?t:typeof t,""))}return e=Yt(a,r,e,o),e.elementType=t,e.type=n,e.lanes=i,e}function eo(t,e,r,n){return t=Yt(7,t,n,e),t.lanes=r,t}function ll(t,e,r,n){return t=Yt(22,t,n,e),t.elementType=Zg,t.lanes=r,t.stateNode={isHidden:!1},t}function Zl(t,e,r){return t=Yt(6,t,null,e),t.lanes=r,t}function eu(t,e,r){return e=Yt(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function Qw(t,e,r,n,o){this.tag=e,this.containerInfo=t,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=Ml(0),this.expirationTimes=Ml(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Ml(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Rh(t,e,r,n,o,i,a,s,c){return t=new Qw(t,e,r,s,c),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Yt(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},hh(i),t}function Jw(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Uo,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}function Kv(t){if(!t)return On;t=t._reactInternals;e:{if(_o(t)!==t||t.tag!==1)throw Error(b(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(Ot(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(b(171))}if(t.tag===1){var r=t.type;if(Ot(r))return qm(t,r,e)}return e}function Gv(t,e,r,n,o,i,a,s,c){return t=Rh(r,n,!0,t,o,i,a,s,c),t.context=Kv(null),r=t.current,n=St(),o=An(r),i=Kr(n,o),i.callback=e!=null?e:null,In(r,i,o),t.current.lanes=o,Ja(t,o,n),xt(t,n),t}function ul(t,e,r,n){var o=e.current,i=St(),a=An(o);return r=Kv(r),e.context===null?e.context=r:e.pendingContext=r,e=Kr(i,a),e.payload={element:t},n=n===void 0?null:n,n!==null&&(e.callback=n),t=In(o,e,a),t!==null&&(dr(t,o,a,i),Fs(t,o,a)),a}function Ic(t){if(t=t.current,!t.child)return null;switch(t.child.tag){case 5:return t.child.stateNode;default:return t.child.stateNode}}function hp(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<e?r:e}}function Ph(t,e){hp(t,e),(t=t.alternate)&&hp(t,e)}function Xw(){return null}var Vv=typeof reportError=="function"?reportError:function(t){console.error(t)};function Nh(t){this._internalRoot=t}dl.prototype.render=Nh.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(b(409));ul(t,e,null,null)};dl.prototype.unmount=Nh.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;uo(function(){ul(null,t,null,null)}),e[Xr]=null}};function dl(t){this._internalRoot=t}dl.prototype.unstable_scheduleHydration=function(t){if(t){var e=Sm();t={blockedOn:null,target:t,priority:e};for(var r=0;r<vn.length&&e!==0&&e<vn[r].priority;r++);vn.splice(r,0,t),r===0&&bm(t)}};function Oh(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function hl(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function fp(){}function Zw(t,e,r,n,o){if(o){if(typeof n=="function"){var i=n;n=function(){var l=Ic(a);i.call(l)}}var a=Gv(e,n,t,0,null,!1,!1,"",fp);return t._reactRootContainer=a,t[Xr]=a.current,Na(t.nodeType===8?t.parentNode:t),uo(),a}for(;o=t.lastChild;)t.removeChild(o);if(typeof n=="function"){var s=n;n=function(){var l=Ic(c);s.call(l)}}var c=Rh(t,0,!1,null,null,!1,!1,"",fp);return t._reactRootContainer=c,t[Xr]=c.current,Na(t.nodeType===8?t.parentNode:t),uo(function(){ul(e,c,r,n)}),c}function fl(t,e,r,n,o){var i=r._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var s=o;o=function(){var c=Ic(a);s.call(c)}}ul(e,a,t,o)}else a=Zw(r,e,t,o,n);return Ic(a)}Em=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var r=Ji(e.pendingLanes);r!==0&&(Jd(e,r|1),xt(e,Me()),(ne&6)===0&&(mi=Me()+500,Un()))}break;case 13:uo(function(){var n=Zr(t,1);if(n!==null){var o=St();dr(n,t,1,o)}}),Ph(t,1)}};Xd=function(t){if(t.tag===13){var e=Zr(t,134217728);if(e!==null){var r=St();dr(e,t,134217728,r)}Ph(t,134217728)}};Cm=function(t){if(t.tag===13){var e=An(t),r=Zr(t,e);if(r!==null){var n=St();dr(r,t,e,n)}Ph(t,e)}};Sm=function(){return ue};Tm=function(t,e){var r=ue;try{return ue=t,e()}finally{ue=r}};Lu=function(t,e,r){switch(e){case"input":if(Ru(t,r),e=r.name,r.type==="radio"&&e!=null){for(r=t;r.parentNode;)r=r.parentNode;for(r=r.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<r.length;e++){var n=r[e];if(n!==t&&n.form===t.form){var o=nl(n);if(!o)throw Error(b(90));tm(n),Ru(n,o)}}}break;case"textarea":nm(t,r);break;case"select":e=r.value,e!=null&&ei(t,!!r.multiple,e,!1)}};um=bh;dm=uo;var eE={usingClientEntryPoint:!1,Events:[Za,$o,nl,cm,lm,bh]},ji={findFiberByHostInstance:Vn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},tE={bundleType:ji.bundleType,version:ji.version,rendererPackageName:ji.rendererPackageName,rendererConfig:ji.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:on.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=pm(t),t===null?null:t.stateNode},findFiberByHostInstance:ji.findFiberByHostInstance||Xw,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var bs=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!bs.isDisabled&&bs.supportsFiber)try{Zc=bs.inject(tE),Sr=bs}catch{}}zt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=eE;zt.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Oh(e))throw Error(b(200));return Jw(t,e,null,r)};zt.createRoot=function(t,e){if(!Oh(t))throw Error(b(299));var r=!1,n="",o=Vv;return e!=null&&(e.unstable_strictMode===!0&&(r=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=Rh(t,1,!1,null,null,r,!1,n,o),t[Xr]=e.current,Na(t.nodeType===8?t.parentNode:t),new Nh(e)};zt.findDOMNode=function(t){if(t==null)return null;if(t.nodeType===1)return t;var e=t._reactInternals;if(e===void 0)throw typeof t.render=="function"?Error(b(188)):(t=Object.keys(t).join(","),Error(b(268,t)));return t=pm(e),t=t===null?null:t.stateNode,t};zt.flushSync=function(t){return uo(t)};zt.hydrate=function(t,e,r){if(!hl(e))throw Error(b(200));return fl(null,t,e,!0,r)};zt.hydrateRoot=function(t,e,r){if(!Oh(t))throw Error(b(405));var n=r!=null&&r.hydratedSources||null,o=!1,i="",a=Vv;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),e=Gv(e,null,t,1,r!=null?r:null,o,!1,i,a),t[Xr]=e.current,Na(t),n)for(t=0;t<n.length;t++)r=n[t],o=r._getVersion,o=o(r._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[r,o]:e.mutableSourceEagerHydrationData.push(r,o);return new dl(e)};zt.render=function(t,e,r){if(!hl(e))throw Error(b(200));return fl(null,t,e,!1,r)};zt.unmountComponentAtNode=function(t){if(!hl(t))throw Error(b(40));return t._reactRootContainer?(uo(function(){fl(null,null,t,!1,function(){t._reactRootContainer=null,t[Xr]=null})}),!0):!1};zt.unstable_batchedUpdates=bh;zt.unstable_renderSubtreeIntoContainer=function(t,e,r,n){if(!hl(r))throw Error(b(200));if(t==null||t._reactInternals===void 0)throw Error(b(38));return fl(t,e,r,!1,n)};zt.version="18.2.0-next-9e3b772b8-20220608";(function(t){function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(r){console.error(r)}}e(),t.exports=zt})(Gg);var pp=Gg.exports;Cu.createRoot=pp.createRoot,Cu.hydrateRoot=pp.hydrateRoot;class rE{constructor(e){this.domain=e,this.level=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((r,n)=>[...r,n,`
|
|
33
|
+
`],[])]}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 Wv extends rE{formatModuleName(e){return`\u{1F4E6}\x1B[1;32m${(typeof e=="string"?e:e.name).replace(/([A-Z])/g," $1").toUpperCase()}\x1B[0m`}}var gd=function(t,e){return gd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},gd(t,e)};function Ar(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");gd(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var ho=function(){return ho=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ho.apply(this,arguments)};function Yv(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}function Rr(t,e,r,n){var o=arguments.length,i=o<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,r,n);else for(var s=t.length-1;s>=0;s--)(a=t[s])&&(i=(o<3?a(i):o>3?a(e,r,i):a(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i}function nE(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})}function Qv(t,e){var r={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]&&(r=0)),r;)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 r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=e.call(t,r)}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 fo(t){var e=typeof Symbol=="function"&&Symbol.iterator,r=e&&t[e],n=0;if(r)return r.call(t);if(t&&typeof t.length=="number")return{next:function(){return t&&n>=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ir(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),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&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function tn(t,e,r){if(r||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 t.concat(i||Array.prototype.slice.call(e))}function ai(t){return this instanceof ai?(this.v=t,this):new ai(t)}function oE(t,e,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(t,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(m,v){i.push([d,f,m,v])>1||s(d,f)})})}function s(d,f){try{c(n[d](f))}catch(m){h(i[0][3],m)}}function c(d){d.value instanceof ai?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 iE(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=t[Symbol.asyncIterator],r;return e?e.call(t):(t=typeof fo=="function"?fo(t):t[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=t[i]&&function(a){return new Promise(function(s,c){a=t[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 de(t){return typeof t=="function"}function pl(t){var e=function(n){Error.call(n),n.stack=new Error().stack},r=t(e);return r.prototype=Object.create(Error.prototype),r.prototype.constructor=r,r}var tu=pl(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription:
|
|
34
|
+
`+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
|
|
35
|
+
`):"",this.name="UnsubscriptionError",this.errors=r}});function kc(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var an=function(){function t(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return t.prototype.unsubscribe=function(){var e,r,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=fo(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(v){e={error:v}}finally{try{c&&!c.done&&(r=s.return)&&r.call(s)}finally{if(e)throw e.error}}else a.remove(this);var u=this.initialTeardown;if(de(u))try{u()}catch(v){i=v instanceof tu?v.errors:[v]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=fo(h),f=d.next();!f.done;f=d.next()){var m=f.value;try{gp(m)}catch(v){i=i!=null?i:[],v instanceof tu?i=tn(tn([],Ir(i)),Ir(v.errors)):i.push(v)}}}catch(v){n={error:v}}finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(n)throw n.error}}}if(i)throw new tu(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)gp(e);else{if(e instanceof t){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(r=this._finalizers)!==null&&r!==void 0?r:[]).push(e)}},t.prototype._hasParent=function(e){var r=this._parentage;return r===e||Array.isArray(r)&&r.includes(e)},t.prototype._addParent=function(e){var r=this._parentage;this._parentage=Array.isArray(r)?(r.push(e),r):r?[r,e]:e},t.prototype._removeParent=function(e){var r=this._parentage;r===e?this._parentage=null:Array.isArray(r)&&kc(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&kc(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),Jv=an.EMPTY;function Xv(t){return t instanceof an||t&&"closed"in t&&de(t.remove)&&de(t.add)&&de(t.unsubscribe)}function gp(t){de(t)?t():t.unsubscribe()}var xh={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},md={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=md.delegate;return o!=null&&o.setTimeout?o.setTimeout.apply(o,tn([t,e],Ir(r))):setTimeout.apply(void 0,tn([t,e],Ir(r)))},clearTimeout:function(t){var e=md.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Zv(t){md.setTimeout(function(){throw t})}function Ac(){}var Is=null;function Gs(t){if(xh.useDeprecatedSynchronousErrorHandling){var e=!Is;if(e&&(Is={errorThrown:!1,error:null}),t(),e){var r=Is,n=r.errorThrown,o=r.error;if(Is=null,n)throw o}}else t()}var Mh=function(t){Ar(e,t);function e(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,Xv(r)&&r.add(n)):n.destination=lE,n}return e.create=function(r,n,o){return new Rc(r,n,o)},e.prototype.next=function(r){this.isStopped||this._next(r)},e.prototype.error=function(r){this.isStopped||(this.isStopped=!0,this._error(r))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(r){this.destination.next(r)},e.prototype._error=function(r){try{this.destination.error(r)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(an),aE=Function.prototype.bind;function ru(t,e){return aE.call(t,e)}var sE=function(){function t(e){this.partialObserver=e}return t.prototype.next=function(e){var r=this.partialObserver;if(r.next)try{r.next(e)}catch(n){ks(n)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(n){ks(n)}else ks(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){ks(r)}},t}(),Rc=function(t){Ar(e,t);function e(r,n,o){var i=t.call(this)||this,a;if(de(r)||!r)a={next:r!=null?r:void 0,error:n!=null?n:void 0,complete:o!=null?o:void 0};else{var s;i&&xh.useDeprecatedNextContext?(s=Object.create(r),s.unsubscribe=function(){return i.unsubscribe()},a={next:r.next&&ru(r.next,s),error:r.error&&ru(r.error,s),complete:r.complete&&ru(r.complete,s)}):a=r}return i.destination=new sE(a),i}return e}(Mh);function ks(t){Zv(t)}function cE(t){throw t}var lE={closed:!0,next:Ac,error:cE,complete:Ac},Uh=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function ki(t){return t}function uE(t){return t.length===0?ki:t.length===1?t[0]:function(r){return t.reduce(function(n,o){return o(n)},r)}}var Ie=function(){function t(e){e&&(this._subscribe=e)}return t.prototype.lift=function(e){var r=new t;return r.source=this,r.operator=e,r},t.prototype.subscribe=function(e,r,n){var o=this,i=hE(e)?e:new Rc(e,r,n);return Gs(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},t.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(r){e.error(r)}},t.prototype.forEach=function(e,r){var n=this;return r=mp(r),new r(function(o,i){var a=new Rc({next:function(s){try{e(s)}catch(c){i(c),a.unsubscribe()}},error:i,complete:o});n.subscribe(a)})},t.prototype._subscribe=function(e){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(e)},t.prototype[Uh]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return uE(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=mp(e),new e(function(n,o){var i;r.subscribe(function(a){return i=a},function(a){return o(a)},function(){return n(i)})})},t.create=function(e){return new t(e)},t}();function mp(t){var e;return(e=t!=null?t:xh.Promise)!==null&&e!==void 0?e:Promise}function dE(t){return t&&de(t.next)&&de(t.error)&&de(t.complete)}function hE(t){return t&&t instanceof Mh||dE(t)&&Xv(t)}function fE(t){return de(t==null?void 0:t.lift)}function Be(t){return function(e){if(fE(e))return e.lift(function(r){try{return t(r,this)}catch(n){this.error(n)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ue(t,e,r,n,o){return new pE(t,e,r,n,o)}var pE=function(t){Ar(e,t);function e(r,n,o,i,a,s){var c=t.call(this,r)||this;return c.onFinalize=a,c.shouldUnsubscribe=s,c._next=n?function(l){try{n(l)}catch(u){r.error(u)}}:t.prototype._next,c._error=i?function(l){try{i(l)}catch(u){r.error(u)}finally{this.unsubscribe()}}:t.prototype._error,c._complete=o?function(){try{o()}catch(l){r.error(l)}finally{this.unsubscribe()}}:t.prototype._complete,c}return e.prototype.unsubscribe=function(){var r;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var n=this.closed;t.prototype.unsubscribe.call(this),!n&&((r=this.onFinalize)===null||r===void 0||r.call(this))}},e}(Mh),gE=pl(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Gr=function(t){Ar(e,t);function e(){var r=t.call(this)||this;return r.closed=!1,r.currentObservers=null,r.observers=[],r.isStopped=!1,r.hasError=!1,r.thrownError=null,r}return e.prototype.lift=function(r){var n=new vp(this,this);return n.operator=r,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new gE},e.prototype.next=function(r){var n=this;Gs(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=fo(n.currentObservers),s=a.next();!s.done;s=a.next()){var c=s.value;c.next(r)}}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(r){var n=this;Gs(function(){if(n._throwIfClosed(),!n.isStopped){n.hasError=n.isStopped=!0,n.thrownError=r;for(var o=n.observers;o.length;)o.shift().error(r)}})},e.prototype.complete=function(){var r=this;Gs(function(){if(r._throwIfClosed(),!r.isStopped){r.isStopped=!0;for(var n=r.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 r;return((r=this.observers)===null||r===void 0?void 0:r.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(r){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,r)},e.prototype._subscribe=function(r){return this._throwIfClosed(),this._checkFinalizedStatuses(r),this._innerSubscribe(r)},e.prototype._innerSubscribe=function(r){var n=this,o=this,i=o.hasError,a=o.isStopped,s=o.observers;return i||a?Jv:(this.currentObservers=null,s.push(r),new an(function(){n.currentObservers=null,kc(s,r)}))},e.prototype._checkFinalizedStatuses=function(r){var n=this,o=n.hasError,i=n.thrownError,a=n.isStopped;o?r.error(i):a&&r.complete()},e.prototype.asObservable=function(){var r=new Ie;return r.source=this,r},e.create=function(r,n){return new vp(r,n)},e}(Ie),vp=function(t){Ar(e,t);function e(r,n){var o=t.call(this)||this;return o.destination=r,o.source=n,o}return e.prototype.next=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.next)===null||o===void 0||o.call(n,r)},e.prototype.error=function(r){var n,o;(o=(n=this.destination)===null||n===void 0?void 0:n.error)===null||o===void 0||o.call(n,r)},e.prototype.complete=function(){var r,n;(n=(r=this.destination)===null||r===void 0?void 0:r.complete)===null||n===void 0||n.call(r)},e.prototype._subscribe=function(r){var n,o;return(o=(n=this.source)===null||n===void 0?void 0:n.subscribe(r))!==null&&o!==void 0?o:Jv},e}(Gr),gl=function(t){Ar(e,t);function e(r){var n=t.call(this)||this;return n._value=r,n}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(r){var n=t.prototype._subscribe.call(this,r);return!n.closed&&r.next(this._value),n},e.prototype.getValue=function(){var r=this,n=r.hasError,o=r.thrownError,i=r._value;if(n)throw o;return this._throwIfClosed(),i},e.prototype.next=function(r){t.prototype.next.call(this,this._value=r)},e}(Gr),Lh={now:function(){return(Lh.delegate||Date).now()},delegate:void 0},ey=function(t){Ar(e,t);function e(r,n,o){r===void 0&&(r=1/0),n===void 0&&(n=1/0),o===void 0&&(o=Lh);var i=t.call(this)||this;return i._bufferSize=r,i._windowTime=n,i._timestampProvider=o,i._buffer=[],i._infiniteTimeWindow=!0,i._infiniteTimeWindow=n===1/0,i._bufferSize=Math.max(1,r),i._windowTime=Math.max(1,n),i}return e.prototype.next=function(r){var n=this,o=n.isStopped,i=n._buffer,a=n._infiniteTimeWindow,s=n._timestampProvider,c=n._windowTime;o||(i.push(r),!a&&i.push(s.now()+c)),this._trimBuffer(),t.prototype.next.call(this,r)},e.prototype._subscribe=function(r){this._throwIfClosed(),this._trimBuffer();for(var n=this._innerSubscribe(r),o=this,i=o._infiniteTimeWindow,a=o._buffer,s=a.slice(),c=0;c<s.length&&!r.closed;c+=i?1:2)r.next(s[c]);return this._checkFinalizedStatuses(r),n},e.prototype._trimBuffer=function(){var r=this,n=r._bufferSize,o=r._timestampProvider,i=r._buffer,a=r._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}(Gr),mE=function(t){Ar(e,t);function e(r,n){return t.call(this)||this}return e.prototype.schedule=function(r,n){return this},e}(an),Pc={setInterval:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Pc.delegate;return o!=null&&o.setInterval?o.setInterval.apply(o,tn([t,e],Ir(r))):setInterval.apply(void 0,tn([t,e],Ir(r)))},clearInterval:function(t){var e=Pc.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(t)},delegate:void 0},vE=function(t){Ar(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.scheduler=r,o.work=n,o.pending=!1,o}return e.prototype.schedule=function(r,n){var o;if(n===void 0&&(n=0),this.closed)return this;this.state=r;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(r,n,o){return o===void 0&&(o=0),Pc.setInterval(r.flush.bind(r,this),o)},e.prototype.recycleAsyncId=function(r,n,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return n;n!=null&&Pc.clearInterval(n)},e.prototype.execute=function(r,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(r,n);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(r,n){var o=!1,i;try{this.work(r)}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 r=this,n=r.id,o=r.scheduler,i=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,kc(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(mE),yp=function(){function t(e,r){r===void 0&&(r=t.now),this.schedulerActionCtor=e,this.now=r}return t.prototype.schedule=function(e,r,n){return r===void 0&&(r=0),new this.schedulerActionCtor(this,e).schedule(n,r)},t.now=Lh.now,t}(),yE=function(t){Ar(e,t);function e(r,n){n===void 0&&(n=yp.now);var o=t.call(this,r,n)||this;return o.actions=[],o._active=!1,o}return e.prototype.flush=function(r){var n=this.actions;if(this._active){n.push(r);return}var o;this._active=!0;do if(o=r.execute(r.state,r.delay))break;while(r=n.shift());if(this._active=!1,o){for(;r=n.shift();)r.unsubscribe();throw o}},e}(yp),Nc=new yE(vE),_E=Nc,po=new Ie(function(t){return t.complete()});function ty(t){return t&&de(t.schedule)}function Dh(t){return t[t.length-1]}function wE(t){return de(Dh(t))?t.pop():void 0}function ry(t){return ty(Dh(t))?t.pop():void 0}function EE(t,e){return typeof Dh(t)=="number"?t.pop():e}var Hh=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function ny(t){return de(t==null?void 0:t.then)}function oy(t){return de(t[Uh])}function iy(t){return Symbol.asyncIterator&&de(t==null?void 0:t[Symbol.asyncIterator])}function ay(t){return new TypeError("You provided "+(t!==null&&typeof t=="object"?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function CE(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var sy=CE();function cy(t){return de(t==null?void 0:t[sy])}function ly(t){return oE(this,arguments,function(){var r,n,o,i;return Qv(this,function(a){switch(a.label){case 0:r=t.getReader(),a.label=1;case 1:a.trys.push([1,,9,10]),a.label=2;case 2:return[4,ai(r.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,ai(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,ai(o)];case 6:return[4,a.sent()];case 7:return a.sent(),[3,2];case 8:return[3,10];case 9:return r.releaseLock(),[7];case 10:return[2]}})})}function uy(t){return de(t==null?void 0:t.getReader)}function Bt(t){if(t instanceof Ie)return t;if(t!=null){if(oy(t))return SE(t);if(Hh(t))return TE(t);if(ny(t))return bE(t);if(iy(t))return dy(t);if(cy(t))return IE(t);if(uy(t))return kE(t)}throw ay(t)}function SE(t){return new Ie(function(e){var r=t[Uh]();if(de(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function TE(t){return new Ie(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function bE(t){return new Ie(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,Zv)})}function IE(t){return new Ie(function(e){var r,n;try{for(var o=fo(t),i=o.next();!i.done;i=o.next()){var a=i.value;if(e.next(a),e.closed)return}}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}e.complete()})}function dy(t){return new Ie(function(e){AE(t,e).catch(function(r){return e.error(r)})})}function kE(t){return dy(ly(t))}function AE(t,e){var r,n,o,i;return nE(this,void 0,void 0,function(){var a,s;return Qv(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=iE(t),c.label=1;case 1:return[4,r.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=r.return)?[4,i.call(r)]:[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 Vr(t,e,r,n,o){n===void 0&&(n=0),o===void 0&&(o=!1);var i=e.schedule(function(){r(),o?t.add(this.schedule(null,n)):this.unsubscribe()},n);if(t.add(i),!o)return i}function Oc(t,e){return e===void 0&&(e=0),Be(function(r,n){r.subscribe(Ue(n,function(o){return Vr(n,t,function(){return n.next(o)},e)},function(){return Vr(n,t,function(){return n.complete()},e)},function(o){return Vr(n,t,function(){return n.error(o)},e)}))})}function hy(t,e){return e===void 0&&(e=0),Be(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}function RE(t,e){return Bt(t).pipe(hy(e),Oc(e))}function PE(t,e){return Bt(t).pipe(hy(e),Oc(e))}function NE(t,e){return new Ie(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function OE(t,e){return new Ie(function(r){var n;return Vr(r,e,function(){n=t[sy](),Vr(r,e,function(){var o,i,a;try{o=n.next(),i=o.value,a=o.done}catch(s){r.error(s);return}a?r.complete():r.next(i)},0,!0)}),function(){return de(n==null?void 0:n.return)&&n.return()}})}function fy(t,e){if(!t)throw new Error("Iterable cannot be null");return new Ie(function(r){Vr(r,e,function(){var n=t[Symbol.asyncIterator]();Vr(r,e,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function xE(t,e){return fy(ly(t),e)}function ME(t,e){if(t!=null){if(oy(t))return RE(t,e);if(Hh(t))return NE(t,e);if(ny(t))return PE(t,e);if(iy(t))return fy(t,e);if(cy(t))return OE(t,e);if(uy(t))return xE(t,e)}throw ay(t)}function br(t,e){return e?ME(t,e):Bt(t)}function ml(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=ry(t);return br(t,r)}function UE(t,e){var r=de(t)?t:function(){return t},n=function(o){return o.error(r())};return new Ie(e?function(o){return e.schedule(n,0,o)}:n)}var vl=pl(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}});function xc(t,e){var r=typeof e=="object";return new Promise(function(n,o){var i=!1,a;t.subscribe({next:function(s){a=s,i=!0},error:o,complete:function(){i?n(a):r?n(e.defaultValue):o(new vl)}})})}function go(t,e){var r=typeof e=="object";return new Promise(function(n,o){var i=new Rc({next:function(a){n(a),i.unsubscribe()},error:o,complete:function(){r?n(e.defaultValue):o(new vl)}});t.subscribe(i)})}function py(t){return t instanceof Date&&!isNaN(t)}var LE=pl(function(t){return function(r){r===void 0&&(r=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=r}});function DE(t,e){var r=py(t)?{first:t}:typeof t=="number"?{each:t}:t,n=r.first,o=r.each,i=r.with,a=i===void 0?HE:i,s=r.scheduler,c=s===void 0?e!=null?e:Nc:s,l=r.meta,u=l===void 0?null:l;if(n==null&&o==null)throw new TypeError("No timeout provided.");return Be(function(h,d){var f,m,v=null,E=0,g=function(p){m=Vr(d,c,function(){try{f.unsubscribe(),Bt(a({meta:u,lastValue:v,seen:E})).subscribe(d)}catch(y){d.error(y)}},p)};f=h.subscribe(Ue(d,function(p){m==null||m.unsubscribe(),E++,d.next(v=p),o>0&&g(o)},void 0,void 0,function(){m!=null&&m.closed||m==null||m.unsubscribe(),v=null})),!E&&g(n!=null?typeof n=="number"?n:+n-c.now():o)})}function HE(t){throw new LE(t)}function yt(t,e){return Be(function(r,n){var o=0;r.subscribe(Ue(n,function(i){n.next(t.call(e,i,o++))}))})}var FE=Array.isArray;function $E(t,e){return FE(e)?t.apply(void 0,tn([],Ir(e))):t(e)}function zE(t){return yt(function(e){return $E(t,e)})}function gy(t,e,r,n,o,i,a,s){var c=[],l=0,u=0,h=!1,d=function(){h&&!c.length&&!l&&e.complete()},f=function(v){return l<n?m(v):c.push(v)},m=function(v){i&&e.next(v),l++;var E=!1;Bt(r(v,u++)).subscribe(Ue(e,function(g){o==null||o(g),i?f(g):e.next(g)},function(){E=!0},void 0,function(){if(E)try{l--;for(var g=function(){var p=c.shift();a?Vr(e,a,function(){return m(p)}):m(p)};c.length&&l<n;)g();d()}catch(p){e.error(p)}}))};return t.subscribe(Ue(e,f,function(){h=!0,d()})),function(){s==null||s()}}function mo(t,e,r){return r===void 0&&(r=1/0),de(e)?mo(function(n,o){return yt(function(i,a){return e(n,i,o,a)})(Bt(t(n,o)))},r):(typeof e=="number"&&(r=e),Be(function(n,o){return gy(n,o,t,r)}))}function jE(t){return t===void 0&&(t=1/0),mo(ki,t)}var BE=["addListener","removeListener"],qE=["addEventListener","removeEventListener"],KE=["on","off"];function vd(t,e,r,n){if(de(r)&&(n=r,r=void 0),n)return vd(t,e,r).pipe(zE(n));var o=Ir(WE(t)?qE.map(function(s){return function(c){return t[s](e,c,r)}}):GE(t)?BE.map(_p(t,e)):VE(t)?KE.map(_p(t,e)):[],2),i=o[0],a=o[1];if(!i&&Hh(t))return mo(function(s){return vd(s,e,r)})(Bt(t));if(!i)throw new TypeError("Invalid event target");return new Ie(function(s){var c=function(){for(var l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return s.next(1<l.length?l:l[0])};return i(c),function(){return a(c)}})}function _p(t,e){return function(r){return function(n){return t[r](e,n)}}}function GE(t){return de(t.addListener)&&de(t.removeListener)}function VE(t){return de(t.on)&&de(t.off)}function WE(t){return de(t.addEventListener)&&de(t.removeEventListener)}function YE(t,e,r){t===void 0&&(t=0),r===void 0&&(r=_E);var n=-1;return e!=null&&(ty(e)?r=e:n=e),new Ie(function(o){var i=py(t)?+t-r.now():t;i<0&&(i=0);var a=0;return r.schedule(function(){o.closed||(o.next(a++),0<=n?this.schedule(void 0,n):o.complete())},i)})}function QE(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=ry(t),n=EE(t,1/0),o=t;return o.length?o.length===1?Bt(o[0]):jE(n)(br(o,r)):po}function Ai(t,e){return Be(function(r,n){var o=0;r.subscribe(Ue(n,function(i){return t.call(e,i,o++)&&n.next(i)}))})}function rn(t){return Be(function(e,r){var n=null,o=!1,i;n=e.subscribe(Ue(r,void 0,void 0,function(a){i=Bt(t(a,rn(t)(e))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function JE(t,e,r,n,o){return function(i,a){var s=r,c=e,l=0;i.subscribe(Ue(a,function(u){var h=l++;c=s?t(c,u,h):(s=!0,u),n&&a.next(c)},o&&function(){s&&a.next(c),a.complete()}))}}function XE(t){return Be(function(e,r){var n=!1;e.subscribe(Ue(r,function(o){n=!0,r.next(o)},function(){n||r.next(t),r.complete()}))})}function my(t,e){return e===void 0&&(e=ki),t=t!=null?t:ZE,Be(function(r,n){var o,i=!0;r.subscribe(Ue(n,function(a){var s=e(a);(i||!t(o,s))&&(i=!1,o=s,n.next(a))}))})}function ZE(t,e){return t===e}function vy(t){return t===void 0&&(t=eC),Be(function(e,r){var n=!1;e.subscribe(Ue(r,function(o){n=!0,r.next(o)},function(){return n?r.complete():r.error(t())}))})}function eC(){return new vl}function tC(t){return t<=0?function(){return po}:Be(function(e,r){var n=[];e.subscribe(Ue(r,function(o){n.push(o),t<n.length&&n.shift()},function(){var o,i;try{for(var a=fo(n),s=a.next();!s.done;s=a.next()){var c=s.value;r.next(c)}}catch(l){o={error:l}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}r.complete()},void 0,function(){n=null}))})}function rC(t,e){var r=arguments.length>=2;return function(n){return n.pipe(t?Ai(function(o,i){return t(o,i,n)}):ki,tC(1),r?XE(e):vy(function(){return new vl}))}}function nC(t,e,r){return r===void 0&&(r=1/0),Be(function(n,o){var i=e;return gy(n,o,function(a,s){return t(i,a,s)},r,function(a){i=a},!1,void 0,function(){return i=null})})}function yy(){return Be(function(t,e){var r,n=!1;t.subscribe(Ue(e,function(o){var i=r;r=o,n&&e.next([i,o]),n=!0}))})}function Fh(t,e){return Be(JE(t,e,arguments.length>=2,!0))}function Qn(t,e){return Be(function(r,n){var o=null,i=0,a=!1,s=function(){return a&&!o&&n.complete()};r.subscribe(Ue(n,function(c){o==null||o.unsubscribe();var l=0,u=i++;Bt(t(c,u)).subscribe(o=Ue(n,function(h){return n.next(e?e(c,h,u,l++):h)},function(){o=null,s()}))},function(){a=!0,s()}))})}function oC(t){return Be(function(e,r){Bt(t).subscribe(Ue(r,function(){return r.complete()},Ac)),!r.closed&&e.subscribe(r)})}function _y(t,e){return e===void 0&&(e=!1),Be(function(r,n){var o=0;r.subscribe(Ue(n,function(i){var a=t(i,o++);(a||e)&&n.next(i),!a&&n.complete()}))})}function yd(t,e,r){var n=de(t)||e||r?{next:t,error:e,complete:r}:t;return n?Be(function(o,i){var a;(a=n.subscribe)===null||a===void 0||a.call(n);var s=!0;o.subscribe(Ue(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)}))}):ki}function iC(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=wE(t);return Be(function(n,o){for(var i=t.length,a=new Array(i),s=t.map(function(){return!1}),c=!1,l=function(h){Bt(t[h]).subscribe(Ue(o,function(d){a[h]=d,!c&&!s[h]&&(s[h]=!0,(c=s.every(ki))&&(s=null))},Ac))},u=0;u<i;u++)l(u);n.subscribe(Ue(o,function(h){if(c){var d=tn([h],Ir(a));o.next(r?r.apply(void 0,tn([],Ir(d))):d)}}))})}var mr=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})};class aC extends Error{constructor(){super("It was too slow"),this.name="RequiredModuleTimeoutError"}}class sC{constructor(e){this.logger=new Wv("ModulesConfigurator"),this._configs=[],this._afterConfiguration=[],this._afterInit=[],this._modules=new Set(e)}get modules(){return[...this._modules]}configure(...e){e.forEach(r=>this.addConfig(r))}addConfig(e){const{module:r,afterConfig:n,afterInit:o,configure:i}=e;this._modules.add(r),i&&this._configs.push((a,s)=>i(a[r.name],s)),n&&this._afterConfiguration.push(a=>n(a[r.name])),o&&this._afterInit.push(a=>o(a[r.name]))}onConfigured(e){this._afterConfiguration.push(e)}onInitialized(e){this._afterInit.push(e)}initialize(e){return mr(this,void 0,void 0,function*(){const r=yield this._configure(e),n=yield this._initialize(r,e);return yield this._postInitialize(n,e),Object.seal(Object.assign({},n,{dispose:()=>this.dispose(n)}))})}_configure(e){return mr(this,void 0,void 0,function*(){const r=yield this._createConfig(e);return yield Promise.all(this._configs.map(n=>Promise.resolve(n(r,e)))),yield this._postConfigure(r),r})}_createConfig(e){const{modules:r,logger:n,_afterConfiguration:o,_afterInit:i}=this,a=br(r).pipe(mo(s=>mr(this,void 0,void 0,function*(){var c;n.debug(`\u{1F6E0} 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(`\u{1F6E0} created configurator for ${n.formatModuleName(s)}`,l),{[s.name]:l}}catch(l){throw n.error(`\u{1F6E0} Failed to created configurator for ${n.formatModuleName(s)}`,l),l}})),Fh((s,c)=>Object.assign(s,c),{onAfterConfiguration(s){o.push(s)},onAfterInit(s){i.push(s)}}));return xc(a)}_postConfigure(e){return mr(this,void 0,void 0,function*(){const{modules:r,logger:n,_afterConfiguration:o}=this;if(yield Promise.allSettled(r.filter(i=>!!i.postConfigure).map(i=>mr(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(`\u{1F3D7}\u{1F4CC} post configured ${n.formatModuleName(i)}`,i)}catch{n.warn(`\u{1F3D7}\u{1F4CC} post configure failed ${n.formatModuleName(i)}`)}}))),o.length)try{n.debug(`\u{1F3D7}\u{1F4CC} post configure hooks [${o.length}]`),yield Promise.allSettled(o.map(i=>Promise.resolve(i(e)))),n.debug("\u{1F3D7}\u{1F4CC} post configure hooks complete")}catch(i){n.warn("\u{1F3D7}\u{1F4CC} post configure hook failed",i)}})}_initialize(e,r){return mr(this,void 0,void 0,function*(){const{modules:n,logger:o}=this,i=n.map(u=>u.name),a=new gl({}),s=u=>i.includes(u),c=(u,h=60)=>{if(!i.includes(u))throw o.error(`\u{1F680}\u231B\uFE0F 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(`\u{1F680}\u231B\uFE0F ${o.formatModuleName(String(u))} is initiated, skipping queue`),Promise.resolve(a.value[u])):(o.debug(`\u{1F680}\u231B\uFE0F Awaiting init ${o.formatModuleName(String(u))}, timeout ${h}s`),go(a.pipe(Ai(d=>!!d[u]),yt(d=>d[u]),DE({each:h*1e3,with:()=>UE(()=>new aC)}))))};br(n).pipe(mo(u=>{const h=u.name;return o.debug(`\u{1F680} initializing ${o.formatModuleName(u)}`),br(Promise.resolve(u.initialize({ref:r,config:e[h],requireInstance:c,hasModule:s}))).pipe(yt(d=>(o.debug(`\u{1F680} initialized ${o.formatModuleName(u)}`),[h,d])))})).subscribe({next:([u,h])=>{a.next(Object.assign(a.value,{[u]:h}))},complete:()=>a.complete()});const l=yield xc(a);return Object.seal(l),l})}_postInitialize(e,r){return mr(this,void 0,void 0,function*(){const{modules:n,logger:o,_afterInit:i}=this;if(yield Promise.allSettled(n.filter(a=>!!a.postInitialize).map(a=>mr(this,void 0,void 0,function*(){var s;try{o.debug(`\u{1F680}\u{1F4CC} post initializing moule ${o.formatModuleName(a)}`),yield(s=a.postInitialize)===null||s===void 0?void 0:s.call(a,{ref:r,modules:e,instance:e[a.name]}),o.debug(`\u{1F680}\u{1F4CC} post initialized moule ${o.formatModuleName(a)}`)}catch{o.warn(`\u{1F680}\u{1F4CC} post initialize failed moule ${o.formatModuleName(a)}`)}}))),i.length)try{o.debug(`\u{1F680}\u{1F4CC} post configure hooks [${i.length}]`),yield Promise.allSettled(i.map(a=>Promise.resolve(a(e)))),o.debug("\u{1F680}\u{1F4CC} post configure hooks complete")}catch(a){o.warn("\u{1F680}\u{1F4CC} post configure hook failed",a)}o.debug(`\u{1F389} Modules initialized ${n.map(o.formatModuleName)}`,e),o.info("\u{1F7E2} Modules initialized")})}dispose(e,r){return mr(this,void 0,void 0,function*(){const{modules:n}=this;yield Promise.allSettled(n.filter(o=>!!o.dispose).map(o=>mr(this,void 0,void 0,function*(){var i;yield(i=o.dispose)===null||i===void 0?void 0:i.call(o,{ref:r,modules:e,instance:e[o.name]})})))})}}var bo=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,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"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},$n=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Vs,Ws,Zi,Ys,ea,_d;class cC{constructor(e,r){this.__type=e,Vs.set(this,void 0),Ws.set(this,void 0),Zi.set(this,!1),Ys.set(this,void 0),ea.set(this,void 0),_d.set(this,Date.now()),bo(this,Vs,r.detail,"f"),bo(this,Ws,r.source,"f"),bo(this,Ys,!!r.cancelable,"f"),bo(this,ea,r.canBubble===void 0?!0:r.canBubble,"f")}get bubbles(){return $n(this,ea,"f")&&!$n(this,Zi,"f")}get created(){return $n(this,_d,"f")}get cancelable(){return $n(this,Ys,"f")}get canceled(){return $n(this,Zi,"f")}get detail(){return $n(this,Vs,"f")}get source(){return $n(this,Ws,"f")}get type(){return this.__type}preventDefault(){this.cancelable&&bo(this,Zi,!0,"f")}stopPropagation(){bo(this,ea,!1,"f")}}Vs=new WeakMap,Ws=new WeakMap,Zi=new WeakMap,Ys=new WeakMap,ea=new WeakMap,_d=new WeakMap;var lC=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})};class uC{constructor({onDispatch:e,onBubble:r}){this.__onDispatch=e,this.__onBubble=r}dispatch(e,r){var n,o;return lC(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 r)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 wp=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})};class dC extends Ie{get closed(){return this.__event$.closed}constructor(e){super(r=>{this.__event$.subscribe(r)}),this.__listeners=[],this.__event$=new Gr,this.__dispatcher=new uC({onDispatch:e.onDispatch,onBubble:e.onBubble})}addEventListener(e,r){if(this.closed)throw Error("Cannot listen to events when provider is closed!");const n={type:e,handler:r};return this.__listeners.push(n),()=>{const o=this.__listeners.indexOf(n);0<=o&&this.__listeners.splice(o,1)}}dispatchEvent(e,r){return wp(this,void 0,void 0,function*(){if(typeof e=="string"){if(!r)throw Error("invalid arguments, missing [FrameworkEventInit]");return this._dispatchEvent(new cC(e,r))}else return this._dispatchEvent(e)})}_dispatchEvent(e){return wp(this,void 0,void 0,function*(){if(this.closed)throw Error("Cannot dispatch events when provider is closed!");this.__event$.next(e);try{const r=this.__listeners.filter(n=>n.type===e.type).map(({handler:n})=>n);yield this.__dispatcher.dispatch(e,r)}catch(r){throw r}return e})}dispose(){this.__listeners=[],this.__event$.complete()}}var hC=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})};const fC="event",pC={name:fC,configure:t=>{const e={},r=t==null?void 0:t.event;return r&&(e.onBubble=n=>hC(void 0,void 0,void 0,function*(){yield r.dispatchEvent(n)})),e},initialize:({config:t})=>new dC(t),postInitialize({instance:t,modules:e}){t.dispatchEvent("onModulesLoaded",{detail:e,source:t})},dispose({instance:t}){t.dispose()}};class wy{constructor(){this._operators={}}add(e,r){if(Object.keys(this._operators).includes(e))throw Error(`Operator [${e}] already defined`);return this.set(e,r)}set(e,r){return this._operators[e]=r,this}get(e){return this._operators[e]}process(e){return Object.values(this._operators).length?br(Object.values(this._operators)).pipe(nC((n,o)=>Promise.resolve(o(n)).then(i=>i!=null?i:n),e,1),rC()):ml(e)}}const gC=(t,e)=>r=>{const n=new Headers(r.headers);return n.append(t,e),Object.assign(Object.assign({},r),{headers:n})};class Ey extends wy{setHeader(e,r){const n=gC(e,r);return this.set("header-"+e,n)}}class mC extends wy{}class vC{get clients(){return Object.assign({},this._clients)}constructor(e){this._clients={},this.defaultHttpRequestHandler=new Ey,this.defaultHttpClientCtor=e}hasClient(e){return Object.keys(this._clients).includes(e)}configureClient(e,r){const n=typeof r=="string"?i=>i.uri=String(r):r,o=typeof n=="function"?{onCreate:n}:n;return this._clients[e]=Object.assign(Object.assign({},this._clients[e]),o),this}}class yC extends Error{constructor(e){super(e)}}const _C=t=>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(t);class wC{get defaultHttpRequestHandler(){return this.config.defaultHttpRequestHandler}constructor(e){this.config=e}hasClient(e){return Object.keys(this.config.clients).includes(e)}createClient(e){const r=this._resolveConfig(e),{baseUri:n,defaultScopes:o=[],onCreate:i,ctor:a=this.config.defaultHttpClientCtor,requestHandler:s=this.defaultHttpRequestHandler}=r,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 r=this.config.clients[e];if(!r&&_C(e))return{baseUri:e};if(!r)throw new yC(`No registered http client for key [${e}]`);return r}return e}}function EC(t,e){e===void 0&&(e={});var r=e.selector,n=Yv(e,["selector"]);return new Ie(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=ho(ho({},n),{signal:a}),h=function(d){s=!1,o.error(d)};return fetch(t,u).then(function(d){r?Bt(r(d)).subscribe(Ue(o,void 0,function(){s=!1,o.complete()},h)):(s=!1,o.next(d),o.complete())}).catch(h),function(){s&&i.abort()}})}const CC=t=>{if(!t.ok)throw new Error("Network response was not OK");if(t.status===204)return Promise.resolve();try{return t.json()}catch{throw Error("failed to parse response")}};var Ep=globalThis&&globalThis.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r};class SC{get request$(){return this._request$.asObservable()}get response$(){return this._response$.asObservable()}constructor(e,r){var n,o;this.uri=e,this._request$=new Gr,this._response$=new Gr,this._abort$=new Gr,this.requestHandler=(n=r==null?void 0:r.requestHandler)!==null&&n!==void 0?n:new Ey,this.responseHandler=(o=r==null?void 0:r.responseHandler)!==null&&o!==void 0?o:new mC,this._init()}_init(){}fetch$(e,r){return this._fetch$(e,r)}fetch(e,r){return go(this.fetch$(e,r))}fetchAsync(e,r){return this.fetch(e,r)}json$(e,r){var n;const o=typeof(r==null?void 0:r.body)=="object"?JSON.stringify(r==null?void 0:r.body):r==null?void 0:r.body,i=(n=r==null?void 0:r.selector)!==null&&n!==void 0?n:CC;return new Headers(r==null?void 0:r.headers).append("Content-Type","application/json"),this.fetch$(e,Object.assign(Object.assign({},r),{body:o,selector:i}))}json(e,r){return go(this.json$(e,r))}jsonAsync(e,r){return this.json(e,r)}execute(e,r,n){return this[e](r,n)}abort(){this._abort$.next()}_fetch$(e,r){const n=r||{},{selector:o}=n,i=Ep(n,["selector"]);return ml(Object.assign(Object.assign({},i),{uri:this._resolveUrl(e)})).pipe(Qn(s=>this._prepareRequest(s)),yd(s=>this._request$.next(s)),Qn(s=>{var{uri:c,path:l}=s,u=Ep(s,["uri","path"]);return EC(c,u)}),Qn(s=>this._prepareResponse(s)),yd(s=>this._response$.next(s)),Qn(s=>o?o(s):Promise.resolve(s)),oC(this._abort$))}_prepareRequest(e){return this.requestHandler.process(e)}_prepareResponse(e){return this.responseHandler.process(e)}_resolveUrl(e){const r=this.uri||window.location.origin;return new URL(e,r).href}}class TC extends SC{constructor(){super(...arguments),this.defaultScopes=[]}fetch$(e,r){const n=Object.assign(r||{},{scopes:this.defaultScopes.concat((r==null?void 0:r.scopes)||[])});return super._fetch$(e,n)}}var Cp=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})};const $h={name:"http",configure:()=>new vC(TC),initialize:({config:t,hasModule:e,requireInstance:r})=>Cp(void 0,void 0,void 0,function*(){const n=new wC(t);if(e("auth")){const o=yield r("auth");n.defaultHttpRequestHandler.set("MSAL",i=>Cp(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})},bC=t=>({module:$h,configure:t}),Cy=(t,e)=>({module:$h,configure:r=>{r.configureClient(t,e)}}),nu="default";class IC{constructor(){this._configs={},this.requiresAuth=!0}get defaultConfig(){return this._configs[nu]}getClientConfig(e){return this._configs[e]}configureClient(e,r){return this._configs[e]=r,this}configureDefault(e){if(this._configs[nu])throw Error("Default AuthClient already provided");this.configureClient(nu,e)}}/*! @azure/msal-browser v2.31.0 2022-11-07 *//*! *****************************************************************************
|
|
36
|
+
Copyright (c) Microsoft Corporation.
|
|
37
|
+
|
|
38
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
39
|
+
purpose with or without fee is hereby granted.
|
|
40
|
+
|
|
41
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
42
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
43
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
44
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
45
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
46
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
47
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
48
|
+
***************************************************************************** */var wd=function(t,e){return wd=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},wd(t,e)};function ot(t,e){wd(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var $=function(){return $=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},$.apply(this,arguments)};function Sp(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r}function S(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})}function T(t,e){var r={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(;r;)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 r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=e.call(t,r)}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 kC(t,e){var r=typeof Symbol=="function"&&t[Symbol.iterator];if(!r)return t;var n=r.call(t),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&&(r=n.return)&&r.call(n)}finally{if(a)throw a.error}}return i}function zh(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(kC(arguments[e]));return t}/*! @azure/msal-common v8.0.0 2022-11-07 *//*! *****************************************************************************
|
|
49
|
+
Copyright (c) Microsoft Corporation.
|
|
50
|
+
|
|
51
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
52
|
+
purpose with or without fee is hereby granted.
|
|
53
|
+
|
|
54
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
55
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
56
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
57
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
58
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
59
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
60
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
61
|
+
***************************************************************************** */var Ed=function(t,e){return Ed=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(r[o]=n[o])},Ed(t,e)};function Mt(t,e){Ed(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var ve=function(){return ve=Object.assign||function(e){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e},ve.apply(this,arguments)};function K(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})}function G(t,e){var r={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(;r;)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 r.label++,{value:l[1],done:!1};case 5:r.label++,o=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(l[0]===6||l[0]===2)){r=0;continue}if(l[0]===3&&(!i||l[1]>i[0]&&l[1]<i[3])){r.label=l[1];break}if(l[0]===6&&r.label<i[1]){r.label=i[1],i=l;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(l);break}i[2]&&r.ops.pop(),r.trys.pop();continue}l=e.call(t,r)}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 yl(){for(var t=0,e=0,r=arguments.length;e<r;e++)t+=arguments[e].length;for(var n=Array(t),o=0,e=0;e<r;e++)for(var i=arguments[e],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n}/*! @azure/msal-common v8.0.0 2022-11-07 */var _={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=",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:"",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},ts=[_.OPENID_SCOPE,_.PROFILE_SCOPE,_.OFFLINE_ACCESS_SCOPE],Tp=yl(ts,[_.EMAIL_SCOPE]),hr;(function(t){t.CONTENT_TYPE="Content-Type",t.RETRY_AFTER="Retry-After",t.CCS_HEADER="X-AnchorMailbox",t.WWWAuthenticate="WWW-Authenticate",t.AuthenticationInfo="Authentication-Info",t.X_MS_REQUEST_ID="x-ms-request-id"})(hr||(hr={}));var He;(function(t){t.ID_TOKEN="idtoken",t.CLIENT_INFO="client.info",t.ADAL_ID_TOKEN="adal.idtoken",t.ERROR="error",t.ERROR_DESC="error.description",t.ACTIVE_ACCOUNT="active-account",t.ACTIVE_ACCOUNT_FILTERS="active-account-filters"})(He||(He={}));var Mc;(function(t){t.COMMON="common",t.ORGANIZATIONS="organizations",t.CONSUMERS="consumers"})(Mc||(Mc={}));var Q;(function(t){t.CLIENT_ID="client_id",t.REDIRECT_URI="redirect_uri",t.RESPONSE_TYPE="response_type",t.RESPONSE_MODE="response_mode",t.GRANT_TYPE="grant_type",t.CLAIMS="claims",t.SCOPE="scope",t.ERROR="error",t.ERROR_DESCRIPTION="error_description",t.ACCESS_TOKEN="access_token",t.ID_TOKEN="id_token",t.REFRESH_TOKEN="refresh_token",t.EXPIRES_IN="expires_in",t.STATE="state",t.NONCE="nonce",t.PROMPT="prompt",t.SESSION_STATE="session_state",t.CLIENT_INFO="client_info",t.CODE="code",t.CODE_CHALLENGE="code_challenge",t.CODE_CHALLENGE_METHOD="code_challenge_method",t.CODE_VERIFIER="code_verifier",t.CLIENT_REQUEST_ID="client-request-id",t.X_CLIENT_SKU="x-client-SKU",t.X_CLIENT_VER="x-client-VER",t.X_CLIENT_OS="x-client-OS",t.X_CLIENT_CPU="x-client-CPU",t.X_CLIENT_CURR_TELEM="x-client-current-telemetry",t.X_CLIENT_LAST_TELEM="x-client-last-telemetry",t.X_MS_LIB_CAPABILITY="x-ms-lib-capability",t.X_APP_NAME="x-app-name",t.X_APP_VER="x-app-ver",t.POST_LOGOUT_URI="post_logout_redirect_uri",t.ID_TOKEN_HINT="id_token_hint",t.DEVICE_CODE="device_code",t.CLIENT_SECRET="client_secret",t.CLIENT_ASSERTION="client_assertion",t.CLIENT_ASSERTION_TYPE="client_assertion_type",t.TOKEN_TYPE="token_type",t.REQ_CNF="req_cnf",t.OBO_ASSERTION="assertion",t.REQUESTED_TOKEN_USE="requested_token_use",t.ON_BEHALF_OF="on_behalf_of",t.FOCI="foci",t.CCS_HEADER="X-AnchorMailbox",t.RETURN_SPA_CODE="return_spa_code",t.NATIVE_BROKER="nativebroker",t.LOGOUT_HINT="logout_hint"})(Q||(Q={}));var Vo;(function(t){t.ACCESS_TOKEN="access_token",t.XMS_CC="xms_cc"})(Vo||(Vo={}));var mt={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},ya;(function(t){t.ACCOUNT="account",t.SID="sid",t.LOGIN_HINT="login_hint",t.ID_TOKEN="id_token",t.DOMAIN_HINT="domain_hint",t.ORGANIZATIONS="organizations",t.CONSUMERS="consumers",t.ACCOUNT_ID="accountIdentifier",t.HOMEACCOUNT_ID="homeAccountIdentifier"})(ya||(ya={}));var bp={PLAIN:"plain",S256:"S256"},Uc;(function(t){t.QUERY="query",t.FRAGMENT="fragment",t.FORM_POST="form_post"})(Uc||(Uc={}));var Lc;(function(t){t.IMPLICIT_GRANT="implicit",t.AUTHORIZATION_CODE_GRANT="authorization_code",t.CLIENT_CREDENTIALS_GRANT="client_credentials",t.RESOURCE_OWNER_PASSWORD_GRANT="password",t.REFRESH_TOKEN_GRANT="refresh_token",t.DEVICE_CODE_GRANT="device_code",t.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"})(Lc||(Lc={}));var Fr;(function(t){t.MSSTS_ACCOUNT_TYPE="MSSTS",t.ADFS_ACCOUNT_TYPE="ADFS",t.MSAV1_ACCOUNT_TYPE="MSA",t.GENERIC_ACCOUNT_TYPE="Generic"})(Fr||(Fr={}));var Ft;(function(t){t.CACHE_KEY_SEPARATOR="-",t.CLIENT_INFO_SEPARATOR="."})(Ft||(Ft={}));var ee;(function(t){t.ID_TOKEN="IdToken",t.ACCESS_TOKEN="AccessToken",t.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",t.REFRESH_TOKEN="RefreshToken"})(ee||(ee={}));var to;(function(t){t.ACCOUNT="Account",t.CREDENTIAL="Credential",t.ID_TOKEN="IdToken",t.ACCESS_TOKEN="AccessToken",t.REFRESH_TOKEN="RefreshToken",t.APP_METADATA="AppMetadata",t.TEMPORARY="TempCache",t.TELEMETRY="Telemetry",t.UNDEFINED="Undefined",t.THROTTLING="Throttling"})(to||(to={}));var Br;(function(t){t[t.ADFS=1001]="ADFS",t[t.MSA=1002]="MSA",t[t.MSSTS=1003]="MSSTS",t[t.GENERIC=1004]="GENERIC",t[t.ACCESS_TOKEN=2001]="ACCESS_TOKEN",t[t.REFRESH_TOKEN=2002]="REFRESH_TOKEN",t[t.ID_TOKEN=2003]="ID_TOKEN",t[t.APP_METADATA=3001]="APP_METADATA",t[t.UNDEFINED=9999]="UNDEFINED"})(Br||(Br={}));var Cd="appmetadata",AC="client_info",Dc="1",_a={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},qt;(function(t){t.CONFIG="config",t.CACHE="cache",t.NETWORK="network",t.HARDCODED_VALUES="hardcoded_values"})(qt||(qt={}));var Ye={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"},le;(function(t){t.BEARER="Bearer",t.POP="pop",t.SSH="ssh-cert"})(le||(le={}));var wa={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},Ip={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},Hc;(function(t){t.username="username",t.password="password"})(Hc||(Hc={}));var Wo;(function(t){t[t.httpSuccess=200]="httpSuccess",t[t.httpBadRequest=400]="httpBadRequest"})(Wo||(Wo={}));var gn;(function(t){t.FAILED_AUTO_DETECTION="1",t.INTERNAL_CACHE="2",t.ENVIRONMENT_VARIABLE="3",t.IMDS="4"})(gn||(gn={}));var Gn;(function(t){t.CONFIGURED_MATCHES_DETECTED="1",t.CONFIGURED_NO_AUTO_DETECTION="2",t.CONFIGURED_NOT_DETECTED="3",t.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",t.AUTO_DETECTION_REQUESTED_FAILED="5"})(Gn||(Gn={}));var Jn;(function(t){t.NO_CACHE_HIT="0",t.FORCE_REFRESH="1",t.NO_CACHED_ACCESS_TOKEN="2",t.CACHED_ACCESS_TOKEN_EXPIRED="3",t.REFRESH_CACHED_ACCESS_TOKEN="4"})(Jn||(Jn={}));var Sd;(function(t){t.Jwt="JWT",t.Jwk="JWK"})(Sd||(Sd={}));/*! @azure/msal-common v8.0.0 2022-11-07 */var As={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."}},z=function(t){Mt(e,t);function e(r,n,o){var i=this,a=n?r+": "+n:r;return i=t.call(this,a)||this,Object.setPrototypeOf(i,e.prototype),i.errorCode=r||_.EMPTY_STRING,i.errorMessage=n||_.EMPTY_STRING,i.subError=o||_.EMPTY_STRING,i.name="AuthError",i}return e.prototype.setCorrelationId=function(r){this.correlationId=r},e.createUnexpectedError=function(r){return new e(As.unexpectedError.code,As.unexpectedError.desc+": "+r)},e.createPostRequestFailed=function(r){return new e(As.postRequestFailed.code,As.postRequestFailed.desc+": "+r)},e}(Error);/*! @azure/msal-common v8.0.0 2022-11-07 */var Fc={createNewGuid:function(){var t="Crypto interface - createNewGuid() has not been implemented";throw z.createUnexpectedError(t)},base64Decode:function(){var t="Crypto interface - base64Decode() has not been implemented";throw z.createUnexpectedError(t)},base64Encode:function(){var t="Crypto interface - base64Encode() has not been implemented";throw z.createUnexpectedError(t)},generatePkceCodes:function(){return K(this,void 0,void 0,function(){var t;return G(this,function(e){throw t="Crypto interface - generatePkceCodes() has not been implemented",z.createUnexpectedError(t)})})},getPublicKeyThumbprint:function(){return K(this,void 0,void 0,function(){var t;return G(this,function(e){throw t="Crypto interface - getPublicKeyThumbprint() has not been implemented",z.createUnexpectedError(t)})})},removeTokenBindingKey:function(){return K(this,void 0,void 0,function(){var t;return G(this,function(e){throw t="Crypto interface - removeTokenBindingKey() has not been implemented",z.createUnexpectedError(t)})})},clearKeystore:function(){return K(this,void 0,void 0,function(){var t;return G(this,function(e){throw t="Crypto interface - clearKeystore() has not been implemented",z.createUnexpectedError(t)})})},signJwt:function(){return K(this,void 0,void 0,function(){var t;return G(this,function(e){throw t="Crypto interface - signJwt() has not been implemented",z.createUnexpectedError(t)})})},hashString:function(){return K(this,void 0,void 0,function(){var t;return G(this,function(e){throw t="Crypto interface - hashString() has not been implemented",z.createUnexpectedError(t)})})}};/*! @azure/msal-common v8.0.0 2022-11-07 */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."}},D=function(t){Mt(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.name="ClientAuthError",Object.setPrototypeOf(o,e.prototype),o}return e.createClientInfoDecodingError=function(r){return new e(A.clientInfoDecodingError.code,A.clientInfoDecodingError.desc+" Failed with error: "+r)},e.createClientInfoEmptyError=function(){return new e(A.clientInfoEmptyError.code,""+A.clientInfoEmptyError.desc)},e.createTokenParsingError=function(r){return new e(A.tokenParsingError.code,A.tokenParsingError.desc+" Failed with error: "+r)},e.createTokenNullOrEmptyError=function(r){return new e(A.nullOrEmptyToken.code,A.nullOrEmptyToken.desc+" Raw Token Value: "+r)},e.createEndpointDiscoveryIncompleteError=function(r){return new e(A.endpointResolutionError.code,A.endpointResolutionError.desc+" Detail: "+r)},e.createNetworkError=function(r,n){return new e(A.networkError.code,A.networkError.desc+" | Fetch client threw: "+n+" | Attempted to reach: "+r.split("?")[0])},e.createUnableToGetOpenidConfigError=function(r){return new e(A.unableToGetOpenidConfigError.code,A.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+r)},e.createHashNotDeserializedError=function(r){return new e(A.hashNotDeserialized.code,A.hashNotDeserialized.desc+" Given Object: "+r)},e.createInvalidStateError=function(r,n){return new e(A.invalidStateError.code,A.invalidStateError.desc+" Invalid State: "+r+", Root Err: "+n)},e.createStateMismatchError=function(){return new e(A.stateMismatchError.code,A.stateMismatchError.desc)},e.createStateNotFoundError=function(r){return new e(A.stateNotFoundError.code,A.stateNotFoundError.desc+": "+r)},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(r){return new e(A.nonceNotFoundError.code,A.nonceNotFoundError.desc+": "+r)},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(r){return new e(A.appendEmptyScopeError.code,A.appendEmptyScopeError.desc+" Given Scope: "+r)},e.createRemoveEmptyScopeFromSetError=function(r){return new e(A.removeEmptyScopeError.code,A.removeEmptyScopeError.desc+" Given Scope: "+r)},e.createAppendScopeSetError=function(r){return new e(A.appendScopeSetError.code,A.appendScopeSetError.desc+" Detail Error: "+r)},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(r){return new e(A.noCryptoObj.code,""+A.noCryptoObj.desc+r)},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}(z);/*! @azure/msal-common v8.0.0 2022-11-07 */var x=function(){function t(){}return t.decodeAuthToken=function(e){if(t.isEmpty(e))throw D.createTokenNullOrEmptyError(e);var r=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/,n=r.exec(e);if(!n||n.length<4)throw D.createTokenParsingError("Given token is malformed: "+JSON.stringify(e));var o={header:n[1],JWSPayload:n[2],JWSSig:n[3]};return o},t.isEmpty=function(e){return typeof e>"u"||!e||e.length===0},t.isEmptyObj=function(e){if(e&&!t.isEmpty(e))try{var r=JSON.parse(e);return Object.keys(r).length===0}catch{}return!0},t.startsWith=function(e,r){return e.indexOf(r)===0},t.endsWith=function(e,r){return e.length>=r.length&&e.lastIndexOf(r)===e.length-r.length},t.queryStringToObject=function(e){var r={},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&&(r[o(s)]=o(c))}}),r},t.trimArrayEntries=function(e){return e.map(function(r){return r.trim()})},t.removeEmptyStringsFromArray=function(e){return e.filter(function(r){return!t.isEmpty(r)})},t.jsonParseHelper=function(e){try{return JSON.parse(e)}catch{return null}},t.matchPattern=function(e,r){var n=new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?"));return n.test(r)},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var xe;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Info=2]="Info",t[t.Verbose=3]="Verbose",t[t.Trace=4]="Trace"})(xe||(xe={}));var jh=function(){function t(e,r,n){this.level=xe.Info;var o=function(){};this.localCallback=e.loggerCallback||o,this.piiLoggingEnabled=e.piiLoggingEnabled||!1,this.level=typeof e.logLevel=="number"?e.logLevel:xe.Info,this.correlationId=e.correlationId||_.EMPTY_STRING,this.packageName=r||_.EMPTY_STRING,this.packageVersion=n||_.EMPTY_STRING}return t.prototype.clone=function(e,r,n){return new t({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:n||this.correlationId},e,r)},t.prototype.logMessage=function(e,r){if(!(r.logLevel>this.level||!this.piiLoggingEnabled&&r.containsPii)){var n=new Date().toUTCString(),o;x.isEmpty(r.correlationId)?x.isEmpty(this.correlationId)?o="["+n+"]":o="["+n+"] : ["+this.correlationId+"]":o="["+n+"] : ["+r.correlationId+"]";var i=o+" : "+this.packageName+"@"+this.packageVersion+" : "+xe[r.logLevel]+" - "+e;this.executeCallback(r.logLevel,i,r.containsPii||!1)}},t.prototype.executeCallback=function(e,r,n){this.localCallback&&this.localCallback(e,r,n)},t.prototype.error=function(e,r){this.logMessage(e,{logLevel:xe.Error,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.errorPii=function(e,r){this.logMessage(e,{logLevel:xe.Error,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.warning=function(e,r){this.logMessage(e,{logLevel:xe.Warning,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.warningPii=function(e,r){this.logMessage(e,{logLevel:xe.Warning,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.info=function(e,r){this.logMessage(e,{logLevel:xe.Info,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.infoPii=function(e,r){this.logMessage(e,{logLevel:xe.Info,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.verbose=function(e,r){this.logMessage(e,{logLevel:xe.Verbose,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.verbosePii=function(e,r){this.logMessage(e,{logLevel:xe.Verbose,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.trace=function(e,r){this.logMessage(e,{logLevel:xe.Trace,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.tracePii=function(e,r){this.logMessage(e,{logLevel:xe.Trace,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var RC="@azure/msal-common",Sy="8.0.0";/*! @azure/msal-common v8.0.0 2022-11-07 */var $a;(function(t){t[t.None=0]="None",t.AzurePublic="https://login.microsoftonline.com",t.AzurePpe="https://login.windows-ppe.net",t.AzureChina="https://login.chinacloudapi.cn",t.AzureGermany="https://login.microsoftonline.de",t.AzureUsGovernment="https://login.microsoftonline.us"})($a||($a={}));/*! @azure/msal-common v8.0.0 2022-11-07 */var za=function(){function t(){}return t.prototype.generateAccountId=function(){return t.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},t.prototype.generateCredentialId=function(){return t.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},t.prototype.generateTarget=function(){return t.generateTargetForCacheKey(this.target)},t.prototype.generateCredentialKey=function(){return t.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},t.prototype.generateType=function(){switch(this.credentialType){case ee.ID_TOKEN:return Br.ID_TOKEN;case ee.ACCESS_TOKEN:case ee.ACCESS_TOKEN_WITH_AUTH_SCHEME:return Br.ACCESS_TOKEN;case ee.REFRESH_TOKEN:return Br.REFRESH_TOKEN;default:throw D.createUnexpectedCredentialTypeError()}},t.getCredentialType=function(e){return e.indexOf(ee.ACCESS_TOKEN.toLowerCase())!==-1?e.indexOf(ee.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())!==-1?ee.ACCESS_TOKEN_WITH_AUTH_SCHEME:ee.ACCESS_TOKEN:e.indexOf(ee.ID_TOKEN.toLowerCase())!==-1?ee.ID_TOKEN:e.indexOf(ee.REFRESH_TOKEN.toLowerCase())!==-1?ee.REFRESH_TOKEN:_.NOT_DEFINED},t.generateCredentialCacheKey=function(e,r,n,o,i,a,s,c,l){var u=[this.generateAccountIdForCacheKey(e,r),this.generateCredentialIdForCacheKey(n,o,i,s),this.generateTargetForCacheKey(a),this.generateClaimsHashForCacheKey(l),this.generateSchemeForCacheKey(c)];return u.join(Ft.CACHE_KEY_SEPARATOR).toLowerCase()},t.generateAccountIdForCacheKey=function(e,r){var n=[e,r];return n.join(Ft.CACHE_KEY_SEPARATOR).toLowerCase()},t.generateCredentialIdForCacheKey=function(e,r,n,o){var i=e===ee.REFRESH_TOKEN&&o||r,a=[e,i,n||_.EMPTY_STRING];return a.join(Ft.CACHE_KEY_SEPARATOR).toLowerCase()},t.generateTargetForCacheKey=function(e){return(e||_.EMPTY_STRING).toLowerCase()},t.generateClaimsHashForCacheKey=function(e){return(e||_.EMPTY_STRING).toLowerCase()},t.generateSchemeForCacheKey=function(e){return e&&e.toLowerCase()!==le.BEARER.toLowerCase()?e.toLowerCase():_.EMPTY_STRING},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var Y={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"}},Ee=function(t){Mt(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.name="ClientConfigurationError",Object.setPrototypeOf(o,e.prototype),o}return e.createRedirectUriEmptyError=function(){return new e(Y.redirectUriNotSet.code,Y.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(Y.postLogoutUriNotSet.code,Y.postLogoutUriNotSet.desc)},e.createClaimsRequestParsingError=function(r){return new e(Y.claimsRequestParsingError.code,Y.claimsRequestParsingError.desc+" Given value: "+r)},e.createInsecureAuthorityUriError=function(r){return new e(Y.authorityUriInsecure.code,Y.authorityUriInsecure.desc+" Given URI: "+r)},e.createUrlParseError=function(r){return new e(Y.urlParseError.code,Y.urlParseError.desc+" Given Error: "+r)},e.createUrlEmptyError=function(){return new e(Y.urlEmptyError.code,Y.urlEmptyError.desc)},e.createEmptyScopesArrayError=function(){return new e(Y.emptyScopesError.code,""+Y.emptyScopesError.desc)},e.createClientIdSingleScopeError=function(r){return new e(Y.clientIdSingleScopeError.code,Y.clientIdSingleScopeError.desc+" Given Scopes: "+r)},e.createInvalidPromptError=function(r){return new e(Y.invalidPrompt.code,Y.invalidPrompt.desc+" Given value: "+r)},e.createInvalidClaimsRequestError=function(){return new e(Y.invalidClaimsRequest.code,Y.invalidClaimsRequest.desc)},e.createEmptyLogoutRequestError=function(){return new e(Y.logoutRequestEmptyError.code,Y.logoutRequestEmptyError.desc)},e.createEmptyTokenRequestError=function(){return new e(Y.tokenRequestEmptyError.code,Y.tokenRequestEmptyError.desc)},e.createInvalidCodeChallengeMethodError=function(){return new e(Y.invalidCodeChallengeMethod.code,Y.invalidCodeChallengeMethod.desc)},e.createInvalidCodeChallengeParamsError=function(){return new e(Y.invalidCodeChallengeParams.code,Y.invalidCodeChallengeParams.desc)},e.createInvalidCloudDiscoveryMetadataError=function(){return new e(Y.invalidCloudDiscoveryMetadata.code,Y.invalidCloudDiscoveryMetadata.desc)},e.createInvalidAuthorityMetadataError=function(){return new e(Y.invalidAuthorityMetadata.code,Y.invalidAuthorityMetadata.desc)},e.createUntrustedAuthorityError=function(){return new e(Y.untrustedAuthority.code,Y.untrustedAuthority.desc)},e.createInvalidAzureCloudInstanceError=function(){return new e(Y.invalidAzureCloudInstance.code,Y.invalidAzureCloudInstance.desc)},e.createMissingSshJwkError=function(){return new e(Y.missingSshJwk.code,Y.missingSshJwk.desc)},e.createMissingSshKidError=function(){return new e(Y.missingSshKid.code,Y.missingSshKid.desc)},e.createMissingNonceAuthenticationHeadersError=function(){return new e(Y.missingNonceAuthenticationHeader.code,Y.missingNonceAuthenticationHeader.desc)},e.createInvalidAuthenticationHeaderError=function(r,n){return new e(Y.invalidAuthenticationHeader.code,Y.invalidAuthenticationHeader.desc+". Invalid header: "+r+". Details: "+n)},e}(D);/*! @azure/msal-common v8.0.0 2022-11-07 */var Ct=function(){function t(e){var r=this,n=e?x.trimArrayEntries(yl(e)):[],o=n?x.removeEmptyStringsFromArray(n):[];this.validateInputScopes(o),this.scopes=new Set,o.forEach(function(i){return r.scopes.add(i)})}return t.fromString=function(e){var r=e||_.EMPTY_STRING,n=r.split(" ");return new t(n)},t.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw Ee.createEmptyScopesArrayError()},t.prototype.containsScope=function(e){var r=this.printScopesLowerCase().split(" "),n=new t(r);return x.isEmpty(e)?!1:n.scopes.has(e.toLowerCase())},t.prototype.containsScopeSet=function(e){var r=this;return!e||e.scopes.size<=0?!1:this.scopes.size>=e.scopes.size&&e.asArray().every(function(n){return r.containsScope(n)})},t.prototype.containsOnlyOIDCScopes=function(){var e=this,r=0;return Tp.forEach(function(n){e.containsScope(n)&&(r+=1)}),this.scopes.size===r},t.prototype.appendScope=function(e){x.isEmpty(e)||this.scopes.add(e.trim())},t.prototype.appendScopes=function(e){var r=this;try{e.forEach(function(n){return r.appendScope(n)})}catch(n){throw D.createAppendScopeSetError(n)}},t.prototype.removeScope=function(e){if(x.isEmpty(e))throw D.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},t.prototype.removeOIDCScopes=function(){var e=this;Tp.forEach(function(r){e.scopes.delete(r)})},t.prototype.unionScopeSets=function(e){if(!e)throw D.createEmptyInputScopeSetError();var r=new Set;return e.scopes.forEach(function(n){return r.add(n.toLowerCase())}),this.scopes.forEach(function(n){return r.add(n.toLowerCase())}),r},t.prototype.intersectingScopeSets=function(e){if(!e)throw D.createEmptyInputScopeSetError();e.containsOnlyOIDCScopes()||e.removeOIDCScopes();var r=this.unionScopeSets(e),n=e.getScopeCount(),o=this.getScopeCount(),i=r.size;return i<o+n},t.prototype.getScopeCount=function(){return this.scopes.size},t.prototype.asArray=function(){var e=[];return this.scopes.forEach(function(r){return e.push(r)}),e},t.prototype.printScopes=function(){if(this.scopes){var e=this.asArray();return e.join(" ")}return _.EMPTY_STRING},t.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */function $c(t,e){if(x.isEmpty(t))throw D.createClientInfoEmptyError();try{var r=e.base64Decode(t);return JSON.parse(r)}catch(n){throw D.createClientInfoDecodingError(n.message)}}function Yo(t){if(x.isEmpty(t))throw D.createClientInfoDecodingError("Home account ID was empty.");var e=t.split(Ft.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?_.EMPTY_STRING:e[1]}}/*! @azure/msal-common v8.0.0 2022-11-07 */var Wt;(function(t){t[t.Default=0]="Default",t[t.Adfs=1]="Adfs",t[t.Dsts=2]="Dsts"})(Wt||(Wt={}));/*! @azure/msal-common v8.0.0 2022-11-07 */var tt=function(){function t(){}return t.prototype.generateAccountId=function(){var e=[this.homeAccountId,this.environment];return e.join(Ft.CACHE_KEY_SEPARATOR).toLowerCase()},t.prototype.generateAccountKey=function(){return t.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},t.prototype.generateType=function(){switch(this.authorityType){case Fr.ADFS_ACCOUNT_TYPE:return Br.ADFS;case Fr.MSAV1_ACCOUNT_TYPE:return Br.MSA;case Fr.MSSTS_ACCOUNT_TYPE:return Br.MSSTS;case Fr.GENERIC_ACCOUNT_TYPE:return Br.GENERIC;default:throw D.createUnexpectedAccountTypeError()}},t.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}},t.generateAccountCacheKey=function(e){var r=[e.homeAccountId,e.environment||_.EMPTY_STRING,e.tenantId||_.EMPTY_STRING];return r.join(Ft.CACHE_KEY_SEPARATOR).toLowerCase()},t.createAccount=function(e,r,n,o,i,a,s,c){var l,u,h,d,f,m,v=new t;v.authorityType=Fr.MSSTS_ACCOUNT_TYPE,v.clientInfo=e,v.homeAccountId=r,v.nativeAccountId=c;var E=s||o&&o.getPreferredCache();if(!E)throw D.createInvalidCacheEnvironmentError();if(v.environment=E,v.realm=((l=n==null?void 0:n.claims)===null||l===void 0?void 0:l.tid)||_.EMPTY_STRING,n){v.idTokenClaims=n.claims,v.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)||_.EMPTY_STRING;var g=(d=n==null?void 0:n.claims)===null||d===void 0?void 0:d.preferred_username,p=!((f=n==null?void 0:n.claims)===null||f===void 0)&&f.emails?n.claims.emails[0]:null;v.username=g||p||_.EMPTY_STRING,v.name=(m=n==null?void 0:n.claims)===null||m===void 0?void 0:m.name}return v.cloudGraphHostName=i,v.msGraphHost=a,v},t.createGenericAccount=function(e,r,n,o,i,a){var s,c,l,u,h=new t;h.authorityType=n&&n.authorityType===Wt.Adfs?Fr.ADFS_ACCOUNT_TYPE:Fr.GENERIC_ACCOUNT_TYPE,h.homeAccountId=e,h.realm=_.EMPTY_STRING;var d=a||n&&n.getPreferredCache();if(!d)throw D.createInvalidCacheEnvironmentError();return r&&(h.localAccountId=((s=r==null?void 0:r.claims)===null||s===void 0?void 0:s.oid)||((c=r==null?void 0:r.claims)===null||c===void 0?void 0:c.sub)||_.EMPTY_STRING,h.username=((l=r==null?void 0:r.claims)===null||l===void 0?void 0:l.upn)||_.EMPTY_STRING,h.name=((u=r==null?void 0:r.claims)===null||u===void 0?void 0:u.name)||_.EMPTY_STRING,h.idTokenClaims=r==null?void 0:r.claims),h.environment=d,h.cloudGraphHostName=o,h.msGraphHost=i,h},t.generateHomeAccountId=function(e,r,n,o,i){var a,s=!((a=i==null?void 0:i.claims)===null||a===void 0)&&a.sub?i.claims.sub:_.EMPTY_STRING;if(r===Wt.Adfs||r===Wt.Dsts)return s;if(e)try{var c=$c(e,o);if(!x.isEmpty(c.uid)&&!x.isEmpty(c.utid))return""+c.uid+Ft.CLIENT_INFO_SEPARATOR+c.utid}catch{}return n.verbose("No client info in response"),s},t.isAccountEntity=function(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1},t.accountInfoIsEqual=function(e,r,n){if(!e||!r)return!1;var o=!0;if(n){var i=e.idTokenClaims||{},a=r.idTokenClaims||{};o=i.iat===a.iat&&i.nonce===a.nonce}return e.homeAccountId===r.homeAccountId&&e.localAccountId===r.localAccountId&&e.username===r.username&&e.tenantId===r.tenantId&&e.environment===r.environment&&e.nativeAccountId===r.nativeAccountId&&o},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var kr=function(){function t(e,r){if(x.isEmpty(e))throw D.createTokenNullOrEmptyError(e);this.rawToken=e,this.claims=t.extractTokenClaims(e,r)}return t.extractTokenClaims=function(e,r){var n=x.decodeAuthToken(e);try{var o=n.JWSPayload,i=r.base64Decode(o);return JSON.parse(i)}catch(a){throw D.createTokenParsingError(a)}},t.checkMaxAge=function(e,r){var n=3e5;if(r===0||Date.now()-n>e+r)throw D.createMaxAgeTranspiredError()},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var or=function(){function t(e,r){this.clientId=e,this.cryptoImpl=r}return t.prototype.getAllAccounts=function(){var e=this,r=this.getAccountsFilteredBy(),n=Object.keys(r).map(function(a){return r[a]}),o=n.length;if(o<1)return[];var i=n.map(function(a){var s=t.toObject(new tt,a),c=s.getAccountInfo(),l=e.readIdTokenFromCache(e.clientId,c);return l&&!c.idTokenClaims&&(c.idToken=l.secret,c.idTokenClaims=new kr(l.secret,e.cryptoImpl).claims),c});return i},t.prototype.saveCacheRecord=function(e){return K(this,void 0,void 0,function(){return G(this,function(r){switch(r.label){case 0:if(!e)throw D.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:r.sent(),r.label=2;case 2:return e.refreshToken&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata),[2]}})})},t.prototype.saveAccessToken=function(e){return K(this,void 0,void 0,function(){var r,n,o,i,a=this;return G(this,function(s){switch(s.label){case 0:return r=this.getCredentialsFilteredBy({clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash}),n=Ct.fromString(e.target),o=Object.keys(r.accessTokens).map(function(c){return r.accessTokens[c]}),o?(i=[],o.forEach(function(c){var l=Ct.fromString(c.target);l.intersectingScopeSets(n)&&i.push(a.removeCredential(c))}),[4,Promise.all(i)]):[3,2];case 1:s.sent(),s.label=2;case 2:return this.setAccessTokenCredential(e),[2]}})})},t.prototype.getAccountsFilteredBy=function(e){return this.getAccountsFilteredByInternal(e?e.homeAccountId:_.EMPTY_STRING,e?e.environment:_.EMPTY_STRING,e?e.realm:_.EMPTY_STRING,e?e.nativeAccountId:_.EMPTY_STRING)},t.prototype.getAccountsFilteredByInternal=function(e,r,n,o){var i=this,a=this.getKeys(),s={};return a.forEach(function(c){var l=i.getAccount(c);!l||!!e&&!i.matchHomeAccountId(l,e)||!!r&&!i.matchEnvironment(l,r)||!!n&&!i.matchRealm(l,n)||!!o&&!i.matchNativeAccountId(l,o)||(s[c]=l)}),s},t.prototype.getCredentialsFilteredBy=function(e){return this.getCredentialsFilteredByInternal(e.homeAccountId,e.environment,e.credentialType,e.clientId,e.familyId,e.realm,e.target,e.userAssertionHash,e.tokenType,e.keyId,e.requestedClaimsHash)},t.prototype.getCredentialsFilteredByInternal=function(e,r,n,o,i,a,s,c,l,u,h){var d=this,f=this.getKeys(),m={idTokens:{},accessTokens:{},refreshTokens:{}};return f.forEach(function(v){var E=za.getCredentialType(v);if(E!==_.NOT_DEFINED){var g=d.getSpecificCredential(v,E);if(!!g&&!(!!c&&!d.matchUserAssertionHash(g,c))&&!(typeof e=="string"&&!d.matchHomeAccountId(g,e))&&!(!!r&&!d.matchEnvironment(g,r))&&!(!!a&&!d.matchRealm(g,a))&&!(!!n&&!d.matchCredentialType(g,n))&&!(!!o&&!d.matchClientId(g,o))&&!(!!i&&!d.matchFamilyId(g,i))&&!(!!s&&!d.matchTarget(g,s))&&!((h||g.requestedClaimsHash)&&g.requestedClaimsHash!==h)&&!(n===ee.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(!!l&&!d.matchTokenType(g,l)||l===le.SSH&&u&&!d.matchKeyId(g,u)))){var p=d.updateCredentialCacheKey(v,g);switch(E){case ee.ID_TOKEN:m.idTokens[p]=g;break;case ee.ACCESS_TOKEN:case ee.ACCESS_TOKEN_WITH_AUTH_SCHEME:m.accessTokens[p]=g;break;case ee.REFRESH_TOKEN:m.refreshTokens[p]=g;break}}}}),m},t.prototype.getAppMetadataFilteredBy=function(e){return this.getAppMetadataFilteredByInternal(e.environment,e.clientId)},t.prototype.getAppMetadataFilteredByInternal=function(e,r){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)||!!r&&!n.matchClientId(s,r)||(i[a]=s)}}),i},t.prototype.getAuthorityMetadataByAlias=function(e){var r=this,n=this.getAuthorityMetadataKeys(),o=null;return n.forEach(function(i){if(!(!r.isAuthorityMetadata(i)||i.indexOf(r.clientId)===-1)){var a=r.getAuthorityMetadata(i);!a||a.aliases.indexOf(e)!==-1&&(o=a)}}),o},t.prototype.removeAllAccounts=function(){return K(this,void 0,void 0,function(){var e,r,n=this;return G(this,function(o){switch(o.label){case 0:return e=this.getKeys(),r=[],e.forEach(function(i){var a=n.getAccount(i);!a||r.push(n.removeAccount(i))}),[4,Promise.all(r)];case 1:return o.sent(),[2,!0]}})})},t.prototype.removeAccount=function(e){return K(this,void 0,void 0,function(){var r;return G(this,function(n){switch(n.label){case 0:if(r=this.getAccount(e),!r)throw D.createNoAccountFoundError();return[4,this.removeAccountContext(r)];case 1:return[2,n.sent()&&this.removeItem(e,to.ACCOUNT)]}})})},t.prototype.removeAccountContext=function(e){return K(this,void 0,void 0,function(){var r,n,o,i=this;return G(this,function(a){switch(a.label){case 0:return r=this.getKeys(),n=e.generateAccountId(),o=[],r.forEach(function(s){var c=za.getCredentialType(s);if(c!==_.NOT_DEFINED){var l=i.getSpecificCredential(s,c);!!l&&n===l.generateAccountId()&&o.push(i.removeCredential(l))}}),[4,Promise.all(o)];case 1:return a.sent(),[2,!0]}})})},t.prototype.removeCredential=function(e){return K(this,void 0,void 0,function(){var r,n,o;return G(this,function(i){switch(i.label){case 0:if(r=e.generateCredentialKey(),e.credentialType.toLowerCase()!==ee.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(e.tokenType!==le.POP)return[3,4];if(n=e,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(),D.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(r,to.CREDENTIAL)]}})})},t.prototype.removeAppMetadata=function(){var e=this,r=this.getKeys();return r.forEach(function(n){e.isAppMetadata(n)&&e.removeItem(n,to.APP_METADATA)}),!0},t.prototype.readCacheRecord=function(e,r,n,o){var i=this.readAccountFromCache(e),a=this.readIdTokenFromCache(r,e),s=this.readAccessTokenFromCache(r,e,n),c=this.readRefreshTokenFromCache(r,e,!1),l=this.readAppMetadataFromCache(o,r);return i&&a&&(i.idTokenClaims=new kr(a.secret,this.cryptoImpl).claims),{account:i,idToken:a,accessToken:s,refreshToken:c,appMetadata:l}},t.prototype.readAccountFromCache=function(e){var r=tt.generateAccountCacheKey(e);return this.getAccount(r)},t.prototype.readAccountFromCacheWithNativeAccountId=function(e){var r={nativeAccountId:e},n=this.getAccountsFilteredBy(r),o=Object.keys(n).map(function(i){return n[i]});if(o.length<1)return null;if(o.length>1)throw D.createMultipleMatchingAccountsInCacheError();return n[0]},t.prototype.readIdTokenFromCache=function(e,r){var n={homeAccountId:r.homeAccountId,environment:r.environment,credentialType:ee.ID_TOKEN,clientId:e,realm:r.tenantId},o=this.getCredentialsFilteredBy(n),i=Object.keys(o.idTokens).map(function(s){return o.idTokens[s]}),a=i.length;if(a<1)return null;if(a>1)throw D.createMultipleMatchingTokensInCacheError();return i[0]},t.prototype.readAccessTokenFromCache=function(e,r,n){var o=new Ct(n.scopes||[]),i=n.authenticationScheme||le.BEARER,a=i&&i.toLowerCase()!==le.BEARER.toLowerCase()?ee.ACCESS_TOKEN_WITH_AUTH_SCHEME:ee.ACCESS_TOKEN,s={homeAccountId:r.homeAccountId,environment:r.environment,credentialType:a,clientId:e,realm:r.tenantId,target:o.printScopesLowerCase(),tokenType:i,keyId:n.sshKid,requestedClaimsHash:n.requestedClaimsHash},c=this.getCredentialsFilteredBy(s),l=Object.keys(c.accessTokens).map(function(h){return c.accessTokens[h]}),u=l.length;if(u<1)return null;if(u>1)throw D.createMultipleMatchingTokensInCacheError();return l[0]},t.prototype.readRefreshTokenFromCache=function(e,r,n){var o=n?Dc:void 0,i={homeAccountId:r.homeAccountId,environment:r.environment,credentialType:ee.REFRESH_TOKEN,clientId:e,familyId:o},a=this.getCredentialsFilteredBy(i),s=Object.keys(a.refreshTokens).map(function(l){return a.refreshTokens[l]}),c=s.length;return c<1?null:s[0]},t.prototype.readAppMetadataFromCache=function(e,r){var n={environment:e,clientId:r},o=this.getAppMetadataFilteredBy(n),i=Object.keys(o).map(function(s){return o[s]}),a=i.length;if(a<1)return null;if(a>1)throw D.createMultipleMatchingAppMetadataInCacheError();return i[0]},t.prototype.isAppMetadataFOCI=function(e,r){var n=this.readAppMetadataFromCache(e,r);return!!(n&&n.familyId===Dc)},t.prototype.matchHomeAccountId=function(e,r){return typeof e.homeAccountId=="string"&&r===e.homeAccountId},t.prototype.matchUserAssertionHash=function(e,r){return!!(e.userAssertionHash&&r===e.userAssertionHash)},t.prototype.matchEnvironment=function(e,r){var n=this.getAuthorityMetadataByAlias(r);return!!(n&&n.aliases.indexOf(e.environment)>-1)},t.prototype.matchCredentialType=function(e,r){return e.credentialType&&r.toLowerCase()===e.credentialType.toLowerCase()},t.prototype.matchClientId=function(e,r){return!!(e.clientId&&r===e.clientId)},t.prototype.matchFamilyId=function(e,r){return!!(e.familyId&&r===e.familyId)},t.prototype.matchRealm=function(e,r){return!!(e.realm&&r===e.realm)},t.prototype.matchNativeAccountId=function(e,r){return!!(e.nativeAccountId&&r===e.nativeAccountId)},t.prototype.matchTarget=function(e,r){var n=e.credentialType!==ee.ACCESS_TOKEN&&e.credentialType!==ee.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(n||!e.target)return!1;var o=Ct.fromString(e.target),i=Ct.fromString(r);return i.containsOnlyOIDCScopes()?i.removeScope(_.OFFLINE_ACCESS_SCOPE):i.removeOIDCScopes(),o.containsScopeSet(i)},t.prototype.matchTokenType=function(e,r){return!!(e.tokenType&&e.tokenType===r)},t.prototype.matchKeyId=function(e,r){return!!(e.keyId&&e.keyId===r)},t.prototype.isAppMetadata=function(e){return e.indexOf(Cd)!==-1},t.prototype.isAuthorityMetadata=function(e){return e.indexOf(_a.CACHE_KEY)!==-1},t.prototype.generateAuthorityMetadataCacheKey=function(e){return _a.CACHE_KEY+"-"+this.clientId+"-"+e},t.prototype.getSpecificCredential=function(e,r){switch(r){case ee.ID_TOKEN:return this.getIdTokenCredential(e);case ee.ACCESS_TOKEN:case ee.ACCESS_TOKEN_WITH_AUTH_SCHEME:return this.getAccessTokenCredential(e);case ee.REFRESH_TOKEN:return this.getRefreshTokenCredential(e);default:return null}},t.toObject=function(e,r){for(var n in r)e[n]=r[n];return e},t}(),PC=function(t){Mt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.setAccount=function(){var r="Storage interface - setAccount() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getAccount=function(){var r="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.setIdTokenCredential=function(){var r="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getIdTokenCredential=function(){var r="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.setAccessTokenCredential=function(){var r="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getAccessTokenCredential=function(){var r="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.setRefreshTokenCredential=function(){var r="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getRefreshTokenCredential=function(){var r="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.setAppMetadata=function(){var r="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getAppMetadata=function(){var r="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.setServerTelemetry=function(){var r="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getServerTelemetry=function(){var r="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.setAuthorityMetadata=function(){var r="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getAuthorityMetadata=function(){var r="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getAuthorityMetadataKeys=function(){var r="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.setThrottlingCache=function(){var r="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getThrottlingCache=function(){var r="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.removeItem=function(){var r="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.containsKey=function(){var r="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.getKeys=function(){var r="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e.prototype.clear=function(){return K(this,void 0,void 0,function(){var r;return G(this,function(n){throw r="Storage interface - clear() has not been implemented for the cacheStorage interface.",z.createUnexpectedError(r)})})},e.prototype.updateCredentialCacheKey=function(){var r="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw z.createUnexpectedError(r)},e}(or);/*! @azure/msal-common v8.0.0 2022-11-07 */var NC=300,Ty={tokenRenewalOffsetSeconds:NC,preventCorsPreflight:!1,proxyUrl:_.EMPTY_STRING},OC={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:xe.Info,correlationId:_.EMPTY_STRING},xC={sendGetRequestAsync:function(){return K(this,void 0,void 0,function(){var t;return G(this,function(e){throw t="Network interface - sendGetRequestAsync() has not been implemented",z.createUnexpectedError(t)})})},sendPostRequestAsync:function(){return K(this,void 0,void 0,function(){var t;return G(this,function(e){throw t="Network interface - sendPostRequestAsync() has not been implemented",z.createUnexpectedError(t)})})}},MC={sku:_.SKU,version:Sy,cpu:_.EMPTY_STRING,os:_.EMPTY_STRING},UC={clientSecret:_.EMPTY_STRING,clientAssertion:void 0},LC={azureCloudInstance:$a.None,tenant:""+_.DEFAULT_COMMON_TENANT},DC={application:{appName:"",appVersion:""}};function HC(t){var e=t.authOptions,r=t.systemOptions,n=t.loggerOptions,o=t.storageInterface,i=t.networkInterface,a=t.cryptoInterface,s=t.clientCredentials,c=t.libraryInfo,l=t.telemetry,u=t.serverTelemetryManager,h=t.persistencePlugin,d=t.serializableCache,f=ve(ve({},OC),n);return{authOptions:FC(e),systemOptions:ve(ve({},Ty),r),loggerOptions:f,storageInterface:o||new PC(e.clientId,Fc),networkInterface:i||xC,cryptoInterface:a||Fc,clientCredentials:s||UC,libraryInfo:ve(ve({},MC),c),telemetry:ve(ve({},DC),l),serverTelemetryManager:u||null,persistencePlugin:h||null,serializableCache:d||null}}function FC(t){return ve({clientCapabilities:[],azureCloudOptions:LC,skipAuthorityMetadataCache:!1},t)}/*! @azure/msal-common v8.0.0 2022-11-07 */var vo=function(t){Mt(e,t);function e(r,n,o){var i=t.call(this,r,n,o)||this;return i.name="ServerError",Object.setPrototypeOf(i,e.prototype),i}return e}(z);/*! @azure/msal-common v8.0.0 2022-11-07 */var zc=function(){function t(){}return t.generateThrottlingStorageKey=function(e){return wa.THROTTLING_PREFIX+"."+JSON.stringify(e)},t.preProcess=function(e,r){var n,o=t.generateThrottlingStorageKey(r),i=e.getThrottlingCache(o);if(i){if(i.throttleTime<Date.now()){e.removeItem(o,to.THROTTLING);return}throw new vo(((n=i.errorCodes)===null||n===void 0?void 0:n.join(" "))||_.EMPTY_STRING,i.errorMessage,i.subError)}},t.postProcess=function(e,r,n){if(t.checkResponseStatus(n)||t.checkResponseForRetryAfter(n)){var o={throttleTime:t.calculateThrottleTime(parseInt(n.headers[hr.RETRY_AFTER])),error:n.body.error,errorCodes:n.body.error_codes,errorMessage:n.body.error_description,subError:n.body.suberror};e.setThrottlingCache(t.generateThrottlingStorageKey(r),o)}},t.checkResponseStatus=function(e){return e.status===429||e.status>=500&&e.status<600},t.checkResponseForRetryAfter=function(e){return e.headers?e.headers.hasOwnProperty(hr.RETRY_AFTER)&&(e.status<200||e.status>=300):!1},t.calculateThrottleTime=function(e){var r=e<=0?0:e,n=Date.now()/1e3;return Math.floor(Math.min(n+(r||wa.DEFAULT_THROTTLE_TIME_SECONDS),n+wa.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)},t.removeThrottle=function(e,r,n,o){var i={clientId:r,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);return e.removeItem(a,to.THROTTLING)},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var $C=function(){function t(e,r){this.networkClient=e,this.cacheManager=r}return t.prototype.sendPostRequest=function(e,r,n){return K(this,void 0,void 0,function(){var o,i;return G(this,function(a){switch(a.label){case 0:zc.preProcess(this.cacheManager,e),a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(r,n)];case 2:return o=a.sent(),[3,4];case 3:throw i=a.sent(),i instanceof z?i:D.createNetworkError(r,i);case 4:return zc.postProcess(this.cacheManager,e,o),[2,o]}})})},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var Dt;(function(t){t.HOME_ACCOUNT_ID="home_account_id",t.UPN="UPN"})(Dt||(Dt={}));/*! @azure/msal-common v8.0.0 2022-11-07 */var Bh=function(){function t(e,r){this.config=HC(e),this.logger=new jh(this.config.loggerOptions,RC,Sy),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new $C(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=r}return t.prototype.createTokenRequestHeaders=function(e){var r={};if(r[hr.CONTENT_TYPE]=_.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case Dt.HOME_ACCOUNT_ID:try{var n=Yo(e.credential);r[hr.CCS_HEADER]="Oid:"+n.uid+"@"+n.utid}catch(o){this.logger.verbose("Could not parse home account ID for CCS Header: "+o)}break;case Dt.UPN:r[hr.CCS_HEADER]="UPN: "+e.credential;break}return r},t.prototype.executePostToTokenEndpoint=function(e,r,n,o){return K(this,void 0,void 0,function(){var i;return G(this,function(a){switch(a.label){case 0:return[4,this.networkManager.sendPostRequest(o,e,{body:r,headers:n,proxyUrl:this.config.systemOptions.proxyUrl})];case 1:return i=a.sent(),this.config.serverTelemetryManager&&i.status<500&&i.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,i]}})})},t.prototype.updateAuthority=function(e){if(!e.discoveryComplete())throw D.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var qn=function(){function t(){}return t.validateRedirectUri=function(e){if(x.isEmpty(e))throw Ee.createRedirectUriEmptyError()},t.validatePrompt=function(e){var r=[];for(var n in mt)r.push(mt[n]);if(r.indexOf(e)<0)throw Ee.createInvalidPromptError(e)},t.validateClaims=function(e){try{JSON.parse(e)}catch{throw Ee.createInvalidClaimsRequestError()}},t.validateCodeChallengeParams=function(e,r){if(x.isEmpty(e)||x.isEmpty(r))throw Ee.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(r)},t.validateCodeChallengeMethod=function(e){if([bp.PLAIN,bp.S256].indexOf(e)<0)throw Ee.createInvalidCodeChallengeMethodError()},t.sanitizeEQParams=function(e,r){return e?(r.forEach(function(n,o){e[o]&&delete e[o]}),e):{}},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var Qo=function(){function t(){this.parameters=new Map}return t.prototype.addResponseTypeCode=function(){this.parameters.set(Q.RESPONSE_TYPE,encodeURIComponent(_.CODE_RESPONSE_TYPE))},t.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(Q.RESPONSE_TYPE,encodeURIComponent(_.TOKEN_RESPONSE_TYPE+" "+_.ID_TOKEN_RESPONSE_TYPE))},t.prototype.addResponseMode=function(e){this.parameters.set(Q.RESPONSE_MODE,encodeURIComponent(e||Uc.QUERY))},t.prototype.addNativeBroker=function(){this.parameters.set(Q.NATIVE_BROKER,encodeURIComponent("1"))},t.prototype.addScopes=function(e,r){r===void 0&&(r=!0);var n=r?yl(e||[],ts):e||[],o=new Ct(n);this.parameters.set(Q.SCOPE,encodeURIComponent(o.printScopes()))},t.prototype.addClientId=function(e){this.parameters.set(Q.CLIENT_ID,encodeURIComponent(e))},t.prototype.addRedirectUri=function(e){qn.validateRedirectUri(e),this.parameters.set(Q.REDIRECT_URI,encodeURIComponent(e))},t.prototype.addPostLogoutRedirectUri=function(e){qn.validateRedirectUri(e),this.parameters.set(Q.POST_LOGOUT_URI,encodeURIComponent(e))},t.prototype.addIdTokenHint=function(e){this.parameters.set(Q.ID_TOKEN_HINT,encodeURIComponent(e))},t.prototype.addDomainHint=function(e){this.parameters.set(ya.DOMAIN_HINT,encodeURIComponent(e))},t.prototype.addLoginHint=function(e){this.parameters.set(ya.LOGIN_HINT,encodeURIComponent(e))},t.prototype.addCcsUpn=function(e){this.parameters.set(hr.CCS_HEADER,encodeURIComponent("UPN:"+e))},t.prototype.addCcsOid=function(e){this.parameters.set(hr.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},t.prototype.addSid=function(e){this.parameters.set(ya.SID,encodeURIComponent(e))},t.prototype.addClaims=function(e,r){var n=this.addClientCapabilitiesToClaims(e,r);qn.validateClaims(n),this.parameters.set(Q.CLAIMS,encodeURIComponent(n))},t.prototype.addCorrelationId=function(e){this.parameters.set(Q.CLIENT_REQUEST_ID,encodeURIComponent(e))},t.prototype.addLibraryInfo=function(e){this.parameters.set(Q.X_CLIENT_SKU,e.sku),this.parameters.set(Q.X_CLIENT_VER,e.version),e.os&&this.parameters.set(Q.X_CLIENT_OS,e.os),e.cpu&&this.parameters.set(Q.X_CLIENT_CPU,e.cpu)},t.prototype.addApplicationTelemetry=function(e){e!=null&&e.appName&&this.parameters.set(Q.X_APP_NAME,e.appName),e!=null&&e.appVersion&&this.parameters.set(Q.X_APP_VER,e.appVersion)},t.prototype.addPrompt=function(e){qn.validatePrompt(e),this.parameters.set(""+Q.PROMPT,encodeURIComponent(e))},t.prototype.addState=function(e){x.isEmpty(e)||this.parameters.set(Q.STATE,encodeURIComponent(e))},t.prototype.addNonce=function(e){this.parameters.set(Q.NONCE,encodeURIComponent(e))},t.prototype.addCodeChallengeParams=function(e,r){if(qn.validateCodeChallengeParams(e,r),e&&r)this.parameters.set(Q.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(Q.CODE_CHALLENGE_METHOD,encodeURIComponent(r));else throw Ee.createInvalidCodeChallengeParamsError()},t.prototype.addAuthorizationCode=function(e){this.parameters.set(Q.CODE,encodeURIComponent(e))},t.prototype.addDeviceCode=function(e){this.parameters.set(Q.DEVICE_CODE,encodeURIComponent(e))},t.prototype.addRefreshToken=function(e){this.parameters.set(Q.REFRESH_TOKEN,encodeURIComponent(e))},t.prototype.addCodeVerifier=function(e){this.parameters.set(Q.CODE_VERIFIER,encodeURIComponent(e))},t.prototype.addClientSecret=function(e){this.parameters.set(Q.CLIENT_SECRET,encodeURIComponent(e))},t.prototype.addClientAssertion=function(e){x.isEmpty(e)||this.parameters.set(Q.CLIENT_ASSERTION,encodeURIComponent(e))},t.prototype.addClientAssertionType=function(e){x.isEmpty(e)||this.parameters.set(Q.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},t.prototype.addOboAssertion=function(e){this.parameters.set(Q.OBO_ASSERTION,encodeURIComponent(e))},t.prototype.addRequestTokenUse=function(e){this.parameters.set(Q.REQUESTED_TOKEN_USE,encodeURIComponent(e))},t.prototype.addGrantType=function(e){this.parameters.set(Q.GRANT_TYPE,encodeURIComponent(e))},t.prototype.addClientInfo=function(){this.parameters.set(AC,"1")},t.prototype.addExtraQueryParameters=function(e){var r=this;qn.sanitizeEQParams(e,this.parameters),Object.keys(e).forEach(function(n){r.parameters.set(n,e[n])})},t.prototype.addClientCapabilitiesToClaims=function(e,r){var n;if(!e)n={};else try{n=JSON.parse(e)}catch{throw Ee.createInvalidClaimsRequestError()}return r&&r.length>0&&(n.hasOwnProperty(Vo.ACCESS_TOKEN)||(n[Vo.ACCESS_TOKEN]={}),n[Vo.ACCESS_TOKEN][Vo.XMS_CC]={values:r}),JSON.stringify(n)},t.prototype.addUsername=function(e){this.parameters.set(Hc.username,encodeURIComponent(e))},t.prototype.addPassword=function(e){this.parameters.set(Hc.password,encodeURIComponent(e))},t.prototype.addPopToken=function(e){x.isEmpty(e)||(this.parameters.set(Q.TOKEN_TYPE,le.POP),this.parameters.set(Q.REQ_CNF,encodeURIComponent(e)))},t.prototype.addSshJwk=function(e){x.isEmpty(e)||(this.parameters.set(Q.TOKEN_TYPE,le.SSH),this.parameters.set(Q.REQ_CNF,encodeURIComponent(e)))},t.prototype.addServerTelemetry=function(e){this.parameters.set(Q.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(Q.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},t.prototype.addThrottling=function(){this.parameters.set(Q.X_MS_LIB_CAPABILITY,wa.X_MS_LIB_CAPABILITY_VALUE)},t.prototype.addLogoutHint=function(e){this.parameters.set(Q.LOGOUT_HINT,encodeURIComponent(e))},t.prototype.createQueryString=function(){var e=new Array;return this.parameters.forEach(function(r,n){e.push(n+"="+r)}),e.join("&")},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var ja=function(t){Mt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.createIdTokenEntity=function(r,n,o,i,a){var s=new e;return s.credentialType=ee.ID_TOKEN,s.homeAccountId=r,s.environment=n,s.clientId=i,s.secret=o,s.realm=a,s},e.isIdTokenEntity=function(r){return r?r.hasOwnProperty("homeAccountId")&&r.hasOwnProperty("environment")&&r.hasOwnProperty("credentialType")&&r.hasOwnProperty("realm")&&r.hasOwnProperty("clientId")&&r.hasOwnProperty("secret")&&r.credentialType===ee.ID_TOKEN:!1},e}(za);/*! @azure/msal-common v8.0.0 2022-11-07 */var Jt=function(){function t(){}return t.nowSeconds=function(){return Math.round(new Date().getTime()/1e3)},t.isTokenExpired=function(e,r){var n=Number(e)||0,o=t.nowSeconds()+r;return o>n},t.wasClockTurnedBack=function(e){var r=Number(e);return r>t.nowSeconds()},t.delay=function(e,r){return new Promise(function(n){return setTimeout(function(){return n(r)},e)})},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var Ba=function(t){Mt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.createAccessTokenEntity=function(r,n,o,i,a,s,c,l,u,h,d,f,m,v,E){var g,p,y=new e;y.homeAccountId=r,y.credentialType=ee.ACCESS_TOKEN,y.secret=o;var w=Jt.nowSeconds();if(y.cachedAt=w.toString(),y.expiresOn=c.toString(),y.extendedExpiresOn=l.toString(),h&&(y.refreshOn=h.toString()),y.environment=n,y.clientId=i,y.realm=a,y.target=s,y.userAssertionHash=f,y.tokenType=x.isEmpty(d)?le.BEARER:d,v&&(y.requestedClaims=v,y.requestedClaimsHash=E),((g=y.tokenType)===null||g===void 0?void 0:g.toLowerCase())!==le.BEARER.toLowerCase())switch(y.credentialType=ee.ACCESS_TOKEN_WITH_AUTH_SCHEME,y.tokenType){case le.POP:var k=kr.extractTokenClaims(o,u);if(!(!((p=k==null?void 0:k.cnf)===null||p===void 0)&&p.kid))throw D.createTokenClaimsRequiredError();y.keyId=k.cnf.kid;break;case le.SSH:y.keyId=m}return y},e.isAccessTokenEntity=function(r){return r?r.hasOwnProperty("homeAccountId")&&r.hasOwnProperty("environment")&&r.hasOwnProperty("credentialType")&&r.hasOwnProperty("realm")&&r.hasOwnProperty("clientId")&&r.hasOwnProperty("secret")&&r.hasOwnProperty("target")&&(r.credentialType===ee.ACCESS_TOKEN||r.credentialType===ee.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1},e}(za);/*! @azure/msal-common v8.0.0 2022-11-07 */var jc=function(t){Mt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.createRefreshTokenEntity=function(r,n,o,i,a,s){var c=new e;return c.clientId=i,c.credentialType=ee.REFRESH_TOKEN,c.environment=n,c.homeAccountId=r,c.secret=o,c.userAssertionHash=s,a&&(c.familyId=a),c},e.isRefreshTokenEntity=function(r){return r?r.hasOwnProperty("homeAccountId")&&r.hasOwnProperty("environment")&&r.hasOwnProperty("credentialType")&&r.hasOwnProperty("clientId")&&r.hasOwnProperty("secret")&&r.credentialType===ee.REFRESH_TOKEN:!1},e}(za);/*! @azure/msal-common v8.0.0 2022-11-07 */var kp=["interaction_required","consent_required","login_required"],zC=["message_only","additional_action","basic_action","user_password_expired","consent_required"],ta={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."}},lr=function(t){Mt(e,t);function e(r,n,o){var i=t.call(this,r,n,o)||this;return i.name="InteractionRequiredAuthError",Object.setPrototypeOf(i,e.prototype),i}return e.isInteractionRequiredError=function(r,n,o){var i=!!r&&kp.indexOf(r)>-1,a=!!o&&zC.indexOf(o)>-1,s=!!n&&kp.some(function(c){return n.indexOf(c)>-1});return i||s||a},e.createNoTokensFoundError=function(){return new e(ta.noTokensFoundError.code,ta.noTokensFoundError.desc)},e.createNativeAccountUnavailableError=function(){return new e(ta.native_account_unavailable.code,ta.native_account_unavailable.desc)},e}(z);/*! @azure/msal-common v8.0.0 2022-11-07 */var Qs=function(){function t(e,r,n,o,i){this.account=e||null,this.idToken=r||null,this.accessToken=n||null,this.refreshToken=o||null,this.appMetadata=i||null}return t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var Wr=function(){function t(){}return t.setRequestState=function(e,r,n){var o=t.generateLibraryState(e,n);return x.isEmpty(r)?o:""+o+_.RESOURCE_DELIM+r},t.generateLibraryState=function(e,r){if(!e)throw D.createNoCryptoObjectError("generateLibraryState");var n={id:e.createNewGuid()};r&&(n.meta=r);var o=JSON.stringify(n);return e.base64Encode(o)},t.parseRequestState=function(e,r){if(!e)throw D.createNoCryptoObjectError("parseRequestState");if(x.isEmpty(r))throw D.createInvalidStateError(r,"Null, undefined or empty state");try{var n=r.split(_.RESOURCE_DELIM),o=n[0],i=n.length>1?n.slice(1).join(_.RESOURCE_DELIM):_.EMPTY_STRING,a=e.base64Decode(o),s=JSON.parse(a);return{userRequestState:x.isEmpty(i)?_.EMPTY_STRING:i,libraryState:s}}catch(c){throw D.createInvalidStateError(r,c)}},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var oe=function(){function t(e){if(this._urlString=e,x.isEmpty(this._urlString))throw Ee.createUrlEmptyError();x.isEmpty(this.getHash())&&(this._urlString=t.canonicalizeUri(e))}return Object.defineProperty(t.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),t.canonicalizeUri=function(e){if(e){var r=e.toLowerCase();return x.endsWith(r,"?")?r=r.slice(0,-1):x.endsWith(r,"?/")&&(r=r.slice(0,-2)),x.endsWith(r,"/")||(r+="/"),r}return e},t.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(r){throw Ee.createUrlParseError(r)}if(!e.HostNameAndPort||!e.PathSegments)throw Ee.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw Ee.createInsecureAuthorityUriError(this.urlString)},t.appendQueryString=function(e,r){return x.isEmpty(r)?e:e.indexOf("?")<0?e+"?"+r:e+"&"+r},t.removeHashFromUrl=function(e){return t.canonicalizeUri(e.split("#")[0])},t.prototype.replaceTenantPath=function(e){var r=this.getUrlComponents(),n=r.PathSegments;return e&&n.length!==0&&(n[0]===Mc.COMMON||n[0]===Mc.ORGANIZATIONS)&&(n[0]=e),t.constructAuthorityUriFromObject(r)},t.prototype.getHash=function(){return t.parseHash(this.urlString)},t.prototype.getUrlComponents=function(){var e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),r=this.urlString.match(e);if(!r)throw Ee.createUrlParseError("Given url string: "+this.urlString);var n={Protocol:r[1],HostNameAndPort:r[4],AbsolutePath:r[5],QueryString:r[7]},o=n.AbsolutePath.split("/");return o=o.filter(function(i){return i&&i.length>0}),n.PathSegments=o,!x.isEmpty(n.QueryString)&&n.QueryString.endsWith("/")&&(n.QueryString=n.QueryString.substring(0,n.QueryString.length-1)),n},t.getDomainFromUrl=function(e){var r=RegExp("^([^:/?#]+://)?([^/?#]*)"),n=e.match(r);if(!n)throw Ee.createUrlParseError("Given url string: "+e);return n[2]},t.getAbsoluteUrl=function(e,r){if(e[0]===_.FORWARD_SLASH){var n=new t(r),o=n.getUrlComponents();return o.Protocol+"//"+o.HostNameAndPort+e}return e},t.parseHash=function(e){var r=e.indexOf("#"),n=e.indexOf("#/");return n>-1?e.substring(n+2):r>-1?e.substring(r+1):_.EMPTY_STRING},t.parseQueryString=function(e){var r=e.indexOf("?"),n=e.indexOf("/?");return n>-1?e.substring(n+2):r>-1?e.substring(r+1):_.EMPTY_STRING},t.constructAuthorityUriFromObject=function(e){return new t(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))},t.getDeserializedHash=function(e){if(x.isEmpty(e))return{};var r=t.parseHash(e),n=x.queryStringToObject(x.isEmpty(r)?e:r);if(!n)throw D.createHashNotDeserializedError(JSON.stringify(n));return n},t.getDeserializedQueryString=function(e){if(x.isEmpty(e))return{};var r=t.parseQueryString(e),n=x.queryStringToObject(x.isEmpty(r)?e:r);if(!n)throw D.createHashNotDeserializedError(JSON.stringify(n));return n},t.hashContainsKnownProperties=function(e){if(x.isEmpty(e)||e.indexOf("=")<0)return!1;var r=t.getDeserializedHash(e);return!!(r.code||r.error_description||r.error||r.state)},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var Td;(function(t){t.SW="sw",t.UHW="uhw"})(Td||(Td={}));var vi=function(){function t(e){this.cryptoUtils=e}return t.prototype.generateCnf=function(e){return K(this,void 0,void 0,function(){var r,n,o;return G(this,function(i){switch(i.label){case 0:return[4,this.generateKid(e)];case 1:return r=i.sent(),n=this.cryptoUtils.base64Encode(JSON.stringify(r)),o={kid:r.kid,reqCnfString:n},[4,this.cryptoUtils.hashString(n)];case 2:return[2,(o.reqCnfHash=i.sent(),o)]}})})},t.prototype.generateKid=function(e){return K(this,void 0,void 0,function(){var r;return G(this,function(n){switch(n.label){case 0:return[4,this.cryptoUtils.getPublicKeyThumbprint(e)];case 1:return r=n.sent(),[2,{kid:r,xms_ksl:Td.SW}]}})})},t.prototype.signPopToken=function(e,r,n){return K(this,void 0,void 0,function(){return G(this,function(o){return[2,this.signPayload(e,r,n)]})})},t.prototype.signPayload=function(e,r,n,o){return K(this,void 0,void 0,function(){var i,a,s,c,l,u;return G(this,function(h){switch(h.label){case 0:return i=n.resourceRequestMethod,a=n.resourceRequestUri,s=n.shrClaims,c=n.shrNonce,l=a?new oe(a):void 0,u=l==null?void 0:l.getUrlComponents(),[4,this.cryptoUtils.signJwt(ve({at:e,ts:Jt.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),r,n.correlationId)];case 1:return[2,h.sent()]}})})},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var bd=function(){function t(){}return t.prototype.generateAppMetadataKey=function(){return t.generateAppMetadataCacheKey(this.environment,this.clientId)},t.generateAppMetadataCacheKey=function(e,r){var n=[Cd,e,r];return n.join(Ft.CACHE_KEY_SEPARATOR).toLowerCase()},t.createAppMetadataEntity=function(e,r,n){var o=new t;return o.clientId=e,o.environment=r,n&&(o.familyId=n),o},t.isAppMetadataEntity=function(e,r){return r?e.indexOf(Cd)===0&&r.hasOwnProperty("clientId")&&r.hasOwnProperty("environment"):!1},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var jC=function(){function t(e,r){this.cache=e,this.hasChanged=r}return Object.defineProperty(t.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var Bc=function(){function t(e,r,n,o,i,a){this.clientId=e,this.cacheStorage=r,this.cryptoObj=n,this.logger=o,this.serializableCache=i,this.persistencePlugin=a}return t.prototype.validateServerAuthorizationCodeResponse=function(e,r,n){if(!e.state||!r)throw e.state?D.createStateNotFoundError("Cached State"):D.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(r))throw D.createStateMismatchError();if(e.error||e.error_description||e.suberror)throw lr.isInteractionRequiredError(e.error,e.error_description,e.suberror)?new lr(e.error||_.EMPTY_STRING,e.error_description,e.suberror):new vo(e.error||_.EMPTY_STRING,e.error_description,e.suberror);e.client_info&&$c(e.client_info,n)},t.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(lr.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new lr(e.error,e.error_description,e.suberror);var r=e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id;throw new vo(e.error,r,e.suberror)}},t.prototype.handleServerTokenResponse=function(e,r,n,o,i,a,s,c,l){return K(this,void 0,void 0,function(){var u,h,d,f,m,v,E;return G(this,function(g){switch(g.label){case 0:if(e.id_token){if(u=new kr(e.id_token||_.EMPTY_STRING,this.cryptoObj),i&&!x.isEmpty(i.nonce)&&u.claims.nonce!==i.nonce)throw D.createNonceMismatchError();if(o.maxAge||o.maxAge===0){if(h=u.claims.auth_time,!h)throw D.createAuthTimeNotFoundError();kr.checkMaxAge(h,o.maxAge)}}this.homeAccountIdentifier=tt.generateHomeAccountId(e.client_info||_.EMPTY_STRING,r.authorityType,this.logger,this.cryptoObj,u),!!i&&!!i.state&&(d=Wr.parseRequestState(this.cryptoObj,i.state)),e.key_id=e.key_id||o.sshKid||void 0,f=this.generateCacheRecord(e,r,n,o,u,a,i),g.label=1;case 1:return g.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),m=new jC(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(m)]):[3,3];case 2:g.sent(),g.label=3;case 3:return s&&!c&&f.account&&(v=f.account.generateAccountKey(),E=this.cacheStorage.getAccount(v),!E)?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,t.generateAuthenticationResult(this.cryptoObj,r,f,!1,o,u,d,void 0,l)]):[4,this.cacheStorage.saveCacheRecord(f)];case 4:return g.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&m?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(m)]):[3,7];case 6:g.sent(),g.label=7;case 7:return[7];case 8:return[2,t.generateAuthenticationResult(this.cryptoObj,r,f,!1,o,u,d,e.spa_code,l)]}})})},t.prototype.generateCacheRecord=function(e,r,n,o,i,a,s){var c=r.getPreferredCache();if(x.isEmpty(c))throw D.createInvalidCacheEnvironmentError();var l,u;!x.isEmpty(e.id_token)&&!!i&&(l=ja.createIdTokenEntity(this.homeAccountIdentifier,c,e.id_token||_.EMPTY_STRING,this.clientId,i.claims.tid||_.EMPTY_STRING),u=this.generateAccountEntity(e,i,r,s));var h=null;if(!x.isEmpty(e.access_token)){var d=e.scope?Ct.fromString(e.scope):new Ct(o.scopes||[]),f=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,m=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,v=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,E=n+f,g=E+m,p=v&&v>0?n+v:void 0;h=Ba.createAccessTokenEntity(this.homeAccountIdentifier,c,e.access_token||_.EMPTY_STRING,this.clientId,i?i.claims.tid||_.EMPTY_STRING:r.tenant,d.printScopes(),E,g,this.cryptoObj,p,e.token_type,a,e.key_id,o.claims,o.requestedClaimsHash)}var y=null;x.isEmpty(e.refresh_token)||(y=jc.createRefreshTokenEntity(this.homeAccountIdentifier,c,e.refresh_token||_.EMPTY_STRING,this.clientId,e.foci,a));var w=null;return x.isEmpty(e.foci)||(w=bd.createAppMetadataEntity(this.clientId,c,e.foci)),new Qs(u,l,h,y,w)},t.prototype.generateAccountEntity=function(e,r,n,o){var i=n.authorityType,a=o?o.cloud_graph_host_name:_.EMPTY_STRING,s=o?o.msgraph_host:_.EMPTY_STRING;if(i===Wt.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),tt.createGenericAccount(this.homeAccountIdentifier,r,n,a,s);if(x.isEmpty(e.client_info)&&n.protocolMode==="AAD")throw D.createClientInfoEmptyError();return e.client_info?tt.createAccount(e.client_info,this.homeAccountIdentifier,r,n,a,s):tt.createGenericAccount(this.homeAccountIdentifier,r,n,a,s)},t.generateAuthenticationResult=function(e,r,n,o,i,a,s,c,l){var u,h,d;return K(this,void 0,void 0,function(){var f,m,v,E,g,p,y,w,k,P,M;return G(this,function(O){switch(O.label){case 0:if(f=_.EMPTY_STRING,m=[],v=null,g=_.EMPTY_STRING,!n.accessToken)return[3,4];if(n.accessToken.tokenType!==le.POP)return[3,2];if(p=new vi(e),y=n.accessToken,w=y.secret,k=y.keyId,!k)throw D.createKeyIdMissingError();return[4,p.signPopToken(w,k,i)];case 1:return f=O.sent(),[3,3];case 2:f=n.accessToken.secret,O.label=3;case 3:m=Ct.fromString(n.accessToken.target).asArray(),v=new Date(Number(n.accessToken.expiresOn)*1e3),E=new Date(Number(n.accessToken.extendedExpiresOn)*1e3),O.label=4;case 4:return n.appMetadata&&(g=n.appMetadata.familyId===Dc?Dc:_.EMPTY_STRING),P=(a==null?void 0:a.claims.oid)||(a==null?void 0:a.claims.sub)||_.EMPTY_STRING,M=(a==null?void 0:a.claims.tid)||_.EMPTY_STRING,[2,{authority:r.canonicalAuthority,uniqueId:P,tenantId:M,scopes:m,account:n.account?n.account.getAccountInfo():null,idToken:a?a.rawToken:_.EMPTY_STRING,idTokenClaims:a?a.claims:{},accessToken:f,fromCache:o,expiresOn:v,correlationId:i.correlationId,requestId:l||_.EMPTY_STRING,extExpiresOn:E,familyId:g,tokenType:((u=n.accessToken)===null||u===void 0?void 0:u.tokenType)||_.EMPTY_STRING,state:s?s.userRequestState:_.EMPTY_STRING,cloudGraphHostName:((h=n.account)===null||h===void 0?void 0:h.cloudGraphHostName)||_.EMPTY_STRING,msGraphHost:((d=n.account)===null||d===void 0?void 0:d.msGraphHost)||_.EMPTY_STRING,code:c,fromNativeBroker:!1}]}})})},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var by=function(t){Mt(e,t);function e(r){var n=t.call(this,r)||this;return n.includeRedirectUri=!0,n}return e.prototype.getAuthCodeUrl=function(r){return K(this,void 0,void 0,function(){var n;return G(this,function(o){switch(o.label){case 0:return[4,this.createAuthCodeUrlQueryString(r)];case 1:return n=o.sent(),[2,oe.appendQueryString(this.authority.authorizationEndpoint,n)]}})})},e.prototype.acquireToken=function(r,n){var o;return K(this,void 0,void 0,function(){var i,a,s,c;return G(this,function(l){switch(l.label){case 0:if(this.logger.info("in acquireToken call"),!r||x.isEmpty(r.code))throw D.createTokenRequestCannotBeMadeError();return i=Jt.nowSeconds(),[4,this.executeTokenRequest(this.authority,r)];case 1:return a=l.sent(),s=(o=a.headers)===null||o===void 0?void 0:o[hr.X_MS_REQUEST_ID],c=new Bc(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),c.validateTokenResponse(a.body),[4,c.handleServerTokenResponse(a.body,this.authority,i,r,n,void 0,void 0,void 0,s)];case 2:return[2,l.sent()]}})})},e.prototype.handleFragmentResponse=function(r,n){var o=new Bc(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),i=new oe(r),a=oe.getDeserializedHash(i.getHash());if(o.validateServerAuthorizationCodeResponse(a,n,this.cryptoUtils),!a.code)throw D.createNoAuthCodeInServerResponseError();return ve(ve({},a),{code:a.code})},e.prototype.getLogoutUri=function(r){if(!r)throw Ee.createEmptyLogoutRequestError();var n=this.createLogoutUrlQueryString(r);return oe.appendQueryString(this.authority.endSessionEndpoint,n)},e.prototype.executeTokenRequest=function(r,n){return K(this,void 0,void 0,function(){var o,i,a,s,c,l,u;return G(this,function(h){switch(h.label){case 0:return o={clientId:this.config.authOptions.clientId,authority:r.canonicalAuthority,scopes:n.scopes,claims:n.claims,authenticationScheme:n.authenticationScheme,resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,sshKid:n.sshKid},[4,this.createTokenRequestBody(n)];case 1:if(i=h.sent(),a=this.createTokenQueryParameters(n),s=void 0,n.clientInfo)try{c=$c(n.clientInfo,this.cryptoUtils),s={credential:""+c.uid+Ft.CLIENT_INFO_SEPARATOR+c.utid,type:Dt.HOME_ACCOUNT_ID}}catch(d){this.logger.verbose("Could not parse client info for CCS Header: "+d)}return l=this.createTokenRequestHeaders(s||n.ccsCredential),u=x.isEmpty(a)?r.tokenEndpoint:r.tokenEndpoint+"?"+a,[2,this.executePostToTokenEndpoint(u,i,l,o)]}})})},e.prototype.createTokenQueryParameters=function(r){var n=new Qo;return r.tokenQueryParameters&&n.addExtraQueryParameters(r.tokenQueryParameters),n.createQueryString()},e.prototype.createTokenRequestBody=function(r){return K(this,void 0,void 0,function(){var n,o,i,a,s,c,l,l,u;return G(this,function(h){switch(h.label){case 0:return n=new Qo,n.addClientId(this.config.authOptions.clientId),this.includeRedirectUri?n.addRedirectUri(r.redirectUri):qn.validateRedirectUri(r.redirectUri),n.addScopes(r.scopes),n.addAuthorizationCode(r.code),n.addLibraryInfo(this.config.libraryInfo),n.addApplicationTelemetry(this.config.telemetry.application),n.addThrottling(),this.serverTelemetryManager&&n.addServerTelemetry(this.serverTelemetryManager),r.codeVerifier&&n.addCodeVerifier(r.codeVerifier),this.config.clientCredentials.clientSecret&&n.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(o=this.config.clientCredentials.clientAssertion,n.addClientAssertion(o.assertion),n.addClientAssertionType(o.assertionType)),n.addGrantType(Lc.AUTHORIZATION_CODE_GRANT),n.addClientInfo(),r.authenticationScheme!==le.POP?[3,2]:(i=new vi(this.cryptoUtils),[4,i.generateCnf(r)]);case 1:return a=h.sent(),n.addPopToken(a.reqCnfString),[3,3];case 2:if(r.authenticationScheme===le.SSH)if(r.sshJwk)n.addSshJwk(r.sshJwk);else throw Ee.createMissingSshJwkError();h.label=3;case 3:if(s=r.correlationId||this.config.cryptoInterface.createNewGuid(),n.addCorrelationId(s),(!x.isEmptyObj(r.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&n.addClaims(r.claims,this.config.authOptions.clientCapabilities),c=void 0,r.clientInfo)try{l=$c(r.clientInfo,this.cryptoUtils),c={credential:""+l.uid+Ft.CLIENT_INFO_SEPARATOR+l.utid,type:Dt.HOME_ACCOUNT_ID}}catch(d){this.logger.verbose("Could not parse client info for CCS Header: "+d)}else c=r.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&c)switch(c.type){case Dt.HOME_ACCOUNT_ID:try{l=Yo(c.credential),n.addCcsOid(l)}catch(d){this.logger.verbose("Could not parse home account ID for CCS Header: "+d)}break;case Dt.UPN:n.addCcsUpn(c.credential);break}return r.tokenBodyParameters&&n.addExtraQueryParameters(r.tokenBodyParameters),r.enableSpaAuthorizationCode&&(!r.tokenBodyParameters||!r.tokenBodyParameters[Q.RETURN_SPA_CODE])&&n.addExtraQueryParameters((u={},u[Q.RETURN_SPA_CODE]="1",u)),[2,n.createQueryString()]}})})},e.prototype.createAuthCodeUrlQueryString=function(r){return K(this,void 0,void 0,function(){var n,o,i,a,s,c,c,c,l,u;return G(this,function(h){switch(h.label){case 0:if(n=new Qo,n.addClientId(this.config.authOptions.clientId),o=yl(r.scopes||[],r.extraScopesToConsent||[]),n.addScopes(o),n.addRedirectUri(r.redirectUri),i=r.correlationId||this.config.cryptoInterface.createNewGuid(),n.addCorrelationId(i),n.addResponseMode(r.responseMode),n.addResponseTypeCode(),n.addLibraryInfo(this.config.libraryInfo),n.addApplicationTelemetry(this.config.telemetry.application),n.addClientInfo(),r.codeChallenge&&r.codeChallengeMethod&&n.addCodeChallengeParams(r.codeChallenge,r.codeChallengeMethod),r.prompt&&n.addPrompt(r.prompt),r.domainHint&&n.addDomainHint(r.domainHint),r.prompt!==mt.SELECT_ACCOUNT)if(r.sid&&r.prompt===mt.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),n.addSid(r.sid);else if(r.account){if(a=this.extractAccountSid(r.account),s=this.extractLoginHint(r.account),s){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),n.addLoginHint(s);try{c=Yo(r.account.homeAccountId),n.addCcsOid(c)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(a&&r.prompt===mt.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),n.addSid(a);try{c=Yo(r.account.homeAccountId),n.addCcsOid(c)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(r.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),n.addLoginHint(r.loginHint),n.addCcsUpn(r.loginHint);else if(r.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),n.addLoginHint(r.account.username);try{c=Yo(r.account.homeAccountId),n.addCcsOid(c)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else r.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),n.addLoginHint(r.loginHint),n.addCcsUpn(r.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return r.nonce&&n.addNonce(r.nonce),r.state&&n.addState(r.state),(!x.isEmpty(r.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&n.addClaims(r.claims,this.config.authOptions.clientCapabilities),r.extraQueryParameters&&n.addExtraQueryParameters(r.extraQueryParameters),r.nativeBroker?(n.addNativeBroker(),r.authenticationScheme!==le.POP?[3,2]:(l=new vi(this.cryptoUtils),[4,l.generateCnf(r)])):[3,2];case 1:u=h.sent(),n.addPopToken(u.reqCnfHash),h.label=2;case 2:return[2,n.createQueryString()]}})})},e.prototype.createLogoutUrlQueryString=function(r){var n=new Qo;return r.postLogoutRedirectUri&&n.addPostLogoutRedirectUri(r.postLogoutRedirectUri),r.correlationId&&n.addCorrelationId(r.correlationId),r.idTokenHint&&n.addIdTokenHint(r.idTokenHint),r.state&&n.addState(r.state),r.logoutHint&&n.addLogoutHint(r.logoutHint),r.extraQueryParameters&&n.addExtraQueryParameters(r.extraQueryParameters),n.createQueryString()},e.prototype.extractAccountSid=function(r){var n;return((n=r.idTokenClaims)===null||n===void 0?void 0:n.sid)||null},e.prototype.extractLoginHint=function(r){var n;return((n=r.idTokenClaims)===null||n===void 0?void 0:n.login_hint)||null},e}(Bh);/*! @azure/msal-common v8.0.0 2022-11-07 */var je;(function(t){t.AcquireTokenByCode="acquireTokenByCode",t.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",t.AcquireTokenSilent="acquireTokenSilent",t.AcquireTokenSilentAsync="acquireTokenSilentAsync",t.AcquireTokenPopup="acquireTokenPopup",t.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",t.CryptoOptsSignJwt="cryptoOptsSignJwt",t.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",t.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",t.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",t.SsoSilent="ssoSilent",t.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",t.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",t.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",t.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",t.BrokerHandhshake="brokerHandshake",t.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",t.AcquireTokenByBroker="acquireTokenByBroker",t.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",t.RefreshTokenClientAcquireToken="refreshTokenClientAcquireToken",t.RefreshTokenClientAcquireTokenWithCachedRefreshToken="refreshTokenClientAcquireTokenWithCachedRefreshToken"})(je||(je={}));var Jo;(function(t){t[t.NotStarted=0]="NotStarted",t[t.InProgress=1]="InProgress",t[t.Completed=2]="Completed"})(Jo||(Jo={}));/*! @azure/msal-common v8.0.0 2022-11-07 */var Iy=function(t){Mt(e,t);function e(r,n){return t.call(this,r,n)||this}return e.prototype.acquireToken=function(r){var n,o,i;return K(this,void 0,void 0,function(){var a,s,c,l,u,h=this;return G(this,function(d){switch(d.label){case 0:return a=(n=this.performanceClient)===null||n===void 0?void 0:n.startMeasurement(je.RefreshTokenClientAcquireToken,r.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",r.correlationId),s=Jt.nowSeconds(),[4,this.executeTokenRequest(r,this.authority)];case 1:return c=d.sent(),a==null||a.addStaticFields({refreshTokenSize:((o=c.body.refresh_token)===null||o===void 0?void 0:o.length)||0}),l=(i=c.headers)===null||i===void 0?void 0:i[hr.X_MS_REQUEST_ID],u=new Bc(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),u.validateTokenResponse(c.body),[2,u.handleServerTokenResponse(c.body,this.authority,s,r,void 0,void 0,!0,r.forceCache,l).then(function(f){return a==null||a.endMeasurement({success:!0}),f}).catch(function(f){throw h.logger.verbose("Error in fetching refresh token",r.correlationId),a==null||a.endMeasurement({errorCode:f.errorCode,subErrorCode:f.subError,success:!1}),f})]}})})},e.prototype.acquireTokenByRefreshToken=function(r){return K(this,void 0,void 0,function(){var n,o,i;return G(this,function(a){if(!r)throw Ee.createEmptyTokenRequestError();if(!r.account)throw D.createNoAccountInSilentRequestError();if(n=this.cacheManager.isAppMetadataFOCI(r.account.environment,this.config.authOptions.clientId),n)try{return[2,this.acquireTokenWithCachedRefreshToken(r,!0)]}catch(s){if(o=s instanceof lr&&s.errorCode===ta.noTokensFoundError.code,i=s instanceof vo&&s.errorCode===Ip.INVALID_GRANT_ERROR&&s.subError===Ip.CLIENT_MISMATCH_ERROR,o||i)return[2,this.acquireTokenWithCachedRefreshToken(r,!1)];throw s}return[2,this.acquireTokenWithCachedRefreshToken(r,!1)]})})},e.prototype.acquireTokenWithCachedRefreshToken=function(r,n){var o;return K(this,void 0,void 0,function(){var i,a,s;return G(this,function(c){if(i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(je.RefreshTokenClientAcquireTokenWithCachedRefreshToken,r.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",r.correlationId),a=this.cacheManager.readRefreshTokenFromCache(this.config.authOptions.clientId,r.account,n),!a)throw i==null||i.discardMeasurement(),lr.createNoTokensFoundError();return i==null||i.endMeasurement({success:!0}),s=ve(ve({},r),{refreshToken:a.secret,authenticationScheme:r.authenticationScheme||le.BEARER,ccsCredential:{credential:r.account.homeAccountId,type:Dt.HOME_ACCOUNT_ID}}),[2,this.acquireToken(s)]})})},e.prototype.executeTokenRequest=function(r,n){var o;return K(this,void 0,void 0,function(){var i,a,s,c,l,u;return G(this,function(h){switch(h.label){case 0:return i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(je.RefreshTokenClientExecuteTokenRequest,r.correlationId),[4,this.createTokenRequestBody(r)];case 1:return a=h.sent(),s=this.createTokenQueryParameters(r),c=this.createTokenRequestHeaders(r.ccsCredential),l={clientId:this.config.authOptions.clientId,authority:n.canonicalAuthority,scopes:r.scopes,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid},u=oe.appendQueryString(n.tokenEndpoint,s),[2,this.executePostToTokenEndpoint(u,a,c,l).then(function(d){return i==null||i.endMeasurement({success:!0}),d}).catch(function(d){throw i==null||i.endMeasurement({success:!1}),d})]}})})},e.prototype.createTokenQueryParameters=function(r){var n=new Qo;return r.tokenQueryParameters&&n.addExtraQueryParameters(r.tokenQueryParameters),n.createQueryString()},e.prototype.createTokenRequestBody=function(r){var n;return K(this,void 0,void 0,function(){var o,i,a,s,c,l,u;return G(this,function(h){switch(h.label){case 0:return o=r.correlationId,i=(n=this.performanceClient)===null||n===void 0?void 0:n.startMeasurement(je.BaseClientCreateTokenRequestHeaders,o),a=new Qo,a.addClientId(this.config.authOptions.clientId),a.addScopes(r.scopes),a.addGrantType(Lc.REFRESH_TOKEN_GRANT),a.addClientInfo(),a.addLibraryInfo(this.config.libraryInfo),a.addApplicationTelemetry(this.config.telemetry.application),a.addThrottling(),this.serverTelemetryManager&&a.addServerTelemetry(this.serverTelemetryManager),a.addCorrelationId(o),a.addRefreshToken(r.refreshToken),this.config.clientCredentials.clientSecret&&a.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(s=this.config.clientCredentials.clientAssertion,a.addClientAssertion(s.assertion),a.addClientAssertionType(s.assertionType)),r.authenticationScheme!==le.POP?[3,2]:(c=new vi(this.cryptoUtils),[4,c.generateCnf(r)]);case 1:return l=h.sent(),a.addPopToken(l.reqCnfString),[3,3];case 2:if(r.authenticationScheme===le.SSH)if(r.sshJwk)a.addSshJwk(r.sshJwk);else throw i==null||i.endMeasurement({success:!1}),Ee.createMissingSshJwkError();h.label=3;case 3:if((!x.isEmptyObj(r.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&a.addClaims(r.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&r.ccsCredential)switch(r.ccsCredential.type){case Dt.HOME_ACCOUNT_ID:try{u=Yo(r.ccsCredential.credential),a.addCcsOid(u)}catch(d){this.logger.verbose("Could not parse home account ID for CCS Header: "+d)}break;case Dt.UPN:a.addCcsUpn(r.ccsCredential.credential);break}return i==null||i.endMeasurement({success:!0}),[2,a.createQueryString()]}})})},e}(Bh);/*! @azure/msal-common v8.0.0 2022-11-07 */var BC=function(t){Mt(e,t);function e(r,n){return t.call(this,r,n)||this}return e.prototype.acquireToken=function(r){return K(this,void 0,void 0,function(){var n,o;return G(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.acquireCachedToken(r)];case 1:return[2,i.sent()];case 2:if(n=i.sent(),n instanceof D&&n.errorCode===A.tokenRefreshRequired.code)return o=new Iy(this.config,this.performanceClient),[2,o.acquireTokenByRefreshToken(r)];throw n;case 3:return[2]}})})},e.prototype.acquireCachedToken=function(r){var n,o,i,a;return K(this,void 0,void 0,function(){var s,c;return G(this,function(l){switch(l.label){case 0:if(!r)throw Ee.createEmptyTokenRequestError();if(r.forceRefresh)throw(n=this.serverTelemetryManager)===null||n===void 0||n.setCacheOutcome(Jn.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),D.createRefreshRequiredError();if(!r.account)throw D.createNoAccountInSilentRequestError();if(s=r.authority||this.authority.getPreferredCache(),c=this.cacheManager.readCacheRecord(r.account,this.config.authOptions.clientId,r,s),c.accessToken){if(Jt.wasClockTurnedBack(c.accessToken.cachedAt)||Jt.isTokenExpired(c.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw(i=this.serverTelemetryManager)===null||i===void 0||i.setCacheOutcome(Jn.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),D.createRefreshRequiredError();if(c.accessToken.refreshOn&&Jt.isTokenExpired(c.accessToken.refreshOn,0))throw(a=this.serverTelemetryManager)===null||a===void 0||a.setCacheOutcome(Jn.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),D.createRefreshRequiredError()}else throw(o=this.serverTelemetryManager)===null||o===void 0||o.setCacheOutcome(Jn.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),D.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(c,r)];case 1:return[2,l.sent()]}})})},e.prototype.generateResultFromCacheRecord=function(r,n){return K(this,void 0,void 0,function(){var o,i;return G(this,function(a){switch(a.label){case 0:if(r.idToken&&(o=new kr(r.idToken.secret,this.config.cryptoInterface)),n.maxAge||n.maxAge===0){if(i=o==null?void 0:o.claims.auth_time,!i)throw D.createAuthTimeNotFoundError();kr.checkMaxAge(i,n.maxAge)}return[4,Bc.generateAuthenticationResult(this.cryptoUtils,this.authority,r,!0,n,o)];case 1:return[2,a.sent()]}})})},e}(Bh);/*! @azure/msal-common v8.0.0 2022-11-07 */function qC(t){return t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v8.0.0 2022-11-07 */var ky={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"]}]}}},Ap=ky.endpointMetadata,Rp=ky.instanceDiscoveryMetadata;/*! @azure/msal-common v8.0.0 2022-11-07 */var qc;(function(t){t.AAD="AAD",t.OIDC="OIDC"})(qc||(qc={}));/*! @azure/msal-common v8.0.0 2022-11-07 */var Id=function(){function t(){this.expiresAt=Jt.nowSeconds()+_a.REFRESH_TIME_SECONDS}return t.prototype.updateCloudDiscoveryMetadata=function(e,r){this.aliases=e.aliases,this.preferred_cache=e.preferred_cache,this.preferred_network=e.preferred_network,this.aliasesFromNetwork=r},t.prototype.updateEndpointMetadata=function(e,r){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=r,this.jwks_uri=e.jwks_uri},t.prototype.updateCanonicalAuthority=function(e){this.canonical_authority=e},t.prototype.resetExpiresAt=function(){this.expiresAt=Jt.nowSeconds()+_a.REFRESH_TIME_SECONDS},t.prototype.isExpired=function(){return this.expiresAt<=Jt.nowSeconds()},t.isAuthorityMetadataEntity=function(e,r){return r?e.indexOf(_a.CACHE_KEY)===0&&r.hasOwnProperty("aliases")&&r.hasOwnProperty("preferred_cache")&&r.hasOwnProperty("preferred_network")&&r.hasOwnProperty("canonical_authority")&&r.hasOwnProperty("authorization_endpoint")&&r.hasOwnProperty("token_endpoint")&&r.hasOwnProperty("issuer")&&r.hasOwnProperty("aliasesFromNetwork")&&r.hasOwnProperty("endpointsFromNetwork")&&r.hasOwnProperty("expiresAt")&&r.hasOwnProperty("jwks_uri"):!1},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */function KC(t){return t.hasOwnProperty("tenant_discovery_endpoint")&&t.hasOwnProperty("metadata")}/*! @azure/msal-common v8.0.0 2022-11-07 */var GC=function(){function t(e){this.networkInterface=e}return t.prototype.detectRegion=function(e,r,n){return K(this,void 0,void 0,function(){var o,i,a,s,c;return G(this,function(l){switch(l.label){case 0:if(o=e,o)return[3,8];i=t.IMDS_OPTIONS,n&&(i.proxyUrl=n),l.label=1;case 1:return l.trys.push([1,6,,7]),[4,this.getRegionFromIMDS(_.IMDS_VERSION,i)];case 2:return a=l.sent(),a.status===Wo.httpSuccess&&(o=a.body,r.region_source=gn.IMDS),a.status!==Wo.httpBadRequest?[3,5]:[4,this.getCurrentVersion(i)];case 3:return s=l.sent(),s?[4,this.getRegionFromIMDS(s,i)]:(r.region_source=gn.FAILED_AUTO_DETECTION,[2,null]);case 4:c=l.sent(),c.status===Wo.httpSuccess&&(o=c.body,r.region_source=gn.IMDS),l.label=5;case 5:return[3,7];case 6:return l.sent(),r.region_source=gn.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:r.region_source=gn.ENVIRONMENT_VARIABLE,l.label=9;case 9:return o||(r.region_source=gn.FAILED_AUTO_DETECTION),[2,o||null]}})})},t.prototype.getRegionFromIMDS=function(e,r){return K(this,void 0,void 0,function(){return G(this,function(n){return[2,this.networkInterface.sendGetRequestAsync(_.IMDS_ENDPOINT+"?api-version="+e+"&format=text",r,_.IMDS_TIMEOUT)]})})},t.prototype.getCurrentVersion=function(e){return K(this,void 0,void 0,function(){var r;return G(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.networkInterface.sendGetRequestAsync(_.IMDS_ENDPOINT+"?format=json",e)];case 1:return r=n.sent(),r.status===Wo.httpBadRequest&&r.body&&r.body["newest-versions"]&&r.body["newest-versions"].length>0?[2,r.body["newest-versions"][0]]:[2,null];case 2:return n.sent(),[2,null];case 3:return[2]}})})},t.IMDS_OPTIONS={headers:{Metadata:"true"}},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var Kc=function(){function t(e,r,n,o,i){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=r,this.cacheManager=n,this.authorityOptions=o,this.regionDiscovery=new GC(r),this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.proxyUrl=i||_.EMPTY_STRING}return Object.defineProperty(t.prototype,"authorityType",{get:function(){var e=this.canonicalAuthorityUrlComponents.PathSegments;if(e.length)switch(e[0].toLowerCase()){case _.ADFS:return Wt.Adfs;case _.DSTS:return Wt.Dsts}return Wt.Default},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(e){this._canonicalAuthority=new oe(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.authorization_endpoint);return this.replaceTenant(e)}else throw D.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.token_endpoint);return this.replaceTenant(e)}else throw D.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));return this.replaceTenant(e)}else throw D.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw D.createLogoutNotSupportedError();var e=this.replacePath(this.metadata.end_session_endpoint);return this.replaceTenant(e)}else throw D.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.issuer);return this.replaceTenant(e)}else throw D.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"jwksUri",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.jwks_uri);return this.replaceTenant(e)}else throw D.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),t.prototype.replaceTenant=function(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)},t.prototype.replacePath=function(e){var r=e,n=new oe(this.metadata.canonical_authority),o=n.getUrlComponents().PathSegments,i=this.canonicalAuthorityUrlComponents.PathSegments;return i.forEach(function(a,s){var c=o[s];a!==c&&(r=r.replace("/"+c+"/","/"+a+"/"))}),r},Object.defineProperty(t.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===Wt.Adfs||this.authorityType===Wt.Dsts||this.protocolMode===qc.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),t.prototype.discoveryComplete=function(){return!!this.metadata},t.prototype.resolveEndpointsAsync=function(){return K(this,void 0,void 0,function(){var e,r,n,o;return G(this,function(i){switch(i.label){case 0:return e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort),e||(e=new Id,e.updateCanonicalAuthority(this.canonicalAuthority)),[4,this.updateCloudDiscoveryMetadata(e)];case 1:return r=i.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,e.preferred_network),[4,this.updateEndpointMetadata(e)];case 2:return n=i.sent(),r!==qt.CACHE&&n!==qt.CACHE&&(e.resetExpiresAt(),e.updateCanonicalAuthority(this.canonicalAuthority)),o=this.cacheManager.generateAuthorityMetadataCacheKey(e.preferred_cache),this.cacheManager.setAuthorityMetadata(o,e),this.metadata=e,[2]}})})},t.prototype.updateEndpointMetadata=function(e){var r,n;return K(this,void 0,void 0,function(){var o,i;return G(this,function(a){switch(a.label){case 0:return o=this.getEndpointMetadataFromConfig(),o?(e.updateEndpointMetadata(o,!1),[2,qt.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,qt.CACHE]:(i=this.getEndpointMetadataFromHardcodedValues(),[4,this.getEndpointMetadataFromNetwork()]);case 1:return o=a.sent(),o?!((r=this.authorityOptions.azureRegionConfiguration)===null||r===void 0)&&r.azureRegion?[4,this.updateMetadataWithRegionalInformation(o)]:[3,3]:[3,4];case 2:o=a.sent(),a.label=3;case 3:return e.updateEndpointMetadata(o,!0),[2,qt.NETWORK];case 4:return i&&!this.authorityOptions.skipAuthorityMetadataCache?!((n=this.authorityOptions.azureRegionConfiguration)===null||n===void 0)&&n.azureRegion?[4,this.updateMetadataWithRegionalInformation(i)]:[3,6]:[3,7];case 5:i=a.sent(),a.label=6;case 6:return e.updateEndpointMetadata(i,!1),[2,qt.HARDCODED_VALUES];case 7:throw D.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},t.prototype.isAuthoritySameType=function(e){var r=new oe(e.canonical_authority),n=r.getUrlComponents().PathSegments;return n.length===this.canonicalAuthorityUrlComponents.PathSegments.length},t.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw Ee.createInvalidAuthorityMetadataError()}return null},t.prototype.getEndpointMetadataFromNetwork=function(){return K(this,void 0,void 0,function(){var e,r;return G(this,function(n){switch(n.label){case 0:e={},this.proxyUrl&&(e.proxyUrl=this.proxyUrl),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,e)];case 2:return r=n.sent(),[2,qC(r.body)?r.body:null];case 3:return n.sent(),[2,null];case 4:return[2]}})})},t.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in Ap?Ap[this.canonicalAuthority]:null},t.prototype.updateMetadataWithRegionalInformation=function(e){var r,n,o,i,a;return K(this,void 0,void 0,function(){var s,c;return G(this,function(l){switch(l.label){case 0:return[4,this.regionDiscovery.detectRegion((r=this.authorityOptions.azureRegionConfiguration)===null||r===void 0?void 0:r.environmentRegion,this.regionDiscoveryMetadata,this.proxyUrl)];case 1:return s=l.sent(),c=((n=this.authorityOptions.azureRegionConfiguration)===null||n===void 0?void 0:n.azureRegion)===_.AZURE_REGION_AUTO_DISCOVER_FLAG?s:(o=this.authorityOptions.azureRegionConfiguration)===null||o===void 0?void 0:o.azureRegion,((i=this.authorityOptions.azureRegionConfiguration)===null||i===void 0?void 0:i.azureRegion)===_.AZURE_REGION_AUTO_DISCOVER_FLAG?this.regionDiscoveryMetadata.region_outcome=s?Gn.AUTO_DETECTION_REQUESTED_SUCCESSFUL:Gn.AUTO_DETECTION_REQUESTED_FAILED:s?this.regionDiscoveryMetadata.region_outcome=((a=this.authorityOptions.azureRegionConfiguration)===null||a===void 0?void 0:a.azureRegion)===s?Gn.CONFIGURED_MATCHES_DETECTED:Gn.CONFIGURED_NOT_DETECTED:this.regionDiscoveryMetadata.region_outcome=Gn.CONFIGURED_NO_AUTO_DETECTION,c?(this.regionDiscoveryMetadata.region_used=c,[2,t.replaceWithRegionalInformation(e,c)]):[2,e]}})})},t.prototype.updateCloudDiscoveryMetadata=function(e){return K(this,void 0,void 0,function(){var r,n;return G(this,function(o){switch(o.label){case 0:return r=this.getCloudDiscoveryMetadataFromConfig(),r?(e.updateCloudDiscoveryMetadata(r,!1),[2,qt.CONFIG]):this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!e.isExpired()?[2,qt.CACHE]:(n=this.getCloudDiscoveryMetadataFromHarcodedValues(),[4,this.getCloudDiscoveryMetadataFromNetwork()]);case 1:if(r=o.sent(),r)return e.updateCloudDiscoveryMetadata(r,!0),[2,qt.NETWORK];if(n&&!this.options.skipAuthorityMetadataCache)return e.updateCloudDiscoveryMetadata(n,!1),[2,qt.HARDCODED_VALUES];throw Ee.createUntrustedAuthorityError()}})})},t.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityOptions.cloudDiscoveryMetadata)try{var e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),r=t.getCloudDiscoveryMetadataFromNetworkResponse(e.metadata,this.hostnameAndPort);if(r)return r}catch{throw Ee.createInvalidCloudDiscoveryMetadataError()}return this.isInKnownAuthorities()?t.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort):null},t.prototype.getCloudDiscoveryMetadataFromNetwork=function(){return K(this,void 0,void 0,function(){var e,r,n,o,i;return G(this,function(a){switch(a.label){case 0:e=""+_.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",r={},this.proxyUrl&&(r.proxyUrl=this.proxyUrl),n=null,a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(e,r)];case 2:return o=a.sent(),i=KC(o.body)?o.body.metadata:[],i.length===0?[2,null]:(n=t.getCloudDiscoveryMetadataFromNetworkResponse(i,this.hostnameAndPort),[3,4]);case 3:return a.sent(),[2,null];case 4:return n||(n=t.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,n]}})})},t.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in Rp?Rp[this.canonicalAuthority]:null},t.prototype.isInKnownAuthorities=function(){var e=this,r=this.authorityOptions.knownAuthorities.filter(function(n){return oe.getDomainFromUrl(n).toLowerCase()===e.hostnameAndPort});return r.length>0},t.generateAuthority=function(e,r){var n;if(r&&r.azureCloudInstance!==$a.None){var o=r.tenant?r.tenant:_.DEFAULT_COMMON_TENANT;n=r.azureCloudInstance+"/"+o+"/"}return n||e},t.createCloudDiscoveryMetadataFromHost=function(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}},t.getCloudDiscoveryMetadataFromNetworkResponse=function(e,r){for(var n=0;n<e.length;n++){var o=e[n];if(o.aliases.indexOf(r)>-1)return o}return null},t.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw D.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},t.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},t.isPublicCloudAuthority=function(e){return _.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},t.buildRegionalAuthorityString=function(e,r,n){var o=new oe(e);o.validateAsUri();var i=o.getUrlComponents(),a=r+"."+i.HostNameAndPort;this.isPublicCloudAuthority(i.HostNameAndPort)&&(a=r+"."+_.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var s=oe.constructAuthorityUriFromObject(ve(ve({},o.getUrlComponents()),{HostNameAndPort:a})).urlString;return n?s+"?"+n:s},t.replaceWithRegionalInformation=function(e,r){return e.authorization_endpoint=t.buildRegionalAuthorityString(e.authorization_endpoint,r),e.token_endpoint=t.buildRegionalAuthorityString(e.token_endpoint,r,_.REGIONAL_AUTH_NON_MSI_QUERY_STRING),e.end_session_endpoint&&(e.end_session_endpoint=t.buildRegionalAuthorityString(e.end_session_endpoint,r)),e},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var Gc=function(){function t(){}return t.createDiscoveredInstance=function(e,r,n,o,i){return K(this,void 0,void 0,function(){var a,s;return G(this,function(c){switch(c.label){case 0:a=t.createInstance(e,r,n,o,i),c.label=1;case 1:return c.trys.push([1,3,,4]),[4,a.resolveEndpointsAsync()];case 2:return c.sent(),[2,a];case 3:throw s=c.sent(),D.createEndpointDiscoveryIncompleteError(s);case 4:return[2]}})})},t.createInstance=function(e,r,n,o,i){if(x.isEmpty(e))throw Ee.createUrlEmptyError();return new Kc(e,r,n,o,i)},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var Vc=function(){function t(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return t.isServerTelemetryEntity=function(e,r){var n=e.indexOf(Ye.CACHE_KEY)===0,o=!0;return r&&(o=r.hasOwnProperty("failedRequests")&&r.hasOwnProperty("errors")&&r.hasOwnProperty("cacheHits")),n&&o},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var Pp=function(){function t(){}return t.isThrottlingEntity=function(e,r){var n=!1;e&&(n=e.indexOf(wa.THROTTLING_PREFIX)===0);var o=!0;return r&&(o=r.hasOwnProperty("throttleTime")),n&&o},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var VC={sendGetRequestAsync:function(){var t="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(z.createUnexpectedError(t))},sendPostRequestAsync:function(){var t="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(z.createUnexpectedError(t))}};/*! @azure/msal-common v8.0.0 2022-11-07 */var Rs={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."}},Np=function(t){Mt(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.name="JoseHeaderError",Object.setPrototypeOf(o,e.prototype),o}return e.createMissingKidError=function(){return new e(Rs.missingKidError.code,Rs.missingKidError.desc)},e.createMissingAlgError=function(){return new e(Rs.missingAlgError.code,Rs.missingAlgError.desc)},e}(z);/*! @azure/msal-common v8.0.0 2022-11-07 */var WC=function(){function t(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}return t.getShrHeaderString=function(e){if(!e.kid)throw Np.createMissingKidError();if(!e.alg)throw Np.createMissingAlgError();var r=new t({typ:e.typ||Sd.Jwt,kid:e.kid,alg:e.alg});return JSON.stringify(r)},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var YC=function(){function t(e,r){this.cacheOutcome=Jn.NO_CACHE_HIT,this.cacheManager=r,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||_.EMPTY_STRING,this.wrapperVer=e.wrapperVer||_.EMPTY_STRING,this.telemetryCacheKey=Ye.CACHE_KEY+Ft.CACHE_KEY_SEPARATOR+e.clientId}return t.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+Ye.VALUE_SEPARATOR+this.cacheOutcome,r=[this.wrapperSKU,this.wrapperVer].join(Ye.VALUE_SEPARATOR),n=this.getRegionDiscoveryFields(),o=[e,n].join(Ye.VALUE_SEPARATOR);return[Ye.SCHEMA_VERSION,o,r].join(Ye.CATEGORY_SEPARATOR)},t.prototype.generateLastRequestHeaderValue=function(){var e=this.getLastRequests(),r=t.maxErrorsToSend(e),n=e.failedRequests.slice(0,2*r).join(Ye.VALUE_SEPARATOR),o=e.errors.slice(0,r).join(Ye.VALUE_SEPARATOR),i=e.errors.length,a=r<i?Ye.OVERFLOW_TRUE:Ye.OVERFLOW_FALSE,s=[i,a].join(Ye.VALUE_SEPARATOR);return[Ye.SCHEMA_VERSION,e.cacheHits,n,o,s].join(Ye.CATEGORY_SEPARATOR)},t.prototype.cacheFailedRequest=function(e){var r=this.getLastRequests();r.errors.length>=Ye.MAX_CACHED_ERRORS&&(r.failedRequests.shift(),r.failedRequests.shift(),r.errors.shift()),r.failedRequests.push(this.apiId,this.correlationId),x.isEmpty(e.subError)?x.isEmpty(e.errorCode)?!!e&&e.toString()?r.errors.push(e.toString()):r.errors.push(Ye.UNKNOWN_ERROR):r.errors.push(e.errorCode):r.errors.push(e.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,r)},t.prototype.incrementCacheHits=function(){var e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits},t.prototype.getLastRequests=function(){var e=new Vc,r=this.cacheManager.getServerTelemetry(this.telemetryCacheKey);return r||e},t.prototype.clearTelemetryCache=function(){var e=this.getLastRequests(),r=t.maxErrorsToSend(e),n=e.errors.length;if(r===n)this.cacheManager.removeItem(this.telemetryCacheKey);else{var o=new Vc;o.failedRequests=e.failedRequests.slice(r*2),o.errors=e.errors.slice(r),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,o)}},t.maxErrorsToSend=function(e){var r,n=0,o=0,i=e.errors.length;for(r=0;r<i;r++){var a=e.failedRequests[2*r]||_.EMPTY_STRING,s=e.failedRequests[2*r+1]||_.EMPTY_STRING,c=e.errors[r]||_.EMPTY_STRING;if(o+=a.toString().length+s.toString().length+c.length+3,o<Ye.MAX_LAST_HEADER_BYTES)n+=1;else break}return n},t.prototype.getRegionDiscoveryFields=function(){var e=[];return e.push(this.regionUsed||_.EMPTY_STRING),e.push(this.regionSource||_.EMPTY_STRING),e.push(this.regionOutcome||_.EMPTY_STRING),e.join(",")},t.prototype.updateRegionDiscoveryMetadata=function(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome},t.prototype.setCacheOutcome=function(e){this.cacheOutcome=e},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var Ay=function(){function t(e,r,n,o,i,a){this.authority=r,this.libraryName=o,this.libraryVersion=i,this.applicationTelemetry=a,this.clientId=e,this.logger=n,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.staticFieldsByCorrelationId=new Map,this.measurementsById=new Map}return t.prototype.startMeasurement=function(e,r){var n=this,o,i,a=r||this.generateId();r||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:Jo.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:a};this.cacheEventByCorrelationId(c);var l={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.addStaticFields(l,a),this.cacheMeasurement(c,s),{endMeasurement:function(u){var h=n.endMeasurement(ve(ve({},c),u));return h&&n.cacheEventByCorrelationId(h),h},flushMeasurement:function(){return n.flushMeasurements(c.name,c.correlationId)},discardMeasurement:function(){return n.discardMeasurements(c.correlationId)},addStaticFields:function(u){return n.addStaticFields(u,c.correlationId)},measurement:s,event:c}},t.prototype.endMeasurement=function(e){var r=this.measurementsById.get(e.eventId);if(r){this.measurementsById.delete(e.eventId),r.endMeasurement();var n=r.flushMeasurement();if(n!==null){this.logger.trace("PerformanceClient: Performance measurement ended for "+e.name+": "+n+" ms",e.correlationId);var o=ve(ve({durationMs:Math.round(n)},e),{status:Jo.Completed});return o}else this.logger.trace("PerformanceClient: Performance measurement not taken",e.correlationId)}else this.logger.trace("PerformanceClient: Measurement not found for "+e.eventId,e.correlationId);return null},t.prototype.addStaticFields=function(e,r){var n=this.staticFieldsByCorrelationId.get(r);n?(this.logger.trace("PerformanceClient: Updating static fields"),this.staticFieldsByCorrelationId.set(r,ve(ve({},n),e))):(this.logger.trace("PerformanceClient: Adding static fields"),this.staticFieldsByCorrelationId.set(r,e))},t.prototype.cacheEventByCorrelationId=function(e){var r=this.eventsByCorrelationId.get(e.correlationId);r?(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" added/updated",e.correlationId),r.set(e.eventId,e)):(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" started",e.correlationId),this.eventsByCorrelationId.set(e.correlationId,new Map().set(e.eventId,e)))},t.prototype.cacheMeasurement=function(e,r){this.measurementsById.set(e.eventId,r)},t.prototype.flushMeasurements=function(e,r){var n=this;this.logger.trace("PerformanceClient: Performance measurements flushed for "+e,r);var o=this.eventsByCorrelationId.get(r);if(o){this.discardMeasurements(r);var i=[];o.forEach(function(d){if(d.name!==e&&d.status!==Jo.Completed){n.logger.trace("PerformanceClient: Incomplete submeasurement "+d.name+" found for "+e,r);var f=n.endMeasurement(d);f&&i.push(f)}i.push(d)});var a=i.sort(function(d,f){return d.startTimeMs-f.startTimeMs}),s=a.filter(function(d){return d.name===e&&d.status===Jo.Completed});if(s.length>0){s.length>1&&this.logger.verbose("PerformanceClient: Multiple distinct top-level performance events found, using the first",r);var c=s[0];this.logger.verbose("PerformanceClient: Measurement found for "+e,r);var l=a.reduce(function(d,f){if(f.name!==e){n.logger.trace("PerformanceClient: Complete submeasurement found for "+f.name,r);var m=f.name+"DurationMs";d[m]?n.logger.verbose("PerformanceClient: Submeasurement for "+e+" already exists for "+f.name+", ignoring",r):d[m]=f.durationMs}return d},c),u=this.staticFieldsByCorrelationId.get(r),h=ve(ve({},l),u);this.emitEvents([h],l.correlationId)}else this.logger.verbose("PerformanceClient: No completed top-level measurements found for "+e,r)}else this.logger.verbose("PerformanceClient: No measurements found",r)},t.prototype.discardMeasurements=function(e){this.logger.trace("PerformanceClient: Performance measurements discarded",e),this.eventsByCorrelationId.delete(e)},t.prototype.addPerformanceCallback=function(e){var r=this.generateId();return this.callbacks.set(r,e),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+r),r},t.prototype.removePerformanceCallback=function(e){var r=this.callbacks.delete(e);return r?this.logger.verbose("PerformanceClient: Performance callback "+e+" removed."):this.logger.verbose("PerformanceClient: Performance callback "+e+" not removed."),r},t.prototype.emitEvents=function(e,r){var n=this;this.logger.verbose("PerformanceClient: Emitting performance events",r),this.callbacks.forEach(function(o,i){n.logger.trace("PerformanceClient: Emitting event to callback "+i,r),o.apply(null,[e])})},t}();/*! @azure/msal-common v8.0.0 2022-11-07 */var QC=function(){function t(){}return t.prototype.startMeasurement=function(){},t.prototype.endMeasurement=function(){},t.prototype.flushMeasurement=function(){return null},t}(),JC=function(t){Mt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.generateId=function(){return"callback-id"},e.prototype.startPerformanceMeasuremeant=function(){return new QC},e}(Ay);/*! @azure/msal-browser v2.31.0 2022-11-07 */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."},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."}},N=function(t){ot(e,t);function e(r,n){var o=t.call(this,r,n)||this;return Object.setPrototypeOf(o,e.prototype),o.name="BrowserAuthError",o}return e.createPkceNotGeneratedError=function(r){return new e(I.pkceNotGenerated.code,I.pkceNotGenerated.desc+" Detail:"+r)},e.createCryptoNotAvailableError=function(r){return new e(I.cryptoDoesNotExist.code,I.cryptoDoesNotExist.desc+" Detail:"+r)},e.createHttpMethodNotImplementedError=function(r){return new e(I.httpMethodNotImplementedError.code,I.httpMethodNotImplementedError.desc+" Given Method: "+r)},e.createEmptyNavigationUriError=function(){return new e(I.emptyNavigateUriError.code,I.emptyNavigateUriError.desc)},e.createEmptyHashError=function(r){return new e(I.hashEmptyError.code,I.hashEmptyError.desc+" Given Url: "+r)},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(r){var n=I.popupWindowError.desc;return n=x.isEmpty(r)?n:n+" Details: "+r,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(r){return new e(I.redirectInIframeError.code,I.redirectInIframeError.desc+" (window.parent !== window) => "+r)},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(r){return new e(I.silentPromptValueError.code,I.silentPromptValueError.desc+" Given value: "+r)},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(r,n){return new e(I.postRequestFailed.code,I.postRequestFailed.desc+" | Network client threw: "+r+" | Attempted to reach: "+n.split("?")[0])},e.createGetRequestFailedError=function(r,n){return new e(I.getRequestFailed.code,I.getRequestFailed.desc+" | Network client threw: "+r+" | Attempted to reach: "+n.split("?")[0])},e.createFailedToParseNetworkResponseError=function(r){return new e(I.failedToParseNetworkResponse.code,I.failedToParseNetworkResponse.desc+" | Attempted to reach: "+r.split("?")[0])},e.createUnableToLoadTokenError=function(r){return new e(I.unableToLoadTokenError.code,I.unableToLoadTokenError.desc+" | "+r)},e.createSigningKeyNotFoundInStorageError=function(r){return new e(I.signingKeyNotFoundInStorage.code,I.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+r)},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.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}(z);/*! @azure/msal-browser v2.31.0 2022-11-07 */var cr={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"},ra={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},qr;(function(t){t.HandshakeRequest="Handshake",t.HandshakeResponse="HandshakeResponse",t.GetToken="GetToken",t.Response="Response"})(qr||(qr={}));var pt;(function(t){t.LocalStorage="localStorage",t.SessionStorage="sessionStorage",t.MemoryStorage="memoryStorage"})(pt||(pt={}));var _r;(function(t){t.GET="GET",t.POST="POST"})(_r||(_r={}));var ae;(function(t){t.AUTHORITY="authority",t.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",t.SESSION_STATE="session.state",t.REQUEST_STATE="request.state",t.NONCE_IDTOKEN="nonce.id_token",t.ORIGIN_URI="request.origin",t.RENEW_STATUS="token.renew.status",t.URL_HASH="urlHash",t.REQUEST_PARAMS="request.params",t.SCOPES="scopes",t.INTERACTION_STATUS_KEY="interaction.status",t.CCS_CREDENTIAL="ccs.credential",t.CORRELATION_ID="request.correlationId",t.NATIVE_REQUEST="request.native"})(ae||(ae={}));var Xo;(function(t){t.WRAPPER_SKU="wrapper.sku",t.WRAPPER_VER="wrapper.version"})(Xo||(Xo={}));var ye;(function(t){t[t.acquireTokenRedirect=861]="acquireTokenRedirect",t[t.acquireTokenPopup=862]="acquireTokenPopup",t[t.ssoSilent=863]="ssoSilent",t[t.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",t[t.handleRedirectPromise=865]="handleRedirectPromise",t[t.acquireTokenByCode=866]="acquireTokenByCode",t[t.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",t[t.logout=961]="logout",t[t.logoutPopup=962]="logoutPopup"})(ye||(ye={}));var F;(function(t){t.Redirect="redirect",t.Popup="popup",t.Silent="silent",t.None="none"})(F||(F={}));var Op;(function(t){t.Startup="startup",t.Login="login",t.Logout="logout",t.AcquireToken="acquireToken",t.SsoSilent="ssoSilent",t.HandleRedirect="handleRedirect",t.None="none"})(Op||(Op={}));var xp={scopes:ts},yi="jwk",Mp;(function(t){t.React="@azure/msal-react",t.Angular="@azure/msal-angular"})(Mp||(Mp={}));var kd="msal.db",XC=1,ZC=kd+".keys",At;(function(t){t[t.Default=0]="Default",t[t.AccessToken=1]="AccessToken",t[t.AccessTokenAndRefreshToken=2]="AccessTokenAndRefreshToken",t[t.RefreshToken=3]="RefreshToken",t[t.RefreshTokenAndNetwork=4]="RefreshTokenAndNetwork",t[t.Skip=5]="Skip"})(At||(At={}));/*! @azure/msal-browser v2.31.0 2022-11-07 */var kt={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."}},Wc=function(t){ot(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.name="BrowserConfigurationAuthError",Object.setPrototypeOf(o,e.prototype),o}return e.createRedirectUriEmptyError=function(){return new e(kt.redirectUriNotSet.code,kt.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(kt.postLogoutUriNotSet.code,kt.postLogoutUriNotSet.desc)},e.createStorageNotSupportedError=function(r){return new e(kt.storageNotSupportedError.code,kt.storageNotSupportedError.desc+" Given Location: "+r)},e.createRedirectCallbacksNotSetError=function(){return new e(kt.noRedirectCallbacksSet.code,kt.noRedirectCallbacksSet.desc)},e.createStubPcaInstanceCalledError=function(){return new e(kt.stubPcaInstanceCalled.code,kt.stubPcaInstanceCalled.desc)},e.createInMemoryRedirectUnavailableError=function(){return new e(kt.inMemRedirectUnavailable.code,kt.inMemRedirectUnavailable.desc)},e.createEntropyNotProvided=function(){return new e(kt.entropyNotProvided.code,kt.entropyNotProvided.desc)},e}(z);/*! @azure/msal-browser v2.31.0 2022-11-07 */var Up=function(){function t(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return t.prototype.validateWindowStorage=function(e){if(e!==pt.LocalStorage&&e!==pt.SessionStorage)throw Wc.createStorageNotSupportedError(e);var r=!!window[e];if(!r)throw Wc.createStorageNotSupportedError(e)},t.prototype.getItem=function(e){return this.windowStorage.getItem(e)},t.prototype.setItem=function(e,r){this.windowStorage.setItem(e,r)},t.prototype.removeItem=function(e){this.windowStorage.removeItem(e)},t.prototype.getKeys=function(){return Object.keys(this.windowStorage)},t.prototype.containsKey=function(e){return this.windowStorage.hasOwnProperty(e)},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var Ad=function(){function t(){this.cache=new Map}return t.prototype.getItem=function(e){return this.cache.get(e)||null},t.prototype.setItem=function(e,r){this.cache.set(e,r)},t.prototype.removeItem=function(e){this.cache.delete(e)},t.prototype.getKeys=function(){var e=[];return this.cache.forEach(function(r,n){e.push(n)}),e},t.prototype.containsKey=function(e){return this.cache.has(e)},t.prototype.clear=function(){this.cache.clear()},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var Ry=function(){function t(){}return t.extractBrowserRequestState=function(e,r){if(x.isEmpty(r))return null;try{var n=Wr.parseRequestState(e,r);return n.libraryState.meta}catch(o){throw D.createInvalidStateError(r,o)}},t.parseServerResponseFromHash=function(e){if(!e)return{};var r=new oe(e);return oe.getDeserializedHash(r.getHash())},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var Rd=function(t){ot(e,t);function e(r,n,o,i){var a=t.call(this,r,o)||this;return a.COOKIE_LIFE_MULTIPLIER=24*60*60*1e3,a.cacheConfig=n,a.logger=i,a.internalStorage=new Ad,a.browserStorage=a.setupBrowserStorage(a.cacheConfig.cacheLocation),a.temporaryCacheStorage=a.setupTemporaryCacheStorage(a.cacheConfig.cacheLocation),a.migrateCacheEntries(),a}return e.prototype.setupBrowserStorage=function(r){switch(r){case pt.LocalStorage:case pt.SessionStorage:try{return new Up(r)}catch(n){this.logger.verbose(n);break}}return this.cacheConfig.cacheLocation=pt.MemoryStorage,new Ad},e.prototype.setupTemporaryCacheStorage=function(r){switch(r){case pt.LocalStorage:case pt.SessionStorage:try{return new Up(pt.SessionStorage)}catch(n){return this.logger.verbose(n),this.internalStorage}case pt.MemoryStorage:default:return this.internalStorage}},e.prototype.migrateCacheEntries=function(){var r=this,n=_.CACHE_PREFIX+"."+He.ID_TOKEN,o=_.CACHE_PREFIX+"."+He.CLIENT_INFO,i=_.CACHE_PREFIX+"."+He.ERROR,a=_.CACHE_PREFIX+"."+He.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=[He.ID_TOKEN,He.CLIENT_INFO,He.ERROR,He.ERROR_DESC];d.forEach(function(f,m){return r.migrateCacheEntry(f,h[m])})},e.prototype.migrateCacheEntry=function(r,n){n&&this.setTemporaryCache(r,n,!0)},e.prototype.validateAndParseJson=function(r){try{var n=JSON.parse(r);return n&&typeof n=="object"?n:null}catch{return null}},e.prototype.getItem=function(r){return this.browserStorage.getItem(r)},e.prototype.setItem=function(r,n){this.browserStorage.setItem(r,n)},e.prototype.getAccount=function(r){var n=this.getItem(r);if(!n)return null;var o=this.validateAndParseJson(n);return!o||!tt.isAccountEntity(o)?null:or.toObject(new tt,o)},e.prototype.setAccount=function(r){this.logger.trace("BrowserCacheManager.setAccount called");var n=r.generateAccountKey();this.setItem(n,JSON.stringify(r))},e.prototype.getIdTokenCredential=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!ja.isIdTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),or.toObject(new ja,o))},e.prototype.setIdTokenCredential=function(r){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var n=r.generateCredentialKey();this.setItem(n,JSON.stringify(r))},e.prototype.getAccessTokenCredential=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!Ba.isAccessTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),or.toObject(new Ba,o))},e.prototype.setAccessTokenCredential=function(r){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var n=r.generateCredentialKey();this.setItem(n,JSON.stringify(r))},e.prototype.getRefreshTokenCredential=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!jc.isRefreshTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),or.toObject(new jc,o))},e.prototype.setRefreshTokenCredential=function(r){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var n=r.generateCredentialKey();this.setItem(n,JSON.stringify(r))},e.prototype.getAppMetadata=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!bd.isAppMetadataEntity(r,o)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),or.toObject(new bd,o))},e.prototype.setAppMetadata=function(r){this.logger.trace("BrowserCacheManager.setAppMetadata called");var n=r.generateAppMetadataKey();this.setItem(n,JSON.stringify(r))},e.prototype.getServerTelemetry=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!Vc.isServerTelemetryEntity(r,o)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),or.toObject(new Vc,o))},e.prototype.setServerTelemetry=function(r,n){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(r,JSON.stringify(n))},e.prototype.getAuthorityMetadata=function(r){var n=this.internalStorage.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var o=this.validateAndParseJson(n);return o&&Id.isAuthorityMetadataEntity(r,o)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),or.toObject(new Id,o)):null},e.prototype.getAuthorityMetadataKeys=function(){var r=this,n=this.internalStorage.getKeys();return n.filter(function(o){return r.isAuthorityMetadata(o)})},e.prototype.setWrapperMetadata=function(r,n){this.internalStorage.setItem(Xo.WRAPPER_SKU,r),this.internalStorage.setItem(Xo.WRAPPER_VER,n)},e.prototype.getWrapperMetadata=function(){var r=this.internalStorage.getItem(Xo.WRAPPER_SKU)||_.EMPTY_STRING,n=this.internalStorage.getItem(Xo.WRAPPER_VER)||_.EMPTY_STRING;return[r,n]},e.prototype.setAuthorityMetadata=function(r,n){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(r,JSON.stringify(n))},e.prototype.getActiveAccount=function(){var r=this.generateCacheKey(He.ACTIVE_ACCOUNT_FILTERS),n=this.getItem(r);if(!n){this.logger.trace("No active account filters cache schema found, looking for legacy schema");var o=this.generateCacheKey(He.ACTIVE_ACCOUNT),i=this.getItem(o);if(!i)return this.logger.trace("No active account found"),null;var a=this.getAccountInfoByFilter({localAccountId:i})[0]||null;return a?(this.logger.trace("Legacy active account cache schema found"),this.logger.trace("Adding active account filters cache schema"),this.setActiveAccount(a),a):null}var s=this.validateAndParseJson(n);return s?(this.logger.trace("Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:s.homeAccountId,localAccountId:s.localAccountId})[0]||null):(this.logger.trace("No active account found"),null)},e.prototype.setActiveAccount=function(r){var n=this.generateCacheKey(He.ACTIVE_ACCOUNT_FILTERS),o=this.generateCacheKey(He.ACTIVE_ACCOUNT);if(r){this.logger.verbose("setActiveAccount: Active account set");var i={homeAccountId:r.homeAccountId,localAccountId:r.localAccountId};this.browserStorage.setItem(n,JSON.stringify(i)),this.browserStorage.setItem(o,r.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(r){var n=this.getAllAccounts();return n.filter(function(o){return!(r.username&&r.username.toLowerCase()!==o.username.toLowerCase()||r.homeAccountId&&r.homeAccountId!==o.homeAccountId||r.localAccountId&&r.localAccountId!==o.localAccountId||r.tenantId&&r.tenantId!==o.tenantId||r.environment&&r.environment!==o.environment)})},e.prototype.getAccountInfoByHints=function(r,n){var o=this.getAllAccounts().filter(function(i){if(n){var a=i.idTokenClaims&&i.idTokenClaims.sid;return n===a}return r?r===i.username:!1});if(o.length===1)return o[0];if(o.length>1)throw D.createMultipleMatchingAccountsInCacheError();return null},e.prototype.getThrottlingCache=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var o=this.validateAndParseJson(n);return!o||!Pp.isThrottlingEntity(r,o)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),or.toObject(new Pp,o))},e.prototype.setThrottlingCache=function(r,n){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(r,JSON.stringify(n))},e.prototype.getTemporaryCache=function(r,n){var o=n?this.generateCacheKey(r):r;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===pt.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(r,n,o){var i=o?this.generateCacheKey(r):r;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(r){return this.browserStorage.removeItem(r),this.temporaryCacheStorage.removeItem(r),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(r)),!0},e.prototype.containsKey=function(r){return this.browserStorage.containsKey(r)||this.temporaryCacheStorage.containsKey(r)},e.prototype.getKeys=function(){return zh(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},e.prototype.clear=function(){return S(this,void 0,void 0,function(){var r=this;return T(this,function(n){switch(n.label){case 0:return[4,this.removeAllAccounts()];case 1:return n.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(o){(r.browserStorage.containsKey(o)||r.temporaryCacheStorage.containsKey(o))&&(o.indexOf(_.CACHE_PREFIX)!==-1||o.indexOf(r.clientId)!==-1)&&r.removeItem(o)}),this.internalStorage.clear(),[2]}})})},e.prototype.setItemCookie=function(r,n,o){var i=encodeURIComponent(r)+"="+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(r){for(var n=encodeURIComponent(r)+"=",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 _.EMPTY_STRING},e.prototype.clearMsalCookies=function(){var r=this,n=_.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];r.clearItemCookie(a)}})},e.prototype.clearItemCookie=function(r){this.setItemCookie(r,_.EMPTY_STRING,-1)},e.prototype.getCookieExpirationTime=function(r){var n=new Date,o=new Date(n.getTime()+r*this.COOKIE_LIFE_MULTIPLIER);return o.toUTCString()},e.prototype.getCache=function(){return this.browserStorage},e.prototype.setCache=function(){},e.prototype.generateCacheKey=function(r){var n=this.validateAndParseJson(r);return n?JSON.stringify(r):x.startsWith(r,_.CACHE_PREFIX)||x.startsWith(r,He.ADAL_ID_TOKEN)?r:_.CACHE_PREFIX+"."+this.clientId+"."+r},e.prototype.generateAuthorityKey=function(r){var n=Wr.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(ae.AUTHORITY+"."+n)},e.prototype.generateNonceKey=function(r){var n=Wr.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(ae.NONCE_IDTOKEN+"."+n)},e.prototype.generateStateKey=function(r){var n=Wr.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(ae.REQUEST_STATE+"."+n)},e.prototype.getCachedAuthority=function(r){var n=this.generateStateKey(r),o=this.getTemporaryCache(n);if(!o)return null;var i=this.generateAuthorityKey(o);return this.getTemporaryCache(i)},e.prototype.updateCacheEntries=function(r,n,o,i,a){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var s=this.generateStateKey(r);this.setTemporaryCache(s,r,!1);var c=this.generateNonceKey(r);this.setTemporaryCache(c,n,!1);var l=this.generateAuthorityKey(r);if(this.setTemporaryCache(l,o,!1),a){var u={credential:a.homeAccountId,type:Dt.HOME_ACCOUNT_ID};this.setTemporaryCache(ae.CCS_CREDENTIAL,JSON.stringify(u),!0)}else if(!x.isEmpty(i)){var u={credential:i,type:Dt.UPN};this.setTemporaryCache(ae.CCS_CREDENTIAL,JSON.stringify(u),!0)}},e.prototype.resetRequestCache=function(r){var n=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),x.isEmpty(r)||this.getKeys().forEach(function(o){o.indexOf(r)!==-1&&n.removeItem(o)}),r&&(this.removeItem(this.generateStateKey(r)),this.removeItem(this.generateNonceKey(r)),this.removeItem(this.generateAuthorityKey(r))),this.removeItem(this.generateCacheKey(ae.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(ae.ORIGIN_URI)),this.removeItem(this.generateCacheKey(ae.URL_HASH)),this.removeItem(this.generateCacheKey(ae.CORRELATION_ID)),this.removeItem(this.generateCacheKey(ae.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(ae.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},e.prototype.cleanRequestByState=function(r){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),r){var n=this.generateStateKey(r),o=this.temporaryCacheStorage.getItem(n);this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+o),this.resetRequestCache(o||_.EMPTY_STRING)}this.clearMsalCookies()},e.prototype.cleanRequestByInteractionType=function(r){var n=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(function(o){if(o.indexOf(ae.REQUEST_STATE)!==-1){var i=n.temporaryCacheStorage.getItem(o);if(!!i){var a=Ry.extractBrowserRequestState(n.cryptoImpl,i);a&&a.interactionType===r&&(n.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+i),n.resetRequestCache(i))}}}),this.clearMsalCookies(),this.setInteractionInProgress(!1)},e.prototype.cacheCodeRequest=function(r,n){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var o=n.base64Encode(JSON.stringify(r));this.setTemporaryCache(ae.REQUEST_PARAMS,o,!0)},e.prototype.getCachedRequest=function(r,n){this.logger.trace("BrowserCacheManager.getCachedRequest called");var o=this.getTemporaryCache(ae.REQUEST_PARAMS,!0);if(!o)throw N.createNoTokenRequestCacheError();var i=this.validateAndParseJson(n.base64Decode(o));if(!i)throw N.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(ae.REQUEST_PARAMS)),x.isEmpty(i.authority)){var a=this.generateAuthorityKey(r),s=this.getTemporaryCache(a);if(!s)throw N.createNoCachedAuthorityError();i.authority=s}return i},e.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var r=this.getTemporaryCache(ae.NATIVE_REQUEST,!0);if(!r)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;var n=this.validateAndParseJson(r);return n||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)},e.prototype.isInteractionInProgress=function(r){var n=this.getInteractionInProgress();return r?n===this.clientId:!!n},e.prototype.getInteractionInProgress=function(){var r=_.CACHE_PREFIX+"."+ae.INTERACTION_STATUS_KEY;return this.getTemporaryCache(r,!1)},e.prototype.setInteractionInProgress=function(r){var n=_.CACHE_PREFIX+"."+ae.INTERACTION_STATUS_KEY;if(r){if(this.getInteractionInProgress())throw N.createInteractionInProgressError();this.setTemporaryCache(n,this.clientId,!1)}else!r&&this.getInteractionInProgress()===this.clientId&&this.removeItem(n)},e.prototype.getLegacyLoginHint=function(){var r=this.getTemporaryCache(He.ADAL_ID_TOKEN);r&&(this.browserStorage.removeItem(He.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var n=this.getTemporaryCache(He.ID_TOKEN,!0);n&&(this.removeItem(this.generateCacheKey(He.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var o=n||r;if(o){var i=new kr(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(r,n){var o=n.generateCredentialKey();if(r!==o){var i=this.getItem(r);if(i)return this.removeItem(r),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 r},e}(or),eS=function(t,e){var r={cacheLocation:pt.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1};return new Rd(t,r,Fc,e)};/*! @azure/msal-browser v2.31.0 2022-11-07 */var ou="@azure/msal-browser",Ea="2.31.0";/*! @azure/msal-browser v2.31.0 2022-11-07 */var tS=function(){function t(){}return t.prototype.sendGetRequestAsync=function(e,r){return S(this,void 0,void 0,function(){var n,o,i;return T(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,fetch(e,{method:_r.GET,headers:this.getFetchHeaders(r)})];case 1:return n=a.sent(),[3,3];case 2:throw o=a.sent(),window.navigator.onLine?N.createGetRequestFailedError(o,e):N.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(),N.createFailedToParseNetworkResponseError(e);case 6:return[2]}})})},t.prototype.sendPostRequestAsync=function(e,r){return S(this,void 0,void 0,function(){var n,o,i,a;return T(this,function(s){switch(s.label){case 0:n=r&&r.body||_.EMPTY_STRING,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,fetch(e,{method:_r.POST,headers:this.getFetchHeaders(r),body:n})];case 2:return o=s.sent(),[3,4];case 3:throw i=s.sent(),window.navigator.onLine?N.createPostRequestFailedError(i,e):N.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(),N.createFailedToParseNetworkResponseError(e);case 7:return[2]}})})},t.prototype.getFetchHeaders=function(e){var r=new Headers;if(!(e&&e.headers))return r;var n=e.headers;return Object.keys(n).forEach(function(o){r.append(o,n[o])}),r},t.prototype.getHeaderDict=function(e){var r={};return e.forEach(function(n,o){r[o]=n}),r},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var rS=function(){function t(){}return t.prototype.sendGetRequestAsync=function(e,r){return S(this,void 0,void 0,function(){return T(this,function(n){return[2,this.sendRequestAsync(e,_r.GET,r)]})})},t.prototype.sendPostRequestAsync=function(e,r){return S(this,void 0,void 0,function(){return T(this,function(n){return[2,this.sendRequestAsync(e,_r.POST,r)]})})},t.prototype.sendRequestAsync=function(e,r,n){var o=this;return new Promise(function(i,a){var s=new XMLHttpRequest;if(s.open(r,e,!0),o.setXhrHeaders(s,n),s.onload=function(){(s.status<200||s.status>=300)&&(r===_r.POST?a(N.createPostRequestFailedError("Failed with status "+s.status,e)):a(N.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(N.createFailedToParseNetworkResponseError(e))}},s.onerror=function(){window.navigator.onLine?r===_r.POST?a(N.createPostRequestFailedError("Failed with status "+s.status,e)):a(N.createGetRequestFailedError("Failed with status "+s.status,e)):a(N.createNoNetworkConnectivityError())},r===_r.POST&&n&&n.body)s.send(n.body);else if(r===_r.GET)s.send();else throw N.createHttpMethodNotImplementedError(r)})},t.prototype.setXhrHeaders=function(e,r){if(r&&r.headers){var n=r.headers;Object.keys(n).forEach(function(o){e.setRequestHeader(o,n[o])})}},t.prototype.getHeaderDict=function(e){var r=e.getAllResponseHeaders(),n=r.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},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var Oe=function(){function t(){}return t.clearHash=function(e){e.location.hash=_.EMPTY_STRING,typeof e.history.replaceState=="function"&&e.history.replaceState(null,_.EMPTY_STRING,""+e.location.origin+e.location.pathname+e.location.search)},t.replaceHash=function(e){var r=e.split("#");r.shift(),window.location.hash=r.length>0?r.join("#"):_.EMPTY_STRING},t.isInIframe=function(){return window.parent!==window},t.isInPopup=function(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(cr.POPUP_NAME_PREFIX+".")===0},t.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},t.getHomepage=function(){var e=new oe(window.location.href),r=e.getUrlComponents();return r.Protocol+"//"+r.HostNameAndPort+"/"},t.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new tS:new rS},t.blockReloadInHiddenIframes=function(){var e=oe.hashContainsKnownProperties(window.location.hash);if(e&&t.isInIframe())throw N.createBlockReloadInHiddenIframeError()},t.blockRedirectInIframe=function(e,r){var n=t.isInIframe();if(e===F.Redirect&&n&&!r)throw N.createRedirectInIframeError(n)},t.blockAcquireTokenInPopups=function(){if(t.isInPopup())throw N.createBlockAcquireTokenInPopupsError()},t.blockNonBrowserEnvironment=function(e){if(!e)throw N.createNonBrowserEnvironmentError()},t.blockNativeBrokerCalledBeforeInitialized=function(e,r){if(e&&!r)throw N.createNativeBrokerCalledBeforeInitialize()},t.detectIEOrEdge=function(){var e=window.navigator.userAgent,r=e.indexOf("MSIE "),n=e.indexOf("Trident/"),o=e.indexOf("Edge/"),i=r>0||n>0,a=o>0;return i||a},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var Py=function(){function t(e,r,n,o,i,a,s,c,l){this.config=e,this.browserStorage=r,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(cr.MSAL_SKU,Ea,this.correlationId),this.performanceClient=s}return t.prototype.clearCacheOnLogout=function(e){return S(this,void 0,void 0,function(){return T(this,function(r){switch(r.label){case 0:if(!e)return[3,5];tt.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null)),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.browserStorage.removeAccount(tt.generateAccountCacheKey(e))];case 2:return r.sent(),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."),[3,4];case 3:return r.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 r.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 r.sent(),[4,this.browserCrypto.clearKeystore()];case 7:return r.sent(),[3,9];case 8:return r.sent(),this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged."),[3,9];case 9:return[2]}})})},t.prototype.initializeBaseRequest=function(e){return S(this,void 0,void 0,function(){var r,n,o,i;return T(this,function(a){switch(a.label){case 0:if(this.logger.verbose("Initializing BaseAuthRequest"),r=e.authority||this.config.auth.authority,n=zh(e&&e.scopes||[]),o=$($({},e),{correlationId:this.correlationId,authority:r,scopes:n}),!o.authenticationScheme)o.authenticationScheme=le.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(o.authenticationScheme===le.SSH){if(!e.sshJwk)throw Ee.createMissingSshJwkError();if(!e.sshKid)throw Ee.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+o.authenticationScheme+'" as configured in Auth request')}return e.claims&&!x.isEmpty(e.claims)?(i=o,[4,this.browserCrypto.hashString(e.claims)]):[3,2];case 1:i.requestedClaimsHash=a.sent(),a.label=2;case 2:return[2,o]}})})},t.prototype.getRedirectUri=function(e){this.logger.verbose("getRedirectUri called");var r=e||this.config.auth.redirectUri||Oe.getCurrentUri();return oe.getAbsoluteUrl(r,Oe.getCurrentUri())},t.prototype.initializeServerTelemetryManager=function(e,r){this.logger.verbose("initializeServerTelemetryManager called");var n={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:r||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new YC(n,this.browserStorage)},t.prototype.getDiscoveredAuthority=function(e){return S(this,void 0,void 0,function(){var r;return T(this,function(n){switch(n.label){case 0:return this.logger.verbose("getDiscoveredAuthority called"),r={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,Gc.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,r)]):[3,2];case 1:return[2,n.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,Gc.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,r)];case 3:return[2,n.sent()]}})})},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var Ri=function(t){ot(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.initializeAuthorizationCodeRequest=function(r){return S(this,void 0,void 0,function(){var n,o;return T(this,function(i){switch(i.label){case 0:return this.logger.verbose("initializeAuthorizationRequest called",r.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return n=i.sent(),o=$($({},r),{redirectUri:r.redirectUri,code:_.EMPTY_STRING,codeVerifier:n.verifier}),r.codeChallenge=n.challenge,r.codeChallengeMethod=_.S256_CODE_CHALLENGE_METHOD,[2,o]}})})},e.prototype.initializeLogoutRequest=function(r){this.logger.verbose("initializeLogoutRequest called",r==null?void 0:r.correlationId);var n=$({correlationId:this.correlationId||this.browserCrypto.createNewGuid()},r);if(r)if(r.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(r.account){var o=this.getLogoutHintFromIdTokenClaims(r.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!r||r.postLogoutRedirectUri!==null?r&&r.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",n.correlationId),n.postLogoutRedirectUri=oe.getAbsoluteUrl(r.postLogoutRedirectUri,Oe.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=oe.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,Oe.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",n.correlationId),n.postLogoutRedirectUri=oe.getAbsoluteUrl(Oe.getCurrentUri(),Oe.getCurrentUri())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",n.correlationId),n},e.prototype.getLogoutHintFromIdTokenClaims=function(r){var n=r.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(r,n,o){return S(this,void 0,void 0,function(){var i;return T(this,function(a){switch(a.label){case 0:return[4,this.getClientConfiguration(r,n,o)];case 1:return i=a.sent(),[2,new by(i)]}})})},e.prototype.getClientConfiguration=function(r,n,o){return S(this,void 0,void 0,function(){var i;return T(this,function(a){switch(a.label){case 0:return this.logger.verbose("getClientConfiguration called",this.correlationId),[4,this.getDiscoveredAuthority(n,o)];case 1:return i=a.sent(),[2,{authOptions:{clientId:this.config.auth.clientId,authority:i,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:this.config.system.loggerOptions.loggerCallback,piiLoggingEnabled:this.config.system.loggerOptions.piiLoggingEnabled,logLevel:this.config.system.loggerOptions.logLevel,correlationId:this.correlationId},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:r,libraryInfo:{sku:cr.MSAL_SKU,version:Ea,cpu:_.EMPTY_STRING,os:_.EMPTY_STRING},telemetry:this.config.telemetry}]}})})},e.prototype.validateAndExtractStateFromHash=function(r,n,o){if(this.logger.verbose("validateAndExtractStateFromHash called",o),!r.state)throw N.createHashDoesNotContainStateError();var i=Ry.extractBrowserRequestState(this.browserCrypto,r.state);if(!i)throw N.createUnableToParseStateError();if(i.interactionType!==n)throw N.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",o),r.state},e.prototype.getDiscoveredAuthority=function(r,n){return S(this,void 0,void 0,function(){var o,i,a,s;return T(this,function(c){switch(c.label){case 0:return this.logger.verbose("getDiscoveredAuthority called",this.correlationId),o=this.performanceClient.startMeasurement(je.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),i={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},a=r||this.config.auth.authority,s=Kc.generateAuthority(a,n||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),[4,Gc.createDiscoveredInstance(s,this.config.system.networkClient,this.browserStorage,i).then(function(l){return o.endMeasurement({success:!0}),l}).catch(function(l){throw o.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),l})];case 1:return[2,c.sent()]}})})},e.prototype.initializeAuthorizationRequest=function(r,n){return S(this,void 0,void 0,function(){var o,i,a,s,c,l,u;return T(this,function(h){switch(h.label){case 0:return this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),o=this.getRedirectUri(r.redirectUri),i={interactionType:n},a=Wr.setRequestState(this.browserCrypto,r&&r.state||_.EMPTY_STRING,i),c=[{}],[4,this.initializeBaseRequest(r)];case 1:return s=$.apply(void 0,[$.apply(void 0,c.concat([h.sent()])),{redirectUri:o,state:a,nonce:r.nonce||this.browserCrypto.createNewGuid(),responseMode:Uc.FRAGMENT}]),l=r.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),x.isEmpty(s.loginHint)&&!l&&(u=this.browserStorage.getLegacyLoginHint(),u&&(s.loginHint=u)),[2,s]}})})},e}(Py);/*! @azure/msal-browser v2.31.0 2022-11-07 */var qh=function(){function t(e,r,n,o){this.authModule=e,this.browserStorage=r,this.authCodeRequest=n,this.logger=o}return t.prototype.handleCodeResponseFromHash=function(e,r,n,o){return S(this,void 0,void 0,function(){var i,a,s;return T(this,function(c){if(this.logger.verbose("InteractionHandler.handleCodeResponse called"),x.isEmpty(e))throw N.createEmptyHashError(e);if(i=this.browserStorage.generateStateKey(r),a=this.browserStorage.getTemporaryCache(i),!a)throw D.createStateNotFoundError("Cached State");try{s=this.authModule.handleFragmentResponse(e,a)}catch(l){throw l instanceof vo&&l.subError===I.userCancelledError.code?N.createUserCancelledError():l}return[2,this.handleCodeResponseFromServer(s,r,n,o)]})})},t.prototype.handleCodeResponseFromServer=function(e,r,n,o,i){return i===void 0&&(i=!0),S(this,void 0,void 0,function(){var a,s,c,l,u,h;return T(this,function(d){switch(d.label){case 0:if(this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),a=this.browserStorage.generateStateKey(r),s=this.browserStorage.getTemporaryCache(a),!s)throw D.createStateNotFoundError("Cached State");return c=this.browserStorage.generateNonceKey(s),l=this.browserStorage.getTemporaryCache(c),this.authCodeRequest.code=e.code,e.cloud_instance_host_name?[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)),[4,this.authModule.acquireToken(this.authCodeRequest,e)];case 3:return h=d.sent(),this.browserStorage.cleanRequestByState(r),[2,h]}})})},t.prototype.updateTokenEndpointAuthority=function(e,r,n){return S(this,void 0,void 0,function(){var o,i;return T(this,function(a){switch(a.label){case 0:return o="https://"+e+"/"+r.tenant+"/",[4,Gc.createDiscoveredInstance(o,n,this.browserStorage,r.options)];case 1:return i=a.sent(),this.authModule.updateAuthority(i),[2]}})})},t.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(ae.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},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var Lp=function(t){ot(e,t);function e(r,n,o,i,a){var s=t.call(this,r,n,o,i)||this;return s.browserCrypto=a,s}return e.prototype.initiateAuthRequest=function(r,n){return S(this,void 0,void 0,function(){var o,i;return T(this,function(a){switch(a.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),x.isEmpty(r)?[3,7]:(n.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(ae.ORIGIN_URI,n.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(ae.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+r),o={apiId:ye.acquireTokenRedirect,timeout:n.redirectTimeout,noHistory:!1},typeof n.onRedirectNavigate!="function"?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),i=n.onRedirectNavigate(r),i===!1?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,n.navigationClient.navigateExternal(r,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(r,o)];case 5:return a.sent(),[2];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),N.createEmptyNavigationUriError();case 8:return[2]}})})},e.prototype.handleCodeResponseFromHash=function(r,n,o,i){return S(this,void 0,void 0,function(){var a,s,c,l,u,h,d;return T(this,function(f){switch(f.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),x.isEmpty(r))throw N.createEmptyHashError(r);if(this.browserStorage.setInteractionInProgress(!1),a=this.browserStorage.generateStateKey(n),s=this.browserStorage.getTemporaryCache(a),!s)throw D.createStateNotFoundError("Cached State");try{c=this.authModule.handleFragmentResponse(r,s)}catch(m){throw m instanceof vo&&m.subError===I.userCancelledError.code?N.createUserCancelledError():m}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}(qh);/*! @azure/msal-browser v2.31.0 2022-11-07 */var q;(function(t){t.INITIALIZE_START="msal:initializeStart",t.INITIALIZE_END="msal:initializeEnd",t.ACCOUNT_ADDED="msal:accountAdded",t.ACCOUNT_REMOVED="msal:accountRemoved",t.LOGIN_START="msal:loginStart",t.LOGIN_SUCCESS="msal:loginSuccess",t.LOGIN_FAILURE="msal:loginFailure",t.ACQUIRE_TOKEN_START="msal:acquireTokenStart",t.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",t.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",t.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",t.SSO_SILENT_START="msal:ssoSilentStart",t.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",t.SSO_SILENT_FAILURE="msal:ssoSilentFailure",t.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",t.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",t.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",t.HANDLE_REDIRECT_START="msal:handleRedirectStart",t.HANDLE_REDIRECT_END="msal:handleRedirectEnd",t.POPUP_OPENED="msal:popupOpened",t.LOGOUT_START="msal:logoutStart",t.LOGOUT_SUCCESS="msal:logoutSuccess",t.LOGOUT_FAILURE="msal:logoutFailure",t.LOGOUT_END="msal:logoutEnd"})(q||(q={}));/*! @azure/msal-browser v2.31.0 2022-11-07 */var mn;(function(t){t.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",t.USER_CANCEL="USER_CANCEL",t.NO_NETWORK="NO_NETWORK",t.TRANSIENT_ERROR="TRANSIENT_ERROR",t.PERSISTENT_ERROR="PERSISTENT_ERROR",t.DISABLED="DISABLED",t.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"})(mn||(mn={}));var Bi={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"}},Er=function(t){ot(e,t);function e(r,n,o){var i=t.call(this,r,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===mn.PERSISTENT_ERROR||this.ext.status===mn.DISABLED))return!0;switch(this.errorCode){case Bi.extensionError.code:return!0;default:return!1}},e.createError=function(r,n,o){if(o&&o.status)switch(o.status){case mn.ACCOUNT_UNAVAILABLE:return lr.createNativeAccountUnavailableError();case mn.USER_INTERACTION_REQUIRED:return new lr(r,n);case mn.USER_CANCEL:return N.createUserCancelledError();case mn.NO_NETWORK:return N.createNoNetworkConnectivityError()}return new e(r,n,o)},e.createUserSwitchError=function(){return new e(Bi.userSwitch.code,Bi.userSwitch.desc)},e.createTokensNotFoundInCacheError=function(){return new e(Bi.tokensNotFoundInCache.code,Bi.tokensNotFoundInCache.desc)},e}(z);/*! @azure/msal-browser v2.31.0 2022-11-07 */var Ny=function(t){ot(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.acquireToken=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s;return T(this,function(c){switch(c.label){case 0:return n=this.performanceClient.startMeasurement(je.SilentCacheClientAcquireToken,r.correlationId),o=this.initializeServerTelemetryManager(ye.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(o,r.authority,r.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(r)];case 3:return a=c.sent(),n.endMeasurement({success:!0,fromCache:!0}),[2,a];case 4:throw s=c.sent(),s instanceof N&&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 z&&s.errorCode||void 0,subErrorCode:s instanceof z&&s.subError||void 0,success:!1}),s;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(N.createSilentLogoutUnsupportedError())},e.prototype.createSilentFlowClient=function(r,n,o){return S(this,void 0,void 0,function(){var i;return T(this,function(a){switch(a.label){case 0:return[4,this.getClientConfiguration(r,n,o)];case 1:return i=a.sent(),[2,new BC(i,this.performanceClient)]}})})},e.prototype.initializeSilentRequest=function(r,n){return S(this,void 0,void 0,function(){var o;return T(this,function(i){switch(i.label){case 0:return o=[$({},r)],[4,this.initializeBaseRequest(r)];case 1:return[2,$.apply(void 0,[$.apply(void 0,o.concat([i.sent()])),{account:n,forceRefresh:r.forceRefresh||!1}])]}})})},e}(Ri);/*! @azure/msal-browser v2.31.0 2022-11-07 */var si=function(t){ot(e,t);function e(r,n,o,i,a,s,c,l,u,h,d,f){var m=t.call(this,r,n,o,i,a,s,l,u,f)||this;return m.apiId=c,m.accountId=h,m.nativeMessageHandler=u,m.nativeStorageManager=d,m.silentCacheClient=new Ny(r,m.nativeStorageManager,o,i,a,s,l,u,f),m}return e.prototype.acquireToken=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l;return T(this,function(u){switch(u.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),n=this.performanceClient.startMeasurement(je.NativeInteractionClientAcquireToken,r.correlationId),o=Jt.nowSeconds(),[4,this.initializeNativeRequest(r)];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:qr.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(r,n){return{authority:r.authority,correlationId:this.correlationId,scopes:Ct.fromString(r.scope).asArray(),account:n,forceRefresh:!1}},e.prototype.acquireTokensFromCache=function(r,n){return S(this,void 0,void 0,function(){var o,i,a,s,c;return T(this,function(l){switch(l.label){case 0:if(o=this.browserStorage.readAccountFromCacheWithNativeAccountId(r),!o)throw D.createNoAccountFoundError();i=o.getAccountInfo(),l.label=1;case 1:return l.trys.push([1,3,,4]),a=this.createSilentCacheRequest(n,i),[4,this.silentCacheClient.acquireToken(a)];case 2:return s=l.sent(),[2,s];case 3:throw c=l.sent(),c;case 4:return[2]}})})},e.prototype.acquireTokenRedirect=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c;return T(this,function(l){switch(l.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(r)];case 1:n=l.sent(),o={method:qr.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 Er&&a.isFatal())throw a;return[3,5];case 5:return this.browserStorage.setTemporaryCache(ae.NATIVE_REQUEST,JSON.stringify(n),!0),s={apiId:ye.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},c=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(r.redirectUri),[4,this.navigationClient.navigateExternal(c,s)];case 6:return l.sent(),[2]}})})},e.prototype.handleRedirectPromise=function(){return S(this,void 0,void 0,function(){var r,n,o,i,a,s,c,l;return T(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(r=this.browserStorage.getCachedNativeRequest(),!r)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];n=r.prompt,o=Sp(r,["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(ae.NATIVE_REQUEST)),i={method:qr.GetToken,request:o},a=Jt.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(r,n,o){return S(this,void 0,void 0,function(){var i,a,s,c,l,u,h,d,f,m,v,E,g,p,y,w,k,P,M,O,se=this;return T(this,function(B){switch(B.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),i=this.getMATSFromResponse(r),this.performanceClient.addStaticFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:i?i.broker_version:void 0,matsAccountJoinOnStart:i?i.account_join_on_start:void 0,matsAccountJoinOnEnd:i?i.account_join_on_end:void 0,matsDeviceJoin:i?i.device_join:void 0,matsPromptBehavior:i?i.prompt_behavior:void 0,matsApiErrorCode:i?i.api_error_code:void 0,matsUiVisible:i?i.ui_visible:void 0,matsSilentCode:i?i.silent_code:void 0,matsSilentBiSubCode:i?i.silent_bi_sub_code:void 0,matsSilentMessage:i?i.silent_message:void 0,matsSilentStatus:i?i.silent_status:void 0,matsHttpStatus:i?i.http_status:void 0,matsHttpEventCount:i?i.http_event_count:void 0},this.correlationId),r.account.id!==n.accountId)throw Er.createUserSwitchError();return a=new kr(r.id_token||_.EMPTY_STRING,this.browserCrypto),[4,this.getDiscoveredAuthority(n.authority)];case 1:switch(s=B.sent(),c=s.getPreferredCache(),l=tt.generateHomeAccountId(r.client_info||_.EMPTY_STRING,Wt.Default,this.logger,this.browserCrypto,a),u=tt.createAccount(r.client_info,l,a,void 0,void 0,void 0,c,r.account.id),this.browserStorage.setAccount(u),h=r.scope?Ct.fromString(r.scope):Ct.fromString(n.scope),d=r.account.properties||{},f=d.UID||a.claims.oid||a.claims.sub||_.EMPTY_STRING,m=d.TenantId||a.claims.tid||_.EMPTY_STRING,E=le.BEARER,g=n.tokenType,g){case le.POP:return[3,2]}return[3,4];case 2:if(E=le.POP,r.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),v=r.shr,[3,5];if(p=new vi(this.browserCrypto),y={resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,shrNonce:n.shrNonce},!n.keyId)throw D.createKeyIdMissingError();return[4,p.signPopToken(r.access_token,n.keyId,y)];case 3:return v=B.sent(),[3,5];case 4:v=r.access_token,B.label=5;case 5:return w={authority:s.canonicalAuthority,uniqueId:f,tenantId:m,scopes:h.asArray(),account:u.getAccountInfo(),idToken:r.id_token,idTokenClaims:a.claims,accessToken:v,fromCache:i?this.isResponseFromCache(i):!1,expiresOn:new Date(Number(o+r.expires_in)*1e3),tokenType:E,correlationId:this.correlationId,state:r.state,fromNativeBroker:!0},k=ja.createIdTokenEntity(l,n.authority,r.id_token||_.EMPTY_STRING,n.clientId,a.claims.tid||_.EMPTY_STRING),this.nativeStorageManager.setIdTokenCredential(k),P=E===le.POP?_.SHR_NONCE_VALIDITY:(typeof r.expires_in=="string"?parseInt(r.expires_in,10):r.expires_in)||0,M=o+P,O=Ba.createAccessTokenEntity(l,n.authority,v,n.clientId,m,h.printScopes(),M,0,this.browserCrypto),this.nativeStorageManager.setAccessTokenCredential(O),this.browserStorage.removeAccountContext(u).catch(function(_t){se.logger.error("Error occurred while removing account context from browser storage. "+_t)}),[2,w]}})})},e.prototype.validateNativeResponse=function(r){if(r.hasOwnProperty("access_token")&&r.hasOwnProperty("id_token")&&r.hasOwnProperty("client_info")&&r.hasOwnProperty("account")&&r.hasOwnProperty("scope")&&r.hasOwnProperty("expires_in"))return r;throw Er.createUnexpectedError("Response missing expected properties.")},e.prototype.getMATSFromResponse=function(r){if(r.properties.MATS)try{return JSON.parse(r.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},e.prototype.isResponseFromCache=function(r){return typeof r.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!r.is_cached},e.prototype.initializeNativeRequest=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,h,d,f=this;return T(this,function(m){switch(m.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),n=r.authority||this.config.auth.authority,o=new oe(n),o.validateAsUri(),i=r.scopes,a=Sp(r,["scopes"]),s=new Ct(i||[]),s.appendScopes(ts),c=function(){switch(f.apiId){case ye.ssoSilent:case ye.acquireTokenSilent_silentFlow:return f.logger.trace("initializeNativeRequest: silent request sets prompt to none"),mt.NONE}if(!r.prompt){f.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(r.prompt){case mt.NONE:case mt.CONSENT:case mt.LOGIN:return f.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),r.prompt;default:throw f.logger.trace("initializeNativeRequest: prompt = "+r.prompt+" is not compatible with native flow"),N.createNativePromptParameterNotSupportedError()}},l=$($({},a),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:o.urlString,scope:s.printScopes(),redirectUri:this.getRedirectUri(r.redirectUri),prompt:c(),correlationId:this.correlationId,tokenType:r.authenticationScheme,windowTitleSubstring:document.title,extraParameters:$($($({},r.extraQueryParameters),r.tokenQueryParameters),{telemetry:ra.MATS_TELEMETRY}),extendedExpiryToken:!1}),r.authenticationScheme!==le.POP?[3,2]:(u={resourceRequestUri:r.resourceRequestUri,resourceRequestMethod:r.resourceRequestMethod,shrClaims:r.shrClaims,shrNonce:r.shrNonce},h=new vi(this.browserCrypto),[4,h.generateCnf(u)]);case 1:d=m.sent(),l.reqCnf=d.reqCnfHash,l.keyId=d.kid,m.label=2;case 2:return[2,l]}})})},e}(Py);/*! @azure/msal-browser v2.31.0 2022-11-07 */var ro=function(){function t(e,r,n){this.logger=e,this.handshakeTimeoutMs=r,this.extensionId=n,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this)}return t.prototype.sendMessage=function(e){return S(this,void 0,void 0,function(){var r,n=this;return T(this,function(o){return this.logger.trace("NativeMessageHandler - sendMessage called."),r={channel:ra.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(r)),this.messageChannel.port1.postMessage(r),[2,new Promise(function(i,a){n.resolvers.set(r.responseId,{resolve:i,reject:a})})]})})},t.createProvider=function(e,r){return S(this,void 0,void 0,function(){var n,o;return T(this,function(i){switch(i.label){case 0:e.trace("NativeMessageHandler - createProvider called."),i.label=1;case 1:return i.trys.push([1,3,,5]),n=new t(e,r,ra.PREFERRED_EXTENSION_ID),[4,n.sendHandshakeRequest()];case 2:return i.sent(),[2,n];case 3:return i.sent(),o=new t(e,r),[4,o.sendHandshakeRequest()];case 4:return i.sent(),[2,o];case 5:return[2]}})})},t.prototype.sendHandshakeRequest=function(){return S(this,void 0,void 0,function(){var e,r=this;return T(this,function(n){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:ra.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:qr.HandshakeRequest}},this.messageChannel.port1.onmessage=function(o){r.onChannelMessage(o)},window.postMessage(e,window.origin,[this.messageChannel.port2]),[2,new Promise(function(o,i){r.handshakeResolvers.set(e.responseId,{resolve:o,reject:i}),r.timeoutId=window.setTimeout(function(){window.removeEventListener("message",r.windowListener,!1),r.messageChannel.port1.close(),r.messageChannel.port2.close(),i(N.createNativeHandshakeTimeoutError()),r.handshakeResolvers.delete(e.responseId)},r.handshakeTimeoutMs)})]})})},t.prototype.onWindowMessage=function(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source===window){var r=e.data;if(!(!r.channel||r.channel!==ra.CHANNEL_ID)&&!(r.extensionId&&r.extensionId!==this.extensionId)&&r.body.method===qr.HandshakeRequest){this.logger.verbose(r.extensionId?"Extension with id: "+r.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(r.responseId);n&&n.reject(N.createNativeExtensionNotInstalledError())}}},t.prototype.onChannelMessage=function(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var r=e.data,n=this.resolvers.get(r.responseId),o=this.handshakeResolvers.get(r.responseId);try{var i=r.body.method;if(i===qr.Response){if(!n)return;var a=r.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(Er.createError(a.code,a.description,a.ext));else if(a.result)a.result.code&&a.result.description?n.reject(Er.createError(a.result.code,a.result.description,a.result.ext)):n.resolve(a.result);else throw z.createUnexpectedError("Event does not contain result.");this.resolvers.delete(r.responseId)}else if(i===qr.HandshakeResponse){if(!o)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=r.extensionId,this.extensionVersion=r.body.version,this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: "+this.extensionId),o.resolve(),this.handshakeResolvers.delete(r.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)}},t.prototype.getExtensionId=function(){return this.extensionId},t.prototype.getExtensionVersion=function(){return this.extensionVersion},t.isNativeAvailable=function(e,r,n,o){if(r.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return r.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!n)return r.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(o)switch(o){case le.BEARER:case le.POP:return r.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return r.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var nS=function(t){ot(e,t);function e(r,n,o,i,a,s,c,l,u,h){var d=t.call(this,r,n,o,i,a,s,c,u,h)||this;return d.nativeStorage=l,d}return e.prototype.acquireToken=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,h,d=this;return T(this,function(f){switch(f.label){case 0:return[4,this.initializeAuthorizationRequest(r,F.Redirect)];case 1:n=f.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||_.EMPTY_STRING,n.account||null),o=this.initializeServerTelemetryManager(ye.acquireTokenRedirect),i=function(m){m.persisted&&(d.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),d.browserStorage.cleanRequestByState(n.state))},f.label=2;case 2:return f.trys.push([2,7,,8]),[4,this.initializeAuthorizationCodeRequest(n)];case 3:return a=f.sent(),[4,this.createAuthCodeClient(o,n.authority,n.azureCloudOptions)];case 4:return s=f.sent(),this.logger.verbose("Auth code client created"),c=new Lp(s,this.browserStorage,a,this.logger,this.browserCrypto),[4,s.getAuthCodeUrl($($({},n),{nativeBroker:ro.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme)}))];case 5:return l=f.sent(),u=this.getRedirectStartPage(r.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:r.onRedirectNavigate})];case 6:return[2,f.sent()];case 7:throw h=f.sent(),h instanceof z&&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(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,h,d,f,m;return T(this,function(v){switch(v.label){case 0:n=this.initializeServerTelemetryManager(ye.handleRedirectPromise),v.label=1;case 1:if(v.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(r||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=oe.getDeserializedHash(o),i=this.validateAndExtractStateFromHash(a,F.Redirect),this.logger.verbose("State extracted from hash")}catch(E){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+E),this.browserStorage.cleanRequestByInteractionType(F.Redirect),[2,null]}return s=this.browserStorage.getTemporaryCache(ae.ORIGIN_URI,!0)||_.EMPTY_STRING,c=oe.removeHashFromUrl(s),l=oe.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=v.sent(),s.indexOf("#")>-1&&Oe.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!Oe.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(ae.URL_HASH,o,!0),h={apiId:ye.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},d=!0,!s||s==="null"?(f=Oe.getHomepage(),this.browserStorage.setTemporaryCache(ae.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=v.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+s),[4,this.navigationClient.navigateInternal(s,h)];case 7:d=v.sent(),v.label=8;case 8:if(!d)return[2,this.handleHash(o,i,n)];v.label=9;case 9:return[2,null];case 10:throw m=v.sent(),m instanceof z&&m.setCorrelationId(this.correlationId),n.cacheFailedRequest(m),this.browserStorage.cleanRequestByInteractionType(F.Redirect),m;case 11:return[2]}})})},e.prototype.getRedirectResponseHash=function(r){this.logger.verbose("getRedirectResponseHash called");var n=oe.hashContainsKnownProperties(r);if(n)return Oe.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),r;var o=this.browserStorage.getTemporaryCache(ae.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(ae.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),o},e.prototype.handleHash=function(r,n,o){return S(this,void 0,void 0,function(){var i,a,s,c,l,u,h,d=this;return T(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=oe.getDeserializedHash(r),a.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw N.createNativeConnectionNotEstablishedError();return s=new si(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ye.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,a.accountId,this.browserStorage,i.correlationId),c=Wr.parseRequestState(this.browserCrypto,n).userRequestState,[2,s.acquireToken($($({},i),{state:c,prompt:void 0})).finally(function(){d.browserStorage.cleanRequestByState(n)})]}if(l=this.browserStorage.getCachedAuthority(n),!l)throw N.createNoCachedAuthorityError();return[4,this.createAuthCodeClient(o,l)];case 1:return u=f.sent(),this.logger.verbose("Auth code client created"),zc.removeThrottle(this.browserStorage,this.config.auth.clientId,i),h=new Lp(u,this.browserStorage,i,this.logger,this.browserCrypto),[4,h.handleCodeResponseFromHash(r,n,u.authority,this.networkClient)];case 2:return[2,f.sent()]}})})},e.prototype.logout=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l;return T(this,function(u){switch(u.label){case 0:this.logger.verbose("logoutRedirect called"),n=this.initializeLogoutRequest(r),o=this.initializeServerTelemetryManager(ye.logout),u.label=1;case 1:return u.trys.push([1,10,,11]),this.eventHandler.emitEvent(q.LOGOUT_START,F.Redirect,r),[4,this.clearCacheOnLogout(n.account)];case 2:return u.sent(),i={apiId:ye.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},[4,this.createAuthCodeClient(o,r&&r.authority)];case 3:return a=u.sent(),this.logger.verbose("Auth code client created"),s=a.getLogoutUri(n),this.eventHandler.emitEvent(q.LOGOUT_SUCCESS,F.Redirect,n),r&&typeof r.onRedirectNavigate=="function"?(c=r.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 z&&l.setCorrelationId(this.correlationId),o.cacheFailedRequest(l),this.eventHandler.emitEvent(q.LOGOUT_FAILURE,F.Redirect,null,l),this.eventHandler.emitEvent(q.LOGOUT_END,F.Redirect),l;case 11:return this.eventHandler.emitEvent(q.LOGOUT_END,F.Redirect),[2]}})})},e.prototype.getRedirectStartPage=function(r){var n=r||window.location.href;return oe.getAbsoluteUrl(n,Oe.getCurrentUri())},e}(Ri);/*! @azure/msal-browser v2.31.0 2022-11-07 */var oS=function(t){ot(e,t);function e(r,n,o,i,a,s,c,l,u,h){var d=t.call(this,r,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(r){try{var n=this.generatePopupName(r.scopes||ts,r.authority||this.config.auth.authority),o=r.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(r,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(r,n,o,i)}catch(a){return Promise.reject(a)}},e.prototype.logout=function(r){try{this.logger.verbose("logoutPopup called");var n=this.initializeLogoutRequest(r),o=this.generateLogoutPopupName(n),i=r&&r.authority,a=r&&r.mainWindowRedirectUri,s=(r==null?void 0:r.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(r,n,o,i){return S(this,void 0,void 0,function(){var a,s,c,l,u,h,d,f,m,v,E,g,p,y,w,k,P,M=this;return T(this,function(O){switch(O.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),a=this.initializeServerTelemetryManager(ye.acquireTokenPopup),[4,this.initializeAuthorizationRequest(r,F.Popup)];case 1:s=O.sent(),this.browserStorage.updateCacheEntries(s.state,s.nonce,s.authority,s.loginHint||_.EMPTY_STRING,s.account||null),O.label=2;case 2:return O.trys.push([2,8,,9]),[4,this.initializeAuthorizationCodeRequest(s)];case 3:return c=O.sent(),[4,this.createAuthCodeClient(a,s.authority,s.azureCloudOptions)];case 4:return l=O.sent(),this.logger.verbose("Auth code client created"),u=ro.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme),h=void 0,u&&(h=this.performanceClient.startMeasurement(je.FetchAccountIdWithNativeBroker,r.correlationId)),[4,l.getAuthCodeUrl($($({},s),{nativeBroker:u}))];case 5:return d=O.sent(),f=new qh(l,this.browserStorage,c,this.logger),m={popup:i,popupName:n,popupWindowAttributes:o},v=this.initiateAuthRequest(d,m),this.eventHandler.emitEvent(q.POPUP_OPENED,F.Popup,{popupWindow:v},null),[4,this.monitorPopupForHash(v)];case 6:if(E=O.sent(),g=oe.getDeserializedHash(E),p=this.validateAndExtractStateFromHash(g,F.Popup,s.correlationId),zc.removeThrottle(this.browserStorage,this.config.auth.clientId,c),g.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),h&&h.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw N.createNativeConnectionNotEstablishedError();return y=new si(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ye.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,g.accountId,this.nativeStorage,s.correlationId),w=Wr.parseRequestState(this.browserCrypto,p).userRequestState,[2,y.acquireToken($($({},s),{state:w,prompt:void 0})).finally(function(){M.browserStorage.cleanRequestByState(p)})]}return[4,f.handleCodeResponseFromHash(E,p,l.authority,this.networkClient)];case 7:return k=O.sent(),[2,k];case 8:throw P=O.sent(),i&&i.close(),P instanceof z&&P.setCorrelationId(this.correlationId),a.cacheFailedRequest(P),this.browserStorage.cleanRequestByState(s.state),P;case 9:return[2]}})})},e.prototype.logoutPopupAsync=function(r,n,o,i,a,s){return S(this,void 0,void 0,function(){var c,l,u,h,d,f,m;return T(this,function(v){switch(v.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(q.LOGOUT_START,F.Popup,r),c=this.initializeServerTelemetryManager(ye.logoutPopup),v.label=1;case 1:return v.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(r.account)];case 2:return v.sent(),[4,this.createAuthCodeClient(c,i)];case 3:return l=v.sent(),this.logger.verbose("Auth code client created"),u=l.getLogoutUri(r),this.eventHandler.emitEvent(q.LOGOUT_SUCCESS,F.Popup,r),h=this.openPopup(u,{popupName:n,popupWindowAttributes:o,popup:a}),this.eventHandler.emitEvent(q.POPUP_OPENED,F.Popup,{popupWindow:h},null),[4,this.waitForLogoutPopup(h)];case 4:return v.sent(),s?(d={apiId:ye.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},f=oe.getAbsoluteUrl(s,Oe.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 m=v.sent(),a&&a.close(),m instanceof z&&m.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(q.LOGOUT_FAILURE,F.Popup,null,m),this.eventHandler.emitEvent(q.LOGOUT_END,F.Popup),c.cacheFailedRequest(m),m;case 6:return this.eventHandler.emitEvent(q.LOGOUT_END,F.Popup),[2]}})})},e.prototype.initiateAuthRequest=function(r,n){if(x.isEmpty(r))throw this.logger.error("Navigate url is empty"),N.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+r),this.openPopup(r,n)},e.prototype.monitorPopupForHash=function(r){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(r.closed){n.logger.error("PopupHandler.monitorPopupForHash - window closed"),n.cleanPopup(),clearInterval(c),i(N.createUserCancelledError());return}var l=_.EMPTY_STRING,u=_.EMPTY_STRING;try{l=r.location.href,u=r.location.hash}catch{}x.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(r),oe.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(N.createHashDoesNotContainKnownPropertiesError()))):s>a&&(n.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(c),i(N.createMonitorPopupTimeoutError())))},n.config.system.pollIntervalMilliseconds)})},e.prototype.waitForLogoutPopup=function(r){var n=this;return new Promise(function(o){n.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var i=setInterval(function(){r.closed&&(n.logger.error("PopupHandler.waitForLogoutPopup - window closed"),n.cleanPopup(),clearInterval(i),o());var a=_.EMPTY_STRING;try{a=r.location.href}catch{}x.isEmpty(a)||a==="about:blank"||(n.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(i),n.cleanPopup(r),o())},n.config.system.pollIntervalMilliseconds)})},e.prototype.openPopup=function(r,n){try{var o=void 0;if(n.popup?(o=n.popup,this.logger.verbosePii("Navigating popup window to: "+r),o.location.assign(r)):typeof n.popup>"u"&&(this.logger.verbosePii("Opening popup window to: "+r),o=this.openSizedPopup(r,n.popupName,n.popupWindowAttributes)),!o)throw N.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),N.createPopupWindowError(i.toString())}},e.prototype.openSizedPopup=function(r,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,m=(a=o.popupSize)===null||a===void 0?void 0:a.height,v=(s=o.popupPosition)===null||s===void 0?void 0:s.top,E=(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=cr.POPUP_WIDTH),(!m||m<0||m>d)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),m=cr.POPUP_HEIGHT),(!v||v<0||v>d)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),v=Math.max(0,d/2-cr.POPUP_HEIGHT/2+u)),(!E||E<0||E>h)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),E=Math.max(0,h/2-cr.POPUP_WIDTH/2+l)),window.open(r,n,"width="+f+", height="+m+", top="+v+", left="+E+", scrollbars=yes")},e.prototype.unloadWindow=function(r){this.browserStorage.cleanRequestByInteractionType(F.Popup),this.currentWindow&&this.currentWindow.close(),r.preventDefault()},e.prototype.cleanPopup=function(r){r&&r.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},e.prototype.generatePopupName=function(r,n){return cr.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+r.join("-")+"."+n+"."+this.correlationId},e.prototype.generateLogoutPopupName=function(r){var n=r.account&&r.account.homeAccountId;return cr.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+n+"."+this.correlationId},e}(Ri);/*! @azure/msal-browser v2.31.0 2022-11-07 */var iS=function(){function t(){}return t.prototype.navigateInternal=function(e,r){return t.defaultNavigateWindow(e,r)},t.prototype.navigateExternal=function(e,r){return t.defaultNavigateWindow(e,r)},t.defaultNavigateWindow=function(e,r){return r.noHistory?window.location.replace(e):window.location.assign(e),new Promise(function(n){setTimeout(function(){n(!0)},r.timeout)})},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var aS=6e4,Pd=6e3,sS=3e4,cS=2e3;function lS(t,e){var r=t.auth,n=t.cache,o=t.system,i=t.telemetry,a={clientId:_.EMPTY_STRING,authority:""+_.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:_.EMPTY_STRING,authorityMetadata:_.EMPTY_STRING,redirectUri:_.EMPTY_STRING,postLogoutRedirectUri:_.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:qc.AAD,azureCloudOptions:{azureCloudInstance:$a.None,tenant:_.EMPTY_STRING},skipAuthorityMetadataCache:!1},s={cacheLocation:pt.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1},c={loggerCallback:function(){},logLevel:xe.Info,piiLoggingEnabled:!1},l=$($({},Ty),{loggerOptions:c,networkClient:e?Oe.getBrowserNetworkClient():VC,navigationClient:new iS,loadFrameTimeout:0,windowHashTimeout:(o==null?void 0:o.loadFrameTimeout)||aS,iframeHashTimeout:(o==null?void 0:o.loadFrameTimeout)||Pd,navigateFrameWait:e&&Oe.detectIEOrEdge()?500:0,redirectNavigationTimeout:sS,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(o==null?void 0:o.nativeBrokerHandshakeTimeout)||cS,pollIntervalMilliseconds:cr.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),u={application:{appName:_.EMPTY_STRING,appVersion:_.EMPTY_STRING}},h={auth:$($({},a),r),cache:$($({},s),n),system:$($({},l),o),telemetry:$($({},u),i)};return h}/*! @azure/msal-browser v2.31.0 2022-11-07 */var Oy=function(t){ot(e,t);function e(r,n,o,i,a){var s=t.call(this,r,n,o,i)||this;return s.navigateFrameWait=a.navigateFrameWait,s.pollIntervalMilliseconds=a.pollIntervalMilliseconds,s}return e.prototype.initiateAuthRequest=function(r){return S(this,void 0,void 0,function(){var n;return T(this,function(o){switch(o.label){case 0:if(x.isEmpty(r))throw this.logger.info("Navigate url is empty"),N.createEmptyNavigationUriError();return this.navigateFrameWait?[4,this.loadFrame(r)]:[3,2];case 1:return n=o.sent(),[3,3];case 2:n=this.loadFrameSync(r),o.label=3;case 3:return[2,n]}})})},e.prototype.monitorIframeForHash=function(r,n){var o=this;return new Promise(function(i,a){n<Pd&&o.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+n+"ms) than the default ("+Pd+"ms). This may result in timeouts.");var s=window.performance.now(),c=s+n,l=setInterval(function(){if(window.performance.now()>c){o.removeHiddenIframe(r),clearInterval(l),a(N.createMonitorIframeTimeoutError());return}var u=_.EMPTY_STRING,h=r.contentWindow;try{u=h?h.location.href:_.EMPTY_STRING}catch{}if(!x.isEmpty(u)){var d=h?h.location.hash:_.EMPTY_STRING;if(oe.hashContainsKnownProperties(d)){o.removeHiddenIframe(r),clearInterval(l),i(d);return}}},o.pollIntervalMilliseconds)})},e.prototype.loadFrame=function(r){var n=this;return new Promise(function(o,i){var a=n.createHiddenIframe();setTimeout(function(){if(!a){i("Unable to load iframe");return}a.src=r,o(a)},n.navigateFrameWait)})},e.prototype.loadFrameSync=function(r){var n=this.createHiddenIframe();return n.src=r,n},e.prototype.createHiddenIframe=function(){var r=document.createElement("iframe");return r.style.visibility="hidden",r.style.position="absolute",r.style.width=r.style.height="0",r.style.border="0",r.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(r),r},e.prototype.removeHiddenIframe=function(r){document.body===r.parentNode&&document.body.removeChild(r)},e}(qh);/*! @azure/msal-browser v2.31.0 2022-11-07 */var uS=function(t){ot(e,t);function e(r,n,o,i,a,s,c,l,u,h,d){var f=t.call(this,r,n,o,i,a,s,l,h,d)||this;return f.apiId=c,f.nativeStorage=u,f}return e.prototype.acquireToken=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s;return T(this,function(c){switch(c.label){case 0:if(this.logger.verbose("acquireTokenByIframe called"),n=this.performanceClient.startMeasurement(je.SilentIframeClientAcquireToken,r.correlationId),x.isEmpty(r.loginHint)&&x.isEmpty(r.sid)&&(!r.account||x.isEmpty(r.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),r.prompt&&r.prompt!==mt.NONE&&r.prompt!==mt.NO_SESSION)throw n.endMeasurement({success:!1}),N.createSilentPromptValueError(r.prompt);return[4,this.initializeAuthorizationRequest($($({},r),{prompt:r.prompt||mt.NONE}),F.Silent)];case 1:o=c.sent(),this.browserStorage.updateCacheEntries(o.state,o.nonce,o.authority,o.loginHint||_.EMPTY_STRING,o.account||null),i=this.initializeServerTelemetryManager(this.apiId),c.label=2;case 2:return c.trys.push([2,5,,6]),[4,this.createAuthCodeClient(i,o.authority,o.azureCloudOptions)];case 3:return a=c.sent(),this.logger.verbose("Auth code client created"),[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 z&&s.setCorrelationId(this.correlationId),i.cacheFailedRequest(s),this.browserStorage.cleanRequestByState(o.state),n.endMeasurement({errorCode:s instanceof z&&s.errorCode||void 0,subErrorCode:s instanceof z&&s.subError||void 0,success:!1}),s;case 6:return[2]}})})},e.prototype.logout=function(){return Promise.reject(N.createSilentLogoutUnsupportedError())},e.prototype.silentTokenHelper=function(r,n){return S(this,void 0,void 0,function(){var o,i,a,s,c,l,u,h,d,f=this;return T(this,function(m){switch(m.label){case 0:return[4,this.initializeAuthorizationCodeRequest(n)];case 1:return o=m.sent(),[4,r.getAuthCodeUrl($($({},n),{nativeBroker:ro.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,n.authenticationScheme)}))];case 2:return i=m.sent(),a=new Oy(r,this.browserStorage,o,this.logger,this.config.system),[4,a.initiateAuthRequest(i)];case 3:return s=m.sent(),[4,a.monitorIframeForHash(s,this.config.system.iframeHashTimeout)];case 4:if(c=m.sent(),l=oe.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 N.createNativeConnectionNotEstablishedError();return h=new si(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=Wr.parseRequestState(this.browserCrypto,u).userRequestState,[2,h.acquireToken($($({},n),{state:d,prompt:n.prompt||mt.NONE})).finally(function(){f.browserStorage.cleanRequestByState(u)})]}return[2,a.handleCodeResponseFromHash(c,u,r.authority,this.networkClient)]}})})},e}(Ri);/*! @azure/msal-browser v2.31.0 2022-11-07 */var dS=function(t){ot(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.acquireToken=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c=this;return T(this,function(l){switch(l.label){case 0:return o=[$({},r)],[4,this.initializeBaseRequest(r)];case 1:return n=$.apply(void 0,o.concat([l.sent()])),i=this.performanceClient.startMeasurement(je.SilentRefreshClientAcquireToken,n.correlationId),a=this.initializeServerTelemetryManager(ye.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(a,n.authority,n.azureCloudOptions)];case 2:return s=l.sent(),this.logger.verbose("Refresh token client created"),[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 z&&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(N.createSilentLogoutUnsupportedError())},e.prototype.createRefreshTokenClient=function(r,n,o){return S(this,void 0,void 0,function(){var i;return T(this,function(a){switch(a.label){case 0:return[4,this.getClientConfiguration(r,n,o)];case 1:return i=a.sent(),[2,new Iy(i,this.performanceClient)]}})})},e}(Ri);/*! @azure/msal-browser v2.31.0 2022-11-07 */var hS=function(){function t(e,r){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=r,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return t.prototype.addEventCallback=function(e){if(typeof window<"u"){var r=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(r,e),this.logger.verbose("Event callback registered with id: "+r),r}return null},t.prototype.removeEventCallback=function(e){this.eventCallbacks.delete(e),this.logger.verbose("Event callback "+e+" removed.")},t.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)))},t.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."))},t.prototype.emitEvent=function(e,r,n,o){var i=this;if(typeof window<"u"){var a={eventType:e,interactionType:r||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])})}},t.prototype.handleAccountCacheChange=function(e){try{var r=e.newValue||e.oldValue;if(!r)return;var n=JSON.parse(r);if(typeof n!="object"||!tt.isAccountEntity(n))return;var o=or.toObject(new tt,n),i=o.getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(q.ACCOUNT_ADDED,void 0,i)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(q.ACCOUNT_REMOVED,void 0,i))}catch{return}},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var ut=function(){function t(){}return t.decimalToHex=function(e){for(var r=e.toString(16);r.length<2;)r="0"+r;return r},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var xy=function(){function t(e){this.cryptoObj=e}return t.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,ut.decimalToHex(e[0])+ut.decimalToHex(e[1])+ut.decimalToHex(e[2])+ut.decimalToHex(e[3])+"-"+ut.decimalToHex(e[4])+ut.decimalToHex(e[5])+"-"+ut.decimalToHex(e[6])+ut.decimalToHex(e[7])+"-"+ut.decimalToHex(e[8])+ut.decimalToHex(e[9])+"-"+ut.decimalToHex(e[10])+ut.decimalToHex(e[11])+ut.decimalToHex(e[12])+ut.decimalToHex(e[13])+ut.decimalToHex(e[14])+ut.decimalToHex(e[15])}catch{for(var r="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",n="0123456789abcdef",o=0,i=_.EMPTY_STRING,a=0;a<36;a++)r[a]!=="-"&&r[a]!=="4"&&(o=Math.random()*16|0),r[a]==="x"?i+=n[o]:r[a]==="y"?(o&=3,o|=8,i+=n[o]):i+=r[a];return i}},t.prototype.isGuid=function(e){var r=/^[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 r.test(e)},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var Yr=function(){function t(){}return t.stringToUtf8Arr=function(e){for(var r,n=0,o=e.length,i=0;i<o;i++)r=e.charCodeAt(i),n+=r<128?1:r<2048?2:r<65536?3:r<2097152?4:r<67108864?5:6;for(var a=new Uint8Array(n),s=0,c=0;s<n;c++)r=e.charCodeAt(c),r<128?a[s++]=r:r<2048?(a[s++]=192+(r>>>6),a[s++]=128+(r&63)):r<65536?(a[s++]=224+(r>>>12),a[s++]=128+(r>>>6&63),a[s++]=128+(r&63)):r<2097152?(a[s++]=240+(r>>>18),a[s++]=128+(r>>>12&63),a[s++]=128+(r>>>6&63),a[s++]=128+(r&63)):r<67108864?(a[s++]=248+(r>>>24),a[s++]=128+(r>>>18&63),a[s++]=128+(r>>>12&63),a[s++]=128+(r>>>6&63),a[s++]=128+(r&63)):(a[s++]=252+(r>>>30),a[s++]=128+(r>>>24&63),a[s++]=128+(r>>>18&63),a[s++]=128+(r>>>12&63),a[s++]=128+(r>>>6&63),a[s++]=128+(r&63));return a},t.stringToArrayBuffer=function(e){for(var r=new ArrayBuffer(e.length),n=new Uint8Array(r),o=0;o<e.length;o++)n[o]=e.charCodeAt(o);return r},t.utf8ArrToString=function(e){for(var r=_.EMPTY_STRING,n=void 0,o=e.length,i=0;i<o;i++)n=e[i],r+=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 r},t.getSortedObjectString=function(e){return JSON.stringify(e,Object.keys(e).sort())},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var My=function(){function t(){}return t.prototype.urlEncode=function(e){return encodeURIComponent(this.encode(e).replace(/=/g,_.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},t.prototype.urlEncodeArr=function(e){return this.base64EncArr(e).replace(/=/g,_.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},t.prototype.encode=function(e){var r=Yr.stringToUtf8Arr(e);return this.base64EncArr(r)},t.prototype.base64EncArr=function(e){for(var r=(3-e.length%3)%3,n=_.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 r===0?n:n.substring(0,n.length-r)+(r===1?"=":"==")},t.prototype.uint6ToB64=function(e){return e<26?e+65:e<52?e+71:e<62?e-4:e===62?43:e===63?47:65},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var fS=function(){function t(){}return t.prototype.decode=function(e){var r=e.replace(/-/g,"+").replace(/_/g,"/");switch(r.length%4){case 0:break;case 2:r+="==";break;case 3:r+="=";break;default:throw new Error("Invalid base64 string")}var n=this.base64DecToArr(r);return Yr.utf8ArrToString(n)},t.prototype.base64DecToArr=function(e,r){for(var n=e.replace(/[^A-Za-z0-9\+\/]/g,_.EMPTY_STRING),o=n.length,i=r?Math.ceil((o*3+1>>>2)/r)*r: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},t.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},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var pS=32,gS=function(){function t(e){this.base64Encode=new My,this.cryptoObj=e}return t.prototype.generateCodes=function(){return S(this,void 0,void 0,function(){var e,r;return T(this,function(n){switch(n.label){case 0:return e=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(e)];case 1:return r=n.sent(),[2,{verifier:e,challenge:r}]}})})},t.prototype.generateCodeVerifier=function(){try{var e=new Uint8Array(pS);this.cryptoObj.getRandomValues(e);var r=this.base64Encode.urlEncodeArr(e);return r}catch(n){throw N.createPkceNotGeneratedError(n)}},t.prototype.generateCodeChallengeFromVerifier=function(e){return S(this,void 0,void 0,function(){var r,n;return T(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(e)];case 1:return r=o.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(r))];case 2:throw n=o.sent(),N.createPkceNotGeneratedError(n);case 3:return[2]}})})},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var mS=function(){function t(){}return t.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},t.prototype.generateKey=function(e,r,n){return S(this,void 0,void 0,function(){return T(this,function(o){return[2,window.crypto.subtle.generateKey(e,r,n)]})})},t.prototype.exportKey=function(e){return S(this,void 0,void 0,function(){return T(this,function(r){return[2,window.crypto.subtle.exportKey(yi,e)]})})},t.prototype.importKey=function(e,r,n,o){return S(this,void 0,void 0,function(){return T(this,function(i){return[2,window.crypto.subtle.importKey(yi,e,r,n,o)]})})},t.prototype.sign=function(e,r,n){return S(this,void 0,void 0,function(){return T(this,function(o){return[2,window.crypto.subtle.sign(e,r,n)]})})},t.prototype.digest=function(e,r){return S(this,void 0,void 0,function(){return T(this,function(n){return[2,window.crypto.subtle.digest(e,r)]})})},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var vS=function(){function t(){}return t.prototype.initPrng=function(e){return window.msrCrypto.initPrng(zh(e))},t.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},t.prototype.generateKey=function(e,r,n){return S(this,void 0,void 0,function(){return T(this,function(o){return[2,window.msrCrypto.subtle.generateKey(e,r,n)]})})},t.prototype.exportKey=function(e){return S(this,void 0,void 0,function(){return T(this,function(r){return[2,window.msrCrypto.subtle.exportKey(yi,e)]})})},t.prototype.importKey=function(e,r,n,o){return S(this,void 0,void 0,function(){return T(this,function(i){return[2,window.msrCrypto.subtle.importKey(yi,e,r,n,o)]})})},t.prototype.sign=function(e,r,n){return S(this,void 0,void 0,function(){return T(this,function(o){return[2,window.msrCrypto.subtle.sign(e,r,n)]})})},t.prototype.digest=function(e,r){return S(this,void 0,void 0,function(){return T(this,function(n){return[2,window.msrCrypto.subtle.digest(e,r)]})})},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var yS=function(){function t(){}return t.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},t.prototype.generateKey=function(e,r,n){return S(this,void 0,void 0,function(){return T(this,function(o){return[2,new Promise(function(i,a){var s=window.msCrypto.subtle.generateKey(e,r,n);s.addEventListener("complete",function(c){i(c.target.result)}),s.addEventListener("error",function(c){a(c)})})]})})},t.prototype.exportKey=function(e){return S(this,void 0,void 0,function(){return T(this,function(r){return[2,new Promise(function(n,o){var i=window.msCrypto.subtle.exportKey(yi,e);i.addEventListener("complete",function(a){var s=a.target.result,c=Yr.utf8ArrToString(new Uint8Array(s)).replace(/\r/g,_.EMPTY_STRING).replace(/\n/g,_.EMPTY_STRING).replace(/\t/g,_.EMPTY_STRING).split(" ").join(_.EMPTY_STRING).replace("\0",_.EMPTY_STRING);try{n(JSON.parse(c))}catch(l){o(l)}}),i.addEventListener("error",function(a){o(a)})})]})})},t.prototype.importKey=function(e,r,n,o){return S(this,void 0,void 0,function(){var i,a;return T(this,function(s){return i=Yr.getSortedObjectString(e),a=Yr.stringToArrayBuffer(i),[2,new Promise(function(c,l){var u=window.msCrypto.subtle.importKey(yi,a,r,n,o);u.addEventListener("complete",function(h){c(h.target.result)}),u.addEventListener("error",function(h){l(h)})})]})})},t.prototype.sign=function(e,r,n){return S(this,void 0,void 0,function(){return T(this,function(o){return[2,new Promise(function(i,a){var s=window.msCrypto.subtle.sign(e,r,n);s.addEventListener("complete",function(c){i(c.target.result)}),s.addEventListener("error",function(c){a(c)})})]})})},t.prototype.digest=function(e,r){return S(this,void 0,void 0,function(){return T(this,function(n){return[2,new Promise(function(o,i){var a=window.msCrypto.subtle.digest(e,r.buffer);a.addEventListener("complete",function(s){o(s.target.result)}),a.addEventListener("error",function(s){i(s)})})]})})},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var _S="RSASSA-PKCS1-v1_5",Dp="SHA-256",wS=2048,ES=new Uint8Array([1,0,1]),Uy=function(){function t(e,r){var n,o;if(this.logger=e,this.cryptoOptions=r,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new mS;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new yS;else if(this.hasMsrCrypto()&&((n=this.cryptoOptions)===null||n===void 0?void 0:n.useMsrCrypto))this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new vS;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."),N.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."),Wc.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:_S,hash:Dp,modulusLength:wS,publicExponent:ES}}return t.prototype.hasIECrypto=function(){return"msCrypto"in window},t.prototype.hasBrowserCrypto=function(){return"crypto"in window},t.prototype.hasMsrCrypto=function(){return"msrCrypto"in window},t.prototype.sha256Digest=function(e){return S(this,void 0,void 0,function(){var r;return T(this,function(n){return r=Yr.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:Dp},r)]})})},t.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},t.prototype.generateKeyPair=function(e,r){return S(this,void 0,void 0,function(){return T(this,function(n){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,r)]})})},t.prototype.exportJwk=function(e){return S(this,void 0,void 0,function(){return T(this,function(r){return[2,this.subtleCrypto.exportKey(e)]})})},t.prototype.importJwk=function(e,r,n){return S(this,void 0,void 0,function(){return T(this,function(o){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,r,n)]})})},t.prototype.sign=function(e,r){return S(this,void 0,void 0,function(){return T(this,function(n){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,r)]})})},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var CS=function(){function t(){this.dbName=kd,this.version=XC,this.tableName=ZC,this.dbOpen=!1}return t.prototype.open=function(){return S(this,void 0,void 0,function(){var e=this;return T(this,function(r){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(N.createDatabaseUnavailableError())})})]})})},t.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},t.prototype.validateDbIsOpen=function(){return S(this,void 0,void 0,function(){return T(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]}})})},t.prototype.getItem=function(e){return S(this,void 0,void 0,function(){var r=this;return T(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(o,i){if(!r.db)return i(N.createDatabaseNotOpenError());var a=r.db.transaction([r.tableName],"readonly"),s=a.objectStore(r.tableName),c=s.get(e);c.addEventListener("success",function(l){var u=l;r.closeConnection(),o(u.target.result)}),c.addEventListener("error",function(l){r.closeConnection(),i(l)})})]}})})},t.prototype.setItem=function(e,r){return S(this,void 0,void 0,function(){var n=this;return T(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(N.createDatabaseNotOpenError());var s=n.db.transaction([n.tableName],"readwrite"),c=s.objectStore(n.tableName),l=c.put(r,e);l.addEventListener("success",function(){n.closeConnection(),i()}),l.addEventListener("error",function(u){n.closeConnection(),a(u)})})]}})})},t.prototype.removeItem=function(e){return S(this,void 0,void 0,function(){var r=this;return T(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(o,i){if(!r.db)return i(N.createDatabaseNotOpenError());var a=r.db.transaction([r.tableName],"readwrite"),s=a.objectStore(r.tableName),c=s.delete(e);c.addEventListener("success",function(){r.closeConnection(),o()}),c.addEventListener("error",function(l){r.closeConnection(),i(l)})})]}})})},t.prototype.getKeys=function(){return S(this,void 0,void 0,function(){var e=this;return T(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(n,o){if(!e.db)return o(N.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)})})]}})})},t.prototype.containsKey=function(e){return S(this,void 0,void 0,function(){var r=this;return T(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(o,i){if(!r.db)return i(N.createDatabaseNotOpenError());var a=r.db.transaction([r.tableName],"readonly"),s=a.objectStore(r.tableName),c=s.count(e);c.addEventListener("success",function(l){var u=l;r.closeConnection(),o(u.target.result===1)}),c.addEventListener("error",function(l){r.closeConnection(),i(l)})})]}})})},t.prototype.deleteDatabase=function(){return S(this,void 0,void 0,function(){return T(this,function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(r,n){var o=window.indexedDB.deleteDatabase(kd);o.addEventListener("success",function(){return r(!0)}),o.addEventListener("blocked",function(){return r(!0)}),o.addEventListener("error",function(){return n(!1)})})]})})},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var Hp=function(){function t(e,r){this.inMemoryCache=new Ad,this.indexedDBCache=new CS,this.logger=e,this.storeName=r}return t.prototype.handleDatabaseAccessError=function(e){if(e instanceof N&&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},t.prototype.getItem=function(e){return S(this,void 0,void 0,function(){var r,n;return T(this,function(o){switch(o.label){case 0:if(r=this.inMemoryCache.getItem(e),r)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,r]}})})},t.prototype.setItem=function(e,r){return S(this,void 0,void 0,function(){var n;return T(this,function(o){switch(o.label){case 0:this.inMemoryCache.setItem(e,r),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(e,r)];case 2:return o.sent(),[3,4];case 3:return n=o.sent(),this.handleDatabaseAccessError(n),[3,4];case 4:return[2]}})})},t.prototype.removeItem=function(e){return S(this,void 0,void 0,function(){var r;return T(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 r=n.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2]}})})},t.prototype.getKeys=function(){return S(this,void 0,void 0,function(){var e,r;return T(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 r=n.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2,e]}})})},t.prototype.containsKey=function(e){return S(this,void 0,void 0,function(){var r,n;return T(this,function(o){switch(o.label){case 0:if(r=this.inMemoryCache.containsKey(e),r)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,r]}})})},t.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},t.prototype.clearPersistent=function(){return S(this,void 0,void 0,function(){var e,r;return T(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 r=n.sent(),this.handleDatabaseAccessError(r),[2,!1];case 3:return[2]}})})},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var Yc;(function(t){t.asymmetricKeys="asymmetricKeys",t.symmetricKeys="symmetricKeys"})(Yc||(Yc={}));var SS=function(){function t(e){this.logger=e,this.asymmetricKeys=new Hp(this.logger,Yc.asymmetricKeys),this.symmetricKeys=new Hp(this.logger,Yc.symmetricKeys)}return t.prototype.clear=function(){return S(this,void 0,void 0,function(){var e;return T(this,function(r){switch(r.label){case 0:this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory(),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.asymmetricKeys.clearPersistent()];case 2:return r.sent(),[2,!0];case 3:return e=r.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]}})})},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var TS=function(){function t(e,r,n){this.logger=e,this.browserCrypto=new Uy(this.logger,n),this.b64Encode=new My,this.b64Decode=new fS,this.guidGenerator=new xy(this.browserCrypto),this.pkceGenerator=new gS(this.browserCrypto),this.cache=new SS(this.logger),this.performanceClient=r}return t.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},t.prototype.base64Encode=function(e){return this.b64Encode.encode(e)},t.prototype.base64Decode=function(e){return this.b64Decode.decode(e)},t.prototype.generatePkceCodes=function(){return S(this,void 0,void 0,function(){return T(this,function(e){return[2,this.pkceGenerator.generateCodes()]})})},t.prototype.getPublicKeyThumbprint=function(e){var r;return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u;return T(this,function(h){switch(h.label){case 0:return n=(r=this.performanceClient)===null||r===void 0?void 0:r.startMeasurement(je.CryptoOptsGetPublicKeyThumbprint,e.correlationId),[4,this.browserCrypto.generateKeyPair(t.EXTRACTABLE,t.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=Yr.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]}})})},t.prototype.removeTokenBindingKey=function(e){return S(this,void 0,void 0,function(){var r;return T(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 r=n.sent(),[2,!r]}})})},t.prototype.clearKeystore=function(){return S(this,void 0,void 0,function(){return T(this,function(e){switch(e.label){case 0:return[4,this.cache.clear()];case 1:return[2,e.sent()]}})})},t.prototype.signJwt=function(e,r,n){var o;return S(this,void 0,void 0,function(){var i,a,s,c,l,u,h,d,f,m,v,E,g;return T(this,function(p){switch(p.label){case 0:return i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(je.CryptoOptsSignJwt,n),[4,this.cache.asymmetricKeys.getItem(r)];case 1:if(a=p.sent(),!a)throw N.createSigningKeyNotFoundInStorageError(r);return[4,this.browserCrypto.exportJwk(a.publicKey)];case 2:return s=p.sent(),c=Yr.getSortedObjectString(s),l=this.b64Encode.urlEncode(JSON.stringify({kid:r})),u=WC.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,m=Yr.stringToArrayBuffer(f),[4,this.browserCrypto.sign(a.privateKey,m)];case 3:return v=p.sent(),E=this.b64Encode.urlEncodeArr(new Uint8Array(v)),g=f+"."+E,i&&i.endMeasurement({success:!0}),[2,g]}})})},t.prototype.hashString=function(e){return S(this,void 0,void 0,function(){var r,n;return T(this,function(o){switch(o.label){case 0:return[4,this.browserCrypto.sha256Digest(e)];case 1:return r=o.sent(),n=new Uint8Array(r),[2,this.b64Encode.urlEncodeArr(n)]}})})},t.POP_KEY_USAGES=["sign","verify"],t.EXTRACTABLE=!0,t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var bS=function(){function t(e,r,n,o){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=r,this.logger=n,this.cryptoObj=o}return t.prototype.loadExternalTokens=function(e,r,n){if(this.logger.info("TokenCache - loadExternalTokens called"),!r.id_token)throw N.createUnableToLoadTokenError("Please ensure server response includes id token.");var o=new kr(r.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 Qs(s,this.loadIdToken(o,s.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,r,s.homeAccountId,e.account.environment,e.account.tenantId,n),this.loadRefreshToken(e,r,s.homeAccountId,e.account.environment))}else if(e.authority){var c=Kc.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 Kc(c,this.config.system.networkClient,this.storage,l),n.clientInfo){this.logger.trace("TokenCache - homeAccountId from options");var s=this.loadAccount(o,a.hostnameAndPort,n.clientInfo,a.authorityType);i=new Qs(s,this.loadIdToken(o,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,r,s.homeAccountId,a.hostnameAndPort,a.tenant,n),this.loadRefreshToken(e,r,s.homeAccountId,a.hostnameAndPort))}else if(r.client_info){this.logger.trace("TokenCache - homeAccountId from response");var s=this.loadAccount(o,a.hostnameAndPort,r.client_info,a.authorityType);i=new Qs(s,this.loadIdToken(o,s.homeAccountId,a.hostnameAndPort,a.tenant),this.loadAccessToken(e,r,s.homeAccountId,a.hostnameAndPort,a.tenant,n),this.loadRefreshToken(e,r,s.homeAccountId,a.hostnameAndPort))}else throw N.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw N.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");return this.generateAuthenticationResult(e,o,i,a)},t.prototype.loadAccount=function(e,r,n,o,i){var a;if(i?a=i:o!==void 0&&n&&(a=tt.generateHomeAccountId(n,o,this.logger,this.cryptoObj,e)),!a)throw N.createUnableToLoadTokenError("Unexpected missing homeAccountId");var s=n?tt.createAccount(n,a,e,void 0,void 0,void 0,r):tt.createGenericAccount(a,e,void 0,void 0,void 0,r);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(s),s;throw N.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},t.prototype.loadIdToken=function(e,r,n,o){var i=ja.createIdTokenEntity(r,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 N.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},t.prototype.loadAccessToken=function(e,r,n,o,i,a){if(!r.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!r.expires_in)throw N.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!a.extendedExpiresOn)throw N.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var s=new Ct(e.scopes).printScopes(),c=a.expiresOn||r.expires_in+new Date().getTime()/1e3,l=a.extendedExpiresOn,u=Ba.createAccessTokenEntity(n,o,r.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 N.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},t.prototype.loadRefreshToken=function(e,r,n,o){if(!r.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;var i=jc.createRefreshTokenEntity(n,o,r.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(i),i;throw N.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},t.prototype.generateAuthenticationResult=function(e,r,n,o){var i,a,s,c=_.EMPTY_STRING,l=[],u=null,h;n!=null&&n.accessToken&&(c=n.accessToken.secret,l=Ct.fromString(n.accessToken.target).asArray(),u=new Date(Number(n.accessToken.expiresOn)*1e3),h=new Date(Number(n.accessToken.extendedExpiresOn)*1e3));var d=(r==null?void 0:r.claims.oid)||(r==null?void 0:r.claims.sub)||_.EMPTY_STRING,f=(r==null?void 0:r.claims.tid)||_.EMPTY_STRING;return{authority:o?o.canonicalAuthority:_.EMPTY_STRING,uniqueId:d,tenantId:f,scopes:l,account:n!=null&&n.account?n.account.getAccountInfo():null,idToken:r?r.rawToken:_.EMPTY_STRING,idTokenClaims:r?r.claims:{},accessToken:c,fromCache:!0,expiresOn:u,correlationId:e.correlationId||_.EMPTY_STRING,requestId:_.EMPTY_STRING,extExpiresOn:h,familyId:_.EMPTY_STRING,tokenType:((i=n==null?void 0:n.accessToken)===null||i===void 0?void 0:i.tokenType)||_.EMPTY_STRING,state:_.EMPTY_STRING,cloudGraphHostName:((a=n==null?void 0:n.account)===null||a===void 0?void 0:a.cloudGraphHostName)||_.EMPTY_STRING,msGraphHost:((s=n==null?void 0:n.account)===null||s===void 0?void 0:s.msGraphHost)||_.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var IS=function(t){ot(e,t);function e(r){var n=t.call(this,r)||this;return n.includeRedirectUri=!1,n}return e}(by);/*! @azure/msal-browser v2.31.0 2022-11-07 */var kS=function(t){ot(e,t);function e(r,n,o,i,a,s,c,l,u,h){var d=t.call(this,r,n,o,i,a,s,l,u,h)||this;return d.apiId=c,d}return e.prototype.acquireToken=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l;return T(this,function(u){switch(u.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!r.code)throw N.createAuthCodeRequiredError();return[4,this.initializeAuthorizationRequest(r,F.Silent)];case 1:n=u.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||_.EMPTY_STRING,n.account||null),o=this.initializeServerTelemetryManager(this.apiId),u.label=2;case 2:return u.trys.push([2,4,,5]),i=$($({},n),{code:r.code}),[4,this.getClientConfiguration(o,n.authority)];case 3:return a=u.sent(),s=new IS(a),this.logger.verbose("Auth code client created"),c=new Oy(s,this.browserStorage,i,this.logger,this.config.system),[2,c.handleCodeResponseFromServer({code:r.code,msgraph_host:r.msGraphHost,cloud_graph_host_name:r.cloudGraphHostName,cloud_instance_host_name:r.cloudInstanceHostName},n.state,s.authority,this.networkClient,!1)];case 4:throw l=u.sent(),l instanceof z&&l.setCorrelationId(this.correlationId),o.cacheFailedRequest(l),this.browserStorage.cleanRequestByState(n.state),l;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(N.createSilentLogoutUnsupportedError())},e}(Ri);/*! @azure/msal-browser v2.31.0 2022-11-07 */var AS=function(){function t(e,r){this.correlationId=r,this.measureName="msal.measure."+e+"."+this.correlationId,this.startMark="msal.start."+e+"."+this.correlationId,this.endMark="msal.end."+e+"."+this.correlationId}return t.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"},t.prototype.startMeasurement=function(){if(t.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch{}},t.prototype.endMeasurement=function(){if(t.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch{}},t.prototype.flushMeasurement=function(){if(t.supportsBrowserPerformance())try{var e=window.performance.getEntriesByName(this.measureName,"measure");if(e.length>0){var r=e[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),r}}catch{}return null},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var RS=function(t){ot(e,t);function e(r,n,o,i,a,s,c){var l=t.call(this,r,n,o,i,a,s)||this;return l.browserCrypto=new Uy(l.logger,c),l.guidGenerator=new xy(l.browserCrypto),l}return e.prototype.startPerformanceMeasuremeant=function(r,n){return new AS(r,n)},e.prototype.generateId=function(){return this.guidGenerator.generateGuid()},e.prototype.getPageVisibility=function(){var r;return((r=document.visibilityState)===null||r===void 0?void 0:r.toString())||null},e.prototype.startMeasurement=function(r,n){var o=this,i=this.getPageVisibility(),a=t.prototype.startMeasurement.call(this,r,n);return $($({},a),{endMeasurement:function(s){return a.endMeasurement($({startPageVisibility:i,endPageVisibility:o.getPageVisibility()},s))}})},e}(Ay);/*! @azure/msal-browser v2.31.0 2022-11-07 */var PS=function(){function t(e){this.isBrowserEnvironment=typeof window<"u",this.config=lS(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new jh(this.config.system.loggerOptions,ou,Ea),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 RS(this.config.auth.clientId,this.config.auth.authority,this.logger,ou,Ea,this.config.telemetry.application,this.config.system.cryptoOptions):new JC(this.config.auth.clientId,this.config.auth.authority,this.logger,ou,Ea,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new TS(this.logger,this.performanceClient,this.config.system.cryptoOptions):Fc,this.eventHandler=new hS(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new Rd(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):eS(this.config.auth.clientId,this.logger);var r={cacheLocation:pt.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1};this.nativeInternalStorage=new Rd(this.config.auth.clientId,r,this.browserCrypto,this.logger),this.tokenCache=new bS(this.config,this.browserStorage,this.logger,this.browserCrypto)}return t.prototype.initialize=function(){return S(this,void 0,void 0,function(){var e,r;return T(this,function(n){switch(n.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(this.eventHandler.emitEvent(q.INITIALIZE_START),!this.config.system.allowNativeBroker)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),e=this,[4,ro.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout)];case 2:return e.nativeExtensionProvider=n.sent(),[3,4];case 3:return r=n.sent(),this.logger.verbose(r),[3,4];case 4:return this.initialized=!0,this.eventHandler.emitEvent(q.INITIALIZE_END),[2]}})})},t.prototype.handleRedirectPromise=function(e){return S(this,void 0,void 0,function(){var r,n,o,i,a,s,c,l,u=this;return T(this,function(h){return this.logger.verbose("handleRedirectPromise called"),Oe.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),r=this.getAllAccounts(),this.isBrowserEnvironment?(n=e||_.EMPTY_STRING,o=this.redirectResponse.get(n),typeof o>"u"?(this.eventHandler.emitEvent(q.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&&ro.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),s=new si(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ye.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(ae.CORRELATION_ID,!0)||_.EMPTY_STRING,l=this.createRedirectClient(c),a=l.handleRedirectPromise(e)),o=a.then(function(d){if(d){var f=r.length<u.getAllAccounts().length;f?(u.eventHandler.emitEvent(q.LOGIN_SUCCESS,F.Redirect,d),u.logger.verbose("handleRedirectResponse returned result, login success")):(u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS,F.Redirect,d),u.logger.verbose("handleRedirectResponse returned result, acquire token success"))}return u.eventHandler.emitEvent(q.HANDLE_REDIRECT_END,F.Redirect),d}).catch(function(d){throw r.length>0?u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE,F.Redirect,null,d):u.eventHandler.emitEvent(q.LOGIN_FAILURE,F.Redirect,null,d),u.eventHandler.emitEvent(q.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])})})},t.prototype.acquireTokenRedirect=function(e){return S(this,void 0,void 0,function(){var r,n,o,i,a,s=this;return T(this,function(c){return r=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",r),this.preflightBrowserEnvironmentCheck(F.Redirect),n=this.getAllAccounts().length>0,n?this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START,F.Redirect,e):this.eventHandler.emitEvent(q.LOGIN_START,F.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(i=new si(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ye.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),o=i.acquireTokenRedirect(e).catch(function(l){if(l instanceof Er&&l.isFatal()){s.nativeExtensionProvider=void 0;var u=s.createRedirectClient(e.correlationId);return u.acquireToken(e)}else if(l instanceof lr){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(q.ACQUIRE_TOKEN_FAILURE,F.Redirect,null,l):s.eventHandler.emitEvent(q.LOGIN_FAILURE,F.Redirect,null,l),l})]})})},t.prototype.acquireTokenPopup=function(e){var r=this,n=this.getRequestCorrelationId(e),o=this.performanceClient.startMeasurement(je.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(q.ACQUIRE_TOKEN_START,F.Popup,e):this.eventHandler.emitEvent(q.LOGIN_START,F.Popup,e);var a;if(this.canUseNative(e))a=this.acquireTokenNative(e,ye.acquireTokenPopup).then(function(c){return r.browserStorage.setInteractionInProgress(!1),o.endMeasurement({success:!0,isNativeBroker:!0,requestId:c.requestId}),o.flushMeasurement(),c}).catch(function(c){if(c instanceof Er&&c.isFatal()){r.nativeExtensionProvider=void 0;var l=r.createPopupClient(e.correlationId);return l.acquireToken(e)}else if(c instanceof lr){r.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");var l=r.createPopupClient(e.correlationId);return l.acquireToken(e)}throw r.browserStorage.setInteractionInProgress(!1),c});else{var s=this.createPopupClient(e.correlationId);a=s.acquireToken(e)}return a.then(function(c){var l=i.length<r.getAllAccounts().length;return l?r.eventHandler.emitEvent(q.LOGIN_SUCCESS,F.Popup,c):r.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS,F.Popup,c),o.addStaticFields({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),o.endMeasurement({success:!0,requestId:c.requestId}),o.flushMeasurement(),c}).catch(function(c){return i.length>0?r.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE,F.Popup,null,c):r.eventHandler.emitEvent(q.LOGIN_FAILURE,F.Popup,null,c),o.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),o.flushMeasurement(),Promise.reject(c)})},t.prototype.ssoSilent=function(e){return S(this,void 0,void 0,function(){var r,n,o,i,a,s=this;return T(this,function(c){return r=this.getRequestCorrelationId(e),n=$($({},e),{prompt:e.prompt,correlationId:r}),this.preflightBrowserEnvironmentCheck(F.Silent),o=this.performanceClient.startMeasurement(je.SsoSilent,r),this.logger.verbose("ssoSilent called",r),this.eventHandler.emitEvent(q.SSO_SILENT_START,F.Silent,n),this.canUseNative(n)?i=this.acquireTokenNative(n,ye.ssoSilent).catch(function(l){if(l instanceof Er&&l.isFatal()){s.nativeExtensionProvider=void 0;var u=s.createSilentIframeClient(n.correlationId);return u.acquireToken(n)}throw l}):(a=this.createSilentIframeClient(n.correlationId),i=a.acquireToken(n)),[2,i.then(function(l){return s.eventHandler.emitEvent(q.SSO_SILENT_SUCCESS,F.Silent,l),o.addStaticFields({accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),o.endMeasurement({success:!0,isNativeBroker:l.fromNativeBroker,requestId:l.requestId}),o.flushMeasurement(),l}).catch(function(l){throw s.eventHandler.emitEvent(q.SSO_SILENT_FAILURE,F.Silent,null,l),o.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),o.flushMeasurement(),l})]})})},t.prototype.acquireTokenByCode=function(e){return S(this,void 0,void 0,function(){var r,n,o,i,a=this;return T(this,function(s){r=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(F.Silent),this.logger.trace("acquireTokenByCode called",r),this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_START,F.Silent,e),n=this.performanceClient.startMeasurement(je.AcquireTokenByCode,e.correlationId);try{if(e.code)return o=e.code,i=this.hybridAuthCodeResponses.get(o),i?(this.logger.verbose("Existing acquireTokenByCode request found",e.correlationId),n.endMeasurement({success:!0}),n.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",r),i=this.acquireTokenByCodeAsync($($({},e),{correlationId:r})).then(function(c){return a.eventHandler.emitEvent(q.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}),n.flushMeasurement(),c}).catch(function(c){throw a.hybridAuthCodeResponses.delete(o),a.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE,F.Silent,null,c),n.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),n.flushMeasurement(),c}),this.hybridAuthCodeResponses.set(o,i)),[2,i];if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return[2,this.acquireTokenNative(e,ye.acquireTokenByCode,e.nativeAccountId).catch(function(c){throw c instanceof Er&&c.isFatal()&&(a.nativeExtensionProvider=void 0),c})];throw N.createUnableToAcquireTokenFromNativePlatformError()}else throw N.createAuthCodeOrNativeAccountIdRequiredError()}catch(c){throw this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_BY_CODE_FAILURE,F.Silent,null,c),n.endMeasurement({errorCode:c instanceof z&&c.errorCode||void 0,subErrorCode:c instanceof z&&c.subError||void 0,success:!1}),c}return[2]})})},t.prototype.acquireTokenByCodeAsync=function(e){return S(this,void 0,void 0,function(){var r,n;return T(this,function(o){switch(o.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),r=this.createSilentAuthCodeClient(e.correlationId),[4,r.acquireToken(e)];case 1:return n=o.sent(),[2,n]}})})},t.prototype.acquireTokenFromCache=function(e,r,n){return S(this,void 0,void 0,function(){return T(this,function(o){switch(n.cacheLookupPolicy){case At.Default:case At.AccessToken:case At.AccessTokenAndRefreshToken:return[2,e.acquireToken(r)];default:throw D.createRefreshRequiredError()}return[2]})})},t.prototype.acquireTokenByRefreshToken=function(e,r){return S(this,void 0,void 0,function(){var n;return T(this,function(o){switch(r.cacheLookupPolicy){case At.Default:case At.AccessTokenAndRefreshToken:case At.RefreshToken:case At.RefreshTokenAndNetwork:return n=this.createSilentRefreshClient(e.correlationId),[2,n.acquireToken(e)];default:throw D.createRefreshRequiredError()}return[2]})})},t.prototype.acquireTokenBySilentIframe=function(e){return S(this,void 0,void 0,function(){var r;return T(this,function(n){return r=this.createSilentIframeClient(e.correlationId),[2,r.acquireToken(e)]})})},t.prototype.logout=function(e){return S(this,void 0,void 0,function(){var r;return T(this,function(n){return r=this.getRequestCorrelationId(e),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",r),[2,this.logoutRedirect($({correlationId:r},e))]})})},t.prototype.logoutRedirect=function(e){return S(this,void 0,void 0,function(){var r,n;return T(this,function(o){return r=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(F.Redirect),n=this.createRedirectClient(r),[2,n.logout(e)]})})},t.prototype.logoutPopup=function(e){try{var r=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck(F.Popup);var n=this.createPopupClient(r);return n.logout(e)}catch(o){return Promise.reject(o)}},t.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},t.prototype.getAccountByUsername=function(e){var r=this.getAllAccounts();return!x.isEmpty(e)&&r&&r.length?(this.logger.verbose("Account matching username found, returning"),this.logger.verbosePii("Returning signed-in accounts matching username: "+e),r.filter(function(n){return n.username.toLowerCase()===e.toLowerCase()})[0]||null):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},t.prototype.getAccountByHomeId=function(e){var r=this.getAllAccounts();return!x.isEmpty(e)&&r&&r.length?(this.logger.verbose("Account matching homeAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching homeAccountId: "+e),r.filter(function(n){return n.homeAccountId===e})[0]||null):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},t.prototype.getAccountByLocalId=function(e){var r=this.getAllAccounts();return!x.isEmpty(e)&&r&&r.length?(this.logger.verbose("Account matching localAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching localAccountId: "+e),r.filter(function(n){return n.localAccountId===e})[0]||null):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},t.prototype.setActiveAccount=function(e){this.browserStorage.setActiveAccount(e)},t.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},t.prototype.preflightBrowserEnvironmentCheck=function(e,r){if(r===void 0&&(r=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),Oe.blockNonBrowserEnvironment(this.isBrowserEnvironment),Oe.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),Oe.blockReloadInHiddenIframes(),Oe.blockAcquireTokenInPopups(),Oe.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===F.Redirect&&this.config.cache.cacheLocation===pt.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw Wc.createInMemoryRedirectUnavailableError();(e===F.Redirect||e===F.Popup)&&this.preflightInteractiveRequest(r)},t.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),Oe.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},t.prototype.acquireTokenNative=function(e,r,n){return S(this,void 0,void 0,function(){var o;return T(this,function(i){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw N.createNativeConnectionNotEstablishedError();return o=new si(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,r,this.performanceClient,this.nativeExtensionProvider,n||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),[2,o.acquireToken(e)]})})},t.prototype.canUseNative=function(e,r){if(this.logger.trace("canUseNative called"),!ro.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 mt.NONE:case mt.CONSENT:case mt.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!r&&!this.getNativeAccountId(e)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0},t.prototype.getNativeAccountId=function(e){var r=e.account||this.browserStorage.getAccountInfoByHints(e.loginHint,e.sid)||this.getActiveAccount();return r&&r.nativeAccountId||""},t.prototype.createPopupClient=function(e){return new oS(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},t.prototype.createRedirectClient=function(e){return new nS(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},t.prototype.createSilentIframeClient=function(e){return new uS(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ye.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},t.prototype.createSilentCacheClient=function(e){return new Ny(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},t.prototype.createSilentRefreshClient=function(e){return new dS(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},t.prototype.createSilentAuthCodeClient=function(e){return new kS(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,ye.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)},t.prototype.addEventCallback=function(e){return this.eventHandler.addEventCallback(e)},t.prototype.removeEventCallback=function(e){this.eventHandler.removeEventCallback(e)},t.prototype.addPerformanceCallback=function(e){return this.performanceClient.addPerformanceCallback(e)},t.prototype.removePerformanceCallback=function(e){return this.performanceClient.removePerformanceCallback(e)},t.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},t.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},t.prototype.getTokenCache=function(){return this.tokenCache},t.prototype.getLogger=function(){return this.logger},t.prototype.setLogger=function(e){this.logger=e},t.prototype.initializeWrapperLibrary=function(e,r){this.browserStorage.setWrapperMetadata(e,r)},t.prototype.setNavigationClient=function(e){this.navigationClient=e},t.prototype.getConfiguration=function(){return this.config},t.prototype.getRequestCorrelationId=function(e){return e!=null&&e.correlationId?e.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():_.EMPTY_STRING},t}();/*! @azure/msal-browser v2.31.0 2022-11-07 */var NS=function(t){ot(e,t);function e(r){var n=t.call(this,r)||this;return n.activeSilentTokenRequests=new Map,n}return e.prototype.loginRedirect=function(r){return S(this,void 0,void 0,function(){var n;return T(this,function(o){return n=this.getRequestCorrelationId(r),this.logger.verbose("loginRedirect called",n),[2,this.acquireTokenRedirect($({correlationId:n},r||xp))]})})},e.prototype.loginPopup=function(r){var n=this.getRequestCorrelationId(r);return this.logger.verbose("loginPopup called",n),this.acquireTokenPopup($({correlationId:n},r||xp))},e.prototype.acquireTokenSilent=function(r){return S(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u=this;return T(this,function(h){if(n=this.getRequestCorrelationId(r),o=this.performanceClient.startMeasurement(je.AcquireTokenSilent,n),o.addStaticFields({cacheLookupPolicy:r.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(F.Silent),this.logger.verbose("acquireTokenSilent called",n),i=r.account||this.getActiveAccount(),!i)throw N.createNoAccountError();return a={clientId:this.config.auth.clientId,authority:r.authority||_.EMPTY_STRING,scopes:r.scopes,homeAccountIdentifier:i.homeAccountId,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.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),l=this.acquireTokenSilentAsync($($({},r),{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,requestId:d.requestId}),o.flushMeasurement(),d}).catch(function(d){throw u.activeSilentTokenRequests.delete(s),o.endMeasurement({errorCode:d.errorCode,subErrorCode:d.subError,success:!1}),o.flushMeasurement(),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.endMeasurement({success:!0}),o.discardMeasurement(),[2,c])})})},e.prototype.acquireTokenSilentAsync=function(r,n){return S(this,void 0,void 0,function(){var o,i,a,s,c,l,u=this;return T(this,function(h){switch(h.label){case 0:return this.eventHandler.emitEvent(q.ACQUIRE_TOKEN_START,F.Silent,r),o=this.performanceClient.startMeasurement(je.AcquireTokenSilentAsync,r.correlationId),ro.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,r.authenticationScheme)&&n.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),a=$($({},r),{account:n}),i=this.acquireTokenNative(a,ye.acquireTokenSilent_silentFlow).catch(function(d){return S(u,void 0,void 0,function(){var f;return T(this,function(m){if(d instanceof Er&&d.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,f=this.createSilentIframeClient(r.correlationId),[2,f.acquireToken(r)];throw d})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),s=this.createSilentCacheClient(r.correlationId),[4,s.initializeSilentRequest(r,n)];case 2:c=h.sent(),l=$($({},r),{cacheLookupPolicy:r.cacheLookupPolicy||At.Default}),i=this.acquireTokenFromCache(s,c,l).catch(function(d){if(l.cacheLookupPolicy===At.AccessToken)throw d;return Oe.blockReloadInHiddenIframes(),u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_NETWORK_START,F.Silent,c),u.acquireTokenByRefreshToken(c,l).catch(function(f){var m=f instanceof vo,v=f instanceof lr,E=f.errorCode===cr.INVALID_GRANT_ERROR;if((!m||!E||v||l.cacheLookupPolicy===At.AccessTokenAndRefreshToken||l.cacheLookupPolicy===At.RefreshToken)&&l.cacheLookupPolicy!==At.Skip)throw f;return u.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",r.correlationId),u.acquireTokenBySilentIframe(c)})}),h.label=3;case 3:return[2,i.then(function(d){return u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_SUCCESS,F.Silent,d),o.endMeasurement({success:!0,fromCache:d.fromCache,isNativeBroker:d.fromNativeBroker,requestId:d.requestId}),d}).catch(function(d){throw u.eventHandler.emitEvent(q.ACQUIRE_TOKEN_FAILURE,F.Silent,null,d),o.endMeasurement({errorCode:d.errorCode,subErrorCode:d.subError,success:!1}),d})]}})})},e}(PS);const Fp="redirect";var $p=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})};class OS extends NS{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 r=(e=this.account)===null||e===void 0?void 0:e.idTokenClaims;if(r){const n=Math.ceil(Date.now()/1e3);return r.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,r){super(r),this.tenantId=e}login(e,r=Fp,n=!0){var o;return $p(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 [${r}]`),r){case"popup":return this.loginPopup(s);case"redirect":return this.loginRedirect(s)}})}acquireToken(e={scopes:[]},r=Fp,n=!0){return $p(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 [${r}]`),r){case"popup":return this.acquireTokenPopup(e);case"redirect":return this.acquireTokenRedirect(e)}})}}const xS=(t,e=window.location.origin)=>{t=t.match(/^http[s]?/)?t:e+t;const{origin:r,pathname:n}=new URL(t);return r+n.replace(/([^:]\/)\/+/g,"$1")},MS=(t,e,r,n,o)=>{const i=Object.assign({clientId:e,redirectUri:xS(r||""),navigateToLoginRequestUrl:!1,authority:`https://login.microsoftonline.com/${t}`},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||OS)(t,{auth:i,cache:a,system:s})};class Ly extends jh{constructor(e){super({logLevel:e,loggerCallback:(...r)=>this.loggerCallback(...r)}),this.getLogType=r=>{switch(r){case xe.Error:return"error";case xe.Warning:return"warn";case xe.Info:return"info";case xe.Verbose:default:return"debug"}}}loggerCallback(e,r,n){console[this.getLogType(e)]("%c FUSION::MSAL %c %s","border: 1px solid;","border: none;",r)}}var iu=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})};const US="default";class LS{get defaultClient(){return this.getClient(US)}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 r=e?this._config.getClientConfig(e):this._config.defaultConfig;if(!r)throw Error("Could not find any config");const n=MS(r.tenantId,r.clientId,r.redirectUri,r.config);return n.setLogger(new Ly(0)),n}handleRedirect(){return iu(this,void 0,void 0,function*(){const{redirectUri:e}=this.defaultConfig||{};if(window.location.pathname===e){const r=this.defaultClient,n=r.getLogger(),{requestOrigin:o}=r;yield r.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 iu(this,void 0,void 0,function*(){const r=yield this.acquireToken(e);return r?r.accessToken:void 0})}login(){return iu(this,void 0,void 0,function*(){yield this.defaultClient.login()})}}var DS=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})};const Dy={name:"auth",configure:t=>{var e;const r=new IC;return!((e=t==null?void 0:t.auth)===null||e===void 0)&&e.defaultConfig&&r.configureDefault(t.auth.defaultConfig),r},initialize:({config:t})=>DS(void 0,void 0,void 0,function*(){const e=new LS(t);return t.requiresAuth&&(yield e.handleRedirect(),e.defaultAccount||(yield e.login())),e})},HS=(t,e)=>({module:Dy,configure:r=>{r.configureDefault(t),(e==null?void 0:e.requiresAuth)!==void 0&&(r.requiresAuth=e==null?void 0:e.requiresAuth);const{clients:n}=e!=null?e:{};n&&Object.entries(n).forEach(([o,i])=>r.configureClient(o,i))}});var Hy=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})};const FS=t=>{var e;return{id:t.id,isChildType:t.isChildType,parentTypeIds:(e=t.parentTypeIds)!==null&&e!==void 0?e:[]}},Fy=t=>{var e,r,n,o;return{id:t.id,externalId:(e=t.externalId)!==null&&e!==void 0?e:void 0,isActive:t.isActive,isDeleted:t.isDeleted,created:new Date(t.created),source:(r=t.source)!==null&&r!==void 0?r:void 0,title:(n=t.title)!==null&&n!==void 0?n:void 0,type:FS(t.type),value:(o=t.value)!==null&&o!==void 0?o:{}}},$S=t=>Hy(void 0,void 0,void 0,function*(){const e=yield t.json();return Fy(e)}),zS=t=>Hy(void 0,void 0,void 0,function*(){return(yield t.json()).map(Fy)});var Ps=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})};class jS{constructor(){this.defaultExpireTime=1*60*1e3}_createContextClientGet(e){return Ps(this,void 0,void 0,function*(){const r=yield e.createContextClient("json$");return{fn:n=>r.get("v1",n,{selector:$S})}})}_createContextClientQuery(e){return Ps(this,void 0,void 0,function*(){const r=yield e.createContextClient("json$");return{fn:n=>r.query("v1",{query:n},{selector:zS})}})}_getServiceProvider(e){var r;return Ps(this,void 0,void 0,function*(){if(e.hasModule("services"))return e.requireInstance("services");{const n=(r=e.ref)===null||r===void 0?void 0:r.services;if(n)return n;throw Error("no service services provider configures [ServicesModule]")}})}createConfig(e){return Ps(this,void 0,void 0,function*(){const r=yield this._getServiceProvider(e),n={getContext:{query:{client:yield this._createContextClientGet(r),key:({id:o})=>o,expire:this.defaultExpireTime}},queryContext:{client:yield this._createContextClientQuery(r),key:o=>JSON.stringify(o),expire:this.defaultExpireTime}};return this.processConfig(n)})}processConfig(e){return e}}var zp;(function(t){t.IDLE="idle",t.ACTIVE="active",t.FAILED="failed",t.CANCELED="canceled"})(zp||(zp={}));const BS=t=>e=>e.pipe(Qn(t)),qS=t=>t.pipe(yt(e=>e.value));var Ns,KS=new Uint8Array(16);function GS(){if(!Ns&&(Ns=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Ns))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ns(KS)}const VS=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function $y(t){return typeof t=="string"&&VS.test(t)}var Qe=[];for(var au=0;au<256;++au)Qe.push((au+256).toString(16).substr(1));function zy(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(Qe[t[e+0]]+Qe[t[e+1]]+Qe[t[e+2]]+Qe[t[e+3]]+"-"+Qe[t[e+4]]+Qe[t[e+5]]+"-"+Qe[t[e+6]]+Qe[t[e+7]]+"-"+Qe[t[e+8]]+Qe[t[e+9]]+"-"+Qe[t[e+10]]+Qe[t[e+11]]+Qe[t[e+12]]+Qe[t[e+13]]+Qe[t[e+14]]+Qe[t[e+15]]).toLowerCase();if(!$y(r))throw TypeError("Stringified UUID is invalid");return r}function WS(t){if(!$y(t))throw TypeError("Invalid UUID");var e,r=new Uint8Array(16);return r[0]=(e=parseInt(t.slice(0,8),16))>>>24,r[1]=e>>>16&255,r[2]=e>>>8&255,r[3]=e&255,r[4]=(e=parseInt(t.slice(9,13),16))>>>8,r[5]=e&255,r[6]=(e=parseInt(t.slice(14,18),16))>>>8,r[7]=e&255,r[8]=(e=parseInt(t.slice(19,23),16))>>>8,r[9]=e&255,r[10]=(e=parseInt(t.slice(24,36),16))/1099511627776&255,r[11]=e/4294967296&255,r[12]=e>>>24&255,r[13]=e>>>16&255,r[14]=e>>>8&255,r[15]=e&255,r}function YS(t){t=unescape(encodeURIComponent(t));for(var e=[],r=0;r<t.length;++r)e.push(t.charCodeAt(r));return e}var QS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",JS="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function XS(t,e,r){function n(o,i,a,s){if(typeof o=="string"&&(o=YS(o)),typeof i=="string"&&(i=WS(i)),i.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var c=new Uint8Array(16+o.length);if(c.set(i),c.set(o,i.length),c=r(c),c[6]=c[6]&15|e,c[8]=c[8]&63|128,a){s=s||0;for(var l=0;l<16;++l)a[s+l]=c[l];return a}return zy(c)}try{n.name=t}catch{}return n.DNS=QS,n.URL=JS,n}function jy(t,e,r){t=t||{};var n=t.random||(t.rng||GS)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(var o=0;o<16;++o)e[r+o]=n[o];return e}return zy(n)}function ZS(t,e,r,n){switch(t){case 0:return e&r^~e&n;case 1:return e^r^n;case 2:return e&r^e&n^r&n;case 3:return e^r^n}}function su(t,e){return t<<e|t>>>32-e}function eT(t){var e=[1518500249,1859775393,2400959708,3395469782],r=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof t=="string"){var n=unescape(encodeURIComponent(t));t=[];for(var o=0;o<n.length;++o)t.push(n.charCodeAt(o))}else Array.isArray(t)||(t=Array.prototype.slice.call(t));t.push(128);for(var i=t.length/4+2,a=Math.ceil(i/16),s=new Array(a),c=0;c<a;++c){for(var l=new Uint32Array(16),u=0;u<16;++u)l[u]=t[c*64+u*4]<<24|t[c*64+u*4+1]<<16|t[c*64+u*4+2]<<8|t[c*64+u*4+3];s[c]=l}s[a-1][14]=(t.length-1)*8/Math.pow(2,32),s[a-1][14]=Math.floor(s[a-1][14]),s[a-1][15]=(t.length-1)*8&4294967295;for(var h=0;h<a;++h){for(var d=new Uint32Array(80),f=0;f<16;++f)d[f]=s[h][f];for(var m=16;m<80;++m)d[m]=su(d[m-3]^d[m-8]^d[m-14]^d[m-16],1);for(var v=r[0],E=r[1],g=r[2],p=r[3],y=r[4],w=0;w<80;++w){var k=Math.floor(w/20),P=su(v,5)+ZS(k,E,g,p)+y+e[k]+d[w]>>>0;y=p,p=g,g=su(E,30)>>>0,E=v,v=P}r[0]=r[0]+v>>>0,r[1]=r[1]+E>>>0,r[2]=r[2]+g>>>0,r[3]=r[3]+p>>>0,r[4]=r[4]+y>>>0}return[r[0]>>24&255,r[0]>>16&255,r[0]>>8&255,r[0]&255,r[1]>>24&255,r[1]>>16&255,r[1]>>8&255,r[1]&255,r[2]>>24&255,r[2]>>16&255,r[2]>>8&255,r[2]&255,r[3]>>24&255,r[3]>>16&255,r[3]>>8&255,r[3]&255,r[4]>>24&255,r[4]>>16&255,r[4]>>8&255,r[4]&255]}var tT=XS("v5",80,eT);const rT=tT;class Nd extends Error{constructor(e,r,n){super(r),this.type=e,this.cause=n}}const _i=(...t)=>Ai(e=>t.includes(e.type));var dt=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},nT=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,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"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},vr,rr;class By extends Ie{get action$(){return dt(this,vr,"f").asObservable()}get value(){return dt(this,rr,"f").value}get closed(){return dt(this,rr,"f").closed||dt(this,vr,"f").closed}constructor(e,r){super(n=>dt(this,rr,"f").subscribe(n)),this.__initial=r,vr.set(this,new Gr),rr.set(this,void 0),nT(this,rr,new gl(r),"f"),dt(this,vr,"f").pipe(Fh(e,r),my()).subscribe(dt(this,rr,"f"))}next(e){dt(this,vr,"f").next(e)}addEffect(e,r){const n=typeof e=="string"?this.action$.pipe(_i(e)):this.action$,o=r||e;return n.pipe(mo(i=>br(new Promise((a,s)=>{try{a(o(i,this.value))}catch(c){s(c)}})).pipe(rn(a=>(console.warn("unhandled effect",a),po)))),Ai(i=>!!i),Oc(Nc)).subscribe(dt(this,vr,"f"))}addEpic(e){const r=e(this.action$,this);if(!r)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 r.pipe(rn(n=>(console.trace("unhandled exception, epic closed!",n),po)),Oc(Nc)).subscribe(dt(this,vr,"f"))}reset(){dt(this,rr,"f").next(this.__initial)}unsubscribe(){dt(this,vr,"f").unsubscribe(),dt(this,rr,"f").unsubscribe()}complete(){dt(this,vr,"f").complete(),dt(this,rr,"f").complete()}asObservable(){return dt(this,rr,"f").asObservable()}}vr=new WeakMap,rr=new WeakMap;class Od extends Error{constructor(e,r,n){super(n!=null?n:r.message),this.action=e,this.cause=r}}const qy=t=>(e,r)=>new Ie(n=>{const{meta:{controller:o,transaction:i}}=e;if(o.signal.aborted)return n.next({type:"cancel",payload:{transaction:i,reason:`request [${i}] was aborted!`}}),n.complete();if(n.add(t.pipe(_i("cancel")).subscribe(a=>{a.payload.transaction===i&&(o.signal.aborted||o.abort(),n.complete())})),n.add(vd(o.signal,"abort").subscribe(()=>{n.next({type:"cancel",payload:{transaction:i,reason:`request [${i}] was aborted!`}}),n.complete()})),r)return r(n)}),oT=t=>(t=Object.assign({},{count:0,delay:0},t),(e,r)=>{const n=qy(e);return e.pipe(_i("failure"),iC(r),Qn(([o,i])=>{var a,s;const{request:c}=o.meta,{transaction:l}=c.meta,u=i[l];if(!u)return po;const h=(s=(a=u.retry)===null||a===void 0?void 0:a.length)!==null&&s!==void 0?s:0,d={type:"retry",payload:o.meta.request},f=Object.assign({},t,c.meta.retry);return n(c,m=>{if(h>=f.count){const E=f.count?"maximum retries executed!":o.payload.message;return m.next({type:"error",payload:new Od(o,o.payload.cause,E),meta:{request:c}}),m.complete()}return(typeof f.delay=="function"?br(f.delay(o.payload.cause)):YE(f.delay)).pipe(yt(()=>d),rn(E=>ml({type:"error",payload:new Od(d,E,"failed to resolve delay"),meta:{request:c}}))).subscribe(m)})}))}),iT=t=>e=>{const r=qy(e);return e.pipe(_i("request","retry"),mo(n=>{const o=n.type==="request"?n:n.payload;return r(o,i=>{br(t(o.payload,o.meta.controller.signal)).pipe(yt(a=>({type:"success",payload:a,meta:{request:o}})),rn(a=>ml({type:"failure",payload:new Od(n,a,`failed to execute request for transaction ${o.meta.transaction}`),meta:{request:o}}))).subscribe(i)})}))},Ky=()=>Ai(t=>t.status==="complete"),aT=()=>(t,e)=>{switch(e.type){case"request":{const{transaction:r,task:n,ref:o}=e.meta;return Object.assign({},t,{[r]:{transaction:r,task:n,ref:o,created:Date.now()}})}case"retry":{const{transaction:r}=e.payload.meta,n=Object.assign({},t[r]);if(n)return n.retry=n.retry?[...n.retry,Date.now()]:[],Object.assign({},t,{[r]:n});break}case"failure":{const{transaction:r}=e.meta.request.meta,n=Object.assign({},t[r]);if(n)return n.errors=n.errors?[...n.errors,e.payload]:[],Object.assign({},t,{[r]:n});break}case"cancel":{const{transaction:r,reason:n}=e.payload,o=t[r];if(o){o.task.error(new Nd("abort","request was canceled",new Error(n)));const i=Object.assign({},t);return delete i[r],i}break}case"error":{const{transaction:r}=e.meta.request.meta,n=t[r];if(n){n.task.error(new Nd("error","failed to execute request",e.payload));const o=Object.assign({},t);return delete o[r],o}break}case"success":{const{request:r}=e.meta,{transaction:n,ref:o}=r.meta,i=t[n];if(i){const a={status:"complete",transaction:n,ref:o,value:e.payload,args:r.payload,created:i.created,completed:Date.now()};i.task.next(a),i.task.complete();const s=Object.assign({},t);return delete s[n],s}break}}return t};var sT=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})},We=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},jp=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,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"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},Je,Ao;class Bp extends Ie{get action$(){return We(this,Je,"f").action$}get closed(){return We(this,Je,"f").closed}get success$(){return this.action$.pipe(_i("success"),yt(({payload:e})=>e))}get error$(){return this.action$.pipe(_i("error"),yt(({payload:e})=>new Nd("error","failed to execute request",e)))}constructor(e,r){super(o=>We(this,Je,"f").subscribe(o)),Je.set(this,void 0),Ao.set(this,void 0),jp(this,Je,new By(aT(),{}),"f"),jp(this,Ao,new an(()=>We(this,Je,"f").complete()),"f"),We(this,Ao,"f").add(We(this,Je,"f").addEpic(iT(e)));const n=Object.assign({count:0,delay:0},r==null?void 0:r.retry);We(this,Ao,"f").add(We(this,Je,"f").addEpic(oT(n)))}next(e,r){return this._next(e,r).meta}nextAsync(e,r){return sT(this,void 0,void 0,function*(){return go(this.next(e,r).task.pipe(Ky()))})}getTaskByTransaction(e){const r=We(this,Je,"f").value[e];return r&&r.task}getTaskByRef(e){const r=Object.values(We(this,Je,"f").value).find(n=>n.ref===e);return r&&r.task}cancel(e,r){if(e&&We(this,Je,"f").value[e])r!=null||(r=`[${e}]: transaction canceled`),We(this,Je,"f").next({type:"cancel",payload:{transaction:e,reason:r}});else for(const n of Object.keys(We(this,Je,"f").value))this.cancel(n,`[${e}]: all transactions canceled`)}on(e,r){return We(this,Je,"f").addEffect(e,n=>{r(n,this)})}complete(){We(this,Ao,"f").unsubscribe()}asObservable(){return We(this,Je,"f").asObservable()}_next(e,r){const n=Object.assign({transaction:jy(),controller:new AbortController,task:new ey},r!=null?r:{}),o={type:"request",payload:e,meta:n};return We(this,Je,"f").next(o),o}}Je=new WeakMap,Ao=new WeakMap;const cT=(t,e)=>{var r,n;return((r=e.updated)!==null&&r!==void 0?r:0)-((n=t.updated)!==null&&n!==void 0?n:0)},lT=()=>(t,e)=>{var r,n,o,i,a;const{type:s,payload:c}=e;switch(s){case"set":{const{key:l,value:u}=c,h=t.data[l],d=Object.assign(Object.assign(Object.assign({},h),u),{created:(r=h==null?void 0:h.created)!==null&&r!==void 0?r:Date.now(),updated:Date.now(),updates:((n=h==null?void 0:h.updates)!==null&&n!==void 0?n:-1)+1}),f=Object.assign(Object.assign({},t.data),{[l]:d});return Object.assign(Object.assign({},t),{data:f,lastTransaction:d.transaction})}case"clear":{const l=Object.assign({},t.data);return delete l[c.key],Object.assign(Object.assign({},t),{data:l})}case"invalidate":{const{key:l}=c,u=t.data[l];if(u){const h=Object.assign(Object.assign({},t.data),{[l]:Object.assign(Object.assign({},u),{updated:void 0})});return Object.assign(Object.assign({},t),{data:h})}break}case"reset":return{data:(o=c.data)!==null&&o!==void 0?o:{}};case"trim":{const l=(i=c.sort)!==null&&i!==void 0?i:cT,h=Object.entries(t.data).sort((f,m)=>l(f[1],m[1])).filter(([f,m])=>!c.validate||c.validate(m)).slice(0,(a=c.size)!==null&&a!==void 0?a:Number.MAX_SAFE_INTEGER).reduce((f,[m,v])=>Object.assign(f,{[m]:v}),{});return Object.keys(h).length===Object.keys(t.data).length?t:{lastTransaction:t.lastTransaction&&Object.keys(h).includes(t.lastTransaction)?t.lastTransaction:Object.values(h)[0].transaction,data:h}}}return t},uT=t=>{const e=t.lastTransaction,r=Object.values(t.data);return e?r.find(n=>n.transaction===e):r.sort((n,o)=>{var i,a;return((i=n.updated)!==null&&i!==void 0?i:0)-((a=o.updated)!==null&&a!==void 0?a:0)}).pop()};class qp extends By{get data$(){return this.pipe(yt(e=>e.data))}get latest(){return uT(this.value)}constructor(e){const{trimming:r,initial:n}=e;super(lT(),{data:n!=null?n:{}}),r&&this.addEffect("set",()=>this.trim(r))}setItem(e,r){this.next({type:"set",payload:{key:e,value:r}})}getItem(e){return this.value.data[e]}invalidate(e){this.next({type:"invalidate",payload:{key:e}})}trim(e){this.next({type:"trim",payload:e})}}var me=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Io=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,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"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},dT=globalThis&&globalThis.__rest||function(t,e){var r={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(r[n]=t[n]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(r[n[o]]=t[n[o]]);return r},Kn,nr,Ur,Ro,Po,Js,xd;const hT=(t=0)=>e=>{var r;return((r=e.updated)!==null&&r!==void 0?r:0)+t>Date.now()};class Kt extends Ie{get client(){return me(this,nr,"f")}get state$(){return me(this,Ur,"f")}constructor(e){var r,n;super(i=>me(this,Ur,"f").pipe(yt(({data:a})=>a)).subscribe(i)),Kn.set(this,new an),nr.set(this,void 0),Ur.set(this,void 0),Ro.set(this,new Gr),Po.set(this,void 0),Js.set(this,void 0),xd.set(this,jy()),Io(this,Po,i=>rT(e.key(i),me(this,xd,"f")),"f"),Io(this,Js,(r=e==null?void 0:e.validate)!==null&&r!==void 0?r:hT(e==null?void 0:e.expire),"f"),e.client instanceof Bp?Io(this,nr,e.client,"f"):(Io(this,nr,new Bp(e.client.fn,e.client.options),"f"),me(this,Kn,"f").add(()=>me(this,nr,"f").complete())),e.cache instanceof qp?Io(this,Ur,e.cache,"f"):(Io(this,Ur,new qp(e.cache||{}),"f"),me(this,Kn,"f").add(()=>me(this,Ur,"f").complete()));const o=(n=e.queueOperator)!==null&&n!==void 0?n:BS;me(this,Kn,"f").add(()=>me(this,Ro,"f").complete()),me(this,Kn,"f").add(me(this,Ro,"f").pipe(o(({args:i,options:a})=>new Ie(s=>{const{task:c,transaction:l}=me(this,nr,"f").next(i,a);s.add(c.pipe(rn(()=>po)).subscribe(s)),s.add(()=>{me(this,nr,"f").cancel(l)})})),Ky(),_y(()=>!me(this,nr,"f").closed)).subscribe(i=>{const{args:a,value:s,transaction:c,ref:l}=i,u=l!=null?l:me(this,Po,"f").call(this,a);me(this,Ur,"f").setItem(u,{value:s,args:a,transaction:c})}))}next(e,r){me(this,Ro,"f").next({args:e,options:r})}query(e,r){var n;const o=me(this,Po,"f").call(this,e);return(n=me(this,nr,"f").getTaskByRef(o))!==null&&n!==void 0?n:this._createTask(o,e,r)}queryAsync(e,r){const n=r||{},{awaitResolve:o}=n,i=dT(n,["awaitResolve"]);return(o?xc:go)(this._query(e,i))}complete(){me(this,Kn,"f").unsubscribe()}_query(e,r){var n;const o=me(this,Po,"f").call(this,e);return(n=me(this,nr,"f").getTaskByRef(o))!==null&&n!==void 0?n:this._createTask(o,e,r)}_createTask(e,r,n){var o;const i=new ey,a=me(this,Ur,"f").getItem(e);if(a){const{value:l,args:u,created:h,updated:d,updates:f,transaction:m}=a,v={status:"cache",value:l,args:u,created:h,updated:d,updates:f,transaction:m};i.next(v)}const s=((o=n==null?void 0:n.cache)===null||o===void 0?void 0:o.validate)||me(this,Js,"f");return a&&s(a,r)?i.complete():me(this,Ro,"f").next({args:r,options:{ref:e,task:i}}),i.asObservable()}}Kn=new WeakMap,nr=new WeakMap,Ur=new WeakMap,Ro=new WeakMap,Po=new WeakMap,Js=new WeakMap,xd=new WeakMap;Kt.extractQueryValue=qS;var dn=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Kp=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,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"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},na,Lr;class fT extends Ie{get currentContext(){return dn(this,Lr,"f").value}get currentContext$(){return dn(this,Lr,"f").asObservable()}get client(){return dn(this,na,"f")}constructor(e){super(r=>dn(this,Lr,"f").subscribe(r)),na.set(this,void 0),Lr.set(this,void 0),Kp(this,na,new Kt(e.query),"f"),Kp(this,Lr,new gl(e.initial),"f")}setCurrentContext(e){typeof e=="string"?this.resolveContext(e).pipe(rn(()=>po)).subscribe(r=>dn(this,Lr,"f").next(r)):e!==dn(this,Lr,"f").value&&dn(this,Lr,"f").next(e)}resolveContext(e){return dn(this,na,"f").query({id:e}).pipe(yt(r=>r.value))}}na=new WeakMap,Lr=new WeakMap;var ht=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},qi=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,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"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},Dr,Xs,oa,No,Zs,ia;class pT{get contextClient(){return ht(this,Dr,"f")}get queryClient(){return ht(this,Xs,"f")}queryContext(e){const r=this.queryClient.query({search:e,filter:{type:ht(this,Zs,"f")}}).pipe(yt(n=>n.value));return ht(this,ia,"f")?r.pipe(yt(ht(this,ia,"f"))):r}queryContextAsync(e){return xc(this.queryContext(e))}get currentContext$(){return ht(this,Dr,"f").currentContext$}get currentContext(){return ht(this,Dr,"f").currentContext}set currentContext(e){ht(this,oa,"f")?ht(this,oa,"f").dispatchEvent("onCurrentContextChange",{source:this,canBubble:!0,cancelable:!0,detail:{context:e}}).then(r=>{r.canceled||ht(this,Dr,"f").setCurrentContext(e)}):ht(this,Dr,"f").setCurrentContext(e)}constructor(e){Dr.set(this,void 0),Xs.set(this,void 0),oa.set(this,void 0),No.set(this,new an),Zs.set(this,void 0),ia.set(this,void 0);const{config:r,event:n,parentContext:o}=e;qi(this,Zs,r.contextType,"f"),qi(this,ia,r.contextFilter,"f"),qi(this,Dr,new fT(r.getContext),"f"),qi(this,Xs,new Kt(r.queryContext),"f"),n&&(qi(this,oa,n,"f"),ht(this,No,"f").add(ht(this,Dr,"f").currentContext$.pipe(yy()).subscribe(([i,a])=>{n.dispatchEvent("onCurrentContextChanged",{source:this,canBubble:!0,detail:{previous:i,next:a}})})),ht(this,No,"f").add(n.addEventListener("onCurrentContextChanged",i=>{i.source!==this&&(this.currentContext=i.detail.next)}))),o&&ht(this,No,"f").add(o.contextClient.currentContext$.subscribe(i=>this.currentContext=i))}dispose(){ht(this,No,"f").unsubscribe()}}Dr=new WeakMap,Xs=new WeakMap,oa=new WeakMap,No=new WeakMap,Zs=new WeakMap,ia=new WeakMap;var gT=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})};const mT="context",vT={name:mT,configure:()=>new jS,initialize:t=>gT(void 0,void 0,void 0,function*(){var e;const r=yield t.config.createConfig(t),n=t.hasModule("event")?yield t.requireInstance("event"):void 0,o=(e=t.ref)===null||e===void 0?void 0:e.context;return new pT({config:r,event:n,parentContext:o})}),dispose:t=>{t.instance.dispose()}},yT="modulepreload",_T=function(t){return"/"+t},Gp={},wT=function(e,r,n){if(!r||r.length===0)return e();const o=document.getElementsByTagName("link");return Promise.all(r.map(i=>{if(i=_T(i),i in Gp)return;Gp[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!n)for(let u=o.length-1;u>=0;u--){const h=o[u];if(h.href===i&&(!a||h.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const l=document.createElement("link");if(l.rel=a?"stylesheet":yT,a||(l.as="script",l.crossOrigin=""),l.href=i,document.head.appendChild(l),a)return new Promise((u,h)=>{l.addEventListener("load",u),l.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e())},ET=(t,e)=>JSON.stringify(t)===JSON.stringify(e);var ft=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},Os=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,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"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},Oo,aa,sa,xo,hn;class CT extends Ie{get current(){return ft(this,xo,"f").value}get current$(){return ft(this,xo,"f").pipe(my(ET))}constructor(e){super(o=>this.current$.subscribe(o)),Oo.set(this,void 0),aa.set(this,void 0),sa.set(this,void 0),xo.set(this,void 0),hn.set(this,new an);const{event:r,config:n}=e;Os(this,xo,new gl(void 0),"f"),Os(this,Oo,new Kt(n.getApp),"f"),Os(this,aa,new Kt(n.getApps),"f"),Os(this,sa,new Kt(n.getConfig),"f"),ft(this,hn,"f").add(ft(this,Oo,"f").complete),ft(this,hn,"f").add(ft(this,aa,"f").complete),ft(this,hn,"f").add(ft(this,sa,"f").complete),ft(this,hn,"f").add(this.current$.pipe(yy(),_y(()=>!!r)).subscribe(([o,i])=>{r==null||r.dispatchEvent("onCurrentAppChanged",{source:this,detail:{previous:o,next:i}})}))}getApp(e){return Kt.extractQueryValue(ft(this,Oo,"f").query({appKey:e}).pipe(rn(r=>{throw Error("failed to load manifest",{cause:r})})))}getAllApps(){return Kt.extractQueryValue(ft(this,aa,"f").query())}getAppConfig(e,r){return Kt.extractQueryValue(ft(this,sa,"f").query({appKey:e,tag:r}).pipe(rn(n=>{throw Error("failed to load config",{cause:n})})))}setCurrentApp(e){return new Promise((r,n)=>{const o=ft(this,Oo,"f").query({appKey:e});ft(this,hn,"f").add(Kt.extractQueryValue(o).subscribe({next:i=>ft(this,xo,"f").next(i),error:n,complete:r}))})}loadApp(e){const r=this.getApp(e).pipe(Qn(o=>go(br(wT(()=>import(o.entry),[])).pipe(yt(i=>({manifest:o,module:i})))))),n=this.getAppConfig(e).pipe(yt(o=>({config:o})));return QE(r,n).pipe(Fh((o,i)=>Object.assign({},o,i),{}),Ai(o=>["manifest","module","config"].every(i=>!!o[i])),vy(()=>"failed to load application"))}dispose(){ft(this,hn,"f").unsubscribe()}}Oo=new WeakMap,aa=new WeakMap,sa=new WeakMap,xo=new WeakMap,hn=new WeakMap;var ST=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})};const Md="app",TT={name:Md,configure:()=>new bT,initialize:t=>ST(void 0,void 0,void 0,function*(){const e=yield t.config.createConfig(t),r=yield t.requireInstance("event").catch(()=>{});return new CT({config:e,event:r})}),dispose:t=>{t.instance.dispose()}};var Vp=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})};class bT{constructor(){this.defaultExpireTime=1*60*1e3}_createHttpClient(e){return Vp(this,void 0,void 0,function*(){const r=yield e.requireInstance("http");if(r.hasClient(Md))return r.createClient(Md);{const n=yield e.requireInstance("serviceDiscovery");try{return yield n.createClient("app")}catch{return yield n.createClient("portal")}}})}createConfig(e){return Vp(this,void 0,void 0,function*(){const r=yield this._createHttpClient(e),n={getApp:{client:{fn:({appKey:o})=>r.json$(`/api/apps/${o}`)},key:({appKey:o})=>o},getApps:{client:{fn:()=>r.json$("/api/apps")},key:()=>"apps"},getConfig:{client:{fn:({appKey:o,tag:i})=>r.json$(`/api/apps/${o}/config${i?`?tag=${i}`:""}`)},key:o=>JSON.stringify(o)}};return this.processConfig(n)})}processConfig(e){return e}}var Wp=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})};class IT{constructor(e){this.clientKey=e.clientKey,this.endpoint=e.endpoint,this.clientCtor=e.clientCtor}createHttpClientClient(e){return Wp(this,void 0,void 0,function*(){if(!this.clientKey)throw Error("no http client for service discovery is provided!");return e.createClient(this.clientKey)})}createClient(e){return Wp(this,void 0,void 0,function*(){if(!this.endpoint)throw Error("no endpoint defined!");return new this.clientCtor({http:e,endpoint:this.endpoint})})}}var cu=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})};class kT{constructor(e,r){this._client=e,this._http=r}get environment(){return this._client.environment}resolveService(e){return cu(this,void 0,void 0,function*(){return this._client.resolveService(e)})}createClient(e,r){return cu(this,void 0,void 0,function*(){const n=yield this.resolveService(e);if(!n)throw Error(`Could not load configuration of service [${e}]`);return this._http.createClient(Object.assign(Object.assign({},r),{baseUri:n.uri,defaultScopes:n.defaultScopes}))})}configureClient(e,r){return cu(this,void 0,void 0,function*(){const{key:n,alias:o}=typeof e=="string"?{key:e,alias:e}:e,{uri:i,defaultScopes:a}=yield this.resolveService(n);r.addConfig(Cy(o,{baseUri:i,defaultScopes:a}))})}}var Yp=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})},AT=globalThis&&globalThis.__classPrivateFieldGet||function(t,e,r,n){if(r==="a"&&!n)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?t!==e||!n:!e.has(t))throw new TypeError("Cannot read private member from an object whose class did not declare it");return r==="m"?n:r==="a"?n.call(t):n?n.value:e.get(t)},RT=globalThis&&globalThis.__classPrivateFieldSet||function(t,e,r,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"?t!==e||!o:!e.has(t))throw new TypeError("Cannot write private member to an object whose class did not declare it");return n==="a"?o.call(t,r):o?o.value=r:e.set(t,r),r},ec;class PT{get environment(){return go(Kt.extractQueryValue(AT(this,ec,"f").query(void 0,{cache:{suppressInvalid:!0}})))}constructor({http:e,endpoint:r}){ec.set(this,void 0),this.http=e,this.endpoint=r,RT(this,ec,new Kt({client:{fn:()=>e.fetch$(r,{selector:this.selector.bind(this)}).pipe(yd(n=>console.log("\u{1F525}",n)))},key:()=>"services",expire:5*60*1e3}),"f")}selector(e){return Yp(this,void 0,void 0,function*(){const r=yield e.json(),n=r.services.reduce((o,i)=>Object.assign(o,{[i.key]:{clientId:r.clientId,uri:i.uri,defaultScopes:[r.clientId+"/.default"]}}),{});return Object.assign(Object.assign({},r),{services:n})})}resolveService(e){return Yp(this,void 0,void 0,function*(){try{const{services:r}=yield this.environment;return r[e]}catch(r){throw console.error(r),r}})}}ec=new WeakMap;const NT="serviceDiscovery";var OT=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})};const xT={name:NT,configure:()=>new IT({clientCtor:PT,clientKey:"service_discovery",endpoint:"/_discovery/environments/current"}),initialize:({config:t,requireInstance:e})=>OT(void 0,void 0,void 0,function*(){const r=yield e("http"),n=yield t.createHttpClientClient(r),o=yield t.createClient(n);return new kT(o,r)})};class MT{}class Gy extends Error{constructor(e,r){super(`unsupported version ${e}`,{cause:r}),this.version=e}}const UT=(t,e)=>{var r;const n=(r=Qr[t])!==null&&r!==void 0?r:t;switch(n){case Qr.v2:throw new Gy(t);case Qr.v1:default:{const{id:o}=e,i=new URLSearchParams;return i.append("api-version",n),`/contexts/${o}/?${String(i)}`}}},LT=(t,e,r)=>[UT(t,e),r],DT=(t,e,r="json")=>(n,o)=>t[r](...LT(e,n,o));var HT=["eq","ne","gt","ge","lt","le"],xs=["and","or","not"],FT=["any","all"],$T=["startswith","endswith","contains"],zT=["expand","levels","select","skip","top","count","orderby","filter"],Qp=/\((.*)\)/,Jp=/(?!indexof)\((\w+)\)/,Xp;(function(t){t.sum="sum",t.min="min",t.max="max",t.average="average",t.countdistinct="countdistinct"})(Xp||(Xp={}));var Mr="";function jT(t){var e=t===void 0?{}:t,r=e.select,n=e.search,o=e.skiptoken,i=e.format,a=e.top,s=e.skip,c=e.filter,l=e.transform,u=e.orderBy,h=e.key,d=e.count,f=e.expand,m=e.action,v=e.func,E="",g=[],p={};if(h!=null&&(E+="(".concat(Cr(h,g),")")),(c||typeof d=="object")&&(p.$filter=qa(typeof d=="object"?d:c,g)),l&&(p.$apply=Vy(l)),f&&(p.$expand=tc(f)),u&&(p.$orderby=Kh(u)),d&&(typeof d=="boolean"?p.$count=!0:E+="/$count"),typeof a=="number"&&(p.$top=a),typeof s=="number"&&(p.$skip=s),m&&(E+="/".concat(m)),v){if(typeof v=="string")E+="/".concat(v);else if(typeof v=="object"){var y=Object.keys(v)[0],w=Cr(v[y],g);E+="/".concat(y),w!==""&&(E+="(".concat(w,")"))}}return g.length>0&&Object.assign(p,g.reduce(function(k,P){var M;return Object.assign(k,(M={},M["@".concat(P.name)]=Cr(P.value),M))},{})),VT(E,ho({$select:r,$search:n,$skiptoken:o,$format:i},p))}function lu(t,e,r){return r===void 0&&(r=[]),"".concat(t," eq ").concat(Cr(e,r))}function qa(t,e,r){return t===void 0&&(t={}),e===void 0&&(e=[]),r===void 0&&(r=""),(Array.isArray(t)?t:[t]).reduce(function(i,a){if(a){var s=n(a,e,r);s&&i.push(s)}return i},[]).join(" and ");function n(i,a,s){i===void 0&&(i={}),a===void 0&&(a=[]),s===void 0&&(s="");var c="";if(typeof i=="string")c=i;else if(i&&typeof i=="object"){var l=Object.keys(i).reduce(function(u,h){var d=i[h];if(d===void 0)return u;var f="";if(s?h===Mr?f=s:Jp.test(h)?f=h.replace(Jp,function(p,y){return y.trim()===Mr?"(".concat(s,")"):"(".concat(s,"/").concat(y.trim(),")")}):Qp.test(h)?f=h.replace(Qp,function(p,y){return y.trim()===Mr?"(".concat(s,")"):"(".concat(s,"/").concat(y.trim(),")")}):f="".concat(s,"/").concat(h):f=h,h===Mr&&Array.isArray(d))return u.concat(d.map(function(p){return lu(f,p)}));if(["number","string","boolean"].indexOf(typeof d)!==-1||d instanceof Date||d===null)u.push(lu(f,d,a));else if(Array.isArray(d)){var m=h,v=d.map(function(p){return qa(p,a,s)}).filter(function(p){return p}).map(function(p){return xs.indexOf(m)!==-1?"(".concat(p,")"):p});v.length&&(xs.indexOf(m)!==-1?v.length&&(m==="not"?u.push(Zp(v)):u.push("(".concat(v.join(" ".concat(m," ")),")"))):u.push(v.join(" ".concat(m," "))))}else if(xs.indexOf(f)!==-1){var E=f,v=Object.keys(d).map(function(y){var w;return n((w={},w[y]=d[y],w))});v.length&&(E==="not"?u.push(Zp(v)):u.push("(".concat(v.join(" ".concat(E," ")),")")))}else if(typeof d=="object")if("type"in d)u.push(lu(f,d,a));else{var g=Object.keys(d);g.forEach(function(p){if(d[p]!==void 0)if(HT.indexOf(p)!==-1)u.push("".concat(f," ").concat(p," ").concat(Cr(d[p],a)));else if(xs.indexOf(p)!==-1)Array.isArray(d[p])?u.push(d[p].map(function(P){return"("+n(P,a,f)+")"}).join(" ".concat(p," "))):u.push("("+n(d[p],a,f)+")");else if(FT.indexOf(p)!==-1){var y=o(h.toLowerCase(),d[p],p,f);y&&u.push(y)}else if(p==="has")u.push("".concat(f," ").concat(p," ").concat(Cr(d[p],a)));else if(p==="in"){var w=Array.isArray(d[p])?d[p]:d[p].value.map(function(P){return{type:d[p].type,value:P}});u.push(f+" in ("+w.map(function(P){return Cr(P,a)}).join(",")+")")}else if($T.indexOf(p)!==-1)u.push("".concat(p,"(").concat(f,",").concat(Cr(d[p],a),")"));else{var k=n(d,a,f);k&&u.push(k)}})}else throw new Error("Unexpected value type: ".concat(d));return u},[]);c=l.join(" and ")}return c}function o(i,a,s,c){var l="";if(typeof a=="string"||a instanceof String)l=BT(i,a,s,c);else if(a){var u=Array.isArray(a)?a.reduce(function(d,f){return f.hasOwnProperty(Mr)?(d.hasOwnProperty(Mr)||(d[Mr]=[]),d[Mr].push(f[Mr]),d):ho(ho({},d),f)},{}):a,h=n(u,e,i);l="".concat(c,"/").concat(s,"(").concat(h?"".concat(i,":").concat(h):"",")")}return l}}function BT(t,e,r,n){var o="",i=r=="all"?"ne":"eq";return o="".concat(n,"/").concat(r,"(").concat(t,": ").concat(t," ").concat(i," '").concat(e,"')"),o}function qT(t){return t=t.replace(/%/g,"%25"),t=t.replace(/\+/g,"%2B"),t=t.replace(/\//g,"%2F"),t=t.replace(/\?/g,"%3F"),t=t.replace(/#/g,"%23"),t=t.replace(/&/g,"%26"),t=t.replace(/'/g,"''"),t}function Cr(t,e){if(typeof t=="string")return"'".concat(qT(t),"'");if(t instanceof Date)return t.toISOString();if(typeof t=="number")return t;if(Array.isArray(t))return"[".concat(t.map(function(r){return Cr(r)}).join(","),"]");if(t===null)return t;if(typeof t=="object")switch(t.type){case"raw":case"guid":return t.value;case"duration":return"duration'".concat(t.value,"'");case"binary":return"binary'".concat(t.value,"'");case"alias":return Array.isArray(e)&&e.push(t),"@".concat(t.name);case"json":return escape(JSON.stringify(t.value));case"decimal":return"".concat(t.value,"M");default:return Object.entries(t).filter(function(r){var n=r[1];return n!==void 0}).map(function(r){var n=r[0],o=r[1];return"".concat(n,"=").concat(Cr(o,e))}).join(",")}return t}function tc(t){if(typeof t=="number")return t;if(typeof t=="string")return t.indexOf("/")===-1?t:t.split("/").reverse().reduce(function(r,n,o,i){return o===0?"$expand=".concat(n):o===i.length-1?"".concat(n,"(").concat(r,")"):"$expand=".concat(n,"(").concat(r,")")},"");if(Array.isArray(t))return"".concat(t.map(function(r){return tc(r)}).join(","));if(typeof t=="object"){var e=Object.keys(t);return e.some(function(r){return zT.indexOf(r.toLowerCase())!==-1})?e.map(function(r){var n;switch(r){case"filter":n=qa(t[r]);break;case"orderBy":n=Kh(t[r]);break;case"levels":case"count":case"skip":case"top":n="".concat(t[r]);break;default:n=tc(t[r])}return"$".concat(r.toLowerCase(),"=").concat(n)}).join(";"):e.map(function(r){var n=tc(t[r]);return n?"".concat(r,"(").concat(n,")"):r}).join(",")}return""}function Vy(t){var e=Array.isArray(t)?t:[t],r=e.reduce(function(n,o){var i=o.aggregate,a=o.filter,s=o.groupBy,c=Yv(o,["aggregate","filter","groupBy"]),l=Object.keys(c);if(l.length)throw new Error("Unsupported transform(s): ".concat(l));if(i&&n.push("aggregate(".concat(KT(i),")")),a){var u=qa(a);u&&n.push("filter(".concat(qa(u),")"))}return s&&n.push("groupby(".concat(GT(s),")")),n},[]);return r.join("/")||void 0}function KT(t){var e=Array.isArray(t)?t:[t];return e.map(function(r){return typeof r=="string"?r:Object.keys(r).map(function(n){var o=r[n];if(!o.with)throw new Error("'with' property required for '".concat(n,"'"));if(!o.as)throw new Error("'as' property required for '".concat(n,"'"));return"".concat(n," with ").concat(o.with," as ").concat(o.as)})}).join(",")}function GT(t){if(!t.properties)throw new Error("'properties' property required for groupBy");var e="(".concat(t.properties.join(","),")");return t.transform&&(e+=",".concat(Vy(t.transform))),e}function Kh(t,e){return e===void 0&&(e=""),Array.isArray(t)?t.map(function(r){return Array.isArray(r)&&r.length===2&&["asc","desc"].indexOf(r[1])!==-1?r.join(" "):r}).map(function(r){return"".concat(e).concat(String(r))}).join(","):typeof t=="object"?Object.entries(t).map(function(r){var n=r[0],o=r[1];return Kh(o,"".concat(n,"/"))}).map(function(r){return"".concat(e).concat(r)}).join(","):"".concat(e).concat(String(t))}function VT(t,e){var r=Object.getOwnPropertyNames(e).filter(function(n){return e[n]!==void 0&&e[n]!==""}).map(function(n){return"".concat(n,"=").concat(e[n])});return r.length?"".concat(t,"?").concat(r.join("&")):t}function Zp(t){return"not(".concat(t.join(" and "),")")}const WT=t=>Object.keys(t).reduce((e,r)=>{var n;switch(r){case"type":return!((n=t[r])===null||n===void 0)&&n.length?Object.assign(Object.assign({},e),{[r]:{in:t[r]}}):e;default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),YT=t=>Object.keys(t).reduce((e,r)=>{switch(r){case"filter":return Object.assign(Object.assign({},e),{[r]:WT(t.filter)});default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),QT=t=>typeof t=="string"?t:jT(YT(t)),JT=(t,e)=>{var r;const n=(r=Qr[t])!==null&&r!==void 0?r:t;switch(n){case Qr.v2:throw new Gy(t);case Qr.v1:default:{const{query:o,includeDeleted:i}=e,a=new URLSearchParams(QT(o));return a.append("api-version",n),i&&a.append("includeDeleted","true"),`/contexts/?${String(a)}`}}},XT=(t,e,r)=>[JT(t,e),r],ZT=(t,e,r="json")=>(n,o)=>t[r](...XT(e,n,o));class e1{get Version(){return Qr}constructor(e,r){this._client=e,this._method=r}get(e,...r){return DT(this._client,e,this._method)(...r)}query(e,...r){return ZT(this._client,e,this._method)(...r)}}var Qr;(function(t){t.v1="1.0",t.v2="2.0"})(Qr||(Qr={}));const t1=(t,e)=>{switch(t){case"v1":{const{id:r}=e,n=new URLSearchParams;return n.append("api-version","1.0"),`/bookmarks/${r}/?${String(n)}`}default:{const{id:r}=e,n=new URLSearchParams;return n.append("api-version",t),`/bookmarks/${r}/?${String(n)}`}}},r1=(t,e,r)=>{const n=t1(t,e),o=Object.assign({},{method:"Delete"},r);return[n,o]},n1=(t,e,r="json")=>(n,o)=>t[r](...r1(e,n,o)),o1=n1,i1=(t,e)=>{switch(t){case"v1":{const{id:r}=e,n=new URLSearchParams;return n.append("api-version","1.0"),`/bookmarks/${r}/?${String(n)}`}default:{const{id:r}=e,n=new URLSearchParams;return n.append("api-version",t),`/bookmarks/${r}/?${String(n)}`}}},a1=(t,e,r)=>[i1(t,e),r],s1=(t,e,r="json")=>(n,o)=>t[r](...a1(e,n,o)),c1=s1,l1=(t,e)=>{switch(t){case"v1":{const r=new URLSearchParams;return r.append("api-version","1.0"),`/bookmarks?${String(r)}`}default:{const r=new URLSearchParams;return r.append("api-version",t),`/bookmarks?${String(r)}`}}},u1=(t,e,r)=>{const n=l1(t),o=new Headers;o.append("content-type","application/json");const i=Object.assign({},{method:"post",body:JSON.stringify(e),headers:o},r);return[n,i]},d1=(t,e,r="json")=>(n,o)=>t[r](...u1(e,n,o)),h1=d1;class f1{constructor(e,r){this._client=e,this._method=r}get(e,...r){return c1(this._client,e,this._method)(...r)}post(e,...r){return h1(this._client,e,this._method)(...r)}delete(e,...r){return o1(this._client,e,this._method)(...r)}}const p1=f1;var eg=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})};class g1{constructor({createClient:e}){this._createClientFn=e}createBookmarksClient(e){return eg(this,void 0,void 0,function*(){const r=yield this._createClientFn("bookmarks");return new p1(r,e)})}createContextClient(e){return eg(this,void 0,void 0,function*(){const r=yield this._createClientFn("context");return new e1(r,e)})}}var Wy=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})};const m1="services",v1=(t,e)=>r=>Wy(void 0,void 0,void 0,function*(){if(t.hasClient(r))return t.createClient(r);if(e)return e.createClient(r);throw Error(`failed to create http client for service ${r}`)}),y1={name:m1,configure:()=>new MT,initialize:({ref:t,config:e,requireInstance:r,hasModule:n})=>Wy(void 0,void 0,void 0,function*(){if(!e.createClient){const o=yield r("http"),i=n("serviceDiscovery")?yield r("serviceDiscovery"):t==null?void 0:t.serviceDiscovery;e.createClient=v1(o,i)}if(!e.createClient)throw Error("missing configuration for creating API client");return new g1(e)})},_1=y1;class w1 extends sC{constructor(){super([pC,Dy,$h,xT,_1,TT,vT]),this.logger=new Wv("FrameworkConfigurator")}configureHttp(...e){this.addConfig(bC(...e))}configureHttpClient(...e){this.addConfig(Cy(...e))}configureMsal(...e){this.addConfig(HS(...e))}configureServiceDiscovery(e){this.configureHttpClient("service_discovery",e.client)}}var E1=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})};const C1=(t,e)=>E1(void 0,void 0,void 0,function*(){const r=yield t.initialize(e),n={modules:r};return window.Fusion=n,r.event.dispatchEvent("onFrameworkLoaded",{detail:n}),n});var _l={exports:{}},wl={};/**
|
|
62
|
+
* @license React
|
|
63
|
+
* react-jsx-runtime.production.min.js
|
|
64
|
+
*
|
|
65
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
66
|
+
*
|
|
67
|
+
* This source code is licensed under the MIT license found in the
|
|
68
|
+
* LICENSE file in the root directory of this source tree.
|
|
69
|
+
*/var S1=j.exports,T1=Symbol.for("react.element"),b1=Symbol.for("react.fragment"),I1=Object.prototype.hasOwnProperty,k1=S1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,A1={key:!0,ref:!0,__self:!0,__source:!0};function Yy(t,e,r){var n,o={},i=null,a=null;r!==void 0&&(i=""+r),e.key!==void 0&&(i=""+e.key),e.ref!==void 0&&(a=e.ref);for(n in e)I1.call(e,n)&&!A1.hasOwnProperty(n)&&(o[n]=e[n]);if(t&&t.defaultProps)for(n in e=t.defaultProps,e)o[n]===void 0&&(o[n]=e[n]);return{$$typeof:T1,type:t,key:i,ref:a,props:o,_owner:k1.current}}wl.Fragment=b1;wl.jsx=Yy;wl.jsxs=Yy;(function(t){t.exports=wl})(_l);const Qy=_l.exports.Fragment,W=_l.exports.jsx,no=_l.exports.jsxs,Jy=j.exports.createContext(null),R1=Jy.Provider;var P1=globalThis&&globalThis.__awaiter||function(t,e,r,n){function o(i){return i instanceof r?i:new r(function(a){a(i)})}return new(r||(r=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(t,e||[])).next())})};const N1=t=>j.exports.lazy(()=>P1(void 0,void 0,void 0,function*(){const e=new w1;yield t(e);const r=yield C1(e);return{default:({children:n})=>W(R1,Object.assign({value:r},{children:n}))}})),O1=()=>{let t=j.exports.useContext(Jy);return t||console.warn("could not locate fusion in context!"),t!=null||(t=window.Fusion),t||console.error("Could not load framework, might not be initiated?"),t},x1=t=>{const e=j.exports.useMemo(()=>N1(t.configure),[t.configure]);return W(j.exports.Suspense,Object.assign({fallback:t.fallback},{children:W(e,{children:t.children})}))};function Ud(){return Ud=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Ud.apply(this,arguments)}var M1=typeof Symbol=="function"&&Symbol.for;const U1=M1?Symbol.for("mui.nested"):"__THEME_NESTED__";var L1=Qa.createContext(null);const Xy=L1;function D1(){var t=Qa.useContext(Xy);return t}function H1(t,e){if(typeof e=="function"){var r=e(t);return r}return Ud({},t,e)}function F1(t){var e=t.children,r=t.theme,n=D1(),o=Qa.useMemo(function(){var i=n===null?r:H1(n,r);return i!=null&&(i[U1]=n!==null),i},[r,n]);return W(Xy.Provider,{value:o,children:e})}const $1={jumbo__base:"88px",default__base:"48px",default__input:"56px"},z1={text:{static_icons__default:{hex:"#3d3d3d",hsla:"hsla(0, 0%, 23.9%, 1)",rgba:"rgba(61, 61, 61, 1)"},static_icons__secondary:{hex:"#565656",hsla:"hsla(0, 0%, 33.7%, 1)",rgba:"rgba(86, 86, 86, 1)"},static_icons__tertiary:{hex:"#6f6f6f",hsla:"hsla(0, 0%, 43.5%, 1)",rgba:"rgba(111, 111, 111, 1)"},static_icons__primary_white:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"}},ui:{background__default:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},background__semitransparent:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"rgba(255, 255, 255, 0.2)"},background__light:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"rgba(247, 247, 247, 1)"},background__scrim:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.4)",rgba:"rgba(0, 0, 0, 0.4)"},background__overlay:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.8)",rgba:"rgba(0, 0, 0, 0.8)"},background__medium:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"rgba(220, 220, 220, 1)"},background__info:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},background__warning:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"rgba(255, 231, 214, 1)"},background__danger:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"rgba(255, 193, 193, 1)"}},infographic:{substitute__purple_berry:{hex:"#8c1159",hsla:"hsla(325, 78.3%, 30.8%, 1)",rgba:"rgba(140, 17, 89, 1)"},substitute__pink_rose:{hex:"#e24973",hsla:"hsla(344, 72.5%, 58.6%, 1)",rgba:"rgba(226, 73, 115, 1)"},substitute__pink_salmon:{hex:"#ff92a8",hsla:"hsla(348, 100%, 78.6%, 1)",rgba:"rgba(255, 146, 168, 1)"},substitute__green_cucumber:{hex:"#005f57",hsla:"hsla(175, 100%, 18.6%, 1)",rgba:"rgba(0, 95, 87, 1)"},substitute__green_succulent:{hex:"#00977b",hsla:"hsla(169, 100%, 29.6%, 1)",rgba:"rgba(0, 151, 123, 1)"},substitute__green_mint:{hex:"#40d38f",hsla:"hsla(152, 62.6%, 53.9%, 1)",rgba:"rgba(64, 211, 143, 1)"},substitute__blue_ocean:{hex:"#004088",hsla:"hsla(212, 100%, 26.7%, 1)",rgba:"rgba(0, 64, 136, 1)"},substitute__blue_overcast:{hex:"#0084c4",hsla:"hsla(200, 100%, 38.4%, 1)",rgba:"rgba(0, 132, 196, 1)"},substitute__blue_sky:{hex:"#52c0ff",hsla:"hsla(202, 100%, 66.1%, 1)",rgba:"rgba(82, 192, 255, 1)"},primary__moss_green_100:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"rgba(0, 112, 121, 1)"},primary__moss_green_55:{hex:"#73b1b5",hsla:"hsla(184, 30.8%, 58%, 1)",rgba:"rgba(115, 177, 181, 1)"},primary__moss_green_34:{hex:"#a8ced1",hsla:"hsla(184, 30.8%, 73.9%, 1)",rgba:"rgba(168, 206, 209, 1)"},primary__moss_green_21:{hex:"#c9e0e2",hsla:"hsla(185, 30.1%, 83.7%, 1)",rgba:"rgba(201, 224, 226, 1)"},primary__moss_green_13:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"rgba(222, 237, 238, 1)"},primary__energy_red_100:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"rgba(235, 0, 55, 1)"},primary__energy_red_55:{hex:"#ff7d98",hsla:"hsla(348, 100%, 74.5%, 1)",rgba:"rgba(255, 125, 152, 1)"},primary__energy_red_34:{hex:"#ffaebf",hsla:"hsla(347, 100%, 84.1%, 1)",rgba:"rgba(255, 174, 191, 1)"},primary__energy_red_21:{hex:"#ffcdd7",hsla:"hsla(348, 100%, 90.2%, 1)",rgba:"rgba(255, 205, 215, 1)"},primary__energy_red_13:{hex:"#ffe0e7",hsla:"hsla(346, 100%, 93.9%, 1)",rgba:"rgba(255, 224, 231, 1)"},primary__weathered_red:{hex:"#7d0023",hsla:"hsla(343, 100%, 24.5%, 1)",rgba:"rgba(125, 0, 35, 1)"},primary__slate_blue:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"rgba(36, 55, 70, 1)"},primary__spruce_wood:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"rgba(255, 231, 214, 1)"},primary__mist_blue:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},primary__lichen_green:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"}},logo:{fill_positive:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"rgba(235, 0, 55, 1)"},fill_negative:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"}},interactive:{primary__selected_highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"},primary__selected_hover:{hex:"#c3f3d2",hsla:"hsla(139, 66.7%, 85.9%, 1)",rgba:"rgba(195, 243, 210, 1)"},primary__resting:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"rgba(0, 112, 121, 1)"},primary__hover:{hex:"#004f55",hsla:"hsla(184, 100%, 16.7%, 1)",rgba:"rgba(0, 79, 85, 1)"},primary__hover_alt:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"rgba(222, 237, 238, 1)"},secondary__highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},secondary__resting:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"rgba(36, 55, 70, 1)"},secondary__link_hover:{hex:"#17242f",hsla:"hsla(208, 34.3%, 13.7%, 1)",rgba:"rgba(23, 36, 47, 1)"},danger__highlight:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"rgba(255, 193, 193, 1)"},danger__resting:{hex:"#eb0000",hsla:"hsla(0, 100%, 46.1%, 1)",rgba:"rgba(235, 0, 0, 1)"},danger__hover:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"rgba(179, 13, 47, 1)"},danger__text:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"rgba(179, 13, 47, 1)"},warning__highlight:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"rgba(255, 231, 214, 1)"},warning__resting:{hex:"#ff9200",hsla:"hsla(34, 100%, 50%, 1)",rgba:"rgba(255, 146, 0, 1)"},warning__hover:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"rgba(173, 98, 0, 1)"},warning__text:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"rgba(173, 98, 0, 1)"},success__highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"},success__resting:{hex:"#4bb748",hsla:"hsla(118, 43.5%, 50%, 1)",rgba:"rgba(75, 183, 72, 1)"},success__hover:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"rgba(53, 129, 50, 1)"},success__text:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"rgba(53, 129, 50, 1)"},table__cell__fill_resting:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},table__cell__fill_hover:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"rgba(234, 234, 234, 1)"},table__cell__fill_activated:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"},table__header__fill_activated:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"rgba(234, 234, 234, 1)"},table__header__fill_hover:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"rgba(220, 220, 220, 1)"},table__header__fill_resting:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"rgba(247, 247, 247, 1)"},disabled__text:{hex:"#bebebe",hsla:"hsla(0, 0%, 74.5%, 1)",rgba:"rgba(190, 190, 190, 1)"},text_highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},focus:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"rgba(0, 112, 121, 1)"},disabled__border:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"rgba(220, 220, 220, 1)"},disabled__fill:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"rgba(234, 234, 234, 1)"},link_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},icon_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},link_in_snackbars:{hex:"#97cace",hsla:"hsla(184, 35.9%, 70%, 1)",rgba:"rgba(151, 202, 206, 1)"},pressed_overlay_dark:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.2)",rgba:"rgba(0, 0, 0, 0.2)"},pressed_overlay_light:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"rgba(255, 255, 255, 0.2)"}}},j1={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)"},B1={pressed_dark_overlay:{blendMode:"darken",pressedColor:"rgba(0, 0, 0, 0.2)"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"1px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 0.2)"}},q1={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:"48px",minWidth:"48px",borderRadius:"100px"},field:{minHeight:"56px",minWidth:"294px",borderRadius:""},straight:{minHeight:"36px",minWidth:"112px",borderRadius:""},caret:{minHeight:"8px",minWidth:"6px",borderRadius:""}},K1={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"}},G1={heading:{h1_bold:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:700,lineHeight:"1.500em",textAlign:"left"},h1:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:400,lineHeight:"1.500em",textAlign:"left"},h2:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.750rem",fontWeight:400,lineHeight:"1.429em",textAlign:"left"},h3:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.500rem",fontWeight:400,lineHeight:"1.667em",textAlign:"left"},h4:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.250rem",fontWeight:400,lineHeight:"1.600em",textAlign:"left"},h5:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"},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:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},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:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},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:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},button:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb_hover:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"}},input:{label:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},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:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.063em",lineHeight:"1.500em",textAlign:"left"},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:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},caption:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},meta:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,lineHeight:"1.600em",textAlign:"left"},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:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},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:"rgba(0, 112, 121, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textDecoration:"underline",textAlign:"left"},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:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:400,lineHeight:"1.333em",textAlign:"left"},body_long:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textAlign:"left"},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:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"},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:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"}},table:{cell_header:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"},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:"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:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"}},ui:{tooltip:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},snackbar:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},accordion_header:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,lineHeight:"1.500em",textAlign:"left"},chip__badge:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},chart:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"}}},Et={clickbounds:$1,colors:z1,elevation:j1,interactions:B1,shape:q1,spacings:K1,typography:G1},V1=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();class fe{constructor(e,r){this.name=e,this.value=r}static makeCssVar(e,r){return`--fusion-${e}__${r}`}static makeCss(e){return Object.keys(e).map(r=>`${V1(r)}: ${e[r]}`).join(";")}static makeVariable({attribute:e,value:r}){return`var(${[e,r].filter(n=>!!n).join(",")})`}static extractVariables(e){return Object.values(e).reduce((r,n)=>r.concat(n.variables),[])}get style(){const{value:e,attributes:r}=this;return{...e,...Object.keys(r).reduce((n,o)=>Object.assign(n,{[o]:fe.makeVariable(r[o])}),{})}}get css(){const{attributes:e,style:r}=this;return fe.makeCss({...r,...Object.keys(e).reduce((n,o)=>Object.assign(n,{[o]:fe.makeVariable(e[o])}),{})})}get variables(){return this.getVariables()}getAttributes(e){return Object.values(this.attributes).filter(r=>e||!r.base)}getVariable(e){return fe.makeVariable(this.attributes[e])}getVariables(e){return this.getAttributes(e).map(({attribute:r,value:n})=>[r,n].join(":"))}toString(){return this.css}}class Zy extends fe{get attributes(){const{name:e,value:{rgba:r}}=this;return{color:{attribute:fe.makeCssVar("color",e),value:r}}}get style(){return{color:this.value.rgba}}}const Ki=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new Zy(`${e}-${n}`,t[n])}),{}),e0={infographic:Ki(Et.colors.infographic,"infographic"),interactive:Ki(Et.colors.interactive,"interactive"),logo:Ki(Et.colors.logo,"logo"),text:Ki(Et.colors.text,"text"),ui:Ki(Et.colors.ui,"ui")},W1=Object.values(e0).reduce((t,e)=>t.concat(Zy.extractVariables(e)),[]);class El extends fe{get attributes(){const{name:e,value:r}=this;return{shadow:{attribute:El.makeCssVar("elevation",e),value:r}}}get style(){return{boxShadow:fe.makeVariable(this.attributes.shadow)}}}const Y1=t=>new El(t,Et.elevation[t]),Q1=Object.keys(Et.elevation),t0=Q1.reduce((t,e)=>Object.assign(t,{[e]:Y1(e)}),{}),J1=El.extractVariables(t0);class r0 extends fe{get attributes(){const{name:e,value:r}=this;return{padding:{attribute:fe.makeCssVar("spacing",e),value:r}}}get style(){return{padding:this.value}}}const X1=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new r0(`${e}-${n}`,t[n])}),{}),n0={comfortable:X1(Et.spacings.comfortable,"comfortable")},Z1=Object.values(n0).reduce((t,e)=>t.concat(r0.extractVariables(e)),[]);class eb extends fe{get attributes(){const{name:e,value:r}=this;return{color:{attribute:fe.makeCssVar("typography",`${e}__color`),value:fe.makeVariable({attribute:fe.makeCssVar("typography","base-color"),value:r.color}),base:!0},fontFamily:{attribute:fe.makeCssVar("typography",`${e}-fontFamily`),value:r.fontFamily},fontSize:{attribute:fe.makeCssVar("typography",`${e}-fontSize`),value:r.fontSize},fontWeight:{attribute:fe.makeCssVar("typography",`${e}-fontWeight`),value:r.fontWeight},lineHeight:{attribute:fe.makeCssVar("typography",`${e}-lineHeight`),value:r.lineHeight},textAlign:{attribute:fe.makeCssVar("typography",`${e}-textAlign`),value:r.textAlign},letterSpacing:{attribute:fe.makeCssVar("typography",`${e}-letterSpacing`),value:r.letterSpacing},fontStyle:{attribute:fe.makeCssVar("typography",`${e}-fontStyle`),value:r.fontStyle},textTransform:{attribute:fe.makeCssVar("typography",`${e}-textTransform`),value:r.textTransform},textDecoration:{attribute:fe.makeCssVar("typography",`${e}-textDecoration`),value:r.textDecoration},fontFeature:{attribute:fe.makeCssVar("typography",`${e}-fontFeature`),value:r.fontFeature}}}}const ko=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new eb(`${e}-${n}`,t[n])}),{}),o0={heading:ko(Et.typography.heading,"heading"),input:ko(Et.typography.input,"input"),navigation:ko(Et.typography.navigation,"navigation"),paragraph:ko(Et.typography.paragraph,"paragraph"),table:ko(Et.typography.table,"table"),ui:ko(Et.typography.ui,"ui")},tg={attribute:fe.makeCssVar("typography","base-color"),value:Et.colors.text.static_icons__default.rgba},tb=[...Object.values(o0).reduce((t,e)=>t.concat(fe.extractVariables(e)),[]),[tg.attribute,tg.value].join(":")],Ke={colors:e0,elevation:t0,spacing:n0,typography:o0};[...W1,...J1,...Z1,...tb];const rb=(t,e)=>(window.customElements.define(t,e),e),nb=(t,e)=>{const{kind:r,elements:n}=e;return{kind:r,elements:n,finisher(o){window.customElements.define(t,o)}}},Cl=t=>e=>{if(window.customElements.get(t))console.warn(`${t} has been defined twice`);else return typeof e=="function"?rb(t,e):nb(t,e)};/**
|
|
70
|
+
* @license
|
|
71
|
+
* Copyright 2019 Google LLC
|
|
72
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
73
|
+
*/const rc=window,Gh=rc.ShadowRoot&&(rc.ShadyCSS===void 0||rc.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Vh=Symbol(),rg=new WeakMap;class i0{constructor(e,r,n){if(this._$cssResult$=!0,n!==Vh)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=e,this.t=r}get styleSheet(){let e=this.o;const r=this.t;if(Gh&&e===void 0){const n=r!==void 0&&r.length===1;n&&(e=rg.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&rg.set(r,e))}return e}toString(){return this.cssText}}const et=t=>new i0(typeof t=="string"?t:t+"",void 0,Vh),sn=(t,...e)=>{const r=t.length===1?t[0]:e.reduce((n,o,i)=>n+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[i+1],t[0]);return new i0(r,t,Vh)},ob=(t,e)=>{Gh?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{const n=document.createElement("style"),o=rc.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,t.appendChild(n)})},ng=Gh?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return et(r)})(t):t;/**
|
|
74
|
+
* @license
|
|
75
|
+
* Copyright 2017 Google LLC
|
|
76
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
77
|
+
*/var uu;const Qc=window,og=Qc.trustedTypes,ib=og?og.emptyScript:"",ig=Qc.reactiveElementPolyfillSupport,Ld={toAttribute(t,e){switch(e){case Boolean:t=t?ib:null;break;case Object:case Array:t=t==null?t:JSON.stringify(t)}return t},fromAttribute(t,e){let r=t;switch(e){case Boolean:r=t!==null;break;case Number:r=t===null?null:Number(t);break;case Object:case Array:try{r=JSON.parse(t)}catch{r=null}}return r}},a0=(t,e)=>e!==t&&(e==e||t==t),du={attribute:!0,type:String,converter:Ld,reflect:!1,hasChanged:a0};class Mo extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var r;this.finalize(),((r=this.h)!==null&&r!==void 0?r:this.h=[]).push(e)}static get observedAttributes(){this.finalize();const e=[];return this.elementProperties.forEach((r,n)=>{const o=this._$Ep(n,r);o!==void 0&&(this._$Ev.set(o,n),e.push(o))}),e}static createProperty(e,r=du){if(r.state&&(r.attribute=!1),this.finalize(),this.elementProperties.set(e,r),!r.noAccessor&&!this.prototype.hasOwnProperty(e)){const n=typeof e=="symbol"?Symbol():"__"+e,o=this.getPropertyDescriptor(e,n,r);o!==void 0&&Object.defineProperty(this.prototype,e,o)}}static getPropertyDescriptor(e,r,n){return{get(){return this[r]},set(o){const i=this[e];this[r]=o,this.requestUpdate(e,i,n)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){return this.elementProperties.get(e)||du}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),e.h!==void 0&&(this.h=[...e.h]),this.elementProperties=new Map(e.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const r=this.properties,n=[...Object.getOwnPropertyNames(r),...Object.getOwnPropertySymbols(r)];for(const o of n)this.createProperty(o,r[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(e){const r=[];if(Array.isArray(e)){const n=new Set(e.flat(1/0).reverse());for(const o of n)r.unshift(ng(o))}else e!==void 0&&r.push(ng(e));return r}static _$Ep(e,r){const n=r.attribute;return n===!1?void 0:typeof n=="string"?n:typeof e=="string"?e.toLowerCase():void 0}u(){var e;this._$E_=new Promise(r=>this.enableUpdating=r),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(e=this.constructor.h)===null||e===void 0||e.forEach(r=>r(this))}addController(e){var r,n;((r=this._$ES)!==null&&r!==void 0?r:this._$ES=[]).push(e),this.renderRoot!==void 0&&this.isConnected&&((n=e.hostConnected)===null||n===void 0||n.call(e))}removeController(e){var r;(r=this._$ES)===null||r===void 0||r.splice(this._$ES.indexOf(e)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach((e,r)=>{this.hasOwnProperty(r)&&(this._$Ei.set(r,this[r]),delete this[r])})}createRenderRoot(){var e;const r=(e=this.shadowRoot)!==null&&e!==void 0?e:this.attachShadow(this.constructor.shadowRootOptions);return ob(r,this.constructor.elementStyles),r}connectedCallback(){var e;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$ES)===null||e===void 0||e.forEach(r=>{var n;return(n=r.hostConnected)===null||n===void 0?void 0:n.call(r)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$ES)===null||e===void 0||e.forEach(r=>{var n;return(n=r.hostDisconnected)===null||n===void 0?void 0:n.call(r)})}attributeChangedCallback(e,r,n){this._$AK(e,n)}_$EO(e,r,n=du){var o;const i=this.constructor._$Ep(e,n);if(i!==void 0&&n.reflect===!0){const a=(((o=n.converter)===null||o===void 0?void 0:o.toAttribute)!==void 0?n.converter:Ld).toAttribute(r,n.type);this._$El=e,a==null?this.removeAttribute(i):this.setAttribute(i,a),this._$El=null}}_$AK(e,r){var n;const o=this.constructor,i=o._$Ev.get(e);if(i!==void 0&&this._$El!==i){const a=o.getPropertyOptions(i),s=typeof a.converter=="function"?{fromAttribute:a.converter}:((n=a.converter)===null||n===void 0?void 0:n.fromAttribute)!==void 0?a.converter:Ld;this._$El=i,this[i]=s.fromAttribute(r,a.type),this._$El=null}}requestUpdate(e,r,n){let o=!0;e!==void 0&&(((n=n||this.constructor.getPropertyOptions(e)).hasChanged||a0)(this[e],r)?(this._$AL.has(e)||this._$AL.set(e,r),n.reflect===!0&&this._$El!==e&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(e,n))):o=!1),!this.isUpdatePending&&o&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(r){Promise.reject(r)}const e=this.scheduleUpdate();return e!=null&&await e,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((o,i)=>this[i]=o),this._$Ei=void 0);let r=!1;const n=this._$AL;try{r=this.shouldUpdate(n),r?(this.willUpdate(n),(e=this._$ES)===null||e===void 0||e.forEach(o=>{var i;return(i=o.hostUpdate)===null||i===void 0?void 0:i.call(o)}),this.update(n)):this._$Ek()}catch(o){throw r=!1,this._$Ek(),o}r&&this._$AE(n)}willUpdate(e){}_$AE(e){var r;(r=this._$ES)===null||r===void 0||r.forEach(n=>{var o;return(o=n.hostUpdated)===null||o===void 0?void 0:o.call(n)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(e){return!0}update(e){this._$EC!==void 0&&(this._$EC.forEach((r,n)=>this._$EO(n,this[n],r)),this._$EC=void 0),this._$Ek()}updated(e){}firstUpdated(e){}}Mo.finalized=!0,Mo.elementProperties=new Map,Mo.elementStyles=[],Mo.shadowRootOptions={mode:"open"},ig==null||ig({ReactiveElement:Mo}),((uu=Qc.reactiveElementVersions)!==null&&uu!==void 0?uu:Qc.reactiveElementVersions=[]).push("1.4.2");/**
|
|
78
|
+
* @license
|
|
79
|
+
* Copyright 2017 Google LLC
|
|
80
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
81
|
+
*/var hu;const Jc=window,wi=Jc.trustedTypes,ag=wi?wi.createPolicy("lit-html",{createHTML:t=>t}):void 0,_n=`lit$${(Math.random()+"").slice(9)}$`,s0="?"+_n,ab=`<${s0}>`,Ei=document,Ka=(t="")=>Ei.createComment(t),Ga=t=>t===null||typeof t!="object"&&typeof t!="function",c0=Array.isArray,sb=t=>c0(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Gi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,sg=/-->/g,cg=/>/g,zn=RegExp(`>|[
|
|
82
|
+
\f\r](?:([^\\s"'>=/]+)([
|
|
83
|
+
\f\r]*=[
|
|
84
|
+
\f\r]*(?:[^
|
|
85
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),lg=/'/g,ug=/"/g,l0=/^(?:script|style|textarea|title)$/i,u0=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),d0=u0(1),Wh=u0(2),Ci=Symbol.for("lit-noChange"),Ge=Symbol.for("lit-nothing"),dg=new WeakMap,ci=Ei.createTreeWalker(Ei,129,null,!1),cb=(t,e)=>{const r=t.length-1,n=[];let o,i=e===2?"<svg>":"",a=Gi;for(let c=0;c<r;c++){const l=t[c];let u,h,d=-1,f=0;for(;f<l.length&&(a.lastIndex=f,h=a.exec(l),h!==null);)f=a.lastIndex,a===Gi?h[1]==="!--"?a=sg:h[1]!==void 0?a=cg:h[2]!==void 0?(l0.test(h[2])&&(o=RegExp("</"+h[2],"g")),a=zn):h[3]!==void 0&&(a=zn):a===zn?h[0]===">"?(a=o!=null?o:Gi,d=-1):h[1]===void 0?d=-2:(d=a.lastIndex-h[2].length,u=h[1],a=h[3]===void 0?zn:h[3]==='"'?ug:lg):a===ug||a===lg?a=zn:a===sg||a===cg?a=Gi:(a=zn,o=void 0);const m=a===zn&&t[c+1].startsWith("/>")?" ":"";i+=a===Gi?l+ab:d>=0?(n.push(u),l.slice(0,d)+"$lit$"+l.slice(d)+_n+m):l+_n+(d===-2?(n.push(void 0),c):m)}const s=i+(t[r]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[ag!==void 0?ag.createHTML(s):s,n]};class Va{constructor({strings:e,_$litType$:r},n){let o;this.parts=[];let i=0,a=0;const s=e.length-1,c=this.parts,[l,u]=cb(e,r);if(this.el=Va.createElement(l,n),ci.currentNode=this.el.content,r===2){const h=this.el.content,d=h.firstChild;d.remove(),h.append(...d.childNodes)}for(;(o=ci.nextNode())!==null&&c.length<s;){if(o.nodeType===1){if(o.hasAttributes()){const h=[];for(const d of o.getAttributeNames())if(d.endsWith("$lit$")||d.startsWith(_n)){const f=u[a++];if(h.push(d),f!==void 0){const m=o.getAttribute(f.toLowerCase()+"$lit$").split(_n),v=/([.?@])?(.*)/.exec(f);c.push({type:1,index:i,name:v[2],strings:m,ctor:v[1]==="."?ub:v[1]==="?"?hb:v[1]==="@"?fb:Sl})}else c.push({type:6,index:i})}for(const d of h)o.removeAttribute(d)}if(l0.test(o.tagName)){const h=o.textContent.split(_n),d=h.length-1;if(d>0){o.textContent=wi?wi.emptyScript:"";for(let f=0;f<d;f++)o.append(h[f],Ka()),ci.nextNode(),c.push({type:2,index:++i});o.append(h[d],Ka())}}}else if(o.nodeType===8)if(o.data===s0)c.push({type:2,index:i});else{let h=-1;for(;(h=o.data.indexOf(_n,h+1))!==-1;)c.push({type:7,index:i}),h+=_n.length-1}i++}}static createElement(e,r){const n=Ei.createElement("template");return n.innerHTML=e,n}}function Si(t,e,r=t,n){var o,i,a,s;if(e===Ci)return e;let c=n!==void 0?(o=r._$Co)===null||o===void 0?void 0:o[n]:r._$Cl;const l=Ga(e)?void 0:e._$litDirective$;return(c==null?void 0:c.constructor)!==l&&((i=c==null?void 0:c._$AO)===null||i===void 0||i.call(c,!1),l===void 0?c=void 0:(c=new l(t),c._$AT(t,r,n)),n!==void 0?((a=(s=r)._$Co)!==null&&a!==void 0?a:s._$Co=[])[n]=c:r._$Cl=c),c!==void 0&&(e=Si(t,c._$AS(t,e.values),c,n)),e}class lb{constructor(e,r){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var r;const{el:{content:n},parts:o}=this._$AD,i=((r=e==null?void 0:e.creationScope)!==null&&r!==void 0?r:Ei).importNode(n,!0);ci.currentNode=i;let a=ci.nextNode(),s=0,c=0,l=o[0];for(;l!==void 0;){if(s===l.index){let u;l.type===2?u=new rs(a,a.nextSibling,this,e):l.type===1?u=new l.ctor(a,l.name,l.strings,this,e):l.type===6&&(u=new pb(a,this,e)),this.u.push(u),l=o[++c]}s!==(l==null?void 0:l.index)&&(a=ci.nextNode(),s++)}return i}p(e){let r=0;for(const n of this.u)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}}class rs{constructor(e,r,n,o){var i;this.type=2,this._$AH=Ge,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=o,this._$Cm=(i=o==null?void 0:o.isConnected)===null||i===void 0||i}get _$AU(){var e,r;return(r=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&r!==void 0?r:this._$Cm}get parentNode(){let e=this._$AA.parentNode;const r=this._$AM;return r!==void 0&&e.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=Si(this,e,r),Ga(e)?e===Ge||e==null||e===""?(this._$AH!==Ge&&this._$AR(),this._$AH=Ge):e!==this._$AH&&e!==Ci&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):sb(e)?this.k(e):this.g(e)}O(e,r=this._$AB){return this._$AA.parentNode.insertBefore(e,r)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}g(e){this._$AH!==Ge&&Ga(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ei.createTextNode(e)),this._$AH=e}$(e){var r;const{values:n,_$litType$:o}=e,i=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Va.createElement(o.h,this.options)),o);if(((r=this._$AH)===null||r===void 0?void 0:r._$AD)===i)this._$AH.p(n);else{const a=new lb(i,this),s=a.v(this.options);a.p(n),this.T(s),this._$AH=a}}_$AC(e){let r=dg.get(e.strings);return r===void 0&&dg.set(e.strings,r=new Va(e)),r}k(e){c0(this._$AH)||(this._$AH=[],this._$AR());const r=this._$AH;let n,o=0;for(const i of e)o===r.length?r.push(n=new rs(this.O(Ka()),this.O(Ka()),this,this.options)):n=r[o],n._$AI(i),o++;o<r.length&&(this._$AR(n&&n._$AB.nextSibling,o),r.length=o)}_$AR(e=this._$AA.nextSibling,r){var n;for((n=this._$AP)===null||n===void 0||n.call(this,!1,!0,r);e&&e!==this._$AB;){const o=e.nextSibling;e.remove(),e=o}}setConnected(e){var r;this._$AM===void 0&&(this._$Cm=e,(r=this._$AP)===null||r===void 0||r.call(this,e))}}class Sl{constructor(e,r,n,o,i){this.type=1,this._$AH=Ge,this._$AN=void 0,this.element=e,this.name=r,this._$AM=o,this.options=i,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=Ge}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,r=this,n,o){const i=this.strings;let a=!1;if(i===void 0)e=Si(this,e,r,0),a=!Ga(e)||e!==this._$AH&&e!==Ci,a&&(this._$AH=e);else{const s=e;let c,l;for(e=i[0],c=0;c<i.length-1;c++)l=Si(this,s[n+c],r,c),l===Ci&&(l=this._$AH[c]),a||(a=!Ga(l)||l!==this._$AH[c]),l===Ge?e=Ge:e!==Ge&&(e+=(l!=null?l:"")+i[c+1]),this._$AH[c]=l}a&&!o&&this.j(e)}j(e){e===Ge?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class ub extends Sl{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Ge?void 0:e}}const db=wi?wi.emptyScript:"";class hb extends Sl{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Ge?this.element.setAttribute(this.name,db):this.element.removeAttribute(this.name)}}class fb extends Sl{constructor(e,r,n,o,i){super(e,r,n,o,i),this.type=5}_$AI(e,r=this){var n;if((e=(n=Si(this,e,r,0))!==null&&n!==void 0?n:Ge)===Ci)return;const o=this._$AH,i=e===Ge&&o!==Ge||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==Ge&&(o===Ge||i);i&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var r,n;typeof this._$AH=="function"?this._$AH.call((n=(r=this.options)===null||r===void 0?void 0:r.host)!==null&&n!==void 0?n:this.element,e):this._$AH.handleEvent(e)}}class pb{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){Si(this,e)}}const hg=Jc.litHtmlPolyfillSupport;hg==null||hg(Va,rs),((hu=Jc.litHtmlVersions)!==null&&hu!==void 0?hu:Jc.litHtmlVersions=[]).push("2.4.0");const gb=(t,e,r)=>{var n,o;const i=(n=r==null?void 0:r.renderBefore)!==null&&n!==void 0?n:e;let a=i._$litPart$;if(a===void 0){const s=(o=r==null?void 0:r.renderBefore)!==null&&o!==void 0?o:null;i._$litPart$=a=new rs(e.insertBefore(Ka(),s),s,void 0,r!=null?r:{})}return a._$AI(t),a};/**
|
|
86
|
+
* @license
|
|
87
|
+
* Copyright 2017 Google LLC
|
|
88
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
89
|
+
*/var fu,pu;class Pn extends Mo{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,r;const n=super.createRenderRoot();return(e=(r=this.renderOptions).renderBefore)!==null&&e!==void 0||(r.renderBefore=n.firstChild),n}update(e){const r=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=gb(r,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return Ci}}Pn.finalized=!0,Pn._$litElement$=!0,(fu=globalThis.litElementHydrateSupport)===null||fu===void 0||fu.call(globalThis,{LitElement:Pn});const fg=globalThis.litElementPolyfillSupport;fg==null||fg({LitElement:Pn});((pu=globalThis.litElementVersions)!==null&&pu!==void 0?pu:globalThis.litElementVersions=[]).push("3.2.2");const mb=sn`
|
|
90
|
+
::slotted(*) {
|
|
91
|
+
--fwc-ripple-color: #000;
|
|
92
|
+
--fwc-ripple-hover-opacity: 0.1;
|
|
93
|
+
--fwc-theme-background: #fff;
|
|
94
|
+
--fwc-theme-primary: ${et(Ke.colors.interactive.primary__resting.getVariable("color"))};
|
|
95
|
+
--fwc-theme-error: ${et(Ke.colors.interactive.danger__text.getVariable("color"))};
|
|
96
|
+
--fwc-theme-on-primary: ${et(Ke.colors.text.static_icons__primary_white.getVariable("color"))};
|
|
97
|
+
--fwc-theme-on-secondary: ${et(Ke.colors.text.static_icons__primary_white.getVariable("color"))};
|
|
98
|
+
--fwc-theme-on-surface: ${et(Ke.colors.text.static_icons__secondary.getVariable("color"))};
|
|
99
|
+
--fwc-theme-secondary: ${et(Ke.colors.interactive.primary__resting.getVariable("color"))};
|
|
100
|
+
--fwc-theme-surface: ${et(Ke.colors.ui.background__light.getVariable("color"))};
|
|
101
|
+
--fwc-typography-font-family: Equinor;
|
|
102
|
+
|
|
103
|
+
--mdc-ripple-color: var(--fwc-ripple-color);
|
|
104
|
+
--mdc-ripple-hover-opacity: var(--fwc-ripple-hover-opacity);
|
|
105
|
+
--mdc-theme-background: var(--fwc-theme-background);
|
|
106
|
+
--mdc-theme-primary: var(--fwc-theme-primary);
|
|
107
|
+
--mdc-theme-error: var(--fwc-theme-error);
|
|
108
|
+
--mdc-theme-on-primary: var(--fwc-theme-on-primary);
|
|
109
|
+
--mdc-theme-on-secondary: var(--fwc-theme-on-secondary);
|
|
110
|
+
--mdc-theme-on-surface: var(--fwc-theme-on-surface);
|
|
111
|
+
--mdc-theme-secondary: var(--fwc-theme-secondary);
|
|
112
|
+
--mdc-theme-surface: var(--fwc-theme-surface);
|
|
113
|
+
--mdc-typography-font-family: var(--fwc-typography-font-family);
|
|
114
|
+
}
|
|
115
|
+
`,pg="FUSION_EQUINOR_FONT";class h0 extends Pn{get FontLink(){return document.head.querySelector(`link#${pg}`)}connectedCallback(){super.connectedCallback(),!this.FontLink&&this.injectFont()}injectFont(){const e=document.createElement("link");e.id=pg,e.href="https://eds-static.equinor.com/font/equinor-font.css",e.rel="stylesheet",document.head.append(e)}render(){return d0`<slot></slot>`}}h0.styles=[mb];const vb="fwc-theme";let gg=class extends h0{};gg=Rr([Cl(vb)],gg);const yb=t=>{var n;const{children:e,...r}=t;return W(F1,{...r,theme:(n=r.theme)!=null?n:Ke,children:W("fwc-theme",{children:e})})},_b=new Set(["children","localName","ref","style","className"]),wb=t=>{const e=new Set;for(const r in t.prototype)r in HTMLElement.prototype||(_b.has(r)?console.warn(`${t.name} contains property ${r} which is a React reserved property. It will be used by React and not set on the element.`):e.add(r));return e},Eb=(t,e,r)=>{j.exports.useEffect(()=>{const n=t.current;if(n&&r&&e){const o=Object.entries(e).filter(([i])=>r.has(i));for(const[i,a]of o)n[i]=a}},[t,r,e])},Cb=t=>{let e=!1;return{nativeEvent:t,currentTarget:t.currentTarget,target:t.target,bubbles:t.bubbles,cancelable:t.cancelable,defaultPrevented:t.defaultPrevented,eventPhase:t.eventPhase,isTrusted:t.isTrusted,preventDefault:()=>t.preventDefault(),isDefaultPrevented:()=>t.defaultPrevented,stopPropagation:()=>{e=!0,t.stopPropagation()},isPropagationStopped:()=>e,persist:()=>{},timeStamp:t.timeStamp,type:t.type}},Sb=(t,e)=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>t[r]===e[r]),Tb={},bb=(t,e,r={})=>{const n=j.exports.useRef({}),o=j.exports.useRef({}),i=j.exports.useMemo(()=>{if(!e)return Tb;const a=Object.keys(r).filter(c=>c in e).reduce((c,l)=>Object.assign(c,{[l]:e[l]}),{});return!Sb(o.current,a)?a:o.current},[o,r,e]);j.exports.useEffect(()=>{var l,u;if(!i)return;const a=n.current,s=Object.keys(r).filter(h=>h in i);for(const h of s)if(!(h in a)){const d=f=>{const m=o.current[h];m&&m(Cb(f))};console.debug(`adding event listener [${h}]`,t.current),(l=t.current)==null||l.addEventListener(r[h],d),Object.assign(a,{[h]:d})}const c=Object.keys(a).filter(h=>!(h in i));for(const h of c){console.debug(`removing event listener [${h}]`,t.current);const d=r[h],f=a[h];d&&(f&&((u=t.current)==null||u.removeEventListener(d,f)),delete a[h])}n.current=a,o.current=i},[r,t,o,n,i])},Ib=(t,e=null)=>{const r=j.exports.useRef(e);return j.exports.useEffect(()=>{typeof t=="function"?t(r.current):t&&(t.current=r.current)},[t,r]),r},kb=t=>{switch(t){case"className":return"class"}return t},Ab=["string","number","boolean","bigint"],Yh=(t,e,r={})=>{const{events:n={},functions:o=new Set,displayName:i=t.name}=r,a=wb(t);for(const l of o.values())a.add(l);const s=new Set([...a,...Object.keys(n)]),c=j.exports.forwardRef((l,u)=>{const h=Ib(u);Eb(h,l,a),bb(h,l,n);const d=j.exports.useMemo(()=>{const f=Object.entries(l||{}),m=f.filter(([E])=>!s.has(E)),v=h.current?[]:f.filter(([E])=>s.has(E)).filter(([E,g])=>Ab.includes(typeof g)).filter(([E,g])=>!!g);return[...m,...v].map(([E,g])=>[kb(E),g]).reduce((E,[g,p])=>Object.assign(E,{[g]:p}),{ref:h})},[h,l]);return j.exports.createElement(e,d)});return c.displayName=i,c};/**
|
|
116
|
+
* @license
|
|
117
|
+
* Copyright 2017 Google LLC
|
|
118
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
119
|
+
*/const Rb=(t,e)=>e.kind==="method"&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(r){r.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){typeof e.initializer=="function"&&(this[e.key]=e.initializer.call(this))},finisher(r){r.createProperty(e.key,t)}};function Pi(t){return(e,r)=>r!==void 0?((n,o,i)=>{o.constructor.createProperty(i,n)})(t,e,r):Rb(t,e)}/**
|
|
120
|
+
* @license
|
|
121
|
+
* Copyright 2021 Google LLC
|
|
122
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
|
123
|
+
*/var gu;((gu=window.HTMLSlotElement)===null||gu===void 0?void 0:gu.prototype.assignedElements)!=null;const Pb=sn`
|
|
124
|
+
:host {
|
|
125
|
+
display: flex;
|
|
126
|
+
justify-content: center;
|
|
127
|
+
color: var(--fwc-star-progress-color, ${et(Ke.colors.logo.fill_positive.getVariable("color"))});
|
|
128
|
+
}
|
|
129
|
+
svg {
|
|
130
|
+
fill: currentColor;
|
|
131
|
+
}
|
|
132
|
+
.container {
|
|
133
|
+
display: inline-flex;
|
|
134
|
+
flex-flow: column;
|
|
135
|
+
align-items: center;
|
|
136
|
+
gap: var(--fwc-star-progress-spacing, ${et(Ke.spacing.comfortable.medium.getVariable("padding"))});
|
|
137
|
+
}
|
|
138
|
+
.title {
|
|
139
|
+
${et(Ke.typography.heading.h2.css)};
|
|
140
|
+
font-size: var(--fwc-star-progress-header-size, ${et(Ke.typography.heading.h2.getVariable("fontSize"))});
|
|
141
|
+
}
|
|
142
|
+
`,Nb=sn`
|
|
143
|
+
svg {
|
|
144
|
+
height: calc(var(--fwc-star-progress-size) * 1px);
|
|
145
|
+
width: calc(var(--fwc-star-progress-size) / 1.2px);
|
|
146
|
+
}
|
|
147
|
+
.graphics path {
|
|
148
|
+
animation: indicator_animation 1.3s linear infinite;
|
|
149
|
+
}
|
|
150
|
+
.graphics path:nth-child(2) {
|
|
151
|
+
animation-delay: 0.3s;
|
|
152
|
+
}
|
|
153
|
+
.graphics path:nth-child(3) {
|
|
154
|
+
animation-delay: 0.4s;
|
|
155
|
+
}
|
|
156
|
+
.graphics path:nth-child(4) {
|
|
157
|
+
animation-delay: 0.6s;
|
|
158
|
+
}
|
|
159
|
+
.graphics path:nth-child(5) {
|
|
160
|
+
animation-delay: 0.8s;
|
|
161
|
+
}
|
|
162
|
+
.graphics path:nth-child(6) {
|
|
163
|
+
animation-delay: 1s;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
@keyframes indicator_animation {
|
|
167
|
+
0% {
|
|
168
|
+
opacity: 1;
|
|
169
|
+
}
|
|
170
|
+
20% {
|
|
171
|
+
opacity: 0.8;
|
|
172
|
+
}
|
|
173
|
+
40% {
|
|
174
|
+
opacity: 0.6;
|
|
175
|
+
}
|
|
176
|
+
60% {
|
|
177
|
+
opacity: 0.4;
|
|
178
|
+
}
|
|
179
|
+
80% {
|
|
180
|
+
opacity: 0.2;
|
|
181
|
+
}
|
|
182
|
+
100% {
|
|
183
|
+
opacity: 0.05;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
`,Ob=Wh`
|
|
187
|
+
<svg
|
|
188
|
+
role="progressbar"
|
|
189
|
+
viewBox="0 0 40 48"
|
|
190
|
+
fill="none"
|
|
191
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
192
|
+
preserveAspectRatio="xMidYMid meet"
|
|
193
|
+
>
|
|
194
|
+
<g class="graphics">
|
|
195
|
+
<path
|
|
196
|
+
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"
|
|
197
|
+
/>
|
|
198
|
+
<path
|
|
199
|
+
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"
|
|
200
|
+
/>
|
|
201
|
+
<path
|
|
202
|
+
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"
|
|
203
|
+
/>
|
|
204
|
+
<path
|
|
205
|
+
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"
|
|
206
|
+
/>
|
|
207
|
+
<path
|
|
208
|
+
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"
|
|
209
|
+
/>
|
|
210
|
+
<path
|
|
211
|
+
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"
|
|
212
|
+
/>
|
|
213
|
+
</g>
|
|
214
|
+
</svg>
|
|
215
|
+
`;class ns extends Pn{constructor(){super(...arguments),this.size=200}render(){const{size:e=200,text:r}=this;return d0`
|
|
216
|
+
<div class="container" style="--fwc-star-progress-size: ${e};">
|
|
217
|
+
${Ob}
|
|
218
|
+
<header class="title">
|
|
219
|
+
<slot>
|
|
220
|
+
<span>${r}</span>
|
|
221
|
+
</slot>
|
|
222
|
+
</header
|
|
223
|
+
</div>
|
|
224
|
+
`}}Rr([Pi({type:Number,reflect:!0})],ns.prototype,"size",void 0);Rr([Pi({type:String,reflect:!1})],ns.prototype,"text",void 0);ns.styles=[Pb,Nb];const f0="fwc-star-progress";let mg=class extends ns{};mg=Rr([Cl(f0)],mg);const xb=sn`
|
|
225
|
+
:host {
|
|
226
|
+
display: flex;
|
|
227
|
+
justify-content: center;
|
|
228
|
+
}
|
|
229
|
+
:host([color='primary']) {
|
|
230
|
+
--fwc-dots-progress-color: ${et(Ke.colors.infographic.primary__moss_green_100.getVariable("color"))};
|
|
231
|
+
}
|
|
232
|
+
:host([color='tertiary']) {
|
|
233
|
+
--fwc-dots-progress-color: ${et(Ke.colors.interactive.danger__resting.getVariable("color"))};
|
|
234
|
+
}
|
|
235
|
+
:host([color='neutral']) {
|
|
236
|
+
--fwc-dots-progress-color: ${et(Ke.colors.interactive.icon_on_interactive_colors.getVariable("color"))};
|
|
237
|
+
}
|
|
238
|
+
`,Mb=sn`
|
|
239
|
+
:host([size='small']) {
|
|
240
|
+
--fwc-dots-progress-size: 32px;
|
|
241
|
+
}
|
|
242
|
+
:host([size='medium']) {
|
|
243
|
+
--fwc-dots-progress-size: 48px;
|
|
244
|
+
}
|
|
245
|
+
:host([size='large']) {
|
|
246
|
+
--fwc-dots-progress-size: 64px;
|
|
247
|
+
}
|
|
248
|
+
`,Ub=sn`
|
|
249
|
+
svg {
|
|
250
|
+
fill: var(--fwc-dots-progress-color, currentColor);
|
|
251
|
+
height: var(calc(--fwc-dots-progress-size / 4), calc(1.2em / 4));
|
|
252
|
+
width: var(--fwc-dots-progress-size, 1.2em);
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
circle:nth-child(1) {
|
|
256
|
+
animation: opacity 1s ease infinite;
|
|
257
|
+
}
|
|
258
|
+
circle:nth-child(2) {
|
|
259
|
+
animation: opacity 1s ease 0.2s infinite;
|
|
260
|
+
}
|
|
261
|
+
circle:nth-child(3) {
|
|
262
|
+
animation: opacity 1s ease 0.4s infinite;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
@keyframes opacity {
|
|
266
|
+
0% {
|
|
267
|
+
opacity: 1;
|
|
268
|
+
}
|
|
269
|
+
100% {
|
|
270
|
+
opacity: 0.5;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
`,Lb=[xb,Mb,Ub];var vg;(function(t){t.Small="small",t.Medium="medium",t.Large="large"})(vg||(vg={}));class os extends Pn{render(){return Wh`
|
|
274
|
+
<svg
|
|
275
|
+
role="progressbar"
|
|
276
|
+
viewBox="0 0 16 4"
|
|
277
|
+
preserveAspectRatio="xMidYMid meet"
|
|
278
|
+
>
|
|
279
|
+
<circle cx="2" cy="2" r="2" />
|
|
280
|
+
<circle cx="8" cy="2" r="2" />
|
|
281
|
+
<circle cx="14" cy="2" r="2" />
|
|
282
|
+
</svg>
|
|
283
|
+
`}}Rr([Pi({type:String,reflect:!0})],os.prototype,"size",void 0);Rr([Pi({type:String,reflect:!0})],os.prototype,"color",void 0);os.styles=[Lb];const p0="fwc-dots-progress";let yg=class extends os{};yg=Rr([Cl(p0)],yg);const Db=sn`
|
|
284
|
+
:host {
|
|
285
|
+
display: inline-flex;
|
|
286
|
+
justify-content: center;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
:host([color='primary']) {
|
|
290
|
+
--fwc-circular-progress-color: ${et(Ke.colors.infographic.primary__moss_green_100.getVariable("color"))};
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
:host([color='neutral']) {
|
|
294
|
+
--fwc-circular-progress-color: ${et(Ke.colors.interactive.icon_on_interactive_colors.getVariable("color"))};
|
|
295
|
+
}
|
|
296
|
+
`,Hb=sn`
|
|
297
|
+
:host([size='x-small']) {
|
|
298
|
+
--fwc-circular-progress-size: 16px;
|
|
299
|
+
}
|
|
300
|
+
:host([size='small']) {
|
|
301
|
+
--fwc-circular-progress-size: 24px;
|
|
302
|
+
}
|
|
303
|
+
:host([size='medium']) {
|
|
304
|
+
--fwc-circular-progress-size: 32px;
|
|
305
|
+
}
|
|
306
|
+
:host([size='large']) {
|
|
307
|
+
--fwc-circular-progress-size: 40px;
|
|
308
|
+
}
|
|
309
|
+
:host([size='x-large']) {
|
|
310
|
+
--fwc-circular-progress-size: 48px;
|
|
311
|
+
}
|
|
312
|
+
`,Fb=sn`
|
|
313
|
+
svg {
|
|
314
|
+
height: var(--fwc-circular-progress-size, 1.2em);
|
|
315
|
+
width: var(--fwc-circular-progress-size, 1.2em);
|
|
316
|
+
stroke: var(--fwc-circular-progress-color, currentColor);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.track {
|
|
320
|
+
filter: opacity(13%);
|
|
321
|
+
}
|
|
322
|
+
|
|
323
|
+
.progress {
|
|
324
|
+
transform-origin: center;
|
|
325
|
+
animation: spin 1.3s linear infinite;
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
@keyframes spin {
|
|
329
|
+
0% {
|
|
330
|
+
-webkit-transform: rotate(0deg);
|
|
331
|
+
transform: rotate(0deg);
|
|
332
|
+
}
|
|
333
|
+
100% {
|
|
334
|
+
-webkit-transform: rotate(360deg);
|
|
335
|
+
transform: rotate(360deg);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
`,$b=[Db,Hb,Fb];var _g;(function(t){t.XSmall="x-small",t.Small="small",t.Medium="medium",t.Large="large",t.XLarge="x-large"})(_g||(_g={}));class is extends Pn{render(){return Wh`
|
|
339
|
+
<svg
|
|
340
|
+
viewBox="0 0 48 48"
|
|
341
|
+
role="progressbar"
|
|
342
|
+
preserveAspectRatio="xMidYMid meet"
|
|
343
|
+
>
|
|
344
|
+
<circle
|
|
345
|
+
cx="50%"
|
|
346
|
+
cy="50%"
|
|
347
|
+
r="${(48-4)/2}"
|
|
348
|
+
fill="none"
|
|
349
|
+
stroke-width="${4}"
|
|
350
|
+
class="track">
|
|
351
|
+
</circle>
|
|
352
|
+
<circle
|
|
353
|
+
cx="50%"
|
|
354
|
+
cy="50%"
|
|
355
|
+
r="${(48-4)/2}"
|
|
356
|
+
fill="none"
|
|
357
|
+
stroke-width="${4}"
|
|
358
|
+
stroke-linecap="round"
|
|
359
|
+
stroke-dasharray="48"
|
|
360
|
+
class="progress">
|
|
361
|
+
</circle>
|
|
362
|
+
</svg>
|
|
363
|
+
`}}Rr([Pi({type:String,reflect:!0})],is.prototype,"size",void 0);Rr([Pi({type:String,reflect:!0})],is.prototype,"color",void 0);is.styles=$b;const g0="fwc-circular-progress";let wg=class extends is{};wg=Rr([Cl(g0)],wg);const m0=Yh(ns,f0);Yh(is,g0);Yh(os,p0);const zb=async t=>{t.logger.level=4,t.configureServiceDiscovery({client:{baseUri:import.meta.url,defaultScopes:["5a842df8-3238-415d-b168-9f16a6a6031b/.default"]}}),t.configureMsal({tenantId:"3aa4a235-b6e2-48d5-9195-7fcf05b459b0",clientId:"9b707e3a-3e90-41ed-a47e-652a1e3b53d0",redirectUri:"/authentication/login-callback"},{requiresAuth:!0}),t.onConfigured(()=>{console.log("framework config done")}),t.onInitialized(async e=>{e.auth.defaultClient.setLogger(new Ly(0)),console.debug("\u{1F4D2} subscribing to all events"),e.event.subscribe(r=>console.debug(`\u{1F514}\u{1F30D} [${r.type}]`,r)),console.debug("\u{1F4D2} subscribing to [onReactAppLoaded]"),e.event.addEventListener("onReactAppLoaded",r=>console.debug("\u{1F514} [onReactAppLoaded]",r))})};/**
|
|
364
|
+
* @remix-run/router v1.0.3
|
|
365
|
+
*
|
|
366
|
+
* Copyright (c) Remix Software Inc.
|
|
367
|
+
*
|
|
368
|
+
* This source code is licensed under the MIT license found in the
|
|
369
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
370
|
+
*
|
|
371
|
+
* @license MIT
|
|
372
|
+
*/function ke(){return ke=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},ke.apply(this,arguments)}var Fe;(function(t){t.Pop="POP",t.Push="PUSH",t.Replace="REPLACE"})(Fe||(Fe={}));const Eg="popstate";function jb(t){t===void 0&&(t={});function e(n,o){let{pathname:i,search:a,hash:s}=n.location;return oo("",{pathname:i,search:a,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function r(n,o){return typeof o=="string"?o:nn(o)}return qb(e,r,null,t)}function Bb(){return Math.random().toString(36).substr(2,8)}function Cg(t){return{usr:t.state,key:t.key}}function oo(t,e,r,n){return r===void 0&&(r=null),ke({pathname:typeof t=="string"?t:t.pathname,search:"",hash:""},typeof e=="string"?cn(e):e,{state:r,key:e&&e.key||n||Bb()})}function nn(t){let{pathname:e="/",search:r="",hash:n=""}=t;return r&&r!=="?"&&(e+=r.charAt(0)==="?"?r:"?"+r),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function cn(t){let e={};if(t){let r=t.indexOf("#");r>=0&&(e.hash=t.substr(r),t=t.substr(0,r));let n=t.indexOf("?");n>=0&&(e.search=t.substr(n),t=t.substr(0,n)),t&&(e.pathname=t)}return e}function Wa(t){let e=typeof window<"u"&&typeof window.location<"u"&&window.location.origin!=="null"?window.location.origin:"unknown://unknown",r=typeof t=="string"?t:nn(t);return new URL(r,e)}function qb(t,e,r,n){n===void 0&&(n={});let{window:o=document.defaultView,v5Compat:i=!1}=n,a=o.history,s=Fe.Pop,c=null;function l(){s=Fe.Pop,c&&c({action:s,location:d.location})}function u(f,m){s=Fe.Push;let v=oo(d.location,f,m);r&&r(v,f);let E=Cg(v),g=d.createHref(v);try{a.pushState(E,"",g)}catch{o.location.assign(g)}i&&c&&c({action:s,location:d.location})}function h(f,m){s=Fe.Replace;let v=oo(d.location,f,m);r&&r(v,f);let E=Cg(v),g=d.createHref(v);a.replaceState(E,"",g),i&&c&&c({action:s,location:d.location})}let d={get action(){return s},get location(){return t(o,a)},listen(f){if(c)throw new Error("A history only accepts one active listener");return o.addEventListener(Eg,l),c=f,()=>{o.removeEventListener(Eg,l),c=null}},createHref(f){return e(o,f)},encodeLocation(f){let m=Wa(nn(f));return ke({},f,{pathname:m.pathname,search:m.search,hash:m.hash})},push:u,replace:h,go(f){return a.go(f)}};return d}var Ze;(function(t){t.data="data",t.deferred="deferred",t.redirect="redirect",t.error="error"})(Ze||(Ze={}));function Kb(t){return t.index===!0}function v0(t,e,r){return e===void 0&&(e=[]),r===void 0&&(r=new Set),t.map((n,o)=>{let i=[...e,o],a=typeof n.id=="string"?n.id:i.join("-");return re(n.index!==!0||!n.children,"Cannot specify children on an index route"),re(!r.has(a),'Found a route id collision on id "'+a+`". Route id's must be globally unique within Data Router usages`),r.add(a),Kb(n)?ke({},n,{id:a}):ke({},n,{id:a,children:n.children?v0(n.children,i,r):void 0})})}function ca(t,e,r){r===void 0&&(r="/");let n=typeof e=="string"?cn(e):e,o=_0(n.pathname||"/",r);if(o==null)return null;let i=y0(t);Gb(i);let a=null;for(let s=0;a==null&&s<i.length;++s)a=tI(i[s],oI(o));return a}function y0(t,e,r,n){return e===void 0&&(e=[]),r===void 0&&(r=[]),n===void 0&&(n=""),t.forEach((o,i)=>{let a={relativePath:o.path||"",caseSensitive:o.caseSensitive===!0,childrenIndex:i,route:o};a.relativePath.startsWith("/")&&(re(a.relativePath.startsWith(n),'Absolute route path "'+a.relativePath+'" nested under path '+('"'+n+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),a.relativePath=a.relativePath.slice(n.length));let s=io([n,a.relativePath]),c=r.concat(a);o.children&&o.children.length>0&&(re(o.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+s+'".')),y0(o.children,e,c,s)),!(o.path==null&&!o.index)&&e.push({path:s,score:Zb(s,o.index),routesMeta:c})}),e}function Gb(t){t.sort((e,r)=>e.score!==r.score?r.score-e.score:eI(e.routesMeta.map(n=>n.childrenIndex),r.routesMeta.map(n=>n.childrenIndex)))}const Vb=/^:\w+$/,Wb=3,Yb=2,Qb=1,Jb=10,Xb=-2,Sg=t=>t==="*";function Zb(t,e){let r=t.split("/"),n=r.length;return r.some(Sg)&&(n+=Xb),e&&(n+=Yb),r.filter(o=>!Sg(o)).reduce((o,i)=>o+(Vb.test(i)?Wb:i===""?Qb:Jb),n)}function eI(t,e){return t.length===e.length&&t.slice(0,-1).every((n,o)=>n===e[o])?t[t.length-1]-e[e.length-1]:0}function tI(t,e){let{routesMeta:r}=t,n={},o="/",i=[];for(let a=0;a<r.length;++a){let s=r[a],c=a===r.length-1,l=o==="/"?e:e.slice(o.length)||"/",u=rI({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l);if(!u)return null;Object.assign(n,u.params);let h=s.route;i.push({params:n,pathname:io([o,u.pathname]),pathnameBase:lI(io([o,u.pathnameBase])),route:h}),u.pathnameBase!=="/"&&(o=io([o,u.pathnameBase]))}return i}function rI(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[r,n]=nI(t.path,t.caseSensitive,t.end),o=e.match(r);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:n.reduce((l,u,h)=>{if(u==="*"){let d=s[h]||"";a=i.slice(0,i.length-d.length).replace(/(.)\/+$/,"$1")}return l[u]=iI(s[h]||"",u),l},{}),pathname:i,pathnameBase:a,pattern:t}}function nI(t,e,r){e===void 0&&(e=!1),r===void 0&&(r=!0),Qh(t==="*"||!t.endsWith("*")||t.endsWith("/*"),'Route path "'+t+'" will be treated as if it were '+('"'+t.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+t.replace(/\*$/,"/*")+'".'));let n=[],o="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/:(\w+)/g,(a,s)=>(n.push(s),"([^\\/]+)"));return t.endsWith("*")?(n.push("*"),o+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):r?o+="\\/*$":t!==""&&t!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,e?void 0:"i"),n]}function oI(t){try{return decodeURI(t)}catch(e){return Qh(!1,'The URL path "'+t+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),t}}function iI(t,e){try{return decodeURIComponent(t)}catch(r){return Qh(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+t+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+r+").")),t}}function _0(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let r=e.endsWith("/")?e.length-1:e.length,n=t.charAt(r);return n&&n!=="/"?null:t.slice(r)||"/"}function re(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Qh(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function aI(t,e){e===void 0&&(e="/");let{pathname:r,search:n="",hash:o=""}=typeof t=="string"?cn(t):t;return{pathname:r?r.startsWith("/")?r:sI(r,e):e,search:uI(n),hash:dI(o)}}function sI(t,e){let r=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(o=>{o===".."?r.length>1&&r.pop():o!=="."&&r.push(o)}),r.length>1?r.join("/"):"/"}function mu(t,e,r,n){return"Cannot include a '"+t+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(n)+"]. Please separate it out to the ")+("`to."+r+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function w0(t){return t.filter((e,r)=>r===0||e.route.path&&e.route.path.length>0)}function cI(t,e,r,n){n===void 0&&(n=!1);let o;typeof t=="string"?o=cn(t):(o=ke({},t),re(!o.pathname||!o.pathname.includes("?"),mu("?","pathname","search",o)),re(!o.pathname||!o.pathname.includes("#"),mu("#","pathname","hash",o)),re(!o.search||!o.search.includes("#"),mu("#","search","hash",o)));let i=t===""||o.pathname==="",a=i?"/":o.pathname,s;if(n||a==null)s=r;else{let h=e.length-1;if(a.startsWith("..")){let d=a.split("/");for(;d[0]==="..";)d.shift(),h-=1;o.pathname=d.join("/")}s=h>=0?e[h]:"/"}let c=aI(o,s),l=a&&a!=="/"&&a.endsWith("/"),u=(i||a===".")&&r.endsWith("/");return!c.pathname.endsWith("/")&&(l||u)&&(c.pathname+="/"),c}const io=t=>t.join("/").replace(/\/\/+/g,"/"),lI=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),uI=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,dI=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t;class Tg extends Error{}class hI{constructor(e){this.pendingKeys=new Set,this.subscriber=void 0,re(e&&typeof e=="object"&&!Array.isArray(e),"defer() only accepts plain objects");let r;this.abortPromise=new Promise((o,i)=>r=i),this.controller=new AbortController;let n=()=>r(new Tg("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce((o,i)=>{let[a,s]=i;return Object.assign(o,{[a]:this.trackPromise(a,s)})},{})}trackPromise(e,r){if(!(r instanceof Promise))return r;this.pendingKeys.add(e);let n=Promise.race([r,this.abortPromise]).then(o=>this.onSettle(n,e,null,o),o=>this.onSettle(n,e,o));return n.catch(()=>{}),Object.defineProperty(n,"_tracked",{get:()=>!0}),n}onSettle(e,r,n,o){if(this.controller.signal.aborted&&n instanceof Tg)return this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>n}),Promise.reject(n);this.pendingKeys.delete(r),this.done&&this.unlistenAbortSignal();const i=this.subscriber;return n?(Object.defineProperty(e,"_error",{get:()=>n}),i&&i(!1),Promise.reject(n)):(Object.defineProperty(e,"_data",{get:()=>o}),i&&i(!1),o)}subscribe(e){this.subscriber=e}cancel(){this.controller.abort(),this.pendingKeys.forEach((r,n)=>this.pendingKeys.delete(n));let e=this.subscriber;e&&e(!0)}async resolveData(e){let r=!1;if(!this.done){let n=()=>this.cancel();e.addEventListener("abort",n),r=await new Promise(o=>{this.subscribe(i=>{e.removeEventListener("abort",n),(i||this.done)&&o(i)})})}return r}get done(){return this.pendingKeys.size===0}get unwrappedData(){return re(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,r)=>{let[n,o]=r;return Object.assign(e,{[n]:pI(o)})},{})}}function fI(t){return t instanceof Promise&&t._tracked===!0}function pI(t){if(!fI(t))return t;if(t._error)throw t._error;return t._data}class Ni{constructor(e,r,n){this.status=e,this.statusText=r||"",this.data=n}}function E0(t){return t instanceof Ni}const vu={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},gI={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},mI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",vI=!mI;function yI(t){re(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let e=v0(t.routes),r=null,n=new Set,o=null,i=null,a=null,s=!1,c=ca(e,t.history.location,t.basename),l=null;if(c==null){let{matches:C,route:R,error:U}=Rg(e);c=C,l={[R.id]:U}}let u=!c.some(C=>C.route.loader)||t.hydrationData!=null,h,d={historyAction:t.history.action,location:t.history.location,matches:c,initialized:u,navigation:vu,restoreScrollPosition:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||l,fetchers:new Map},f=Fe.Pop,m=!1,v,E=!1,g=!1,p=[],y=[],w=new Map,k=0,P=-1,M=new Map,O=new Set,se=new Map,B=new Map;function _t(){return r=t.history.listen(C=>{let{action:R,location:U}=C;return L(R,U)}),d.initialized||L(Fe.Pop,d.location),h}function Ln(){r&&r(),n.clear(),v&&v.abort(),d.fetchers.forEach((C,R)=>Il(R))}function Dn(C){return n.add(C),()=>n.delete(C)}function it(C){d=ke({},d,C),n.forEach(R=>R(d))}function Hn(C,R){var U;let V=d.actionData!=null&&d.navigation.formMethod!=null&&d.navigation.state==="loading"&&((U=d.navigation.formAction)==null?void 0:U.split("?")[0])===C.pathname,Z=R.loaderData?{loaderData:_u(d.loaderData,R.loaderData,R.matches||[])}:{};it(ke({},V?{}:{actionData:null},R,Z,{historyAction:f,location:C,initialized:!0,navigation:vu,revalidation:"idle",restoreScrollPosition:d.navigation.formData?!1:tf(C,R.matches||d.matches),preventScrollReset:m})),E||f===Fe.Pop||(f===Fe.Push?t.history.push(C,C.state):f===Fe.Replace&&t.history.replace(C,C.state)),f=Fe.Pop,m=!1,E=!1,g=!1,p=[],y=[]}async function Oi(C,R){if(typeof C=="number"){t.history.go(C);return}let{path:U,submission:V,error:Z}=bg(C,R),ie=oo(d.location,U,R&&R.state);ie=t.history.encodeLocation(ie);let ce=(R&&R.replace)===!0||V!=null?Fe.Replace:Fe.Push,he=R&&"preventScrollReset"in R?R.preventScrollReset===!0:void 0;return await L(ce,ie,{submission:V,pendingError:Z,preventScrollReset:he,replace:R&&R.replace})}function xi(){if(ln(),it({revalidation:"loading"}),d.navigation.state!=="submitting"){if(d.navigation.state==="idle"){L(d.historyAction,d.location,{startUninterruptedRevalidation:!0});return}L(f||d.historyAction,d.navigation.location,{overrideNavigation:d.navigation})}}async function L(C,R,U){v&&v.abort(),v=null,f=C,E=(U&&U.startUninterruptedRevalidation)===!0,x0(d.location,d.matches),m=(U&&U.preventScrollReset)===!0;let V=U&&U.overrideNavigation,Z=ca(e,R,t.basename);if(!Z){let{matches:at,route:Eo,error:Or}=Rg(e);kl(),Hn(R,{matches:at,loaderData:{},errors:{[Eo.id]:Or}});return}if(TI(d.location,R)){Hn(R,{matches:Z});return}v=new AbortController;let ie=Wi(R,v.signal,U&&U.submission),ce,he;if(U&&U.pendingError)he={[Zo(Z).route.id]:U.pendingError};else if(U&&U.submission){let at=await J(ie,R,U.submission,Z,{replace:U.replace});if(at.shortCircuited)return;ce=at.pendingActionData,he=at.pendingActionError,V=ke({state:"loading",location:R},U.submission)}let{shortCircuited:pe,loaderData:ge,errors:Te}=await X(ie,R,Z,V,U&&U.submission,U&&U.replace,ce,he);pe||(v=null,Hn(R,{matches:Z,loaderData:ge,errors:Te}))}async function J(C,R,U,V,Z){ln();let ie=ke({state:"submitting",location:R},U);it({navigation:ie});let ce,he=Mg(V,R);if(!he.route.action)ce=Pg(R);else if(ce=await Vi("action",C,he,V,h.basename),C.signal.aborted)return{shortCircuited:!0};if(li(ce)){let pe=ke({state:"loading",location:oo(d.location,ce.location)},U);return await Nr(ce,pe,Z&&Z.replace),{shortCircuited:!0}}if(Ca(ce)){let pe=Zo(V,he.route.id);return(Z&&Z.replace)!==!0&&(f=Fe.Push),{pendingActionError:{[pe.route.id]:ce.error}}}if(Xn(ce))throw new Error("defer() is not supported in actions");return{pendingActionData:{[he.route.id]:ce.data}}}async function X(C,R,U,V,Z,ie,ce,he){let pe=V;pe||(pe={state:"loading",location:R,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0});let[ge,Te]=Ig(d,U,Z,R,g,p,y,ce,he,se);if(kl(st=>!(U&&U.some(It=>It.route.id===st))||ge&&ge.some(It=>It.route.id===st)),ge.length===0&&Te.length===0)return Hn(R,{matches:U,loaderData:_u(d.loaderData,{},U),errors:he||null,actionData:ce||null}),{shortCircuited:!0};E||(Te.forEach(st=>{let[It]=st,So=d.fetchers.get(It),Mi={state:"loading",data:So&&So.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};d.fetchers.set(It,Mi)}),it(ke({navigation:pe,actionData:ce||d.actionData||null},Te.length>0?{fetchers:new Map(d.fetchers)}:{}))),P=++k,Te.forEach(st=>{let[It]=st;return w.set(It,v)});let{results:at,loaderResults:Eo,fetcherResults:Or}=await pr(d.matches,U,ge,Te,C);if(C.signal.aborted)return{shortCircuited:!0};Te.forEach(st=>{let[It]=st;return w.delete(It)});let Fn=Ng(at);if(Fn){let st=yu(d,Fn);return await Nr(Fn,st,ie),{shortCircuited:!0}}let{loaderData:Al,errors:cs}=Ag(d,U,ge,Eo,he,Te,Or,B);B.forEach((st,It)=>{st.subscribe(So=>{(So||st.done)&&B.delete(It)})}),N0();let Co=ef(P);return ke({loaderData:Al,errors:cs},Co||Te.length>0?{fetchers:new Map(d.fetchers)}:{})}function Se(C){return d.fetchers.get(C)||gI}function Le(C,R,U,V){if(vI)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");w.has(C)&&ss(C);let Z=ca(e,U,t.basename);if(!Z){bl(C,R,new Ni(404,"Not Found",null));return}let{path:ie,submission:ce}=bg(U,V,!0),he=Mg(Z,ie);if(ce){wo(C,R,ie,he,Z,ce);return}se.set(C,[ie,he,Z]),Pr(C,R,ie,he,Z)}async function wo(C,R,U,V,Z,ie){if(ln(),se.delete(C),!V.route.action){let{error:er}=Pg(U);bl(C,R,er);return}let ce=d.fetchers.get(C),he=ke({state:"submitting"},ie,{data:ce&&ce.data});d.fetchers.set(C,he),it({fetchers:new Map(d.fetchers)});let pe=new AbortController,ge=Wi(U,pe.signal,ie);w.set(C,pe);let Te=await Vi("action",ge,V,Z,h.basename);if(ge.signal.aborted){w.get(C)===pe&&w.delete(C);return}if(li(Te)){w.delete(C),O.add(C);let er=ke({state:"loading"},ie,{data:void 0});d.fetchers.set(C,er),it({fetchers:new Map(d.fetchers)});let xr=ke({state:"loading",location:oo(d.location,Te.location)},ie);await Nr(Te,xr);return}if(Ca(Te)){bl(C,R,Te.error);return}Xn(Te)&&re(!1,"defer() is not supported in actions");let at=d.navigation.location||d.location,Eo=Wi(at,pe.signal),Or=d.navigation.state!=="idle"?ca(e,d.navigation.location,t.basename):d.matches;re(Or,"Didn't find any matches after fetcher action");let Fn=++k;M.set(C,Fn);let Al=ke({state:"loading",data:Te.data},ie);d.fetchers.set(C,Al);let[cs,Co]=Ig(d,Or,ie,at,g,p,y,{[V.route.id]:Te.data},void 0,se);Co.filter(er=>{let[xr]=er;return xr!==C}).forEach(er=>{let[xr]=er,of=d.fetchers.get(xr),L0={state:"loading",data:of&&of.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};d.fetchers.set(xr,L0),w.set(xr,pe)}),it({fetchers:new Map(d.fetchers)});let{results:st,loaderResults:It,fetcherResults:So}=await pr(d.matches,Or,cs,Co,Eo);if(pe.signal.aborted)return;M.delete(C),w.delete(C),Co.forEach(er=>{let[xr]=er;return w.delete(xr)});let Mi=Ng(st);if(Mi){let er=yu(d,Mi);await Nr(Mi,er);return}let{loaderData:rf,errors:nf}=Ag(d,d.matches,cs,It,void 0,Co,So,B),M0={state:"idle",data:Te.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};d.fetchers.set(C,M0);let U0=ef(Fn);d.navigation.state==="loading"&&Fn>P?(re(f,"Expected pending action"),v&&v.abort(),Hn(d.navigation.location,{matches:Or,loaderData:rf,errors:nf,fetchers:new Map(d.fetchers)})):(it(ke({errors:nf,loaderData:_u(d.loaderData,rf,Or)},U0?{fetchers:new Map(d.fetchers)}:{})),g=!1)}async function Pr(C,R,U,V,Z){let ie=d.fetchers.get(C),ce={state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,data:ie&&ie.data};d.fetchers.set(C,ce),it({fetchers:new Map(d.fetchers)});let he=new AbortController,pe=Wi(U,he.signal);w.set(C,he);let ge=await Vi("loader",pe,V,Z,h.basename);if(Xn(ge)&&(ge=await b0(ge,pe.signal,!0)||ge),w.get(C)===he&&w.delete(C),pe.signal.aborted)return;if(li(ge)){let at=yu(d,ge);await Nr(ge,at);return}if(Ca(ge)){let at=Zo(d.matches,R);d.fetchers.delete(C),it({fetchers:new Map(d.fetchers),errors:{[at.route.id]:ge.error}});return}re(!Xn(ge),"Unhandled fetcher deferred data");let Te={state:"idle",data:ge.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};d.fetchers.set(C,Te),it({fetchers:new Map(d.fetchers)})}async function Nr(C,R,U){C.revalidate&&(g=!0),re(R.location,"Expected a location on the redirect navigation"),v=null;let V=U===!0?Fe.Replace:Fe.Push;await L(V,R.location,{overrideNavigation:R})}async function pr(C,R,U,V,Z){let ie=await Promise.all([...U.map(pe=>Vi("loader",Z,pe,R,h.basename)),...V.map(pe=>{let[,ge,Te,at]=pe;return Vi("loader",Wi(ge,Z.signal),Te,at,h.basename)})]),ce=ie.slice(0,U.length),he=ie.slice(U.length);return await Promise.all([Og(C,U,ce,Z.signal,!1,d.loaderData),Og(C,V.map(pe=>{let[,,ge]=pe;return ge}),he,Z.signal,!0)]),{results:ie,loaderResults:ce,fetcherResults:he}}function ln(){g=!0,p.push(...kl()),se.forEach((C,R)=>{w.has(R)&&(y.push(R),ss(R))})}function bl(C,R,U){let V=Zo(d.matches,R);Il(C),it({errors:{[V.route.id]:U},fetchers:new Map(d.fetchers)})}function Il(C){w.has(C)&&ss(C),se.delete(C),M.delete(C),O.delete(C),d.fetchers.delete(C)}function ss(C){let R=w.get(C);re(R,"Expected fetch controller: "+C),R.abort(),w.delete(C)}function Zh(C){for(let R of C){let V={state:"idle",data:Se(R).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};d.fetchers.set(R,V)}}function N0(){let C=[];for(let R of O){let U=d.fetchers.get(R);re(U,"Expected fetcher: "+R),U.state==="loading"&&(O.delete(R),C.push(R))}Zh(C)}function ef(C){let R=[];for(let[U,V]of M)if(V<C){let Z=d.fetchers.get(U);re(Z,"Expected fetcher: "+U),Z.state==="loading"&&(ss(U),M.delete(U),R.push(U))}return Zh(R),R.length>0}function kl(C){let R=[];return B.forEach((U,V)=>{(!C||C(V))&&(U.cancel(),R.push(V),B.delete(V))}),R}function O0(C,R,U){if(o=C,a=R,i=U||(V=>V.key),!s&&d.navigation===vu){s=!0;let V=tf(d.location,d.matches);V!=null&&it({restoreScrollPosition:V})}return()=>{o=null,a=null,i=null}}function x0(C,R){if(o&&i&&a){let U=R.map(Z=>xg(Z,d.loaderData)),V=i(C,U)||C.key;o[V]=a()}}function tf(C,R){if(o&&i&&a){let U=R.map(ie=>xg(ie,d.loaderData)),V=i(C,U)||C.key,Z=o[V];if(typeof Z=="number")return Z}return null}return h={get basename(){return t.basename},get state(){return d},get routes(){return e},initialize:_t,subscribe:Dn,enableScrollRestoration:O0,navigate:Oi,fetch:Le,revalidate:xi,createHref:C=>t.history.createHref(C),getFetcher:Se,deleteFetcher:Il,dispose:Ln,_internalFetchControllers:w,_internalActiveDeferreds:B},h}const _I=new Set(["POST","PUT","PATCH","DELETE"]);[..._I];function bg(t,e,r){r===void 0&&(r=!1);let n=typeof t=="string"?t:nn(t);if(!e||!("formMethod"in e)&&!("formData"in e))return{path:n};if(e.formMethod!=null&&e.formMethod!=="get")return{path:n,submission:{formMethod:e.formMethod,formAction:T0(n),formEncType:e&&e.formEncType||"application/x-www-form-urlencoded",formData:e.formData}};if(!e.formData)return{path:n};let o=cn(n);try{let i=S0(e.formData);r&&o.search&&I0(o.search)&&i.append("index",""),o.search="?"+i}catch{return{path:n,error:new Ni(400,"Bad Request","Cannot submit binary form data using GET")}}return{path:nn(o)}}function yu(t,e){let{formMethod:r,formAction:n,formEncType:o,formData:i}=t.navigation;return{state:"loading",location:oo(t.location,e.location),formMethod:r||void 0,formAction:n||void 0,formEncType:o||void 0,formData:i||void 0}}function wI(t,e){let r=t;if(e){let n=t.findIndex(o=>o.route.id===e);n>=0&&(r=t.slice(0,n))}return r}function Ig(t,e,r,n,o,i,a,s,c,l){let u=c?Object.values(c)[0]:s?Object.values(s)[0]:null,h=c?Object.keys(c)[0]:void 0,f=wI(e,h).filter((v,E)=>v.route.loader!=null&&(EI(t.loaderData,t.matches[E],v)||i.some(g=>g===v.route.id)||kg(t.location,t.matches[E],r,n,v,o,u))),m=[];return l&&l.forEach((v,E)=>{let[g,p,y]=v;a.includes(E)?m.push([E,g,p,y]):o&&kg(g,p,r,g,p,o,u)&&m.push([E,g,p,y])}),[f,m]}function EI(t,e,r){let n=!e||r.route.id!==e.route.id,o=t[r.route.id]===void 0;return n||o}function C0(t,e){let r=t.route.path;return t.pathname!==e.pathname||r&&r.endsWith("*")&&t.params["*"]!==e.params["*"]}function kg(t,e,r,n,o,i,a){let s=Wa(t),c=e.params,l=Wa(n),u=o.params,h=C0(e,o)||s.toString()===l.toString()||s.search!==l.search||i;if(o.route.shouldRevalidate){let d=o.route.shouldRevalidate(ke({currentUrl:s,currentParams:c,nextUrl:l,nextParams:u},r,{actionResult:a,defaultShouldRevalidate:h}));if(typeof d=="boolean")return d}return h}async function Vi(t,e,r,n,o,i,a){i===void 0&&(i=!1),a===void 0&&(a=!1);let s,c,l,u=new Promise((d,f)=>l=f),h=()=>l();e.signal.addEventListener("abort",h);try{let d=r.route[t];re(d,"Could not find the "+t+' to run on the "'+r.route.id+'" route'),c=await Promise.race([d({request:e,params:r.params}),u])}catch(d){s=Ze.error,c=d}finally{e.signal.removeEventListener("abort",h)}if(c instanceof Response){let d=c.status;if(d>=300&&d<=399){let v=c.headers.get("Location");re(v,"Redirects returned/thrown from loaders/actions must have a Location header");let E=n.slice(0,n.indexOf(r)+1),g=w0(E).map(w=>w.pathnameBase),p=Wa(e.url).pathname,y=cI(v,g,p);if(re(nn(y),"Unable to resolve redirect location: "+c.headers.get("Location")),o){let w=y.pathname;y.pathname=w==="/"?o:io([o,w])}if(v=nn(y),i)throw c.headers.set("Location",v),c;return{type:Ze.redirect,status:d,location:v,revalidate:c.headers.get("X-Remix-Revalidate")!==null}}if(a)throw{type:s||Ze.data,response:c};let f,m=c.headers.get("Content-Type");return m&&m.startsWith("application/json")?f=await c.json():f=await c.text(),s===Ze.error?{type:s,error:new Ni(d,c.statusText,f),headers:c.headers}:{type:Ze.data,data:f,statusCode:c.status,headers:c.headers}}return s===Ze.error?{type:s,error:c}:c instanceof hI?{type:Ze.deferred,deferredData:c}:{type:Ze.data,data:c}}function Wi(t,e,r){let n=Wa(T0(t)).toString(),o={signal:e};if(r){let{formMethod:i,formEncType:a,formData:s}=r;o.method=i.toUpperCase(),o.body=a==="application/x-www-form-urlencoded"?S0(s):s}return new Request(n,o)}function S0(t){let e=new URLSearchParams;for(let[r,n]of t.entries())re(typeof n=="string",'File inputs are not supported with encType "application/x-www-form-urlencoded", please use "multipart/form-data" instead.'),e.append(r,n);return e}function CI(t,e,r,n,o){let i={},a=null,s,c=!1,l={};return r.forEach((u,h)=>{let d=e[h].route.id;if(re(!li(u),"Cannot handle redirect results in processLoaderData"),Ca(u)){let f=Zo(t,d),m=u.error;n&&(m=Object.values(n)[0],n=void 0),a=Object.assign(a||{},{[f.route.id]:m}),c||(c=!0,s=E0(u.error)?u.error.status:500),u.headers&&(l[d]=u.headers)}else Xn(u)?(o&&o.set(d,u.deferredData),i[d]=u.deferredData.data):(i[d]=u.data,u.statusCode!=null&&u.statusCode!==200&&!c&&(s=u.statusCode),u.headers&&(l[d]=u.headers))}),n&&(a=n),{loaderData:i,errors:a,statusCode:s||200,loaderHeaders:l}}function Ag(t,e,r,n,o,i,a,s){let{loaderData:c,errors:l}=CI(e,r,n,o,s);for(let u=0;u<i.length;u++){let[h,,d]=i[u];re(a!==void 0&&a[u]!==void 0,"Did not find corresponding fetcher result");let f=a[u];if(Ca(f)){let m=Zo(t.matches,d.route.id);l&&l[m.route.id]||(l=ke({},l,{[m.route.id]:f.error})),t.fetchers.delete(h)}else{if(li(f))throw new Error("Unhandled fetcher revalidation redirect");if(Xn(f))throw new Error("Unhandled fetcher deferred data");{let m={state:"idle",data:f.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0};t.fetchers.set(h,m)}}}return{loaderData:c,errors:l}}function _u(t,e,r){let n=ke({},e);return r.forEach(o=>{let i=o.route.id;e[i]===void 0&&t[i]!==void 0&&(n[i]=t[i])}),n}function Zo(t,e){return(e?t.slice(0,t.findIndex(n=>n.route.id===e)+1):[...t]).reverse().find(n=>n.route.hasErrorBoundary===!0)||t[0]}function SI(t,e,r){let n=t.find(o=>o.index||!o.path||o.path==="/")||{id:"__shim-"+e+"-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:n}],route:n,error:new Ni(e,r,null)}}function Rg(t){return SI(t,404,"Not Found")}function Pg(t){let e=typeof t=="string"?t:nn(t);return console.warn("You're trying to submit to a route that does not have an action. To fix this, please add an `action` function to the route for "+("["+e+"]")),{type:Ze.error,error:new Ni(405,"Method Not Allowed","")}}function Ng(t){for(let e=t.length-1;e>=0;e--){let r=t[e];if(li(r))return r}}function T0(t){let e=typeof t=="string"?cn(t):t;return nn(ke({},e,{hash:""}))}function TI(t,e){return t.pathname===e.pathname&&t.search===e.search&&t.hash!==e.hash}function Xn(t){return t.type===Ze.deferred}function Ca(t){return t.type===Ze.error}function li(t){return(t&&t.type)===Ze.redirect}async function Og(t,e,r,n,o,i){for(let a=0;a<r.length;a++){let s=r[a],c=e[a],l=t.find(h=>h.route.id===c.route.id),u=l!=null&&!C0(l,c)&&(i&&i[c.route.id])!==void 0;Xn(s)&&(o||u)&&await b0(s,n,o).then(h=>{h&&(r[a]=h||r[a])})}}async function b0(t,e,r){if(r===void 0&&(r=!1),!await t.deferredData.resolveData(e)){if(r)try{return{type:Ze.data,data:t.deferredData.unwrappedData}}catch(o){return{type:Ze.error,error:o}}return{type:Ze.data,data:t.deferredData.data}}}function I0(t){return new URLSearchParams(t).getAll("index").some(e=>e==="")}function xg(t,e){let{route:r,pathname:n,params:o}=t;return{id:r.id,pathname:n,params:o,data:e[r.id],handle:r.handle}}function Mg(t,e){let r=typeof e=="string"?cn(e).search:e.search;if(t[t.length-1].route.index&&I0(r||""))return t[t.length-1];let n=w0(t);return n[n.length-1]}/**
|
|
373
|
+
* React Router v6.4.3
|
|
374
|
+
*
|
|
375
|
+
* Copyright (c) Remix Software Inc.
|
|
376
|
+
*
|
|
377
|
+
* This source code is licensed under the MIT license found in the
|
|
378
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
379
|
+
*
|
|
380
|
+
* @license MIT
|
|
381
|
+
*/function Xc(){return Xc=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t},Xc.apply(this,arguments)}function bI(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}const II=typeof Object.is=="function"?Object.is:bI,{useState:kI,useEffect:AI,useLayoutEffect:RI,useDebugValue:PI}=Eu;function NI(t,e,r){const n=e(),[{inst:o},i]=kI({inst:{value:n,getSnapshot:e}});return RI(()=>{o.value=n,o.getSnapshot=e,wu(o)&&i({inst:o})},[t,n,e]),AI(()=>(wu(o)&&i({inst:o}),t(()=>{wu(o)&&i({inst:o})})),[t]),PI(n),n}function wu(t){const e=t.getSnapshot,r=t.value;try{const n=e();return!II(r,n)}catch{return!0}}function OI(t,e,r){return e()}const xI=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",MI=!xI,UI=MI?OI:NI,LI="useSyncExternalStore"in Eu?(t=>t.useSyncExternalStore)(Eu):UI,DI=j.exports.createContext(null),k0=j.exports.createContext(null),Jh=j.exports.createContext(null),HI=j.exports.createContext(null),Tl=j.exports.createContext(null),as=j.exports.createContext({outlet:null,matches:[]}),A0=j.exports.createContext(null);function Xh(){return j.exports.useContext(Tl)!=null}function FI(){return Xh()||re(!1),j.exports.useContext(Tl).location}const $I=j.exports.createContext(null);function zI(t){let e=j.exports.useContext(as).outlet;return e&&W($I.Provider,{value:t,children:e})}function jI(){let{matches:t}=j.exports.useContext(as),e=t[t.length-1];return e?e.params:{}}function BI(t,e){Xh()||re(!1);let r=j.exports.useContext(Jh),{matches:n}=j.exports.useContext(as),o=n[n.length-1],i=o?o.params:{};o&&o.pathname;let a=o?o.pathnameBase:"/";o&&o.route;let s=FI(),c;if(e){var l;let m=typeof e=="string"?cn(e):e;a==="/"||((l=m.pathname)==null?void 0:l.startsWith(a))||re(!1),c=m}else c=s;let u=c.pathname||"/",h=a==="/"?u:u.slice(a.length)||"/",d=ca(t,{pathname:h}),f=VI(d&&d.map(m=>Object.assign({},m,{params:Object.assign({},i,m.params),pathname:io([a,m.pathname]),pathnameBase:m.pathnameBase==="/"?a:io([a,m.pathnameBase])})),n,r||void 0);return e&&f?W(Tl.Provider,{value:{location:Xc({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Fe.Pop},children:f}):f}function qI(){let t=YI(),e=E0(t)?t.status+" "+t.statusText:t instanceof Error?t.message:JSON.stringify(t),r=t instanceof Error?t.stack:null,n="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:n},i={padding:"2px 4px",backgroundColor:n};return no(Qy,{children:[W("h2",{children:"Unhandled Thrown Error!"}),W("h3",{style:{fontStyle:"italic"},children:e}),r?W("pre",{style:o,children:r}):null,W("p",{children:"\u{1F4BF} Hey developer \u{1F44B}"}),no("p",{children:["You can provide a way better UX than this when your app throws errors by providing your own\xA0",W("code",{style:i,children:"errorElement"})," props on\xA0",W("code",{style:i,children:"<Route>"})]})]})}class KI extends j.exports.Component{constructor(e){super(e),this.state={location:e.location,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,r){return r.location!==e.location?{error:e.error,location:e.location}:{error:e.error||r.error,location:r.location}}componentDidCatch(e,r){console.error("React Router caught the following error during render",e,r)}render(){return this.state.error?W(A0.Provider,{value:this.state.error,children:this.props.component}):this.props.children}}function GI(t){let{routeContext:e,match:r,children:n}=t,o=j.exports.useContext(DI);return o&&r.route.errorElement&&(o._deepestRenderedBoundaryId=r.route.id),W(as.Provider,{value:e,children:n})}function VI(t,e,r){if(e===void 0&&(e=[]),t==null)if(r!=null&&r.errors)t=r.matches;else return null;let n=t,o=r==null?void 0:r.errors;if(o!=null){let i=n.findIndex(a=>a.route.id&&(o==null?void 0:o[a.route.id]));i>=0||re(!1),n=n.slice(0,Math.min(n.length,i+1))}return n.reduceRight((i,a,s)=>{let c=a.route.id?o==null?void 0:o[a.route.id]:null,l=r?a.route.errorElement||W(qI,{}):null,u=()=>W(GI,{match:a,routeContext:{outlet:i,matches:e.concat(n.slice(0,s+1))},children:c?l:a.route.element!==void 0?a.route.element:i});return r&&(a.route.errorElement||s===0)?W(KI,{location:r.location,component:l,error:c,children:u()}):u()},null)}var Ug;(function(t){t.UseRevalidator="useRevalidator"})(Ug||(Ug={}));var Dd;(function(t){t.UseLoaderData="useLoaderData",t.UseActionData="useActionData",t.UseRouteError="useRouteError",t.UseNavigation="useNavigation",t.UseRouteLoaderData="useRouteLoaderData",t.UseMatches="useMatches",t.UseRevalidator="useRevalidator"})(Dd||(Dd={}));function WI(t){let e=j.exports.useContext(Jh);return e||re(!1),e}function YI(){var t;let e=j.exports.useContext(A0),r=WI(Dd.UseRouteError),n=j.exports.useContext(as),o=n.matches[n.matches.length-1];return e||(n||re(!1),o.route.id||re(!1),(t=r.errors)==null?void 0:t[o.route.id])}function QI(t){let{fallbackElement:e,router:r}=t,n=LI(r.subscribe,()=>r.state,()=>r.state),o=j.exports.useMemo(()=>({createHref:r.createHref,go:a=>r.navigate(a),push:(a,s,c)=>r.navigate(a,{state:s,preventScrollReset:c==null?void 0:c.preventScrollReset}),replace:(a,s,c)=>r.navigate(a,{replace:!0,state:s,preventScrollReset:c==null?void 0:c.preventScrollReset})}),[r]),i=r.basename||"/";return W(k0.Provider,{value:{router:r,navigator:o,static:!1,basename:i},children:W(Jh.Provider,{value:n,children:W(ZI,{basename:r.basename,location:r.state.location,navigationType:r.state.historyAction,navigator:o,children:r.state.initialized?W(ek,{}):e})})})}function JI(t){return zI(t.context)}function XI(t){re(!1)}function ZI(t){let{basename:e="/",children:r=null,location:n,navigationType:o=Fe.Pop,navigator:i,static:a=!1}=t;Xh()&&re(!1);let s=e.replace(/^\/*/,"/"),c=j.exports.useMemo(()=>({basename:s,navigator:i,static:a}),[s,i,a]);typeof n=="string"&&(n=cn(n));let{pathname:l="/",search:u="",hash:h="",state:d=null,key:f="default"}=n,m=j.exports.useMemo(()=>{let v=_0(l,s);return v==null?null:{pathname:v,search:u,hash:h,state:d,key:f}},[s,l,u,h,d,f]);return m==null?null:W(HI.Provider,{value:c,children:W(Tl.Provider,{children:r,value:{location:m,navigationType:o}})})}function ek(t){let{children:e,location:r}=t,n=j.exports.useContext(k0),o=n&&!e?n.router.routes:Hd(e);return BI(o,r)}var Lg;(function(t){t[t.pending=0]="pending",t[t.success=1]="success",t[t.error=2]="error"})(Lg||(Lg={}));new Promise(()=>{});function Hd(t,e){e===void 0&&(e=[]);let r=[];return j.exports.Children.forEach(t,(n,o)=>{if(!j.exports.isValidElement(n))return;if(n.type===j.exports.Fragment){r.push.apply(r,Hd(n.props.children,e));return}n.type!==XI&&re(!1),!n.props.index||!n.props.children||re(!1);let i=[...e,o],a={id:n.props.id||i.join("-"),caseSensitive:n.props.caseSensitive,element:n.props.element,index:n.props.index,path:n.props.path,loader:n.props.loader,action:n.props.action,errorElement:n.props.errorElement,hasErrorBoundary:n.props.errorElement!=null,shouldRevalidate:n.props.shouldRevalidate,handle:n.props.handle};n.props.children&&(a.children=Hd(n.props.children,i)),r.push(a)}),r}function R0(t){return t.map(e=>{let r=Xc({},e);return r.hasErrorBoundary==null&&(r.hasErrorBoundary=r.errorElement!=null),r.children&&(r.children=R0(r.children)),r})}/**
|
|
382
|
+
* React Router DOM v6.4.3
|
|
383
|
+
*
|
|
384
|
+
* Copyright (c) Remix Software Inc.
|
|
385
|
+
*
|
|
386
|
+
* This source code is licensed under the MIT license found in the
|
|
387
|
+
* LICENSE.md file in the root directory of this source tree.
|
|
388
|
+
*
|
|
389
|
+
* @license MIT
|
|
390
|
+
*/function tk(t,e){var r;return yI({basename:e==null?void 0:e.basename,history:jb({window:e==null?void 0:e.window}),hydrationData:(e==null?void 0:e.hydrationData)||((r=window)==null?void 0:r.__staticRouterHydrationData),routes:R0(t)}).initialize()}var Dg;(function(t){t.UseScrollRestoration="useScrollRestoration",t.UseSubmitImpl="useSubmitImpl",t.UseFetcher="useFetcher"})(Dg||(Dg={}));var Hg;(function(t){t.UseFetchers="useFetchers",t.UseScrollRestoration="useScrollRestoration"})(Hg||(Hg={}));const P0=({error:t})=>no(Qy,{children:[no("div",{style:{marginTop:20,border:"1px solid"},children:[no("h4",{style:{backgroundColor:"rgb(153, 0, 37)",color:"white",padding:10,margin:0},children:[t.name," - ",t.message]}),W("section",{style:{padding:10},children:t.stack&&W("pre",{children:t.stack})})]}),t.cause&&W(P0,{error:t.cause})]}),rk=t=>{const{appKey:e}=t,r=O1(),n=j.exports.useRef(null),[o,i]=j.exports.useState(),[a,s]=j.exports.useState(!1),[c,l]=j.exports.useState();return j.exports.useEffect(()=>{s(!0);const u=r.modules.app.loadApp(e).subscribe({next:h=>i(h),error:l,complete:()=>{s(!1)}});return()=>u.unsubscribe()},[e]),j.exports.useEffect(()=>{var u,h;if(o&&n.current){const{manifest:d,config:f,module:m}=o,[v]=(u=window.location.pathname.match(/\/?apps\/[a-z|-]+(\/)?/g))!=null?u:[];return((h=m.render)!=null?h:m.default)(n.current,{fusion:r,basename:v,env:{manifest:d,config:f}})}},[r,n,o]),c?no("div",{children:[W("h2",{children:"\u{1F525} Failed to load application \u{1F92C}"}),W(P0,{error:c}),";"]}):no("div",{children:[a&&W(m0,{text:"Loading Application"}),W("span",{ref:n,style:{display:o?"":"none"}})]})},nk=()=>W("div",{style:{fontFamily:"Equinor"},children:W(JI,{})}),ok=()=>{const{appKey:t}=jI();return t?W(rk,{appKey:t}):null},ik=tk([{path:"/",element:W(nk,{}),children:[{path:"apps/:appKey/*",element:W(ok,{})},{path:"test",element:W("p",{children:"ok"})}]}]),ak=()=>W(QI,{router:ik,fallbackElement:W("p",{children:"wooot"})});Cu.createRoot(document.getElementById("root")).render(W(Qa.StrictMode,{children:W(yb,{theme:Ke,children:W(x1,{configure:zb,fallback:W(m0,{text:"Loading framework"}),children:W(ak,{})})})}));
|