@equinor/fusion-framework-cli 0.1.5 → 0.1.7

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.
@@ -1,4 +1,4 @@
1
- (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)}})();const Ov="modulepreload",xv=function(t){return"/"+t},$d={},ep=function(e,r,n){if(!r||r.length===0)return e();const o=document.getElementsByTagName("link");return Promise.all(r.map(i=>{if(i=xv(i),i in $d)return;$d[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!n)for(let u=o.length-1;u>=0;u--){const d=o[u];if(d.href===i&&(!a||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const l=document.createElement("link");if(l.rel=a?"stylesheet":Ov,a||(l.as="script",l.crossOrigin=""),l.href=i,document.head.appendChild(l),a)return new Promise((u,d)=>{l.addEventListener("load",u),l.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e())},Mv=new URL("/@react-refresh",self.location).href;ep(()=>import(Mv),[]).then(({default:{injectIntoGlobalHook:t}})=>{t(window),window.$RefreshReg$=()=>{},window.$RefreshSig$=()=>e=>e,window.__vite_plugin_react_preamble_installed__=!0});function Uv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var J={exports:{}},W={};/**
1
+ (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 Pv(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var J={exports:{}},W={};/**
2
2
  * @license React
3
3
  * react.production.min.js
4
4
  *
@@ -6,7 +6,7 @@
6
6
  *
7
7
  * This source code is licensed under the MIT license found in the
8
8
  * LICENSE file in the root directory of this source tree.
9
- */var ta=Symbol.for("react.element"),Lv=Symbol.for("react.portal"),Hv=Symbol.for("react.fragment"),Dv=Symbol.for("react.strict_mode"),Fv=Symbol.for("react.profiler"),zv=Symbol.for("react.provider"),$v=Symbol.for("react.context"),jv=Symbol.for("react.forward_ref"),qv=Symbol.for("react.suspense"),Bv=Symbol.for("react.memo"),Kv=Symbol.for("react.lazy"),jd=Symbol.iterator;function Gv(t){return t===null||typeof t!="object"?null:(t=jd&&t[jd]||t["@@iterator"],typeof t=="function"?t:null)}var tp={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},rp=Object.assign,np={};function Uo(t,e,r){this.props=t,this.context=e,this.refs=np,this.updater=r||tp}Uo.prototype.isReactComponent={};Uo.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")};Uo.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function op(){}op.prototype=Uo.prototype;function Nu(t,e,r){this.props=t,this.context=e,this.refs=np,this.updater=r||tp}var Pu=Nu.prototype=new op;Pu.constructor=Nu;rp(Pu,Uo.prototype);Pu.isPureReactComponent=!0;var qd=Array.isArray,ip=Object.prototype.hasOwnProperty,Ou={current:null},ap={key:!0,ref:!0,__self:!0,__source:!0};function sp(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)ip.call(e,n)&&!ap.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:ta,type:t,key:i,ref:a,props:o,_owner:Ou.current}}function Vv(t,e){return{$$typeof:ta,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function xu(t){return typeof t=="object"&&t!==null&&t.$$typeof===ta}function Wv(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var Bd=/\/+/g;function bc(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Wv(""+t.key):e.toString(36)}function za(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 ta:case Lv:a=!0}}if(a)return a=t,o=o(a),t=n===""?"."+bc(a,0):n,qd(o)?(r="",t!=null&&(r=t.replace(Bd,"$&/")+"/"),za(o,e,r,"",function(l){return l})):o!=null&&(xu(o)&&(o=Vv(o,r+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Bd,"$&/")+"/")+t)),e.push(o)),1;if(a=0,n=n===""?".":n+":",qd(t))for(var s=0;s<t.length;s++){i=t[s];var c=n+bc(i,s);a+=za(i,e,r,c,o)}else if(c=Gv(t),typeof c=="function")for(t=c.call(t),s=0;!(i=t.next()).done;)i=i.value,c=n+bc(i,s++),a+=za(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 pa(t,e,r){if(t==null)return t;var n=[],o=0;return za(t,n,"","",function(i){return e.call(r,i,o++)}),n}function Yv(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 nt={current:null},$a={transition:null},Qv={ReactCurrentDispatcher:nt,ReactCurrentBatchConfig:$a,ReactCurrentOwner:Ou};W.Children={map:pa,forEach:function(t,e,r){pa(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return pa(t,function(){e++}),e},toArray:function(t){return pa(t,function(e){return e})||[]},only:function(t){if(!xu(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};W.Component=Uo;W.Fragment=Hv;W.Profiler=Fv;W.PureComponent=Nu;W.StrictMode=Dv;W.Suspense=qv;W.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Qv;W.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=rp({},t.props),o=t.key,i=t.ref,a=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,a=Ou.current),e.key!==void 0&&(o=""+e.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(c in e)ip.call(e,c)&&!ap.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:ta,type:t.type,key:o,ref:i,props:n,_owner:a}};W.createContext=function(t){return t={$$typeof:$v,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:zv,_context:t},t.Consumer=t};W.createElement=sp;W.createFactory=function(t){var e=sp.bind(null,t);return e.type=t,e};W.createRef=function(){return{current:null}};W.forwardRef=function(t){return{$$typeof:jv,render:t}};W.isValidElement=xu;W.lazy=function(t){return{$$typeof:Kv,_payload:{_status:-1,_result:t},_init:Yv}};W.memo=function(t,e){return{$$typeof:Bv,type:t,compare:e===void 0?null:e}};W.startTransition=function(t){var e=$a.transition;$a.transition={};try{t()}finally{$a.transition=e}};W.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};W.useCallback=function(t,e){return nt.current.useCallback(t,e)};W.useContext=function(t){return nt.current.useContext(t)};W.useDebugValue=function(){};W.useDeferredValue=function(t){return nt.current.useDeferredValue(t)};W.useEffect=function(t,e){return nt.current.useEffect(t,e)};W.useId=function(){return nt.current.useId()};W.useImperativeHandle=function(t,e,r){return nt.current.useImperativeHandle(t,e,r)};W.useInsertionEffect=function(t,e){return nt.current.useInsertionEffect(t,e)};W.useLayoutEffect=function(t,e){return nt.current.useLayoutEffect(t,e)};W.useMemo=function(t,e){return nt.current.useMemo(t,e)};W.useReducer=function(t,e,r){return nt.current.useReducer(t,e,r)};W.useRef=function(t){return nt.current.useRef(t)};W.useState=function(t){return nt.current.useState(t)};W.useSyncExternalStore=function(t,e,r){return nt.current.useSyncExternalStore(t,e,r)};W.useTransition=function(){return nt.current.useTransition()};W.version="18.2.0";(function(t){t.exports=W})(J);const Zs=Uv(J.exports);var gl={},cp={exports:{}},St={},lp={exports:{}},up={};/**
9
+ */var ta=Symbol.for("react.element"),Ov=Symbol.for("react.portal"),xv=Symbol.for("react.fragment"),Mv=Symbol.for("react.strict_mode"),Uv=Symbol.for("react.profiler"),Lv=Symbol.for("react.provider"),Hv=Symbol.for("react.context"),Dv=Symbol.for("react.forward_ref"),Fv=Symbol.for("react.suspense"),zv=Symbol.for("react.memo"),$v=Symbol.for("react.lazy"),$d=Symbol.iterator;function jv(t){return t===null||typeof t!="object"?null:(t=$d&&t[$d]||t["@@iterator"],typeof t=="function"?t:null)}var ep={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},tp=Object.assign,rp={};function Uo(t,e,r){this.props=t,this.context=e,this.refs=rp,this.updater=r||ep}Uo.prototype.isReactComponent={};Uo.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")};Uo.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function np(){}np.prototype=Uo.prototype;function Nu(t,e,r){this.props=t,this.context=e,this.refs=rp,this.updater=r||ep}var Pu=Nu.prototype=new np;Pu.constructor=Nu;tp(Pu,Uo.prototype);Pu.isPureReactComponent=!0;var jd=Array.isArray,op=Object.prototype.hasOwnProperty,Ou={current:null},ip={key:!0,ref:!0,__self:!0,__source:!0};function ap(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)op.call(e,n)&&!ip.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:ta,type:t,key:i,ref:a,props:o,_owner:Ou.current}}function qv(t,e){return{$$typeof:ta,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function xu(t){return typeof t=="object"&&t!==null&&t.$$typeof===ta}function Bv(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var qd=/\/+/g;function bc(t,e){return typeof t=="object"&&t!==null&&t.key!=null?Bv(""+t.key):e.toString(36)}function za(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 ta:case Ov:a=!0}}if(a)return a=t,o=o(a),t=n===""?"."+bc(a,0):n,jd(o)?(r="",t!=null&&(r=t.replace(qd,"$&/")+"/"),za(o,e,r,"",function(l){return l})):o!=null&&(xu(o)&&(o=qv(o,r+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(qd,"$&/")+"/")+t)),e.push(o)),1;if(a=0,n=n===""?".":n+":",jd(t))for(var s=0;s<t.length;s++){i=t[s];var c=n+bc(i,s);a+=za(i,e,r,c,o)}else if(c=jv(t),typeof c=="function")for(t=c.call(t),s=0;!(i=t.next()).done;)i=i.value,c=n+bc(i,s++),a+=za(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 pa(t,e,r){if(t==null)return t;var n=[],o=0;return za(t,n,"","",function(i){return e.call(r,i,o++)}),n}function Kv(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 nt={current:null},$a={transition:null},Gv={ReactCurrentDispatcher:nt,ReactCurrentBatchConfig:$a,ReactCurrentOwner:Ou};W.Children={map:pa,forEach:function(t,e,r){pa(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return pa(t,function(){e++}),e},toArray:function(t){return pa(t,function(e){return e})||[]},only:function(t){if(!xu(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};W.Component=Uo;W.Fragment=xv;W.Profiler=Uv;W.PureComponent=Nu;W.StrictMode=Mv;W.Suspense=Fv;W.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Gv;W.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=tp({},t.props),o=t.key,i=t.ref,a=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,a=Ou.current),e.key!==void 0&&(o=""+e.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(c in e)op.call(e,c)&&!ip.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:ta,type:t.type,key:o,ref:i,props:n,_owner:a}};W.createContext=function(t){return t={$$typeof:Hv,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:Lv,_context:t},t.Consumer=t};W.createElement=ap;W.createFactory=function(t){var e=ap.bind(null,t);return e.type=t,e};W.createRef=function(){return{current:null}};W.forwardRef=function(t){return{$$typeof:Dv,render:t}};W.isValidElement=xu;W.lazy=function(t){return{$$typeof:$v,_payload:{_status:-1,_result:t},_init:Kv}};W.memo=function(t,e){return{$$typeof:zv,type:t,compare:e===void 0?null:e}};W.startTransition=function(t){var e=$a.transition;$a.transition={};try{t()}finally{$a.transition=e}};W.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};W.useCallback=function(t,e){return nt.current.useCallback(t,e)};W.useContext=function(t){return nt.current.useContext(t)};W.useDebugValue=function(){};W.useDeferredValue=function(t){return nt.current.useDeferredValue(t)};W.useEffect=function(t,e){return nt.current.useEffect(t,e)};W.useId=function(){return nt.current.useId()};W.useImperativeHandle=function(t,e,r){return nt.current.useImperativeHandle(t,e,r)};W.useInsertionEffect=function(t,e){return nt.current.useInsertionEffect(t,e)};W.useLayoutEffect=function(t,e){return nt.current.useLayoutEffect(t,e)};W.useMemo=function(t,e){return nt.current.useMemo(t,e)};W.useReducer=function(t,e,r){return nt.current.useReducer(t,e,r)};W.useRef=function(t){return nt.current.useRef(t)};W.useState=function(t){return nt.current.useState(t)};W.useSyncExternalStore=function(t,e,r){return nt.current.useSyncExternalStore(t,e,r)};W.useTransition=function(){return nt.current.useTransition()};W.version="18.2.0";(function(t){t.exports=W})(J);const Zs=Pv(J.exports);var gl={},sp={exports:{}},St={},cp={exports:{}},lp={};/**
10
10
  * @license React
11
11
  * scheduler.production.min.js
12
12
  *
@@ -14,7 +14,7 @@
14
14
  *
15
15
  * This source code is licensed under the MIT license found in the
16
16
  * LICENSE file in the root directory of this source tree.
17
- */(function(t){function e(U,B){var V=U.length;U.push(B);e:for(;0<V;){var _e=V-1>>>1,Ae=U[_e];if(0<o(Ae,B))U[_e]=B,U[V]=Ae,V=_e;else break e}}function r(U){return U.length===0?null:U[0]}function n(U){if(U.length===0)return null;var B=U[0],V=U.pop();if(V!==B){U[0]=V;e:for(var _e=0,Ae=U.length,ha=Ae>>>1;_e<ha;){var sn=2*(_e+1)-1,kc=U[sn],cn=sn+1,fa=U[cn];if(0>o(kc,V))cn<Ae&&0>o(fa,kc)?(U[_e]=fa,U[cn]=V,_e=cn):(U[_e]=kc,U[sn]=V,_e=sn);else if(cn<Ae&&0>o(fa,V))U[_e]=fa,U[cn]=V,_e=cn;else break e}}return B}function o(U,B){var V=U.sortIndex-B.sortIndex;return V!==0?V:U.id-B.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,d=null,h=3,p=!1,v=!1,y=!1,I=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(U){for(var B=r(l);B!==null;){if(B.callback===null)n(l);else if(B.startTime<=U)n(l),B.sortIndex=B.expirationTime,e(c,B);else break;B=r(l)}}function E(U){if(y=!1,m(U),!v)if(r(c)!==null)v=!0,Tc(b);else{var B=r(l);B!==null&&Ic(E,B.startTime-U)}}function b(U,B){v=!1,y&&(y=!1,g(P),P=-1),p=!0;var V=h;try{for(m(B),d=r(c);d!==null&&(!(d.expirationTime>B)||U&&!gt());){var _e=d.callback;if(typeof _e=="function"){d.callback=null,h=d.priorityLevel;var Ae=_e(d.expirationTime<=B);B=t.unstable_now(),typeof Ae=="function"?d.callback=Ae:d===r(c)&&n(c),m(B)}else n(c);d=r(c)}if(d!==null)var ha=!0;else{var sn=r(l);sn!==null&&Ic(E,sn.startTime-B),ha=!1}return ha}finally{d=null,h=V,p=!1}}var R=!1,x=null,P=-1,he=5,K=-1;function gt(){return!(t.unstable_now()-K<he)}function zo(){if(x!==null){var U=t.unstable_now();K=U;var B=!0;try{B=x(!0,U)}finally{B?$o():(R=!1,x=null)}}else R=!1}var $o;if(typeof f=="function")$o=function(){f(zo)};else if(typeof MessageChannel<"u"){var zd=new MessageChannel,Pv=zd.port2;zd.port1.onmessage=zo,$o=function(){Pv.postMessage(null)}}else $o=function(){I(zo,0)};function Tc(U){x=U,R||(R=!0,$o())}function Ic(U,B){P=I(function(){U(t.unstable_now())},B)}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(U){U.callback=null},t.unstable_continueExecution=function(){v||p||(v=!0,Tc(b))},t.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):he=0<U?Math.floor(1e3/U):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(U){switch(h){case 1:case 2:case 3:var B=3;break;default:B=h}var V=h;h=B;try{return U()}finally{h=V}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(U,B){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var V=h;h=U;try{return B()}finally{h=V}},t.unstable_scheduleCallback=function(U,B,V){var _e=t.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?_e+V:_e):V=_e,U){case 1:var Ae=-1;break;case 2:Ae=250;break;case 5:Ae=1073741823;break;case 4:Ae=1e4;break;default:Ae=5e3}return Ae=V+Ae,U={id:u++,callback:B,priorityLevel:U,startTime:V,expirationTime:Ae,sortIndex:-1},V>_e?(U.sortIndex=V,e(l,U),r(c)===null&&U===r(l)&&(y?(g(P),P=-1):y=!0,Ic(E,V-_e))):(U.sortIndex=Ae,e(c,U),v||p||(v=!0,Tc(b))),U},t.unstable_shouldYield=gt,t.unstable_wrapCallback=function(U){var B=h;return function(){var V=h;h=B;try{return U.apply(this,arguments)}finally{h=V}}}})(up);(function(t){t.exports=up})(lp);/**
17
+ */(function(t){function e(U,B){var V=U.length;U.push(B);e:for(;0<V;){var _e=V-1>>>1,Ae=U[_e];if(0<o(Ae,B))U[_e]=B,U[V]=Ae,V=_e;else break e}}function r(U){return U.length===0?null:U[0]}function n(U){if(U.length===0)return null;var B=U[0],V=U.pop();if(V!==B){U[0]=V;e:for(var _e=0,Ae=U.length,ha=Ae>>>1;_e<ha;){var sn=2*(_e+1)-1,kc=U[sn],cn=sn+1,fa=U[cn];if(0>o(kc,V))cn<Ae&&0>o(fa,kc)?(U[_e]=fa,U[cn]=V,_e=cn):(U[_e]=kc,U[sn]=V,_e=sn);else if(cn<Ae&&0>o(fa,V))U[_e]=fa,U[cn]=V,_e=cn;else break e}}return B}function o(U,B){var V=U.sortIndex-B.sortIndex;return V!==0?V:U.id-B.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,d=null,h=3,p=!1,v=!1,y=!1,I=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,f=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function m(U){for(var B=r(l);B!==null;){if(B.callback===null)n(l);else if(B.startTime<=U)n(l),B.sortIndex=B.expirationTime,e(c,B);else break;B=r(l)}}function E(U){if(y=!1,m(U),!v)if(r(c)!==null)v=!0,Tc(b);else{var B=r(l);B!==null&&Ic(E,B.startTime-U)}}function b(U,B){v=!1,y&&(y=!1,g(P),P=-1),p=!0;var V=h;try{for(m(B),d=r(c);d!==null&&(!(d.expirationTime>B)||U&&!gt());){var _e=d.callback;if(typeof _e=="function"){d.callback=null,h=d.priorityLevel;var Ae=_e(d.expirationTime<=B);B=t.unstable_now(),typeof Ae=="function"?d.callback=Ae:d===r(c)&&n(c),m(B)}else n(c);d=r(c)}if(d!==null)var ha=!0;else{var sn=r(l);sn!==null&&Ic(E,sn.startTime-B),ha=!1}return ha}finally{d=null,h=V,p=!1}}var R=!1,x=null,P=-1,he=5,K=-1;function gt(){return!(t.unstable_now()-K<he)}function zo(){if(x!==null){var U=t.unstable_now();K=U;var B=!0;try{B=x(!0,U)}finally{B?$o():(R=!1,x=null)}}else R=!1}var $o;if(typeof f=="function")$o=function(){f(zo)};else if(typeof MessageChannel<"u"){var zd=new MessageChannel,Nv=zd.port2;zd.port1.onmessage=zo,$o=function(){Nv.postMessage(null)}}else $o=function(){I(zo,0)};function Tc(U){x=U,R||(R=!0,$o())}function Ic(U,B){P=I(function(){U(t.unstable_now())},B)}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(U){U.callback=null},t.unstable_continueExecution=function(){v||p||(v=!0,Tc(b))},t.unstable_forceFrameRate=function(U){0>U||125<U?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):he=0<U?Math.floor(1e3/U):5},t.unstable_getCurrentPriorityLevel=function(){return h},t.unstable_getFirstCallbackNode=function(){return r(c)},t.unstable_next=function(U){switch(h){case 1:case 2:case 3:var B=3;break;default:B=h}var V=h;h=B;try{return U()}finally{h=V}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(U,B){switch(U){case 1:case 2:case 3:case 4:case 5:break;default:U=3}var V=h;h=U;try{return B()}finally{h=V}},t.unstable_scheduleCallback=function(U,B,V){var _e=t.unstable_now();switch(typeof V=="object"&&V!==null?(V=V.delay,V=typeof V=="number"&&0<V?_e+V:_e):V=_e,U){case 1:var Ae=-1;break;case 2:Ae=250;break;case 5:Ae=1073741823;break;case 4:Ae=1e4;break;default:Ae=5e3}return Ae=V+Ae,U={id:u++,callback:B,priorityLevel:U,startTime:V,expirationTime:Ae,sortIndex:-1},V>_e?(U.sortIndex=V,e(l,U),r(c)===null&&U===r(l)&&(y?(g(P),P=-1):y=!0,Ic(E,V-_e))):(U.sortIndex=Ae,e(c,U),v||p||(v=!0,Tc(b))),U},t.unstable_shouldYield=gt,t.unstable_wrapCallback=function(U){var B=h;return function(){var V=h;h=B;try{return U.apply(this,arguments)}finally{h=V}}}})(lp);(function(t){t.exports=lp})(cp);/**
18
18
  * @license React
19
19
  * react-dom.production.min.js
20
20
  *
@@ -22,17 +22,17 @@
22
22
  *
23
23
  * This source code is licensed under the MIT license found in the
24
24
  * LICENSE file in the root directory of this source tree.
25
- */var dp=J.exports,Ct=lp.exports;function S(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 hp=new Set,ki={};function On(t,e){_o(t,e),_o(t+"Capture",e)}function _o(t,e){for(ki[t]=e,t=0;t<e.length;t++)hp.add(e[t])}var Sr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ml=Object.prototype.hasOwnProperty,Jv=/^[: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]*$/,Kd={},Gd={};function Xv(t){return ml.call(Gd,t)?!0:ml.call(Kd,t)?!1:Jv.test(t)?Gd[t]=!0:(Kd[t]=!0,!1)}function Zv(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 ey(t,e,r,n){if(e===null||typeof e>"u"||Zv(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 ot(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 Fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Fe[t]=new ot(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Fe[e]=new ot(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Fe[t]=new ot(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Fe[t]=new ot(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){Fe[t]=new ot(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Fe[t]=new ot(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Fe[t]=new ot(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Fe[t]=new ot(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Fe[t]=new ot(t,5,!1,t.toLowerCase(),null,!1,!1)});var Mu=/[\-:]([a-z])/g;function Uu(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(Mu,Uu);Fe[e]=new ot(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(Mu,Uu);Fe[e]=new ot(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(Mu,Uu);Fe[e]=new ot(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Fe[t]=new ot(t,1,!1,t.toLowerCase(),null,!1,!1)});Fe.xlinkHref=new ot("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Fe[t]=new ot(t,1,!1,t.toLowerCase(),null,!0,!0)});function Lu(t,e,r,n){var o=Fe.hasOwnProperty(e)?Fe[e]:null;(o!==null?o.type!==0:n||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(ey(e,r,o,n)&&(r=null),n||o===null?Xv(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 Ar=dp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ga=Symbol.for("react.element"),Bn=Symbol.for("react.portal"),Kn=Symbol.for("react.fragment"),Hu=Symbol.for("react.strict_mode"),vl=Symbol.for("react.profiler"),fp=Symbol.for("react.provider"),pp=Symbol.for("react.context"),Du=Symbol.for("react.forward_ref"),yl=Symbol.for("react.suspense"),_l=Symbol.for("react.suspense_list"),Fu=Symbol.for("react.memo"),Ur=Symbol.for("react.lazy"),gp=Symbol.for("react.offscreen"),Vd=Symbol.iterator;function jo(t){return t===null||typeof t!="object"?null:(t=Vd&&t[Vd]||t["@@iterator"],typeof t=="function"?t:null)}var ge=Object.assign,Ac;function Zo(t){if(Ac===void 0)try{throw Error()}catch(r){var e=r.stack.trim().match(/\n( *(at )?)/);Ac=e&&e[1]||""}return`
25
+ */var up=J.exports,Ct=cp.exports;function S(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 dp=new Set,ki={};function On(t,e){_o(t,e),_o(t+"Capture",e)}function _o(t,e){for(ki[t]=e,t=0;t<e.length;t++)dp.add(e[t])}var Sr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),ml=Object.prototype.hasOwnProperty,Vv=/^[: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]*$/,Bd={},Kd={};function Wv(t){return ml.call(Kd,t)?!0:ml.call(Bd,t)?!1:Vv.test(t)?Kd[t]=!0:(Bd[t]=!0,!1)}function Yv(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 Qv(t,e,r,n){if(e===null||typeof e>"u"||Yv(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 ot(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 Fe={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){Fe[t]=new ot(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];Fe[e]=new ot(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){Fe[t]=new ot(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){Fe[t]=new ot(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){Fe[t]=new ot(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){Fe[t]=new ot(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){Fe[t]=new ot(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){Fe[t]=new ot(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){Fe[t]=new ot(t,5,!1,t.toLowerCase(),null,!1,!1)});var Mu=/[\-:]([a-z])/g;function Uu(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(Mu,Uu);Fe[e]=new ot(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(Mu,Uu);Fe[e]=new ot(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(Mu,Uu);Fe[e]=new ot(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){Fe[t]=new ot(t,1,!1,t.toLowerCase(),null,!1,!1)});Fe.xlinkHref=new ot("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){Fe[t]=new ot(t,1,!1,t.toLowerCase(),null,!0,!0)});function Lu(t,e,r,n){var o=Fe.hasOwnProperty(e)?Fe[e]:null;(o!==null?o.type!==0:n||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(Qv(e,r,o,n)&&(r=null),n||o===null?Wv(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 Ar=up.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,ga=Symbol.for("react.element"),Bn=Symbol.for("react.portal"),Kn=Symbol.for("react.fragment"),Hu=Symbol.for("react.strict_mode"),vl=Symbol.for("react.profiler"),hp=Symbol.for("react.provider"),fp=Symbol.for("react.context"),Du=Symbol.for("react.forward_ref"),yl=Symbol.for("react.suspense"),_l=Symbol.for("react.suspense_list"),Fu=Symbol.for("react.memo"),Ur=Symbol.for("react.lazy"),pp=Symbol.for("react.offscreen"),Gd=Symbol.iterator;function jo(t){return t===null||typeof t!="object"?null:(t=Gd&&t[Gd]||t["@@iterator"],typeof t=="function"?t:null)}var ge=Object.assign,Ac;function Zo(t){if(Ac===void 0)try{throw Error()}catch(r){var e=r.stack.trim().match(/\n( *(at )?)/);Ac=e&&e[1]||""}return`
26
26
  `+Ac+t}var Rc=!1;function Nc(t,e){if(!t||Rc)return"";Rc=!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
27
  `),i=n.stack.split(`
28
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{Rc=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?Zo(t):""}function ty(t){switch(t.tag){case 5:return Zo(t.type);case 16:return Zo("Lazy");case 13:return Zo("Suspense");case 19:return Zo("SuspenseList");case 0:case 2:case 15:return t=Nc(t.type,!1),t;case 11:return t=Nc(t.type.render,!1),t;case 1:return t=Nc(t.type,!0),t;default:return""}}function El(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 Kn:return"Fragment";case Bn:return"Portal";case vl:return"Profiler";case Hu:return"StrictMode";case yl:return"Suspense";case _l:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case pp:return(t.displayName||"Context")+".Consumer";case fp:return(t._context.displayName||"Context")+".Provider";case Du:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Fu:return e=t.displayName||null,e!==null?e:El(t.type)||"Memo";case Ur:e=t._payload,t=t._init;try{return El(t(e))}catch{}}return null}function ry(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 El(e);case 8:return e===Hu?"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 tn(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function mp(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function ny(t){var e=mp(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 ma(t){t._valueTracker||(t._valueTracker=ny(t))}function vp(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=mp(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function ss(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 wl(t,e){var r=e.checked;return ge({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:t._wrapperState.initialChecked})}function Wd(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=tn(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 yp(t,e){e=e.checked,e!=null&&Lu(t,"checked",e,!1)}function Cl(t,e){yp(t,e);var r=tn(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")?Sl(t,e.type,r):e.hasOwnProperty("defaultValue")&&Sl(t,e.type,tn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Yd(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 Sl(t,e,r){(e!=="number"||ss(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var ei=Array.isArray;function lo(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=""+tn(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 Tl(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(S(91));return ge({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Qd(t,e){var r=e.value;if(r==null){if(r=e.children,e=e.defaultValue,r!=null){if(e!=null)throw Error(S(92));if(ei(r)){if(1<r.length)throw Error(S(93));r=r[0]}e=r}e==null&&(e=""),r=e}t._wrapperState={initialValue:tn(r)}}function _p(t,e){var r=tn(e.value),n=tn(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 Jd(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function Ep(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 Il(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?Ep(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var va,wp=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(va=va||document.createElement("div"),va.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=va.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function bi(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var hi={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},oy=["Webkit","ms","Moz","O"];Object.keys(hi).forEach(function(t){oy.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),hi[e]=hi[t]})});function Cp(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||hi.hasOwnProperty(t)&&hi[t]?(""+e).trim():e+"px"}function Sp(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=Cp(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,o):t[r]=o}}var iy=ge({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 kl(t,e){if(e){if(iy[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(S(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(S(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(S(61))}if(e.style!=null&&typeof e.style!="object")throw Error(S(62))}}function bl(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 Al=null;function zu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Rl=null,uo=null,ho=null;function Xd(t){if(t=oa(t)){if(typeof Rl!="function")throw Error(S(280));var e=t.stateNode;e&&(e=oc(e),Rl(t.stateNode,t.type,e))}}function Tp(t){uo?ho?ho.push(t):ho=[t]:uo=t}function Ip(){if(uo){var t=uo,e=ho;if(ho=uo=null,Xd(t),e)for(t=0;t<e.length;t++)Xd(e[t])}}function kp(t,e){return t(e)}function bp(){}var Pc=!1;function Ap(t,e,r){if(Pc)return t(e,r);Pc=!0;try{return kp(t,e,r)}finally{Pc=!1,(uo!==null||ho!==null)&&(bp(),Ip())}}function Ai(t,e){var r=t.stateNode;if(r===null)return null;var n=oc(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(S(231,e,typeof r));return r}var Nl=!1;if(Sr)try{var qo={};Object.defineProperty(qo,"passive",{get:function(){Nl=!0}}),window.addEventListener("test",qo,qo),window.removeEventListener("test",qo,qo)}catch{Nl=!1}function ay(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 fi=!1,cs=null,ls=!1,Pl=null,sy={onError:function(t){fi=!0,cs=t}};function cy(t,e,r,n,o,i,a,s,c){fi=!1,cs=null,ay.apply(sy,arguments)}function ly(t,e,r,n,o,i,a,s,c){if(cy.apply(this,arguments),fi){if(fi){var l=cs;fi=!1,cs=null}else throw Error(S(198));ls||(ls=!0,Pl=l)}}function xn(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 Rp(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 Zd(t){if(xn(t)!==t)throw Error(S(188))}function uy(t){var e=t.alternate;if(!e){if(e=xn(t),e===null)throw Error(S(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 Zd(o),t;if(i===n)return Zd(o),e;i=i.sibling}throw Error(S(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(S(189))}}if(r.alternate!==n)throw Error(S(190))}if(r.tag!==3)throw Error(S(188));return r.stateNode.current===r?t:e}function Np(t){return t=uy(t),t!==null?Pp(t):null}function Pp(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=Pp(t);if(e!==null)return e;t=t.sibling}return null}var Op=Ct.unstable_scheduleCallback,eh=Ct.unstable_cancelCallback,dy=Ct.unstable_shouldYield,hy=Ct.unstable_requestPaint,we=Ct.unstable_now,fy=Ct.unstable_getCurrentPriorityLevel,$u=Ct.unstable_ImmediatePriority,xp=Ct.unstable_UserBlockingPriority,us=Ct.unstable_NormalPriority,py=Ct.unstable_LowPriority,Mp=Ct.unstable_IdlePriority,ec=null,rr=null;function gy(t){if(rr&&typeof rr.onCommitFiberRoot=="function")try{rr.onCommitFiberRoot(ec,t,void 0,(t.current.flags&128)===128)}catch{}}var Bt=Math.clz32?Math.clz32:yy,my=Math.log,vy=Math.LN2;function yy(t){return t>>>=0,t===0?32:31-(my(t)/vy|0)|0}var ya=64,_a=4194304;function ti(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 ds(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=ti(s):(i&=a,i!==0&&(n=ti(i)))}else a=r&~o,a!==0?n=ti(a):i!==0&&(n=ti(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-Bt(e),o=1<<r,n|=t[r],e&=~o;return n}function _y(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 Ey(t,e){for(var r=t.suspendedLanes,n=t.pingedLanes,o=t.expirationTimes,i=t.pendingLanes;0<i;){var a=31-Bt(i),s=1<<a,c=o[a];c===-1?((s&r)===0||(s&n)!==0)&&(o[a]=_y(s,e)):c<=e&&(t.expiredLanes|=s),i&=~s}}function Ol(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Up(){var t=ya;return ya<<=1,(ya&4194240)===0&&(ya=64),t}function Oc(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function ra(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Bt(e),t[e]=r}function wy(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-Bt(r),i=1<<o;e[o]=0,n[o]=-1,t[o]=-1,r&=~i}}function ju(t,e){var r=t.entangledLanes|=e;for(t=t.entanglements;r;){var n=31-Bt(r),o=1<<n;o&e|t[n]&e&&(t[n]|=e),r&=~o}}var ee=0;function Lp(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var Hp,qu,Dp,Fp,zp,xl=!1,Ea=[],Br=null,Kr=null,Gr=null,Ri=new Map,Ni=new Map,Fr=[],Cy="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 th(t,e){switch(t){case"focusin":case"focusout":Br=null;break;case"dragenter":case"dragleave":Kr=null;break;case"mouseover":case"mouseout":Gr=null;break;case"pointerover":case"pointerout":Ri.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ni.delete(e.pointerId)}}function Bo(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=oa(e),e!==null&&qu(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function Sy(t,e,r,n,o){switch(e){case"focusin":return Br=Bo(Br,t,e,r,n,o),!0;case"dragenter":return Kr=Bo(Kr,t,e,r,n,o),!0;case"mouseover":return Gr=Bo(Gr,t,e,r,n,o),!0;case"pointerover":var i=o.pointerId;return Ri.set(i,Bo(Ri.get(i)||null,t,e,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,Ni.set(i,Bo(Ni.get(i)||null,t,e,r,n,o)),!0}return!1}function $p(t){var e=gn(t.target);if(e!==null){var r=xn(e);if(r!==null){if(e=r.tag,e===13){if(e=Rp(r),e!==null){t.blockedOn=e,zp(t.priority,function(){Dp(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 ja(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var r=Ml(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(r===null){r=t.nativeEvent;var n=new r.constructor(r.type,r);Al=n,r.target.dispatchEvent(n),Al=null}else return e=oa(r),e!==null&&qu(e),t.blockedOn=r,!1;e.shift()}return!0}function rh(t,e,r){ja(t)&&r.delete(e)}function Ty(){xl=!1,Br!==null&&ja(Br)&&(Br=null),Kr!==null&&ja(Kr)&&(Kr=null),Gr!==null&&ja(Gr)&&(Gr=null),Ri.forEach(rh),Ni.forEach(rh)}function Ko(t,e){t.blockedOn===e&&(t.blockedOn=null,xl||(xl=!0,Ct.unstable_scheduleCallback(Ct.unstable_NormalPriority,Ty)))}function Pi(t){function e(o){return Ko(o,t)}if(0<Ea.length){Ko(Ea[0],t);for(var r=1;r<Ea.length;r++){var n=Ea[r];n.blockedOn===t&&(n.blockedOn=null)}}for(Br!==null&&Ko(Br,t),Kr!==null&&Ko(Kr,t),Gr!==null&&Ko(Gr,t),Ri.forEach(e),Ni.forEach(e),r=0;r<Fr.length;r++)n=Fr[r],n.blockedOn===t&&(n.blockedOn=null);for(;0<Fr.length&&(r=Fr[0],r.blockedOn===null);)$p(r),r.blockedOn===null&&Fr.shift()}var fo=Ar.ReactCurrentBatchConfig,hs=!0;function Iy(t,e,r,n){var o=ee,i=fo.transition;fo.transition=null;try{ee=1,Bu(t,e,r,n)}finally{ee=o,fo.transition=i}}function ky(t,e,r,n){var o=ee,i=fo.transition;fo.transition=null;try{ee=4,Bu(t,e,r,n)}finally{ee=o,fo.transition=i}}function Bu(t,e,r,n){if(hs){var o=Ml(t,e,r,n);if(o===null)jc(t,e,n,fs,r),th(t,n);else if(Sy(o,t,e,r,n))n.stopPropagation();else if(th(t,n),e&4&&-1<Cy.indexOf(t)){for(;o!==null;){var i=oa(o);if(i!==null&&Hp(i),i=Ml(t,e,r,n),i===null&&jc(t,e,n,fs,r),i===o)break;o=i}o!==null&&n.stopPropagation()}else jc(t,e,n,null,r)}}var fs=null;function Ml(t,e,r,n){if(fs=null,t=zu(n),t=gn(t),t!==null)if(e=xn(t),e===null)t=null;else if(r=e.tag,r===13){if(t=Rp(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 fs=t,null}function jp(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(fy()){case $u:return 1;case xp:return 4;case us:case py:return 16;case Mp:return 536870912;default:return 16}default:return 16}}var jr=null,Ku=null,qa=null;function qp(){if(qa)return qa;var t,e=Ku,r=e.length,n,o="value"in jr?jr.value:jr.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 qa=o.slice(t,1<n?1-n:void 0)}function Ba(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 wa(){return!0}function nh(){return!1}function Tt(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)?wa:nh,this.isPropagationStopped=nh,this}return ge(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=wa)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=wa)},persist:function(){},isPersistent:wa}),e}var Lo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gu=Tt(Lo),na=ge({},Lo,{view:0,detail:0}),by=Tt(na),xc,Mc,Go,tc=ge({},na,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vu,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!==Go&&(Go&&t.type==="mousemove"?(xc=t.screenX-Go.screenX,Mc=t.screenY-Go.screenY):Mc=xc=0,Go=t),xc)},movementY:function(t){return"movementY"in t?t.movementY:Mc}}),oh=Tt(tc),Ay=ge({},tc,{dataTransfer:0}),Ry=Tt(Ay),Ny=ge({},na,{relatedTarget:0}),Uc=Tt(Ny),Py=ge({},Lo,{animationName:0,elapsedTime:0,pseudoElement:0}),Oy=Tt(Py),xy=ge({},Lo,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),My=Tt(xy),Uy=ge({},Lo,{data:0}),ih=Tt(Uy),Ly={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Hy={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"},Dy={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Fy(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=Dy[t])?!!e[t]:!1}function Vu(){return Fy}var zy=ge({},na,{key:function(t){if(t.key){var e=Ly[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ba(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?Hy[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vu,charCode:function(t){return t.type==="keypress"?Ba(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ba(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),$y=Tt(zy),jy=ge({},tc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ah=Tt(jy),qy=ge({},na,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vu}),By=Tt(qy),Ky=ge({},Lo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Gy=Tt(Ky),Vy=ge({},tc,{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}),Wy=Tt(Vy),Yy=[9,13,27,32],Wu=Sr&&"CompositionEvent"in window,pi=null;Sr&&"documentMode"in document&&(pi=document.documentMode);var Qy=Sr&&"TextEvent"in window&&!pi,Bp=Sr&&(!Wu||pi&&8<pi&&11>=pi),sh=String.fromCharCode(32),ch=!1;function Kp(t,e){switch(t){case"keyup":return Yy.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Gp(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Gn=!1;function Jy(t,e){switch(t){case"compositionend":return Gp(e);case"keypress":return e.which!==32?null:(ch=!0,sh);case"textInput":return t=e.data,t===sh&&ch?null:t;default:return null}}function Xy(t,e){if(Gn)return t==="compositionend"||!Wu&&Kp(t,e)?(t=qp(),qa=Ku=jr=null,Gn=!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 Bp&&e.locale!=="ko"?null:e.data;default:return null}}var Zy={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 lh(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Zy[t.type]:e==="textarea"}function Vp(t,e,r,n){Tp(n),e=ps(e,"onChange"),0<e.length&&(r=new Gu("onChange","change",null,r,n),t.push({event:r,listeners:e}))}var gi=null,Oi=null;function e0(t){og(t,0)}function rc(t){var e=Yn(t);if(vp(e))return t}function t0(t,e){if(t==="change")return e}var Wp=!1;if(Sr){var Lc;if(Sr){var Hc="oninput"in document;if(!Hc){var uh=document.createElement("div");uh.setAttribute("oninput","return;"),Hc=typeof uh.oninput=="function"}Lc=Hc}else Lc=!1;Wp=Lc&&(!document.documentMode||9<document.documentMode)}function dh(){gi&&(gi.detachEvent("onpropertychange",Yp),Oi=gi=null)}function Yp(t){if(t.propertyName==="value"&&rc(Oi)){var e=[];Vp(e,Oi,t,zu(t)),Ap(e0,e)}}function r0(t,e,r){t==="focusin"?(dh(),gi=e,Oi=r,gi.attachEvent("onpropertychange",Yp)):t==="focusout"&&dh()}function n0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return rc(Oi)}function o0(t,e){if(t==="click")return rc(e)}function i0(t,e){if(t==="input"||t==="change")return rc(e)}function a0(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Vt=typeof Object.is=="function"?Object.is:a0;function xi(t,e){if(Vt(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(!ml.call(e,o)||!Vt(t[o],e[o]))return!1}return!0}function hh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function fh(t,e){var r=hh(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=hh(r)}}function Qp(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Qp(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Jp(){for(var t=window,e=ss();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=ss(t.document)}return e}function Yu(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 s0(t){var e=Jp(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&Qp(r.ownerDocument.documentElement,r)){if(n!==null&&Yu(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=fh(r,i);var a=fh(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 c0=Sr&&"documentMode"in document&&11>=document.documentMode,Vn=null,Ul=null,mi=null,Ll=!1;function ph(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ll||Vn==null||Vn!==ss(n)||(n=Vn,"selectionStart"in n&&Yu(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}),mi&&xi(mi,n)||(mi=n,n=ps(Ul,"onSelect"),0<n.length&&(e=new Gu("onSelect","select",null,e,r),t.push({event:e,listeners:n}),e.target=Vn)))}function Ca(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r}var Wn={animationend:Ca("Animation","AnimationEnd"),animationiteration:Ca("Animation","AnimationIteration"),animationstart:Ca("Animation","AnimationStart"),transitionend:Ca("Transition","TransitionEnd")},Dc={},Xp={};Sr&&(Xp=document.createElement("div").style,"AnimationEvent"in window||(delete Wn.animationend.animation,delete Wn.animationiteration.animation,delete Wn.animationstart.animation),"TransitionEvent"in window||delete Wn.transitionend.transition);function nc(t){if(Dc[t])return Dc[t];if(!Wn[t])return t;var e=Wn[t],r;for(r in e)if(e.hasOwnProperty(r)&&r in Xp)return Dc[t]=e[r];return t}var Zp=nc("animationend"),eg=nc("animationiteration"),tg=nc("animationstart"),rg=nc("transitionend"),ng=new Map,gh="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 nn(t,e){ng.set(t,e),On(e,[t])}for(var Fc=0;Fc<gh.length;Fc++){var zc=gh[Fc],l0=zc.toLowerCase(),u0=zc[0].toUpperCase()+zc.slice(1);nn(l0,"on"+u0)}nn(Zp,"onAnimationEnd");nn(eg,"onAnimationIteration");nn(tg,"onAnimationStart");nn("dblclick","onDoubleClick");nn("focusin","onFocus");nn("focusout","onBlur");nn(rg,"onTransitionEnd");_o("onMouseEnter",["mouseout","mouseover"]);_o("onMouseLeave",["mouseout","mouseover"]);_o("onPointerEnter",["pointerout","pointerover"]);_o("onPointerLeave",["pointerout","pointerover"]);On("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));On("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));On("onBeforeInput",["compositionend","keypress","textInput","paste"]);On("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));On("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));On("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ri="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(" "),d0=new Set("cancel close invalid load scroll toggle".split(" ").concat(ri));function mh(t,e,r){var n=t.type||"unknown-event";t.currentTarget=r,ly(n,e,void 0,t),t.currentTarget=null}function og(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;mh(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;mh(o,s,l),i=c}}}if(ls)throw t=Pl,ls=!1,Pl=null,t}function ae(t,e){var r=e[$l];r===void 0&&(r=e[$l]=new Set);var n=t+"__bubble";r.has(n)||(ig(e,t,2,!1),r.add(n))}function $c(t,e,r){var n=0;e&&(n|=4),ig(r,t,n,e)}var Sa="_reactListening"+Math.random().toString(36).slice(2);function Mi(t){if(!t[Sa]){t[Sa]=!0,hp.forEach(function(r){r!=="selectionchange"&&(d0.has(r)||$c(r,!1,t),$c(r,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Sa]||(e[Sa]=!0,$c("selectionchange",!1,e))}}function ig(t,e,r,n){switch(jp(e)){case 1:var o=Iy;break;case 4:o=ky;break;default:o=Bu}r=o.bind(null,e,r,t),o=void 0,!Nl||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 jc(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=gn(s),a===null)return;if(c=a.tag,c===5||c===6){n=i=a;continue e}s=s.parentNode}}n=n.return}Ap(function(){var l=i,u=zu(r),d=[];e:{var h=ng.get(t);if(h!==void 0){var p=Gu,v=t;switch(t){case"keypress":if(Ba(r)===0)break e;case"keydown":case"keyup":p=$y;break;case"focusin":v="focus",p=Uc;break;case"focusout":v="blur",p=Uc;break;case"beforeblur":case"afterblur":p=Uc;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":p=oh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Ry;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=By;break;case Zp:case eg:case tg:p=Oy;break;case rg:p=Gy;break;case"scroll":p=by;break;case"wheel":p=Wy;break;case"copy":case"cut":case"paste":p=My;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=ah}var y=(e&4)!==0,I=!y&&t==="scroll",g=y?h!==null?h+"Capture":null:h;y=[];for(var f=l,m;f!==null;){m=f;var E=m.stateNode;if(m.tag===5&&E!==null&&(m=E,g!==null&&(E=Ai(f,g),E!=null&&y.push(Ui(f,E,m)))),I)break;f=f.return}0<y.length&&(h=new p(h,v,null,r,u),d.push({event:h,listeners:y}))}}if((e&7)===0){e:{if(h=t==="mouseover"||t==="pointerover",p=t==="mouseout"||t==="pointerout",h&&r!==Al&&(v=r.relatedTarget||r.fromElement)&&(gn(v)||v[Tr]))break e;if((p||h)&&(h=u.window===u?u:(h=u.ownerDocument)?h.defaultView||h.parentWindow:window,p?(v=r.relatedTarget||r.toElement,p=l,v=v?gn(v):null,v!==null&&(I=xn(v),v!==I||v.tag!==5&&v.tag!==6)&&(v=null)):(p=null,v=l),p!==v)){if(y=oh,E="onMouseLeave",g="onMouseEnter",f="mouse",(t==="pointerout"||t==="pointerover")&&(y=ah,E="onPointerLeave",g="onPointerEnter",f="pointer"),I=p==null?h:Yn(p),m=v==null?h:Yn(v),h=new y(E,f+"leave",p,r,u),h.target=I,h.relatedTarget=m,E=null,gn(u)===l&&(y=new y(g,f+"enter",v,r,u),y.target=m,y.relatedTarget=I,E=y),I=E,p&&v)t:{for(y=p,g=v,f=0,m=y;m;m=Mn(m))f++;for(m=0,E=g;E;E=Mn(E))m++;for(;0<f-m;)y=Mn(y),f--;for(;0<m-f;)g=Mn(g),m--;for(;f--;){if(y===g||g!==null&&y===g.alternate)break t;y=Mn(y),g=Mn(g)}y=null}else y=null;p!==null&&vh(d,h,p,y,!1),v!==null&&I!==null&&vh(d,I,v,y,!0)}}e:{if(h=l?Yn(l):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var b=t0;else if(lh(h))if(Wp)b=i0;else{b=n0;var R=r0}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(b=o0);if(b&&(b=b(t,l))){Vp(d,b,r,u);break e}R&&R(t,h,l),t==="focusout"&&(R=h._wrapperState)&&R.controlled&&h.type==="number"&&Sl(h,"number",h.value)}switch(R=l?Yn(l):window,t){case"focusin":(lh(R)||R.contentEditable==="true")&&(Vn=R,Ul=l,mi=null);break;case"focusout":mi=Ul=Vn=null;break;case"mousedown":Ll=!0;break;case"contextmenu":case"mouseup":case"dragend":Ll=!1,ph(d,r,u);break;case"selectionchange":if(c0)break;case"keydown":case"keyup":ph(d,r,u)}var x;if(Wu)e:{switch(t){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Gn?Kp(t,r)&&(P="onCompositionEnd"):t==="keydown"&&r.keyCode===229&&(P="onCompositionStart");P&&(Bp&&r.locale!=="ko"&&(Gn||P!=="onCompositionStart"?P==="onCompositionEnd"&&Gn&&(x=qp()):(jr=u,Ku="value"in jr?jr.value:jr.textContent,Gn=!0)),R=ps(l,P),0<R.length&&(P=new ih(P,t,null,r,u),d.push({event:P,listeners:R}),x?P.data=x:(x=Gp(r),x!==null&&(P.data=x)))),(x=Qy?Jy(t,r):Xy(t,r))&&(l=ps(l,"onBeforeInput"),0<l.length&&(u=new ih("onBeforeInput","beforeinput",null,r,u),d.push({event:u,listeners:l}),u.data=x))}og(d,e)})}function Ui(t,e,r){return{instance:t,listener:e,currentTarget:r}}function ps(t,e){for(var r=e+"Capture",n=[];t!==null;){var o=t,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Ai(t,r),i!=null&&n.unshift(Ui(t,i,o)),i=Ai(t,e),i!=null&&n.push(Ui(t,i,o))),t=t.return}return n}function Mn(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function vh(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=Ai(r,i),c!=null&&a.unshift(Ui(r,c,s))):o||(c=Ai(r,i),c!=null&&a.push(Ui(r,c,s)))),r=r.return}a.length!==0&&t.push({event:e,listeners:a})}var h0=/\r\n?/g,f0=/\u0000|\uFFFD/g;function yh(t){return(typeof t=="string"?t:""+t).replace(h0,`
30
- `).replace(f0,"")}function Ta(t,e,r){if(e=yh(e),yh(t)!==e&&r)throw Error(S(425))}function gs(){}var Hl=null,Dl=null;function Fl(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 zl=typeof setTimeout=="function"?setTimeout:void 0,p0=typeof clearTimeout=="function"?clearTimeout:void 0,_h=typeof Promise=="function"?Promise:void 0,g0=typeof queueMicrotask=="function"?queueMicrotask:typeof _h<"u"?function(t){return _h.resolve(null).then(t).catch(m0)}:zl;function m0(t){setTimeout(function(){throw t})}function qc(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),Pi(e);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=o}while(r);Pi(e)}function Vr(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 Eh(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 Ho=Math.random().toString(36).slice(2),Zt="__reactFiber$"+Ho,Li="__reactProps$"+Ho,Tr="__reactContainer$"+Ho,$l="__reactEvents$"+Ho,v0="__reactListeners$"+Ho,y0="__reactHandles$"+Ho;function gn(t){var e=t[Zt];if(e)return e;for(var r=t.parentNode;r;){if(e=r[Tr]||r[Zt]){if(r=e.alternate,e.child!==null||r!==null&&r.child!==null)for(t=Eh(t);t!==null;){if(r=t[Zt])return r;t=Eh(t)}return e}t=r,r=t.parentNode}return null}function oa(t){return t=t[Zt]||t[Tr],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Yn(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(S(33))}function oc(t){return t[Li]||null}var jl=[],Qn=-1;function on(t){return{current:t}}function ce(t){0>Qn||(t.current=jl[Qn],jl[Qn]=null,Qn--)}function ie(t,e){Qn++,jl[Qn]=t.current,t.current=e}var rn={},Qe=on(rn),lt=on(!1),Sn=rn;function Eo(t,e){var r=t.type.contextTypes;if(!r)return rn;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 ut(t){return t=t.childContextTypes,t!=null}function ms(){ce(lt),ce(Qe)}function wh(t,e,r){if(Qe.current!==rn)throw Error(S(168));ie(Qe,e),ie(lt,r)}function ag(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(S(108,ry(t)||"Unknown",o));return ge({},r,n)}function vs(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||rn,Sn=Qe.current,ie(Qe,t),ie(lt,lt.current),!0}function Ch(t,e,r){var n=t.stateNode;if(!n)throw Error(S(169));r?(t=ag(t,e,Sn),n.__reactInternalMemoizedMergedChildContext=t,ce(lt),ce(Qe),ie(Qe,t)):ce(lt),ie(lt,r)}var fr=null,ic=!1,Bc=!1;function sg(t){fr===null?fr=[t]:fr.push(t)}function _0(t){ic=!0,sg(t)}function an(){if(!Bc&&fr!==null){Bc=!0;var t=0,e=ee;try{var r=fr;for(ee=1;t<r.length;t++){var n=r[t];do n=n(!0);while(n!==null)}fr=null,ic=!1}catch(o){throw fr!==null&&(fr=fr.slice(t+1)),Op($u,an),o}finally{ee=e,Bc=!1}}return null}var Jn=[],Xn=0,ys=null,_s=0,bt=[],At=0,Tn=null,pr=1,gr="";function dn(t,e){Jn[Xn++]=_s,Jn[Xn++]=ys,ys=t,_s=e}function cg(t,e,r){bt[At++]=pr,bt[At++]=gr,bt[At++]=Tn,Tn=t;var n=pr;t=gr;var o=32-Bt(n)-1;n&=~(1<<o),r+=1;var i=32-Bt(e)+o;if(30<i){var a=o-o%5;i=(n&(1<<a)-1).toString(32),n>>=a,o-=a,pr=1<<32-Bt(e)+o|r<<o|n,gr=i+t}else pr=1<<i|r<<o|n,gr=t}function Qu(t){t.return!==null&&(dn(t,1),cg(t,1,0))}function Ju(t){for(;t===ys;)ys=Jn[--Xn],Jn[Xn]=null,_s=Jn[--Xn],Jn[Xn]=null;for(;t===Tn;)Tn=bt[--At],bt[At]=null,gr=bt[--At],bt[At]=null,pr=bt[--At],bt[At]=null}var Et=null,yt=null,ue=!1,$t=null;function lg(t,e){var r=Nt(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 Sh(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,Et=t,yt=Vr(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,Et=t,yt=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(r=Tn!==null?{id:pr,overflow:gr}:null,t.memoizedState={dehydrated:e,treeContext:r,retryLane:1073741824},r=Nt(18,null,null,0),r.stateNode=e,r.return=t,t.child=r,Et=t,yt=null,!0):!1;default:return!1}}function ql(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Bl(t){if(ue){var e=yt;if(e){var r=e;if(!Sh(t,e)){if(ql(t))throw Error(S(418));e=Vr(r.nextSibling);var n=Et;e&&Sh(t,e)?lg(n,r):(t.flags=t.flags&-4097|2,ue=!1,Et=t)}}else{if(ql(t))throw Error(S(418));t.flags=t.flags&-4097|2,ue=!1,Et=t}}}function Th(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Et=t}function Ia(t){if(t!==Et)return!1;if(!ue)return Th(t),ue=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Fl(t.type,t.memoizedProps)),e&&(e=yt)){if(ql(t))throw ug(),Error(S(418));for(;e;)lg(t,e),e=Vr(e.nextSibling)}if(Th(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(S(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="/$"){if(e===0){yt=Vr(t.nextSibling);break e}e--}else r!=="$"&&r!=="$!"&&r!=="$?"||e++}t=t.nextSibling}yt=null}}else yt=Et?Vr(t.stateNode.nextSibling):null;return!0}function ug(){for(var t=yt;t;)t=Vr(t.nextSibling)}function wo(){yt=Et=null,ue=!1}function Xu(t){$t===null?$t=[t]:$t.push(t)}var E0=Ar.ReactCurrentBatchConfig;function Ft(t,e){if(t&&t.defaultProps){e=ge({},e),t=t.defaultProps;for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e}return e}var Es=on(null),ws=null,Zn=null,Zu=null;function ed(){Zu=Zn=ws=null}function td(t){var e=Es.current;ce(Es),t._currentValue=e}function Kl(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 po(t,e){ws=t,Zu=Zn=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&e)!==0&&(ct=!0),t.firstContext=null)}function xt(t){var e=t._currentValue;if(Zu!==t)if(t={context:t,memoizedValue:e,next:null},Zn===null){if(ws===null)throw Error(S(308));Zn=t,ws.dependencies={lanes:0,firstContext:t}}else Zn=Zn.next=t;return e}var mn=null;function rd(t){mn===null?mn=[t]:mn.push(t)}function dg(t,e,r,n){var o=e.interleaved;return o===null?(r.next=r,rd(e)):(r.next=o.next,o.next=r),e.interleaved=r,Ir(t,n)}function Ir(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 Lr=!1;function nd(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function hg(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 yr(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Wr(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(Y&2)!==0){var o=n.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),n.pending=e,Ir(t,r)}return o=n.interleaved,o===null?(e.next=e,rd(n)):(e.next=o.next,o.next=e),n.interleaved=e,Ir(t,r)}function Ka(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,ju(t,r)}}function Ih(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 Cs(t,e,r,n){var o=t.updateQueue;Lr=!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 d=o.baseState;a=0,u=l=c=null,s=i;do{var h=s.lane,p=s.eventTime;if((n&h)===h){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=t,y=s;switch(h=e,p=r,y.tag){case 1:if(v=y.payload,typeof v=="function"){d=v.call(p,d,h);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,h=typeof v=="function"?v.call(p,d,h):v,h==null)break e;d=ge({},d,h);break e;case 2:Lr=!0}}s.callback!==null&&s.lane!==0&&(t.flags|=64,h=o.effects,h===null?o.effects=[s]:h.push(s))}else p={eventTime:p,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,a|=h;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;h=s,s=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(1);if(u===null&&(c=d),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);kn|=a,t.lanes=a,t.memoizedState=d}}function kh(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(S(191,o));o.call(n)}}}var fg=new dp.Component().refs;function Gl(t,e,r,n){e=t.memoizedState,r=r(n,e),r=r==null?e:ge({},e,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var ac={isMounted:function(t){return(t=t._reactInternals)?xn(t)===t:!1},enqueueSetState:function(t,e,r){t=t._reactInternals;var n=rt(),o=Qr(t),i=yr(n,o);i.payload=e,r!=null&&(i.callback=r),e=Wr(t,i,o),e!==null&&(Kt(e,t,o,n),Ka(e,t,o))},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=rt(),o=Qr(t),i=yr(n,o);i.tag=1,i.payload=e,r!=null&&(i.callback=r),e=Wr(t,i,o),e!==null&&(Kt(e,t,o,n),Ka(e,t,o))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=rt(),n=Qr(t),o=yr(r,n);o.tag=2,e!=null&&(o.callback=e),e=Wr(t,o,n),e!==null&&(Kt(e,t,n,r),Ka(e,t,n))}};function bh(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?!xi(r,n)||!xi(o,i):!0}function pg(t,e,r){var n=!1,o=rn,i=e.contextType;return typeof i=="object"&&i!==null?i=xt(i):(o=ut(e)?Sn:Qe.current,n=e.contextTypes,i=(n=n!=null)?Eo(t,o):rn),e=new e(r,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=ac,t.stateNode=e,e._reactInternals=t,n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=o,t.__reactInternalMemoizedMaskedChildContext=i),e}function Ah(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&&ac.enqueueReplaceState(e,e.state,null)}function Vl(t,e,r,n){var o=t.stateNode;o.props=r,o.state=t.memoizedState,o.refs=fg,nd(t);var i=e.contextType;typeof i=="object"&&i!==null?o.context=xt(i):(i=ut(e)?Sn:Qe.current,o.context=Eo(t,i)),o.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(Gl(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&&ac.enqueueReplaceState(o,o.state,null),Cs(t,r,o,n),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308)}function Vo(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(S(309));var n=r.stateNode}if(!n)throw Error(S(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===fg&&(s=o.refs={}),a===null?delete s[i]:s[i]=a},e._stringRef=i,e)}if(typeof t!="string")throw Error(S(284));if(!r._owner)throw Error(S(290,t))}return t}function ka(t,e){throw t=Object.prototype.toString.call(e),Error(S(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Rh(t){var e=t._init;return e(t._payload)}function gg(t){function e(g,f){if(t){var m=g.deletions;m===null?(g.deletions=[f],g.flags|=16):m.push(f)}}function r(g,f){if(!t)return null;for(;f!==null;)e(g,f),f=f.sibling;return null}function n(g,f){for(g=new Map;f!==null;)f.key!==null?g.set(f.key,f):g.set(f.index,f),f=f.sibling;return g}function o(g,f){return g=Jr(g,f),g.index=0,g.sibling=null,g}function i(g,f,m){return g.index=m,t?(m=g.alternate,m!==null?(m=m.index,m<f?(g.flags|=2,f):m):(g.flags|=2,f)):(g.flags|=1048576,f)}function a(g){return t&&g.alternate===null&&(g.flags|=2),g}function s(g,f,m,E){return f===null||f.tag!==6?(f=Jc(m,g.mode,E),f.return=g,f):(f=o(f,m),f.return=g,f)}function c(g,f,m,E){var b=m.type;return b===Kn?u(g,f,m.props.children,E,m.key):f!==null&&(f.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Ur&&Rh(b)===f.type)?(E=o(f,m.props),E.ref=Vo(g,f,m),E.return=g,E):(E=Ja(m.type,m.key,m.props,null,g.mode,E),E.ref=Vo(g,f,m),E.return=g,E)}function l(g,f,m,E){return f===null||f.tag!==4||f.stateNode.containerInfo!==m.containerInfo||f.stateNode.implementation!==m.implementation?(f=Xc(m,g.mode,E),f.return=g,f):(f=o(f,m.children||[]),f.return=g,f)}function u(g,f,m,E,b){return f===null||f.tag!==7?(f=En(m,g.mode,E,b),f.return=g,f):(f=o(f,m),f.return=g,f)}function d(g,f,m){if(typeof f=="string"&&f!==""||typeof f=="number")return f=Jc(""+f,g.mode,m),f.return=g,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case ga:return m=Ja(f.type,f.key,f.props,null,g.mode,m),m.ref=Vo(g,null,f),m.return=g,m;case Bn:return f=Xc(f,g.mode,m),f.return=g,f;case Ur:var E=f._init;return d(g,E(f._payload),m)}if(ei(f)||jo(f))return f=En(f,g.mode,m,null),f.return=g,f;ka(g,f)}return null}function h(g,f,m,E){var b=f!==null?f.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return b!==null?null:s(g,f,""+m,E);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case ga:return m.key===b?c(g,f,m,E):null;case Bn:return m.key===b?l(g,f,m,E):null;case Ur:return b=m._init,h(g,f,b(m._payload),E)}if(ei(m)||jo(m))return b!==null?null:u(g,f,m,E,null);ka(g,m)}return null}function p(g,f,m,E,b){if(typeof E=="string"&&E!==""||typeof E=="number")return g=g.get(m)||null,s(f,g,""+E,b);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case ga:return g=g.get(E.key===null?m:E.key)||null,c(f,g,E,b);case Bn:return g=g.get(E.key===null?m:E.key)||null,l(f,g,E,b);case Ur:var R=E._init;return p(g,f,m,R(E._payload),b)}if(ei(E)||jo(E))return g=g.get(m)||null,u(f,g,E,b,null);ka(f,E)}return null}function v(g,f,m,E){for(var b=null,R=null,x=f,P=f=0,he=null;x!==null&&P<m.length;P++){x.index>P?(he=x,x=null):he=x.sibling;var K=h(g,x,m[P],E);if(K===null){x===null&&(x=he);break}t&&x&&K.alternate===null&&e(g,x),f=i(K,f,P),R===null?b=K:R.sibling=K,R=K,x=he}if(P===m.length)return r(g,x),ue&&dn(g,P),b;if(x===null){for(;P<m.length;P++)x=d(g,m[P],E),x!==null&&(f=i(x,f,P),R===null?b=x:R.sibling=x,R=x);return ue&&dn(g,P),b}for(x=n(g,x);P<m.length;P++)he=p(x,g,P,m[P],E),he!==null&&(t&&he.alternate!==null&&x.delete(he.key===null?P:he.key),f=i(he,f,P),R===null?b=he:R.sibling=he,R=he);return t&&x.forEach(function(gt){return e(g,gt)}),ue&&dn(g,P),b}function y(g,f,m,E){var b=jo(m);if(typeof b!="function")throw Error(S(150));if(m=b.call(m),m==null)throw Error(S(151));for(var R=b=null,x=f,P=f=0,he=null,K=m.next();x!==null&&!K.done;P++,K=m.next()){x.index>P?(he=x,x=null):he=x.sibling;var gt=h(g,x,K.value,E);if(gt===null){x===null&&(x=he);break}t&&x&&gt.alternate===null&&e(g,x),f=i(gt,f,P),R===null?b=gt:R.sibling=gt,R=gt,x=he}if(K.done)return r(g,x),ue&&dn(g,P),b;if(x===null){for(;!K.done;P++,K=m.next())K=d(g,K.value,E),K!==null&&(f=i(K,f,P),R===null?b=K:R.sibling=K,R=K);return ue&&dn(g,P),b}for(x=n(g,x);!K.done;P++,K=m.next())K=p(x,g,P,K.value,E),K!==null&&(t&&K.alternate!==null&&x.delete(K.key===null?P:K.key),f=i(K,f,P),R===null?b=K:R.sibling=K,R=K);return t&&x.forEach(function(zo){return e(g,zo)}),ue&&dn(g,P),b}function I(g,f,m,E){if(typeof m=="object"&&m!==null&&m.type===Kn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case ga:e:{for(var b=m.key,R=f;R!==null;){if(R.key===b){if(b=m.type,b===Kn){if(R.tag===7){r(g,R.sibling),f=o(R,m.props.children),f.return=g,g=f;break e}}else if(R.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Ur&&Rh(b)===R.type){r(g,R.sibling),f=o(R,m.props),f.ref=Vo(g,R,m),f.return=g,g=f;break e}r(g,R);break}else e(g,R);R=R.sibling}m.type===Kn?(f=En(m.props.children,g.mode,E,m.key),f.return=g,g=f):(E=Ja(m.type,m.key,m.props,null,g.mode,E),E.ref=Vo(g,f,m),E.return=g,g=E)}return a(g);case Bn:e:{for(R=m.key;f!==null;){if(f.key===R)if(f.tag===4&&f.stateNode.containerInfo===m.containerInfo&&f.stateNode.implementation===m.implementation){r(g,f.sibling),f=o(f,m.children||[]),f.return=g,g=f;break e}else{r(g,f);break}else e(g,f);f=f.sibling}f=Xc(m,g.mode,E),f.return=g,g=f}return a(g);case Ur:return R=m._init,I(g,f,R(m._payload),E)}if(ei(m))return v(g,f,m,E);if(jo(m))return y(g,f,m,E);ka(g,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,f!==null&&f.tag===6?(r(g,f.sibling),f=o(f,m),f.return=g,g=f):(r(g,f),f=Jc(m,g.mode,E),f.return=g,g=f),a(g)):r(g,f)}return I}var Co=gg(!0),mg=gg(!1),ia={},nr=on(ia),Hi=on(ia),Di=on(ia);function vn(t){if(t===ia)throw Error(S(174));return t}function od(t,e){switch(ie(Di,e),ie(Hi,t),ie(nr,ia),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Il(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Il(e,t)}ce(nr),ie(nr,e)}function So(){ce(nr),ce(Hi),ce(Di)}function vg(t){vn(Di.current);var e=vn(nr.current),r=Il(e,t.type);e!==r&&(ie(Hi,t),ie(nr,r))}function id(t){Hi.current===t&&(ce(nr),ce(Hi))}var fe=on(0);function Ss(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 Kc=[];function ad(){for(var t=0;t<Kc.length;t++)Kc[t]._workInProgressVersionPrimary=null;Kc.length=0}var Ga=Ar.ReactCurrentDispatcher,Gc=Ar.ReactCurrentBatchConfig,In=0,pe=null,Ie=null,Re=null,Ts=!1,vi=!1,Fi=0,w0=0;function $e(){throw Error(S(321))}function sd(t,e){if(e===null)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!Vt(t[r],e[r]))return!1;return!0}function cd(t,e,r,n,o,i){if(In=i,pe=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Ga.current=t===null||t.memoizedState===null?I0:k0,t=r(n,o),vi){i=0;do{if(vi=!1,Fi=0,25<=i)throw Error(S(301));i+=1,Re=Ie=null,e.updateQueue=null,Ga.current=b0,t=r(n,o)}while(vi)}if(Ga.current=Is,e=Ie!==null&&Ie.next!==null,In=0,Re=Ie=pe=null,Ts=!1,e)throw Error(S(300));return t}function ld(){var t=Fi!==0;return Fi=0,t}function Jt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Re===null?pe.memoizedState=Re=t:Re=Re.next=t,Re}function Mt(){if(Ie===null){var t=pe.alternate;t=t!==null?t.memoizedState:null}else t=Ie.next;var e=Re===null?pe.memoizedState:Re.next;if(e!==null)Re=e,Ie=t;else{if(t===null)throw Error(S(310));Ie=t,t={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},Re===null?pe.memoizedState=Re=t:Re=Re.next=t}return Re}function zi(t,e){return typeof e=="function"?e(t):e}function Vc(t){var e=Mt(),r=e.queue;if(r===null)throw Error(S(311));r.lastRenderedReducer=t;var n=Ie,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((In&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 d={lane:u,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};c===null?(s=c=d,a=n):c=c.next=d,pe.lanes|=u,kn|=u}l=l.next}while(l!==null&&l!==i);c===null?a=n:c.next=s,Vt(n,e.memoizedState)||(ct=!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,pe.lanes|=i,kn|=i,o=o.next;while(o!==t)}else o===null&&(r.lanes=0);return[e.memoizedState,r.dispatch]}function Wc(t){var e=Mt(),r=e.queue;if(r===null)throw Error(S(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);Vt(i,e.memoizedState)||(ct=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),r.lastRenderedState=i}return[i,n]}function yg(){}function _g(t,e){var r=pe,n=Mt(),o=e(),i=!Vt(n.memoizedState,o);if(i&&(n.memoizedState=o,ct=!0),n=n.queue,ud(Cg.bind(null,r,n,t),[t]),n.getSnapshot!==e||i||Re!==null&&Re.memoizedState.tag&1){if(r.flags|=2048,$i(9,wg.bind(null,r,n,o,e),void 0,null),Oe===null)throw Error(S(349));(In&30)!==0||Eg(r,e,o)}return o}function Eg(t,e,r){t.flags|=16384,t={getSnapshot:e,value:r},e=pe.updateQueue,e===null?(e={lastEffect:null,stores:null},pe.updateQueue=e,e.stores=[t]):(r=e.stores,r===null?e.stores=[t]:r.push(t))}function wg(t,e,r,n){e.value=r,e.getSnapshot=n,Sg(e)&&Tg(t)}function Cg(t,e,r){return r(function(){Sg(e)&&Tg(t)})}function Sg(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!Vt(t,r)}catch{return!0}}function Tg(t){var e=Ir(t,1);e!==null&&Kt(e,t,1,-1)}function Nh(t){var e=Jt();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:zi,lastRenderedState:t},e.queue=t,t=t.dispatch=T0.bind(null,pe,t),[e.memoizedState,t]}function $i(t,e,r,n){return t={tag:t,create:e,destroy:r,deps:n,next:null},e=pe.updateQueue,e===null?(e={lastEffect:null,stores:null},pe.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 Ig(){return Mt().memoizedState}function Va(t,e,r,n){var o=Jt();pe.flags|=t,o.memoizedState=$i(1|e,r,void 0,n===void 0?null:n)}function sc(t,e,r,n){var o=Mt();n=n===void 0?null:n;var i=void 0;if(Ie!==null){var a=Ie.memoizedState;if(i=a.destroy,n!==null&&sd(n,a.deps)){o.memoizedState=$i(e,r,i,n);return}}pe.flags|=t,o.memoizedState=$i(1|e,r,i,n)}function Ph(t,e){return Va(8390656,8,t,e)}function ud(t,e){return sc(2048,8,t,e)}function kg(t,e){return sc(4,2,t,e)}function bg(t,e){return sc(4,4,t,e)}function Ag(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 Rg(t,e,r){return r=r!=null?r.concat([t]):null,sc(4,4,Ag.bind(null,e,t),r)}function dd(){}function Ng(t,e){var r=Mt();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&sd(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function Pg(t,e){var r=Mt();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&sd(e,n[1])?n[0]:(t=t(),r.memoizedState=[t,e],t)}function Og(t,e,r){return(In&21)===0?(t.baseState&&(t.baseState=!1,ct=!0),t.memoizedState=r):(Vt(r,e)||(r=Up(),pe.lanes|=r,kn|=r,t.baseState=!0),e)}function C0(t,e){var r=ee;ee=r!==0&&4>r?r:4,t(!0);var n=Gc.transition;Gc.transition={};try{t(!1),e()}finally{ee=r,Gc.transition=n}}function xg(){return Mt().memoizedState}function S0(t,e,r){var n=Qr(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Mg(t))Ug(e,r);else if(r=dg(t,e,r,n),r!==null){var o=rt();Kt(r,t,n,o),Lg(r,e,n)}}function T0(t,e,r){var n=Qr(t),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Mg(t))Ug(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,Vt(s,a)){var c=e.interleaved;c===null?(o.next=o,rd(e)):(o.next=c.next,c.next=o),e.interleaved=o;return}}catch{}finally{}r=dg(t,e,o,n),r!==null&&(o=rt(),Kt(r,t,n,o),Lg(r,e,n))}}function Mg(t){var e=t.alternate;return t===pe||e!==null&&e===pe}function Ug(t,e){vi=Ts=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function Lg(t,e,r){if((r&4194240)!==0){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,ju(t,r)}}var Is={readContext:xt,useCallback:$e,useContext:$e,useEffect:$e,useImperativeHandle:$e,useInsertionEffect:$e,useLayoutEffect:$e,useMemo:$e,useReducer:$e,useRef:$e,useState:$e,useDebugValue:$e,useDeferredValue:$e,useTransition:$e,useMutableSource:$e,useSyncExternalStore:$e,useId:$e,unstable_isNewReconciler:!1},I0={readContext:xt,useCallback:function(t,e){return Jt().memoizedState=[t,e===void 0?null:e],t},useContext:xt,useEffect:Ph,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,Va(4194308,4,Ag.bind(null,e,t),r)},useLayoutEffect:function(t,e){return Va(4194308,4,t,e)},useInsertionEffect:function(t,e){return Va(4,2,t,e)},useMemo:function(t,e){var r=Jt();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=Jt();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=S0.bind(null,pe,t),[n.memoizedState,t]},useRef:function(t){var e=Jt();return t={current:t},e.memoizedState=t},useState:Nh,useDebugValue:dd,useDeferredValue:function(t){return Jt().memoizedState=t},useTransition:function(){var t=Nh(!1),e=t[0];return t=C0.bind(null,t[1]),Jt().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=pe,o=Jt();if(ue){if(r===void 0)throw Error(S(407));r=r()}else{if(r=e(),Oe===null)throw Error(S(349));(In&30)!==0||Eg(n,e,r)}o.memoizedState=r;var i={value:r,getSnapshot:e};return o.queue=i,Ph(Cg.bind(null,n,i,t),[t]),n.flags|=2048,$i(9,wg.bind(null,n,i,r,e),void 0,null),r},useId:function(){var t=Jt(),e=Oe.identifierPrefix;if(ue){var r=gr,n=pr;r=(n&~(1<<32-Bt(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=Fi++,0<r&&(e+="H"+r.toString(32)),e+=":"}else r=w0++,e=":"+e+"r"+r.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},k0={readContext:xt,useCallback:Ng,useContext:xt,useEffect:ud,useImperativeHandle:Rg,useInsertionEffect:kg,useLayoutEffect:bg,useMemo:Pg,useReducer:Vc,useRef:Ig,useState:function(){return Vc(zi)},useDebugValue:dd,useDeferredValue:function(t){var e=Mt();return Og(e,Ie.memoizedState,t)},useTransition:function(){var t=Vc(zi)[0],e=Mt().memoizedState;return[t,e]},useMutableSource:yg,useSyncExternalStore:_g,useId:xg,unstable_isNewReconciler:!1},b0={readContext:xt,useCallback:Ng,useContext:xt,useEffect:ud,useImperativeHandle:Rg,useInsertionEffect:kg,useLayoutEffect:bg,useMemo:Pg,useReducer:Wc,useRef:Ig,useState:function(){return Wc(zi)},useDebugValue:dd,useDeferredValue:function(t){var e=Mt();return Ie===null?e.memoizedState=t:Og(e,Ie.memoizedState,t)},useTransition:function(){var t=Wc(zi)[0],e=Mt().memoizedState;return[t,e]},useMutableSource:yg,useSyncExternalStore:_g,useId:xg,unstable_isNewReconciler:!1};function To(t,e){try{var r="",n=e;do r+=ty(n),n=n.return;while(n);var o=r}catch(i){o=`
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{Rc=!1,Error.prepareStackTrace=r}return(t=t?t.displayName||t.name:"")?Zo(t):""}function Jv(t){switch(t.tag){case 5:return Zo(t.type);case 16:return Zo("Lazy");case 13:return Zo("Suspense");case 19:return Zo("SuspenseList");case 0:case 2:case 15:return t=Nc(t.type,!1),t;case 11:return t=Nc(t.type.render,!1),t;case 1:return t=Nc(t.type,!0),t;default:return""}}function El(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 Kn:return"Fragment";case Bn:return"Portal";case vl:return"Profiler";case Hu:return"StrictMode";case yl:return"Suspense";case _l:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case fp:return(t.displayName||"Context")+".Consumer";case hp:return(t._context.displayName||"Context")+".Provider";case Du:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Fu:return e=t.displayName||null,e!==null?e:El(t.type)||"Memo";case Ur:e=t._payload,t=t._init;try{return El(t(e))}catch{}}return null}function Xv(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 El(e);case 8:return e===Hu?"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 tn(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function gp(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Zv(t){var e=gp(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 ma(t){t._valueTracker||(t._valueTracker=Zv(t))}function mp(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=gp(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function ss(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 wl(t,e){var r=e.checked;return ge({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r!=null?r:t._wrapperState.initialChecked})}function Vd(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=tn(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 vp(t,e){e=e.checked,e!=null&&Lu(t,"checked",e,!1)}function Cl(t,e){vp(t,e);var r=tn(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")?Sl(t,e.type,r):e.hasOwnProperty("defaultValue")&&Sl(t,e.type,tn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Wd(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 Sl(t,e,r){(e!=="number"||ss(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var ei=Array.isArray;function lo(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=""+tn(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 Tl(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(S(91));return ge({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function Yd(t,e){var r=e.value;if(r==null){if(r=e.children,e=e.defaultValue,r!=null){if(e!=null)throw Error(S(92));if(ei(r)){if(1<r.length)throw Error(S(93));r=r[0]}e=r}e==null&&(e=""),r=e}t._wrapperState={initialValue:tn(r)}}function yp(t,e){var r=tn(e.value),n=tn(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 Qd(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function _p(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 Il(t,e){return t==null||t==="http://www.w3.org/1999/xhtml"?_p(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var va,Ep=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(va=va||document.createElement("div"),va.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=va.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function bi(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var hi={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},ey=["Webkit","ms","Moz","O"];Object.keys(hi).forEach(function(t){ey.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),hi[e]=hi[t]})});function wp(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||hi.hasOwnProperty(t)&&hi[t]?(""+e).trim():e+"px"}function Cp(t,e){t=t.style;for(var r in e)if(e.hasOwnProperty(r)){var n=r.indexOf("--")===0,o=wp(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,o):t[r]=o}}var ty=ge({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 kl(t,e){if(e){if(ty[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(S(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(S(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(S(61))}if(e.style!=null&&typeof e.style!="object")throw Error(S(62))}}function bl(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 Al=null;function zu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var Rl=null,uo=null,ho=null;function Jd(t){if(t=oa(t)){if(typeof Rl!="function")throw Error(S(280));var e=t.stateNode;e&&(e=oc(e),Rl(t.stateNode,t.type,e))}}function Sp(t){uo?ho?ho.push(t):ho=[t]:uo=t}function Tp(){if(uo){var t=uo,e=ho;if(ho=uo=null,Jd(t),e)for(t=0;t<e.length;t++)Jd(e[t])}}function Ip(t,e){return t(e)}function kp(){}var Pc=!1;function bp(t,e,r){if(Pc)return t(e,r);Pc=!0;try{return Ip(t,e,r)}finally{Pc=!1,(uo!==null||ho!==null)&&(kp(),Tp())}}function Ai(t,e){var r=t.stateNode;if(r===null)return null;var n=oc(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(S(231,e,typeof r));return r}var Nl=!1;if(Sr)try{var qo={};Object.defineProperty(qo,"passive",{get:function(){Nl=!0}}),window.addEventListener("test",qo,qo),window.removeEventListener("test",qo,qo)}catch{Nl=!1}function ry(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 fi=!1,cs=null,ls=!1,Pl=null,ny={onError:function(t){fi=!0,cs=t}};function oy(t,e,r,n,o,i,a,s,c){fi=!1,cs=null,ry.apply(ny,arguments)}function iy(t,e,r,n,o,i,a,s,c){if(oy.apply(this,arguments),fi){if(fi){var l=cs;fi=!1,cs=null}else throw Error(S(198));ls||(ls=!0,Pl=l)}}function xn(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 Ap(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 Xd(t){if(xn(t)!==t)throw Error(S(188))}function ay(t){var e=t.alternate;if(!e){if(e=xn(t),e===null)throw Error(S(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 Xd(o),t;if(i===n)return Xd(o),e;i=i.sibling}throw Error(S(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(S(189))}}if(r.alternate!==n)throw Error(S(190))}if(r.tag!==3)throw Error(S(188));return r.stateNode.current===r?t:e}function Rp(t){return t=ay(t),t!==null?Np(t):null}function Np(t){if(t.tag===5||t.tag===6)return t;for(t=t.child;t!==null;){var e=Np(t);if(e!==null)return e;t=t.sibling}return null}var Pp=Ct.unstable_scheduleCallback,Zd=Ct.unstable_cancelCallback,sy=Ct.unstable_shouldYield,cy=Ct.unstable_requestPaint,we=Ct.unstable_now,ly=Ct.unstable_getCurrentPriorityLevel,$u=Ct.unstable_ImmediatePriority,Op=Ct.unstable_UserBlockingPriority,us=Ct.unstable_NormalPriority,uy=Ct.unstable_LowPriority,xp=Ct.unstable_IdlePriority,ec=null,rr=null;function dy(t){if(rr&&typeof rr.onCommitFiberRoot=="function")try{rr.onCommitFiberRoot(ec,t,void 0,(t.current.flags&128)===128)}catch{}}var Bt=Math.clz32?Math.clz32:py,hy=Math.log,fy=Math.LN2;function py(t){return t>>>=0,t===0?32:31-(hy(t)/fy|0)|0}var ya=64,_a=4194304;function ti(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 ds(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=ti(s):(i&=a,i!==0&&(n=ti(i)))}else a=r&~o,a!==0?n=ti(a):i!==0&&(n=ti(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-Bt(e),o=1<<r,n|=t[r],e&=~o;return n}function gy(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 my(t,e){for(var r=t.suspendedLanes,n=t.pingedLanes,o=t.expirationTimes,i=t.pendingLanes;0<i;){var a=31-Bt(i),s=1<<a,c=o[a];c===-1?((s&r)===0||(s&n)!==0)&&(o[a]=gy(s,e)):c<=e&&(t.expiredLanes|=s),i&=~s}}function Ol(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function Mp(){var t=ya;return ya<<=1,(ya&4194240)===0&&(ya=64),t}function Oc(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function ra(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Bt(e),t[e]=r}function vy(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-Bt(r),i=1<<o;e[o]=0,n[o]=-1,t[o]=-1,r&=~i}}function ju(t,e){var r=t.entangledLanes|=e;for(t=t.entanglements;r;){var n=31-Bt(r),o=1<<n;o&e|t[n]&e&&(t[n]|=e),r&=~o}}var ee=0;function Up(t){return t&=-t,1<t?4<t?(t&268435455)!==0?16:536870912:4:1}var Lp,qu,Hp,Dp,Fp,xl=!1,Ea=[],Br=null,Kr=null,Gr=null,Ri=new Map,Ni=new Map,Fr=[],yy="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 eh(t,e){switch(t){case"focusin":case"focusout":Br=null;break;case"dragenter":case"dragleave":Kr=null;break;case"mouseover":case"mouseout":Gr=null;break;case"pointerover":case"pointerout":Ri.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":Ni.delete(e.pointerId)}}function Bo(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=oa(e),e!==null&&qu(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function _y(t,e,r,n,o){switch(e){case"focusin":return Br=Bo(Br,t,e,r,n,o),!0;case"dragenter":return Kr=Bo(Kr,t,e,r,n,o),!0;case"mouseover":return Gr=Bo(Gr,t,e,r,n,o),!0;case"pointerover":var i=o.pointerId;return Ri.set(i,Bo(Ri.get(i)||null,t,e,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,Ni.set(i,Bo(Ni.get(i)||null,t,e,r,n,o)),!0}return!1}function zp(t){var e=gn(t.target);if(e!==null){var r=xn(e);if(r!==null){if(e=r.tag,e===13){if(e=Ap(r),e!==null){t.blockedOn=e,Fp(t.priority,function(){Hp(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 ja(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var r=Ml(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(r===null){r=t.nativeEvent;var n=new r.constructor(r.type,r);Al=n,r.target.dispatchEvent(n),Al=null}else return e=oa(r),e!==null&&qu(e),t.blockedOn=r,!1;e.shift()}return!0}function th(t,e,r){ja(t)&&r.delete(e)}function Ey(){xl=!1,Br!==null&&ja(Br)&&(Br=null),Kr!==null&&ja(Kr)&&(Kr=null),Gr!==null&&ja(Gr)&&(Gr=null),Ri.forEach(th),Ni.forEach(th)}function Ko(t,e){t.blockedOn===e&&(t.blockedOn=null,xl||(xl=!0,Ct.unstable_scheduleCallback(Ct.unstable_NormalPriority,Ey)))}function Pi(t){function e(o){return Ko(o,t)}if(0<Ea.length){Ko(Ea[0],t);for(var r=1;r<Ea.length;r++){var n=Ea[r];n.blockedOn===t&&(n.blockedOn=null)}}for(Br!==null&&Ko(Br,t),Kr!==null&&Ko(Kr,t),Gr!==null&&Ko(Gr,t),Ri.forEach(e),Ni.forEach(e),r=0;r<Fr.length;r++)n=Fr[r],n.blockedOn===t&&(n.blockedOn=null);for(;0<Fr.length&&(r=Fr[0],r.blockedOn===null);)zp(r),r.blockedOn===null&&Fr.shift()}var fo=Ar.ReactCurrentBatchConfig,hs=!0;function wy(t,e,r,n){var o=ee,i=fo.transition;fo.transition=null;try{ee=1,Bu(t,e,r,n)}finally{ee=o,fo.transition=i}}function Cy(t,e,r,n){var o=ee,i=fo.transition;fo.transition=null;try{ee=4,Bu(t,e,r,n)}finally{ee=o,fo.transition=i}}function Bu(t,e,r,n){if(hs){var o=Ml(t,e,r,n);if(o===null)jc(t,e,n,fs,r),eh(t,n);else if(_y(o,t,e,r,n))n.stopPropagation();else if(eh(t,n),e&4&&-1<yy.indexOf(t)){for(;o!==null;){var i=oa(o);if(i!==null&&Lp(i),i=Ml(t,e,r,n),i===null&&jc(t,e,n,fs,r),i===o)break;o=i}o!==null&&n.stopPropagation()}else jc(t,e,n,null,r)}}var fs=null;function Ml(t,e,r,n){if(fs=null,t=zu(n),t=gn(t),t!==null)if(e=xn(t),e===null)t=null;else if(r=e.tag,r===13){if(t=Ap(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 fs=t,null}function $p(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(ly()){case $u:return 1;case Op:return 4;case us:case uy:return 16;case xp:return 536870912;default:return 16}default:return 16}}var jr=null,Ku=null,qa=null;function jp(){if(qa)return qa;var t,e=Ku,r=e.length,n,o="value"in jr?jr.value:jr.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 qa=o.slice(t,1<n?1-n:void 0)}function Ba(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 wa(){return!0}function rh(){return!1}function Tt(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)?wa:rh,this.isPropagationStopped=rh,this}return ge(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=wa)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=wa)},persist:function(){},isPersistent:wa}),e}var Lo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Gu=Tt(Lo),na=ge({},Lo,{view:0,detail:0}),Sy=Tt(na),xc,Mc,Go,tc=ge({},na,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Vu,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!==Go&&(Go&&t.type==="mousemove"?(xc=t.screenX-Go.screenX,Mc=t.screenY-Go.screenY):Mc=xc=0,Go=t),xc)},movementY:function(t){return"movementY"in t?t.movementY:Mc}}),nh=Tt(tc),Ty=ge({},tc,{dataTransfer:0}),Iy=Tt(Ty),ky=ge({},na,{relatedTarget:0}),Uc=Tt(ky),by=ge({},Lo,{animationName:0,elapsedTime:0,pseudoElement:0}),Ay=Tt(by),Ry=ge({},Lo,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),Ny=Tt(Ry),Py=ge({},Lo,{data:0}),oh=Tt(Py),Oy={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},xy={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"},My={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Uy(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=My[t])?!!e[t]:!1}function Vu(){return Uy}var Ly=ge({},na,{key:function(t){if(t.key){var e=Oy[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ba(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?xy[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Vu,charCode:function(t){return t.type==="keypress"?Ba(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ba(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),Hy=Tt(Ly),Dy=ge({},tc,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ih=Tt(Dy),Fy=ge({},na,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Vu}),zy=Tt(Fy),$y=ge({},Lo,{propertyName:0,elapsedTime:0,pseudoElement:0}),jy=Tt($y),qy=ge({},tc,{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}),By=Tt(qy),Ky=[9,13,27,32],Wu=Sr&&"CompositionEvent"in window,pi=null;Sr&&"documentMode"in document&&(pi=document.documentMode);var Gy=Sr&&"TextEvent"in window&&!pi,qp=Sr&&(!Wu||pi&&8<pi&&11>=pi),ah=String.fromCharCode(32),sh=!1;function Bp(t,e){switch(t){case"keyup":return Ky.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Kp(t){return t=t.detail,typeof t=="object"&&"data"in t?t.data:null}var Gn=!1;function Vy(t,e){switch(t){case"compositionend":return Kp(e);case"keypress":return e.which!==32?null:(sh=!0,ah);case"textInput":return t=e.data,t===ah&&sh?null:t;default:return null}}function Wy(t,e){if(Gn)return t==="compositionend"||!Wu&&Bp(t,e)?(t=jp(),qa=Ku=jr=null,Gn=!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 qp&&e.locale!=="ko"?null:e.data;default:return null}}var Yy={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 ch(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!Yy[t.type]:e==="textarea"}function Gp(t,e,r,n){Sp(n),e=ps(e,"onChange"),0<e.length&&(r=new Gu("onChange","change",null,r,n),t.push({event:r,listeners:e}))}var gi=null,Oi=null;function Qy(t){ng(t,0)}function rc(t){var e=Yn(t);if(mp(e))return t}function Jy(t,e){if(t==="change")return e}var Vp=!1;if(Sr){var Lc;if(Sr){var Hc="oninput"in document;if(!Hc){var lh=document.createElement("div");lh.setAttribute("oninput","return;"),Hc=typeof lh.oninput=="function"}Lc=Hc}else Lc=!1;Vp=Lc&&(!document.documentMode||9<document.documentMode)}function uh(){gi&&(gi.detachEvent("onpropertychange",Wp),Oi=gi=null)}function Wp(t){if(t.propertyName==="value"&&rc(Oi)){var e=[];Gp(e,Oi,t,zu(t)),bp(Qy,e)}}function Xy(t,e,r){t==="focusin"?(uh(),gi=e,Oi=r,gi.attachEvent("onpropertychange",Wp)):t==="focusout"&&uh()}function Zy(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return rc(Oi)}function e0(t,e){if(t==="click")return rc(e)}function t0(t,e){if(t==="input"||t==="change")return rc(e)}function r0(t,e){return t===e&&(t!==0||1/t===1/e)||t!==t&&e!==e}var Vt=typeof Object.is=="function"?Object.is:r0;function xi(t,e){if(Vt(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(!ml.call(e,o)||!Vt(t[o],e[o]))return!1}return!0}function dh(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function hh(t,e){var r=dh(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=dh(r)}}function Yp(t,e){return t&&e?t===e?!0:t&&t.nodeType===3?!1:e&&e.nodeType===3?Yp(t,e.parentNode):"contains"in t?t.contains(e):t.compareDocumentPosition?!!(t.compareDocumentPosition(e)&16):!1:!1}function Qp(){for(var t=window,e=ss();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=ss(t.document)}return e}function Yu(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 n0(t){var e=Qp(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&Yp(r.ownerDocument.documentElement,r)){if(n!==null&&Yu(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=hh(r,i);var a=hh(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 o0=Sr&&"documentMode"in document&&11>=document.documentMode,Vn=null,Ul=null,mi=null,Ll=!1;function fh(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;Ll||Vn==null||Vn!==ss(n)||(n=Vn,"selectionStart"in n&&Yu(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}),mi&&xi(mi,n)||(mi=n,n=ps(Ul,"onSelect"),0<n.length&&(e=new Gu("onSelect","select",null,e,r),t.push({event:e,listeners:n}),e.target=Vn)))}function Ca(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r}var Wn={animationend:Ca("Animation","AnimationEnd"),animationiteration:Ca("Animation","AnimationIteration"),animationstart:Ca("Animation","AnimationStart"),transitionend:Ca("Transition","TransitionEnd")},Dc={},Jp={};Sr&&(Jp=document.createElement("div").style,"AnimationEvent"in window||(delete Wn.animationend.animation,delete Wn.animationiteration.animation,delete Wn.animationstart.animation),"TransitionEvent"in window||delete Wn.transitionend.transition);function nc(t){if(Dc[t])return Dc[t];if(!Wn[t])return t;var e=Wn[t],r;for(r in e)if(e.hasOwnProperty(r)&&r in Jp)return Dc[t]=e[r];return t}var Xp=nc("animationend"),Zp=nc("animationiteration"),eg=nc("animationstart"),tg=nc("transitionend"),rg=new Map,ph="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 nn(t,e){rg.set(t,e),On(e,[t])}for(var Fc=0;Fc<ph.length;Fc++){var zc=ph[Fc],i0=zc.toLowerCase(),a0=zc[0].toUpperCase()+zc.slice(1);nn(i0,"on"+a0)}nn(Xp,"onAnimationEnd");nn(Zp,"onAnimationIteration");nn(eg,"onAnimationStart");nn("dblclick","onDoubleClick");nn("focusin","onFocus");nn("focusout","onBlur");nn(tg,"onTransitionEnd");_o("onMouseEnter",["mouseout","mouseover"]);_o("onMouseLeave",["mouseout","mouseover"]);_o("onPointerEnter",["pointerout","pointerover"]);_o("onPointerLeave",["pointerout","pointerover"]);On("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));On("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));On("onBeforeInput",["compositionend","keypress","textInput","paste"]);On("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));On("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));On("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var ri="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(" "),s0=new Set("cancel close invalid load scroll toggle".split(" ").concat(ri));function gh(t,e,r){var n=t.type||"unknown-event";t.currentTarget=r,iy(n,e,void 0,t),t.currentTarget=null}function ng(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;gh(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;gh(o,s,l),i=c}}}if(ls)throw t=Pl,ls=!1,Pl=null,t}function ae(t,e){var r=e[$l];r===void 0&&(r=e[$l]=new Set);var n=t+"__bubble";r.has(n)||(og(e,t,2,!1),r.add(n))}function $c(t,e,r){var n=0;e&&(n|=4),og(r,t,n,e)}var Sa="_reactListening"+Math.random().toString(36).slice(2);function Mi(t){if(!t[Sa]){t[Sa]=!0,dp.forEach(function(r){r!=="selectionchange"&&(s0.has(r)||$c(r,!1,t),$c(r,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[Sa]||(e[Sa]=!0,$c("selectionchange",!1,e))}}function og(t,e,r,n){switch($p(e)){case 1:var o=wy;break;case 4:o=Cy;break;default:o=Bu}r=o.bind(null,e,r,t),o=void 0,!Nl||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 jc(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=gn(s),a===null)return;if(c=a.tag,c===5||c===6){n=i=a;continue e}s=s.parentNode}}n=n.return}bp(function(){var l=i,u=zu(r),d=[];e:{var h=rg.get(t);if(h!==void 0){var p=Gu,v=t;switch(t){case"keypress":if(Ba(r)===0)break e;case"keydown":case"keyup":p=Hy;break;case"focusin":v="focus",p=Uc;break;case"focusout":v="blur",p=Uc;break;case"beforeblur":case"afterblur":p=Uc;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":p=nh;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=Iy;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=zy;break;case Xp:case Zp:case eg:p=Ay;break;case tg:p=jy;break;case"scroll":p=Sy;break;case"wheel":p=By;break;case"copy":case"cut":case"paste":p=Ny;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=ih}var y=(e&4)!==0,I=!y&&t==="scroll",g=y?h!==null?h+"Capture":null:h;y=[];for(var f=l,m;f!==null;){m=f;var E=m.stateNode;if(m.tag===5&&E!==null&&(m=E,g!==null&&(E=Ai(f,g),E!=null&&y.push(Ui(f,E,m)))),I)break;f=f.return}0<y.length&&(h=new p(h,v,null,r,u),d.push({event:h,listeners:y}))}}if((e&7)===0){e:{if(h=t==="mouseover"||t==="pointerover",p=t==="mouseout"||t==="pointerout",h&&r!==Al&&(v=r.relatedTarget||r.fromElement)&&(gn(v)||v[Tr]))break e;if((p||h)&&(h=u.window===u?u:(h=u.ownerDocument)?h.defaultView||h.parentWindow:window,p?(v=r.relatedTarget||r.toElement,p=l,v=v?gn(v):null,v!==null&&(I=xn(v),v!==I||v.tag!==5&&v.tag!==6)&&(v=null)):(p=null,v=l),p!==v)){if(y=nh,E="onMouseLeave",g="onMouseEnter",f="mouse",(t==="pointerout"||t==="pointerover")&&(y=ih,E="onPointerLeave",g="onPointerEnter",f="pointer"),I=p==null?h:Yn(p),m=v==null?h:Yn(v),h=new y(E,f+"leave",p,r,u),h.target=I,h.relatedTarget=m,E=null,gn(u)===l&&(y=new y(g,f+"enter",v,r,u),y.target=m,y.relatedTarget=I,E=y),I=E,p&&v)t:{for(y=p,g=v,f=0,m=y;m;m=Mn(m))f++;for(m=0,E=g;E;E=Mn(E))m++;for(;0<f-m;)y=Mn(y),f--;for(;0<m-f;)g=Mn(g),m--;for(;f--;){if(y===g||g!==null&&y===g.alternate)break t;y=Mn(y),g=Mn(g)}y=null}else y=null;p!==null&&mh(d,h,p,y,!1),v!==null&&I!==null&&mh(d,I,v,y,!0)}}e:{if(h=l?Yn(l):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var b=Jy;else if(ch(h))if(Vp)b=t0;else{b=Zy;var R=Xy}else(p=h.nodeName)&&p.toLowerCase()==="input"&&(h.type==="checkbox"||h.type==="radio")&&(b=e0);if(b&&(b=b(t,l))){Gp(d,b,r,u);break e}R&&R(t,h,l),t==="focusout"&&(R=h._wrapperState)&&R.controlled&&h.type==="number"&&Sl(h,"number",h.value)}switch(R=l?Yn(l):window,t){case"focusin":(ch(R)||R.contentEditable==="true")&&(Vn=R,Ul=l,mi=null);break;case"focusout":mi=Ul=Vn=null;break;case"mousedown":Ll=!0;break;case"contextmenu":case"mouseup":case"dragend":Ll=!1,fh(d,r,u);break;case"selectionchange":if(o0)break;case"keydown":case"keyup":fh(d,r,u)}var x;if(Wu)e:{switch(t){case"compositionstart":var P="onCompositionStart";break e;case"compositionend":P="onCompositionEnd";break e;case"compositionupdate":P="onCompositionUpdate";break e}P=void 0}else Gn?Bp(t,r)&&(P="onCompositionEnd"):t==="keydown"&&r.keyCode===229&&(P="onCompositionStart");P&&(qp&&r.locale!=="ko"&&(Gn||P!=="onCompositionStart"?P==="onCompositionEnd"&&Gn&&(x=jp()):(jr=u,Ku="value"in jr?jr.value:jr.textContent,Gn=!0)),R=ps(l,P),0<R.length&&(P=new oh(P,t,null,r,u),d.push({event:P,listeners:R}),x?P.data=x:(x=Kp(r),x!==null&&(P.data=x)))),(x=Gy?Vy(t,r):Wy(t,r))&&(l=ps(l,"onBeforeInput"),0<l.length&&(u=new oh("onBeforeInput","beforeinput",null,r,u),d.push({event:u,listeners:l}),u.data=x))}ng(d,e)})}function Ui(t,e,r){return{instance:t,listener:e,currentTarget:r}}function ps(t,e){for(var r=e+"Capture",n=[];t!==null;){var o=t,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=Ai(t,r),i!=null&&n.unshift(Ui(t,i,o)),i=Ai(t,e),i!=null&&n.push(Ui(t,i,o))),t=t.return}return n}function Mn(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function mh(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=Ai(r,i),c!=null&&a.unshift(Ui(r,c,s))):o||(c=Ai(r,i),c!=null&&a.push(Ui(r,c,s)))),r=r.return}a.length!==0&&t.push({event:e,listeners:a})}var c0=/\r\n?/g,l0=/\u0000|\uFFFD/g;function vh(t){return(typeof t=="string"?t:""+t).replace(c0,`
30
+ `).replace(l0,"")}function Ta(t,e,r){if(e=vh(e),vh(t)!==e&&r)throw Error(S(425))}function gs(){}var Hl=null,Dl=null;function Fl(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 zl=typeof setTimeout=="function"?setTimeout:void 0,u0=typeof clearTimeout=="function"?clearTimeout:void 0,yh=typeof Promise=="function"?Promise:void 0,d0=typeof queueMicrotask=="function"?queueMicrotask:typeof yh<"u"?function(t){return yh.resolve(null).then(t).catch(h0)}:zl;function h0(t){setTimeout(function(){throw t})}function qc(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),Pi(e);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=o}while(r);Pi(e)}function Vr(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 _h(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 Ho=Math.random().toString(36).slice(2),Zt="__reactFiber$"+Ho,Li="__reactProps$"+Ho,Tr="__reactContainer$"+Ho,$l="__reactEvents$"+Ho,f0="__reactListeners$"+Ho,p0="__reactHandles$"+Ho;function gn(t){var e=t[Zt];if(e)return e;for(var r=t.parentNode;r;){if(e=r[Tr]||r[Zt]){if(r=e.alternate,e.child!==null||r!==null&&r.child!==null)for(t=_h(t);t!==null;){if(r=t[Zt])return r;t=_h(t)}return e}t=r,r=t.parentNode}return null}function oa(t){return t=t[Zt]||t[Tr],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function Yn(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(S(33))}function oc(t){return t[Li]||null}var jl=[],Qn=-1;function on(t){return{current:t}}function ce(t){0>Qn||(t.current=jl[Qn],jl[Qn]=null,Qn--)}function ie(t,e){Qn++,jl[Qn]=t.current,t.current=e}var rn={},Qe=on(rn),lt=on(!1),Sn=rn;function Eo(t,e){var r=t.type.contextTypes;if(!r)return rn;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 ut(t){return t=t.childContextTypes,t!=null}function ms(){ce(lt),ce(Qe)}function Eh(t,e,r){if(Qe.current!==rn)throw Error(S(168));ie(Qe,e),ie(lt,r)}function ig(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(S(108,Xv(t)||"Unknown",o));return ge({},r,n)}function vs(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||rn,Sn=Qe.current,ie(Qe,t),ie(lt,lt.current),!0}function wh(t,e,r){var n=t.stateNode;if(!n)throw Error(S(169));r?(t=ig(t,e,Sn),n.__reactInternalMemoizedMergedChildContext=t,ce(lt),ce(Qe),ie(Qe,t)):ce(lt),ie(lt,r)}var fr=null,ic=!1,Bc=!1;function ag(t){fr===null?fr=[t]:fr.push(t)}function g0(t){ic=!0,ag(t)}function an(){if(!Bc&&fr!==null){Bc=!0;var t=0,e=ee;try{var r=fr;for(ee=1;t<r.length;t++){var n=r[t];do n=n(!0);while(n!==null)}fr=null,ic=!1}catch(o){throw fr!==null&&(fr=fr.slice(t+1)),Pp($u,an),o}finally{ee=e,Bc=!1}}return null}var Jn=[],Xn=0,ys=null,_s=0,bt=[],At=0,Tn=null,pr=1,gr="";function dn(t,e){Jn[Xn++]=_s,Jn[Xn++]=ys,ys=t,_s=e}function sg(t,e,r){bt[At++]=pr,bt[At++]=gr,bt[At++]=Tn,Tn=t;var n=pr;t=gr;var o=32-Bt(n)-1;n&=~(1<<o),r+=1;var i=32-Bt(e)+o;if(30<i){var a=o-o%5;i=(n&(1<<a)-1).toString(32),n>>=a,o-=a,pr=1<<32-Bt(e)+o|r<<o|n,gr=i+t}else pr=1<<i|r<<o|n,gr=t}function Qu(t){t.return!==null&&(dn(t,1),sg(t,1,0))}function Ju(t){for(;t===ys;)ys=Jn[--Xn],Jn[Xn]=null,_s=Jn[--Xn],Jn[Xn]=null;for(;t===Tn;)Tn=bt[--At],bt[At]=null,gr=bt[--At],bt[At]=null,pr=bt[--At],bt[At]=null}var Et=null,yt=null,ue=!1,$t=null;function cg(t,e){var r=Nt(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 Ch(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,Et=t,yt=Vr(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,Et=t,yt=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(r=Tn!==null?{id:pr,overflow:gr}:null,t.memoizedState={dehydrated:e,treeContext:r,retryLane:1073741824},r=Nt(18,null,null,0),r.stateNode=e,r.return=t,t.child=r,Et=t,yt=null,!0):!1;default:return!1}}function ql(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Bl(t){if(ue){var e=yt;if(e){var r=e;if(!Ch(t,e)){if(ql(t))throw Error(S(418));e=Vr(r.nextSibling);var n=Et;e&&Ch(t,e)?cg(n,r):(t.flags=t.flags&-4097|2,ue=!1,Et=t)}}else{if(ql(t))throw Error(S(418));t.flags=t.flags&-4097|2,ue=!1,Et=t}}}function Sh(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;Et=t}function Ia(t){if(t!==Et)return!1;if(!ue)return Sh(t),ue=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!Fl(t.type,t.memoizedProps)),e&&(e=yt)){if(ql(t))throw lg(),Error(S(418));for(;e;)cg(t,e),e=Vr(e.nextSibling)}if(Sh(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(S(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="/$"){if(e===0){yt=Vr(t.nextSibling);break e}e--}else r!=="$"&&r!=="$!"&&r!=="$?"||e++}t=t.nextSibling}yt=null}}else yt=Et?Vr(t.stateNode.nextSibling):null;return!0}function lg(){for(var t=yt;t;)t=Vr(t.nextSibling)}function wo(){yt=Et=null,ue=!1}function Xu(t){$t===null?$t=[t]:$t.push(t)}var m0=Ar.ReactCurrentBatchConfig;function Ft(t,e){if(t&&t.defaultProps){e=ge({},e),t=t.defaultProps;for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e}return e}var Es=on(null),ws=null,Zn=null,Zu=null;function ed(){Zu=Zn=ws=null}function td(t){var e=Es.current;ce(Es),t._currentValue=e}function Kl(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 po(t,e){ws=t,Zu=Zn=null,t=t.dependencies,t!==null&&t.firstContext!==null&&((t.lanes&e)!==0&&(ct=!0),t.firstContext=null)}function xt(t){var e=t._currentValue;if(Zu!==t)if(t={context:t,memoizedValue:e,next:null},Zn===null){if(ws===null)throw Error(S(308));Zn=t,ws.dependencies={lanes:0,firstContext:t}}else Zn=Zn.next=t;return e}var mn=null;function rd(t){mn===null?mn=[t]:mn.push(t)}function ug(t,e,r,n){var o=e.interleaved;return o===null?(r.next=r,rd(e)):(r.next=o.next,o.next=r),e.interleaved=r,Ir(t,n)}function Ir(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 Lr=!1;function nd(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function dg(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 yr(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Wr(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,(Y&2)!==0){var o=n.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),n.pending=e,Ir(t,r)}return o=n.interleaved,o===null?(e.next=e,rd(n)):(e.next=o.next,o.next=e),n.interleaved=e,Ir(t,r)}function Ka(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,ju(t,r)}}function Th(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 Cs(t,e,r,n){var o=t.updateQueue;Lr=!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 d=o.baseState;a=0,u=l=c=null,s=i;do{var h=s.lane,p=s.eventTime;if((n&h)===h){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var v=t,y=s;switch(h=e,p=r,y.tag){case 1:if(v=y.payload,typeof v=="function"){d=v.call(p,d,h);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,h=typeof v=="function"?v.call(p,d,h):v,h==null)break e;d=ge({},d,h);break e;case 2:Lr=!0}}s.callback!==null&&s.lane!==0&&(t.flags|=64,h=o.effects,h===null?o.effects=[s]:h.push(s))}else p={eventTime:p,lane:h,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,a|=h;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;h=s,s=h.next,h.next=null,o.lastBaseUpdate=h,o.shared.pending=null}}while(1);if(u===null&&(c=d),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);kn|=a,t.lanes=a,t.memoizedState=d}}function Ih(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(S(191,o));o.call(n)}}}var hg=new up.Component().refs;function Gl(t,e,r,n){e=t.memoizedState,r=r(n,e),r=r==null?e:ge({},e,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var ac={isMounted:function(t){return(t=t._reactInternals)?xn(t)===t:!1},enqueueSetState:function(t,e,r){t=t._reactInternals;var n=rt(),o=Qr(t),i=yr(n,o);i.payload=e,r!=null&&(i.callback=r),e=Wr(t,i,o),e!==null&&(Kt(e,t,o,n),Ka(e,t,o))},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=rt(),o=Qr(t),i=yr(n,o);i.tag=1,i.payload=e,r!=null&&(i.callback=r),e=Wr(t,i,o),e!==null&&(Kt(e,t,o,n),Ka(e,t,o))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=rt(),n=Qr(t),o=yr(r,n);o.tag=2,e!=null&&(o.callback=e),e=Wr(t,o,n),e!==null&&(Kt(e,t,n,r),Ka(e,t,n))}};function kh(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?!xi(r,n)||!xi(o,i):!0}function fg(t,e,r){var n=!1,o=rn,i=e.contextType;return typeof i=="object"&&i!==null?i=xt(i):(o=ut(e)?Sn:Qe.current,n=e.contextTypes,i=(n=n!=null)?Eo(t,o):rn),e=new e(r,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=ac,t.stateNode=e,e._reactInternals=t,n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=o,t.__reactInternalMemoizedMaskedChildContext=i),e}function bh(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&&ac.enqueueReplaceState(e,e.state,null)}function Vl(t,e,r,n){var o=t.stateNode;o.props=r,o.state=t.memoizedState,o.refs=hg,nd(t);var i=e.contextType;typeof i=="object"&&i!==null?o.context=xt(i):(i=ut(e)?Sn:Qe.current,o.context=Eo(t,i)),o.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(Gl(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&&ac.enqueueReplaceState(o,o.state,null),Cs(t,r,o,n),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308)}function Vo(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(S(309));var n=r.stateNode}if(!n)throw Error(S(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===hg&&(s=o.refs={}),a===null?delete s[i]:s[i]=a},e._stringRef=i,e)}if(typeof t!="string")throw Error(S(284));if(!r._owner)throw Error(S(290,t))}return t}function ka(t,e){throw t=Object.prototype.toString.call(e),Error(S(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function Ah(t){var e=t._init;return e(t._payload)}function pg(t){function e(g,f){if(t){var m=g.deletions;m===null?(g.deletions=[f],g.flags|=16):m.push(f)}}function r(g,f){if(!t)return null;for(;f!==null;)e(g,f),f=f.sibling;return null}function n(g,f){for(g=new Map;f!==null;)f.key!==null?g.set(f.key,f):g.set(f.index,f),f=f.sibling;return g}function o(g,f){return g=Jr(g,f),g.index=0,g.sibling=null,g}function i(g,f,m){return g.index=m,t?(m=g.alternate,m!==null?(m=m.index,m<f?(g.flags|=2,f):m):(g.flags|=2,f)):(g.flags|=1048576,f)}function a(g){return t&&g.alternate===null&&(g.flags|=2),g}function s(g,f,m,E){return f===null||f.tag!==6?(f=Jc(m,g.mode,E),f.return=g,f):(f=o(f,m),f.return=g,f)}function c(g,f,m,E){var b=m.type;return b===Kn?u(g,f,m.props.children,E,m.key):f!==null&&(f.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Ur&&Ah(b)===f.type)?(E=o(f,m.props),E.ref=Vo(g,f,m),E.return=g,E):(E=Ja(m.type,m.key,m.props,null,g.mode,E),E.ref=Vo(g,f,m),E.return=g,E)}function l(g,f,m,E){return f===null||f.tag!==4||f.stateNode.containerInfo!==m.containerInfo||f.stateNode.implementation!==m.implementation?(f=Xc(m,g.mode,E),f.return=g,f):(f=o(f,m.children||[]),f.return=g,f)}function u(g,f,m,E,b){return f===null||f.tag!==7?(f=En(m,g.mode,E,b),f.return=g,f):(f=o(f,m),f.return=g,f)}function d(g,f,m){if(typeof f=="string"&&f!==""||typeof f=="number")return f=Jc(""+f,g.mode,m),f.return=g,f;if(typeof f=="object"&&f!==null){switch(f.$$typeof){case ga:return m=Ja(f.type,f.key,f.props,null,g.mode,m),m.ref=Vo(g,null,f),m.return=g,m;case Bn:return f=Xc(f,g.mode,m),f.return=g,f;case Ur:var E=f._init;return d(g,E(f._payload),m)}if(ei(f)||jo(f))return f=En(f,g.mode,m,null),f.return=g,f;ka(g,f)}return null}function h(g,f,m,E){var b=f!==null?f.key:null;if(typeof m=="string"&&m!==""||typeof m=="number")return b!==null?null:s(g,f,""+m,E);if(typeof m=="object"&&m!==null){switch(m.$$typeof){case ga:return m.key===b?c(g,f,m,E):null;case Bn:return m.key===b?l(g,f,m,E):null;case Ur:return b=m._init,h(g,f,b(m._payload),E)}if(ei(m)||jo(m))return b!==null?null:u(g,f,m,E,null);ka(g,m)}return null}function p(g,f,m,E,b){if(typeof E=="string"&&E!==""||typeof E=="number")return g=g.get(m)||null,s(f,g,""+E,b);if(typeof E=="object"&&E!==null){switch(E.$$typeof){case ga:return g=g.get(E.key===null?m:E.key)||null,c(f,g,E,b);case Bn:return g=g.get(E.key===null?m:E.key)||null,l(f,g,E,b);case Ur:var R=E._init;return p(g,f,m,R(E._payload),b)}if(ei(E)||jo(E))return g=g.get(m)||null,u(f,g,E,b,null);ka(f,E)}return null}function v(g,f,m,E){for(var b=null,R=null,x=f,P=f=0,he=null;x!==null&&P<m.length;P++){x.index>P?(he=x,x=null):he=x.sibling;var K=h(g,x,m[P],E);if(K===null){x===null&&(x=he);break}t&&x&&K.alternate===null&&e(g,x),f=i(K,f,P),R===null?b=K:R.sibling=K,R=K,x=he}if(P===m.length)return r(g,x),ue&&dn(g,P),b;if(x===null){for(;P<m.length;P++)x=d(g,m[P],E),x!==null&&(f=i(x,f,P),R===null?b=x:R.sibling=x,R=x);return ue&&dn(g,P),b}for(x=n(g,x);P<m.length;P++)he=p(x,g,P,m[P],E),he!==null&&(t&&he.alternate!==null&&x.delete(he.key===null?P:he.key),f=i(he,f,P),R===null?b=he:R.sibling=he,R=he);return t&&x.forEach(function(gt){return e(g,gt)}),ue&&dn(g,P),b}function y(g,f,m,E){var b=jo(m);if(typeof b!="function")throw Error(S(150));if(m=b.call(m),m==null)throw Error(S(151));for(var R=b=null,x=f,P=f=0,he=null,K=m.next();x!==null&&!K.done;P++,K=m.next()){x.index>P?(he=x,x=null):he=x.sibling;var gt=h(g,x,K.value,E);if(gt===null){x===null&&(x=he);break}t&&x&&gt.alternate===null&&e(g,x),f=i(gt,f,P),R===null?b=gt:R.sibling=gt,R=gt,x=he}if(K.done)return r(g,x),ue&&dn(g,P),b;if(x===null){for(;!K.done;P++,K=m.next())K=d(g,K.value,E),K!==null&&(f=i(K,f,P),R===null?b=K:R.sibling=K,R=K);return ue&&dn(g,P),b}for(x=n(g,x);!K.done;P++,K=m.next())K=p(x,g,P,K.value,E),K!==null&&(t&&K.alternate!==null&&x.delete(K.key===null?P:K.key),f=i(K,f,P),R===null?b=K:R.sibling=K,R=K);return t&&x.forEach(function(zo){return e(g,zo)}),ue&&dn(g,P),b}function I(g,f,m,E){if(typeof m=="object"&&m!==null&&m.type===Kn&&m.key===null&&(m=m.props.children),typeof m=="object"&&m!==null){switch(m.$$typeof){case ga:e:{for(var b=m.key,R=f;R!==null;){if(R.key===b){if(b=m.type,b===Kn){if(R.tag===7){r(g,R.sibling),f=o(R,m.props.children),f.return=g,g=f;break e}}else if(R.elementType===b||typeof b=="object"&&b!==null&&b.$$typeof===Ur&&Ah(b)===R.type){r(g,R.sibling),f=o(R,m.props),f.ref=Vo(g,R,m),f.return=g,g=f;break e}r(g,R);break}else e(g,R);R=R.sibling}m.type===Kn?(f=En(m.props.children,g.mode,E,m.key),f.return=g,g=f):(E=Ja(m.type,m.key,m.props,null,g.mode,E),E.ref=Vo(g,f,m),E.return=g,g=E)}return a(g);case Bn:e:{for(R=m.key;f!==null;){if(f.key===R)if(f.tag===4&&f.stateNode.containerInfo===m.containerInfo&&f.stateNode.implementation===m.implementation){r(g,f.sibling),f=o(f,m.children||[]),f.return=g,g=f;break e}else{r(g,f);break}else e(g,f);f=f.sibling}f=Xc(m,g.mode,E),f.return=g,g=f}return a(g);case Ur:return R=m._init,I(g,f,R(m._payload),E)}if(ei(m))return v(g,f,m,E);if(jo(m))return y(g,f,m,E);ka(g,m)}return typeof m=="string"&&m!==""||typeof m=="number"?(m=""+m,f!==null&&f.tag===6?(r(g,f.sibling),f=o(f,m),f.return=g,g=f):(r(g,f),f=Jc(m,g.mode,E),f.return=g,g=f),a(g)):r(g,f)}return I}var Co=pg(!0),gg=pg(!1),ia={},nr=on(ia),Hi=on(ia),Di=on(ia);function vn(t){if(t===ia)throw Error(S(174));return t}function od(t,e){switch(ie(Di,e),ie(Hi,t),ie(nr,ia),t=e.nodeType,t){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Il(null,"");break;default:t=t===8?e.parentNode:e,e=t.namespaceURI||null,t=t.tagName,e=Il(e,t)}ce(nr),ie(nr,e)}function So(){ce(nr),ce(Hi),ce(Di)}function mg(t){vn(Di.current);var e=vn(nr.current),r=Il(e,t.type);e!==r&&(ie(Hi,t),ie(nr,r))}function id(t){Hi.current===t&&(ce(nr),ce(Hi))}var fe=on(0);function Ss(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 Kc=[];function ad(){for(var t=0;t<Kc.length;t++)Kc[t]._workInProgressVersionPrimary=null;Kc.length=0}var Ga=Ar.ReactCurrentDispatcher,Gc=Ar.ReactCurrentBatchConfig,In=0,pe=null,Ie=null,Re=null,Ts=!1,vi=!1,Fi=0,v0=0;function $e(){throw Error(S(321))}function sd(t,e){if(e===null)return!1;for(var r=0;r<e.length&&r<t.length;r++)if(!Vt(t[r],e[r]))return!1;return!0}function cd(t,e,r,n,o,i){if(In=i,pe=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,Ga.current=t===null||t.memoizedState===null?w0:C0,t=r(n,o),vi){i=0;do{if(vi=!1,Fi=0,25<=i)throw Error(S(301));i+=1,Re=Ie=null,e.updateQueue=null,Ga.current=S0,t=r(n,o)}while(vi)}if(Ga.current=Is,e=Ie!==null&&Ie.next!==null,In=0,Re=Ie=pe=null,Ts=!1,e)throw Error(S(300));return t}function ld(){var t=Fi!==0;return Fi=0,t}function Jt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Re===null?pe.memoizedState=Re=t:Re=Re.next=t,Re}function Mt(){if(Ie===null){var t=pe.alternate;t=t!==null?t.memoizedState:null}else t=Ie.next;var e=Re===null?pe.memoizedState:Re.next;if(e!==null)Re=e,Ie=t;else{if(t===null)throw Error(S(310));Ie=t,t={memoizedState:Ie.memoizedState,baseState:Ie.baseState,baseQueue:Ie.baseQueue,queue:Ie.queue,next:null},Re===null?pe.memoizedState=Re=t:Re=Re.next=t}return Re}function zi(t,e){return typeof e=="function"?e(t):e}function Vc(t){var e=Mt(),r=e.queue;if(r===null)throw Error(S(311));r.lastRenderedReducer=t;var n=Ie,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((In&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 d={lane:u,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};c===null?(s=c=d,a=n):c=c.next=d,pe.lanes|=u,kn|=u}l=l.next}while(l!==null&&l!==i);c===null?a=n:c.next=s,Vt(n,e.memoizedState)||(ct=!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,pe.lanes|=i,kn|=i,o=o.next;while(o!==t)}else o===null&&(r.lanes=0);return[e.memoizedState,r.dispatch]}function Wc(t){var e=Mt(),r=e.queue;if(r===null)throw Error(S(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);Vt(i,e.memoizedState)||(ct=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),r.lastRenderedState=i}return[i,n]}function vg(){}function yg(t,e){var r=pe,n=Mt(),o=e(),i=!Vt(n.memoizedState,o);if(i&&(n.memoizedState=o,ct=!0),n=n.queue,ud(wg.bind(null,r,n,t),[t]),n.getSnapshot!==e||i||Re!==null&&Re.memoizedState.tag&1){if(r.flags|=2048,$i(9,Eg.bind(null,r,n,o,e),void 0,null),Oe===null)throw Error(S(349));(In&30)!==0||_g(r,e,o)}return o}function _g(t,e,r){t.flags|=16384,t={getSnapshot:e,value:r},e=pe.updateQueue,e===null?(e={lastEffect:null,stores:null},pe.updateQueue=e,e.stores=[t]):(r=e.stores,r===null?e.stores=[t]:r.push(t))}function Eg(t,e,r,n){e.value=r,e.getSnapshot=n,Cg(e)&&Sg(t)}function wg(t,e,r){return r(function(){Cg(e)&&Sg(t)})}function Cg(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!Vt(t,r)}catch{return!0}}function Sg(t){var e=Ir(t,1);e!==null&&Kt(e,t,1,-1)}function Rh(t){var e=Jt();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:zi,lastRenderedState:t},e.queue=t,t=t.dispatch=E0.bind(null,pe,t),[e.memoizedState,t]}function $i(t,e,r,n){return t={tag:t,create:e,destroy:r,deps:n,next:null},e=pe.updateQueue,e===null?(e={lastEffect:null,stores:null},pe.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 Tg(){return Mt().memoizedState}function Va(t,e,r,n){var o=Jt();pe.flags|=t,o.memoizedState=$i(1|e,r,void 0,n===void 0?null:n)}function sc(t,e,r,n){var o=Mt();n=n===void 0?null:n;var i=void 0;if(Ie!==null){var a=Ie.memoizedState;if(i=a.destroy,n!==null&&sd(n,a.deps)){o.memoizedState=$i(e,r,i,n);return}}pe.flags|=t,o.memoizedState=$i(1|e,r,i,n)}function Nh(t,e){return Va(8390656,8,t,e)}function ud(t,e){return sc(2048,8,t,e)}function Ig(t,e){return sc(4,2,t,e)}function kg(t,e){return sc(4,4,t,e)}function bg(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 Ag(t,e,r){return r=r!=null?r.concat([t]):null,sc(4,4,bg.bind(null,e,t),r)}function dd(){}function Rg(t,e){var r=Mt();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&sd(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function Ng(t,e){var r=Mt();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&sd(e,n[1])?n[0]:(t=t(),r.memoizedState=[t,e],t)}function Pg(t,e,r){return(In&21)===0?(t.baseState&&(t.baseState=!1,ct=!0),t.memoizedState=r):(Vt(r,e)||(r=Mp(),pe.lanes|=r,kn|=r,t.baseState=!0),e)}function y0(t,e){var r=ee;ee=r!==0&&4>r?r:4,t(!0);var n=Gc.transition;Gc.transition={};try{t(!1),e()}finally{ee=r,Gc.transition=n}}function Og(){return Mt().memoizedState}function _0(t,e,r){var n=Qr(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},xg(t))Mg(e,r);else if(r=ug(t,e,r,n),r!==null){var o=rt();Kt(r,t,n,o),Ug(r,e,n)}}function E0(t,e,r){var n=Qr(t),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(xg(t))Mg(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,Vt(s,a)){var c=e.interleaved;c===null?(o.next=o,rd(e)):(o.next=c.next,c.next=o),e.interleaved=o;return}}catch{}finally{}r=ug(t,e,o,n),r!==null&&(o=rt(),Kt(r,t,n,o),Ug(r,e,n))}}function xg(t){var e=t.alternate;return t===pe||e!==null&&e===pe}function Mg(t,e){vi=Ts=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function Ug(t,e,r){if((r&4194240)!==0){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,ju(t,r)}}var Is={readContext:xt,useCallback:$e,useContext:$e,useEffect:$e,useImperativeHandle:$e,useInsertionEffect:$e,useLayoutEffect:$e,useMemo:$e,useReducer:$e,useRef:$e,useState:$e,useDebugValue:$e,useDeferredValue:$e,useTransition:$e,useMutableSource:$e,useSyncExternalStore:$e,useId:$e,unstable_isNewReconciler:!1},w0={readContext:xt,useCallback:function(t,e){return Jt().memoizedState=[t,e===void 0?null:e],t},useContext:xt,useEffect:Nh,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,Va(4194308,4,bg.bind(null,e,t),r)},useLayoutEffect:function(t,e){return Va(4194308,4,t,e)},useInsertionEffect:function(t,e){return Va(4,2,t,e)},useMemo:function(t,e){var r=Jt();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=Jt();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=_0.bind(null,pe,t),[n.memoizedState,t]},useRef:function(t){var e=Jt();return t={current:t},e.memoizedState=t},useState:Rh,useDebugValue:dd,useDeferredValue:function(t){return Jt().memoizedState=t},useTransition:function(){var t=Rh(!1),e=t[0];return t=y0.bind(null,t[1]),Jt().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=pe,o=Jt();if(ue){if(r===void 0)throw Error(S(407));r=r()}else{if(r=e(),Oe===null)throw Error(S(349));(In&30)!==0||_g(n,e,r)}o.memoizedState=r;var i={value:r,getSnapshot:e};return o.queue=i,Nh(wg.bind(null,n,i,t),[t]),n.flags|=2048,$i(9,Eg.bind(null,n,i,r,e),void 0,null),r},useId:function(){var t=Jt(),e=Oe.identifierPrefix;if(ue){var r=gr,n=pr;r=(n&~(1<<32-Bt(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=Fi++,0<r&&(e+="H"+r.toString(32)),e+=":"}else r=v0++,e=":"+e+"r"+r.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},C0={readContext:xt,useCallback:Rg,useContext:xt,useEffect:ud,useImperativeHandle:Ag,useInsertionEffect:Ig,useLayoutEffect:kg,useMemo:Ng,useReducer:Vc,useRef:Tg,useState:function(){return Vc(zi)},useDebugValue:dd,useDeferredValue:function(t){var e=Mt();return Pg(e,Ie.memoizedState,t)},useTransition:function(){var t=Vc(zi)[0],e=Mt().memoizedState;return[t,e]},useMutableSource:vg,useSyncExternalStore:yg,useId:Og,unstable_isNewReconciler:!1},S0={readContext:xt,useCallback:Rg,useContext:xt,useEffect:ud,useImperativeHandle:Ag,useInsertionEffect:Ig,useLayoutEffect:kg,useMemo:Ng,useReducer:Wc,useRef:Tg,useState:function(){return Wc(zi)},useDebugValue:dd,useDeferredValue:function(t){var e=Mt();return Ie===null?e.memoizedState=t:Pg(e,Ie.memoizedState,t)},useTransition:function(){var t=Wc(zi)[0],e=Mt().memoizedState;return[t,e]},useMutableSource:vg,useSyncExternalStore:yg,useId:Og,unstable_isNewReconciler:!1};function To(t,e){try{var r="",n=e;do r+=Jv(n),n=n.return;while(n);var o=r}catch(i){o=`
31
31
  Error generating stack: `+i.message+`
32
- `+i.stack}return{value:t,source:e,stack:o,digest:null}}function Yc(t,e,r){return{value:t,source:null,stack:r!=null?r:null,digest:e!=null?e:null}}function Wl(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var A0=typeof WeakMap=="function"?WeakMap:Map;function Hg(t,e,r){r=yr(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){bs||(bs=!0,ou=n),Wl(t,e)},r}function Dg(t,e,r){r=yr(-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(){Wl(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){Wl(t,e),typeof n!="function"&&(Yr===null?Yr=new Set([this]):Yr.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),r}function Oh(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new A0;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=j0.bind(null,t,e,r),e.then(t,t))}function xh(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 Mh(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=yr(-1,1),e.tag=2,Wr(r,e,1))),r.lanes|=1),t):(t.flags|=65536,t.lanes=o,t)}var R0=Ar.ReactCurrentOwner,ct=!1;function Ze(t,e,r,n){e.child=t===null?mg(e,null,r,n):Co(e,t.child,r,n)}function Uh(t,e,r,n,o){r=r.render;var i=e.ref;return po(e,o),n=cd(t,e,r,n,i,o),r=ld(),t!==null&&!ct?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~o,kr(t,e,o)):(ue&&r&&Qu(e),e.flags|=1,Ze(t,e,n,o),e.child)}function Lh(t,e,r,n,o){if(t===null){var i=r.type;return typeof i=="function"&&!_d(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=i,Fg(t,e,i,n,o)):(t=Ja(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:xi,r(a,n)&&t.ref===e.ref)return kr(t,e,o)}return e.flags|=1,t=Jr(i,n),t.ref=e.ref,t.return=e,e.child=t}function Fg(t,e,r,n,o){if(t!==null){var i=t.memoizedProps;if(xi(i,n)&&t.ref===e.ref)if(ct=!1,e.pendingProps=n=i,(t.lanes&o)!==0)(t.flags&131072)!==0&&(ct=!0);else return e.lanes=t.lanes,kr(t,e,o)}return Yl(t,e,r,n,o)}function zg(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},ie(to,vt),vt|=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,ie(to,vt),vt|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,ie(to,vt),vt|=n}else i!==null?(n=i.baseLanes|r,e.memoizedState=null):n=r,ie(to,vt),vt|=n;return Ze(t,e,o,r),e.child}function $g(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function Yl(t,e,r,n,o){var i=ut(r)?Sn:Qe.current;return i=Eo(e,i),po(e,o),r=cd(t,e,r,n,i,o),n=ld(),t!==null&&!ct?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~o,kr(t,e,o)):(ue&&n&&Qu(e),e.flags|=1,Ze(t,e,r,o),e.child)}function Hh(t,e,r,n,o){if(ut(r)){var i=!0;vs(e)}else i=!1;if(po(e,o),e.stateNode===null)Wa(t,e),pg(e,r,n),Vl(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=ut(r)?Sn:Qe.current,l=Eo(e,l));var u=r.getDerivedStateFromProps,d=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||c!==l)&&Ah(e,a,n,l),Lr=!1;var h=e.memoizedState;a.state=h,Cs(e,n,a,o),c=e.memoizedState,s!==n||h!==c||lt.current||Lr?(typeof u=="function"&&(Gl(e,r,u,n),c=e.memoizedState),(s=Lr||bh(e,r,s,n,h,c,l))?(d||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,hg(t,e),s=e.memoizedProps,l=e.type===e.elementType?s:Ft(e.type,s),a.props=l,d=e.pendingProps,h=a.context,c=r.contextType,typeof c=="object"&&c!==null?c=xt(c):(c=ut(r)?Sn:Qe.current,c=Eo(e,c));var p=r.getDerivedStateFromProps;(u=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||h!==c)&&Ah(e,a,n,c),Lr=!1,h=e.memoizedState,a.state=h,Cs(e,n,a,o);var v=e.memoizedState;s!==d||h!==v||lt.current||Lr?(typeof p=="function"&&(Gl(e,r,p,n),v=e.memoizedState),(l=Lr||bh(e,r,l,n,h,v,c)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,v,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,v,c)),typeof a.componentDidUpdate=="function"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=v),a.props=n,a.state=v,a.context=c,n=l):(typeof a.componentDidUpdate!="function"||s===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),n=!1)}return Ql(t,e,r,n,i,o)}function Ql(t,e,r,n,o,i){$g(t,e);var a=(e.flags&128)!==0;if(!n&&!a)return o&&Ch(e,r,!1),kr(t,e,i);n=e.stateNode,R0.current=e;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,t!==null&&a?(e.child=Co(e,t.child,null,i),e.child=Co(e,null,s,i)):Ze(t,e,s,i),e.memoizedState=n.state,o&&Ch(e,r,!0),e.child}function jg(t){var e=t.stateNode;e.pendingContext?wh(t,e.pendingContext,e.pendingContext!==e.context):e.context&&wh(t,e.context,!1),od(t,e.containerInfo)}function Dh(t,e,r,n,o){return wo(),Xu(o),e.flags|=256,Ze(t,e,r,n),e.child}var Jl={dehydrated:null,treeContext:null,retryLane:0};function Xl(t){return{baseLanes:t,cachePool:null,transitions:null}}function qg(t,e,r){var n=e.pendingProps,o=fe.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),ie(fe,o&1),t===null)return Bl(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=uc(a,n,0,null),t=En(t,n,r,null),i.return=e,t.return=e,i.sibling=t,e.child=i,e.child.memoizedState=Xl(r),e.memoizedState=Jl,t):hd(e,a));if(o=t.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return N0(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=Jr(o,c),n.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Jr(s,i):(i=En(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?Xl(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=t.childLanes&~r,e.memoizedState=Jl,n}return i=t.child,t=i.sibling,n=Jr(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 hd(t,e){return e=uc({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function ba(t,e,r,n){return n!==null&&Xu(n),Co(e,t.child,null,r),t=hd(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function N0(t,e,r,n,o,i,a){if(r)return e.flags&256?(e.flags&=-257,n=Yc(Error(S(422))),ba(t,e,a,n)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(i=n.fallback,o=e.mode,n=uc({mode:"visible",children:n.children},o,0,null),i=En(i,o,a,null),i.flags|=2,n.return=e,i.return=e,n.sibling=i,e.child=n,(e.mode&1)!==0&&Co(e,t.child,null,a),e.child.memoizedState=Xl(a),e.memoizedState=Jl,i);if((e.mode&1)===0)return ba(t,e,a,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var s=n.dgst;return n=s,i=Error(S(419)),n=Yc(i,n,void 0),ba(t,e,a,n)}if(s=(a&t.childLanes)!==0,ct||s){if(n=Oe,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,Ir(t,o),Kt(n,t,o,-1))}return yd(),n=Yc(Error(S(421))),ba(t,e,a,n)}return o.data==="$?"?(e.flags|=128,e.child=t.child,e=q0.bind(null,t),o._reactRetry=e,null):(t=i.treeContext,yt=Vr(o.nextSibling),Et=e,ue=!0,$t=null,t!==null&&(bt[At++]=pr,bt[At++]=gr,bt[At++]=Tn,pr=t.id,gr=t.overflow,Tn=e),e=hd(e,n.children),e.flags|=4096,e)}function Fh(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Kl(t.return,e,r)}function Qc(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 Bg(t,e,r){var n=e.pendingProps,o=n.revealOrder,i=n.tail;if(Ze(t,e,n.children,r),n=fe.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&&Fh(t,r,e);else if(t.tag===19)Fh(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(ie(fe,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&&Ss(t)===null&&(o=r),r=r.sibling;r=o,r===null?(o=e.child,e.child=null):(o=r.sibling,r.sibling=null),Qc(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&&Ss(t)===null){e.child=o;break}t=o.sibling,o.sibling=r,r=o,o=t}Qc(e,!0,r,null,i);break;case"together":Qc(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Wa(t,e){(e.mode&1)===0&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function kr(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),kn|=e.lanes,(r&e.childLanes)===0)return null;if(t!==null&&e.child!==t.child)throw Error(S(153));if(e.child!==null){for(t=e.child,r=Jr(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=Jr(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function P0(t,e,r){switch(e.tag){case 3:jg(e),wo();break;case 5:vg(e);break;case 1:ut(e.type)&&vs(e);break;case 4:od(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,o=e.memoizedProps.value;ie(Es,n._currentValue),n._currentValue=o;break;case 13:if(n=e.memoizedState,n!==null)return n.dehydrated!==null?(ie(fe,fe.current&1),e.flags|=128,null):(r&e.child.childLanes)!==0?qg(t,e,r):(ie(fe,fe.current&1),t=kr(t,e,r),t!==null?t.sibling:null);ie(fe,fe.current&1);break;case 19:if(n=(r&e.childLanes)!==0,(t.flags&128)!==0){if(n)return Bg(t,e,r);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ie(fe,fe.current),n)break;return null;case 22:case 23:return e.lanes=0,zg(t,e,r)}return kr(t,e,r)}var Kg,Zl,Gg,Vg;Kg=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}};Zl=function(){};Gg=function(t,e,r,n){var o=t.memoizedProps;if(o!==n){t=e.stateNode,vn(nr.current);var i=null;switch(r){case"input":o=wl(t,o),n=wl(t,n),i=[];break;case"select":o=ge({},o,{value:void 0}),n=ge({},n,{value:void 0}),i=[];break;case"textarea":o=Tl(t,o),n=Tl(t,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(t.onclick=gs)}kl(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"&&(ki.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"&&(ki.hasOwnProperty(l)?(c!=null&&l==="onScroll"&&ae("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)}};Vg=function(t,e,r,n){r!==n&&(e.flags|=4)};function Wo(t,e){if(!ue)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 je(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 O0(t,e,r){var n=e.pendingProps;switch(Ju(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return je(e),null;case 1:return ut(e.type)&&ms(),je(e),null;case 3:return n=e.stateNode,So(),ce(lt),ce(Qe),ad(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ia(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,$t!==null&&(su($t),$t=null))),Zl(t,e),je(e),null;case 5:id(e);var o=vn(Di.current);if(r=e.type,t!==null&&e.stateNode!=null)Gg(t,e,r,n,o),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(e.stateNode===null)throw Error(S(166));return je(e),null}if(t=vn(nr.current),Ia(e)){n=e.stateNode,r=e.type;var i=e.memoizedProps;switch(n[Zt]=e,n[Li]=i,t=(e.mode&1)!==0,r){case"dialog":ae("cancel",n),ae("close",n);break;case"iframe":case"object":case"embed":ae("load",n);break;case"video":case"audio":for(o=0;o<ri.length;o++)ae(ri[o],n);break;case"source":ae("error",n);break;case"img":case"image":case"link":ae("error",n),ae("load",n);break;case"details":ae("toggle",n);break;case"input":Wd(n,i),ae("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},ae("invalid",n);break;case"textarea":Qd(n,i),ae("invalid",n)}kl(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&&Ta(n.textContent,s,t),o=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Ta(n.textContent,s,t),o=["children",""+s]):ki.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&ae("scroll",n)}switch(r){case"input":ma(n),Yd(n,i,!0);break;case"textarea":ma(n),Jd(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=gs)}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=Ep(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[Zt]=e,t[Li]=n,Kg(t,e,!1,!1),e.stateNode=t;e:{switch(a=bl(r,n),r){case"dialog":ae("cancel",t),ae("close",t),o=n;break;case"iframe":case"object":case"embed":ae("load",t),o=n;break;case"video":case"audio":for(o=0;o<ri.length;o++)ae(ri[o],t);o=n;break;case"source":ae("error",t),o=n;break;case"img":case"image":case"link":ae("error",t),ae("load",t),o=n;break;case"details":ae("toggle",t),o=n;break;case"input":Wd(t,n),o=wl(t,n),ae("invalid",t);break;case"option":o=n;break;case"select":t._wrapperState={wasMultiple:!!n.multiple},o=ge({},n,{value:void 0}),ae("invalid",t);break;case"textarea":Qd(t,n),o=Tl(t,n),ae("invalid",t);break;default:o=n}kl(r,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var c=s[i];i==="style"?Sp(t,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&wp(t,c)):i==="children"?typeof c=="string"?(r!=="textarea"||c!=="")&&bi(t,c):typeof c=="number"&&bi(t,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ki.hasOwnProperty(i)?c!=null&&i==="onScroll"&&ae("scroll",t):c!=null&&Lu(t,i,c,a))}switch(r){case"input":ma(t),Yd(t,n,!1);break;case"textarea":ma(t),Jd(t);break;case"option":n.value!=null&&t.setAttribute("value",""+tn(n.value));break;case"select":t.multiple=!!n.multiple,i=n.value,i!=null?lo(t,!!n.multiple,i,!1):n.defaultValue!=null&&lo(t,!!n.multiple,n.defaultValue,!0);break;default:typeof o.onClick=="function"&&(t.onclick=gs)}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 je(e),null;case 6:if(t&&e.stateNode!=null)Vg(t,e,t.memoizedProps,n);else{if(typeof n!="string"&&e.stateNode===null)throw Error(S(166));if(r=vn(Di.current),vn(nr.current),Ia(e)){if(n=e.stateNode,r=e.memoizedProps,n[Zt]=e,(i=n.nodeValue!==r)&&(t=Et,t!==null))switch(t.tag){case 3:Ta(n.nodeValue,r,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Ta(n.nodeValue,r,(t.mode&1)!==0)}i&&(e.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Zt]=e,e.stateNode=n}return je(e),null;case 13:if(ce(fe),n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(ue&&yt!==null&&(e.mode&1)!==0&&(e.flags&128)===0)ug(),wo(),e.flags|=98560,i=!1;else if(i=Ia(e),n!==null&&n.dehydrated!==null){if(t===null){if(!i)throw Error(S(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(S(317));i[Zt]=e}else wo(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;je(e),i=!1}else $t!==null&&(su($t),$t=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||(fe.current&1)!==0?ke===0&&(ke=3):yd())),e.updateQueue!==null&&(e.flags|=4),je(e),null);case 4:return So(),Zl(t,e),t===null&&Mi(e.stateNode.containerInfo),je(e),null;case 10:return td(e.type._context),je(e),null;case 17:return ut(e.type)&&ms(),je(e),null;case 19:if(ce(fe),i=e.memoizedState,i===null)return je(e),null;if(n=(e.flags&128)!==0,a=i.rendering,a===null)if(n)Wo(i,!1);else{if(ke!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(a=Ss(t),a!==null){for(e.flags|=128,Wo(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 ie(fe,fe.current&1|2),e.child}t=t.sibling}i.tail!==null&&we()>Io&&(e.flags|=128,n=!0,Wo(i,!1),e.lanes=4194304)}else{if(!n)if(t=Ss(a),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),Wo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!ue)return je(e),null}else 2*we()-i.renderingStartTime>Io&&r!==1073741824&&(e.flags|=128,n=!0,Wo(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=we(),e.sibling=null,r=fe.current,ie(fe,n?r&1|2:r&1),e):(je(e),null);case 22:case 23:return vd(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&(e.mode&1)!==0?(vt&1073741824)!==0&&(je(e),e.subtreeFlags&6&&(e.flags|=8192)):je(e),null;case 24:return null;case 25:return null}throw Error(S(156,e.tag))}function x0(t,e){switch(Ju(e),e.tag){case 1:return ut(e.type)&&ms(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return So(),ce(lt),ce(Qe),ad(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 5:return id(e),null;case 13:if(ce(fe),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(S(340));wo()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return ce(fe),null;case 4:return So(),null;case 10:return td(e.type._context),null;case 22:case 23:return vd(),null;case 24:return null;default:return null}}var Aa=!1,We=!1,M0=typeof WeakSet=="function"?WeakSet:Set,M=null;function eo(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){me(t,e,n)}else r.current=null}function eu(t,e,r){try{r()}catch(n){me(t,e,n)}}var zh=!1;function U0(t,e){if(Hl=hs,t=Jp(),Yu(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,d=t,h=null;t:for(;;){for(var p;d!==r||o!==0&&d.nodeType!==3||(s=a+o),d!==i||n!==0&&d.nodeType!==3||(c=a+n),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===t)break t;if(h===r&&++l===o&&(s=a),h===i&&++u===n&&(c=a),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}r=s===-1||c===-1?null:{start:s,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(Dl={focusedElem:t,selectionRange:r},hs=!1,M=e;M!==null;)if(e=M,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,M=t;else for(;M!==null;){e=M;try{var v=e.alternate;if((e.flags&1024)!==0)switch(e.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,I=v.memoizedState,g=e.stateNode,f=g.getSnapshotBeforeUpdate(e.elementType===e.type?y:Ft(e.type,y),I);g.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var m=e.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(E){me(e,e.return,E)}if(t=e.sibling,t!==null){t.return=e.return,M=t;break}M=e.return}return v=zh,zh=!1,v}function yi(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&&eu(e,r,i)}o=o.next}while(o!==n)}}function cc(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 tu(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 Wg(t){var e=t.alternate;e!==null&&(t.alternate=null,Wg(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Zt],delete e[Li],delete e[$l],delete e[v0],delete e[y0])),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 Yg(t){return t.tag===5||t.tag===3||t.tag===4}function $h(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Yg(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 ru(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=gs));else if(n!==4&&(t=t.child,t!==null))for(ru(t,e,r),t=t.sibling;t!==null;)ru(t,e,r),t=t.sibling}function nu(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(nu(t,e,r),t=t.sibling;t!==null;)nu(t,e,r),t=t.sibling}var Ue=null,zt=!1;function Or(t,e,r){for(r=r.child;r!==null;)Qg(t,e,r),r=r.sibling}function Qg(t,e,r){if(rr&&typeof rr.onCommitFiberUnmount=="function")try{rr.onCommitFiberUnmount(ec,r)}catch{}switch(r.tag){case 5:We||eo(r,e);case 6:var n=Ue,o=zt;Ue=null,Or(t,e,r),Ue=n,zt=o,Ue!==null&&(zt?(t=Ue,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):Ue.removeChild(r.stateNode));break;case 18:Ue!==null&&(zt?(t=Ue,r=r.stateNode,t.nodeType===8?qc(t.parentNode,r):t.nodeType===1&&qc(t,r),Pi(t)):qc(Ue,r.stateNode));break;case 4:n=Ue,o=zt,Ue=r.stateNode.containerInfo,zt=!0,Or(t,e,r),Ue=n,zt=o;break;case 0:case 11:case 14:case 15:if(!We&&(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)&&eu(r,e,a),o=o.next}while(o!==n)}Or(t,e,r);break;case 1:if(!We&&(eo(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){me(r,e,s)}Or(t,e,r);break;case 21:Or(t,e,r);break;case 22:r.mode&1?(We=(n=We)||r.memoizedState!==null,Or(t,e,r),We=n):Or(t,e,r);break;default:Or(t,e,r)}}function jh(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new M0),e.forEach(function(n){var o=B0.bind(null,t,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Ut(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:Ue=s.stateNode,zt=!1;break e;case 3:Ue=s.stateNode.containerInfo,zt=!0;break e;case 4:Ue=s.stateNode.containerInfo,zt=!0;break e}s=s.return}if(Ue===null)throw Error(S(160));Qg(i,a,o),Ue=null,zt=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(l){me(o,e,l)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)Jg(e,t),e=e.sibling}function Jg(t,e){var r=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Ut(e,t),Wt(t),n&4){try{yi(3,t,t.return),cc(3,t)}catch(y){me(t,t.return,y)}try{yi(5,t,t.return)}catch(y){me(t,t.return,y)}}break;case 1:Ut(e,t),Wt(t),n&512&&r!==null&&eo(r,r.return);break;case 5:if(Ut(e,t),Wt(t),n&512&&r!==null&&eo(r,r.return),t.flags&32){var o=t.stateNode;try{bi(o,"")}catch(y){me(t,t.return,y)}}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&&yp(o,i),bl(s,a);var l=bl(s,i);for(a=0;a<c.length;a+=2){var u=c[a],d=c[a+1];u==="style"?Sp(o,d):u==="dangerouslySetInnerHTML"?wp(o,d):u==="children"?bi(o,d):Lu(o,u,d,l)}switch(s){case"input":Cl(o,i);break;case"textarea":_p(o,i);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?lo(o,!!i.multiple,p,!1):h!==!!i.multiple&&(i.defaultValue!=null?lo(o,!!i.multiple,i.defaultValue,!0):lo(o,!!i.multiple,i.multiple?[]:"",!1))}o[Li]=i}catch(y){me(t,t.return,y)}}break;case 6:if(Ut(e,t),Wt(t),n&4){if(t.stateNode===null)throw Error(S(162));o=t.stateNode,i=t.memoizedProps;try{o.nodeValue=i}catch(y){me(t,t.return,y)}}break;case 3:if(Ut(e,t),Wt(t),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Pi(e.containerInfo)}catch(y){me(t,t.return,y)}break;case 4:Ut(e,t),Wt(t);break;case 13:Ut(e,t),Wt(t),o=t.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(gd=we())),n&4&&jh(t);break;case 22:if(u=r!==null&&r.memoizedState!==null,t.mode&1?(We=(l=We)||u,Ut(e,t),We=l):Ut(e,t),Wt(t),n&8192){if(l=t.memoizedState!==null,(t.stateNode.isHidden=l)&&!u&&(t.mode&1)!==0)for(M=t,u=t.child;u!==null;){for(d=M=u;M!==null;){switch(h=M,p=h.child,h.tag){case 0:case 11:case 14:case 15:yi(4,h,h.return);break;case 1:eo(h,h.return);var v=h.stateNode;if(typeof v.componentWillUnmount=="function"){n=h,r=h.return;try{e=n,v.props=e.memoizedProps,v.state=e.memoizedState,v.componentWillUnmount()}catch(y){me(n,r,y)}}break;case 5:eo(h,h.return);break;case 22:if(h.memoizedState!==null){Bh(d);continue}}p!==null?(p.return=h,M=p):Bh(d)}u=u.sibling}e:for(u=null,d=t;;){if(d.tag===5){if(u===null){u=d;try{o=d.stateNode,l?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=d.stateNode,c=d.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,s.style.display=Cp("display",a))}catch(y){me(t,t.return,y)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(y){me(t,t.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===t)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Ut(e,t),Wt(t),n&4&&jh(t);break;case 21:break;default:Ut(e,t),Wt(t)}}function Wt(t){var e=t.flags;if(e&2){try{e:{for(var r=t.return;r!==null;){if(Yg(r)){var n=r;break e}r=r.return}throw Error(S(160))}switch(n.tag){case 5:var o=n.stateNode;n.flags&32&&(bi(o,""),n.flags&=-33);var i=$h(t);nu(t,i,o);break;case 3:case 4:var a=n.stateNode.containerInfo,s=$h(t);ru(t,s,a);break;default:throw Error(S(161))}}catch(c){me(t,t.return,c)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function L0(t,e,r){M=t,Xg(t)}function Xg(t,e,r){for(var n=(t.mode&1)!==0;M!==null;){var o=M,i=o.child;if(o.tag===22&&n){var a=o.memoizedState!==null||Aa;if(!a){var s=o.alternate,c=s!==null&&s.memoizedState!==null||We;s=Aa;var l=We;if(Aa=a,(We=c)&&!l)for(M=o;M!==null;)a=M,c=a.child,a.tag===22&&a.memoizedState!==null?Kh(o):c!==null?(c.return=a,M=c):Kh(o);for(;i!==null;)M=i,Xg(i),i=i.sibling;M=o,Aa=s,We=l}qh(t)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,M=i):qh(t)}}function qh(t){for(;M!==null;){var e=M;if((e.flags&8772)!==0){var r=e.alternate;try{if((e.flags&8772)!==0)switch(e.tag){case 0:case 11:case 15:We||cc(5,e);break;case 1:var n=e.stateNode;if(e.flags&4&&!We)if(r===null)n.componentDidMount();else{var o=e.elementType===e.type?r.memoizedProps:Ft(e.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;i!==null&&kh(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}kh(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 d=u.dehydrated;d!==null&&Pi(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(S(163))}We||e.flags&512&&tu(e)}catch(h){me(e,e.return,h)}}if(e===t){M=null;break}if(r=e.sibling,r!==null){r.return=e.return,M=r;break}M=e.return}}function Bh(t){for(;M!==null;){var e=M;if(e===t){M=null;break}var r=e.sibling;if(r!==null){r.return=e.return,M=r;break}M=e.return}}function Kh(t){for(;M!==null;){var e=M;try{switch(e.tag){case 0:case 11:case 15:var r=e.return;try{cc(4,e)}catch(c){me(e,r,c)}break;case 1:var n=e.stateNode;if(typeof n.componentDidMount=="function"){var o=e.return;try{n.componentDidMount()}catch(c){me(e,o,c)}}var i=e.return;try{tu(e)}catch(c){me(e,i,c)}break;case 5:var a=e.return;try{tu(e)}catch(c){me(e,a,c)}}}catch(c){me(e,e.return,c)}if(e===t){M=null;break}var s=e.sibling;if(s!==null){s.return=e.return,M=s;break}M=e.return}}var H0=Math.ceil,ks=Ar.ReactCurrentDispatcher,fd=Ar.ReactCurrentOwner,Pt=Ar.ReactCurrentBatchConfig,Y=0,Oe=null,Se=null,De=0,vt=0,to=on(0),ke=0,ji=null,kn=0,lc=0,pd=0,_i=null,st=null,gd=0,Io=1/0,dr=null,bs=!1,ou=null,Yr=null,Ra=!1,qr=null,As=0,Ei=0,iu=null,Ya=-1,Qa=0;function rt(){return(Y&6)!==0?we():Ya!==-1?Ya:Ya=we()}function Qr(t){return(t.mode&1)===0?1:(Y&2)!==0&&De!==0?De&-De:E0.transition!==null?(Qa===0&&(Qa=Up()),Qa):(t=ee,t!==0||(t=window.event,t=t===void 0?16:jp(t.type)),t)}function Kt(t,e,r,n){if(50<Ei)throw Ei=0,iu=null,Error(S(185));ra(t,r,n),((Y&2)===0||t!==Oe)&&(t===Oe&&((Y&2)===0&&(lc|=r),ke===4&&zr(t,De)),dt(t,n),r===1&&Y===0&&(e.mode&1)===0&&(Io=we()+500,ic&&an()))}function dt(t,e){var r=t.callbackNode;Ey(t,e);var n=ds(t,t===Oe?De:0);if(n===0)r!==null&&eh(r),t.callbackNode=null,t.callbackPriority=0;else if(e=n&-n,t.callbackPriority!==e){if(r!=null&&eh(r),e===1)t.tag===0?_0(Gh.bind(null,t)):sg(Gh.bind(null,t)),g0(function(){(Y&6)===0&&an()}),r=null;else{switch(Lp(n)){case 1:r=$u;break;case 4:r=xp;break;case 16:r=us;break;case 536870912:r=Mp;break;default:r=us}r=am(r,Zg.bind(null,t))}t.callbackPriority=e,t.callbackNode=r}}function Zg(t,e){if(Ya=-1,Qa=0,(Y&6)!==0)throw Error(S(327));var r=t.callbackNode;if(go()&&t.callbackNode!==r)return null;var n=ds(t,t===Oe?De:0);if(n===0)return null;if((n&30)!==0||(n&t.expiredLanes)!==0||e)e=Rs(t,n);else{e=n;var o=Y;Y|=2;var i=tm();(Oe!==t||De!==e)&&(dr=null,Io=we()+500,_n(t,e));do try{z0();break}catch(s){em(t,s)}while(1);ed(),ks.current=i,Y=o,Se!==null?e=0:(Oe=null,De=0,e=ke)}if(e!==0){if(e===2&&(o=Ol(t),o!==0&&(n=o,e=au(t,o))),e===1)throw r=ji,_n(t,0),zr(t,n),dt(t,we()),r;if(e===6)zr(t,n);else{if(o=t.current.alternate,(n&30)===0&&!D0(o)&&(e=Rs(t,n),e===2&&(i=Ol(t),i!==0&&(n=i,e=au(t,i))),e===1))throw r=ji,_n(t,0),zr(t,n),dt(t,we()),r;switch(t.finishedWork=o,t.finishedLanes=n,e){case 0:case 1:throw Error(S(345));case 2:hn(t,st,dr);break;case 3:if(zr(t,n),(n&130023424)===n&&(e=gd+500-we(),10<e)){if(ds(t,0)!==0)break;if(o=t.suspendedLanes,(o&n)!==n){rt(),t.pingedLanes|=t.suspendedLanes&o;break}t.timeoutHandle=zl(hn.bind(null,t,st,dr),e);break}hn(t,st,dr);break;case 4:if(zr(t,n),(n&4194240)===n)break;for(e=t.eventTimes,o=-1;0<n;){var a=31-Bt(n);i=1<<a,a=e[a],a>o&&(o=a),n&=~i}if(n=o,n=we()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*H0(n/1960))-n,10<n){t.timeoutHandle=zl(hn.bind(null,t,st,dr),n);break}hn(t,st,dr);break;case 5:hn(t,st,dr);break;default:throw Error(S(329))}}}return dt(t,we()),t.callbackNode===r?Zg.bind(null,t):null}function au(t,e){var r=_i;return t.current.memoizedState.isDehydrated&&(_n(t,e).flags|=256),t=Rs(t,e),t!==2&&(e=st,st=r,e!==null&&su(e)),t}function su(t){st===null?st=t:st.push.apply(st,t)}function D0(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(!Vt(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 zr(t,e){for(e&=~pd,e&=~lc,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var r=31-Bt(e),n=1<<r;t[r]=-1,e&=~n}}function Gh(t){if((Y&6)!==0)throw Error(S(327));go();var e=ds(t,0);if((e&1)===0)return dt(t,we()),null;var r=Rs(t,e);if(t.tag!==0&&r===2){var n=Ol(t);n!==0&&(e=n,r=au(t,n))}if(r===1)throw r=ji,_n(t,0),zr(t,e),dt(t,we()),r;if(r===6)throw Error(S(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,hn(t,st,dr),dt(t,we()),null}function md(t,e){var r=Y;Y|=1;try{return t(e)}finally{Y=r,Y===0&&(Io=we()+500,ic&&an())}}function bn(t){qr!==null&&qr.tag===0&&(Y&6)===0&&go();var e=Y;Y|=1;var r=Pt.transition,n=ee;try{if(Pt.transition=null,ee=1,t)return t()}finally{ee=n,Pt.transition=r,Y=e,(Y&6)===0&&an()}}function vd(){vt=to.current,ce(to)}function _n(t,e){t.finishedWork=null,t.finishedLanes=0;var r=t.timeoutHandle;if(r!==-1&&(t.timeoutHandle=-1,p0(r)),Se!==null)for(r=Se.return;r!==null;){var n=r;switch(Ju(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&ms();break;case 3:So(),ce(lt),ce(Qe),ad();break;case 5:id(n);break;case 4:So();break;case 13:ce(fe);break;case 19:ce(fe);break;case 10:td(n.type._context);break;case 22:case 23:vd()}r=r.return}if(Oe=t,Se=t=Jr(t.current,null),De=vt=e,ke=0,ji=null,pd=lc=kn=0,st=_i=null,mn!==null){for(e=0;e<mn.length;e++)if(r=mn[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}mn=null}return t}function em(t,e){do{var r=Se;try{if(ed(),Ga.current=Is,Ts){for(var n=pe.memoizedState;n!==null;){var o=n.queue;o!==null&&(o.pending=null),n=n.next}Ts=!1}if(In=0,Re=Ie=pe=null,vi=!1,Fi=0,fd.current=null,r===null||r.return===null){ke=1,ji=e,Se=null;break}e:{var i=t,a=r.return,s=r,c=e;if(e=De,s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var l=c,u=s,d=u.tag;if((u.mode&1)===0&&(d===0||d===11||d===15)){var h=u.alternate;h?(u.updateQueue=h.updateQueue,u.memoizedState=h.memoizedState,u.lanes=h.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=xh(a);if(p!==null){p.flags&=-257,Mh(p,a,s,i,e),p.mode&1&&Oh(i,l,e),e=p,c=l;var v=e.updateQueue;if(v===null){var y=new Set;y.add(c),e.updateQueue=y}else v.add(c);break e}else{if((e&1)===0){Oh(i,l,e),yd();break e}c=Error(S(426))}}else if(ue&&s.mode&1){var I=xh(a);if(I!==null){(I.flags&65536)===0&&(I.flags|=256),Mh(I,a,s,i,e),Xu(To(c,s));break e}}i=c=To(c,s),ke!==4&&(ke=2),_i===null?_i=[i]:_i.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e;var g=Hg(i,c,e);Ih(i,g);break e;case 1:s=c;var f=i.type,m=i.stateNode;if((i.flags&128)===0&&(typeof f.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Yr===null||!Yr.has(m)))){i.flags|=65536,e&=-e,i.lanes|=e;var E=Dg(i,s,e);Ih(i,E);break e}}i=i.return}while(i!==null)}nm(r)}catch(b){e=b,Se===r&&r!==null&&(Se=r=r.return);continue}break}while(1)}function tm(){var t=ks.current;return ks.current=Is,t===null?Is:t}function yd(){(ke===0||ke===3||ke===2)&&(ke=4),Oe===null||(kn&268435455)===0&&(lc&268435455)===0||zr(Oe,De)}function Rs(t,e){var r=Y;Y|=2;var n=tm();(Oe!==t||De!==e)&&(dr=null,_n(t,e));do try{F0();break}catch(o){em(t,o)}while(1);if(ed(),Y=r,ks.current=n,Se!==null)throw Error(S(261));return Oe=null,De=0,ke}function F0(){for(;Se!==null;)rm(Se)}function z0(){for(;Se!==null&&!dy();)rm(Se)}function rm(t){var e=im(t.alternate,t,vt);t.memoizedProps=t.pendingProps,e===null?nm(t):Se=e,fd.current=null}function nm(t){var e=t;do{var r=e.alternate;if(t=e.return,(e.flags&32768)===0){if(r=O0(r,e,vt),r!==null){Se=r;return}}else{if(r=x0(r,e),r!==null){r.flags&=32767,Se=r;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{ke=6,Se=null;return}}if(e=e.sibling,e!==null){Se=e;return}Se=e=t}while(e!==null);ke===0&&(ke=5)}function hn(t,e,r){var n=ee,o=Pt.transition;try{Pt.transition=null,ee=1,$0(t,e,r,n)}finally{Pt.transition=o,ee=n}return null}function $0(t,e,r,n){do go();while(qr!==null);if((Y&6)!==0)throw Error(S(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(S(177));t.callbackNode=null,t.callbackPriority=0;var i=r.lanes|r.childLanes;if(wy(t,i),t===Oe&&(Se=Oe=null,De=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Ra||(Ra=!0,am(us,function(){return go(),null})),i=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||i){i=Pt.transition,Pt.transition=null;var a=ee;ee=1;var s=Y;Y|=4,fd.current=null,U0(t,r),Jg(r,t),s0(Dl),hs=!!Hl,Dl=Hl=null,t.current=r,L0(r),hy(),Y=s,ee=a,Pt.transition=i}else t.current=r;if(Ra&&(Ra=!1,qr=t,As=o),i=t.pendingLanes,i===0&&(Yr=null),gy(r.stateNode),dt(t,we()),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(bs)throw bs=!1,t=ou,ou=null,t;return(As&1)!==0&&t.tag!==0&&go(),i=t.pendingLanes,(i&1)!==0?t===iu?Ei++:(Ei=0,iu=t):Ei=0,an(),null}function go(){if(qr!==null){var t=Lp(As),e=Pt.transition,r=ee;try{if(Pt.transition=null,ee=16>t?16:t,qr===null)var n=!1;else{if(t=qr,qr=null,As=0,(Y&6)!==0)throw Error(S(331));var o=Y;for(Y|=4,M=t.current;M!==null;){var i=M,a=i.child;if((M.flags&16)!==0){var s=i.deletions;if(s!==null){for(var c=0;c<s.length;c++){var l=s[c];for(M=l;M!==null;){var u=M;switch(u.tag){case 0:case 11:case 15:yi(8,u,i)}var d=u.child;if(d!==null)d.return=u,M=d;else for(;M!==null;){u=M;var h=u.sibling,p=u.return;if(Wg(u),u===l){M=null;break}if(h!==null){h.return=p,M=h;break}M=p}}}var v=i.alternate;if(v!==null){var y=v.child;if(y!==null){v.child=null;do{var I=y.sibling;y.sibling=null,y=I}while(y!==null)}}M=i}}if((i.subtreeFlags&2064)!==0&&a!==null)a.return=i,M=a;else e:for(;M!==null;){if(i=M,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:yi(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,M=g;break e}M=i.return}}var f=t.current;for(M=f;M!==null;){a=M;var m=a.child;if((a.subtreeFlags&2064)!==0&&m!==null)m.return=a,M=m;else e:for(a=f;M!==null;){if(s=M,(s.flags&2048)!==0)try{switch(s.tag){case 0:case 11:case 15:cc(9,s)}}catch(b){me(s,s.return,b)}if(s===a){M=null;break e}var E=s.sibling;if(E!==null){E.return=s.return,M=E;break e}M=s.return}}if(Y=o,an(),rr&&typeof rr.onPostCommitFiberRoot=="function")try{rr.onPostCommitFiberRoot(ec,t)}catch{}n=!0}return n}finally{ee=r,Pt.transition=e}}return!1}function Vh(t,e,r){e=To(r,e),e=Hg(t,e,1),t=Wr(t,e,1),e=rt(),t!==null&&(ra(t,1,e),dt(t,e))}function me(t,e,r){if(t.tag===3)Vh(t,t,r);else for(;e!==null;){if(e.tag===3){Vh(e,t,r);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Yr===null||!Yr.has(n))){t=To(r,t),t=Dg(e,t,1),e=Wr(e,t,1),t=rt(),e!==null&&(ra(e,1,t),dt(e,t));break}}e=e.return}}function j0(t,e,r){var n=t.pingCache;n!==null&&n.delete(e),e=rt(),t.pingedLanes|=t.suspendedLanes&r,Oe===t&&(De&r)===r&&(ke===4||ke===3&&(De&130023424)===De&&500>we()-gd?_n(t,0):pd|=r),dt(t,e)}function om(t,e){e===0&&((t.mode&1)===0?e=1:(e=_a,_a<<=1,(_a&130023424)===0&&(_a=4194304)));var r=rt();t=Ir(t,e),t!==null&&(ra(t,e,r),dt(t,r))}function q0(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),om(t,r)}function B0(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(S(314))}n!==null&&n.delete(e),om(t,r)}var im;im=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||lt.current)ct=!0;else{if((t.lanes&r)===0&&(e.flags&128)===0)return ct=!1,P0(t,e,r);ct=(t.flags&131072)!==0}else ct=!1,ue&&(e.flags&1048576)!==0&&cg(e,_s,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;Wa(t,e),t=e.pendingProps;var o=Eo(e,Qe.current);po(e,r),o=cd(null,e,n,t,o,r);var i=ld();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,ut(n)?(i=!0,vs(e)):i=!1,e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,nd(e),o.updater=ac,e.stateNode=o,o._reactInternals=e,Vl(e,n,t,r),e=Ql(null,e,n,!0,i,r)):(e.tag=0,ue&&i&&Qu(e),Ze(null,e,o,r),e=e.child),e;case 16:n=e.elementType;e:{switch(Wa(t,e),t=e.pendingProps,o=n._init,n=o(n._payload),e.type=n,o=e.tag=G0(n),t=Ft(n,t),o){case 0:e=Yl(null,e,n,t,r);break e;case 1:e=Hh(null,e,n,t,r);break e;case 11:e=Uh(null,e,n,t,r);break e;case 14:e=Lh(null,e,n,Ft(n.type,t),r);break e}throw Error(S(306,n,""))}return e;case 0:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:Ft(n,o),Yl(t,e,n,o,r);case 1:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:Ft(n,o),Hh(t,e,n,o,r);case 3:e:{if(jg(e),t===null)throw Error(S(387));n=e.pendingProps,i=e.memoizedState,o=i.element,hg(t,e),Cs(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=To(Error(S(423)),e),e=Dh(t,e,n,r,o);break e}else if(n!==o){o=To(Error(S(424)),e),e=Dh(t,e,n,r,o);break e}else for(yt=Vr(e.stateNode.containerInfo.firstChild),Et=e,ue=!0,$t=null,r=mg(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(wo(),n===o){e=kr(t,e,r);break e}Ze(t,e,n,r)}e=e.child}return e;case 5:return vg(e),t===null&&Bl(e),n=e.type,o=e.pendingProps,i=t!==null?t.memoizedProps:null,a=o.children,Fl(n,o)?a=null:i!==null&&Fl(n,i)&&(e.flags|=32),$g(t,e),Ze(t,e,a,r),e.child;case 6:return t===null&&Bl(e),null;case 13:return qg(t,e,r);case 4:return od(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Co(e,null,n,r):Ze(t,e,n,r),e.child;case 11:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:Ft(n,o),Uh(t,e,n,o,r);case 7:return Ze(t,e,e.pendingProps,r),e.child;case 8:return Ze(t,e,e.pendingProps.children,r),e.child;case 12:return Ze(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,ie(Es,n._currentValue),n._currentValue=a,i!==null)if(Vt(i.value,a)){if(i.children===o.children&&!lt.current){e=kr(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=yr(-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),Kl(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(S(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),Kl(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}Ze(t,e,o.children,r),e=e.child}return e;case 9:return o=e.type,n=e.pendingProps.children,po(e,r),o=xt(o),n=n(o),e.flags|=1,Ze(t,e,n,r),e.child;case 14:return n=e.type,o=Ft(n,e.pendingProps),o=Ft(n.type,o),Lh(t,e,n,o,r);case 15:return Fg(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:Ft(n,o),Wa(t,e),e.tag=1,ut(n)?(t=!0,vs(e)):t=!1,po(e,r),pg(e,n,o),Vl(e,n,o,r),Ql(null,e,n,!0,t,r);case 19:return Bg(t,e,r);case 22:return zg(t,e,r)}throw Error(S(156,e.tag))};function am(t,e){return Op(t,e)}function K0(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 Nt(t,e,r,n){return new K0(t,e,r,n)}function _d(t){return t=t.prototype,!(!t||!t.isReactComponent)}function G0(t){if(typeof t=="function")return _d(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Du)return 11;if(t===Fu)return 14}return 2}function Jr(t,e){var r=t.alternate;return r===null?(r=Nt(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 Ja(t,e,r,n,o,i){var a=2;if(n=t,typeof t=="function")_d(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case Kn:return En(r.children,o,i,e);case Hu:a=8,o|=8;break;case vl:return t=Nt(12,r,e,o|2),t.elementType=vl,t.lanes=i,t;case yl:return t=Nt(13,r,e,o),t.elementType=yl,t.lanes=i,t;case _l:return t=Nt(19,r,e,o),t.elementType=_l,t.lanes=i,t;case gp:return uc(r,o,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case fp:a=10;break e;case pp:a=9;break e;case Du:a=11;break e;case Fu:a=14;break e;case Ur:a=16,n=null;break e}throw Error(S(130,t==null?t:typeof t,""))}return e=Nt(a,r,e,o),e.elementType=t,e.type=n,e.lanes=i,e}function En(t,e,r,n){return t=Nt(7,t,n,e),t.lanes=r,t}function uc(t,e,r,n){return t=Nt(22,t,n,e),t.elementType=gp,t.lanes=r,t.stateNode={isHidden:!1},t}function Jc(t,e,r){return t=Nt(6,t,null,e),t.lanes=r,t}function Xc(t,e,r){return e=Nt(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function V0(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=Oc(0),this.expirationTimes=Oc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Oc(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ed(t,e,r,n,o,i,a,s,c){return t=new V0(t,e,r,s,c),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Nt(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},nd(i),t}function W0(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Bn,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}function sm(t){if(!t)return rn;t=t._reactInternals;e:{if(xn(t)!==t||t.tag!==1)throw Error(S(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(ut(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(S(171))}if(t.tag===1){var r=t.type;if(ut(r))return ag(t,r,e)}return e}function cm(t,e,r,n,o,i,a,s,c){return t=Ed(r,n,!0,t,o,i,a,s,c),t.context=sm(null),r=t.current,n=rt(),o=Qr(r),i=yr(n,o),i.callback=e!=null?e:null,Wr(r,i,o),t.current.lanes=o,ra(t,o,n),dt(t,n),t}function dc(t,e,r,n){var o=e.current,i=rt(),a=Qr(o);return r=sm(r),e.context===null?e.context=r:e.pendingContext=r,e=yr(i,a),e.payload={element:t},n=n===void 0?null:n,n!==null&&(e.callback=n),t=Wr(o,e,a),t!==null&&(Kt(t,o,a,i),Ka(t,o,a)),a}function Ns(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 Wh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<e?r:e}}function wd(t,e){Wh(t,e),(t=t.alternate)&&Wh(t,e)}function Y0(){return null}var lm=typeof reportError=="function"?reportError:function(t){console.error(t)};function Cd(t){this._internalRoot=t}hc.prototype.render=Cd.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(S(409));dc(t,e,null,null)};hc.prototype.unmount=Cd.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;bn(function(){dc(null,t,null,null)}),e[Tr]=null}};function hc(t){this._internalRoot=t}hc.prototype.unstable_scheduleHydration=function(t){if(t){var e=Fp();t={blockedOn:null,target:t,priority:e};for(var r=0;r<Fr.length&&e!==0&&e<Fr[r].priority;r++);Fr.splice(r,0,t),r===0&&$p(t)}};function Sd(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function fc(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Yh(){}function Q0(t,e,r,n,o){if(o){if(typeof n=="function"){var i=n;n=function(){var l=Ns(a);i.call(l)}}var a=cm(e,n,t,0,null,!1,!1,"",Yh);return t._reactRootContainer=a,t[Tr]=a.current,Mi(t.nodeType===8?t.parentNode:t),bn(),a}for(;o=t.lastChild;)t.removeChild(o);if(typeof n=="function"){var s=n;n=function(){var l=Ns(c);s.call(l)}}var c=Ed(t,0,!1,null,null,!1,!1,"",Yh);return t._reactRootContainer=c,t[Tr]=c.current,Mi(t.nodeType===8?t.parentNode:t),bn(function(){dc(e,c,r,n)}),c}function pc(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=Ns(a);s.call(c)}}dc(e,a,t,o)}else a=Q0(r,e,t,o,n);return Ns(a)}Hp=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var r=ti(e.pendingLanes);r!==0&&(ju(e,r|1),dt(e,we()),(Y&6)===0&&(Io=we()+500,an()))}break;case 13:bn(function(){var n=Ir(t,1);if(n!==null){var o=rt();Kt(n,t,1,o)}}),wd(t,1)}};qu=function(t){if(t.tag===13){var e=Ir(t,134217728);if(e!==null){var r=rt();Kt(e,t,134217728,r)}wd(t,134217728)}};Dp=function(t){if(t.tag===13){var e=Qr(t),r=Ir(t,e);if(r!==null){var n=rt();Kt(r,t,e,n)}wd(t,e)}};Fp=function(){return ee};zp=function(t,e){var r=ee;try{return ee=t,e()}finally{ee=r}};Rl=function(t,e,r){switch(e){case"input":if(Cl(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=oc(n);if(!o)throw Error(S(90));vp(n),Cl(n,o)}}}break;case"textarea":_p(t,r);break;case"select":e=r.value,e!=null&&lo(t,!!r.multiple,e,!1)}};kp=md;bp=bn;var J0={usingClientEntryPoint:!1,Events:[oa,Yn,oc,Tp,Ip,md]},Yo={findFiberByHostInstance:gn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},X0={bundleType:Yo.bundleType,version:Yo.version,rendererPackageName:Yo.rendererPackageName,rendererConfig:Yo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ar.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Np(t),t===null?null:t.stateNode},findFiberByHostInstance:Yo.findFiberByHostInstance||Y0,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 Na=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Na.isDisabled&&Na.supportsFiber)try{ec=Na.inject(X0),rr=Na}catch{}}St.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=J0;St.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Sd(e))throw Error(S(200));return W0(t,e,null,r)};St.createRoot=function(t,e){if(!Sd(t))throw Error(S(299));var r=!1,n="",o=lm;return e!=null&&(e.unstable_strictMode===!0&&(r=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=Ed(t,1,!1,null,null,r,!1,n,o),t[Tr]=e.current,Mi(t.nodeType===8?t.parentNode:t),new Cd(e)};St.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(S(188)):(t=Object.keys(t).join(","),Error(S(268,t)));return t=Np(e),t=t===null?null:t.stateNode,t};St.flushSync=function(t){return bn(t)};St.hydrate=function(t,e,r){if(!fc(e))throw Error(S(200));return pc(null,t,e,!0,r)};St.hydrateRoot=function(t,e,r){if(!Sd(t))throw Error(S(405));var n=r!=null&&r.hydratedSources||null,o=!1,i="",a=lm;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),e=cm(e,null,t,1,r!=null?r:null,o,!1,i,a),t[Tr]=e.current,Mi(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 hc(e)};St.render=function(t,e,r){if(!fc(e))throw Error(S(200));return pc(null,t,e,!1,r)};St.unmountComponentAtNode=function(t){if(!fc(t))throw Error(S(40));return t._reactRootContainer?(bn(function(){pc(null,null,t,!1,function(){t._reactRootContainer=null,t[Tr]=null})}),!0):!1};St.unstable_batchedUpdates=md;St.unstable_renderSubtreeIntoContainer=function(t,e,r,n){if(!fc(r))throw Error(S(200));if(t==null||t._reactInternals===void 0)throw Error(S(38));return pc(t,e,r,!1,n)};St.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=St})(cp);var Qh=cp.exports;gl.createRoot=Qh.createRoot,gl.hydrateRoot=Qh.hydrateRoot;class Z0{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){}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 um extends Z0{formatModuleName(e){return`\u{1F4E6}\x1B[1;32m${(typeof e=="string"?e:e.name).replace(/([A-Z])/g," $1").toUpperCase()}\x1B[0m`}}var cu=function(t,e){return cu=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])},cu(t,e)};function Rr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");cu(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var An=function(){return An=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},An.apply(this,arguments)};function dm(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 ar(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 e_(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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})}function hm(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 Rn(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 or(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 br(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 mo(t){return this instanceof mo?(this.v=t,this):new mo(t)}function t_(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(h){n[h]&&(o[h]=function(p){return new Promise(function(v,y){i.push([h,p,v,y])>1||s(h,p)})})}function s(h,p){try{c(n[h](p))}catch(v){d(i[0][3],v)}}function c(h){h.value instanceof mo?Promise.resolve(h.value.v).then(l,u):d(i[0][2],h)}function l(h){s("next",h)}function u(h){s("throw",h)}function d(h,p){h(p),i.shift(),i.length&&s(i[0][0],i[0][1])}}function r_(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 Rn=="function"?Rn(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 te(t){return typeof t=="function"}function gc(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 Zc=gc(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription:
32
+ `+i.stack}return{value:t,source:e,stack:o,digest:null}}function Yc(t,e,r){return{value:t,source:null,stack:r!=null?r:null,digest:e!=null?e:null}}function Wl(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var T0=typeof WeakMap=="function"?WeakMap:Map;function Lg(t,e,r){r=yr(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){bs||(bs=!0,ou=n),Wl(t,e)},r}function Hg(t,e,r){r=yr(-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(){Wl(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){Wl(t,e),typeof n!="function"&&(Yr===null?Yr=new Set([this]):Yr.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),r}function Ph(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new T0;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=D0.bind(null,t,e,r),e.then(t,t))}function Oh(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 xh(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=yr(-1,1),e.tag=2,Wr(r,e,1))),r.lanes|=1),t):(t.flags|=65536,t.lanes=o,t)}var I0=Ar.ReactCurrentOwner,ct=!1;function Ze(t,e,r,n){e.child=t===null?gg(e,null,r,n):Co(e,t.child,r,n)}function Mh(t,e,r,n,o){r=r.render;var i=e.ref;return po(e,o),n=cd(t,e,r,n,i,o),r=ld(),t!==null&&!ct?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~o,kr(t,e,o)):(ue&&r&&Qu(e),e.flags|=1,Ze(t,e,n,o),e.child)}function Uh(t,e,r,n,o){if(t===null){var i=r.type;return typeof i=="function"&&!_d(i)&&i.defaultProps===void 0&&r.compare===null&&r.defaultProps===void 0?(e.tag=15,e.type=i,Dg(t,e,i,n,o)):(t=Ja(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:xi,r(a,n)&&t.ref===e.ref)return kr(t,e,o)}return e.flags|=1,t=Jr(i,n),t.ref=e.ref,t.return=e,e.child=t}function Dg(t,e,r,n,o){if(t!==null){var i=t.memoizedProps;if(xi(i,n)&&t.ref===e.ref)if(ct=!1,e.pendingProps=n=i,(t.lanes&o)!==0)(t.flags&131072)!==0&&(ct=!0);else return e.lanes=t.lanes,kr(t,e,o)}return Yl(t,e,r,n,o)}function Fg(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},ie(to,vt),vt|=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,ie(to,vt),vt|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,ie(to,vt),vt|=n}else i!==null?(n=i.baseLanes|r,e.memoizedState=null):n=r,ie(to,vt),vt|=n;return Ze(t,e,o,r),e.child}function zg(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function Yl(t,e,r,n,o){var i=ut(r)?Sn:Qe.current;return i=Eo(e,i),po(e,o),r=cd(t,e,r,n,i,o),n=ld(),t!==null&&!ct?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~o,kr(t,e,o)):(ue&&n&&Qu(e),e.flags|=1,Ze(t,e,r,o),e.child)}function Lh(t,e,r,n,o){if(ut(r)){var i=!0;vs(e)}else i=!1;if(po(e,o),e.stateNode===null)Wa(t,e),fg(e,r,n),Vl(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=ut(r)?Sn:Qe.current,l=Eo(e,l));var u=r.getDerivedStateFromProps,d=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||c!==l)&&bh(e,a,n,l),Lr=!1;var h=e.memoizedState;a.state=h,Cs(e,n,a,o),c=e.memoizedState,s!==n||h!==c||lt.current||Lr?(typeof u=="function"&&(Gl(e,r,u,n),c=e.memoizedState),(s=Lr||kh(e,r,s,n,h,c,l))?(d||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,dg(t,e),s=e.memoizedProps,l=e.type===e.elementType?s:Ft(e.type,s),a.props=l,d=e.pendingProps,h=a.context,c=r.contextType,typeof c=="object"&&c!==null?c=xt(c):(c=ut(r)?Sn:Qe.current,c=Eo(e,c));var p=r.getDerivedStateFromProps;(u=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||h!==c)&&bh(e,a,n,c),Lr=!1,h=e.memoizedState,a.state=h,Cs(e,n,a,o);var v=e.memoizedState;s!==d||h!==v||lt.current||Lr?(typeof p=="function"&&(Gl(e,r,p,n),v=e.memoizedState),(l=Lr||kh(e,r,l,n,h,v,c)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,v,c),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,v,c)),typeof a.componentDidUpdate=="function"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=v),a.props=n,a.state=v,a.context=c,n=l):(typeof a.componentDidUpdate!="function"||s===t.memoizedProps&&h===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&h===t.memoizedState||(e.flags|=1024),n=!1)}return Ql(t,e,r,n,i,o)}function Ql(t,e,r,n,o,i){zg(t,e);var a=(e.flags&128)!==0;if(!n&&!a)return o&&wh(e,r,!1),kr(t,e,i);n=e.stateNode,I0.current=e;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,t!==null&&a?(e.child=Co(e,t.child,null,i),e.child=Co(e,null,s,i)):Ze(t,e,s,i),e.memoizedState=n.state,o&&wh(e,r,!0),e.child}function $g(t){var e=t.stateNode;e.pendingContext?Eh(t,e.pendingContext,e.pendingContext!==e.context):e.context&&Eh(t,e.context,!1),od(t,e.containerInfo)}function Hh(t,e,r,n,o){return wo(),Xu(o),e.flags|=256,Ze(t,e,r,n),e.child}var Jl={dehydrated:null,treeContext:null,retryLane:0};function Xl(t){return{baseLanes:t,cachePool:null,transitions:null}}function jg(t,e,r){var n=e.pendingProps,o=fe.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),ie(fe,o&1),t===null)return Bl(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=uc(a,n,0,null),t=En(t,n,r,null),i.return=e,t.return=e,i.sibling=t,e.child=i,e.child.memoizedState=Xl(r),e.memoizedState=Jl,t):hd(e,a));if(o=t.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return k0(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=Jr(o,c),n.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Jr(s,i):(i=En(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?Xl(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=t.childLanes&~r,e.memoizedState=Jl,n}return i=t.child,t=i.sibling,n=Jr(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 hd(t,e){return e=uc({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function ba(t,e,r,n){return n!==null&&Xu(n),Co(e,t.child,null,r),t=hd(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function k0(t,e,r,n,o,i,a){if(r)return e.flags&256?(e.flags&=-257,n=Yc(Error(S(422))),ba(t,e,a,n)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(i=n.fallback,o=e.mode,n=uc({mode:"visible",children:n.children},o,0,null),i=En(i,o,a,null),i.flags|=2,n.return=e,i.return=e,n.sibling=i,e.child=n,(e.mode&1)!==0&&Co(e,t.child,null,a),e.child.memoizedState=Xl(a),e.memoizedState=Jl,i);if((e.mode&1)===0)return ba(t,e,a,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var s=n.dgst;return n=s,i=Error(S(419)),n=Yc(i,n,void 0),ba(t,e,a,n)}if(s=(a&t.childLanes)!==0,ct||s){if(n=Oe,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,Ir(t,o),Kt(n,t,o,-1))}return yd(),n=Yc(Error(S(421))),ba(t,e,a,n)}return o.data==="$?"?(e.flags|=128,e.child=t.child,e=F0.bind(null,t),o._reactRetry=e,null):(t=i.treeContext,yt=Vr(o.nextSibling),Et=e,ue=!0,$t=null,t!==null&&(bt[At++]=pr,bt[At++]=gr,bt[At++]=Tn,pr=t.id,gr=t.overflow,Tn=e),e=hd(e,n.children),e.flags|=4096,e)}function Dh(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),Kl(t.return,e,r)}function Qc(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 qg(t,e,r){var n=e.pendingProps,o=n.revealOrder,i=n.tail;if(Ze(t,e,n.children,r),n=fe.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&&Dh(t,r,e);else if(t.tag===19)Dh(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(ie(fe,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&&Ss(t)===null&&(o=r),r=r.sibling;r=o,r===null?(o=e.child,e.child=null):(o=r.sibling,r.sibling=null),Qc(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&&Ss(t)===null){e.child=o;break}t=o.sibling,o.sibling=r,r=o,o=t}Qc(e,!0,r,null,i);break;case"together":Qc(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Wa(t,e){(e.mode&1)===0&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function kr(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),kn|=e.lanes,(r&e.childLanes)===0)return null;if(t!==null&&e.child!==t.child)throw Error(S(153));if(e.child!==null){for(t=e.child,r=Jr(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=Jr(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function b0(t,e,r){switch(e.tag){case 3:$g(e),wo();break;case 5:mg(e);break;case 1:ut(e.type)&&vs(e);break;case 4:od(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,o=e.memoizedProps.value;ie(Es,n._currentValue),n._currentValue=o;break;case 13:if(n=e.memoizedState,n!==null)return n.dehydrated!==null?(ie(fe,fe.current&1),e.flags|=128,null):(r&e.child.childLanes)!==0?jg(t,e,r):(ie(fe,fe.current&1),t=kr(t,e,r),t!==null?t.sibling:null);ie(fe,fe.current&1);break;case 19:if(n=(r&e.childLanes)!==0,(t.flags&128)!==0){if(n)return qg(t,e,r);e.flags|=128}if(o=e.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),ie(fe,fe.current),n)break;return null;case 22:case 23:return e.lanes=0,Fg(t,e,r)}return kr(t,e,r)}var Bg,Zl,Kg,Gg;Bg=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}};Zl=function(){};Kg=function(t,e,r,n){var o=t.memoizedProps;if(o!==n){t=e.stateNode,vn(nr.current);var i=null;switch(r){case"input":o=wl(t,o),n=wl(t,n),i=[];break;case"select":o=ge({},o,{value:void 0}),n=ge({},n,{value:void 0}),i=[];break;case"textarea":o=Tl(t,o),n=Tl(t,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(t.onclick=gs)}kl(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"&&(ki.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"&&(ki.hasOwnProperty(l)?(c!=null&&l==="onScroll"&&ae("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)}};Gg=function(t,e,r,n){r!==n&&(e.flags|=4)};function Wo(t,e){if(!ue)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 je(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 A0(t,e,r){var n=e.pendingProps;switch(Ju(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return je(e),null;case 1:return ut(e.type)&&ms(),je(e),null;case 3:return n=e.stateNode,So(),ce(lt),ce(Qe),ad(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(Ia(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&(e.flags&256)===0||(e.flags|=1024,$t!==null&&(su($t),$t=null))),Zl(t,e),je(e),null;case 5:id(e);var o=vn(Di.current);if(r=e.type,t!==null&&e.stateNode!=null)Kg(t,e,r,n,o),t.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!n){if(e.stateNode===null)throw Error(S(166));return je(e),null}if(t=vn(nr.current),Ia(e)){n=e.stateNode,r=e.type;var i=e.memoizedProps;switch(n[Zt]=e,n[Li]=i,t=(e.mode&1)!==0,r){case"dialog":ae("cancel",n),ae("close",n);break;case"iframe":case"object":case"embed":ae("load",n);break;case"video":case"audio":for(o=0;o<ri.length;o++)ae(ri[o],n);break;case"source":ae("error",n);break;case"img":case"image":case"link":ae("error",n),ae("load",n);break;case"details":ae("toggle",n);break;case"input":Vd(n,i),ae("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},ae("invalid",n);break;case"textarea":Yd(n,i),ae("invalid",n)}kl(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&&Ta(n.textContent,s,t),o=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&Ta(n.textContent,s,t),o=["children",""+s]):ki.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&ae("scroll",n)}switch(r){case"input":ma(n),Wd(n,i,!0);break;case"textarea":ma(n),Qd(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=gs)}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=_p(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[Zt]=e,t[Li]=n,Bg(t,e,!1,!1),e.stateNode=t;e:{switch(a=bl(r,n),r){case"dialog":ae("cancel",t),ae("close",t),o=n;break;case"iframe":case"object":case"embed":ae("load",t),o=n;break;case"video":case"audio":for(o=0;o<ri.length;o++)ae(ri[o],t);o=n;break;case"source":ae("error",t),o=n;break;case"img":case"image":case"link":ae("error",t),ae("load",t),o=n;break;case"details":ae("toggle",t),o=n;break;case"input":Vd(t,n),o=wl(t,n),ae("invalid",t);break;case"option":o=n;break;case"select":t._wrapperState={wasMultiple:!!n.multiple},o=ge({},n,{value:void 0}),ae("invalid",t);break;case"textarea":Yd(t,n),o=Tl(t,n),ae("invalid",t);break;default:o=n}kl(r,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var c=s[i];i==="style"?Cp(t,c):i==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&Ep(t,c)):i==="children"?typeof c=="string"?(r!=="textarea"||c!=="")&&bi(t,c):typeof c=="number"&&bi(t,""+c):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ki.hasOwnProperty(i)?c!=null&&i==="onScroll"&&ae("scroll",t):c!=null&&Lu(t,i,c,a))}switch(r){case"input":ma(t),Wd(t,n,!1);break;case"textarea":ma(t),Qd(t);break;case"option":n.value!=null&&t.setAttribute("value",""+tn(n.value));break;case"select":t.multiple=!!n.multiple,i=n.value,i!=null?lo(t,!!n.multiple,i,!1):n.defaultValue!=null&&lo(t,!!n.multiple,n.defaultValue,!0);break;default:typeof o.onClick=="function"&&(t.onclick=gs)}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 je(e),null;case 6:if(t&&e.stateNode!=null)Gg(t,e,t.memoizedProps,n);else{if(typeof n!="string"&&e.stateNode===null)throw Error(S(166));if(r=vn(Di.current),vn(nr.current),Ia(e)){if(n=e.stateNode,r=e.memoizedProps,n[Zt]=e,(i=n.nodeValue!==r)&&(t=Et,t!==null))switch(t.tag){case 3:Ta(n.nodeValue,r,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&Ta(n.nodeValue,r,(t.mode&1)!==0)}i&&(e.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[Zt]=e,e.stateNode=n}return je(e),null;case 13:if(ce(fe),n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(ue&&yt!==null&&(e.mode&1)!==0&&(e.flags&128)===0)lg(),wo(),e.flags|=98560,i=!1;else if(i=Ia(e),n!==null&&n.dehydrated!==null){if(t===null){if(!i)throw Error(S(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(S(317));i[Zt]=e}else wo(),(e.flags&128)===0&&(e.memoizedState=null),e.flags|=4;je(e),i=!1}else $t!==null&&(su($t),$t=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||(fe.current&1)!==0?ke===0&&(ke=3):yd())),e.updateQueue!==null&&(e.flags|=4),je(e),null);case 4:return So(),Zl(t,e),t===null&&Mi(e.stateNode.containerInfo),je(e),null;case 10:return td(e.type._context),je(e),null;case 17:return ut(e.type)&&ms(),je(e),null;case 19:if(ce(fe),i=e.memoizedState,i===null)return je(e),null;if(n=(e.flags&128)!==0,a=i.rendering,a===null)if(n)Wo(i,!1);else{if(ke!==0||t!==null&&(t.flags&128)!==0)for(t=e.child;t!==null;){if(a=Ss(t),a!==null){for(e.flags|=128,Wo(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 ie(fe,fe.current&1|2),e.child}t=t.sibling}i.tail!==null&&we()>Io&&(e.flags|=128,n=!0,Wo(i,!1),e.lanes=4194304)}else{if(!n)if(t=Ss(a),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),Wo(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!ue)return je(e),null}else 2*we()-i.renderingStartTime>Io&&r!==1073741824&&(e.flags|=128,n=!0,Wo(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=we(),e.sibling=null,r=fe.current,ie(fe,n?r&1|2:r&1),e):(je(e),null);case 22:case 23:return vd(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&(e.mode&1)!==0?(vt&1073741824)!==0&&(je(e),e.subtreeFlags&6&&(e.flags|=8192)):je(e),null;case 24:return null;case 25:return null}throw Error(S(156,e.tag))}function R0(t,e){switch(Ju(e),e.tag){case 1:return ut(e.type)&&ms(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return So(),ce(lt),ce(Qe),ad(),t=e.flags,(t&65536)!==0&&(t&128)===0?(e.flags=t&-65537|128,e):null;case 5:return id(e),null;case 13:if(ce(fe),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(S(340));wo()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return ce(fe),null;case 4:return So(),null;case 10:return td(e.type._context),null;case 22:case 23:return vd(),null;case 24:return null;default:return null}}var Aa=!1,We=!1,N0=typeof WeakSet=="function"?WeakSet:Set,M=null;function eo(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){me(t,e,n)}else r.current=null}function eu(t,e,r){try{r()}catch(n){me(t,e,n)}}var Fh=!1;function P0(t,e){if(Hl=hs,t=Qp(),Yu(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,d=t,h=null;t:for(;;){for(var p;d!==r||o!==0&&d.nodeType!==3||(s=a+o),d!==i||n!==0&&d.nodeType!==3||(c=a+n),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===t)break t;if(h===r&&++l===o&&(s=a),h===i&&++u===n&&(c=a),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}r=s===-1||c===-1?null:{start:s,end:c}}else r=null}r=r||{start:0,end:0}}else r=null;for(Dl={focusedElem:t,selectionRange:r},hs=!1,M=e;M!==null;)if(e=M,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,M=t;else for(;M!==null;){e=M;try{var v=e.alternate;if((e.flags&1024)!==0)switch(e.tag){case 0:case 11:case 15:break;case 1:if(v!==null){var y=v.memoizedProps,I=v.memoizedState,g=e.stateNode,f=g.getSnapshotBeforeUpdate(e.elementType===e.type?y:Ft(e.type,y),I);g.__reactInternalSnapshotBeforeUpdate=f}break;case 3:var m=e.stateNode.containerInfo;m.nodeType===1?m.textContent="":m.nodeType===9&&m.documentElement&&m.removeChild(m.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(S(163))}}catch(E){me(e,e.return,E)}if(t=e.sibling,t!==null){t.return=e.return,M=t;break}M=e.return}return v=Fh,Fh=!1,v}function yi(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&&eu(e,r,i)}o=o.next}while(o!==n)}}function cc(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 tu(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 Vg(t){var e=t.alternate;e!==null&&(t.alternate=null,Vg(e)),t.child=null,t.deletions=null,t.sibling=null,t.tag===5&&(e=t.stateNode,e!==null&&(delete e[Zt],delete e[Li],delete e[$l],delete e[f0],delete e[p0])),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 Wg(t){return t.tag===5||t.tag===3||t.tag===4}function zh(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Wg(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 ru(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=gs));else if(n!==4&&(t=t.child,t!==null))for(ru(t,e,r),t=t.sibling;t!==null;)ru(t,e,r),t=t.sibling}function nu(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(nu(t,e,r),t=t.sibling;t!==null;)nu(t,e,r),t=t.sibling}var Ue=null,zt=!1;function Or(t,e,r){for(r=r.child;r!==null;)Yg(t,e,r),r=r.sibling}function Yg(t,e,r){if(rr&&typeof rr.onCommitFiberUnmount=="function")try{rr.onCommitFiberUnmount(ec,r)}catch{}switch(r.tag){case 5:We||eo(r,e);case 6:var n=Ue,o=zt;Ue=null,Or(t,e,r),Ue=n,zt=o,Ue!==null&&(zt?(t=Ue,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):Ue.removeChild(r.stateNode));break;case 18:Ue!==null&&(zt?(t=Ue,r=r.stateNode,t.nodeType===8?qc(t.parentNode,r):t.nodeType===1&&qc(t,r),Pi(t)):qc(Ue,r.stateNode));break;case 4:n=Ue,o=zt,Ue=r.stateNode.containerInfo,zt=!0,Or(t,e,r),Ue=n,zt=o;break;case 0:case 11:case 14:case 15:if(!We&&(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)&&eu(r,e,a),o=o.next}while(o!==n)}Or(t,e,r);break;case 1:if(!We&&(eo(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){me(r,e,s)}Or(t,e,r);break;case 21:Or(t,e,r);break;case 22:r.mode&1?(We=(n=We)||r.memoizedState!==null,Or(t,e,r),We=n):Or(t,e,r);break;default:Or(t,e,r)}}function $h(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new N0),e.forEach(function(n){var o=z0.bind(null,t,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Ut(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:Ue=s.stateNode,zt=!1;break e;case 3:Ue=s.stateNode.containerInfo,zt=!0;break e;case 4:Ue=s.stateNode.containerInfo,zt=!0;break e}s=s.return}if(Ue===null)throw Error(S(160));Yg(i,a,o),Ue=null,zt=!1;var c=o.alternate;c!==null&&(c.return=null),o.return=null}catch(l){me(o,e,l)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)Qg(e,t),e=e.sibling}function Qg(t,e){var r=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Ut(e,t),Wt(t),n&4){try{yi(3,t,t.return),cc(3,t)}catch(y){me(t,t.return,y)}try{yi(5,t,t.return)}catch(y){me(t,t.return,y)}}break;case 1:Ut(e,t),Wt(t),n&512&&r!==null&&eo(r,r.return);break;case 5:if(Ut(e,t),Wt(t),n&512&&r!==null&&eo(r,r.return),t.flags&32){var o=t.stateNode;try{bi(o,"")}catch(y){me(t,t.return,y)}}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&&vp(o,i),bl(s,a);var l=bl(s,i);for(a=0;a<c.length;a+=2){var u=c[a],d=c[a+1];u==="style"?Cp(o,d):u==="dangerouslySetInnerHTML"?Ep(o,d):u==="children"?bi(o,d):Lu(o,u,d,l)}switch(s){case"input":Cl(o,i);break;case"textarea":yp(o,i);break;case"select":var h=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?lo(o,!!i.multiple,p,!1):h!==!!i.multiple&&(i.defaultValue!=null?lo(o,!!i.multiple,i.defaultValue,!0):lo(o,!!i.multiple,i.multiple?[]:"",!1))}o[Li]=i}catch(y){me(t,t.return,y)}}break;case 6:if(Ut(e,t),Wt(t),n&4){if(t.stateNode===null)throw Error(S(162));o=t.stateNode,i=t.memoizedProps;try{o.nodeValue=i}catch(y){me(t,t.return,y)}}break;case 3:if(Ut(e,t),Wt(t),n&4&&r!==null&&r.memoizedState.isDehydrated)try{Pi(e.containerInfo)}catch(y){me(t,t.return,y)}break;case 4:Ut(e,t),Wt(t);break;case 13:Ut(e,t),Wt(t),o=t.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(gd=we())),n&4&&$h(t);break;case 22:if(u=r!==null&&r.memoizedState!==null,t.mode&1?(We=(l=We)||u,Ut(e,t),We=l):Ut(e,t),Wt(t),n&8192){if(l=t.memoizedState!==null,(t.stateNode.isHidden=l)&&!u&&(t.mode&1)!==0)for(M=t,u=t.child;u!==null;){for(d=M=u;M!==null;){switch(h=M,p=h.child,h.tag){case 0:case 11:case 14:case 15:yi(4,h,h.return);break;case 1:eo(h,h.return);var v=h.stateNode;if(typeof v.componentWillUnmount=="function"){n=h,r=h.return;try{e=n,v.props=e.memoizedProps,v.state=e.memoizedState,v.componentWillUnmount()}catch(y){me(n,r,y)}}break;case 5:eo(h,h.return);break;case 22:if(h.memoizedState!==null){qh(d);continue}}p!==null?(p.return=h,M=p):qh(d)}u=u.sibling}e:for(u=null,d=t;;){if(d.tag===5){if(u===null){u=d;try{o=d.stateNode,l?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=d.stateNode,c=d.memoizedProps.style,a=c!=null&&c.hasOwnProperty("display")?c.display:null,s.style.display=wp("display",a))}catch(y){me(t,t.return,y)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(y){me(t,t.return,y)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===t)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===t)break e;for(;d.sibling===null;){if(d.return===null||d.return===t)break e;u===d&&(u=null),d=d.return}u===d&&(u=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Ut(e,t),Wt(t),n&4&&$h(t);break;case 21:break;default:Ut(e,t),Wt(t)}}function Wt(t){var e=t.flags;if(e&2){try{e:{for(var r=t.return;r!==null;){if(Wg(r)){var n=r;break e}r=r.return}throw Error(S(160))}switch(n.tag){case 5:var o=n.stateNode;n.flags&32&&(bi(o,""),n.flags&=-33);var i=zh(t);nu(t,i,o);break;case 3:case 4:var a=n.stateNode.containerInfo,s=zh(t);ru(t,s,a);break;default:throw Error(S(161))}}catch(c){me(t,t.return,c)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function O0(t,e,r){M=t,Jg(t)}function Jg(t,e,r){for(var n=(t.mode&1)!==0;M!==null;){var o=M,i=o.child;if(o.tag===22&&n){var a=o.memoizedState!==null||Aa;if(!a){var s=o.alternate,c=s!==null&&s.memoizedState!==null||We;s=Aa;var l=We;if(Aa=a,(We=c)&&!l)for(M=o;M!==null;)a=M,c=a.child,a.tag===22&&a.memoizedState!==null?Bh(o):c!==null?(c.return=a,M=c):Bh(o);for(;i!==null;)M=i,Jg(i),i=i.sibling;M=o,Aa=s,We=l}jh(t)}else(o.subtreeFlags&8772)!==0&&i!==null?(i.return=o,M=i):jh(t)}}function jh(t){for(;M!==null;){var e=M;if((e.flags&8772)!==0){var r=e.alternate;try{if((e.flags&8772)!==0)switch(e.tag){case 0:case 11:case 15:We||cc(5,e);break;case 1:var n=e.stateNode;if(e.flags&4&&!We)if(r===null)n.componentDidMount();else{var o=e.elementType===e.type?r.memoizedProps:Ft(e.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;i!==null&&Ih(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}Ih(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 d=u.dehydrated;d!==null&&Pi(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(S(163))}We||e.flags&512&&tu(e)}catch(h){me(e,e.return,h)}}if(e===t){M=null;break}if(r=e.sibling,r!==null){r.return=e.return,M=r;break}M=e.return}}function qh(t){for(;M!==null;){var e=M;if(e===t){M=null;break}var r=e.sibling;if(r!==null){r.return=e.return,M=r;break}M=e.return}}function Bh(t){for(;M!==null;){var e=M;try{switch(e.tag){case 0:case 11:case 15:var r=e.return;try{cc(4,e)}catch(c){me(e,r,c)}break;case 1:var n=e.stateNode;if(typeof n.componentDidMount=="function"){var o=e.return;try{n.componentDidMount()}catch(c){me(e,o,c)}}var i=e.return;try{tu(e)}catch(c){me(e,i,c)}break;case 5:var a=e.return;try{tu(e)}catch(c){me(e,a,c)}}}catch(c){me(e,e.return,c)}if(e===t){M=null;break}var s=e.sibling;if(s!==null){s.return=e.return,M=s;break}M=e.return}}var x0=Math.ceil,ks=Ar.ReactCurrentDispatcher,fd=Ar.ReactCurrentOwner,Pt=Ar.ReactCurrentBatchConfig,Y=0,Oe=null,Se=null,De=0,vt=0,to=on(0),ke=0,ji=null,kn=0,lc=0,pd=0,_i=null,st=null,gd=0,Io=1/0,dr=null,bs=!1,ou=null,Yr=null,Ra=!1,qr=null,As=0,Ei=0,iu=null,Ya=-1,Qa=0;function rt(){return(Y&6)!==0?we():Ya!==-1?Ya:Ya=we()}function Qr(t){return(t.mode&1)===0?1:(Y&2)!==0&&De!==0?De&-De:m0.transition!==null?(Qa===0&&(Qa=Mp()),Qa):(t=ee,t!==0||(t=window.event,t=t===void 0?16:$p(t.type)),t)}function Kt(t,e,r,n){if(50<Ei)throw Ei=0,iu=null,Error(S(185));ra(t,r,n),((Y&2)===0||t!==Oe)&&(t===Oe&&((Y&2)===0&&(lc|=r),ke===4&&zr(t,De)),dt(t,n),r===1&&Y===0&&(e.mode&1)===0&&(Io=we()+500,ic&&an()))}function dt(t,e){var r=t.callbackNode;my(t,e);var n=ds(t,t===Oe?De:0);if(n===0)r!==null&&Zd(r),t.callbackNode=null,t.callbackPriority=0;else if(e=n&-n,t.callbackPriority!==e){if(r!=null&&Zd(r),e===1)t.tag===0?g0(Kh.bind(null,t)):ag(Kh.bind(null,t)),d0(function(){(Y&6)===0&&an()}),r=null;else{switch(Up(n)){case 1:r=$u;break;case 4:r=Op;break;case 16:r=us;break;case 536870912:r=xp;break;default:r=us}r=im(r,Xg.bind(null,t))}t.callbackPriority=e,t.callbackNode=r}}function Xg(t,e){if(Ya=-1,Qa=0,(Y&6)!==0)throw Error(S(327));var r=t.callbackNode;if(go()&&t.callbackNode!==r)return null;var n=ds(t,t===Oe?De:0);if(n===0)return null;if((n&30)!==0||(n&t.expiredLanes)!==0||e)e=Rs(t,n);else{e=n;var o=Y;Y|=2;var i=em();(Oe!==t||De!==e)&&(dr=null,Io=we()+500,_n(t,e));do try{L0();break}catch(s){Zg(t,s)}while(1);ed(),ks.current=i,Y=o,Se!==null?e=0:(Oe=null,De=0,e=ke)}if(e!==0){if(e===2&&(o=Ol(t),o!==0&&(n=o,e=au(t,o))),e===1)throw r=ji,_n(t,0),zr(t,n),dt(t,we()),r;if(e===6)zr(t,n);else{if(o=t.current.alternate,(n&30)===0&&!M0(o)&&(e=Rs(t,n),e===2&&(i=Ol(t),i!==0&&(n=i,e=au(t,i))),e===1))throw r=ji,_n(t,0),zr(t,n),dt(t,we()),r;switch(t.finishedWork=o,t.finishedLanes=n,e){case 0:case 1:throw Error(S(345));case 2:hn(t,st,dr);break;case 3:if(zr(t,n),(n&130023424)===n&&(e=gd+500-we(),10<e)){if(ds(t,0)!==0)break;if(o=t.suspendedLanes,(o&n)!==n){rt(),t.pingedLanes|=t.suspendedLanes&o;break}t.timeoutHandle=zl(hn.bind(null,t,st,dr),e);break}hn(t,st,dr);break;case 4:if(zr(t,n),(n&4194240)===n)break;for(e=t.eventTimes,o=-1;0<n;){var a=31-Bt(n);i=1<<a,a=e[a],a>o&&(o=a),n&=~i}if(n=o,n=we()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*x0(n/1960))-n,10<n){t.timeoutHandle=zl(hn.bind(null,t,st,dr),n);break}hn(t,st,dr);break;case 5:hn(t,st,dr);break;default:throw Error(S(329))}}}return dt(t,we()),t.callbackNode===r?Xg.bind(null,t):null}function au(t,e){var r=_i;return t.current.memoizedState.isDehydrated&&(_n(t,e).flags|=256),t=Rs(t,e),t!==2&&(e=st,st=r,e!==null&&su(e)),t}function su(t){st===null?st=t:st.push.apply(st,t)}function M0(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(!Vt(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 zr(t,e){for(e&=~pd,e&=~lc,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var r=31-Bt(e),n=1<<r;t[r]=-1,e&=~n}}function Kh(t){if((Y&6)!==0)throw Error(S(327));go();var e=ds(t,0);if((e&1)===0)return dt(t,we()),null;var r=Rs(t,e);if(t.tag!==0&&r===2){var n=Ol(t);n!==0&&(e=n,r=au(t,n))}if(r===1)throw r=ji,_n(t,0),zr(t,e),dt(t,we()),r;if(r===6)throw Error(S(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,hn(t,st,dr),dt(t,we()),null}function md(t,e){var r=Y;Y|=1;try{return t(e)}finally{Y=r,Y===0&&(Io=we()+500,ic&&an())}}function bn(t){qr!==null&&qr.tag===0&&(Y&6)===0&&go();var e=Y;Y|=1;var r=Pt.transition,n=ee;try{if(Pt.transition=null,ee=1,t)return t()}finally{ee=n,Pt.transition=r,Y=e,(Y&6)===0&&an()}}function vd(){vt=to.current,ce(to)}function _n(t,e){t.finishedWork=null,t.finishedLanes=0;var r=t.timeoutHandle;if(r!==-1&&(t.timeoutHandle=-1,u0(r)),Se!==null)for(r=Se.return;r!==null;){var n=r;switch(Ju(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&ms();break;case 3:So(),ce(lt),ce(Qe),ad();break;case 5:id(n);break;case 4:So();break;case 13:ce(fe);break;case 19:ce(fe);break;case 10:td(n.type._context);break;case 22:case 23:vd()}r=r.return}if(Oe=t,Se=t=Jr(t.current,null),De=vt=e,ke=0,ji=null,pd=lc=kn=0,st=_i=null,mn!==null){for(e=0;e<mn.length;e++)if(r=mn[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}mn=null}return t}function Zg(t,e){do{var r=Se;try{if(ed(),Ga.current=Is,Ts){for(var n=pe.memoizedState;n!==null;){var o=n.queue;o!==null&&(o.pending=null),n=n.next}Ts=!1}if(In=0,Re=Ie=pe=null,vi=!1,Fi=0,fd.current=null,r===null||r.return===null){ke=1,ji=e,Se=null;break}e:{var i=t,a=r.return,s=r,c=e;if(e=De,s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var l=c,u=s,d=u.tag;if((u.mode&1)===0&&(d===0||d===11||d===15)){var h=u.alternate;h?(u.updateQueue=h.updateQueue,u.memoizedState=h.memoizedState,u.lanes=h.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=Oh(a);if(p!==null){p.flags&=-257,xh(p,a,s,i,e),p.mode&1&&Ph(i,l,e),e=p,c=l;var v=e.updateQueue;if(v===null){var y=new Set;y.add(c),e.updateQueue=y}else v.add(c);break e}else{if((e&1)===0){Ph(i,l,e),yd();break e}c=Error(S(426))}}else if(ue&&s.mode&1){var I=Oh(a);if(I!==null){(I.flags&65536)===0&&(I.flags|=256),xh(I,a,s,i,e),Xu(To(c,s));break e}}i=c=To(c,s),ke!==4&&(ke=2),_i===null?_i=[i]:_i.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e;var g=Lg(i,c,e);Th(i,g);break e;case 1:s=c;var f=i.type,m=i.stateNode;if((i.flags&128)===0&&(typeof f.getDerivedStateFromError=="function"||m!==null&&typeof m.componentDidCatch=="function"&&(Yr===null||!Yr.has(m)))){i.flags|=65536,e&=-e,i.lanes|=e;var E=Hg(i,s,e);Th(i,E);break e}}i=i.return}while(i!==null)}rm(r)}catch(b){e=b,Se===r&&r!==null&&(Se=r=r.return);continue}break}while(1)}function em(){var t=ks.current;return ks.current=Is,t===null?Is:t}function yd(){(ke===0||ke===3||ke===2)&&(ke=4),Oe===null||(kn&268435455)===0&&(lc&268435455)===0||zr(Oe,De)}function Rs(t,e){var r=Y;Y|=2;var n=em();(Oe!==t||De!==e)&&(dr=null,_n(t,e));do try{U0();break}catch(o){Zg(t,o)}while(1);if(ed(),Y=r,ks.current=n,Se!==null)throw Error(S(261));return Oe=null,De=0,ke}function U0(){for(;Se!==null;)tm(Se)}function L0(){for(;Se!==null&&!sy();)tm(Se)}function tm(t){var e=om(t.alternate,t,vt);t.memoizedProps=t.pendingProps,e===null?rm(t):Se=e,fd.current=null}function rm(t){var e=t;do{var r=e.alternate;if(t=e.return,(e.flags&32768)===0){if(r=A0(r,e,vt),r!==null){Se=r;return}}else{if(r=R0(r,e),r!==null){r.flags&=32767,Se=r;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{ke=6,Se=null;return}}if(e=e.sibling,e!==null){Se=e;return}Se=e=t}while(e!==null);ke===0&&(ke=5)}function hn(t,e,r){var n=ee,o=Pt.transition;try{Pt.transition=null,ee=1,H0(t,e,r,n)}finally{Pt.transition=o,ee=n}return null}function H0(t,e,r,n){do go();while(qr!==null);if((Y&6)!==0)throw Error(S(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(S(177));t.callbackNode=null,t.callbackPriority=0;var i=r.lanes|r.childLanes;if(vy(t,i),t===Oe&&(Se=Oe=null,De=0),(r.subtreeFlags&2064)===0&&(r.flags&2064)===0||Ra||(Ra=!0,im(us,function(){return go(),null})),i=(r.flags&15990)!==0,(r.subtreeFlags&15990)!==0||i){i=Pt.transition,Pt.transition=null;var a=ee;ee=1;var s=Y;Y|=4,fd.current=null,P0(t,r),Qg(r,t),n0(Dl),hs=!!Hl,Dl=Hl=null,t.current=r,O0(r),cy(),Y=s,ee=a,Pt.transition=i}else t.current=r;if(Ra&&(Ra=!1,qr=t,As=o),i=t.pendingLanes,i===0&&(Yr=null),dy(r.stateNode),dt(t,we()),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(bs)throw bs=!1,t=ou,ou=null,t;return(As&1)!==0&&t.tag!==0&&go(),i=t.pendingLanes,(i&1)!==0?t===iu?Ei++:(Ei=0,iu=t):Ei=0,an(),null}function go(){if(qr!==null){var t=Up(As),e=Pt.transition,r=ee;try{if(Pt.transition=null,ee=16>t?16:t,qr===null)var n=!1;else{if(t=qr,qr=null,As=0,(Y&6)!==0)throw Error(S(331));var o=Y;for(Y|=4,M=t.current;M!==null;){var i=M,a=i.child;if((M.flags&16)!==0){var s=i.deletions;if(s!==null){for(var c=0;c<s.length;c++){var l=s[c];for(M=l;M!==null;){var u=M;switch(u.tag){case 0:case 11:case 15:yi(8,u,i)}var d=u.child;if(d!==null)d.return=u,M=d;else for(;M!==null;){u=M;var h=u.sibling,p=u.return;if(Vg(u),u===l){M=null;break}if(h!==null){h.return=p,M=h;break}M=p}}}var v=i.alternate;if(v!==null){var y=v.child;if(y!==null){v.child=null;do{var I=y.sibling;y.sibling=null,y=I}while(y!==null)}}M=i}}if((i.subtreeFlags&2064)!==0&&a!==null)a.return=i,M=a;else e:for(;M!==null;){if(i=M,(i.flags&2048)!==0)switch(i.tag){case 0:case 11:case 15:yi(9,i,i.return)}var g=i.sibling;if(g!==null){g.return=i.return,M=g;break e}M=i.return}}var f=t.current;for(M=f;M!==null;){a=M;var m=a.child;if((a.subtreeFlags&2064)!==0&&m!==null)m.return=a,M=m;else e:for(a=f;M!==null;){if(s=M,(s.flags&2048)!==0)try{switch(s.tag){case 0:case 11:case 15:cc(9,s)}}catch(b){me(s,s.return,b)}if(s===a){M=null;break e}var E=s.sibling;if(E!==null){E.return=s.return,M=E;break e}M=s.return}}if(Y=o,an(),rr&&typeof rr.onPostCommitFiberRoot=="function")try{rr.onPostCommitFiberRoot(ec,t)}catch{}n=!0}return n}finally{ee=r,Pt.transition=e}}return!1}function Gh(t,e,r){e=To(r,e),e=Lg(t,e,1),t=Wr(t,e,1),e=rt(),t!==null&&(ra(t,1,e),dt(t,e))}function me(t,e,r){if(t.tag===3)Gh(t,t,r);else for(;e!==null;){if(e.tag===3){Gh(e,t,r);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Yr===null||!Yr.has(n))){t=To(r,t),t=Hg(e,t,1),e=Wr(e,t,1),t=rt(),e!==null&&(ra(e,1,t),dt(e,t));break}}e=e.return}}function D0(t,e,r){var n=t.pingCache;n!==null&&n.delete(e),e=rt(),t.pingedLanes|=t.suspendedLanes&r,Oe===t&&(De&r)===r&&(ke===4||ke===3&&(De&130023424)===De&&500>we()-gd?_n(t,0):pd|=r),dt(t,e)}function nm(t,e){e===0&&((t.mode&1)===0?e=1:(e=_a,_a<<=1,(_a&130023424)===0&&(_a=4194304)));var r=rt();t=Ir(t,e),t!==null&&(ra(t,e,r),dt(t,r))}function F0(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),nm(t,r)}function z0(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(S(314))}n!==null&&n.delete(e),nm(t,r)}var om;om=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||lt.current)ct=!0;else{if((t.lanes&r)===0&&(e.flags&128)===0)return ct=!1,b0(t,e,r);ct=(t.flags&131072)!==0}else ct=!1,ue&&(e.flags&1048576)!==0&&sg(e,_s,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;Wa(t,e),t=e.pendingProps;var o=Eo(e,Qe.current);po(e,r),o=cd(null,e,n,t,o,r);var i=ld();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,ut(n)?(i=!0,vs(e)):i=!1,e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,nd(e),o.updater=ac,e.stateNode=o,o._reactInternals=e,Vl(e,n,t,r),e=Ql(null,e,n,!0,i,r)):(e.tag=0,ue&&i&&Qu(e),Ze(null,e,o,r),e=e.child),e;case 16:n=e.elementType;e:{switch(Wa(t,e),t=e.pendingProps,o=n._init,n=o(n._payload),e.type=n,o=e.tag=j0(n),t=Ft(n,t),o){case 0:e=Yl(null,e,n,t,r);break e;case 1:e=Lh(null,e,n,t,r);break e;case 11:e=Mh(null,e,n,t,r);break e;case 14:e=Uh(null,e,n,Ft(n.type,t),r);break e}throw Error(S(306,n,""))}return e;case 0:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:Ft(n,o),Yl(t,e,n,o,r);case 1:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:Ft(n,o),Lh(t,e,n,o,r);case 3:e:{if($g(e),t===null)throw Error(S(387));n=e.pendingProps,i=e.memoizedState,o=i.element,dg(t,e),Cs(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=To(Error(S(423)),e),e=Hh(t,e,n,r,o);break e}else if(n!==o){o=To(Error(S(424)),e),e=Hh(t,e,n,r,o);break e}else for(yt=Vr(e.stateNode.containerInfo.firstChild),Et=e,ue=!0,$t=null,r=gg(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(wo(),n===o){e=kr(t,e,r);break e}Ze(t,e,n,r)}e=e.child}return e;case 5:return mg(e),t===null&&Bl(e),n=e.type,o=e.pendingProps,i=t!==null?t.memoizedProps:null,a=o.children,Fl(n,o)?a=null:i!==null&&Fl(n,i)&&(e.flags|=32),zg(t,e),Ze(t,e,a,r),e.child;case 6:return t===null&&Bl(e),null;case 13:return jg(t,e,r);case 4:return od(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=Co(e,null,n,r):Ze(t,e,n,r),e.child;case 11:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:Ft(n,o),Mh(t,e,n,o,r);case 7:return Ze(t,e,e.pendingProps,r),e.child;case 8:return Ze(t,e,e.pendingProps.children,r),e.child;case 12:return Ze(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,ie(Es,n._currentValue),n._currentValue=a,i!==null)if(Vt(i.value,a)){if(i.children===o.children&&!lt.current){e=kr(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=yr(-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),Kl(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(S(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),Kl(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}Ze(t,e,o.children,r),e=e.child}return e;case 9:return o=e.type,n=e.pendingProps.children,po(e,r),o=xt(o),n=n(o),e.flags|=1,Ze(t,e,n,r),e.child;case 14:return n=e.type,o=Ft(n,e.pendingProps),o=Ft(n.type,o),Uh(t,e,n,o,r);case 15:return Dg(t,e,e.type,e.pendingProps,r);case 17:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:Ft(n,o),Wa(t,e),e.tag=1,ut(n)?(t=!0,vs(e)):t=!1,po(e,r),fg(e,n,o),Vl(e,n,o,r),Ql(null,e,n,!0,t,r);case 19:return qg(t,e,r);case 22:return Fg(t,e,r)}throw Error(S(156,e.tag))};function im(t,e){return Pp(t,e)}function $0(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 Nt(t,e,r,n){return new $0(t,e,r,n)}function _d(t){return t=t.prototype,!(!t||!t.isReactComponent)}function j0(t){if(typeof t=="function")return _d(t)?1:0;if(t!=null){if(t=t.$$typeof,t===Du)return 11;if(t===Fu)return 14}return 2}function Jr(t,e){var r=t.alternate;return r===null?(r=Nt(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 Ja(t,e,r,n,o,i){var a=2;if(n=t,typeof t=="function")_d(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case Kn:return En(r.children,o,i,e);case Hu:a=8,o|=8;break;case vl:return t=Nt(12,r,e,o|2),t.elementType=vl,t.lanes=i,t;case yl:return t=Nt(13,r,e,o),t.elementType=yl,t.lanes=i,t;case _l:return t=Nt(19,r,e,o),t.elementType=_l,t.lanes=i,t;case pp:return uc(r,o,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case hp:a=10;break e;case fp:a=9;break e;case Du:a=11;break e;case Fu:a=14;break e;case Ur:a=16,n=null;break e}throw Error(S(130,t==null?t:typeof t,""))}return e=Nt(a,r,e,o),e.elementType=t,e.type=n,e.lanes=i,e}function En(t,e,r,n){return t=Nt(7,t,n,e),t.lanes=r,t}function uc(t,e,r,n){return t=Nt(22,t,n,e),t.elementType=pp,t.lanes=r,t.stateNode={isHidden:!1},t}function Jc(t,e,r){return t=Nt(6,t,null,e),t.lanes=r,t}function Xc(t,e,r){return e=Nt(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function q0(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=Oc(0),this.expirationTimes=Oc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Oc(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function Ed(t,e,r,n,o,i,a,s,c){return t=new q0(t,e,r,s,c),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Nt(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},nd(i),t}function B0(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Bn,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}function am(t){if(!t)return rn;t=t._reactInternals;e:{if(xn(t)!==t||t.tag!==1)throw Error(S(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(ut(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(S(171))}if(t.tag===1){var r=t.type;if(ut(r))return ig(t,r,e)}return e}function sm(t,e,r,n,o,i,a,s,c){return t=Ed(r,n,!0,t,o,i,a,s,c),t.context=am(null),r=t.current,n=rt(),o=Qr(r),i=yr(n,o),i.callback=e!=null?e:null,Wr(r,i,o),t.current.lanes=o,ra(t,o,n),dt(t,n),t}function dc(t,e,r,n){var o=e.current,i=rt(),a=Qr(o);return r=am(r),e.context===null?e.context=r:e.pendingContext=r,e=yr(i,a),e.payload={element:t},n=n===void 0?null:n,n!==null&&(e.callback=n),t=Wr(o,e,a),t!==null&&(Kt(t,o,a,i),Ka(t,o,a)),a}function Ns(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 Vh(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<e?r:e}}function wd(t,e){Vh(t,e),(t=t.alternate)&&Vh(t,e)}function K0(){return null}var cm=typeof reportError=="function"?reportError:function(t){console.error(t)};function Cd(t){this._internalRoot=t}hc.prototype.render=Cd.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(S(409));dc(t,e,null,null)};hc.prototype.unmount=Cd.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;bn(function(){dc(null,t,null,null)}),e[Tr]=null}};function hc(t){this._internalRoot=t}hc.prototype.unstable_scheduleHydration=function(t){if(t){var e=Dp();t={blockedOn:null,target:t,priority:e};for(var r=0;r<Fr.length&&e!==0&&e<Fr[r].priority;r++);Fr.splice(r,0,t),r===0&&zp(t)}};function Sd(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function fc(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function Wh(){}function G0(t,e,r,n,o){if(o){if(typeof n=="function"){var i=n;n=function(){var l=Ns(a);i.call(l)}}var a=sm(e,n,t,0,null,!1,!1,"",Wh);return t._reactRootContainer=a,t[Tr]=a.current,Mi(t.nodeType===8?t.parentNode:t),bn(),a}for(;o=t.lastChild;)t.removeChild(o);if(typeof n=="function"){var s=n;n=function(){var l=Ns(c);s.call(l)}}var c=Ed(t,0,!1,null,null,!1,!1,"",Wh);return t._reactRootContainer=c,t[Tr]=c.current,Mi(t.nodeType===8?t.parentNode:t),bn(function(){dc(e,c,r,n)}),c}function pc(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=Ns(a);s.call(c)}}dc(e,a,t,o)}else a=G0(r,e,t,o,n);return Ns(a)}Lp=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var r=ti(e.pendingLanes);r!==0&&(ju(e,r|1),dt(e,we()),(Y&6)===0&&(Io=we()+500,an()))}break;case 13:bn(function(){var n=Ir(t,1);if(n!==null){var o=rt();Kt(n,t,1,o)}}),wd(t,1)}};qu=function(t){if(t.tag===13){var e=Ir(t,134217728);if(e!==null){var r=rt();Kt(e,t,134217728,r)}wd(t,134217728)}};Hp=function(t){if(t.tag===13){var e=Qr(t),r=Ir(t,e);if(r!==null){var n=rt();Kt(r,t,e,n)}wd(t,e)}};Dp=function(){return ee};Fp=function(t,e){var r=ee;try{return ee=t,e()}finally{ee=r}};Rl=function(t,e,r){switch(e){case"input":if(Cl(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=oc(n);if(!o)throw Error(S(90));mp(n),Cl(n,o)}}}break;case"textarea":yp(t,r);break;case"select":e=r.value,e!=null&&lo(t,!!r.multiple,e,!1)}};Ip=md;kp=bn;var V0={usingClientEntryPoint:!1,Events:[oa,Yn,oc,Sp,Tp,md]},Yo={findFiberByHostInstance:gn,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},W0={bundleType:Yo.bundleType,version:Yo.version,rendererPackageName:Yo.rendererPackageName,rendererConfig:Yo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Ar.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Rp(t),t===null?null:t.stateNode},findFiberByHostInstance:Yo.findFiberByHostInstance||K0,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 Na=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Na.isDisabled&&Na.supportsFiber)try{ec=Na.inject(W0),rr=Na}catch{}}St.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=V0;St.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Sd(e))throw Error(S(200));return B0(t,e,null,r)};St.createRoot=function(t,e){if(!Sd(t))throw Error(S(299));var r=!1,n="",o=cm;return e!=null&&(e.unstable_strictMode===!0&&(r=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=Ed(t,1,!1,null,null,r,!1,n,o),t[Tr]=e.current,Mi(t.nodeType===8?t.parentNode:t),new Cd(e)};St.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(S(188)):(t=Object.keys(t).join(","),Error(S(268,t)));return t=Rp(e),t=t===null?null:t.stateNode,t};St.flushSync=function(t){return bn(t)};St.hydrate=function(t,e,r){if(!fc(e))throw Error(S(200));return pc(null,t,e,!0,r)};St.hydrateRoot=function(t,e,r){if(!Sd(t))throw Error(S(405));var n=r!=null&&r.hydratedSources||null,o=!1,i="",a=cm;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),e=sm(e,null,t,1,r!=null?r:null,o,!1,i,a),t[Tr]=e.current,Mi(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 hc(e)};St.render=function(t,e,r){if(!fc(e))throw Error(S(200));return pc(null,t,e,!1,r)};St.unmountComponentAtNode=function(t){if(!fc(t))throw Error(S(40));return t._reactRootContainer?(bn(function(){pc(null,null,t,!1,function(){t._reactRootContainer=null,t[Tr]=null})}),!0):!1};St.unstable_batchedUpdates=md;St.unstable_renderSubtreeIntoContainer=function(t,e,r,n){if(!fc(r))throw Error(S(200));if(t==null||t._reactInternals===void 0)throw Error(S(38));return pc(t,e,r,!1,n)};St.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=St})(sp);var Yh=sp.exports;gl.createRoot=Yh.createRoot,gl.hydrateRoot=Yh.hydrateRoot;class Y0{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 lm extends Y0{formatModuleName(e){return`\u{1F4E6}\x1B[1;32m${(typeof e=="string"?e:e.name).replace(/([A-Z])/g," $1").toUpperCase()}\x1B[0m`}}var cu=function(t,e){return cu=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])},cu(t,e)};function Rr(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");cu(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var An=function(){return An=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},An.apply(this,arguments)};function um(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 ar(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 Q0(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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})}function dm(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 Rn(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 or(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 br(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 mo(t){return this instanceof mo?(this.v=t,this):new mo(t)}function J0(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(h){n[h]&&(o[h]=function(p){return new Promise(function(v,y){i.push([h,p,v,y])>1||s(h,p)})})}function s(h,p){try{c(n[h](p))}catch(v){d(i[0][3],v)}}function c(h){h.value instanceof mo?Promise.resolve(h.value.v).then(l,u):d(i[0][2],h)}function l(h){s("next",h)}function u(h){s("throw",h)}function d(h,p){h(p),i.shift(),i.length&&s(i[0][0],i[0][1])}}function X0(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 Rn=="function"?Rn(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 te(t){return typeof t=="function"}function gc(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 Zc=gc(function(t){return function(r){t(this),this.message=r?r.length+` errors occurred during unsubscription:
34
34
  `+r.map(function(n,o){return o+1+") "+n.toString()}).join(`
35
- `):"",this.name="UnsubscriptionError",this.errors=r}});function Ps(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Nr=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=Rn(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(y){e={error:y}}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(te(u))try{u()}catch(y){i=y instanceof Zc?y.errors:[y]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var h=Rn(d),p=h.next();!p.done;p=h.next()){var v=p.value;try{Jh(v)}catch(y){i=i!=null?i:[],y instanceof Zc?i=br(br([],or(i)),or(y.errors)):i.push(y)}}}catch(y){n={error:y}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}if(i)throw new Zc(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Jh(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)&&Ps(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&Ps(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),fm=Nr.EMPTY;function pm(t){return t instanceof Nr||t&&"closed"in t&&te(t.remove)&&te(t.add)&&te(t.unsubscribe)}function Jh(t){te(t)?t():t.unsubscribe()}var Td={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},lu={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=lu.delegate;return o!=null&&o.setTimeout?o.setTimeout.apply(o,br([t,e],or(r))):setTimeout.apply(void 0,br([t,e],or(r)))},clearTimeout:function(t){var e=lu.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function gm(t){lu.setTimeout(function(){throw t})}function Os(){}var Pa=null;function Xa(t){if(Td.useDeprecatedSynchronousErrorHandling){var e=!Pa;if(e&&(Pa={errorThrown:!1,error:null}),t(),e){var r=Pa,n=r.errorThrown,o=r.error;if(Pa=null,n)throw o}}else t()}var Id=function(t){Rr(e,t);function e(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,pm(r)&&r.add(n)):n.destination=a_,n}return e.create=function(r,n,o){return new xs(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}(Nr),n_=Function.prototype.bind;function el(t,e){return n_.call(t,e)}var o_=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){Oa(n)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(n){Oa(n)}else Oa(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){Oa(r)}},t}(),xs=function(t){Rr(e,t);function e(r,n,o){var i=t.call(this)||this,a;if(te(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&&Td.useDeprecatedNextContext?(s=Object.create(r),s.unsubscribe=function(){return i.unsubscribe()},a={next:r.next&&el(r.next,s),error:r.error&&el(r.error,s),complete:r.complete&&el(r.complete,s)}):a=r}return i.destination=new o_(a),i}return e}(Id);function Oa(t){gm(t)}function i_(t){throw t}var a_={closed:!0,next:Os,error:i_,complete:Os},kd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function aa(t){return t}function s_(t){return t.length===0?aa:t.length===1?t[0]:function(r){return t.reduce(function(n,o){return o(n)},r)}}var le=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=l_(e)?e:new xs(e,r,n);return Xa(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=Xh(r),new r(function(o,i){var a=new xs({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[kd]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return s_(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=Xh(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 Xh(t){var e;return(e=t!=null?t:Td.Promise)!==null&&e!==void 0?e:Promise}function c_(t){return t&&te(t.next)&&te(t.error)&&te(t.complete)}function l_(t){return t&&t instanceof Id||c_(t)&&pm(t)}function u_(t){return te(t==null?void 0:t.lift)}function Ce(t){return function(e){if(u_(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 de(t,e,r,n,o){return new d_(t,e,r,n,o)}var d_=function(t){Rr(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}(Id),h_=gc(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Xr=function(t){Rr(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 Zh(this,this);return n.operator=r,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new h_},e.prototype.next=function(r){var n=this;Xa(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=Rn(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;Xa(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;Xa(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?fm:(this.currentObservers=null,s.push(r),new Nr(function(){n.currentObservers=null,Ps(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 le;return r.source=this,r},e.create=function(r,n){return new Zh(r,n)},e}(le),Zh=function(t){Rr(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:fm},e}(Xr),mc=function(t){Rr(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}(Xr),mm={now:function(){return(mm.delegate||Date).now()},delegate:void 0},f_=function(t){Rr(e,t);function e(r,n){return t.call(this)||this}return e.prototype.schedule=function(r,n){return this},e}(Nr),Ms={setInterval:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Ms.delegate;return o!=null&&o.setInterval?o.setInterval.apply(o,br([t,e],or(r))):setInterval.apply(void 0,br([t,e],or(r)))},clearInterval:function(t){var e=Ms.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(t)},delegate:void 0},p_=function(t){Rr(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),Ms.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&&Ms.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,Ps(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(f_),ef=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=mm.now,t}(),g_=function(t){Rr(e,t);function e(r,n){n===void 0&&(n=ef.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}(ef),ko=new g_(p_),m_=ko,qi=new le(function(t){return t.complete()});function vm(t){return t&&te(t.schedule)}function ym(t){return t[t.length-1]}function v_(t){return te(ym(t))?t.pop():void 0}function y_(t){return vm(ym(t))?t.pop():void 0}var bd=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function _m(t){return te(t==null?void 0:t.then)}function Em(t){return te(t[kd])}function wm(t){return Symbol.asyncIterator&&te(t==null?void 0:t[Symbol.asyncIterator])}function Cm(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 __(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Sm=__();function Tm(t){return te(t==null?void 0:t[Sm])}function Im(t){return t_(this,arguments,function(){var r,n,o,i;return hm(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,mo(r.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,mo(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,mo(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 km(t){return te(t==null?void 0:t.getReader)}function ft(t){if(t instanceof le)return t;if(t!=null){if(Em(t))return E_(t);if(bd(t))return w_(t);if(_m(t))return C_(t);if(wm(t))return bm(t);if(Tm(t))return S_(t);if(km(t))return T_(t)}throw Cm(t)}function E_(t){return new le(function(e){var r=t[kd]();if(te(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function w_(t){return new le(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function C_(t){return new le(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,gm)})}function S_(t){return new le(function(e){var r,n;try{for(var o=Rn(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 bm(t){return new le(function(e){I_(t,e).catch(function(r){return e.error(r)})})}function T_(t){return bm(Im(t))}function I_(t,e){var r,n,o,i;return e_(this,void 0,void 0,function(){var a,s;return hm(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=r_(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 _r(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 Bi(t,e){return e===void 0&&(e=0),Ce(function(r,n){r.subscribe(de(n,function(o){return _r(n,t,function(){return n.next(o)},e)},function(){return _r(n,t,function(){return n.complete()},e)},function(o){return _r(n,t,function(){return n.error(o)},e)}))})}function Am(t,e){return e===void 0&&(e=0),Ce(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}function k_(t,e){return ft(t).pipe(Am(e),Bi(e))}function b_(t,e){return ft(t).pipe(Am(e),Bi(e))}function A_(t,e){return new le(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function R_(t,e){return new le(function(r){var n;return _r(r,e,function(){n=t[Sm](),_r(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 te(n==null?void 0:n.return)&&n.return()}})}function Rm(t,e){if(!t)throw new Error("Iterable cannot be null");return new le(function(r){_r(r,e,function(){var n=t[Symbol.asyncIterator]();_r(r,e,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function N_(t,e){return Rm(Im(t),e)}function P_(t,e){if(t!=null){if(Em(t))return k_(t,e);if(bd(t))return A_(t,e);if(_m(t))return b_(t,e);if(wm(t))return Rm(t,e);if(Tm(t))return R_(t,e);if(km(t))return N_(t,e)}throw Cm(t)}function Zr(t,e){return e?P_(t,e):ft(t)}function vc(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=y_(t);return Zr(t,r)}function O_(t,e){var r=te(t)?t:function(){return t},n=function(o){return o.error(r())};return new le(e?function(o){return e.schedule(n,0,o)}:n)}var yc=gc(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}});function uu(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 yc)}})})}function Ki(t,e){var r=typeof e=="object";return new Promise(function(n,o){var i=new xs({next:function(a){n(a),i.unsubscribe()},error:o,complete:function(){r?n(e.defaultValue):o(new yc)}});t.subscribe(i)})}function Nm(t){return t instanceof Date&&!isNaN(t)}var x_=gc(function(t){return function(r){r===void 0&&(r=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=r}});function M_(t,e){var r=Nm(t)?{first:t}:typeof t=="number"?{each:t}:t,n=r.first,o=r.each,i=r.with,a=i===void 0?U_:i,s=r.scheduler,c=s===void 0?e!=null?e:ko:s,l=r.meta,u=l===void 0?null:l;if(n==null&&o==null)throw new TypeError("No timeout provided.");return Ce(function(d,h){var p,v,y=null,I=0,g=function(f){v=_r(h,c,function(){try{p.unsubscribe(),ft(a({meta:u,lastValue:y,seen:I})).subscribe(h)}catch(m){h.error(m)}},f)};p=d.subscribe(de(h,function(f){v==null||v.unsubscribe(),I++,h.next(y=f),o>0&&g(o)},void 0,void 0,function(){v!=null&&v.closed||v==null||v.unsubscribe(),y=null})),!I&&g(n!=null?typeof n=="number"?n:+n-c.now():o)})}function U_(t){throw new x_(t)}function ht(t,e){return Ce(function(r,n){var o=0;r.subscribe(de(n,function(i){n.next(t.call(e,i,o++))}))})}var L_=Array.isArray;function H_(t,e){return L_(e)?t.apply(void 0,br([],or(e))):t(e)}function D_(t){return ht(function(e){return H_(t,e)})}function Pm(t,e,r,n,o,i,a,s){var c=[],l=0,u=0,d=!1,h=function(){d&&!c.length&&!l&&e.complete()},p=function(y){return l<n?v(y):c.push(y)},v=function(y){i&&e.next(y),l++;var I=!1;ft(r(y,u++)).subscribe(de(e,function(g){o==null||o(g),i?p(g):e.next(g)},function(){I=!0},void 0,function(){if(I)try{l--;for(var g=function(){var f=c.shift();a?_r(e,a,function(){return v(f)}):v(f)};c.length&&l<n;)g();h()}catch(f){e.error(f)}}))};return t.subscribe(de(e,p,function(){d=!0,h()})),function(){s==null||s()}}function Gi(t,e,r){return r===void 0&&(r=1/0),te(e)?Gi(function(n,o){return ht(function(i,a){return e(n,i,o,a)})(ft(t(n,o)))},r):(typeof e=="number"&&(r=e),Ce(function(n,o){return Pm(n,o,t,r)}))}var F_=["addListener","removeListener"],z_=["addEventListener","removeEventListener"],$_=["on","off"];function du(t,e,r,n){if(te(r)&&(n=r,r=void 0),n)return du(t,e,r).pipe(D_(n));var o=or(B_(t)?z_.map(function(s){return function(c){return t[s](e,c,r)}}):j_(t)?F_.map(tf(t,e)):q_(t)?$_.map(tf(t,e)):[],2),i=o[0],a=o[1];if(!i&&bd(t))return Gi(function(s){return du(s,e,r)})(ft(t));if(!i)throw new TypeError("Invalid event target");return new le(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 tf(t,e){return function(r){return function(n){return t[r](e,n)}}}function j_(t){return te(t.addListener)&&te(t.removeListener)}function q_(t){return te(t.on)&&te(t.off)}function B_(t){return te(t.addEventListener)&&te(t.removeEventListener)}function K_(t,e,r){t===void 0&&(t=0),r===void 0&&(r=m_);var n=-1;return e!=null&&(vm(e)?r=e:n=e),new le(function(o){var i=Nm(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)})}var G_=Array.isArray;function V_(t){return t.length===1&&G_(t[0])?t[0]:t}function bo(t,e){return Ce(function(r,n){var o=0;r.subscribe(de(n,function(i){return t.call(e,i,o++)&&n.next(i)}))})}function W_(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t=V_(t),t.length===1?ft(t[0]):new le(Y_(t))}function Y_(t){return function(e){for(var r=[],n=function(i){r.push(ft(t[i]).subscribe(de(e,function(a){if(r){for(var s=0;s<r.length;s++)s!==i&&r[s].unsubscribe();r=null}e.next(a)})))},o=0;r&&!e.closed&&o<t.length;o++)n(o)}}function Ao(t){return Ce(function(e,r){var n=null,o=!1,i;n=e.subscribe(de(r,void 0,void 0,function(a){i=ft(t(a,Ao(t)(e))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function Q_(t,e,r,n,o){return function(i,a){var s=r,c=e,l=0;i.subscribe(de(a,function(u){var d=l++;c=s?t(c,u,d):(s=!0,u),n&&a.next(c)},o&&function(){s&&a.next(c),a.complete()}))}}function J_(t,e){return e===void 0&&(e=ko),Ce(function(r,n){var o=null,i=null,a=null,s=function(){if(o){o.unsubscribe(),o=null;var l=i;i=null,n.next(l)}};function c(){var l=a+t,u=e.now();if(u<l){o=this.schedule(void 0,l-u),n.add(o);return}s()}r.subscribe(de(n,function(l){i=l,a=e.now(),o||(o=e.schedule(c,t),n.add(o))},function(){s(),n.complete()},void 0,function(){i=o=null}))})}function X_(t){return Ce(function(e,r){var n=!1;e.subscribe(de(r,function(o){n=!0,r.next(o)},function(){n||r.next(t),r.complete()}))})}function Z_(t){return t<=0?function(){return qi}:Ce(function(e,r){var n=0;e.subscribe(de(r,function(o){++n<=t&&(r.next(o),t<=n&&r.complete())}))})}function Om(t,e){return e===void 0&&(e=aa),t=t!=null?t:eE,Ce(function(r,n){var o,i=!0;r.subscribe(de(n,function(a){var s=e(a);(i||!t(o,s))&&(i=!1,o=s,n.next(a))}))})}function eE(t,e){return t===e}function tE(t){return t===void 0&&(t=rE),Ce(function(e,r){var n=!1;e.subscribe(de(r,function(o){n=!0,r.next(o)},function(){return n?r.complete():r.error(t())}))})}function rE(){return new yc}function nE(t){return t<=0?function(){return qi}:Ce(function(e,r){var n=[];e.subscribe(de(r,function(o){n.push(o),t<n.length&&n.shift()},function(){var o,i;try{for(var a=Rn(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 oE(t,e){var r=arguments.length>=2;return function(n){return n.pipe(t?bo(function(o,i){return t(o,i,n)}):aa,nE(1),r?X_(e):tE(function(){return new yc}))}}function iE(t,e,r){return r===void 0&&(r=1/0),Ce(function(n,o){var i=e;return Pm(n,o,function(a,s){return t(i,a,s)},r,function(a){i=a},!1,void 0,function(){return i=null})})}function xm(){return Ce(function(t,e){var r,n=!1;t.subscribe(de(e,function(o){var i=r;r=o,n&&e.next([i,o]),n=!0}))})}function Mm(t,e){return Ce(Q_(t,e,arguments.length>=2,!0))}function ro(t,e){return Ce(function(r,n){var o=null,i=0,a=!1,s=function(){return a&&!o&&n.complete()};r.subscribe(de(n,function(c){o==null||o.unsubscribe();var l=0,u=i++;ft(t(c,u)).subscribe(o=de(n,function(d){return n.next(e?e(c,d,u,l++):d)},function(){o=null,s()}))},function(){a=!0,s()}))})}function aE(t){return Ce(function(e,r){ft(t).subscribe(de(r,function(){return r.complete()},Os)),!r.closed&&e.subscribe(r)})}function Um(t,e){return e===void 0&&(e=!1),Ce(function(r,n){var o=0;r.subscribe(de(n,function(i){var a=t(i,o++);(a||e)&&n.next(i),!a&&n.complete()}))})}function hu(t,e,r){var n=te(t)||e||r?{next:t,error:e,complete:r}:t;return n?Ce(function(o,i){var a;(a=n.subscribe)===null||a===void 0||a.call(n);var s=!0;o.subscribe(de(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)}))}):aa}function Lm(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=v_(t);return Ce(function(n,o){for(var i=t.length,a=new Array(i),s=t.map(function(){return!1}),c=!1,l=function(d){ft(t[d]).subscribe(de(o,function(h){a[d]=h,!c&&!s[d]&&(s[d]=!0,(c=s.every(aa))&&(s=null))},Os))},u=0;u<i;u++)l(u);n.subscribe(de(o,function(d){if(c){var h=br([d],or(a));o.next(r?r.apply(void 0,br([],or(h))):h)}}))})}var Yt=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class sE extends Error{constructor(){super("It was too slow"),this.name="RequiredModuleTimeoutError"}}class cE{constructor(e){this.logger=new um("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 Yt(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 Yt(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=Zr(r).pipe(Gi(s=>Yt(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}})),Mm((s,c)=>Object.assign(s,c),{onAfterConfiguration(s){o.push(s)},onAfterInit(s){i.push(s)}}));return uu(a)}_postConfigure(e){return Yt(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=>Yt(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 Yt(this,void 0,void 0,function*(){const{modules:n,logger:o}=this,i=n.map(u=>u.name),a=new mc({}),s=u=>i.includes(u),c=(u,d=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 ${d}s`),Ki(a.pipe(bo(h=>!!h[u]),ht(h=>h[u]),M_({each:d,with:()=>O_(()=>new sE)}))))};Zr(n).pipe(Gi(u=>{const d=u.name;return o.debug(`\u{1F680} initializing ${o.formatModuleName(u)}`),Zr(Promise.resolve(u.initialize({ref:r,config:e[d],requireInstance:c,hasModule:s}))).pipe(ht(h=>(o.debug(`\u{1F680} initialized ${o.formatModuleName(u)}`),[d,h])))})).subscribe({next:([u,d])=>{a.next(Object.assign(a.value,{[u]:d}))},complete:()=>a.complete()});const l=yield uu(a);return Object.seal(l),l})}_postInitialize(e,r){return Yt(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=>Yt(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 Yt(this,void 0,void 0,function*(){const{modules:n}=this;yield Promise.allSettled(n.filter(o=>!!o.dispose).map(o=>Yt(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 Un=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},ln=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)},Za,es,ni,ts,oi,fu;class lE{constructor(e,r){this.__type=e,Za.set(this,void 0),es.set(this,void 0),ni.set(this,!1),ts.set(this,void 0),oi.set(this,void 0),fu.set(this,Date.now()),Un(this,Za,r.detail,"f"),Un(this,es,r.source,"f"),Un(this,ts,!!r.cancelable,"f"),Un(this,oi,r.canBubble===void 0?!0:r.canBubble,"f")}get bubbles(){return ln(this,oi,"f")&&!ln(this,ni,"f")}get created(){return ln(this,fu,"f")}get cancelable(){return ln(this,ts,"f")}get canceled(){return ln(this,ni,"f")}get detail(){return ln(this,Za,"f")}get source(){return ln(this,es,"f")}get type(){return this.__type}preventDefault(){this.cancelable&&Un(this,ni,!0,"f")}stopPropagation(){Un(this,oi,!1,"f")}}Za=new WeakMap,es=new WeakMap,ni=new WeakMap,ts=new WeakMap,oi=new WeakMap,fu=new WeakMap;var uE=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class dE{constructor({onDispatch:e,onBubble:r}){this.__onDispatch=e,this.__onBubble=r}dispatch(e,r){var n,o;return uE(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 rf=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class hE extends le{constructor(e){super(r=>{this.__event$.subscribe(r)}),this.__listeners=[],this.__event$=new Xr,this.__dispatcher=new dE({onDispatch:e.onDispatch,onBubble:e.onBubble})}get closed(){return this.__event$.closed}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 rf(this,void 0,void 0,function*(){if(typeof e=="string"){if(!r)throw Error("invalid arguments, missing [FrameworkEventInit]");return this._dispatchEvent(new lE(e,r))}else return this._dispatchEvent(e)})}_dispatchEvent(e){return rf(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 fE=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const pE="event",gE={name:pE,configure:t=>{const e={},r=t==null?void 0:t.event;return r&&(e.onBubble=n=>fE(void 0,void 0,void 0,function*(){yield r.dispatchEvent(n)})),e},initialize:({config:t})=>new hE(t),postInitialize({instance:t,modules:e}){t.dispatchEvent("onModulesLoaded",{detail:e,source:t})},dispose({instance:t}){t.dispose()}};class Hm{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?Zr(Object.values(this._operators)).pipe(iE((n,o)=>Promise.resolve(o(n)).then(i=>i!=null?i:n),e,1),oE()):vc(e)}}const mE=(t,e)=>r=>{const n=new Headers(r.headers);return n.append(t,e),Object.assign(Object.assign({},r),{headers:n})};class Dm extends Hm{setHeader(e,r){const n=mE(e,r);return this.set("header-"+e,n)}}class vE extends Hm{}class yE{constructor(e){this._clients={},this.defaultHttpRequestHandler=new Dm,this.defaultHttpClientCtor=e}get clients(){return Object.assign({},this._clients)}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 _E extends Error{constructor(e){super(e)}}const EE=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 wE{constructor(e){this.config=e}get defaultHttpRequestHandler(){return this.config.defaultHttpRequestHandler}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&&EE(e))return{baseUri:e};if(!r)throw new _E(`No registered http client for key [${e}]`);return r}return e}}function CE(t,e){e===void 0&&(e={});var r=e.selector,n=dm(e,["selector"]);return new le(function(o){var i=new AbortController,a=i.signal,s=!0,c=n.signal;if(c)if(c.aborted)i.abort();else{var l=function(){a.aborted||i.abort()};c.addEventListener("abort",l),o.add(function(){return c.removeEventListener("abort",l)})}var u=An(An({},n),{signal:a}),d=function(h){s=!1,o.error(h)};return fetch(t,u).then(function(h){r?ft(r(h)).subscribe(de(o,void 0,function(){s=!1,o.complete()},d)):(s=!1,o.next(h),o.complete())}).catch(d),function(){s&&i.abort()}})}const SE=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 nf=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 TE{constructor(e,r){var n,o;this.uri=e,this._request$=new Xr,this._response$=new Xr,this._abort$=new Xr,this.requestHandler=(n=r==null?void 0:r.requestHandler)!==null&&n!==void 0?n:new Dm,this.responseHandler=(o=r==null?void 0:r.responseHandler)!==null&&o!==void 0?o:new vE,this._init()}get request$(){return this._request$.asObservable()}get response$(){return this._response$.asObservable()}_init(){}fetch$(e,r){return this._fetch$(e,r)}fetch(e,r){return Ki(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:SE;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 Ki(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=nf(n,["selector"]);return vc(Object.assign(Object.assign({},i),{uri:this._resolveUrl(e)})).pipe(ro(s=>this._prepareRequest(s)),hu(s=>this._request$.next(s)),ro(s=>{var{uri:c,path:l}=s,u=nf(s,["uri","path"]);return CE(c,u)}),ro(s=>this._prepareResponse(s)),hu(s=>this._response$.next(s)),ro(s=>o?o(s):Promise.resolve(s)),aE(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 IE extends TE{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)}}const Ad={name:"http",configure:()=>new yE(IE),initialize:({config:t})=>new wE(t)},kE=t=>({module:Ad,configure:t}),Fm=(t,e)=>({module:Ad,configure:r=>{r.configureClient(t,e)}}),tl="default";class bE{constructor(){this._configs={}}get defaultConfig(){return this._configs[tl]}getClientConfig(e){return this._configs[e]}configureClient(e,r){return this._configs[e]=r,this}configureDefault(e){if(this._configs[tl])throw Error("Default AuthClient already provided");this.configureClient(tl,e)}}/*! @azure/msal-browser v2.30.0 2022-10-10 *//*! *****************************************************************************
35
+ `):"",this.name="UnsubscriptionError",this.errors=r}});function Ps(t,e){if(t){var r=t.indexOf(e);0<=r&&t.splice(r,1)}}var Nr=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=Rn(a),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(y){e={error:y}}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(te(u))try{u()}catch(y){i=y instanceof Zc?y.errors:[y]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var h=Rn(d),p=h.next();!p.done;p=h.next()){var v=p.value;try{Qh(v)}catch(y){i=i!=null?i:[],y instanceof Zc?i=br(br([],or(i)),or(y.errors)):i.push(y)}}}catch(y){n={error:y}}finally{try{p&&!p.done&&(o=h.return)&&o.call(h)}finally{if(n)throw n.error}}}if(i)throw new Zc(i)}},t.prototype.add=function(e){var r;if(e&&e!==this)if(this.closed)Qh(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)&&Ps(r,e)},t.prototype.remove=function(e){var r=this._finalizers;r&&Ps(r,e),e instanceof t&&e._removeParent(this)},t.EMPTY=function(){var e=new t;return e.closed=!0,e}(),t}(),hm=Nr.EMPTY;function fm(t){return t instanceof Nr||t&&"closed"in t&&te(t.remove)&&te(t.add)&&te(t.unsubscribe)}function Qh(t){te(t)?t():t.unsubscribe()}var Td={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},lu={setTimeout:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=lu.delegate;return o!=null&&o.setTimeout?o.setTimeout.apply(o,br([t,e],or(r))):setTimeout.apply(void 0,br([t,e],or(r)))},clearTimeout:function(t){var e=lu.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function pm(t){lu.setTimeout(function(){throw t})}function Os(){}var Pa=null;function Xa(t){if(Td.useDeprecatedSynchronousErrorHandling){var e=!Pa;if(e&&(Pa={errorThrown:!1,error:null}),t(),e){var r=Pa,n=r.errorThrown,o=r.error;if(Pa=null,n)throw o}}else t()}var Id=function(t){Rr(e,t);function e(r){var n=t.call(this)||this;return n.isStopped=!1,r?(n.destination=r,fm(r)&&r.add(n)):n.destination=r_,n}return e.create=function(r,n,o){return new xs(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}(Nr),Z0=Function.prototype.bind;function el(t,e){return Z0.call(t,e)}var e_=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){Oa(n)}},t.prototype.error=function(e){var r=this.partialObserver;if(r.error)try{r.error(e)}catch(n){Oa(n)}else Oa(e)},t.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(r){Oa(r)}},t}(),xs=function(t){Rr(e,t);function e(r,n,o){var i=t.call(this)||this,a;if(te(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&&Td.useDeprecatedNextContext?(s=Object.create(r),s.unsubscribe=function(){return i.unsubscribe()},a={next:r.next&&el(r.next,s),error:r.error&&el(r.error,s),complete:r.complete&&el(r.complete,s)}):a=r}return i.destination=new e_(a),i}return e}(Id);function Oa(t){pm(t)}function t_(t){throw t}var r_={closed:!0,next:Os,error:t_,complete:Os},kd=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function aa(t){return t}function n_(t){return t.length===0?aa:t.length===1?t[0]:function(r){return t.reduce(function(n,o){return o(n)},r)}}var le=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=i_(e)?e:new xs(e,r,n);return Xa(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=Jh(r),new r(function(o,i){var a=new xs({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[kd]=function(){return this},t.prototype.pipe=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return n_(e)(this)},t.prototype.toPromise=function(e){var r=this;return e=Jh(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 Jh(t){var e;return(e=t!=null?t:Td.Promise)!==null&&e!==void 0?e:Promise}function o_(t){return t&&te(t.next)&&te(t.error)&&te(t.complete)}function i_(t){return t&&t instanceof Id||o_(t)&&fm(t)}function a_(t){return te(t==null?void 0:t.lift)}function Ce(t){return function(e){if(a_(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 de(t,e,r,n,o){return new s_(t,e,r,n,o)}var s_=function(t){Rr(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}(Id),c_=gc(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Xr=function(t){Rr(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 Xh(this,this);return n.operator=r,n},e.prototype._throwIfClosed=function(){if(this.closed)throw new c_},e.prototype.next=function(r){var n=this;Xa(function(){var o,i;if(n._throwIfClosed(),!n.isStopped){n.currentObservers||(n.currentObservers=Array.from(n.observers));try{for(var a=Rn(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;Xa(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;Xa(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?hm:(this.currentObservers=null,s.push(r),new Nr(function(){n.currentObservers=null,Ps(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 le;return r.source=this,r},e.create=function(r,n){return new Xh(r,n)},e}(le),Xh=function(t){Rr(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:hm},e}(Xr),mc=function(t){Rr(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}(Xr),gm={now:function(){return(gm.delegate||Date).now()},delegate:void 0},l_=function(t){Rr(e,t);function e(r,n){return t.call(this)||this}return e.prototype.schedule=function(r,n){return this},e}(Nr),Ms={setInterval:function(t,e){for(var r=[],n=2;n<arguments.length;n++)r[n-2]=arguments[n];var o=Ms.delegate;return o!=null&&o.setInterval?o.setInterval.apply(o,br([t,e],or(r))):setInterval.apply(void 0,br([t,e],or(r)))},clearInterval:function(t){var e=Ms.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(t)},delegate:void 0},u_=function(t){Rr(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),Ms.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&&Ms.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,Ps(i,this),n!=null&&(this.id=this.recycleAsyncId(o,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},e}(l_),Zh=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=gm.now,t}(),d_=function(t){Rr(e,t);function e(r,n){n===void 0&&(n=Zh.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}(Zh),ko=new d_(u_),h_=ko,qi=new le(function(t){return t.complete()});function mm(t){return t&&te(t.schedule)}function vm(t){return t[t.length-1]}function f_(t){return te(vm(t))?t.pop():void 0}function p_(t){return mm(vm(t))?t.pop():void 0}var bd=function(t){return t&&typeof t.length=="number"&&typeof t!="function"};function ym(t){return te(t==null?void 0:t.then)}function _m(t){return te(t[kd])}function Em(t){return Symbol.asyncIterator&&te(t==null?void 0:t[Symbol.asyncIterator])}function wm(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 g_(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Cm=g_();function Sm(t){return te(t==null?void 0:t[Cm])}function Tm(t){return J0(this,arguments,function(){var r,n,o,i;return dm(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,mo(r.read())];case 3:return n=a.sent(),o=n.value,i=n.done,i?[4,mo(void 0)]:[3,5];case 4:return[2,a.sent()];case 5:return[4,mo(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 Im(t){return te(t==null?void 0:t.getReader)}function ft(t){if(t instanceof le)return t;if(t!=null){if(_m(t))return m_(t);if(bd(t))return v_(t);if(ym(t))return y_(t);if(Em(t))return km(t);if(Sm(t))return __(t);if(Im(t))return E_(t)}throw wm(t)}function m_(t){return new le(function(e){var r=t[kd]();if(te(r.subscribe))return r.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function v_(t){return new le(function(e){for(var r=0;r<t.length&&!e.closed;r++)e.next(t[r]);e.complete()})}function y_(t){return new le(function(e){t.then(function(r){e.closed||(e.next(r),e.complete())},function(r){return e.error(r)}).then(null,pm)})}function __(t){return new le(function(e){var r,n;try{for(var o=Rn(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 km(t){return new le(function(e){w_(t,e).catch(function(r){return e.error(r)})})}function E_(t){return km(Tm(t))}function w_(t,e){var r,n,o,i;return Q0(this,void 0,void 0,function(){var a,s;return dm(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=X0(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 _r(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 Bi(t,e){return e===void 0&&(e=0),Ce(function(r,n){r.subscribe(de(n,function(o){return _r(n,t,function(){return n.next(o)},e)},function(){return _r(n,t,function(){return n.complete()},e)},function(o){return _r(n,t,function(){return n.error(o)},e)}))})}function bm(t,e){return e===void 0&&(e=0),Ce(function(r,n){n.add(t.schedule(function(){return r.subscribe(n)},e))})}function C_(t,e){return ft(t).pipe(bm(e),Bi(e))}function S_(t,e){return ft(t).pipe(bm(e),Bi(e))}function T_(t,e){return new le(function(r){var n=0;return e.schedule(function(){n===t.length?r.complete():(r.next(t[n++]),r.closed||this.schedule())})})}function I_(t,e){return new le(function(r){var n;return _r(r,e,function(){n=t[Cm](),_r(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 te(n==null?void 0:n.return)&&n.return()}})}function Am(t,e){if(!t)throw new Error("Iterable cannot be null");return new le(function(r){_r(r,e,function(){var n=t[Symbol.asyncIterator]();_r(r,e,function(){n.next().then(function(o){o.done?r.complete():r.next(o.value)})},0,!0)})})}function k_(t,e){return Am(Tm(t),e)}function b_(t,e){if(t!=null){if(_m(t))return C_(t,e);if(bd(t))return T_(t,e);if(ym(t))return S_(t,e);if(Em(t))return Am(t,e);if(Sm(t))return I_(t,e);if(Im(t))return k_(t,e)}throw wm(t)}function Zr(t,e){return e?b_(t,e):ft(t)}function vc(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=p_(t);return Zr(t,r)}function A_(t,e){var r=te(t)?t:function(){return t},n=function(o){return o.error(r())};return new le(e?function(o){return e.schedule(n,0,o)}:n)}var yc=gc(function(t){return function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}});function uu(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 yc)}})})}function Ki(t,e){var r=typeof e=="object";return new Promise(function(n,o){var i=new xs({next:function(a){n(a),i.unsubscribe()},error:o,complete:function(){r?n(e.defaultValue):o(new yc)}});t.subscribe(i)})}function Rm(t){return t instanceof Date&&!isNaN(t)}var R_=gc(function(t){return function(r){r===void 0&&(r=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=r}});function N_(t,e){var r=Rm(t)?{first:t}:typeof t=="number"?{each:t}:t,n=r.first,o=r.each,i=r.with,a=i===void 0?P_:i,s=r.scheduler,c=s===void 0?e!=null?e:ko:s,l=r.meta,u=l===void 0?null:l;if(n==null&&o==null)throw new TypeError("No timeout provided.");return Ce(function(d,h){var p,v,y=null,I=0,g=function(f){v=_r(h,c,function(){try{p.unsubscribe(),ft(a({meta:u,lastValue:y,seen:I})).subscribe(h)}catch(m){h.error(m)}},f)};p=d.subscribe(de(h,function(f){v==null||v.unsubscribe(),I++,h.next(y=f),o>0&&g(o)},void 0,void 0,function(){v!=null&&v.closed||v==null||v.unsubscribe(),y=null})),!I&&g(n!=null?typeof n=="number"?n:+n-c.now():o)})}function P_(t){throw new R_(t)}function ht(t,e){return Ce(function(r,n){var o=0;r.subscribe(de(n,function(i){n.next(t.call(e,i,o++))}))})}var O_=Array.isArray;function x_(t,e){return O_(e)?t.apply(void 0,br([],or(e))):t(e)}function M_(t){return ht(function(e){return x_(t,e)})}function Nm(t,e,r,n,o,i,a,s){var c=[],l=0,u=0,d=!1,h=function(){d&&!c.length&&!l&&e.complete()},p=function(y){return l<n?v(y):c.push(y)},v=function(y){i&&e.next(y),l++;var I=!1;ft(r(y,u++)).subscribe(de(e,function(g){o==null||o(g),i?p(g):e.next(g)},function(){I=!0},void 0,function(){if(I)try{l--;for(var g=function(){var f=c.shift();a?_r(e,a,function(){return v(f)}):v(f)};c.length&&l<n;)g();h()}catch(f){e.error(f)}}))};return t.subscribe(de(e,p,function(){d=!0,h()})),function(){s==null||s()}}function Gi(t,e,r){return r===void 0&&(r=1/0),te(e)?Gi(function(n,o){return ht(function(i,a){return e(n,i,o,a)})(ft(t(n,o)))},r):(typeof e=="number"&&(r=e),Ce(function(n,o){return Nm(n,o,t,r)}))}var U_=["addListener","removeListener"],L_=["addEventListener","removeEventListener"],H_=["on","off"];function du(t,e,r,n){if(te(r)&&(n=r,r=void 0),n)return du(t,e,r).pipe(M_(n));var o=or(z_(t)?L_.map(function(s){return function(c){return t[s](e,c,r)}}):D_(t)?U_.map(ef(t,e)):F_(t)?H_.map(ef(t,e)):[],2),i=o[0],a=o[1];if(!i&&bd(t))return Gi(function(s){return du(s,e,r)})(ft(t));if(!i)throw new TypeError("Invalid event target");return new le(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 ef(t,e){return function(r){return function(n){return t[r](e,n)}}}function D_(t){return te(t.addListener)&&te(t.removeListener)}function F_(t){return te(t.on)&&te(t.off)}function z_(t){return te(t.addEventListener)&&te(t.removeEventListener)}function $_(t,e,r){t===void 0&&(t=0),r===void 0&&(r=h_);var n=-1;return e!=null&&(mm(e)?r=e:n=e),new le(function(o){var i=Rm(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)})}var j_=Array.isArray;function q_(t){return t.length===1&&j_(t[0])?t[0]:t}function bo(t,e){return Ce(function(r,n){var o=0;r.subscribe(de(n,function(i){return t.call(e,i,o++)&&n.next(i)}))})}function B_(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t=q_(t),t.length===1?ft(t[0]):new le(K_(t))}function K_(t){return function(e){for(var r=[],n=function(i){r.push(ft(t[i]).subscribe(de(e,function(a){if(r){for(var s=0;s<r.length;s++)s!==i&&r[s].unsubscribe();r=null}e.next(a)})))},o=0;r&&!e.closed&&o<t.length;o++)n(o)}}function Ao(t){return Ce(function(e,r){var n=null,o=!1,i;n=e.subscribe(de(r,void 0,void 0,function(a){i=ft(t(a,Ao(t)(e))),n?(n.unsubscribe(),n=null,i.subscribe(r)):o=!0})),o&&(n.unsubscribe(),n=null,i.subscribe(r))})}function G_(t,e,r,n,o){return function(i,a){var s=r,c=e,l=0;i.subscribe(de(a,function(u){var d=l++;c=s?t(c,u,d):(s=!0,u),n&&a.next(c)},o&&function(){s&&a.next(c),a.complete()}))}}function V_(t,e){return e===void 0&&(e=ko),Ce(function(r,n){var o=null,i=null,a=null,s=function(){if(o){o.unsubscribe(),o=null;var l=i;i=null,n.next(l)}};function c(){var l=a+t,u=e.now();if(u<l){o=this.schedule(void 0,l-u),n.add(o);return}s()}r.subscribe(de(n,function(l){i=l,a=e.now(),o||(o=e.schedule(c,t),n.add(o))},function(){s(),n.complete()},void 0,function(){i=o=null}))})}function W_(t){return Ce(function(e,r){var n=!1;e.subscribe(de(r,function(o){n=!0,r.next(o)},function(){n||r.next(t),r.complete()}))})}function Y_(t){return t<=0?function(){return qi}:Ce(function(e,r){var n=0;e.subscribe(de(r,function(o){++n<=t&&(r.next(o),t<=n&&r.complete())}))})}function Pm(t,e){return e===void 0&&(e=aa),t=t!=null?t:Q_,Ce(function(r,n){var o,i=!0;r.subscribe(de(n,function(a){var s=e(a);(i||!t(o,s))&&(i=!1,o=s,n.next(a))}))})}function Q_(t,e){return t===e}function J_(t){return t===void 0&&(t=X_),Ce(function(e,r){var n=!1;e.subscribe(de(r,function(o){n=!0,r.next(o)},function(){return n?r.complete():r.error(t())}))})}function X_(){return new yc}function Z_(t){return t<=0?function(){return qi}:Ce(function(e,r){var n=[];e.subscribe(de(r,function(o){n.push(o),t<n.length&&n.shift()},function(){var o,i;try{for(var a=Rn(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 eE(t,e){var r=arguments.length>=2;return function(n){return n.pipe(t?bo(function(o,i){return t(o,i,n)}):aa,Z_(1),r?W_(e):J_(function(){return new yc}))}}function tE(t,e,r){return r===void 0&&(r=1/0),Ce(function(n,o){var i=e;return Nm(n,o,function(a,s){return t(i,a,s)},r,function(a){i=a},!1,void 0,function(){return i=null})})}function Om(){return Ce(function(t,e){var r,n=!1;t.subscribe(de(e,function(o){var i=r;r=o,n&&e.next([i,o]),n=!0}))})}function xm(t,e){return Ce(G_(t,e,arguments.length>=2,!0))}function ro(t,e){return Ce(function(r,n){var o=null,i=0,a=!1,s=function(){return a&&!o&&n.complete()};r.subscribe(de(n,function(c){o==null||o.unsubscribe();var l=0,u=i++;ft(t(c,u)).subscribe(o=de(n,function(d){return n.next(e?e(c,d,u,l++):d)},function(){o=null,s()}))},function(){a=!0,s()}))})}function rE(t){return Ce(function(e,r){ft(t).subscribe(de(r,function(){return r.complete()},Os)),!r.closed&&e.subscribe(r)})}function Mm(t,e){return e===void 0&&(e=!1),Ce(function(r,n){var o=0;r.subscribe(de(n,function(i){var a=t(i,o++);(a||e)&&n.next(i),!a&&n.complete()}))})}function hu(t,e,r){var n=te(t)||e||r?{next:t,error:e,complete:r}:t;return n?Ce(function(o,i){var a;(a=n.subscribe)===null||a===void 0||a.call(n);var s=!0;o.subscribe(de(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)}))}):aa}function Um(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=f_(t);return Ce(function(n,o){for(var i=t.length,a=new Array(i),s=t.map(function(){return!1}),c=!1,l=function(d){ft(t[d]).subscribe(de(o,function(h){a[d]=h,!c&&!s[d]&&(s[d]=!0,(c=s.every(aa))&&(s=null))},Os))},u=0;u<i;u++)l(u);n.subscribe(de(o,function(d){if(c){var h=br([d],or(a));o.next(r?r.apply(void 0,br([],or(h))):h)}}))})}var Yt=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class nE extends Error{constructor(){super("It was too slow"),this.name="RequiredModuleTimeoutError"}}class oE{constructor(e){this.logger=new lm("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 Yt(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 Yt(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=Zr(r).pipe(Gi(s=>Yt(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}})),xm((s,c)=>Object.assign(s,c),{onAfterConfiguration(s){o.push(s)},onAfterInit(s){i.push(s)}}));return uu(a)}_postConfigure(e){return Yt(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=>Yt(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 Yt(this,void 0,void 0,function*(){const{modules:n,logger:o}=this,i=n.map(u=>u.name),a=new mc({}),s=u=>i.includes(u),c=(u,d=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 ${d}s`),Ki(a.pipe(bo(h=>!!h[u]),ht(h=>h[u]),N_({each:d,with:()=>A_(()=>new nE)}))))};Zr(n).pipe(Gi(u=>{const d=u.name;return o.debug(`\u{1F680} initializing ${o.formatModuleName(u)}`),Zr(Promise.resolve(u.initialize({ref:r,config:e[d],requireInstance:c,hasModule:s}))).pipe(ht(h=>(o.debug(`\u{1F680} initialized ${o.formatModuleName(u)}`),[d,h])))})).subscribe({next:([u,d])=>{a.next(Object.assign(a.value,{[u]:d}))},complete:()=>a.complete()});const l=yield uu(a);return Object.seal(l),l})}_postInitialize(e,r){return Yt(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=>Yt(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 Yt(this,void 0,void 0,function*(){const{modules:n}=this;yield Promise.allSettled(n.filter(o=>!!o.dispose).map(o=>Yt(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 Un=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},ln=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)},Za,es,ni,ts,oi,fu;class iE{constructor(e,r){this.__type=e,Za.set(this,void 0),es.set(this,void 0),ni.set(this,!1),ts.set(this,void 0),oi.set(this,void 0),fu.set(this,Date.now()),Un(this,Za,r.detail,"f"),Un(this,es,r.source,"f"),Un(this,ts,!!r.cancelable,"f"),Un(this,oi,r.canBubble===void 0?!0:r.canBubble,"f")}get bubbles(){return ln(this,oi,"f")&&!ln(this,ni,"f")}get created(){return ln(this,fu,"f")}get cancelable(){return ln(this,ts,"f")}get canceled(){return ln(this,ni,"f")}get detail(){return ln(this,Za,"f")}get source(){return ln(this,es,"f")}get type(){return this.__type}preventDefault(){this.cancelable&&Un(this,ni,!0,"f")}stopPropagation(){Un(this,oi,!1,"f")}}Za=new WeakMap,es=new WeakMap,ni=new WeakMap,ts=new WeakMap,oi=new WeakMap,fu=new WeakMap;var aE=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class sE{constructor({onDispatch:e,onBubble:r}){this.__onDispatch=e,this.__onBubble=r}dispatch(e,r){var n,o;return aE(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 tf=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class cE extends le{constructor(e){super(r=>{this.__event$.subscribe(r)}),this.__listeners=[],this.__event$=new Xr,this.__dispatcher=new sE({onDispatch:e.onDispatch,onBubble:e.onBubble})}get closed(){return this.__event$.closed}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 tf(this,void 0,void 0,function*(){if(typeof e=="string"){if(!r)throw Error("invalid arguments, missing [FrameworkEventInit]");return this._dispatchEvent(new iE(e,r))}else return this._dispatchEvent(e)})}_dispatchEvent(e){return tf(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 lE=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const uE="event",dE={name:uE,configure:t=>{const e={},r=t==null?void 0:t.event;return r&&(e.onBubble=n=>lE(void 0,void 0,void 0,function*(){yield r.dispatchEvent(n)})),e},initialize:({config:t})=>new cE(t),postInitialize({instance:t,modules:e}){t.dispatchEvent("onModulesLoaded",{detail:e,source:t})},dispose({instance:t}){t.dispose()}};class Lm{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?Zr(Object.values(this._operators)).pipe(tE((n,o)=>Promise.resolve(o(n)).then(i=>i!=null?i:n),e,1),eE()):vc(e)}}const hE=(t,e)=>r=>{const n=new Headers(r.headers);return n.append(t,e),Object.assign(Object.assign({},r),{headers:n})};class Hm extends Lm{setHeader(e,r){const n=hE(e,r);return this.set("header-"+e,n)}}class fE extends Lm{}class pE{constructor(e){this._clients={},this.defaultHttpRequestHandler=new Hm,this.defaultHttpClientCtor=e}get clients(){return Object.assign({},this._clients)}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 gE extends Error{constructor(e){super(e)}}const mE=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 vE{constructor(e){this.config=e}get defaultHttpRequestHandler(){return this.config.defaultHttpRequestHandler}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&&mE(e))return{baseUri:e};if(!r)throw new gE(`No registered http client for key [${e}]`);return r}return e}}function yE(t,e){e===void 0&&(e={});var r=e.selector,n=um(e,["selector"]);return new le(function(o){var i=new AbortController,a=i.signal,s=!0,c=n.signal;if(c)if(c.aborted)i.abort();else{var l=function(){a.aborted||i.abort()};c.addEventListener("abort",l),o.add(function(){return c.removeEventListener("abort",l)})}var u=An(An({},n),{signal:a}),d=function(h){s=!1,o.error(h)};return fetch(t,u).then(function(h){r?ft(r(h)).subscribe(de(o,void 0,function(){s=!1,o.complete()},d)):(s=!1,o.next(h),o.complete())}).catch(d),function(){s&&i.abort()}})}const _E=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 rf=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 EE{constructor(e,r){var n,o;this.uri=e,this._request$=new Xr,this._response$=new Xr,this._abort$=new Xr,this.requestHandler=(n=r==null?void 0:r.requestHandler)!==null&&n!==void 0?n:new Hm,this.responseHandler=(o=r==null?void 0:r.responseHandler)!==null&&o!==void 0?o:new fE,this._init()}get request$(){return this._request$.asObservable()}get response$(){return this._response$.asObservable()}_init(){}fetch$(e,r){return this._fetch$(e,r)}fetch(e,r){return Ki(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:_E;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 Ki(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=rf(n,["selector"]);return vc(Object.assign(Object.assign({},i),{uri:this._resolveUrl(e)})).pipe(ro(s=>this._prepareRequest(s)),hu(s=>this._request$.next(s)),ro(s=>{var{uri:c,path:l}=s,u=rf(s,["uri","path"]);return yE(c,u)}),ro(s=>this._prepareResponse(s)),hu(s=>this._response$.next(s)),ro(s=>o?o(s):Promise.resolve(s)),rE(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 wE extends EE{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)}}const Ad={name:"http",configure:()=>new pE(wE),initialize:({config:t})=>new vE(t)},CE=t=>({module:Ad,configure:t}),Dm=(t,e)=>({module:Ad,configure:r=>{r.configureClient(t,e)}}),tl="default";class SE{constructor(){this._configs={}}get defaultConfig(){return this._configs[tl]}getClientConfig(e){return this._configs[e]}configureClient(e,r){return this._configs[e]=r,this}configureDefault(e){if(this._configs[tl])throw Error("Default AuthClient already provided");this.configureClient(tl,e)}}/*! @azure/msal-browser v2.30.0 2022-10-10 *//*! *****************************************************************************
36
36
  Copyright (c) Microsoft Corporation.
37
37
 
38
38
  Permission to use, copy, modify, and/or distribute this software for any
@@ -45,7 +45,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
45
45
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
46
46
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
47
47
  PERFORMANCE OF THIS SOFTWARE.
48
- ***************************************************************************** */var pu=function(t,e){return pu=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])},pu(t,e)};function ze(t,e){pu(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var H=function(){return H=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},H.apply(this,arguments)};function AE(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 w(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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})}function C(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 RE(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 Rd(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(RE(arguments[e]));return t}/*! @azure/msal-common v7.6.0 2022-10-10 *//*! *****************************************************************************
48
+ ***************************************************************************** */var pu=function(t,e){return pu=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])},pu(t,e)};function ze(t,e){pu(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var H=function(){return H=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},H.apply(this,arguments)};function TE(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 w(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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})}function C(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 IE(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 Rd(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(IE(arguments[e]));return t}/*! @azure/msal-common v7.6.0 2022-10-10 *//*! *****************************************************************************
49
49
  Copyright (c) Microsoft Corporation.
50
50
 
51
51
  Permission to use, copy, modify, and/or distribute this software for any
@@ -58,7 +58,7 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
58
58
  LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
59
59
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
60
60
  PERFORMANCE OF THIS SOFTWARE.
61
- ***************************************************************************** */var gu=function(t,e){return gu=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])},gu(t,e)};function pt(t,e){gu(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 z(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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})}function $(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 _c(){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 v7.6.0 2022-10-10 */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},sa=[_.OPENID_SCOPE,_.PROFILE_SCOPE,_.OFFLINE_ACCESS_SCOPE],of=_c(sa,[_.EMAIL_SCOPE]),Gt;(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"})(Gt||(Gt={}));var Te;(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"})(Te||(Te={}));var Us;(function(t){t.COMMON="common",t.ORGANIZATIONS="organizations",t.CONSUMERS="consumers"})(Us||(Us={}));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 no;(function(t){t.ACCESS_TOKEN="access_token",t.XMS_CC="xms_cc"})(no||(no={}));var Ye={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},wi;(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"})(wi||(wi={}));var af={PLAIN:"plain",S256:"S256"},Ls;(function(t){t.QUERY="query",t.FRAGMENT="fragment",t.FORM_POST="form_post"})(Ls||(Ls={}));var Hs;(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"})(Hs||(Hs={}));var hr;(function(t){t.MSSTS_ACCOUNT_TYPE="MSSTS",t.ADFS_ACCOUNT_TYPE="ADFS",t.MSAV1_ACCOUNT_TYPE="MSA",t.GENERIC_ACCOUNT_TYPE="Generic"})(hr||(hr={}));var wt;(function(t){t.CACHE_KEY_SEPARATOR="-",t.CLIENT_INFO_SEPARATOR="."})(wt||(wt={}));var G;(function(t){t.ID_TOKEN="IdToken",t.ACCESS_TOKEN="AccessToken",t.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",t.REFRESH_TOKEN="RefreshToken"})(G||(G={}));var wn;(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"})(wn||(wn={}));var mr;(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"})(mr||(mr={}));var mu="appmetadata",NE="client_info",Ds="1",Ci={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},kt;(function(t){t.CONFIG="config",t.CACHE="cache",t.NETWORK="network",t.HARDCODED_VALUES="hardcoded_values"})(kt||(kt={}));var xe={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"},Z;(function(t){t.BEARER="Bearer",t.POP="pop",t.SSH="ssh-cert"})(Z||(Z={}));var Si={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},sf={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},Fs;(function(t){t.username="username",t.password="password"})(Fs||(Fs={}));var oo;(function(t){t[t.httpSuccess=200]="httpSuccess",t[t.httpBadRequest=400]="httpBadRequest"})(oo||(oo={}));var Hr;(function(t){t.FAILED_AUTO_DETECTION="1",t.INTERNAL_CACHE="2",t.ENVIRONMENT_VARIABLE="3",t.IMDS="4"})(Hr||(Hr={}));var pn;(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"})(pn||(pn={}));var yn;(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"})(yn||(yn={}));var vu;(function(t){t.Jwt="JWT",t.Jwk="JWK"})(vu||(vu={}));/*! @azure/msal-common v7.6.0 2022-10-10 */var xa={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."}},D=function(t){pt(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(xa.unexpectedError.code,xa.unexpectedError.desc+": "+r)},e.createPostRequestFailed=function(r){return new e(xa.postRequestFailed.code,xa.postRequestFailed.desc+": "+r)},e}(Error);/*! @azure/msal-common v7.6.0 2022-10-10 */var zs={createNewGuid:function(){var t="Crypto interface - createNewGuid() has not been implemented";throw D.createUnexpectedError(t)},base64Decode:function(){var t="Crypto interface - base64Decode() has not been implemented";throw D.createUnexpectedError(t)},base64Encode:function(){var t="Crypto interface - base64Encode() has not been implemented";throw D.createUnexpectedError(t)},generatePkceCodes:function(){return z(this,void 0,void 0,function(){var t;return $(this,function(e){throw t="Crypto interface - generatePkceCodes() has not been implemented",D.createUnexpectedError(t)})})},getPublicKeyThumbprint:function(){return z(this,void 0,void 0,function(){var t;return $(this,function(e){throw t="Crypto interface - getPublicKeyThumbprint() has not been implemented",D.createUnexpectedError(t)})})},removeTokenBindingKey:function(){return z(this,void 0,void 0,function(){var t;return $(this,function(e){throw t="Crypto interface - removeTokenBindingKey() has not been implemented",D.createUnexpectedError(t)})})},clearKeystore:function(){return z(this,void 0,void 0,function(){var t;return $(this,function(e){throw t="Crypto interface - clearKeystore() has not been implemented",D.createUnexpectedError(t)})})},signJwt:function(){return z(this,void 0,void 0,function(){var t;return $(this,function(e){throw t="Crypto interface - signJwt() has not been implemented",D.createUnexpectedError(t)})})},hashString:function(){return z(this,void 0,void 0,function(){var t;return $(this,function(e){throw t="Crypto interface - hashString() has not been implemented",D.createUnexpectedError(t)})})}};/*! @azure/msal-common v7.6.0 2022-10-10 */var k={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."}},O=function(t){pt(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(k.clientInfoDecodingError.code,k.clientInfoDecodingError.desc+" Failed with error: "+r)},e.createClientInfoEmptyError=function(){return new e(k.clientInfoEmptyError.code,""+k.clientInfoEmptyError.desc)},e.createTokenParsingError=function(r){return new e(k.tokenParsingError.code,k.tokenParsingError.desc+" Failed with error: "+r)},e.createTokenNullOrEmptyError=function(r){return new e(k.nullOrEmptyToken.code,k.nullOrEmptyToken.desc+" Raw Token Value: "+r)},e.createEndpointDiscoveryIncompleteError=function(r){return new e(k.endpointResolutionError.code,k.endpointResolutionError.desc+" Detail: "+r)},e.createNetworkError=function(r,n){return new e(k.networkError.code,k.networkError.desc+" | Fetch client threw: "+n+" | Attempted to reach: "+r.split("?")[0])},e.createUnableToGetOpenidConfigError=function(r){return new e(k.unableToGetOpenidConfigError.code,k.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+r)},e.createHashNotDeserializedError=function(r){return new e(k.hashNotDeserialized.code,k.hashNotDeserialized.desc+" Given Object: "+r)},e.createInvalidStateError=function(r,n){return new e(k.invalidStateError.code,k.invalidStateError.desc+" Invalid State: "+r+", Root Err: "+n)},e.createStateMismatchError=function(){return new e(k.stateMismatchError.code,k.stateMismatchError.desc)},e.createStateNotFoundError=function(r){return new e(k.stateNotFoundError.code,k.stateNotFoundError.desc+": "+r)},e.createNonceMismatchError=function(){return new e(k.nonceMismatchError.code,k.nonceMismatchError.desc)},e.createAuthTimeNotFoundError=function(){return new e(k.authTimeNotFoundError.code,k.authTimeNotFoundError.desc)},e.createMaxAgeTranspiredError=function(){return new e(k.maxAgeTranspiredError.code,k.maxAgeTranspiredError.desc)},e.createNonceNotFoundError=function(r){return new e(k.nonceNotFoundError.code,k.nonceNotFoundError.desc+": "+r)},e.createMultipleMatchingTokensInCacheError=function(){return new e(k.multipleMatchingTokens.code,k.multipleMatchingTokens.desc+".")},e.createMultipleMatchingAccountsInCacheError=function(){return new e(k.multipleMatchingAccounts.code,k.multipleMatchingAccounts.desc)},e.createMultipleMatchingAppMetadataInCacheError=function(){return new e(k.multipleMatchingAppMetadata.code,k.multipleMatchingAppMetadata.desc)},e.createTokenRequestCannotBeMadeError=function(){return new e(k.tokenRequestCannotBeMade.code,k.tokenRequestCannotBeMade.desc)},e.createAppendEmptyScopeToSetError=function(r){return new e(k.appendEmptyScopeError.code,k.appendEmptyScopeError.desc+" Given Scope: "+r)},e.createRemoveEmptyScopeFromSetError=function(r){return new e(k.removeEmptyScopeError.code,k.removeEmptyScopeError.desc+" Given Scope: "+r)},e.createAppendScopeSetError=function(r){return new e(k.appendScopeSetError.code,k.appendScopeSetError.desc+" Detail Error: "+r)},e.createEmptyInputScopeSetError=function(){return new e(k.emptyInputScopeSetError.code,""+k.emptyInputScopeSetError.desc)},e.createDeviceCodeCancelledError=function(){return new e(k.DeviceCodePollingCancelled.code,""+k.DeviceCodePollingCancelled.desc)},e.createDeviceCodeExpiredError=function(){return new e(k.DeviceCodeExpired.code,""+k.DeviceCodeExpired.desc)},e.createDeviceCodeUnknownError=function(){return new e(k.DeviceCodeUnknownError.code,""+k.DeviceCodeUnknownError.desc)},e.createNoAccountInSilentRequestError=function(){return new e(k.NoAccountInSilentRequest.code,""+k.NoAccountInSilentRequest.desc)},e.createNullOrUndefinedCacheRecord=function(){return new e(k.invalidCacheRecord.code,k.invalidCacheRecord.desc)},e.createInvalidCacheEnvironmentError=function(){return new e(k.invalidCacheEnvironment.code,k.invalidCacheEnvironment.desc)},e.createNoAccountFoundError=function(){return new e(k.noAccountFound.code,k.noAccountFound.desc)},e.createCachePluginError=function(){return new e(k.CachePluginError.code,""+k.CachePluginError.desc)},e.createNoCryptoObjectError=function(r){return new e(k.noCryptoObj.code,""+k.noCryptoObj.desc+r)},e.createInvalidCacheTypeError=function(){return new e(k.invalidCacheType.code,""+k.invalidCacheType.desc)},e.createUnexpectedAccountTypeError=function(){return new e(k.unexpectedAccountType.code,""+k.unexpectedAccountType.desc)},e.createUnexpectedCredentialTypeError=function(){return new e(k.unexpectedCredentialType.code,""+k.unexpectedCredentialType.desc)},e.createInvalidAssertionError=function(){return new e(k.invalidAssertion.code,""+k.invalidAssertion.desc)},e.createInvalidCredentialError=function(){return new e(k.invalidClientCredential.code,""+k.invalidClientCredential.desc)},e.createRefreshRequiredError=function(){return new e(k.tokenRefreshRequired.code,k.tokenRefreshRequired.desc)},e.createUserTimeoutReachedError=function(){return new e(k.userTimeoutReached.code,k.userTimeoutReached.desc)},e.createTokenClaimsRequiredError=function(){return new e(k.tokenClaimsRequired.code,k.tokenClaimsRequired.desc)},e.createNoAuthCodeInServerResponseError=function(){return new e(k.noAuthorizationCodeFromServer.code,k.noAuthorizationCodeFromServer.desc)},e.createBindingKeyNotRemovedError=function(){return new e(k.bindingKeyNotRemovedError.code,k.bindingKeyNotRemovedError.desc)},e.createLogoutNotSupportedError=function(){return new e(k.logoutNotSupported.code,k.logoutNotSupported.desc)},e.createKeyIdMissingError=function(){return new e(k.keyIdMissing.code,k.keyIdMissing.desc)},e}(D);/*! @azure/msal-common v7.6.0 2022-10-10 */var N=function(){function t(){}return t.decodeAuthToken=function(e){if(t.isEmpty(e))throw O.createTokenNullOrEmptyError(e);var r=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/,n=r.exec(e);if(!n||n.length<4)throw O.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 v7.6.0 2022-10-10 */var Ee;(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"})(Ee||(Ee={}));var Nd=function(){function t(e,r,n){this.level=Ee.Info;var o=function(){};this.localCallback=e.loggerCallback||o,this.piiLoggingEnabled=e.piiLoggingEnabled||!1,this.level=typeof e.logLevel=="number"?e.logLevel:Ee.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;N.isEmpty(r.correlationId)?N.isEmpty(this.correlationId)?o="["+n+"]":o="["+n+"] : ["+this.correlationId+"]":o="["+n+"] : ["+r.correlationId+"]";var i=o+" : "+this.packageName+"@"+this.packageVersion+" : "+Ee[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:Ee.Error,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.errorPii=function(e,r){this.logMessage(e,{logLevel:Ee.Error,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.warning=function(e,r){this.logMessage(e,{logLevel:Ee.Warning,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.warningPii=function(e,r){this.logMessage(e,{logLevel:Ee.Warning,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.info=function(e,r){this.logMessage(e,{logLevel:Ee.Info,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.infoPii=function(e,r){this.logMessage(e,{logLevel:Ee.Info,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.verbose=function(e,r){this.logMessage(e,{logLevel:Ee.Verbose,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.verbosePii=function(e,r){this.logMessage(e,{logLevel:Ee.Verbose,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.trace=function(e,r){this.logMessage(e,{logLevel:Ee.Trace,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.tracePii=function(e,r){this.logMessage(e,{logLevel:Ee.Trace,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var PE="@azure/msal-common",zm="7.6.0";/*! @azure/msal-common v7.6.0 2022-10-10 */var Vi;(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"})(Vi||(Vi={}));/*! @azure/msal-common v7.6.0 2022-10-10 */var Wi=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 G.ID_TOKEN:return mr.ID_TOKEN;case G.ACCESS_TOKEN:case G.ACCESS_TOKEN_WITH_AUTH_SCHEME:return mr.ACCESS_TOKEN;case G.REFRESH_TOKEN:return mr.REFRESH_TOKEN;default:throw O.createUnexpectedCredentialTypeError()}},t.getCredentialType=function(e){return e.indexOf(G.ACCESS_TOKEN.toLowerCase())!==-1?e.indexOf(G.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())!==-1?G.ACCESS_TOKEN_WITH_AUTH_SCHEME:G.ACCESS_TOKEN:e.indexOf(G.ID_TOKEN.toLowerCase())!==-1?G.ID_TOKEN:e.indexOf(G.REFRESH_TOKEN.toLowerCase())!==-1?G.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(wt.CACHE_KEY_SEPARATOR).toLowerCase()},t.generateAccountIdForCacheKey=function(e,r){var n=[e,r];return n.join(wt.CACHE_KEY_SEPARATOR).toLowerCase()},t.generateCredentialIdForCacheKey=function(e,r,n,o){var i=e===G.REFRESH_TOKEN&&o||r,a=[e,i,n||_.EMPTY_STRING];return a.join(wt.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()!==Z.BEARER.toLowerCase()?e.toLowerCase():_.EMPTY_STRING},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var j={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"}},se=function(t){pt(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(j.redirectUriNotSet.code,j.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(j.postLogoutUriNotSet.code,j.postLogoutUriNotSet.desc)},e.createClaimsRequestParsingError=function(r){return new e(j.claimsRequestParsingError.code,j.claimsRequestParsingError.desc+" Given value: "+r)},e.createInsecureAuthorityUriError=function(r){return new e(j.authorityUriInsecure.code,j.authorityUriInsecure.desc+" Given URI: "+r)},e.createUrlParseError=function(r){return new e(j.urlParseError.code,j.urlParseError.desc+" Given Error: "+r)},e.createUrlEmptyError=function(){return new e(j.urlEmptyError.code,j.urlEmptyError.desc)},e.createEmptyScopesArrayError=function(){return new e(j.emptyScopesError.code,""+j.emptyScopesError.desc)},e.createClientIdSingleScopeError=function(r){return new e(j.clientIdSingleScopeError.code,j.clientIdSingleScopeError.desc+" Given Scopes: "+r)},e.createInvalidPromptError=function(r){return new e(j.invalidPrompt.code,j.invalidPrompt.desc+" Given value: "+r)},e.createInvalidClaimsRequestError=function(){return new e(j.invalidClaimsRequest.code,j.invalidClaimsRequest.desc)},e.createEmptyLogoutRequestError=function(){return new e(j.logoutRequestEmptyError.code,j.logoutRequestEmptyError.desc)},e.createEmptyTokenRequestError=function(){return new e(j.tokenRequestEmptyError.code,j.tokenRequestEmptyError.desc)},e.createInvalidCodeChallengeMethodError=function(){return new e(j.invalidCodeChallengeMethod.code,j.invalidCodeChallengeMethod.desc)},e.createInvalidCodeChallengeParamsError=function(){return new e(j.invalidCodeChallengeParams.code,j.invalidCodeChallengeParams.desc)},e.createInvalidCloudDiscoveryMetadataError=function(){return new e(j.invalidCloudDiscoveryMetadata.code,j.invalidCloudDiscoveryMetadata.desc)},e.createInvalidAuthorityMetadataError=function(){return new e(j.invalidAuthorityMetadata.code,j.invalidAuthorityMetadata.desc)},e.createUntrustedAuthorityError=function(){return new e(j.untrustedAuthority.code,j.untrustedAuthority.desc)},e.createInvalidAzureCloudInstanceError=function(){return new e(j.invalidAzureCloudInstance.code,j.invalidAzureCloudInstance.desc)},e.createMissingSshJwkError=function(){return new e(j.missingSshJwk.code,j.missingSshJwk.desc)},e.createMissingSshKidError=function(){return new e(j.missingSshKid.code,j.missingSshKid.desc)},e.createMissingNonceAuthenticationHeadersError=function(){return new e(j.missingNonceAuthenticationHeader.code,j.missingNonceAuthenticationHeader.desc)},e.createInvalidAuthenticationHeaderError=function(r,n){return new e(j.invalidAuthenticationHeader.code,j.invalidAuthenticationHeader.desc+". Invalid header: "+r+". Details: "+n)},e}(O);/*! @azure/msal-common v7.6.0 2022-10-10 */var tt=function(){function t(e){var r=this,n=e?N.trimArrayEntries(_c(e)):[],o=n?N.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 se.createEmptyScopesArrayError()},t.prototype.containsScope=function(e){var r=this.printScopesLowerCase().split(" "),n=new t(r);return N.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 of.forEach(function(n){e.containsScope(n)&&(r+=1)}),this.scopes.size===r},t.prototype.appendScope=function(e){N.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 O.createAppendScopeSetError(n)}},t.prototype.removeScope=function(e){if(N.isEmpty(e))throw O.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},t.prototype.removeOIDCScopes=function(){var e=this;of.forEach(function(r){e.scopes.delete(r)})},t.prototype.unionScopeSets=function(e){if(!e)throw O.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 O.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 v7.6.0 2022-10-10 */function $s(t,e){if(N.isEmpty(t))throw O.createClientInfoEmptyError();try{var r=e.base64Decode(t);return JSON.parse(r)}catch(n){throw O.createClientInfoDecodingError(n.message)}}function io(t){if(N.isEmpty(t))throw O.createClientInfoDecodingError("Home account ID was empty.");var e=t.split(wt.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?_.EMPTY_STRING:e[1]}}/*! @azure/msal-common v7.6.0 2022-10-10 */var Rt;(function(t){t[t.Default=0]="Default",t[t.Adfs=1]="Adfs",t[t.Dsts=2]="Dsts"})(Rt||(Rt={}));/*! @azure/msal-common v7.6.0 2022-10-10 */var He=function(){function t(){}return t.prototype.generateAccountId=function(){var e=[this.homeAccountId,this.environment];return e.join(wt.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 hr.ADFS_ACCOUNT_TYPE:return mr.ADFS;case hr.MSAV1_ACCOUNT_TYPE:return mr.MSA;case hr.MSSTS_ACCOUNT_TYPE:return mr.MSSTS;case hr.GENERIC_ACCOUNT_TYPE:return mr.GENERIC;default:throw O.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(wt.CACHE_KEY_SEPARATOR).toLowerCase()},t.createAccount=function(e,r,n,o,i,a,s,c){var l,u,d,h,p,v,y=new t;y.authorityType=hr.MSSTS_ACCOUNT_TYPE,y.clientInfo=e,y.homeAccountId=r,y.nativeAccountId=c;var I=s||o&&o.getPreferredCache();if(!I)throw O.createInvalidCacheEnvironmentError();if(y.environment=I,y.realm=((l=n==null?void 0:n.claims)===null||l===void 0?void 0:l.tid)||_.EMPTY_STRING,n){y.idTokenClaims=n.claims,y.localAccountId=((u=n==null?void 0:n.claims)===null||u===void 0?void 0:u.oid)||((d=n==null?void 0:n.claims)===null||d===void 0?void 0:d.sub)||_.EMPTY_STRING;var g=(h=n==null?void 0:n.claims)===null||h===void 0?void 0:h.preferred_username,f=!((p=n==null?void 0:n.claims)===null||p===void 0)&&p.emails?n.claims.emails[0]:null;y.username=g||f||_.EMPTY_STRING,y.name=(v=n==null?void 0:n.claims)===null||v===void 0?void 0:v.name}return y.cloudGraphHostName=i,y.msGraphHost=a,y},t.createGenericAccount=function(e,r,n,o,i,a){var s,c,l,u,d=new t;d.authorityType=n&&n.authorityType===Rt.Adfs?hr.ADFS_ACCOUNT_TYPE:hr.GENERIC_ACCOUNT_TYPE,d.homeAccountId=e,d.realm=_.EMPTY_STRING;var h=a||n&&n.getPreferredCache();if(!h)throw O.createInvalidCacheEnvironmentError();return r&&(d.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,d.username=((l=r==null?void 0:r.claims)===null||l===void 0?void 0:l.upn)||_.EMPTY_STRING,d.name=((u=r==null?void 0:r.claims)===null||u===void 0?void 0:u.name)||_.EMPTY_STRING,d.idTokenClaims=r==null?void 0:r.claims),d.environment=h,d.cloudGraphHostName=o,d.msGraphHost=i,d},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===Rt.Adfs||r===Rt.Dsts)return s;if(e)try{var c=$s(e,o);if(!N.isEmpty(c.uid)&&!N.isEmpty(c.utid))return""+c.uid+wt.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 v7.6.0 2022-10-10 */var ir=function(){function t(e,r){if(N.isEmpty(e))throw O.createTokenNullOrEmptyError(e);this.rawToken=e,this.claims=t.extractTokenClaims(e,r)}return t.extractTokenClaims=function(e,r){var n=N.decodeAuthToken(e);try{var o=n.JWSPayload,i=r.base64Decode(o);return JSON.parse(i)}catch(a){throw O.createTokenParsingError(a)}},t.checkMaxAge=function(e,r){var n=3e5;if(r===0||Date.now()-n>e+r)throw O.createMaxAgeTranspiredError()},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Dt=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 He,a),c=s.getAccountInfo(),l=e.readIdTokenFromCache(e.clientId,c);return l&&!c.idTokenClaims&&(c.idToken=l.secret,c.idTokenClaims=new ir(l.secret,e.cryptoImpl).claims),c});return i},t.prototype.saveCacheRecord=function(e){return z(this,void 0,void 0,function(){return $(this,function(r){switch(r.label){case 0:if(!e)throw O.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 z(this,void 0,void 0,function(){var r,n,o,i,a=this;return $(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=tt.fromString(e.target),o=Object.keys(r.accessTokens).map(function(c){return r.accessTokens[c]}),o?(i=[],o.forEach(function(c){var l=tt.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,d){var h=this,p=this.getKeys(),v={idTokens:{},accessTokens:{},refreshTokens:{}};return p.forEach(function(y){var I=Wi.getCredentialType(y);if(I!==_.NOT_DEFINED){var g=h.getSpecificCredential(y,I);if(!!g&&!(!!c&&!h.matchUserAssertionHash(g,c))&&!(typeof e=="string"&&!h.matchHomeAccountId(g,e))&&!(!!r&&!h.matchEnvironment(g,r))&&!(!!a&&!h.matchRealm(g,a))&&!(!!n&&!h.matchCredentialType(g,n))&&!(!!o&&!h.matchClientId(g,o))&&!(!!i&&!h.matchFamilyId(g,i))&&!(!!s&&!h.matchTarget(g,s))&&!((d||g.requestedClaimsHash)&&g.requestedClaimsHash!==d)&&!(n===G.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(!!l&&!h.matchTokenType(g,l)||l===Z.SSH&&u&&!h.matchKeyId(g,u)))){var f=h.updateCredentialCacheKey(y,g);switch(I){case G.ID_TOKEN:v.idTokens[f]=g;break;case G.ACCESS_TOKEN:case G.ACCESS_TOKEN_WITH_AUTH_SCHEME:v.accessTokens[f]=g;break;case G.REFRESH_TOKEN:v.refreshTokens[f]=g;break}}}}),v},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 z(this,void 0,void 0,function(){var e,r,n=this;return $(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 z(this,void 0,void 0,function(){var r;return $(this,function(n){switch(n.label){case 0:if(r=this.getAccount(e),!r)throw O.createNoAccountFoundError();return[4,this.removeAccountContext(r)];case 1:return[2,n.sent()&&this.removeItem(e,wn.ACCOUNT)]}})})},t.prototype.removeAccountContext=function(e){return z(this,void 0,void 0,function(){var r,n,o,i=this;return $(this,function(a){switch(a.label){case 0:return r=this.getKeys(),n=e.generateAccountId(),o=[],r.forEach(function(s){var c=Wi.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 z(this,void 0,void 0,function(){var r,n,o;return $(this,function(i){switch(i.label){case 0:if(r=e.generateCredentialKey(),e.credentialType.toLowerCase()!==G.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(e.tokenType!==Z.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(),O.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(r,wn.CREDENTIAL)]}})})},t.prototype.removeAppMetadata=function(){var e=this,r=this.getKeys();return r.forEach(function(n){e.isAppMetadata(n)&&e.removeItem(n,wn.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 ir(a.secret,this.cryptoImpl).claims),{account:i,idToken:a,accessToken:s,refreshToken:c,appMetadata:l}},t.prototype.readAccountFromCache=function(e){var r=He.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 O.createMultipleMatchingAccountsInCacheError();return n[0]},t.prototype.readIdTokenFromCache=function(e,r){var n={homeAccountId:r.homeAccountId,environment:r.environment,credentialType:G.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 O.createMultipleMatchingTokensInCacheError();return i[0]},t.prototype.readAccessTokenFromCache=function(e,r,n){var o=new tt(n.scopes||[]),i=n.authenticationScheme||Z.BEARER,a=i&&i.toLowerCase()!==Z.BEARER.toLowerCase()?G.ACCESS_TOKEN_WITH_AUTH_SCHEME:G.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(d){return c.accessTokens[d]}),u=l.length;if(u<1)return null;if(u>1)throw O.createMultipleMatchingTokensInCacheError();return l[0]},t.prototype.readRefreshTokenFromCache=function(e,r,n){var o=n?Ds:void 0,i={homeAccountId:r.homeAccountId,environment:r.environment,credentialType:G.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 O.createMultipleMatchingAppMetadataInCacheError();return i[0]},t.prototype.isAppMetadataFOCI=function(e,r){var n=this.readAppMetadataFromCache(e,r);return!!(n&&n.familyId===Ds)},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!==G.ACCESS_TOKEN&&e.credentialType!==G.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(n||!e.target)return!1;var o=tt.fromString(e.target),i=tt.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(mu)!==-1},t.prototype.isAuthorityMetadata=function(e){return e.indexOf(Ci.CACHE_KEY)!==-1},t.prototype.generateAuthorityMetadataCacheKey=function(e){return Ci.CACHE_KEY+"-"+this.clientId+"-"+e},t.prototype.getSpecificCredential=function(e,r){switch(r){case G.ID_TOKEN:return this.getIdTokenCredential(e);case G.ACCESS_TOKEN:case G.ACCESS_TOKEN_WITH_AUTH_SCHEME:return this.getAccessTokenCredential(e);case G.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}(),OE=function(t){pt(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 D.createUnexpectedError(r)},e.prototype.getAccount=function(){var r="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.setIdTokenCredential=function(){var r="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.getIdTokenCredential=function(){var r="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.setAccessTokenCredential=function(){var r="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.getAccessTokenCredential=function(){var r="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.setRefreshTokenCredential=function(){var r="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.getRefreshTokenCredential=function(){var r="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.setAppMetadata=function(){var r="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.getAppMetadata=function(){var r="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.setServerTelemetry=function(){var r="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.getServerTelemetry=function(){var r="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.setAuthorityMetadata=function(){var r="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.getAuthorityMetadata=function(){var r="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.getAuthorityMetadataKeys=function(){var r="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.setThrottlingCache=function(){var r="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.getThrottlingCache=function(){var r="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.removeItem=function(){var r="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.containsKey=function(){var r="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.getKeys=function(){var r="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.clear=function(){return z(this,void 0,void 0,function(){var r;return $(this,function(n){throw r="Storage interface - clear() has not been implemented for the cacheStorage interface.",D.createUnexpectedError(r)})})},e.prototype.updateCredentialCacheKey=function(){var r="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e}(Dt);/*! @azure/msal-common v7.6.0 2022-10-10 */var xE=300,$m={tokenRenewalOffsetSeconds:xE,preventCorsPreflight:!1,proxyUrl:_.EMPTY_STRING},ME={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:Ee.Info,correlationId:_.EMPTY_STRING},UE={sendGetRequestAsync:function(){return z(this,void 0,void 0,function(){var t;return $(this,function(e){throw t="Network interface - sendGetRequestAsync() has not been implemented",D.createUnexpectedError(t)})})},sendPostRequestAsync:function(){return z(this,void 0,void 0,function(){var t;return $(this,function(e){throw t="Network interface - sendPostRequestAsync() has not been implemented",D.createUnexpectedError(t)})})}},LE={sku:_.SKU,version:zm,cpu:_.EMPTY_STRING,os:_.EMPTY_STRING},HE={clientSecret:_.EMPTY_STRING,clientAssertion:void 0},DE={azureCloudInstance:Vi.None,tenant:""+_.DEFAULT_COMMON_TENANT},FE={application:{appName:"",appVersion:""}};function zE(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,d=t.persistencePlugin,h=t.serializableCache,p=ve(ve({},ME),n);return{authOptions:$E(e),systemOptions:ve(ve({},$m),r),loggerOptions:p,storageInterface:o||new OE(e.clientId,zs),networkInterface:i||UE,cryptoInterface:a||zs,clientCredentials:s||HE,libraryInfo:ve(ve({},LE),c),telemetry:ve(ve({},FE),l),serverTelemetryManager:u||null,persistencePlugin:d||null,serializableCache:h||null}}function $E(t){return ve({clientCapabilities:[],azureCloudOptions:DE,skipAuthorityMetadataCache:!1},t)}/*! @azure/msal-common v7.6.0 2022-10-10 */var Nn=function(t){pt(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}(D);/*! @azure/msal-common v7.6.0 2022-10-10 */var js=function(){function t(){}return t.generateThrottlingStorageKey=function(e){return Si.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,wn.THROTTLING);return}throw new Nn(((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[Gt.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(Gt.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||Si.DEFAULT_THROTTLE_TIME_SECONDS),n+Si.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,wn.THROTTLING)},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var jE=function(){function t(e,r){this.networkClient=e,this.cacheManager=r}return t.prototype.sendPostRequest=function(e,r,n){return z(this,void 0,void 0,function(){var o,i;return $(this,function(a){switch(a.label){case 0:js.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 D?i:O.createNetworkError(r,i);case 4:return js.postProcess(this.cacheManager,e,o),[2,o]}})})},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var _t;(function(t){t.HOME_ACCOUNT_ID="home_account_id",t.UPN="UPN"})(_t||(_t={}));/*! @azure/msal-common v7.6.0 2022-10-10 */var Pd=function(){function t(e,r){this.config=zE(e),this.logger=new Nd(this.config.loggerOptions,PE,zm),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new jE(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[Gt.CONTENT_TYPE]=_.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case _t.HOME_ACCOUNT_ID:try{var n=io(e.credential);r[Gt.CCS_HEADER]="Oid:"+n.uid+"@"+n.utid}catch(o){this.logger.verbose("Could not parse home account ID for CCS Header: "+o)}break;case _t.UPN:r[Gt.CCS_HEADER]="UPN: "+e.credential;break}return r},t.prototype.executePostToTokenEndpoint=function(e,r,n,o){return z(this,void 0,void 0,function(){var i;return $(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 O.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var fn=function(){function t(){}return t.validateRedirectUri=function(e){if(N.isEmpty(e))throw se.createRedirectUriEmptyError()},t.validatePrompt=function(e){var r=[];for(var n in Ye)r.push(Ye[n]);if(r.indexOf(e)<0)throw se.createInvalidPromptError(e)},t.validateClaims=function(e){try{JSON.parse(e)}catch{throw se.createInvalidClaimsRequestError()}},t.validateCodeChallengeParams=function(e,r){if(N.isEmpty(e)||N.isEmpty(r))throw se.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(r)},t.validateCodeChallengeMethod=function(e){if([af.PLAIN,af.S256].indexOf(e)<0)throw se.createInvalidCodeChallengeMethodError()},t.sanitizeEQParams=function(e,r){return e?(r.forEach(function(n,o){e[o]&&delete e[o]}),e):{}},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var ao=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||Ls.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?_c(e||[],sa):e||[],o=new tt(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){fn.validateRedirectUri(e),this.parameters.set(q.REDIRECT_URI,encodeURIComponent(e))},t.prototype.addPostLogoutRedirectUri=function(e){fn.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(wi.DOMAIN_HINT,encodeURIComponent(e))},t.prototype.addLoginHint=function(e){this.parameters.set(wi.LOGIN_HINT,encodeURIComponent(e))},t.prototype.addCcsUpn=function(e){this.parameters.set(Gt.CCS_HEADER,encodeURIComponent("UPN:"+e))},t.prototype.addCcsOid=function(e){this.parameters.set(Gt.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},t.prototype.addSid=function(e){this.parameters.set(wi.SID,encodeURIComponent(e))},t.prototype.addClaims=function(e,r){var n=this.addClientCapabilitiesToClaims(e,r);fn.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){fn.validatePrompt(e),this.parameters.set(""+q.PROMPT,encodeURIComponent(e))},t.prototype.addState=function(e){N.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(fn.validateCodeChallengeParams(e,r),e&&r)this.parameters.set(q.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(q.CODE_CHALLENGE_METHOD,encodeURIComponent(r));else throw se.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){N.isEmpty(e)||this.parameters.set(q.CLIENT_ASSERTION,encodeURIComponent(e))},t.prototype.addClientAssertionType=function(e){N.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(NE,"1")},t.prototype.addExtraQueryParameters=function(e){var r=this;fn.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 se.createInvalidClaimsRequestError()}return r&&r.length>0&&(n.hasOwnProperty(no.ACCESS_TOKEN)||(n[no.ACCESS_TOKEN]={}),n[no.ACCESS_TOKEN][no.XMS_CC]={values:r}),JSON.stringify(n)},t.prototype.addUsername=function(e){this.parameters.set(Fs.username,encodeURIComponent(e))},t.prototype.addPassword=function(e){this.parameters.set(Fs.password,encodeURIComponent(e))},t.prototype.addPopToken=function(e){N.isEmpty(e)||(this.parameters.set(q.TOKEN_TYPE,Z.POP),this.parameters.set(q.REQ_CNF,encodeURIComponent(e)))},t.prototype.addSshJwk=function(e){N.isEmpty(e)||(this.parameters.set(q.TOKEN_TYPE,Z.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,Si.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 v7.6.0 2022-10-10 */var Yi=function(t){pt(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=G.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===G.ID_TOKEN:!1},e}(Wi);/*! @azure/msal-common v7.6.0 2022-10-10 */var Ot=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 v7.6.0 2022-10-10 */var Qi=function(t){pt(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,d,h,p,v,y,I){var g,f,m=new e;m.homeAccountId=r,m.credentialType=G.ACCESS_TOKEN,m.secret=o;var E=Ot.nowSeconds();if(m.cachedAt=E.toString(),m.expiresOn=c.toString(),m.extendedExpiresOn=l.toString(),d&&(m.refreshOn=d.toString()),m.environment=n,m.clientId=i,m.realm=a,m.target=s,m.userAssertionHash=p,m.tokenType=N.isEmpty(h)?Z.BEARER:h,y&&(m.requestedClaims=y,m.requestedClaimsHash=I),((g=m.tokenType)===null||g===void 0?void 0:g.toLowerCase())!==Z.BEARER.toLowerCase())switch(m.credentialType=G.ACCESS_TOKEN_WITH_AUTH_SCHEME,m.tokenType){case Z.POP:var b=ir.extractTokenClaims(o,u);if(!(!((f=b==null?void 0:b.cnf)===null||f===void 0)&&f.kid))throw O.createTokenClaimsRequiredError();m.keyId=b.cnf.kid;break;case Z.SSH:m.keyId=v}return m},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===G.ACCESS_TOKEN||r.credentialType===G.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1},e}(Wi);/*! @azure/msal-common v7.6.0 2022-10-10 */var qs=function(t){pt(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=G.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===G.REFRESH_TOKEN:!1},e}(Wi);/*! @azure/msal-common v7.6.0 2022-10-10 */var cf=["interaction_required","consent_required","login_required"],qE=["message_only","additional_action","basic_action","user_password_expired","consent_required"],ii={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."}},qt=function(t){pt(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&&cf.indexOf(r)>-1,a=!!o&&qE.indexOf(o)>-1,s=!!n&&cf.some(function(c){return n.indexOf(c)>-1});return i||s||a},e.createNoTokensFoundError=function(){return new e(ii.noTokensFoundError.code,ii.noTokensFoundError.desc)},e.createNativeAccountUnavailableError=function(){return new e(ii.native_account_unavailable.code,ii.native_account_unavailable.desc)},e}(D);/*! @azure/msal-common v7.6.0 2022-10-10 */var rs=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 v7.6.0 2022-10-10 */var Er=function(){function t(){}return t.setRequestState=function(e,r,n){var o=t.generateLibraryState(e,n);return N.isEmpty(r)?o:""+o+_.RESOURCE_DELIM+r},t.generateLibraryState=function(e,r){if(!e)throw O.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 O.createNoCryptoObjectError("parseRequestState");if(N.isEmpty(r))throw O.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:N.isEmpty(i)?_.EMPTY_STRING:i,libraryState:s}}catch(c){throw O.createInvalidStateError(r,c)}},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Q=function(){function t(e){if(this._urlString=e,N.isEmpty(this._urlString))throw se.createUrlEmptyError();N.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 N.endsWith(r,"?")?r=r.slice(0,-1):N.endsWith(r,"?/")&&(r=r.slice(0,-2)),N.endsWith(r,"/")||(r+="/"),r}return e},t.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(r){throw se.createUrlParseError(r)}if(!e.HostNameAndPort||!e.PathSegments)throw se.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw se.createInsecureAuthorityUriError(this.urlString)},t.appendQueryString=function(e,r){return N.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]===Us.COMMON||n[0]===Us.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 se.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,!N.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 se.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(N.isEmpty(e))return{};var r=t.parseHash(e),n=N.queryStringToObject(N.isEmpty(r)?e:r);if(!n)throw O.createHashNotDeserializedError(JSON.stringify(n));return n},t.getDeserializedQueryString=function(e){if(N.isEmpty(e))return{};var r=t.parseQueryString(e),n=N.queryStringToObject(N.isEmpty(r)?e:r);if(!n)throw O.createHashNotDeserializedError(JSON.stringify(n));return n},t.hashContainsKnownProperties=function(e){if(N.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 v7.6.0 2022-10-10 */var yu;(function(t){t.SW="sw",t.UHW="uhw"})(yu||(yu={}));var Ro=function(){function t(e){this.cryptoUtils=e}return t.prototype.generateCnf=function(e){return z(this,void 0,void 0,function(){var r,n,o;return $(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 z(this,void 0,void 0,function(){var r;return $(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:yu.SW}]}})})},t.prototype.signPopToken=function(e,r,n){return z(this,void 0,void 0,function(){return $(this,function(o){return[2,this.signPayload(e,r,n)]})})},t.prototype.signPayload=function(e,r,n,o){return z(this,void 0,void 0,function(){var i,a,s,c,l,u;return $(this,function(d){switch(d.label){case 0:return i=n.resourceRequestMethod,a=n.resourceRequestUri,s=n.shrClaims,c=n.shrNonce,l=a?new Q(a):void 0,u=l==null?void 0:l.getUrlComponents(),[4,this.cryptoUtils.signJwt(ve({at:e,ts:Ot.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,d.sent()]}})})},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var _u=function(){function t(){}return t.prototype.generateAppMetadataKey=function(){return t.generateAppMetadataCacheKey(this.environment,this.clientId)},t.generateAppMetadataCacheKey=function(e,r){var n=[mu,e,r];return n.join(wt.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(mu)===0&&r.hasOwnProperty("clientId")&&r.hasOwnProperty("environment"):!1},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var BE=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 v7.6.0 2022-10-10 */var Bs=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?O.createStateNotFoundError("Cached State"):O.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(r))throw O.createStateMismatchError();if(e.error||e.error_description||e.suberror)throw qt.isInteractionRequiredError(e.error,e.error_description,e.suberror)?new qt(e.error||_.EMPTY_STRING,e.error_description,e.suberror):new Nn(e.error||_.EMPTY_STRING,e.error_description,e.suberror);e.client_info&&$s(e.client_info,n)},t.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(qt.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new qt(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 Nn(e.error,r,e.suberror)}},t.prototype.handleServerTokenResponse=function(e,r,n,o,i,a,s,c,l){return z(this,void 0,void 0,function(){var u,d,h,p,v,y,I;return $(this,function(g){switch(g.label){case 0:if(e.id_token){if(u=new ir(e.id_token||_.EMPTY_STRING,this.cryptoObj),i&&!N.isEmpty(i.nonce)&&u.claims.nonce!==i.nonce)throw O.createNonceMismatchError();if(o.maxAge||o.maxAge===0){if(d=u.claims.auth_time,!d)throw O.createAuthTimeNotFoundError();ir.checkMaxAge(d,o.maxAge)}}this.homeAccountIdentifier=He.generateHomeAccountId(e.client_info||_.EMPTY_STRING,r.authorityType,this.logger,this.cryptoObj,u),!!i&&!!i.state&&(h=Er.parseRequestState(this.cryptoObj,i.state)),e.key_id=e.key_id||o.sshKid||void 0,p=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"),v=new BE(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(v)]):[3,3];case 2:g.sent(),g.label=3;case 3:return s&&!c&&p.account&&(y=p.account.generateAccountKey(),I=this.cacheStorage.getAccount(y),!I)?(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,p,!1,o,u,h,void 0,l)]):[4,this.cacheStorage.saveCacheRecord(p)];case 4:return g.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&v?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(v)]):[3,7];case 6:g.sent(),g.label=7;case 7:return[7];case 8:return[2,t.generateAuthenticationResult(this.cryptoObj,r,p,!1,o,u,h,e.spa_code,l)]}})})},t.prototype.generateCacheRecord=function(e,r,n,o,i,a,s){var c=r.getPreferredCache();if(N.isEmpty(c))throw O.createInvalidCacheEnvironmentError();var l,u;!N.isEmpty(e.id_token)&&!!i&&(l=Yi.createIdTokenEntity(this.homeAccountIdentifier,c,e.id_token||_.EMPTY_STRING,this.clientId,i.claims.tid||_.EMPTY_STRING),u=this.generateAccountEntity(e,i,r,s));var d=null;if(!N.isEmpty(e.access_token)){var h=e.scope?tt.fromString(e.scope):new tt(o.scopes||[]),p=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,v=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,y=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,I=n+p,g=I+v,f=y&&y>0?n+y:void 0;d=Qi.createAccessTokenEntity(this.homeAccountIdentifier,c,e.access_token||_.EMPTY_STRING,this.clientId,i?i.claims.tid||_.EMPTY_STRING:r.tenant,h.printScopes(),I,g,this.cryptoObj,f,e.token_type,a,e.key_id,o.claims,o.requestedClaimsHash)}var m=null;N.isEmpty(e.refresh_token)||(m=qs.createRefreshTokenEntity(this.homeAccountIdentifier,c,e.refresh_token||_.EMPTY_STRING,this.clientId,e.foci,a));var E=null;return N.isEmpty(e.foci)||(E=_u.createAppMetadataEntity(this.clientId,c,e.foci)),new rs(u,l,d,m,E)},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===Rt.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),He.createGenericAccount(this.homeAccountIdentifier,r,n,a,s);if(N.isEmpty(e.client_info)&&n.protocolMode==="AAD")throw O.createClientInfoEmptyError();return e.client_info?He.createAccount(e.client_info,this.homeAccountIdentifier,r,n,a,s):He.createGenericAccount(this.homeAccountIdentifier,r,n,a,s)},t.generateAuthenticationResult=function(e,r,n,o,i,a,s,c,l){var u,d,h;return z(this,void 0,void 0,function(){var p,v,y,I,g,f,m,E,b,R,x;return $(this,function(P){switch(P.label){case 0:if(p=_.EMPTY_STRING,v=[],y=null,g=_.EMPTY_STRING,!n.accessToken)return[3,4];if(n.accessToken.tokenType!==Z.POP)return[3,2];if(f=new Ro(e),m=n.accessToken,E=m.secret,b=m.keyId,!b)throw O.createKeyIdMissingError();return[4,f.signPopToken(E,b,i)];case 1:return p=P.sent(),[3,3];case 2:p=n.accessToken.secret,P.label=3;case 3:v=tt.fromString(n.accessToken.target).asArray(),y=new Date(Number(n.accessToken.expiresOn)*1e3),I=new Date(Number(n.accessToken.extendedExpiresOn)*1e3),P.label=4;case 4:return n.appMetadata&&(g=n.appMetadata.familyId===Ds?Ds:_.EMPTY_STRING),R=(a==null?void 0:a.claims.oid)||(a==null?void 0:a.claims.sub)||_.EMPTY_STRING,x=(a==null?void 0:a.claims.tid)||_.EMPTY_STRING,[2,{authority:r.canonicalAuthority,uniqueId:R,tenantId:x,scopes:v,account:n.account?n.account.getAccountInfo():null,idToken:a?a.rawToken:_.EMPTY_STRING,idTokenClaims:a?a.claims:{},accessToken:p,fromCache:o,expiresOn:y,correlationId:i.correlationId,requestId:l||_.EMPTY_STRING,extExpiresOn:I,familyId:g,tokenType:((u=n.accessToken)===null||u===void 0?void 0:u.tokenType)||_.EMPTY_STRING,state:s?s.userRequestState:_.EMPTY_STRING,cloudGraphHostName:((d=n.account)===null||d===void 0?void 0:d.cloudGraphHostName)||_.EMPTY_STRING,msGraphHost:((h=n.account)===null||h===void 0?void 0:h.msGraphHost)||_.EMPTY_STRING,code:c,fromNativeBroker:!1}]}})})},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var jm=function(t){pt(e,t);function e(r){var n=t.call(this,r)||this;return n.includeRedirectUri=!0,n}return e.prototype.getAuthCodeUrl=function(r){return z(this,void 0,void 0,function(){var n;return $(this,function(o){switch(o.label){case 0:return[4,this.createAuthCodeUrlQueryString(r)];case 1:return n=o.sent(),[2,Q.appendQueryString(this.authority.authorizationEndpoint,n)]}})})},e.prototype.acquireToken=function(r,n){var o;return z(this,void 0,void 0,function(){var i,a,s,c;return $(this,function(l){switch(l.label){case 0:if(this.logger.info("in acquireToken call"),!r||N.isEmpty(r.code))throw O.createTokenRequestCannotBeMadeError();return i=Ot.nowSeconds(),[4,this.executeTokenRequest(this.authority,r)];case 1:return a=l.sent(),s=(o=a.headers)===null||o===void 0?void 0:o[Gt.X_MS_REQUEST_ID],c=new Bs(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 Bs(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),i=new Q(r),a=Q.getDeserializedHash(i.getHash());if(o.validateServerAuthorizationCodeResponse(a,n,this.cryptoUtils),!a.code)throw O.createNoAuthCodeInServerResponseError();return ve(ve({},a),{code:a.code})},e.prototype.getLogoutUri=function(r){if(!r)throw se.createEmptyLogoutRequestError();var n=this.createLogoutUrlQueryString(r);return Q.appendQueryString(this.authority.endSessionEndpoint,n)},e.prototype.executeTokenRequest=function(r,n){return z(this,void 0,void 0,function(){var o,i,a,s,c,l,u;return $(this,function(d){switch(d.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=d.sent(),a=this.createTokenQueryParameters(n),s=void 0,n.clientInfo)try{c=$s(n.clientInfo,this.cryptoUtils),s={credential:""+c.uid+wt.CLIENT_INFO_SEPARATOR+c.utid,type:_t.HOME_ACCOUNT_ID}}catch(h){this.logger.verbose("Could not parse client info for CCS Header: "+h)}return l=this.createTokenRequestHeaders(s||n.ccsCredential),u=N.isEmpty(a)?r.tokenEndpoint:r.tokenEndpoint+"?"+a,[2,this.executePostToTokenEndpoint(u,i,l,o)]}})})},e.prototype.createTokenQueryParameters=function(r){var n=new ao;return r.tokenQueryParameters&&n.addExtraQueryParameters(r.tokenQueryParameters),n.createQueryString()},e.prototype.createTokenRequestBody=function(r){return z(this,void 0,void 0,function(){var n,o,i,a,s,c,l,l,u;return $(this,function(d){switch(d.label){case 0:return n=new ao,n.addClientId(this.config.authOptions.clientId),this.includeRedirectUri?n.addRedirectUri(r.redirectUri):fn.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(Hs.AUTHORIZATION_CODE_GRANT),n.addClientInfo(),r.authenticationScheme!==Z.POP?[3,2]:(i=new Ro(this.cryptoUtils),[4,i.generateCnf(r)]);case 1:return a=d.sent(),n.addPopToken(a.reqCnfString),[3,3];case 2:if(r.authenticationScheme===Z.SSH)if(r.sshJwk)n.addSshJwk(r.sshJwk);else throw se.createMissingSshJwkError();d.label=3;case 3:if(s=r.correlationId||this.config.cryptoInterface.createNewGuid(),n.addCorrelationId(s),(!N.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=$s(r.clientInfo,this.cryptoUtils),c={credential:""+l.uid+wt.CLIENT_INFO_SEPARATOR+l.utid,type:_t.HOME_ACCOUNT_ID}}catch(h){this.logger.verbose("Could not parse client info for CCS Header: "+h)}else c=r.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&c)switch(c.type){case _t.HOME_ACCOUNT_ID:try{l=io(c.credential),n.addCcsOid(l)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case _t.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 z(this,void 0,void 0,function(){var n,o,i,a,s,c,c,c,l,u;return $(this,function(d){switch(d.label){case 0:if(n=new ao,n.addClientId(this.config.authOptions.clientId),o=_c(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!==Ye.SELECT_ACCOUNT)if(r.sid&&r.prompt===Ye.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=io(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===Ye.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),n.addSid(a);try{c=io(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=io(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),(!N.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!==Z.POP?[3,2]:(l=new Ro(this.cryptoUtils),[4,l.generateCnf(r)])):[3,2];case 1:u=d.sent(),n.addPopToken(u.reqCnfHash),d.label=2;case 2:return[2,n.createQueryString()]}})})},e.prototype.createLogoutUrlQueryString=function(r){var n=new ao;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}(Pd);/*! @azure/msal-common v7.6.0 2022-10-10 */var be;(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"})(be||(be={}));var so;(function(t){t[t.NotStarted=0]="NotStarted",t[t.InProgress=1]="InProgress",t[t.Completed=2]="Completed"})(so||(so={}));/*! @azure/msal-common v7.6.0 2022-10-10 */var qm=function(t){pt(e,t);function e(r,n){return t.call(this,r,n)||this}return e.prototype.acquireToken=function(r){var n,o;return z(this,void 0,void 0,function(){var i,a,s,c,l,u=this;return $(this,function(d){switch(d.label){case 0:return i=(n=this.performanceClient)===null||n===void 0?void 0:n.startMeasurement(be.RefreshTokenClientAcquireToken,r.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",r.correlationId),a=Ot.nowSeconds(),[4,this.executeTokenRequest(r,this.authority)];case 1:return s=d.sent(),c=(o=s.headers)===null||o===void 0?void 0:o[Gt.X_MS_REQUEST_ID],l=new Bs(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),l.validateTokenResponse(s.body),[2,l.handleServerTokenResponse(s.body,this.authority,a,r,void 0,void 0,!0,r.forceCache,c).then(function(h){var p;return i==null||i.endMeasurement({success:!0,refreshTokenSize:((p=s.body.refresh_token)===null||p===void 0?void 0:p.length)||0}),h}).catch(function(h){throw u.logger.verbose("Error in fetching refresh token",r.correlationId),i==null||i.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1,refreshTokenSize:void 0}),h})]}})})},e.prototype.acquireTokenByRefreshToken=function(r){return z(this,void 0,void 0,function(){var n,o,i;return $(this,function(a){if(!r)throw se.createEmptyTokenRequestError();if(!r.account)throw O.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 qt&&s.errorCode===ii.noTokensFoundError.code,i=s instanceof Nn&&s.errorCode===sf.INVALID_GRANT_ERROR&&s.subError===sf.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 z(this,void 0,void 0,function(){var i,a,s;return $(this,function(c){if(i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(be.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(),qt.createNoTokensFoundError();return i==null||i.endMeasurement({success:!0}),s=ve(ve({},r),{refreshToken:a.secret,authenticationScheme:r.authenticationScheme||Z.BEARER,ccsCredential:{credential:r.account.homeAccountId,type:_t.HOME_ACCOUNT_ID}}),[2,this.acquireToken(s)]})})},e.prototype.executeTokenRequest=function(r,n){var o;return z(this,void 0,void 0,function(){var i,a,s,c,l,u;return $(this,function(d){switch(d.label){case 0:return i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(be.RefreshTokenClientExecuteTokenRequest,r.correlationId),[4,this.createTokenRequestBody(r)];case 1:return a=d.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=Q.appendQueryString(n.tokenEndpoint,s),[2,this.executePostToTokenEndpoint(u,a,c,l).then(function(h){return i==null||i.endMeasurement({success:!0}),h}).catch(function(h){throw i==null||i.endMeasurement({success:!1}),h})]}})})},e.prototype.createTokenQueryParameters=function(r){var n=new ao;return r.tokenQueryParameters&&n.addExtraQueryParameters(r.tokenQueryParameters),n.createQueryString()},e.prototype.createTokenRequestBody=function(r){var n;return z(this,void 0,void 0,function(){var o,i,a,s,c,l,u;return $(this,function(d){switch(d.label){case 0:return o=r.correlationId,i=(n=this.performanceClient)===null||n===void 0?void 0:n.startMeasurement(be.BaseClientCreateTokenRequestHeaders,o),a=new ao,a.addClientId(this.config.authOptions.clientId),a.addScopes(r.scopes),a.addGrantType(Hs.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!==Z.POP?[3,2]:(c=new Ro(this.cryptoUtils),[4,c.generateCnf(r)]);case 1:return l=d.sent(),a.addPopToken(l.reqCnfString),[3,3];case 2:if(r.authenticationScheme===Z.SSH)if(r.sshJwk)a.addSshJwk(r.sshJwk);else throw i==null||i.endMeasurement({success:!1}),se.createMissingSshJwkError();d.label=3;case 3:if((!N.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 _t.HOME_ACCOUNT_ID:try{u=io(r.ccsCredential.credential),a.addCcsOid(u)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case _t.UPN:a.addCcsUpn(r.ccsCredential.credential);break}return i==null||i.endMeasurement({success:!0}),[2,a.createQueryString()]}})})},e}(Pd);/*! @azure/msal-common v7.6.0 2022-10-10 */var KE=function(t){pt(e,t);function e(r,n){return t.call(this,r,n)||this}return e.prototype.acquireToken=function(r){return z(this,void 0,void 0,function(){var n,o;return $(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 O&&n.errorCode===k.tokenRefreshRequired.code)return o=new qm(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 z(this,void 0,void 0,function(){var s,c;return $(this,function(l){switch(l.label){case 0:if(!r)throw se.createEmptyTokenRequestError();if(r.forceRefresh)throw(n=this.serverTelemetryManager)===null||n===void 0||n.setCacheOutcome(yn.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),O.createRefreshRequiredError();if(!r.account)throw O.createNoAccountInSilentRequestError();if(s=r.authority||this.authority.getPreferredCache(),c=this.cacheManager.readCacheRecord(r.account,this.config.authOptions.clientId,r,s),c.accessToken){if(Ot.wasClockTurnedBack(c.accessToken.cachedAt)||Ot.isTokenExpired(c.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw(i=this.serverTelemetryManager)===null||i===void 0||i.setCacheOutcome(yn.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),O.createRefreshRequiredError();if(c.accessToken.refreshOn&&Ot.isTokenExpired(c.accessToken.refreshOn,0))throw(a=this.serverTelemetryManager)===null||a===void 0||a.setCacheOutcome(yn.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),O.createRefreshRequiredError()}else throw(o=this.serverTelemetryManager)===null||o===void 0||o.setCacheOutcome(yn.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),O.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 z(this,void 0,void 0,function(){var o,i;return $(this,function(a){switch(a.label){case 0:if(r.idToken&&(o=new ir(r.idToken.secret,this.config.cryptoInterface)),n.maxAge||n.maxAge===0){if(i=o==null?void 0:o.claims.auth_time,!i)throw O.createAuthTimeNotFoundError();ir.checkMaxAge(i,n.maxAge)}return[4,Bs.generateAuthenticationResult(this.cryptoUtils,this.authority,r,!0,n,o)];case 1:return[2,a.sent()]}})})},e}(Pd);/*! @azure/msal-common v7.6.0 2022-10-10 */function GE(t){return t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v7.6.0 2022-10-10 */var Bm={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"]}]}}},lf=Bm.endpointMetadata,uf=Bm.instanceDiscoveryMetadata;/*! @azure/msal-common v7.6.0 2022-10-10 */var Ks;(function(t){t.AAD="AAD",t.OIDC="OIDC"})(Ks||(Ks={}));/*! @azure/msal-common v7.6.0 2022-10-10 */var Eu=function(){function t(){this.expiresAt=Ot.nowSeconds()+Ci.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=Ot.nowSeconds()+Ci.REFRESH_TIME_SECONDS},t.prototype.isExpired=function(){return this.expiresAt<=Ot.nowSeconds()},t.isAuthorityMetadataEntity=function(e,r){return r?e.indexOf(Ci.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 v7.6.0 2022-10-10 */function VE(t){return t.hasOwnProperty("tenant_discovery_endpoint")&&t.hasOwnProperty("metadata")}/*! @azure/msal-common v7.6.0 2022-10-10 */var WE=function(){function t(e){this.networkInterface=e}return t.prototype.detectRegion=function(e,r,n){return z(this,void 0,void 0,function(){var o,i,a,s,c;return $(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===oo.httpSuccess&&(o=a.body,r.region_source=Hr.IMDS),a.status!==oo.httpBadRequest?[3,5]:[4,this.getCurrentVersion(i)];case 3:return s=l.sent(),s?[4,this.getRegionFromIMDS(s,i)]:(r.region_source=Hr.FAILED_AUTO_DETECTION,[2,null]);case 4:c=l.sent(),c.status===oo.httpSuccess&&(o=c.body,r.region_source=Hr.IMDS),l.label=5;case 5:return[3,7];case 6:return l.sent(),r.region_source=Hr.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:r.region_source=Hr.ENVIRONMENT_VARIABLE,l.label=9;case 9:return o||(r.region_source=Hr.FAILED_AUTO_DETECTION),[2,o||null]}})})},t.prototype.getRegionFromIMDS=function(e,r){return z(this,void 0,void 0,function(){return $(this,function(n){return[2,this.networkInterface.sendGetRequestAsync(_.IMDS_ENDPOINT+"?api-version="+e+"&format=text",r,_.IMDS_TIMEOUT)]})})},t.prototype.getCurrentVersion=function(e){return z(this,void 0,void 0,function(){var r;return $(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===oo.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 v7.6.0 2022-10-10 */var Gs=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 WE(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 Rt.Adfs;case _.DSTS:return Rt.Dsts}return Rt.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 Q(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 O.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 O.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 O.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw O.createLogoutNotSupportedError();var e=this.replacePath(this.metadata.end_session_endpoint);return this.replaceTenant(e)}else throw O.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 O.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 O.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 Q(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===Rt.Adfs||this.authorityType===Rt.Dsts||this.protocolMode===Ks.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 z(this,void 0,void 0,function(){var e,r,n,o;return $(this,function(i){switch(i.label){case 0:return e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort),e||(e=new Eu,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!==kt.CACHE&&n!==kt.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 z(this,void 0,void 0,function(){var o,i;return $(this,function(a){switch(a.label){case 0:return o=this.getEndpointMetadataFromConfig(),o?(e.updateEndpointMetadata(o,!1),[2,kt.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,kt.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,kt.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,kt.HARDCODED_VALUES];case 7:throw O.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},t.prototype.isAuthoritySameType=function(e){var r=new Q(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 se.createInvalidAuthorityMetadataError()}return null},t.prototype.getEndpointMetadataFromNetwork=function(){return z(this,void 0,void 0,function(){var e,r;return $(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,GE(r.body)?r.body:null];case 3:return n.sent(),[2,null];case 4:return[2]}})})},t.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in lf?lf[this.canonicalAuthority]:null},t.prototype.updateMetadataWithRegionalInformation=function(e){var r,n,o,i,a;return z(this,void 0,void 0,function(){var s,c;return $(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?pn.AUTO_DETECTION_REQUESTED_SUCCESSFUL:pn.AUTO_DETECTION_REQUESTED_FAILED:s?this.regionDiscoveryMetadata.region_outcome=((a=this.authorityOptions.azureRegionConfiguration)===null||a===void 0?void 0:a.azureRegion)===s?pn.CONFIGURED_MATCHES_DETECTED:pn.CONFIGURED_NOT_DETECTED:this.regionDiscoveryMetadata.region_outcome=pn.CONFIGURED_NO_AUTO_DETECTION,c?(this.regionDiscoveryMetadata.region_used=c,[2,t.replaceWithRegionalInformation(e,c)]):[2,e]}})})},t.prototype.updateCloudDiscoveryMetadata=function(e){return z(this,void 0,void 0,function(){var r,n;return $(this,function(o){switch(o.label){case 0:return r=this.getCloudDiscoveryMetadataFromConfig(),r?(e.updateCloudDiscoveryMetadata(r,!1),[2,kt.CONFIG]):this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!e.isExpired()?[2,kt.CACHE]:(n=this.getCloudDiscoveryMetadataFromHarcodedValues(),[4,this.getCloudDiscoveryMetadataFromNetwork()]);case 1:if(r=o.sent(),r)return e.updateCloudDiscoveryMetadata(r,!0),[2,kt.NETWORK];if(n&&!this.options.skipAuthorityMetadataCache)return e.updateCloudDiscoveryMetadata(n,!1),[2,kt.HARDCODED_VALUES];throw se.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 se.createInvalidCloudDiscoveryMetadataError()}return this.isInKnownAuthorities()?t.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort):null},t.prototype.getCloudDiscoveryMetadataFromNetwork=function(){return z(this,void 0,void 0,function(){var e,r,n,o,i;return $(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=VE(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 uf?uf[this.canonicalAuthority]:null},t.prototype.isInKnownAuthorities=function(){var e=this,r=this.authorityOptions.knownAuthorities.filter(function(n){return Q.getDomainFromUrl(n).toLowerCase()===e.hostnameAndPort});return r.length>0},t.generateAuthority=function(e,r){var n;if(r&&r.azureCloudInstance!==Vi.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 O.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 Q(e);o.validateAsUri();var i=o.getUrlComponents(),a=r+"."+i.HostNameAndPort;this.isPublicCloudAuthority(i.HostNameAndPort)&&(a=r+"."+_.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var s=Q.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 v7.6.0 2022-10-10 */var Vs=function(){function t(){}return t.createDiscoveredInstance=function(e,r,n,o,i){return z(this,void 0,void 0,function(){var a,s;return $(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(),O.createEndpointDiscoveryIncompleteError(s);case 4:return[2]}})})},t.createInstance=function(e,r,n,o,i){if(N.isEmpty(e))throw se.createUrlEmptyError();return new Gs(e,r,n,o,i)},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Ws=function(){function t(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return t.isServerTelemetryEntity=function(e,r){var n=e.indexOf(xe.CACHE_KEY)===0,o=!0;return r&&(o=r.hasOwnProperty("failedRequests")&&r.hasOwnProperty("errors")&&r.hasOwnProperty("cacheHits")),n&&o},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var df=function(){function t(){}return t.isThrottlingEntity=function(e,r){var n=!1;e&&(n=e.indexOf(Si.THROTTLING_PREFIX)===0);var o=!0;return r&&(o=r.hasOwnProperty("throttleTime")),n&&o},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var YE={sendGetRequestAsync:function(){var t="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(D.createUnexpectedError(t))},sendPostRequestAsync:function(){var t="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(D.createUnexpectedError(t))}};/*! @azure/msal-common v7.6.0 2022-10-10 */var Ma={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."}},hf=function(t){pt(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(Ma.missingKidError.code,Ma.missingKidError.desc)},e.createMissingAlgError=function(){return new e(Ma.missingAlgError.code,Ma.missingAlgError.desc)},e}(D);/*! @azure/msal-common v7.6.0 2022-10-10 */var QE=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 hf.createMissingKidError();if(!e.alg)throw hf.createMissingAlgError();var r=new t({typ:e.typ||vu.Jwt,kid:e.kid,alg:e.alg});return JSON.stringify(r)},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var JE=function(){function t(e,r){this.cacheOutcome=yn.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=xe.CACHE_KEY+wt.CACHE_KEY_SEPARATOR+e.clientId}return t.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+xe.VALUE_SEPARATOR+this.cacheOutcome,r=[this.wrapperSKU,this.wrapperVer].join(xe.VALUE_SEPARATOR),n=this.getRegionDiscoveryFields(),o=[e,n].join(xe.VALUE_SEPARATOR);return[xe.SCHEMA_VERSION,o,r].join(xe.CATEGORY_SEPARATOR)},t.prototype.generateLastRequestHeaderValue=function(){var e=this.getLastRequests(),r=t.maxErrorsToSend(e),n=e.failedRequests.slice(0,2*r).join(xe.VALUE_SEPARATOR),o=e.errors.slice(0,r).join(xe.VALUE_SEPARATOR),i=e.errors.length,a=r<i?xe.OVERFLOW_TRUE:xe.OVERFLOW_FALSE,s=[i,a].join(xe.VALUE_SEPARATOR);return[xe.SCHEMA_VERSION,e.cacheHits,n,o,s].join(xe.CATEGORY_SEPARATOR)},t.prototype.cacheFailedRequest=function(e){var r=this.getLastRequests();r.errors.length>=xe.MAX_CACHED_ERRORS&&(r.failedRequests.shift(),r.failedRequests.shift(),r.errors.shift()),r.failedRequests.push(this.apiId,this.correlationId),N.isEmpty(e.subError)?N.isEmpty(e.errorCode)?!!e&&e.toString()?r.errors.push(e.toString()):r.errors.push(xe.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 Ws,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 Ws;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<xe.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 v7.6.0 2022-10-10 */var Km=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.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:so.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,appName:(o=this.applicationTelemetry)===null||o===void 0?void 0:o.appName,appVersion:(i=this.applicationTelemetry)===null||i===void 0?void 0:i.appVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:a};return this.cacheEventByCorrelationId(c),this.cacheMeasurement(c,s),{endMeasurement:function(l){var u=n.endMeasurement(ve(ve({},c),l));return u&&n.cacheEventByCorrelationId(u),u},flushMeasurement:function(){return n.flushMeasurements(c.name,c.correlationId)},discardMeasurement:function(){return n.discardMeasurements(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:so.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.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(u){if(u.name!==e&&u.status!==so.Completed){n.logger.trace("PerformanceClient: Incomplete submeasurement "+u.name+" found for "+e,r);var d=n.endMeasurement(u);d&&i.push(d)}i.push(u)});var a=i.sort(function(u,d){return u.startTimeMs-d.startTimeMs}),s=a.filter(function(u){return u.name===e&&u.status===so.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(u,d){if(d.name!==e){n.logger.trace("PerformanceClient: Complete submeasurement found for "+d.name,r);var h=d.name+"DurationMs";u[h]?n.logger.verbose("PerformanceClient: Submeasurement for "+e+" already exists for "+d.name+", ignoring",r):u[h]=d.durationMs,d.accessTokenSize&&(u.accessTokenSize=d.accessTokenSize),d.idTokenSize&&(u.idTokenSize=d.idTokenSize),d.refreshTokenSize&&(u.refreshTokenSize=d.refreshTokenSize)}return u},c);this.emitEvents([l],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 v7.6.0 2022-10-10 */var XE=function(){function t(){}return t.prototype.startMeasurement=function(){},t.prototype.endMeasurement=function(){},t.prototype.flushMeasurement=function(){return null},t}(),ZE=function(t){pt(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 XE},e}(Km);/*! @azure/msal-browser v2.30.0 2022-10-10 */var T={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."}},A=function(t){ze(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(T.pkceNotGenerated.code,T.pkceNotGenerated.desc+" Detail:"+r)},e.createCryptoNotAvailableError=function(r){return new e(T.cryptoDoesNotExist.code,T.cryptoDoesNotExist.desc+" Detail:"+r)},e.createHttpMethodNotImplementedError=function(r){return new e(T.httpMethodNotImplementedError.code,T.httpMethodNotImplementedError.desc+" Given Method: "+r)},e.createEmptyNavigationUriError=function(){return new e(T.emptyNavigateUriError.code,T.emptyNavigateUriError.desc)},e.createEmptyHashError=function(r){return new e(T.hashEmptyError.code,T.hashEmptyError.desc+" Given Url: "+r)},e.createHashDoesNotContainStateError=function(){return new e(T.hashDoesNotContainStateError.code,T.hashDoesNotContainStateError.desc)},e.createHashDoesNotContainKnownPropertiesError=function(){return new e(T.hashDoesNotContainKnownPropertiesError.code,T.hashDoesNotContainKnownPropertiesError.desc)},e.createUnableToParseStateError=function(){return new e(T.unableToParseStateError.code,T.unableToParseStateError.desc)},e.createStateInteractionTypeMismatchError=function(){return new e(T.stateInteractionTypeMismatchError.code,T.stateInteractionTypeMismatchError.desc)},e.createInteractionInProgressError=function(){return new e(T.interactionInProgress.code,T.interactionInProgress.desc)},e.createPopupWindowError=function(r){var n=T.popupWindowError.desc;return n=N.isEmpty(r)?n:n+" Details: "+r,new e(T.popupWindowError.code,n)},e.createEmptyWindowCreatedError=function(){return new e(T.emptyWindowError.code,T.emptyWindowError.desc)},e.createUserCancelledError=function(){return new e(T.userCancelledError.code,T.userCancelledError.desc)},e.createMonitorPopupTimeoutError=function(){return new e(T.monitorPopupTimeoutError.code,T.monitorPopupTimeoutError.desc)},e.createMonitorIframeTimeoutError=function(){return new e(T.monitorIframeTimeoutError.code,T.monitorIframeTimeoutError.desc)},e.createRedirectInIframeError=function(r){return new e(T.redirectInIframeError.code,T.redirectInIframeError.desc+" (window.parent !== window) => "+r)},e.createBlockReloadInHiddenIframeError=function(){return new e(T.blockTokenRequestsInHiddenIframeError.code,T.blockTokenRequestsInHiddenIframeError.desc)},e.createBlockAcquireTokenInPopupsError=function(){return new e(T.blockAcquireTokenInPopupsError.code,T.blockAcquireTokenInPopupsError.desc)},e.createIframeClosedPrematurelyError=function(){return new e(T.iframeClosedPrematurelyError.code,T.iframeClosedPrematurelyError.desc)},e.createSilentLogoutUnsupportedError=function(){return new e(T.silentLogoutUnsupportedError.code,T.silentLogoutUnsupportedError.desc)},e.createNoAccountError=function(){return new e(T.noAccountError.code,T.noAccountError.desc)},e.createSilentPromptValueError=function(r){return new e(T.silentPromptValueError.code,T.silentPromptValueError.desc+" Given value: "+r)},e.createUnableToParseTokenRequestCacheError=function(){return new e(T.unableToParseTokenRequestCacheError.code,T.unableToParseTokenRequestCacheError.desc)},e.createNoTokenRequestCacheError=function(){return new e(T.noTokenRequestCacheError.code,T.noTokenRequestCacheError.desc)},e.createAuthRequestNotSetError=function(){return new e(T.authRequestNotSet.code,T.authRequestNotSet.desc)},e.createNoCachedAuthorityError=function(){return new e(T.noCachedAuthorityError.code,T.noCachedAuthorityError.desc)},e.createInvalidCacheTypeError=function(){return new e(T.invalidCacheType.code,""+T.invalidCacheType.desc)},e.createNonBrowserEnvironmentError=function(){return new e(T.notInBrowserEnvironment.code,T.notInBrowserEnvironment.desc)},e.createDatabaseNotOpenError=function(){return new e(T.databaseNotOpen.code,T.databaseNotOpen.desc)},e.createNoNetworkConnectivityError=function(){return new e(T.noNetworkConnectivity.code,T.noNetworkConnectivity.desc)},e.createPostRequestFailedError=function(r,n){return new e(T.postRequestFailed.code,T.postRequestFailed.desc+" | Network client threw: "+r+" | Attempted to reach: "+n.split("?")[0])},e.createGetRequestFailedError=function(r,n){return new e(T.getRequestFailed.code,T.getRequestFailed.desc+" | Network client threw: "+r+" | Attempted to reach: "+n.split("?")[0])},e.createFailedToParseNetworkResponseError=function(r){return new e(T.failedToParseNetworkResponse.code,T.failedToParseNetworkResponse.desc+" | Attempted to reach: "+r.split("?")[0])},e.createUnableToLoadTokenError=function(r){return new e(T.unableToLoadTokenError.code,T.unableToLoadTokenError.desc+" | "+r)},e.createSigningKeyNotFoundInStorageError=function(r){return new e(T.signingKeyNotFoundInStorage.code,T.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+r)},e.createAuthCodeRequiredError=function(){return new e(T.authCodeRequired.code,T.authCodeRequired.desc)},e.createAuthCodeOrNativeAccountIdRequiredError=function(){return new e(T.authCodeOrNativeAccountRequired.code,T.authCodeOrNativeAccountRequired.desc)},e.createDatabaseUnavailableError=function(){return new e(T.databaseUnavailable.code,T.databaseUnavailable.desc)},e.createUnableToAcquireTokenFromNativePlatformError=function(){return new e(T.unableToAcquireTokenFromNativePlatform.code,T.unableToAcquireTokenFromNativePlatform.desc)},e.createNativeHandshakeTimeoutError=function(){return new e(T.nativeHandshakeTimeout.code,T.nativeHandshakeTimeout.desc)},e.createNativeExtensionNotInstalledError=function(){return new e(T.nativeExtensionNotInstalled.code,T.nativeExtensionNotInstalled.desc)},e.createNativeConnectionNotEstablishedError=function(){return new e(T.nativeConnectionNotEstablished.code,T.nativeConnectionNotEstablished.desc)},e.createNativeBrokerCalledBeforeInitialize=function(){return new e(T.nativeBrokerCalledBeforeInitialize.code,T.nativeBrokerCalledBeforeInitialize.desc)},e.createNativePromptParameterNotSupportedError=function(){return new e(T.nativePromptNotSupported.code,T.nativePromptNotSupported.desc)},e}(D);/*! @azure/msal-browser v2.30.0 2022-10-10 */var jt={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"},ai={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},vr;(function(t){t.HandshakeRequest="Handshake",t.HandshakeResponse="HandshakeResponse",t.GetToken="GetToken",t.Response="Response"})(vr||(vr={}));var Ge;(function(t){t.LocalStorage="localStorage",t.SessionStorage="sessionStorage",t.MemoryStorage="memoryStorage"})(Ge||(Ge={}));var Xt;(function(t){t.GET="GET",t.POST="POST"})(Xt||(Xt={}));var X;(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"})(X||(X={}));var co;(function(t){t.WRAPPER_SKU="wrapper.sku",t.WRAPPER_VER="wrapper.version"})(co||(co={}));var oe;(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"})(oe||(oe={}));var L;(function(t){t.Redirect="redirect",t.Popup="popup",t.Silent="silent",t.None="none"})(L||(L={}));var ff;(function(t){t.Startup="startup",t.Login="login",t.Logout="logout",t.AcquireToken="acquireToken",t.SsoSilent="ssoSilent",t.HandleRedirect="handleRedirect",t.None="none"})(ff||(ff={}));var pf={scopes:sa},No="jwk",gf;(function(t){t.React="@azure/msal-react",t.Angular="@azure/msal-angular"})(gf||(gf={}));var wu="msal.db",ew=1,tw=wu+".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.30.0 2022-10-10 */var it={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."}},Ys=function(t){ze(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(it.redirectUriNotSet.code,it.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(it.postLogoutUriNotSet.code,it.postLogoutUriNotSet.desc)},e.createStorageNotSupportedError=function(r){return new e(it.storageNotSupportedError.code,it.storageNotSupportedError.desc+" Given Location: "+r)},e.createRedirectCallbacksNotSetError=function(){return new e(it.noRedirectCallbacksSet.code,it.noRedirectCallbacksSet.desc)},e.createStubPcaInstanceCalledError=function(){return new e(it.stubPcaInstanceCalled.code,it.stubPcaInstanceCalled.desc)},e.createInMemoryRedirectUnavailableError=function(){return new e(it.inMemRedirectUnavailable.code,it.inMemRedirectUnavailable.desc)},e.createEntropyNotProvided=function(){return new e(it.entropyNotProvided.code,it.entropyNotProvided.desc)},e}(D);/*! @azure/msal-browser v2.30.0 2022-10-10 */var mf=function(){function t(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return t.prototype.validateWindowStorage=function(e){if(e!==Ge.LocalStorage&&e!==Ge.SessionStorage)throw Ys.createStorageNotSupportedError(e);var r=!!window[e];if(!r)throw Ys.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.30.0 2022-10-10 */var Cu=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.30.0 2022-10-10 */var Gm=function(){function t(){}return t.extractBrowserRequestState=function(e,r){if(N.isEmpty(r))return null;try{var n=Er.parseRequestState(e,r);return n.libraryState.meta}catch(o){throw O.createInvalidStateError(r,o)}},t.parseServerResponseFromHash=function(e){if(!e)return{};var r=new Q(e);return Q.getDeserializedHash(r.getHash())},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Su=function(t){ze(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 Cu,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 Ge.LocalStorage:case Ge.SessionStorage:try{return new mf(r)}catch(n){this.logger.verbose(n);break}}return this.cacheConfig.cacheLocation=Ge.MemoryStorage,new Cu},e.prototype.setupTemporaryCacheStorage=function(r){switch(r){case Ge.LocalStorage:case Ge.SessionStorage:try{return new mf(Ge.SessionStorage)}catch(n){return this.logger.verbose(n),this.internalStorage}case Ge.MemoryStorage:default:return this.internalStorage}},e.prototype.migrateCacheEntries=function(){var r=this,n=_.CACHE_PREFIX+"."+Te.ID_TOKEN,o=_.CACHE_PREFIX+"."+Te.CLIENT_INFO,i=_.CACHE_PREFIX+"."+Te.ERROR,a=_.CACHE_PREFIX+"."+Te.ERROR_DESC,s=this.browserStorage.getItem(n),c=this.browserStorage.getItem(o),l=this.browserStorage.getItem(i),u=this.browserStorage.getItem(a),d=[s,c,l,u],h=[Te.ID_TOKEN,Te.CLIENT_INFO,Te.ERROR,Te.ERROR_DESC];h.forEach(function(p,v){return r.migrateCacheEntry(p,d[v])})},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||!He.isAccountEntity(o)?null:Dt.toObject(new He,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||!Yi.isIdTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),Dt.toObject(new Yi,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||!Qi.isAccessTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),Dt.toObject(new Qi,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||!qs.isRefreshTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),Dt.toObject(new qs,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||!_u.isAppMetadataEntity(r,o)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),Dt.toObject(new _u,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||!Ws.isServerTelemetryEntity(r,o)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),Dt.toObject(new Ws,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&&Eu.isAuthorityMetadataEntity(r,o)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),Dt.toObject(new Eu,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(co.WRAPPER_SKU,r),this.internalStorage.setItem(co.WRAPPER_VER,n)},e.prototype.getWrapperMetadata=function(){var r=this.internalStorage.getItem(co.WRAPPER_SKU)||_.EMPTY_STRING,n=this.internalStorage.getItem(co.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(Te.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(Te.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(Te.ACTIVE_ACCOUNT_FILTERS),o=this.generateCacheKey(Te.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 O.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||!df.isThrottlingEntity(r,o)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),Dt.toObject(new df,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===Ge.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 Rd(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},e.prototype.clear=function(){return w(this,void 0,void 0,function(){var r=this;return C(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):N.startsWith(r,_.CACHE_PREFIX)||N.startsWith(r,Te.ADAL_ID_TOKEN)?r:_.CACHE_PREFIX+"."+this.clientId+"."+r},e.prototype.generateAuthorityKey=function(r){var n=Er.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(X.AUTHORITY+"."+n)},e.prototype.generateNonceKey=function(r){var n=Er.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(X.NONCE_IDTOKEN+"."+n)},e.prototype.generateStateKey=function(r){var n=Er.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(X.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:_t.HOME_ACCOUNT_ID};this.setTemporaryCache(X.CCS_CREDENTIAL,JSON.stringify(u),!0)}else if(!N.isEmpty(i)){var u={credential:i,type:_t.UPN};this.setTemporaryCache(X.CCS_CREDENTIAL,JSON.stringify(u),!0)}},e.prototype.resetRequestCache=function(r){var n=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),N.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(X.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(X.ORIGIN_URI)),this.removeItem(this.generateCacheKey(X.URL_HASH)),this.removeItem(this.generateCacheKey(X.CORRELATION_ID)),this.removeItem(this.generateCacheKey(X.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(X.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(X.REQUEST_STATE)!==-1){var i=n.temporaryCacheStorage.getItem(o);if(!!i){var a=Gm.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(X.REQUEST_PARAMS,o,!0)},e.prototype.getCachedRequest=function(r,n){this.logger.trace("BrowserCacheManager.getCachedRequest called");var o=this.getTemporaryCache(X.REQUEST_PARAMS,!0);if(!o)throw A.createNoTokenRequestCacheError();var i=this.validateAndParseJson(n.base64Decode(o));if(!i)throw A.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(X.REQUEST_PARAMS)),N.isEmpty(i.authority)){var a=this.generateAuthorityKey(r),s=this.getTemporaryCache(a);if(!s)throw A.createNoCachedAuthorityError();i.authority=s}return i},e.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var r=this.getTemporaryCache(X.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+"."+X.INTERACTION_STATUS_KEY;return this.getTemporaryCache(r,!1)},e.prototype.setInteractionInProgress=function(r){var n=_.CACHE_PREFIX+"."+X.INTERACTION_STATUS_KEY;if(r){if(this.getInteractionInProgress())throw A.createInteractionInProgressError();this.setTemporaryCache(n,this.clientId,!1)}else!r&&this.getInteractionInProgress()===this.clientId&&this.removeItem(n)},e.prototype.getLegacyLoginHint=function(){var r=this.getTemporaryCache(Te.ADAL_ID_TOKEN);r&&(this.browserStorage.removeItem(Te.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var n=this.getTemporaryCache(Te.ID_TOKEN,!0);n&&(this.removeItem(this.generateCacheKey(Te.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var o=n||r;if(o){var i=new ir(o,this.cryptoImpl);if(i.claims&&i.claims.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),i.claims.preferred_username;if(i.claims&&i.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),i.claims.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null},e.prototype.updateCredentialCacheKey=function(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}(Dt),rw=function(t,e){var r={cacheLocation:Ge.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1};return new Su(t,r,zs,e)};/*! @azure/msal-browser v2.30.0 2022-10-10 */var rl="@azure/msal-browser",Ti="2.30.0";/*! @azure/msal-browser v2.30.0 2022-10-10 */var nw=function(){function t(){}return t.prototype.sendGetRequestAsync=function(e,r){return w(this,void 0,void 0,function(){var n,o,i;return C(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,fetch(e,{method:Xt.GET,headers:this.getFetchHeaders(r)})];case 1:return n=a.sent(),[3,3];case 2:throw o=a.sent(),window.navigator.onLine?A.createGetRequestFailedError(o,e):A.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(),A.createFailedToParseNetworkResponseError(e);case 6:return[2]}})})},t.prototype.sendPostRequestAsync=function(e,r){return w(this,void 0,void 0,function(){var n,o,i,a;return C(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:Xt.POST,headers:this.getFetchHeaders(r),body:n})];case 2:return o=s.sent(),[3,4];case 3:throw i=s.sent(),window.navigator.onLine?A.createPostRequestFailedError(i,e):A.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(),A.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.30.0 2022-10-10 */var ow=function(){function t(){}return t.prototype.sendGetRequestAsync=function(e,r){return w(this,void 0,void 0,function(){return C(this,function(n){return[2,this.sendRequestAsync(e,Xt.GET,r)]})})},t.prototype.sendPostRequestAsync=function(e,r){return w(this,void 0,void 0,function(){return C(this,function(n){return[2,this.sendRequestAsync(e,Xt.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===Xt.POST?a(A.createPostRequestFailedError("Failed with status "+s.status,e)):a(A.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(A.createFailedToParseNetworkResponseError(e))}},s.onerror=function(){window.navigator.onLine?r===Xt.POST?a(A.createPostRequestFailedError("Failed with status "+s.status,e)):a(A.createGetRequestFailedError("Failed with status "+s.status,e)):a(A.createNoNetworkConnectivityError())},r===Xt.POST&&n&&n.body)s.send(n.body);else if(r===Xt.GET)s.send();else throw A.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.30.0 2022-10-10 */var ye=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(jt.POPUP_NAME_PREFIX+".")===0},t.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},t.getHomepage=function(){var e=new Q(window.location.href),r=e.getUrlComponents();return r.Protocol+"//"+r.HostNameAndPort+"/"},t.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new nw:new ow},t.blockReloadInHiddenIframes=function(){var e=Q.hashContainsKnownProperties(window.location.hash);if(e&&t.isInIframe())throw A.createBlockReloadInHiddenIframeError()},t.blockRedirectInIframe=function(e,r){var n=t.isInIframe();if(e===L.Redirect&&n&&!r)throw A.createRedirectInIframeError(n)},t.blockAcquireTokenInPopups=function(){if(t.isInPopup())throw A.createBlockAcquireTokenInPopupsError()},t.blockNonBrowserEnvironment=function(e){if(!e)throw A.createNonBrowserEnvironmentError()},t.blockNativeBrokerCalledBeforeInitialized=function(e,r){if(e&&!r)throw A.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.30.0 2022-10-10 */var Vm=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(jt.MSAL_SKU,Ti,this.correlationId),this.performanceClient=s}return t.prototype.clearCacheOnLogout=function(e){return w(this,void 0,void 0,function(){return C(this,function(r){switch(r.label){case 0:if(!e)return[3,5];He.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(He.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 w(this,void 0,void 0,function(){var r,n,o,i;return C(this,function(a){switch(a.label){case 0:if(this.logger.verbose("Initializing BaseAuthRequest"),r=e.authority||this.config.auth.authority,n=Rd(e&&e.scopes||[]),o=H(H({},e),{correlationId:this.correlationId,authority:r,scopes:n}),!o.authenticationScheme)o.authenticationScheme=Z.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(o.authenticationScheme===Z.SSH){if(!e.sshJwk)throw se.createMissingSshJwkError();if(!e.sshKid)throw se.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+o.authenticationScheme+'" as configured in Auth request')}return e.claims&&!N.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||ye.getCurrentUri();return Q.getAbsoluteUrl(r,ye.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 JE(n,this.browserStorage)},t.prototype.getDiscoveredAuthority=function(e){return w(this,void 0,void 0,function(){var r;return C(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,Vs.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,Vs.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,r)];case 3:return[2,n.sent()]}})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Do=function(t){ze(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.initializeAuthorizationCodeRequest=function(r){return w(this,void 0,void 0,function(){var n,o;return C(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=H(H({},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=H({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=Q.getAbsoluteUrl(r.postLogoutRedirectUri,ye.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=Q.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,ye.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",n.correlationId),n.postLogoutRedirectUri=Q.getAbsoluteUrl(ye.getCurrentUri(),ye.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 w(this,void 0,void 0,function(){var i;return C(this,function(a){switch(a.label){case 0:return[4,this.getClientConfiguration(r,n,o)];case 1:return i=a.sent(),[2,new jm(i)]}})})},e.prototype.getClientConfiguration=function(r,n,o){return w(this,void 0,void 0,function(){var i;return C(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:jt.MSAL_SKU,version:Ti,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 A.createHashDoesNotContainStateError();var i=Gm.extractBrowserRequestState(this.browserCrypto,r.state);if(!i)throw A.createUnableToParseStateError();if(i.interactionType!==n)throw A.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",o),r.state},e.prototype.getDiscoveredAuthority=function(r,n){return w(this,void 0,void 0,function(){var o,i,a,s;return C(this,function(c){switch(c.label){case 0:return this.logger.verbose("getDiscoveredAuthority called",this.correlationId),o=this.performanceClient.startMeasurement(be.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=Gs.generateAuthority(a,n||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),[4,Vs.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 w(this,void 0,void 0,function(){var o,i,a,s,c,l,u;return C(this,function(d){switch(d.label){case 0:return this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),o=this.getRedirectUri(r.redirectUri),i={interactionType:n},a=Er.setRequestState(this.browserCrypto,r&&r.state||_.EMPTY_STRING,i),c=[{}],[4,this.initializeBaseRequest(r)];case 1:return s=H.apply(void 0,[H.apply(void 0,c.concat([d.sent()])),{redirectUri:o,state:a,nonce:r.nonce||this.browserCrypto.createNewGuid(),responseMode:Ls.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),N.isEmpty(s.loginHint)&&!l&&(u=this.browserStorage.getLegacyLoginHint(),u&&(s.loginHint=u)),[2,s]}})})},e}(Vm);/*! @azure/msal-browser v2.30.0 2022-10-10 */var Od=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 w(this,void 0,void 0,function(){var i,a,s;return C(this,function(c){if(this.logger.verbose("InteractionHandler.handleCodeResponse called"),N.isEmpty(e))throw A.createEmptyHashError(e);if(i=this.browserStorage.generateStateKey(r),a=this.browserStorage.getTemporaryCache(i),!a)throw O.createStateNotFoundError("Cached State");try{s=this.authModule.handleFragmentResponse(e,a)}catch(l){throw l instanceof Nn&&l.subError===T.userCancelledError.code?A.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),w(this,void 0,void 0,function(){var a,s,c,l,u,d;return C(this,function(h){switch(h.label){case 0:if(this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),a=this.browserStorage.generateStateKey(r),s=this.browserStorage.getTemporaryCache(a),!s)throw O.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:h.sent(),h.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 d=h.sent(),this.browserStorage.cleanRequestByState(r),[2,d]}})})},t.prototype.updateTokenEndpointAuthority=function(e,r,n){return w(this,void 0,void 0,function(){var o,i;return C(this,function(a){switch(a.label){case 0:return o="https://"+e+"/"+r.tenant+"/",[4,Vs.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(X.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.30.0 2022-10-10 */var vf=function(t){ze(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 w(this,void 0,void 0,function(){var o,i;return C(this,function(a){switch(a.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),N.isEmpty(r)?[3,7]:(n.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(X.ORIGIN_URI,n.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(X.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+r),o={apiId:oe.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"),A.createEmptyNavigationUriError();case 8:return[2]}})})},e.prototype.handleCodeResponseFromHash=function(r,n,o,i){return w(this,void 0,void 0,function(){var a,s,c,l,u,d,h;return C(this,function(p){switch(p.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),N.isEmpty(r))throw A.createEmptyHashError(r);if(this.browserStorage.setInteractionInProgress(!1),a=this.browserStorage.generateStateKey(n),s=this.browserStorage.getTemporaryCache(a),!s)throw O.createStateNotFoundError("Cached State");try{c=this.authModule.handleFragmentResponse(r,s)}catch(v){throw v instanceof Nn&&v.subError===T.userCancelledError.code?A.createUserCancelledError():v}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:p.sent(),p.label=2;case 2:return c.nonce=u||void 0,c.state=s,c.client_info?this.authCodeRequest.clientInfo=c.client_info:(d=this.checkCcsCredentials(),d&&(this.authCodeRequest.ccsCredential=d)),[4,this.authModule.acquireToken(this.authCodeRequest,c)];case 3:return h=p.sent(),this.browserStorage.cleanRequestByState(n),[2,h]}})})},e}(Od);/*! @azure/msal-browser v2.30.0 2022-10-10 */var F;(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"})(F||(F={}));/*! @azure/msal-browser v2.30.0 2022-10-10 */var Dr;(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"})(Dr||(Dr={}));var Qo={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){ze(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===Dr.PERSISTENT_ERROR||this.ext.status===Dr.DISABLED))return!0;switch(this.errorCode){case Qo.extensionError.code:return!0;default:return!1}},e.createError=function(r,n,o){if(o&&o.status)switch(o.status){case Dr.ACCOUNT_UNAVAILABLE:return qt.createNativeAccountUnavailableError();case Dr.USER_INTERACTION_REQUIRED:return new qt(r,n);case Dr.USER_CANCEL:return A.createUserCancelledError();case Dr.NO_NETWORK:return A.createNoNetworkConnectivityError()}return new e(r,n,o)},e.createUserSwitchError=function(){return new e(Qo.userSwitch.code,Qo.userSwitch.desc)},e.createTokensNotFoundInCacheError=function(){return new e(Qo.tokensNotFoundInCache.code,Qo.tokensNotFoundInCache.desc)},e}(D);/*! @azure/msal-browser v2.30.0 2022-10-10 */var Wm=function(t){ze(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.acquireToken=function(r){return w(this,void 0,void 0,function(){var n,o,i,a,s;return C(this,function(c){switch(c.label){case 0:return n=this.performanceClient.startMeasurement(be.SilentCacheClientAcquireToken,r.correlationId),o=this.initializeServerTelemetryManager(oe.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 A&&s.errorCode===T.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 D&&s.errorCode||void 0,subErrorCode:s instanceof D&&s.subError||void 0,success:!1}),s;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(A.createSilentLogoutUnsupportedError())},e.prototype.createSilentFlowClient=function(r,n,o){return w(this,void 0,void 0,function(){var i;return C(this,function(a){switch(a.label){case 0:return[4,this.getClientConfiguration(r,n,o)];case 1:return i=a.sent(),[2,new KE(i,this.performanceClient)]}})})},e.prototype.initializeSilentRequest=function(r,n){return w(this,void 0,void 0,function(){var o;return C(this,function(i){switch(i.label){case 0:return o=[H({},r)],[4,this.initializeBaseRequest(r)];case 1:return[2,H.apply(void 0,[H.apply(void 0,o.concat([i.sent()])),{account:n,forceRefresh:r.forceRefresh||!1}])]}})})},e}(Do);/*! @azure/msal-browser v2.30.0 2022-10-10 */var vo=function(t){ze(e,t);function e(r,n,o,i,a,s,c,l,u,d,h,p){var v=t.call(this,r,n,o,i,a,s,l,u,p)||this;return v.apiId=c,v.accountId=d,v.nativeMessageHandler=u,v.nativeStorageManager=h,v.silentCacheClient=new Wm(r,v.nativeStorageManager,o,i,a,s,l,u,p),v}return e.prototype.acquireToken=function(r){return w(this,void 0,void 0,function(){var n,o,i,a,s,c,l;return C(this,function(u){switch(u.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),n=this.performanceClient.startMeasurement(be.NativeInteractionClientAcquireToken,r.correlationId),o=Ot.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:!0,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:vr.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(d){return n.endMeasurement({success:!0,isNativeBroker:!0,requestId:d.requestId}),d}).catch(function(d){throw n.endMeasurement({success:!1,errorCode:d.errorCode,subErrorCode:d.subError,isNativeBroker:!0}),d})]}})})},e.prototype.createSilentCacheRequest=function(r,n){return{authority:r.authority,correlationId:this.correlationId,scopes:tt.fromString(r.scope).asArray(),account:n,forceRefresh:!1}},e.prototype.acquireTokensFromCache=function(r,n){return w(this,void 0,void 0,function(){var o,i,a,s,c;return C(this,function(l){switch(l.label){case 0:if(o=this.browserStorage.readAccountFromCacheWithNativeAccountId(r),!o)throw O.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 w(this,void 0,void 0,function(){var n,o,i,a,s,c;return C(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:vr.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(X.NATIVE_REQUEST,JSON.stringify(n),!0),s={apiId:oe.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 w(this,void 0,void 0,function(){var r,n,o,i,a,s;return C(this,function(c){switch(c.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];this.browserStorage.removeItem(this.browserStorage.generateCacheKey(X.NATIVE_REQUEST)),n={method:vr.GetToken,request:r},o=Ot.nowSeconds(),c.label=1;case 1:return c.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(n)];case 2:return i=c.sent(),this.validateNativeResponse(i),a=this.handleNativeResponse(i,r,o),this.browserStorage.setInteractionInProgress(!1),[2,a];case 3:throw s=c.sent(),this.browserStorage.setInteractionInProgress(!1),s;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 w(this,void 0,void 0,function(){var i,a,s,c,l,u,d,h,p,v,y,I,g,f,m,E,b,R,x,P,he=this;return C(this,function(K){switch(K.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),r.account.id!==n.accountId)throw er.createUserSwitchError();return i=new ir(r.id_token||_.EMPTY_STRING,this.browserCrypto),[4,this.getDiscoveredAuthority(n.authority)];case 1:switch(a=K.sent(),s=a.getPreferredCache(),c=He.generateHomeAccountId(r.client_info||_.EMPTY_STRING,Rt.Default,this.logger,this.browserCrypto,i),l=He.createAccount(r.client_info,c,i,void 0,void 0,void 0,s,r.account.id),this.browserStorage.setAccount(l),u=r.scope?tt.fromString(r.scope):tt.fromString(n.scope),d=r.account.properties||{},h=d.UID||i.claims.oid||i.claims.sub||_.EMPTY_STRING,p=d.TenantId||i.claims.tid||_.EMPTY_STRING,y=Z.BEARER,I=n.tokenType,I){case Z.POP:return[3,2]}return[3,4];case 2:if(y=Z.POP,r.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),v=r.shr,[3,5];if(g=new Ro(this.browserCrypto),f={resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,shrNonce:n.shrNonce},!n.keyId)throw O.createKeyIdMissingError();return[4,g.signPopToken(r.access_token,n.keyId,f)];case 3:return v=K.sent(),[3,5];case 4:v=r.access_token,K.label=5;case 5:return m=this.getMATSFromResponse(r),E={authority:a.canonicalAuthority,uniqueId:h,tenantId:p,scopes:u.asArray(),account:l.getAccountInfo(),idToken:r.id_token,idTokenClaims:i.claims,accessToken:v,fromCache:m?this.isResponseFromCache(m):!1,expiresOn:new Date(Number(o+r.expires_in)*1e3),tokenType:y,correlationId:this.correlationId,state:r.state,fromNativeBroker:!0},b=Yi.createIdTokenEntity(c,n.authority,r.id_token||_.EMPTY_STRING,n.clientId,i.claims.tid||_.EMPTY_STRING),this.nativeStorageManager.setIdTokenCredential(b),R=y===Z.POP?_.SHR_NONCE_VALIDITY:(typeof r.expires_in=="string"?parseInt(r.expires_in,10):r.expires_in)||0,x=o+R,P=Qi.createAccessTokenEntity(c,n.authority,v,n.clientId,p,u.printScopes(),x,0,this.browserCrypto),this.nativeStorageManager.setAccessTokenCredential(P),this.browserStorage.removeAccountContext(l).catch(function(gt){he.logger.error("Error occurred while removing account context from browser storage. "+gt)}),[2,E]}})})},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 w(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,d,h,p=this;return C(this,function(v){switch(v.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),n=r.authority||this.config.auth.authority,o=new Q(n),o.validateAsUri(),i=r.scopes,a=AE(r,["scopes"]),s=new tt(i||[]),s.appendScopes(sa),c=function(){switch(p.apiId){case oe.ssoSilent:case oe.acquireTokenSilent_silentFlow:return p.logger.trace("initializeNativeRequest: silent request sets prompt to none"),Ye.NONE}if(!r.prompt){p.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(r.prompt){case Ye.NONE:case Ye.CONSENT:case Ye.LOGIN:return p.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),r.prompt;default:throw p.logger.trace("initializeNativeRequest: prompt = "+r.prompt+" is not compatible with native flow"),A.createNativePromptParameterNotSupportedError()}},l=H(H({},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:H(H(H({},r.extraQueryParameters),r.tokenQueryParameters),{telemetry:ai.MATS_TELEMETRY}),extendedExpiryToken:!1}),r.authenticationScheme!==Z.POP?[3,2]:(u={resourceRequestUri:r.resourceRequestUri,resourceRequestMethod:r.resourceRequestMethod,shrClaims:r.shrClaims,shrNonce:r.shrNonce},d=new Ro(this.browserCrypto),[4,d.generateCnf(u)]);case 1:h=v.sent(),l.reqCnf=h.reqCnfHash,l.keyId=h.kid,v.label=2;case 2:return[2,l]}})})},e}(Vm);/*! @azure/msal-browser v2.30.0 2022-10-10 */var Cn=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 w(this,void 0,void 0,function(){var r,n=this;return C(this,function(o){return this.logger.trace("NativeMessageHandler - sendMessage called."),r={channel:ai.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 w(this,void 0,void 0,function(){var n,o;return C(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,ai.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 w(this,void 0,void 0,function(){var e,r=this;return C(this,function(n){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:ai.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:vr.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(A.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!==ai.CHANNEL_ID)&&!(r.extensionId&&r.extensionId!==this.extensionId)&&r.body.method===vr.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(A.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===vr.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 D.createUnexpectedError("Event does not contain result.");this.resolvers.delete(r.responseId)}else if(i===vr.HandshakeResponse){if(!o)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=r.extensionId,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.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 Z.BEARER:case Z.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.30.0 2022-10-10 */var iw=function(t){ze(e,t);function e(r,n,o,i,a,s,c,l,u,d){var h=t.call(this,r,n,o,i,a,s,c,u,d)||this;return h.nativeStorage=l,h}return e.prototype.acquireToken=function(r){return w(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,d,h=this;return C(this,function(p){switch(p.label){case 0:return[4,this.initializeAuthorizationRequest(r,L.Redirect)];case 1:n=p.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||_.EMPTY_STRING,n.account||null),o=this.initializeServerTelemetryManager(oe.acquireTokenRedirect),i=function(v){v.persisted&&(h.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),h.browserStorage.cleanRequestByState(n.state))},p.label=2;case 2:return p.trys.push([2,7,,8]),[4,this.initializeAuthorizationCodeRequest(n)];case 3:return a=p.sent(),[4,this.createAuthCodeClient(o,n.authority,n.azureCloudOptions)];case 4:return s=p.sent(),this.logger.verbose("Auth code client created"),c=new vf(s,this.browserStorage,a,this.logger,this.browserCrypto),[4,s.getAuthCodeUrl(H(H({},n),{nativeBroker:Cn.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme)}))];case 5:return l=p.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,p.sent()];case 7:throw d=p.sent(),d instanceof D&&d.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",i),o.cacheFailedRequest(d),this.browserStorage.cleanRequestByState(n.state),d;case 8:return[2]}})})},e.prototype.handleRedirectPromise=function(r){return w(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,d,h,p,v;return C(this,function(y){switch(y.label){case 0:n=this.initializeServerTelemetryManager(oe.handleRedirectPromise),y.label=1;case 1:if(y.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(L.Redirect),[2,null];i=void 0;try{a=Q.getDeserializedHash(o),i=this.validateAndExtractStateFromHash(a,L.Redirect),this.logger.verbose("State extracted from hash")}catch(I){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+I),this.browserStorage.cleanRequestByInteractionType(L.Redirect),[2,null]}return s=this.browserStorage.getTemporaryCache(X.ORIGIN_URI,!0)||_.EMPTY_STRING,c=Q.removeHashFromUrl(s),l=Q.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=y.sent(),s.indexOf("#")>-1&&ye.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!ye.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(X.URL_HASH,o,!0),d={apiId:oe.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},h=!0,!s||s==="null"?(p=ye.getHomepage(),this.browserStorage.setTemporaryCache(X.ORIGIN_URI,p,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(p,d)]):[3,6]):[3,9];case 5:return h=y.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+s),[4,this.navigationClient.navigateInternal(s,d)];case 7:h=y.sent(),y.label=8;case 8:if(!h)return[2,this.handleHash(o,i,n)];y.label=9;case 9:return[2,null];case 10:throw v=y.sent(),v instanceof D&&v.setCorrelationId(this.correlationId),n.cacheFailedRequest(v),this.browserStorage.cleanRequestByInteractionType(L.Redirect),v;case 11:return[2]}})})},e.prototype.getRedirectResponseHash=function(r){this.logger.verbose("getRedirectResponseHash called");var n=Q.hashContainsKnownProperties(r);if(n)return ye.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),r;var o=this.browserStorage.getTemporaryCache(X.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(X.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),o},e.prototype.handleHash=function(r,n,o){return w(this,void 0,void 0,function(){var i,a,s,c,l,u,d,h=this;return C(this,function(p){switch(p.label){case 0:if(i=this.browserStorage.getCachedRequest(n,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),a=Q.getDeserializedHash(r),a.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw A.createNativeConnectionNotEstablishedError();return s=new vo(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,oe.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,a.accountId,this.browserStorage,i.correlationId),c=Er.parseRequestState(this.browserCrypto,n).userRequestState,[2,s.acquireToken(H(H({},i),{state:c,prompt:void 0})).finally(function(){h.browserStorage.cleanRequestByState(n)})]}if(l=this.browserStorage.getCachedAuthority(n),!l)throw A.createNoCachedAuthorityError();return[4,this.createAuthCodeClient(o,l)];case 1:return u=p.sent(),this.logger.verbose("Auth code client created"),js.removeThrottle(this.browserStorage,this.config.auth.clientId,i),d=new vf(u,this.browserStorage,i,this.logger,this.browserCrypto),[4,d.handleCodeResponseFromHash(r,n,u.authority,this.networkClient)];case 2:return[2,p.sent()]}})})},e.prototype.logout=function(r){return w(this,void 0,void 0,function(){var n,o,i,a,s,c,l;return C(this,function(u){switch(u.label){case 0:this.logger.verbose("logoutRedirect called"),n=this.initializeLogoutRequest(r),o=this.initializeServerTelemetryManager(oe.logout),u.label=1;case 1:return u.trys.push([1,10,,11]),this.eventHandler.emitEvent(F.LOGOUT_START,L.Redirect,r),[4,this.clearCacheOnLogout(n.account)];case 2:return u.sent(),i={apiId:oe.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(F.LOGOUT_SUCCESS,L.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 D&&l.setCorrelationId(this.correlationId),o.cacheFailedRequest(l),this.eventHandler.emitEvent(F.LOGOUT_FAILURE,L.Redirect,null,l),this.eventHandler.emitEvent(F.LOGOUT_END,L.Redirect),l;case 11:return this.eventHandler.emitEvent(F.LOGOUT_END,L.Redirect),[2]}})})},e.prototype.getRedirectStartPage=function(r){var n=r||window.location.href;return Q.getAbsoluteUrl(n,ye.getCurrentUri())},e}(Do);/*! @azure/msal-browser v2.30.0 2022-10-10 */var aw=function(t){ze(e,t);function e(r,n,o,i,a,s,c,l,u,d){var h=t.call(this,r,n,o,i,a,s,c,u,d)||this;return h.unloadWindow=h.unloadWindow.bind(h),h.nativeStorage=l,h}return e.prototype.acquireToken=function(r){try{var n=this.generatePopupName(r.scopes||sa,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 w(this,void 0,void 0,function(){var a,s,c,l,u,d,h,p,v,y,I,g,f,m,E,b,R,x=this;return C(this,function(P){switch(P.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),a=this.initializeServerTelemetryManager(oe.acquireTokenPopup),[4,this.initializeAuthorizationRequest(r,L.Popup)];case 1:s=P.sent(),this.browserStorage.updateCacheEntries(s.state,s.nonce,s.authority,s.loginHint||_.EMPTY_STRING,s.account||null),P.label=2;case 2:return P.trys.push([2,8,,9]),[4,this.initializeAuthorizationCodeRequest(s)];case 3:return c=P.sent(),[4,this.createAuthCodeClient(a,s.authority,s.azureCloudOptions)];case 4:return l=P.sent(),this.logger.verbose("Auth code client created"),u=Cn.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme),d=void 0,u&&(d=this.performanceClient.startMeasurement(be.FetchAccountIdWithNativeBroker,r.correlationId)),[4,l.getAuthCodeUrl(H(H({},s),{nativeBroker:u}))];case 5:return h=P.sent(),p=new Od(l,this.browserStorage,c,this.logger),v={popup:i,popupName:n,popupWindowAttributes:o},y=this.initiateAuthRequest(h,v),this.eventHandler.emitEvent(F.POPUP_OPENED,L.Popup,{popupWindow:y},null),[4,this.monitorPopupForHash(y)];case 6:if(I=P.sent(),g=Q.getDeserializedHash(I),f=this.validateAndExtractStateFromHash(g,L.Popup,s.correlationId),js.removeThrottle(this.browserStorage,this.config.auth.clientId,c),g.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),d&&d.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw A.createNativeConnectionNotEstablishedError();return m=new vo(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,oe.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,g.accountId,this.nativeStorage,s.correlationId),E=Er.parseRequestState(this.browserCrypto,f).userRequestState,[2,m.acquireToken(H(H({},s),{state:E,prompt:void 0})).finally(function(){x.browserStorage.cleanRequestByState(f)})]}return[4,p.handleCodeResponseFromHash(I,f,l.authority,this.networkClient)];case 7:return b=P.sent(),[2,b];case 8:throw R=P.sent(),i&&i.close(),R instanceof D&&R.setCorrelationId(this.correlationId),a.cacheFailedRequest(R),this.browserStorage.cleanRequestByState(s.state),R;case 9:return[2]}})})},e.prototype.logoutPopupAsync=function(r,n,o,i,a,s){return w(this,void 0,void 0,function(){var c,l,u,d,h,p,v;return C(this,function(y){switch(y.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(F.LOGOUT_START,L.Popup,r),c=this.initializeServerTelemetryManager(oe.logoutPopup),y.label=1;case 1:return y.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(r.account)];case 2:return y.sent(),[4,this.createAuthCodeClient(c,i)];case 3:return l=y.sent(),this.logger.verbose("Auth code client created"),u=l.getLogoutUri(r),this.eventHandler.emitEvent(F.LOGOUT_SUCCESS,L.Popup,r),d=this.openPopup(u,{popupName:n,popupWindowAttributes:o,popup:a}),this.eventHandler.emitEvent(F.POPUP_OPENED,L.Popup,{popupWindow:d},null),[4,this.waitForLogoutPopup(d)];case 4:return y.sent(),s?(h={apiId:oe.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},p=Q.getAbsoluteUrl(s,ye.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+p),this.navigationClient.navigateInternal(p,h)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw v=y.sent(),a&&a.close(),v instanceof D&&v.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(F.LOGOUT_FAILURE,L.Popup,null,v),this.eventHandler.emitEvent(F.LOGOUT_END,L.Popup),c.cacheFailedRequest(v),v;case 6:return this.eventHandler.emitEvent(F.LOGOUT_END,L.Popup),[2]}})})},e.prototype.initiateAuthRequest=function(r,n){if(N.isEmpty(r))throw this.logger.error("Navigate url is empty"),A.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(A.createUserCancelledError());return}var l=_.EMPTY_STRING,u=_.EMPTY_STRING;try{l=r.location.href,u=r.location.hash}catch{}N.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),Q.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(A.createHashDoesNotContainKnownPropertiesError()))):s>a&&(n.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(c),i(A.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{}N.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 A.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),A.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,d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,h=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,p=(i=o.popupSize)===null||i===void 0?void 0:i.width,v=(a=o.popupSize)===null||a===void 0?void 0:a.height,y=(s=o.popupPosition)===null||s===void 0?void 0:s.top,I=(c=o.popupPosition)===null||c===void 0?void 0:c.left;return(!p||p<0||p>d)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),p=jt.POPUP_WIDTH),(!v||v<0||v>h)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),v=jt.POPUP_HEIGHT),(!y||y<0||y>h)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),y=Math.max(0,h/2-jt.POPUP_HEIGHT/2+u)),(!I||I<0||I>d)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),I=Math.max(0,d/2-jt.POPUP_WIDTH/2+l)),window.open(r,n,"width="+p+", height="+v+", top="+y+", left="+I+", scrollbars=yes")},e.prototype.unloadWindow=function(r){this.browserStorage.cleanRequestByInteractionType(L.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 jt.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 jt.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+n+"."+this.correlationId},e}(Do);/*! @azure/msal-browser v2.30.0 2022-10-10 */var sw=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.30.0 2022-10-10 */var cw=6e4,Tu=6e3,lw=3e4,uw=2e3;function dw(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:Ks.AAD,azureCloudOptions:{azureCloudInstance:Vi.None,tenant:_.EMPTY_STRING},skipAuthorityMetadataCache:!1},s={cacheLocation:Ge.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1},c={loggerCallback:function(){},logLevel:Ee.Info,piiLoggingEnabled:!1},l=H(H({},$m),{loggerOptions:c,networkClient:e?ye.getBrowserNetworkClient():YE,navigationClient:new sw,loadFrameTimeout:0,windowHashTimeout:(o==null?void 0:o.loadFrameTimeout)||cw,iframeHashTimeout:(o==null?void 0:o.loadFrameTimeout)||Tu,navigateFrameWait:e&&ye.detectIEOrEdge()?500:0,redirectNavigationTimeout:lw,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(o==null?void 0:o.nativeBrokerHandshakeTimeout)||uw,pollIntervalMilliseconds:jt.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),u={application:{appName:_.EMPTY_STRING,appVersion:_.EMPTY_STRING}},d={auth:H(H({},a),r),cache:H(H({},s),n),system:H(H({},l),o),telemetry:H(H({},u),i)};return d}/*! @azure/msal-browser v2.30.0 2022-10-10 */var Ym=function(t){ze(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 w(this,void 0,void 0,function(){var n;return C(this,function(o){switch(o.label){case 0:if(N.isEmpty(r))throw this.logger.info("Navigate url is empty"),A.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<Tu&&o.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+n+"ms) than the default ("+Tu+"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(A.createMonitorIframeTimeoutError());return}var u=_.EMPTY_STRING,d=r.contentWindow;try{u=d?d.location.href:_.EMPTY_STRING}catch{}if(!N.isEmpty(u)){var h=d?d.location.hash:_.EMPTY_STRING;if(Q.hashContainsKnownProperties(h)){o.removeHiddenIframe(r),clearInterval(l),i(h);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}(Od);/*! @azure/msal-browser v2.30.0 2022-10-10 */var hw=function(t){ze(e,t);function e(r,n,o,i,a,s,c,l,u,d,h){var p=t.call(this,r,n,o,i,a,s,l,d,h)||this;return p.apiId=c,p.nativeStorage=u,p}return e.prototype.acquireToken=function(r){return w(this,void 0,void 0,function(){var n,o,i,a,s;return C(this,function(c){switch(c.label){case 0:if(this.logger.verbose("acquireTokenByIframe called"),n=this.performanceClient.startMeasurement(be.SilentIframeClientAcquireToken,r.correlationId),N.isEmpty(r.loginHint)&&N.isEmpty(r.sid)&&(!r.account||N.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!==Ye.NONE&&r.prompt!==Ye.NO_SESSION)throw n.endMeasurement({success:!1}),A.createSilentPromptValueError(r.prompt);return[4,this.initializeAuthorizationRequest(H(H({},r),{prompt:r.prompt||Ye.NONE}),L.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 D&&s.setCorrelationId(this.correlationId),i.cacheFailedRequest(s),this.browserStorage.cleanRequestByState(o.state),n.endMeasurement({errorCode:s instanceof D&&s.errorCode||void 0,subErrorCode:s instanceof D&&s.subError||void 0,success:!1}),s;case 6:return[2]}})})},e.prototype.logout=function(){return Promise.reject(A.createSilentLogoutUnsupportedError())},e.prototype.silentTokenHelper=function(r,n){return w(this,void 0,void 0,function(){var o,i,a,s,c,l,u,d,h,p=this;return C(this,function(v){switch(v.label){case 0:return[4,this.initializeAuthorizationCodeRequest(n)];case 1:return o=v.sent(),[4,r.getAuthCodeUrl(H(H({},n),{nativeBroker:Cn.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,n.authenticationScheme)}))];case 2:return i=v.sent(),a=new Ym(r,this.browserStorage,o,this.logger,this.config.system),[4,a.initiateAuthRequest(i)];case 3:return s=v.sent(),[4,a.monitorIframeForHash(s,this.config.system.iframeHashTimeout)];case 4:if(c=v.sent(),l=Q.getDeserializedHash(c),u=this.validateAndExtractStateFromHash(l,L.Silent,o.correlationId),l.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw A.createNativeConnectionNotEstablishedError();return d=new vo(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,l.accountId,this.browserStorage,this.correlationId),h=Er.parseRequestState(this.browserCrypto,u).userRequestState,[2,d.acquireToken(H(H({},n),{state:h,prompt:n.prompt||Ye.NONE})).finally(function(){p.browserStorage.cleanRequestByState(u)})]}return[2,a.handleCodeResponseFromHash(c,u,r.authority,this.networkClient)]}})})},e}(Do);/*! @azure/msal-browser v2.30.0 2022-10-10 */var fw=function(t){ze(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.acquireToken=function(r){return w(this,void 0,void 0,function(){var n,o,i,a,s,c=this;return C(this,function(l){switch(l.label){case 0:return o=[H({},r)],[4,this.initializeBaseRequest(r)];case 1:return n=H.apply(void 0,o.concat([l.sent()])),i=this.performanceClient.startMeasurement(be.SilentRefreshClientAcquireToken,n.correlationId),a=this.initializeServerTelemetryManager(oe.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 D&&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(A.createSilentLogoutUnsupportedError())},e.prototype.createRefreshTokenClient=function(r,n,o){return w(this,void 0,void 0,function(){var i;return C(this,function(a){switch(a.label){case 0:return[4,this.getClientConfiguration(r,n,o)];case 1:return i=a.sent(),[2,new qm(i,this.performanceClient)]}})})},e}(Do);/*! @azure/msal-browser v2.30.0 2022-10-10 */var pw=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"||!He.isAccountEntity(n))return;var o=Dt.toObject(new He,n),i=o.getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(F.ACCOUNT_ADDED,void 0,i)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(F.ACCOUNT_REMOVED,void 0,i))}catch{return}},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var qe=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.30.0 2022-10-10 */var Qm=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,qe.decimalToHex(e[0])+qe.decimalToHex(e[1])+qe.decimalToHex(e[2])+qe.decimalToHex(e[3])+"-"+qe.decimalToHex(e[4])+qe.decimalToHex(e[5])+"-"+qe.decimalToHex(e[6])+qe.decimalToHex(e[7])+"-"+qe.decimalToHex(e[8])+qe.decimalToHex(e[9])+"-"+qe.decimalToHex(e[10])+qe.decimalToHex(e[11])+qe.decimalToHex(e[12])+qe.decimalToHex(e[13])+qe.decimalToHex(e[14])+qe.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.30.0 2022-10-10 */var wr=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.30.0 2022-10-10 */var Jm=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=wr.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.30.0 2022-10-10 */var gw=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 wr.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,d=0;d<o;d++)if(c=d&3,l|=this.b64ToUint6(n.charCodeAt(d))<<18-6*c,c===3||o-d===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.30.0 2022-10-10 */var mw=32,vw=function(){function t(e){this.base64Encode=new Jm,this.cryptoObj=e}return t.prototype.generateCodes=function(){return w(this,void 0,void 0,function(){var e,r;return C(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(mw);this.cryptoObj.getRandomValues(e);var r=this.base64Encode.urlEncodeArr(e);return r}catch(n){throw A.createPkceNotGeneratedError(n)}},t.prototype.generateCodeChallengeFromVerifier=function(e){return w(this,void 0,void 0,function(){var r,n;return C(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(),A.createPkceNotGeneratedError(n);case 3:return[2]}})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var yw=function(){function t(){}return t.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},t.prototype.generateKey=function(e,r,n){return w(this,void 0,void 0,function(){return C(this,function(o){return[2,window.crypto.subtle.generateKey(e,r,n)]})})},t.prototype.exportKey=function(e){return w(this,void 0,void 0,function(){return C(this,function(r){return[2,window.crypto.subtle.exportKey(No,e)]})})},t.prototype.importKey=function(e,r,n,o){return w(this,void 0,void 0,function(){return C(this,function(i){return[2,window.crypto.subtle.importKey(No,e,r,n,o)]})})},t.prototype.sign=function(e,r,n){return w(this,void 0,void 0,function(){return C(this,function(o){return[2,window.crypto.subtle.sign(e,r,n)]})})},t.prototype.digest=function(e,r){return w(this,void 0,void 0,function(){return C(this,function(n){return[2,window.crypto.subtle.digest(e,r)]})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var _w=function(){function t(){}return t.prototype.initPrng=function(e){return window.msrCrypto.initPrng(Rd(e))},t.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},t.prototype.generateKey=function(e,r,n){return w(this,void 0,void 0,function(){return C(this,function(o){return[2,window.msrCrypto.subtle.generateKey(e,r,n)]})})},t.prototype.exportKey=function(e){return w(this,void 0,void 0,function(){return C(this,function(r){return[2,window.msrCrypto.subtle.exportKey(No,e)]})})},t.prototype.importKey=function(e,r,n,o){return w(this,void 0,void 0,function(){return C(this,function(i){return[2,window.msrCrypto.subtle.importKey(No,e,r,n,o)]})})},t.prototype.sign=function(e,r,n){return w(this,void 0,void 0,function(){return C(this,function(o){return[2,window.msrCrypto.subtle.sign(e,r,n)]})})},t.prototype.digest=function(e,r){return w(this,void 0,void 0,function(){return C(this,function(n){return[2,window.msrCrypto.subtle.digest(e,r)]})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Ew=function(){function t(){}return t.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},t.prototype.generateKey=function(e,r,n){return w(this,void 0,void 0,function(){return C(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 w(this,void 0,void 0,function(){return C(this,function(r){return[2,new Promise(function(n,o){var i=window.msCrypto.subtle.exportKey(No,e);i.addEventListener("complete",function(a){var s=a.target.result,c=wr.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 w(this,void 0,void 0,function(){var i,a;return C(this,function(s){return i=wr.getSortedObjectString(e),a=wr.stringToArrayBuffer(i),[2,new Promise(function(c,l){var u=window.msCrypto.subtle.importKey(No,a,r,n,o);u.addEventListener("complete",function(d){c(d.target.result)}),u.addEventListener("error",function(d){l(d)})})]})})},t.prototype.sign=function(e,r,n){return w(this,void 0,void 0,function(){return C(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 w(this,void 0,void 0,function(){return C(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.30.0 2022-10-10 */var ww="RSASSA-PKCS1-v1_5",yf="SHA-256",Cw=2048,Sw=new Uint8Array([1,0,1]),Xm=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 yw;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new Ew;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 _w;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."),A.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."),Ys.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:ww,hash:yf,modulusLength:Cw,publicExponent:Sw}}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 w(this,void 0,void 0,function(){var r;return C(this,function(n){return r=wr.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:yf},r)]})})},t.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},t.prototype.generateKeyPair=function(e,r){return w(this,void 0,void 0,function(){return C(this,function(n){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,r)]})})},t.prototype.exportJwk=function(e){return w(this,void 0,void 0,function(){return C(this,function(r){return[2,this.subtleCrypto.exportKey(e)]})})},t.prototype.importJwk=function(e,r,n){return w(this,void 0,void 0,function(){return C(this,function(o){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,r,n)]})})},t.prototype.sign=function(e,r){return w(this,void 0,void 0,function(){return C(this,function(n){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,r)]})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Tw=function(){function t(){this.dbName=wu,this.version=ew,this.tableName=tw,this.dbOpen=!1}return t.prototype.open=function(){return w(this,void 0,void 0,function(){var e=this;return C(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(A.createDatabaseUnavailableError())})})]})})},t.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},t.prototype.validateDbIsOpen=function(){return w(this,void 0,void 0,function(){return C(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 w(this,void 0,void 0,function(){var r=this;return C(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(A.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 w(this,void 0,void 0,function(){var n=this;return C(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(A.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 w(this,void 0,void 0,function(){var r=this;return C(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(A.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 w(this,void 0,void 0,function(){var e=this;return C(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(A.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 w(this,void 0,void 0,function(){var r=this;return C(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(A.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 w(this,void 0,void 0,function(){return C(this,function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(r,n){var o=window.indexedDB.deleteDatabase(wu);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.30.0 2022-10-10 */var _f=function(){function t(e,r){this.inMemoryCache=new Cu,this.indexedDBCache=new Tw,this.logger=e,this.storeName=r}return t.prototype.handleDatabaseAccessError=function(e){if(e instanceof A&&e.errorCode===T.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 w(this,void 0,void 0,function(){var r,n;return C(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 w(this,void 0,void 0,function(){var n;return C(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 w(this,void 0,void 0,function(){var r;return C(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 w(this,void 0,void 0,function(){var e,r;return C(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 w(this,void 0,void 0,function(){var r,n;return C(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 w(this,void 0,void 0,function(){var e,r;return C(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.30.0 2022-10-10 */var Qs;(function(t){t.asymmetricKeys="asymmetricKeys",t.symmetricKeys="symmetricKeys"})(Qs||(Qs={}));var Iw=function(){function t(e){this.logger=e,this.asymmetricKeys=new _f(this.logger,Qs.asymmetricKeys),this.symmetricKeys=new _f(this.logger,Qs.symmetricKeys)}return t.prototype.clear=function(){return w(this,void 0,void 0,function(){var e;return C(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.30.0 2022-10-10 */var kw=function(){function t(e,r,n){this.logger=e,this.browserCrypto=new Xm(this.logger,n),this.b64Encode=new Jm,this.b64Decode=new gw,this.guidGenerator=new Qm(this.browserCrypto),this.pkceGenerator=new vw(this.browserCrypto),this.cache=new Iw(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 w(this,void 0,void 0,function(){return C(this,function(e){return[2,this.pkceGenerator.generateCodes()]})})},t.prototype.getPublicKeyThumbprint=function(e){var r;return w(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u;return C(this,function(d){switch(d.label){case 0:return n=(r=this.performanceClient)===null||r===void 0?void 0:r.startMeasurement(be.CryptoOptsGetPublicKeyThumbprint,e.correlationId),[4,this.browserCrypto.generateKeyPair(t.EXTRACTABLE,t.POP_KEY_USAGES)];case 1:return o=d.sent(),[4,this.browserCrypto.exportJwk(o.publicKey)];case 2:return i=d.sent(),a={e:i.e,kty:i.kty,n:i.n},s=wr.getSortedObjectString(a),[4,this.hashString(s)];case 3:return c=d.sent(),[4,this.browserCrypto.exportJwk(o.privateKey)];case 4:return l=d.sent(),[4,this.browserCrypto.importJwk(l,!1,["sign"])];case 5:return u=d.sent(),[4,this.cache.asymmetricKeys.setItem(c,{privateKey:u,publicKey:o.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri})];case 6:return d.sent(),n&&n.endMeasurement({success:!0}),[2,c]}})})},t.prototype.removeTokenBindingKey=function(e){return w(this,void 0,void 0,function(){var r;return C(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 w(this,void 0,void 0,function(){return C(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 w(this,void 0,void 0,function(){var i,a,s,c,l,u,d,h,p,v,y,I,g;return C(this,function(f){switch(f.label){case 0:return i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(be.CryptoOptsSignJwt,n),[4,this.cache.asymmetricKeys.getItem(r)];case 1:if(a=f.sent(),!a)throw A.createSigningKeyNotFoundInStorageError(r);return[4,this.browserCrypto.exportJwk(a.publicKey)];case 2:return s=f.sent(),c=wr.getSortedObjectString(s),l=this.b64Encode.urlEncode(JSON.stringify({kid:r})),u=QE.getShrHeaderString({kid:l,alg:s.alg}),d=this.b64Encode.urlEncode(u),e.cnf={jwk:JSON.parse(c)},h=this.b64Encode.urlEncode(JSON.stringify(e)),p=d+"."+h,v=wr.stringToArrayBuffer(p),[4,this.browserCrypto.sign(a.privateKey,v)];case 3:return y=f.sent(),I=this.b64Encode.urlEncodeArr(new Uint8Array(y)),g=p+"."+I,i&&i.endMeasurement({success:!0}),[2,g]}})})},t.prototype.hashString=function(e){return w(this,void 0,void 0,function(){var r,n;return C(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.30.0 2022-10-10 */var bw=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 A.createUnableToLoadTokenError("Please ensure server response includes id token.");var o=new ir(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 rs(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=Gs.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 Gs(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 rs(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 rs(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 A.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw A.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=He.generateHomeAccountId(n,o,this.logger,this.cryptoObj,e)),!a)throw A.createUnableToLoadTokenError("Unexpected missing homeAccountId");var s=n?He.createAccount(n,a,e,void 0,void 0,void 0,r):He.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 A.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},t.prototype.loadIdToken=function(e,r,n,o){var i=Yi.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 A.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 A.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!a.extendedExpiresOn)throw A.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var s=new tt(e.scopes).printScopes(),c=a.expiresOn||r.expires_in+new Date().getTime()/1e3,l=a.extendedExpiresOn,u=Qi.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 A.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=qs.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 A.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,d;n!=null&&n.accessToken&&(c=n.accessToken.secret,l=tt.fromString(n.accessToken.target).asArray(),u=new Date(Number(n.accessToken.expiresOn)*1e3),d=new Date(Number(n.accessToken.extendedExpiresOn)*1e3));var h=(r==null?void 0:r.claims.oid)||(r==null?void 0:r.claims.sub)||_.EMPTY_STRING,p=(r==null?void 0:r.claims.tid)||_.EMPTY_STRING;return{authority:o?o.canonicalAuthority:_.EMPTY_STRING,uniqueId:h,tenantId:p,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:d,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.30.0 2022-10-10 */var Aw=function(t){ze(e,t);function e(r){var n=t.call(this,r)||this;return n.includeRedirectUri=!1,n}return e}(jm);/*! @azure/msal-browser v2.30.0 2022-10-10 */var Rw=function(t){ze(e,t);function e(r,n,o,i,a,s,c,l,u,d){var h=t.call(this,r,n,o,i,a,s,l,u,d)||this;return h.apiId=c,h}return e.prototype.acquireToken=function(r){return w(this,void 0,void 0,function(){var n,o,i,a,s,c,l;return C(this,function(u){switch(u.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!r.code)throw A.createAuthCodeRequiredError();return[4,this.initializeAuthorizationRequest(r,L.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=H(H({},n),{code:r.code}),[4,this.getClientConfiguration(o,n.authority)];case 3:return a=u.sent(),s=new Aw(a),this.logger.verbose("Auth code client created"),c=new Ym(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 D&&l.setCorrelationId(this.correlationId),o.cacheFailedRequest(l),this.browserStorage.cleanRequestByState(n.state),l;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(A.createSilentLogoutUnsupportedError())},e}(Do);/*! @azure/msal-browser v2.30.0 2022-10-10 */var Nw=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.30.0 2022-10-10 */var Pw=function(t){ze(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 Xm(l.logger,c),l.guidGenerator=new Qm(l.browserCrypto),l}return e.prototype.startPerformanceMeasuremeant=function(r,n){return new Nw(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 H(H({},a),{endMeasurement:function(s){return a.endMeasurement(H({startPageVisibility:i,endPageVisibility:o.getPageVisibility()},s))}})},e}(Km);/*! @azure/msal-browser v2.30.0 2022-10-10 */var Ow=function(){function t(e){this.isBrowserEnvironment=typeof window<"u",this.config=dw(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new Nd(this.config.system.loggerOptions,rl,Ti),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 Pw(this.config.auth.clientId,this.config.auth.authority,this.logger,rl,Ti,this.config.telemetry.application,this.config.system.cryptoOptions):new ZE(this.config.auth.clientId,this.config.auth.authority,this.logger,rl,Ti,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new kw(this.logger,this.performanceClient,this.config.system.cryptoOptions):zs,this.eventHandler=new pw(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new Su(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):rw(this.config.auth.clientId,this.logger);var r={cacheLocation:Ge.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1};this.nativeInternalStorage=new Su(this.config.auth.clientId,r,this.browserCrypto,this.logger),this.tokenCache=new bw(this.config,this.browserStorage,this.logger,this.browserCrypto)}return t.prototype.initialize=function(){return w(this,void 0,void 0,function(){var e,r;return C(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(F.INITIALIZE_START),!this.config.system.allowNativeBroker)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),e=this,[4,Cn.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(F.INITIALIZE_END),[2]}})})},t.prototype.handleRedirectPromise=function(e){return w(this,void 0,void 0,function(){var r,n,o,i,a,s,c,l,u=this;return C(this,function(d){return this.logger.verbose("handleRedirectPromise called"),ye.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(F.HANDLE_REDIRECT_START,L.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),i=this.browserStorage.getCachedNativeRequest(),a=void 0,i&&Cn.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),s=new vo(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,oe.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(X.CORRELATION_ID,!0)||_.EMPTY_STRING,l=this.createRedirectClient(c),a=l.handleRedirectPromise(e)),o=a.then(function(h){if(h){var p=r.length<u.getAllAccounts().length;p?(u.eventHandler.emitEvent(F.LOGIN_SUCCESS,L.Redirect,h),u.logger.verbose("handleRedirectResponse returned result, login success")):(u.eventHandler.emitEvent(F.ACQUIRE_TOKEN_SUCCESS,L.Redirect,h),u.logger.verbose("handleRedirectResponse returned result, acquire token success"))}return u.eventHandler.emitEvent(F.HANDLE_REDIRECT_END,L.Redirect),h}).catch(function(h){throw r.length>0?u.eventHandler.emitEvent(F.ACQUIRE_TOKEN_FAILURE,L.Redirect,null,h):u.eventHandler.emitEvent(F.LOGIN_FAILURE,L.Redirect,null,h),u.eventHandler.emitEvent(F.HANDLE_REDIRECT_END,L.Redirect),h}),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 w(this,void 0,void 0,function(){var r,n,o,i,a,s=this;return C(this,function(c){return r=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",r),this.preflightBrowserEnvironmentCheck(L.Redirect),n=this.getAllAccounts().length>0,n?this.eventHandler.emitEvent(F.ACQUIRE_TOKEN_START,L.Redirect,e):this.eventHandler.emitEvent(F.LOGIN_START,L.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(i=new vo(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,oe.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 qt){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(F.ACQUIRE_TOKEN_FAILURE,L.Redirect,null,l):s.eventHandler.emitEvent(F.LOGIN_FAILURE,L.Redirect,null,l),l})]})})},t.prototype.acquireTokenPopup=function(e){var r=this,n=this.getRequestCorrelationId(e),o=this.performanceClient.startMeasurement(be.AcquireTokenPopup,n);try{this.logger.verbose("acquireTokenPopup called",n),this.preflightBrowserEnvironmentCheck(L.Popup)}catch(c){return Promise.reject(c)}var i=this.getAllAccounts();i.length>0?this.eventHandler.emitEvent(F.ACQUIRE_TOKEN_START,L.Popup,e):this.eventHandler.emitEvent(F.LOGIN_START,L.Popup,e);var a;if(this.canUseNative(e))a=this.acquireTokenNative(e,oe.acquireTokenPopup).then(function(c){return r.browserStorage.setInteractionInProgress(!1),o.endMeasurement({success:!0,isNativeBroker:!0,accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length,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 qt){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(F.LOGIN_SUCCESS,L.Popup,c):r.eventHandler.emitEvent(F.ACQUIRE_TOKEN_SUCCESS,L.Popup,c),o.endMeasurement({success:!0,accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length,requestId:c.requestId}),o.flushMeasurement(),c}).catch(function(c){return i.length>0?r.eventHandler.emitEvent(F.ACQUIRE_TOKEN_FAILURE,L.Popup,null,c):r.eventHandler.emitEvent(F.LOGIN_FAILURE,L.Popup,null,c),o.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),o.flushMeasurement(),Promise.reject(c)})},t.prototype.ssoSilent=function(e){return w(this,void 0,void 0,function(){var r,n,o,i,a,s=this;return C(this,function(c){return r=this.getRequestCorrelationId(e),n=H(H({},e),{prompt:e.prompt,correlationId:r}),this.preflightBrowserEnvironmentCheck(L.Silent),o=this.performanceClient.startMeasurement(be.SsoSilent,r),this.logger.verbose("ssoSilent called",r),this.eventHandler.emitEvent(F.SSO_SILENT_START,L.Silent,n),this.canUseNative(n)?i=this.acquireTokenNative(n,oe.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(F.SSO_SILENT_SUCCESS,L.Silent,l),o.endMeasurement({success:!0,isNativeBroker:l.fromNativeBroker,accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length,requestId:l.requestId}),o.flushMeasurement(),l}).catch(function(l){throw s.eventHandler.emitEvent(F.SSO_SILENT_FAILURE,L.Silent,null,l),o.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),o.flushMeasurement(),l})]})})},t.prototype.acquireTokenByCode=function(e){return w(this,void 0,void 0,function(){var r,n,o,i,a=this;return C(this,function(s){r=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(L.Silent),this.logger.trace("acquireTokenByCode called",r),this.eventHandler.emitEvent(F.ACQUIRE_TOKEN_BY_CODE_START,L.Silent,e),n=this.performanceClient.startMeasurement(be.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(H(H({},e),{correlationId:r})).then(function(c){return a.eventHandler.emitEvent(F.ACQUIRE_TOKEN_BY_CODE_SUCCESS,L.Silent,c),a.hybridAuthCodeResponses.delete(o),n.endMeasurement({success:!0,accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length,isNativeBroker:c.fromNativeBroker,requestId:c.requestId}),n.flushMeasurement(),c}).catch(function(c){throw a.hybridAuthCodeResponses.delete(o),a.eventHandler.emitEvent(F.ACQUIRE_TOKEN_BY_CODE_FAILURE,L.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,oe.acquireTokenByCode,e.nativeAccountId).catch(function(c){throw c instanceof er&&c.isFatal()&&(a.nativeExtensionProvider=void 0),c})];throw A.createUnableToAcquireTokenFromNativePlatformError()}else throw A.createAuthCodeOrNativeAccountIdRequiredError()}catch(c){throw this.eventHandler.emitEvent(F.ACQUIRE_TOKEN_BY_CODE_FAILURE,L.Silent,null,c),n.endMeasurement({errorCode:c instanceof D&&c.errorCode||void 0,subErrorCode:c instanceof D&&c.subError||void 0,success:!1}),c}return[2]})})},t.prototype.acquireTokenByCodeAsync=function(e){return w(this,void 0,void 0,function(){var r,n;return C(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 w(this,void 0,void 0,function(){return C(this,function(o){switch(n.cacheLookupPolicy){case at.Default:case at.AccessToken:case at.AccessTokenAndRefreshToken:return[2,e.acquireToken(r)];default:throw O.createRefreshRequiredError()}return[2]})})},t.prototype.acquireTokenByRefreshToken=function(e,r){return w(this,void 0,void 0,function(){var n;return C(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 O.createRefreshRequiredError()}return[2]})})},t.prototype.acquireTokenBySilentIframe=function(e){return w(this,void 0,void 0,function(){var r;return C(this,function(n){return r=this.createSilentIframeClient(e.correlationId),[2,r.acquireToken(e)]})})},t.prototype.logout=function(e){return w(this,void 0,void 0,function(){var r;return C(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(H({correlationId:r},e))]})})},t.prototype.logoutRedirect=function(e){return w(this,void 0,void 0,function(){var r,n;return C(this,function(o){return r=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(L.Redirect),n=this.createRedirectClient(r),[2,n.logout(e)]})})},t.prototype.logoutPopup=function(e){try{var r=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck(L.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!N.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!N.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!N.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"),ye.blockNonBrowserEnvironment(this.isBrowserEnvironment),ye.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),ye.blockReloadInHiddenIframes(),ye.blockAcquireTokenInPopups(),ye.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===L.Redirect&&this.config.cache.cacheLocation===Ge.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw Ys.createInMemoryRedirectUnavailableError();(e===L.Redirect||e===L.Popup)&&this.preflightInteractiveRequest(r)},t.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),ye.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},t.prototype.acquireTokenNative=function(e,r,n){return w(this,void 0,void 0,function(){var o;return C(this,function(i){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw A.createNativeConnectionNotEstablishedError();return o=new vo(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"),!Cn.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 Ye.NONE:case Ye.CONSENT:case Ye.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 aw(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 iw(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 hw(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,oe.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},t.prototype.createSilentCacheClient=function(e){return new Wm(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},t.prototype.createSilentRefreshClient=function(e){return new fw(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},t.prototype.createSilentAuthCodeClient=function(e){return new Rw(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,oe.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.30.0 2022-10-10 */var xw=function(t){ze(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 w(this,void 0,void 0,function(){var n;return C(this,function(o){return n=this.getRequestCorrelationId(r),this.logger.verbose("loginRedirect called",n),[2,this.acquireTokenRedirect(H({correlationId:n},r||pf))]})})},e.prototype.loginPopup=function(r){var n=this.getRequestCorrelationId(r);return this.logger.verbose("loginPopup called",n),this.acquireTokenPopup(H({correlationId:n},r||pf))},e.prototype.acquireTokenSilent=function(r){return w(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u=this;return C(this,function(d){if(n=this.getRequestCorrelationId(r),o=this.performanceClient.startMeasurement(be.AcquireTokenSilent,n),this.preflightBrowserEnvironmentCheck(L.Silent),this.logger.verbose("acquireTokenSilent called",n),i=r.account||this.getActiveAccount(),!i)throw A.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(H(H({},r),{correlationId:n}),i).then(function(h){return u.activeSilentTokenRequests.delete(s),o.endMeasurement({success:!0,fromCache:h.fromCache,accessTokenSize:h.accessToken.length,idTokenSize:h.idToken.length,isNativeBroker:h.fromNativeBroker,cacheLookupPolicy:r.cacheLookupPolicy,requestId:h.requestId}),o.flushMeasurement(),h}).catch(function(h){throw u.activeSilentTokenRequests.delete(s),o.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1}),o.flushMeasurement(),h}),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 w(this,void 0,void 0,function(){var o,i,a,s,c,l,u=this;return C(this,function(d){switch(d.label){case 0:return this.eventHandler.emitEvent(F.ACQUIRE_TOKEN_START,L.Silent,r),o=this.performanceClient.startMeasurement(be.AcquireTokenSilentAsync,r.correlationId),Cn.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,r.authenticationScheme)&&n.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),a=H(H({},r),{account:n}),i=this.acquireTokenNative(a,oe.acquireTokenSilent_silentFlow).catch(function(h){return w(u,void 0,void 0,function(){var p;return C(this,function(v){if(h instanceof er&&h.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,p=this.createSilentIframeClient(r.correlationId),[2,p.acquireToken(r)];throw h})})}),[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=d.sent(),l=H(H({},r),{cacheLookupPolicy:r.cacheLookupPolicy||at.Default}),i=this.acquireTokenFromCache(s,c,l).catch(function(h){if(l.cacheLookupPolicy===at.AccessToken)throw h;return ye.blockReloadInHiddenIframes(),u.eventHandler.emitEvent(F.ACQUIRE_TOKEN_NETWORK_START,L.Silent,c),u.acquireTokenByRefreshToken(c,l).catch(function(p){var v=p instanceof Nn,y=p instanceof qt,I=p.errorCode===jt.INVALID_GRANT_ERROR;if((!v||!I||y||l.cacheLookupPolicy===at.AccessTokenAndRefreshToken||l.cacheLookupPolicy===at.RefreshToken)&&l.cacheLookupPolicy!==at.Skip)throw p;return u.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",r.correlationId),u.acquireTokenBySilentIframe(c)})}),d.label=3;case 3:return[2,i.then(function(h){return u.eventHandler.emitEvent(F.ACQUIRE_TOKEN_SUCCESS,L.Silent,h),o.endMeasurement({success:!0,fromCache:h.fromCache,accessTokenSize:h.accessToken.length,idTokenSize:h.idToken.length,isNativeBroker:h.fromNativeBroker,requestId:h.requestId}),h}).catch(function(h){throw u.eventHandler.emitEvent(F.ACQUIRE_TOKEN_FAILURE,L.Silent,null,h),o.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1}),h})]}})})},e}(Ow);const Ef="redirect";var wf=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class Mw extends xw{constructor(e,r){super(r),this.tenantId=e}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)}login(e,r=Ef,n=!0){var o;return wf(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=Ef,n=!0){return wf(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 Uw=(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")},Lw=(t,e,r,n,o)=>{const i=Object.assign({clientId:e,redirectUri:Uw(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||Mw)(t,{auth:i,cache:a,system:s})};class Zm extends Nd{constructor(e){super({logLevel:e,loggerCallback:(...r)=>this.loggerCallback(...r)}),this.getLogType=r=>{switch(r){case Ee.Error:return"error";case Ee.Warning:return"warn";case Ee.Info:return"info";case Ee.Verbose:default:return"debug"}}}loggerCallback(e,r,n){console[this.getLogType(e)]("%c FUSION::MSAL %c %s","border: 1px solid;","border: none;",r)}}var nl=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const Hw="default";class Dw{constructor(e){this._config=e,this._clients={}}get defaultClient(){return this.getClient(Hw)}get defaultAccount(){return this.defaultClient.account}get defaultConfig(){return this._config.defaultConfig}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=Lw(r.tenantId,r.clientId,r.redirectUri,r.config);return n.setLogger(new Zm(0)),n}handleRedirect(){return nl(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 nl(this,void 0,void 0,function*(){const r=yield this.acquireToken(e);return r?r.accessToken:void 0})}login(){return nl(this,void 0,void 0,function*(){yield this.defaultClient.login()})}}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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const ev={name:"auth",configure:t=>{var e;const r=new bE;return!((e=t==null?void 0:t.auth)===null||e===void 0)&&e.defaultConfig&&r.configureDefault(t.auth.defaultConfig),r},initialize:({config:t,requireInstance:e})=>Iu(void 0,void 0,void 0,function*(){const r=new Dw(t);try{(yield e("http")).defaultHttpRequestHandler.set("MSAL",o=>Iu(void 0,void 0,void 0,function*(){const{scopes:i=[]}=o;if(i.length){const a=yield r.acquireToken({scopes:i});if(a){const s=new Headers(o.headers);return s.set("Authorization",`Bearer ${a.accessToken}`),Object.assign(Object.assign({},o),{headers:s})}}}))}catch(n){console.error(n)}return r})},Fw=(t,e)=>({module:ev,configure:r=>{r.configureDefault(t);const{clients:n}=e!=null?e:{};n&&Object.entries(n).forEach(([o,i])=>r.configureClient(o,i))},afterInit:r=>Iu(void 0,void 0,void 0,function*(){e!=null&&e.requiresAuth&&(yield r.handleRedirect(),r.defaultAccount||(yield r.login()))})});var tv=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const zw=t=>{var e;return{id:t.id,isChildType:t.isChildType,parentTypeIds:(e=t.parentTypeIds)!==null&&e!==void 0?e:[]}},rv=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:zw(t.type),value:(o=t.value)!==null&&o!==void 0?o:{}}},$w=t=>tv(void 0,void 0,void 0,function*(){const e=yield t.json();return rv(e)}),jw=t=>tv(void 0,void 0,void 0,function*(){return(yield t.json()).map(rv)});var ol=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class qw{constructor(){this.defaultExpireTime=1*60*1e3}createContextClientGet(e){return ol(this,void 0,void 0,function*(){const n=yield(yield e.requireInstance("services")).createContextClient("json$");return{fn:o=>n.get("v1",o,{selector:$w})}})}createContextClientQuery(e){return ol(this,void 0,void 0,function*(){const n=yield(yield e.requireInstance("services")).createContextClient("json$");return{fn:o=>n.query("v1",{query:o},{selector:jw})}})}createConfig(e){return ol(this,void 0,void 0,function*(){const r={getContext:{query:{client:yield this.createContextClientGet(e),key:({id:n})=>n,expire:this.defaultExpireTime}},queryContext:{client:yield this.createContextClientQuery(e),key:n=>JSON.stringify(n),queueOperator:n=>o=>o.pipe(J_(250)),expire:this.defaultExpireTime}};return this.processConfig(r)})}processConfig(e){return e}}var Ua,Bw=new Uint8Array(16);function Kw(){if(!Ua&&(Ua=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Ua))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ua(Bw)}const Gw=/^(?:[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 Vw(t){return typeof t=="string"&&Gw.test(t)}var Me=[];for(var il=0;il<256;++il)Me.push((il+256).toString(16).substr(1));function Ww(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(Me[t[e+0]]+Me[t[e+1]]+Me[t[e+2]]+Me[t[e+3]]+"-"+Me[t[e+4]]+Me[t[e+5]]+"-"+Me[t[e+6]]+Me[t[e+7]]+"-"+Me[t[e+8]]+Me[t[e+9]]+"-"+Me[t[e+10]]+Me[t[e+11]]+Me[t[e+12]]+Me[t[e+13]]+Me[t[e+14]]+Me[t[e+15]]).toLowerCase();if(!Vw(r))throw TypeError("Stringified UUID is invalid");return r}function nv(t,e,r){t=t||{};var n=t.random||(t.rng||Kw)();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 Ww(n)}const Pn=(...t)=>bo(e=>t.includes(e.type));class Cf extends Error{constructor(e,r,n){super(r),this.type=e,this.cause=n}}var Be=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)},Yw=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},Qt,Lt;class ov extends le{constructor(e,r){super(n=>Be(this,Lt,"f").subscribe(n)),this.__initial=r,Qt.set(this,new Xr),Lt.set(this,void 0),Yw(this,Lt,new mc(r),"f"),Be(this,Qt,"f").pipe(Mm(e,r),Om()).subscribe(Be(this,Lt,"f"))}get action$(){return Be(this,Qt,"f").asObservable()}get value(){return Be(this,Lt,"f").value}get closed(){return Be(this,Lt,"f").closed||Be(this,Qt,"f").closed}next(e){Be(this,Qt,"f").next(e)}addEffect(e,r){const n=typeof e=="string"?this.action$.pipe(Pn(e)):this.action$,o=r||e;return n.pipe(Gi(i=>Zr(new Promise((a,s)=>{try{a(o(i,this.value))}catch(c){s(c)}})).pipe(Ao(a=>(console.warn("unhandled effect",a),qi)))),bo(i=>!!i),Bi(ko)).subscribe(Be(this,Qt,"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(Ao(n=>(console.trace("unhandled exception, epic closed!",n),qi)),Bi(ko)).subscribe(Be(this,Qt,"f"))}reset(){Be(this,Lt,"f").next(this.__initial)}unsubscribe(){Be(this,Qt,"f").unsubscribe(),Be(this,Lt,"f").unsubscribe()}complete(){Be(this,Qt,"f").complete(),Be(this,Lt,"f").complete()}asObservable(){return Be(this,Lt,"f").asObservable()}}Qt=new WeakMap,Lt=new WeakMap;class ku extends Error{constructor(e,r,n){super(n!=null?n:r.message),this.action=e,this.cause=r}}const iv=(t,e)=>(r,n)=>new le(o=>{const{controller:i,transaction:a}=r.meta;if(i.signal.aborted)return o.next({type:"cancel",payload:`request [${a}] was aborted!`,meta:{request:r}}),o.complete();if(o.add(t.pipe(Pn("cancel"),Lm(e)).subscribe(([s,c])=>{(!s.payload||s.payload===c.transaction)&&(i.signal.aborted||i.abort(),o.complete())})),o.add(du(i.signal,"abort").subscribe(()=>{o.next({type:"cancel",payload:`request [${a}] was aborted!`,meta:{request:r}}),o.complete()})),n)return n(o)}),Qw=t=>(t=Object.assign({},{count:0,delay:0},t),(e,r)=>{const n=iv(e,r);return e.pipe(Pn("failure"),Lm(r),ro(([o,i])=>{const{retryCount:a=0}=i,s=Object.assign({},o.payload.action),c=Object.assign({},t,s.meta.retry);return n(s,l=>{if(a>=c.count){const d=c.count?"maximum retries executed!":o.payload.message;return l.next({type:"error",payload:new ku(o,o.payload.cause,d),meta:{request:s}}),l.complete()}return(typeof c.delay=="function"?Zr(c.delay(o.payload.cause)):K_(c.delay)).pipe(ht(()=>s),Ao(d=>vc({type:"error",payload:new ku(s,d,"failed to resolve delay"),meta:{request:s}}))).subscribe(l)})}))}),Jw=t=>(e,r)=>{const n=iv(e,r);return e.pipe(Pn("request"),ro(o=>n(o,i=>{Zr(t(o.payload,o.meta.controller.signal)).pipe(ht(a=>({type:"success",payload:a,meta:{request:o}})),Ao(a=>vc({type:"failure",payload:new ku(o,a,"failed to execute request"),meta:{request:o}}))).subscribe(i)})))},Xw=()=>(t,e)=>{switch(e.type){case"request":{const{transaction:r}=e.meta;return t.transaction===r?Object.assign(Object.assign({},t),{status:"active",retryCount:(t.retryCount||0)+1}):{transaction:r,status:"active",initiated:Date.now(),retryCount:0}}case"success":return Object.assign(Object.assign({},t),{status:"idle",completed:Date.now()});case"failure":return Object.assign(Object.assign({},t),{status:"failed"});case"error":return Object.assign(Object.assign({},t),{status:"failed",error:e.payload});case"cancel":return t.status==="canceled"?t:Object.assign(Object.assign({},t),{status:"canceled"})}};var Zw=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},Je=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)},Sf=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},Xe,Dn;class Tf extends le{constructor(e,r){super(o=>Je(this,Xe,"f").subscribe(o)),Xe.set(this,void 0),Dn.set(this,void 0),Sf(this,Xe,new ov(Xw(),{status:"idle"}),"f"),Sf(this,Dn,new Nr(()=>Je(this,Xe,"f").complete()),"f"),Je(this,Dn,"f").add(Je(this,Xe,"f").addEpic(Jw(e)));const n=Object.assign({count:0,delay:0},r==null?void 0:r.retry);Je(this,Dn,"f").add(Je(this,Xe,"f").addEpic(Qw(n)))}get value(){return Je(this,Xe,"f").value}get action$(){return Je(this,Xe,"f").action$}get closed(){return Je(this,Xe,"f").closed}get status(){return this.value.status}get error(){return this.value.error}next(e,r){return this._next(e,r).meta.transaction}nextAsync(e,r){return Zw(this,void 0,void 0,function*(){this._next(e,r);const n=Je(this,Xe,"f").action$.pipe(Pn("success","error","cancel"),ht(o=>{const{payload:i,type:a}=o;switch(a){case"error":throw new Cf("error","failed to execute request",i);case"cancel":throw new Cf("abort","request was canceled",new Error(String(i)))}return i}),Bi(ko));return Ki(n)})}cancel(e,r){this.value.status!=="canceled"&&(r!=null||(r=`request [${e||this.value.transaction}] was canceled!`),Je(this,Xe,"f").next({type:"cancel",payload:e,meta:{request:void 0,reason:r}}))}on(e,r){return Je(this,Xe,"f").addEffect(e,n=>{r(n,this)})}complete(){Je(this,Dn,"f").unsubscribe()}asObservable(){return Je(this,Xe,"f").asObservable()}_next(e,r){const{controller:n=new AbortController,transaction:o=nv()}=r!=null?r:{},i=Object.assign(Object.assign({},r),{controller:n,transaction:o}),a={type:"request",payload:e,meta:i};return Je(this,Xe,"f").next(a),a}}Xe=new WeakMap,Dn=new WeakMap;const eC=(t,e)=>{var r,n;return((r=e.updated)!==null&&r!==void 0?r:0)-((n=t.updated)!==null&&n!==void 0?n:0)},tC=()=>(t,e)=>{var r,n,o,i,a;const{type:s,payload:c}=e;switch(s){case"set":{const{key:l,value:u}=c,d=t.data[l],h=Object.assign(Object.assign(Object.assign({},d),u),{created:(r=d==null?void 0:d.created)!==null&&r!==void 0?r:Date.now(),updated:Date.now(),updates:((n=d==null?void 0:d.updates)!==null&&n!==void 0?n:-1)+1}),p=Object.assign(Object.assign({},t.data),{[l]:h});return Object.assign(Object.assign({},t),{data:p,lastTransaction:h.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 d=Object.assign(Object.assign({},t.data),{[l]:Object.assign(Object.assign({},u),{updated:void 0})});return Object.assign(Object.assign({},t),{data:d})}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:eC,d=Object.entries(t.data).sort((p,v)=>l(p[1],v[1])).filter(([p,v])=>!c.validate||c.validate(v)).slice(0,(a=c.size)!==null&&a!==void 0?a:Number.MAX_SAFE_INTEGER).reduce((p,[v,y])=>Object.assign(p,{[v]:y}),{});return Object.keys(d).length===Object.keys(t.data).length?t:{lastTransaction:t.lastTransaction&&Object.keys(d).includes(t.lastTransaction)?t.lastTransaction:Object.values(d)[0].transaction,data:d}}}return t},rC=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 If extends ov{get data$(){return this.pipe(ht(e=>e.data))}get latest(){return rC(this.value)}constructor(e){const{trimming:r,initial:n}=e;super(tC(),{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 re=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)},Ln=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},nC=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},xr,It,Ht,si,ci,ns;const oC=(t=0)=>e=>{var r;return((r=e.updated)!==null&&r!==void 0?r:0)+t>Date.now()};class Ii extends le{constructor(e){var r,n;super(i=>re(this,Ht,"f").pipe(ht(({data:a})=>a)).subscribe(i)),xr.set(this,new Nr),It.set(this,void 0),Ht.set(this,void 0),si.set(this,new Xr),ci.set(this,void 0),ns.set(this,void 0),Ln(this,ci,e.key,"f"),Ln(this,ns,(r=e==null?void 0:e.validate)!==null&&r!==void 0?r:oC(e==null?void 0:e.expire),"f"),e.client instanceof Tf?Ln(this,It,e.client,"f"):(Ln(this,It,new Tf(e.client.fn,e.client.options),"f"),re(this,xr,"f").add(()=>re(this,It,"f").complete())),e.cache instanceof If?Ln(this,Ht,e.cache,"f"):(Ln(this,Ht,new If(e.cache||{}),"f"),re(this,xr,"f").add(()=>re(this,Ht,"f").complete()));const o=(n=e.queueOperator)!==null&&n!==void 0?n:()=>i=>i;re(this,xr,"f").add(re(this,It,"f").on("success",i=>{const{payload:a,meta:{request:s}}=i,c=re(this,ci,"f").call(this,s.payload);re(this,Ht,"f").setItem(c,{value:a,args:s.payload,transaction:s.meta.transaction})})),re(this,xr,"f").add(()=>re(this,si,"f").complete()),re(this,xr,"f").add(re(this,si,"f").pipe(o(re(this,Ht,"f").value),Um(()=>!re(this,It,"f").closed)).subscribe(({args:i,options:a})=>re(this,It,"f").next(i,a)))}get client(){return re(this,It,"f")}get state$(){return re(this,Ht,"f")}next(e,r){re(this,si,"f").next({args:e,options:r})}query(e,r){var n,o,i;const a=((o=(n=r==null?void 0:r.cache)===null||n===void 0?void 0:n.key)!==null&&o!==void 0?o:re(this,ci,"f"))(e),s=((i=r==null?void 0:r.cache)===null||i===void 0?void 0:i.validate)||re(this,ns,"f"),c=re(this,Ht,"f").getItem(a),l=!c||!s(c,e),u=Object.assign({transaction:nv()},r==null?void 0:r.client);l&&(r!=null&&r.skipQueue?re(this,It,"f").next(e,u):this.next(e,u));const d=re(this,It,"f").action$.pipe(Pn("cancel"),bo(p=>{var v;return((v=p.meta.request)===null||v===void 0?void 0:v.meta.transaction)===u.transaction}),ht(p=>{throw new Error("query was canceled",{cause:p})})),h=re(this,Ht,"f").action$.pipe(Pn("set"),bo(p=>p.payload.value.transaction===u.transaction),ht(p=>p.payload.value),Z_(1));return new le(p=>{if(c&&p.next(c),l){const v=()=>re(this,It,"f").cancel(u.transaction);p.add(v),W_(h,d).pipe(hu(()=>p.remove(v))).subscribe(p)}else p.complete()})}queryAsync(e,r){const n=r||{},{awaitResolve:o}=n,i=nC(n,["awaitResolve"]);return(o?uu:Ki)(this.query(e,i))}complete(){re(this,xr,"f").unsubscribe()}}xr=new WeakMap,It=new WeakMap,Ht=new WeakMap,si=new WeakMap,ci=new WeakMap,ns=new WeakMap;const La=t=>t.pipe(ht(e=>e.value));var sr=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)},kf=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},Fn,lr;class iC extends le{constructor(e){super(r=>sr(this,lr,"f").subscribe(r)),Fn.set(this,void 0),lr.set(this,void 0),kf(this,Fn,new Ii(e.query),"f"),kf(this,lr,new mc(e.initial),"f")}get currentContext(){return sr(this,lr,"f").value}get currentContext$(){return sr(this,lr,"f").asObservable()}get status$(){return sr(this,Fn,"f").client.pipe(ht(e=>e.status))}get client(){return sr(this,Fn,"f")}setCurrentContext(e){typeof e=="string"?this.resolveContext(e).pipe(Ao(()=>qi)).subscribe(r=>sr(this,lr,"f").next(r)):e!==sr(this,lr,"f").value&&sr(this,lr,"f").next(e)}resolveContext(e){return sr(this,Fn,"f").query({id:e}).pipe(ht(r=>r.value))}}Fn=new WeakMap,lr=new WeakMap;var al=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},mt=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)},ur,os,li,zn;class aC{constructor(e){ur.set(this,void 0),os.set(this,void 0),li.set(this,void 0),zn.set(this,new Nr);const{config:r,event:n,parentContext:o}=e;al(this,ur,new iC(r.getContext),"f"),al(this,os,new Ii(r.queryContext),"f"),n&&(al(this,li,n,"f"),mt(this,zn,"f").add(mt(this,ur,"f").currentContext$.pipe(xm()).subscribe(([i,a])=>{n.dispatchEvent("onCurrentContextChanged",{source:this,canBubble:!0,detail:{previous:i,next:a}})})),mt(this,zn,"f").add(n.addEventListener("onCurrentContextChanged",i=>{i.source!==this&&(this.currentContext=i.detail.next)}))),o&&mt(this,zn,"f").add(o.contextClient.currentContext$.subscribe(i=>this.currentContext=i))}get contextClient(){return mt(this,ur,"f")}get queryClient(){return mt(this,os,"f")}get currentContext$(){return mt(this,ur,"f").currentContext$}get currentContext(){return mt(this,ur,"f").currentContext}set currentContext(e){mt(this,li,"f")?mt(this,li,"f").dispatchEvent("onCurrentContextChange",{source:this,canBubble:!0,cancelable:!0,detail:{context:e}}).then(r=>{r.canceled||mt(this,ur,"f").setCurrentContext(e)}):mt(this,ur,"f").setCurrentContext(e)}dispose(){mt(this,zn,"f").unsubscribe()}}ur=new WeakMap,os=new WeakMap,li=new WeakMap,zn=new WeakMap;var sC=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const cC="context",lC={name:cC,configure:()=>new qw,initialize:t=>sC(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 aC({config:r,event:n,parentContext:o})}),dispose:t=>{t.instance.dispose()}},uC=(t,e)=>JSON.stringify(t)===JSON.stringify(e);var Ha=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},Ke=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)},$n,ui,di,jn,Mr;class dC extends le{constructor(e){super(o=>this.current$.subscribe(o)),$n.set(this,void 0),ui.set(this,void 0),di.set(this,void 0),jn.set(this,void 0),Mr.set(this,new Nr);const{event:r,config:n}=e;Ha(this,jn,new mc(void 0),"f"),Ha(this,$n,new Ii(n.getApp),"f"),Ha(this,ui,new Ii(n.getApps),"f"),Ha(this,di,new Ii(n.getConfig),"f"),Ke(this,Mr,"f").add(Ke(this,$n,"f").complete),Ke(this,Mr,"f").add(Ke(this,ui,"f").complete),Ke(this,Mr,"f").add(Ke(this,di,"f").complete),Ke(this,Mr,"f").add(this.current$.pipe(xm(),Um(()=>!!r)).subscribe(([o,i])=>{r==null||r.dispatchEvent("onCurrentAppChanged",{source:this,detail:{previous:o,next:i}})}))}get current(){return Ke(this,jn,"f").value}get current$(){return Ke(this,jn,"f").pipe(Om(uC))}getApp(e){return La(Ke(this,$n,"f").query({appKey:e}))}getAllApps(){return La(Ke(this,ui,"f").query())}getAppConfig(e,r){return La(Ke(this,di,"f").query({appKey:e,tag:r}))}setCurrentApp(e){return new Promise((r,n)=>{const o=Ke(this,$n,"f").query({appKey:e},{skipQueue:!0});Ke(this,Mr,"f").add(La(o).subscribe({next:i=>Ke(this,jn,"f").next(i),error:n,complete:r}))})}dispose(){Ke(this,Mr,"f").unsubscribe()}}$n=new WeakMap,ui=new WeakMap,di=new WeakMap,jn=new WeakMap,Mr=new WeakMap;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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const bu="app",fC={name:bu,configure:()=>new pC,initialize:t=>hC(void 0,void 0,void 0,function*(){const e=yield t.config.createConfig(t),r=yield t.requireInstance("event").catch(()=>{});return new dC({config:e,event:r})}),dispose:t=>{t.instance.dispose()}};var bf=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class pC{constructor(){this.defaultExpireTime=1*60*1e3}_createHttpClient(e){return bf(this,void 0,void 0,function*(){const r=yield e.requireInstance("http");return r.hasClient(bu)?r.createClient(bu):yield(yield e.requireInstance("serviceDiscovery")).createClient("portal")})}createConfig(e){return bf(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 Af=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class gC{constructor(e){this.clientKey=e.clientKey,this.endpoint=e.endpoint,this.clientCtor=e.clientCtor}createHttpClientClient(e){return Af(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 Af(this,void 0,void 0,function*(){if(!this.endpoint)throw Error("no endpoint defined!");return new this.clientCtor({http:e,endpoint:this.endpoint})})}}var sl=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class mC{constructor(e,r){this._client=e,this._http=r}get environment(){return this._client.environment}resolveService(e){return sl(this,void 0,void 0,function*(){return this._client.resolveService(e)})}createClient(e,r){return sl(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 sl(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(Fm(o,{baseUri:i,defaultScopes:a}))})}}var Da=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class vC{constructor({http:e,endpoint:r}){this.http=e,this.endpoint=r}get environment(){return Object.assign({},this._getEnvironment())}selector(e){return Da(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 Da(this,void 0,void 0,function*(){const{services:r}=yield this._getEnvironment();return r[e]})}_getEnvironment(){return Da(this,void 0,void 0,function*(){return this._environment||(this._environment=yield this._fetchServiceDescription()),this._environment})}_fetchServiceDescription(){return Da(this,void 0,void 0,function*(){try{const{http:e,selector:r,endpoint:n}=this;return yield e.fetch(n,{selector:r})}catch(e){throw console.error(e),e}})}}const yC="serviceDiscovery";var _C=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const EC={name:yC,configure:()=>new gC({clientCtor:vC,clientKey:"service_discovery",endpoint:"/_discovery/environments/current"}),initialize:({config:t,requireInstance:e})=>_C(void 0,void 0,void 0,function*(){const r=yield e("http"),n=yield t.createHttpClientClient(r),o=yield t.createClient(n);return new mC(o,r)})};class wC{}class av extends Error{constructor(e,r){super(`unsupported version ${e}`,{cause:r}),this.version=e}}const CC=(t,e)=>{var r;const n=(r=Cr[t])!==null&&r!==void 0?r:t;switch(n){case Cr.v2:throw new av(t);case Cr.v1:default:{const{id:o}=e,i=new URLSearchParams;return i.append("api-version",n),`/contexts/${o}/?${String(i)}`}}},SC=(t,e,r)=>[CC(t,e),r],TC=(t,e,r="json")=>(n,o)=>t[r](...SC(e,n,o));var IC=["eq","ne","gt","ge","lt","le"],Fa=["and","or","not"],kC=["any","all"],bC=["startswith","endswith","contains"],AC=["expand","levels","select","skip","top","count","orderby","filter"],Rf=/\((.*)\)/,Nf=/(?!indexof)\((\w+)\)/,Pf;(function(t){t.sum="sum",t.min="min",t.max="max",t.average="average",t.countdistinct="countdistinct"})(Pf||(Pf={}));var cr="";function RC(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,d=e.key,h=e.count,p=e.expand,v=e.action,y=e.func,I="",g=[],f={};if(d!=null&&(I+="(".concat(tr(d,g),")")),(c||typeof h=="object")&&(f.$filter=Ji(typeof h=="object"?h:c,g)),l&&(f.$apply=sv(l)),p&&(f.$expand=is(p)),u&&(f.$orderby=xd(u)),h&&(typeof h=="boolean"?f.$count=!0:I+="/$count"),typeof a=="number"&&(f.$top=a),typeof s=="number"&&(f.$skip=s),v&&(I+="/".concat(v)),y){if(typeof y=="string")I+="/".concat(y);else if(typeof y=="object"){var m=Object.keys(y)[0],E=tr(y[m],g);I+="/".concat(m),E!==""&&(I+="(".concat(E,")"))}}return g.length>0&&Object.assign(f,g.reduce(function(b,R){var x;return Object.assign(b,(x={},x["@".concat(R.name)]=tr(R.value),x))},{})),MC(I,An({$select:r,$search:n,$skiptoken:o,$format:i},f))}function cl(t,e,r){return r===void 0&&(r=[]),"".concat(t," eq ").concat(tr(e,r))}function Ji(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,d){var h=i[d];if(h===void 0)return u;var p="";if(s?d===cr?p=s:Nf.test(d)?p=d.replace(Nf,function(f,m){return m.trim()===cr?"(".concat(s,")"):"(".concat(s,"/").concat(m.trim(),")")}):Rf.test(d)?p=d.replace(Rf,function(f,m){return m.trim()===cr?"(".concat(s,")"):"(".concat(s,"/").concat(m.trim(),")")}):p="".concat(s,"/").concat(d):p=d,d===cr&&Array.isArray(h))return u.concat(h.map(function(f){return cl(p,f)}));if(["number","string","boolean"].indexOf(typeof h)!==-1||h instanceof Date||h===null)u.push(cl(p,h,a));else if(Array.isArray(h)){var v=d,y=h.map(function(f){return Ji(f,a,s)}).filter(function(f){return f}).map(function(f){return Fa.indexOf(v)!==-1?"(".concat(f,")"):f});y.length&&(Fa.indexOf(v)!==-1?y.length&&(v==="not"?u.push(Of(y)):u.push("(".concat(y.join(" ".concat(v," ")),")"))):u.push(y.join(" ".concat(v," "))))}else if(Fa.indexOf(p)!==-1){var I=p,y=Object.keys(h).map(function(m){var E;return n((E={},E[m]=h[m],E))});y.length&&(I==="not"?u.push(Of(y)):u.push("(".concat(y.join(" ".concat(I," ")),")")))}else if(typeof h=="object")if("type"in h)u.push(cl(p,h,a));else{var g=Object.keys(h);g.forEach(function(f){if(h[f]!==void 0)if(IC.indexOf(f)!==-1)u.push("".concat(p," ").concat(f," ").concat(tr(h[f],a)));else if(Fa.indexOf(f)!==-1)Array.isArray(h[f])?u.push(h[f].map(function(R){return"("+n(R,a,p)+")"}).join(" ".concat(f," "))):u.push("("+n(h[f],a,p)+")");else if(kC.indexOf(f)!==-1){var m=o(d.toLowerCase(),h[f],f,p);m&&u.push(m)}else if(f==="has")u.push("".concat(p," ").concat(f," ").concat(tr(h[f],a)));else if(f==="in"){var E=Array.isArray(h[f])?h[f]:h[f].value.map(function(R){return{type:h[f].type,value:R}});u.push(p+" in ("+E.map(function(R){return tr(R,a)}).join(",")+")")}else if(bC.indexOf(f)!==-1)u.push("".concat(f,"(").concat(p,",").concat(tr(h[f],a),")"));else{var b=n(h,a,p);b&&u.push(b)}})}else throw new Error("Unexpected value type: ".concat(h));return u},[]);c=l.join(" and ")}return c}function o(i,a,s,c){var l="";if(typeof a=="string"||a instanceof String)l=NC(i,a,s,c);else if(a){var u=Array.isArray(a)?a.reduce(function(h,p){return p.hasOwnProperty(cr)?(h.hasOwnProperty(cr)||(h[cr]=[]),h[cr].push(p[cr]),h):An(An({},h),p)},{}):a,d=n(u,e,i);l="".concat(c,"/").concat(s,"(").concat(d?"".concat(i,":").concat(d):"",")")}return l}}function NC(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 PC(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 tr(t,e){if(typeof t=="string")return"'".concat(PC(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 tr(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(tr(o,e))}).join(",")}return t}function is(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 is(r)}).join(","));if(typeof t=="object"){var e=Object.keys(t);return e.some(function(r){return AC.indexOf(r.toLowerCase())!==-1})?e.map(function(r){var n;switch(r){case"filter":n=Ji(t[r]);break;case"orderBy":n=xd(t[r]);break;case"levels":case"count":case"skip":case"top":n="".concat(t[r]);break;default:n=is(t[r])}return"$".concat(r.toLowerCase(),"=").concat(n)}).join(";"):e.map(function(r){var n=is(t[r]);return n?"".concat(r,"(").concat(n,")"):r}).join(",")}return""}function sv(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=dm(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(OC(i),")")),a){var u=Ji(a);u&&n.push("filter(".concat(Ji(u),")"))}return s&&n.push("groupby(".concat(xC(s),")")),n},[]);return r.join("/")||void 0}function OC(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 xC(t){if(!t.properties)throw new Error("'properties' property required for groupBy");var e="(".concat(t.properties.join(","),")");return t.transform&&(e+=",".concat(sv(t.transform))),e}function xd(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 xd(o,"".concat(n,"/"))}).map(function(r){return"".concat(e).concat(r)}).join(","):"".concat(e).concat(String(t))}function MC(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 Of(t){return"not(".concat(t.join(" and "),")")}const UC=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]})}},{}),LC=t=>Object.keys(t).reduce((e,r)=>{switch(r){case"filter":return Object.assign(Object.assign({},e),{[r]:UC(t.filter)});default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),HC=t=>typeof t=="string"?t:RC(LC(t)),DC=(t,e)=>{var r;const n=(r=Cr[t])!==null&&r!==void 0?r:t;switch(n){case Cr.v2:throw new av(t);case Cr.v1:default:{const{query:o,includeDeleted:i}=e,a=new URLSearchParams(HC(o));return a.append("api-version",n),i&&a.append("includeDeleted","true"),`/contexts/?${String(a)}`}}},FC=(t,e,r)=>[DC(t,e),r],zC=(t,e,r="json")=>(n,o)=>t[r](...FC(e,n,o));class $C{constructor(e,r){this._client=e,this._method=r}get Version(){return Cr}get(e,...r){return TC(this._client,e,this._method)(...r)}query(e,...r){return zC(this._client,e,this._method)(...r)}}var Cr;(function(t){t.v1="1.0",t.v2="2.0"})(Cr||(Cr={}));const jC=(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)}`}}},qC=(t,e,r)=>{const n=jC(t,e),o=Object.assign({},{method:"Delete"},r);return[n,o]},BC=(t,e,r="json")=>(n,o)=>t[r](...qC(e,n,o)),KC=BC,GC=(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)}`}}},VC=(t,e,r)=>[GC(t,e),r],WC=(t,e,r="json")=>(n,o)=>t[r](...VC(e,n,o)),YC=WC,QC=(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)}`}}},JC=(t,e,r)=>{const n=QC(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]},XC=(t,e,r="json")=>(n,o)=>t[r](...JC(e,n,o)),ZC=XC;class eS{constructor(e,r){this._client=e,this._method=r}get(e,...r){return YC(this._client,e,this._method)(...r)}post(e,...r){return ZC(this._client,e,this._method)(...r)}delete(e,...r){return KC(this._client,e,this._method)(...r)}}const tS=eS;var xf=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class rS{constructor({createClient:e}){this._createClientFn=e}createBookmarksClient(e){return xf(this,void 0,void 0,function*(){const r=yield this._createClientFn("bookmarks");return new tS(r,e)})}createContextClient(e){return xf(this,void 0,void 0,function*(){const r=yield this._createClientFn("context");return new $C(r,e)})}}var cv=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const nS="services",oS=(t,e)=>r=>cv(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}`)}),iS={name:nS,configure:()=>new wC,initialize:({ref:t,config:e,requireInstance:r,hasModule:n})=>cv(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=oS(o,i)}if(!e.createClient)throw Error("missing configuration for creating API client");return new rS(e)})},aS=iS;class sS extends cE{constructor(){super([gE,Ad,ev,EC,aS,fC,lC]),this.logger=new um("FrameworkConfigurator")}configureHttp(...e){this.addConfig(kE(...e))}configureHttpClient(...e){this.addConfig(Fm(...e))}configureMsal(...e){this.addConfig(Fw(...e))}configureServiceDiscovery(e){this.configureHttpClient("service_discovery",e.client)}}var cS=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const lS=(t,e)=>cS(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 Md={exports:{}},Ec={};/**
61
+ ***************************************************************************** */var gu=function(t,e){return gu=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])},gu(t,e)};function pt(t,e){gu(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 z(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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})}function $(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 _c(){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 v7.6.0 2022-10-10 */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},sa=[_.OPENID_SCOPE,_.PROFILE_SCOPE,_.OFFLINE_ACCESS_SCOPE],nf=_c(sa,[_.EMAIL_SCOPE]),Gt;(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"})(Gt||(Gt={}));var Te;(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"})(Te||(Te={}));var Us;(function(t){t.COMMON="common",t.ORGANIZATIONS="organizations",t.CONSUMERS="consumers"})(Us||(Us={}));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 no;(function(t){t.ACCESS_TOKEN="access_token",t.XMS_CC="xms_cc"})(no||(no={}));var Ye={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},wi;(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"})(wi||(wi={}));var of={PLAIN:"plain",S256:"S256"},Ls;(function(t){t.QUERY="query",t.FRAGMENT="fragment",t.FORM_POST="form_post"})(Ls||(Ls={}));var Hs;(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"})(Hs||(Hs={}));var hr;(function(t){t.MSSTS_ACCOUNT_TYPE="MSSTS",t.ADFS_ACCOUNT_TYPE="ADFS",t.MSAV1_ACCOUNT_TYPE="MSA",t.GENERIC_ACCOUNT_TYPE="Generic"})(hr||(hr={}));var wt;(function(t){t.CACHE_KEY_SEPARATOR="-",t.CLIENT_INFO_SEPARATOR="."})(wt||(wt={}));var G;(function(t){t.ID_TOKEN="IdToken",t.ACCESS_TOKEN="AccessToken",t.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",t.REFRESH_TOKEN="RefreshToken"})(G||(G={}));var wn;(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"})(wn||(wn={}));var mr;(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"})(mr||(mr={}));var mu="appmetadata",kE="client_info",Ds="1",Ci={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},kt;(function(t){t.CONFIG="config",t.CACHE="cache",t.NETWORK="network",t.HARDCODED_VALUES="hardcoded_values"})(kt||(kt={}));var xe={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"},Z;(function(t){t.BEARER="Bearer",t.POP="pop",t.SSH="ssh-cert"})(Z||(Z={}));var Si={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},af={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},Fs;(function(t){t.username="username",t.password="password"})(Fs||(Fs={}));var oo;(function(t){t[t.httpSuccess=200]="httpSuccess",t[t.httpBadRequest=400]="httpBadRequest"})(oo||(oo={}));var Hr;(function(t){t.FAILED_AUTO_DETECTION="1",t.INTERNAL_CACHE="2",t.ENVIRONMENT_VARIABLE="3",t.IMDS="4"})(Hr||(Hr={}));var pn;(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"})(pn||(pn={}));var yn;(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"})(yn||(yn={}));var vu;(function(t){t.Jwt="JWT",t.Jwk="JWK"})(vu||(vu={}));/*! @azure/msal-common v7.6.0 2022-10-10 */var xa={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."}},D=function(t){pt(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(xa.unexpectedError.code,xa.unexpectedError.desc+": "+r)},e.createPostRequestFailed=function(r){return new e(xa.postRequestFailed.code,xa.postRequestFailed.desc+": "+r)},e}(Error);/*! @azure/msal-common v7.6.0 2022-10-10 */var zs={createNewGuid:function(){var t="Crypto interface - createNewGuid() has not been implemented";throw D.createUnexpectedError(t)},base64Decode:function(){var t="Crypto interface - base64Decode() has not been implemented";throw D.createUnexpectedError(t)},base64Encode:function(){var t="Crypto interface - base64Encode() has not been implemented";throw D.createUnexpectedError(t)},generatePkceCodes:function(){return z(this,void 0,void 0,function(){var t;return $(this,function(e){throw t="Crypto interface - generatePkceCodes() has not been implemented",D.createUnexpectedError(t)})})},getPublicKeyThumbprint:function(){return z(this,void 0,void 0,function(){var t;return $(this,function(e){throw t="Crypto interface - getPublicKeyThumbprint() has not been implemented",D.createUnexpectedError(t)})})},removeTokenBindingKey:function(){return z(this,void 0,void 0,function(){var t;return $(this,function(e){throw t="Crypto interface - removeTokenBindingKey() has not been implemented",D.createUnexpectedError(t)})})},clearKeystore:function(){return z(this,void 0,void 0,function(){var t;return $(this,function(e){throw t="Crypto interface - clearKeystore() has not been implemented",D.createUnexpectedError(t)})})},signJwt:function(){return z(this,void 0,void 0,function(){var t;return $(this,function(e){throw t="Crypto interface - signJwt() has not been implemented",D.createUnexpectedError(t)})})},hashString:function(){return z(this,void 0,void 0,function(){var t;return $(this,function(e){throw t="Crypto interface - hashString() has not been implemented",D.createUnexpectedError(t)})})}};/*! @azure/msal-common v7.6.0 2022-10-10 */var k={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."}},O=function(t){pt(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(k.clientInfoDecodingError.code,k.clientInfoDecodingError.desc+" Failed with error: "+r)},e.createClientInfoEmptyError=function(){return new e(k.clientInfoEmptyError.code,""+k.clientInfoEmptyError.desc)},e.createTokenParsingError=function(r){return new e(k.tokenParsingError.code,k.tokenParsingError.desc+" Failed with error: "+r)},e.createTokenNullOrEmptyError=function(r){return new e(k.nullOrEmptyToken.code,k.nullOrEmptyToken.desc+" Raw Token Value: "+r)},e.createEndpointDiscoveryIncompleteError=function(r){return new e(k.endpointResolutionError.code,k.endpointResolutionError.desc+" Detail: "+r)},e.createNetworkError=function(r,n){return new e(k.networkError.code,k.networkError.desc+" | Fetch client threw: "+n+" | Attempted to reach: "+r.split("?")[0])},e.createUnableToGetOpenidConfigError=function(r){return new e(k.unableToGetOpenidConfigError.code,k.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+r)},e.createHashNotDeserializedError=function(r){return new e(k.hashNotDeserialized.code,k.hashNotDeserialized.desc+" Given Object: "+r)},e.createInvalidStateError=function(r,n){return new e(k.invalidStateError.code,k.invalidStateError.desc+" Invalid State: "+r+", Root Err: "+n)},e.createStateMismatchError=function(){return new e(k.stateMismatchError.code,k.stateMismatchError.desc)},e.createStateNotFoundError=function(r){return new e(k.stateNotFoundError.code,k.stateNotFoundError.desc+": "+r)},e.createNonceMismatchError=function(){return new e(k.nonceMismatchError.code,k.nonceMismatchError.desc)},e.createAuthTimeNotFoundError=function(){return new e(k.authTimeNotFoundError.code,k.authTimeNotFoundError.desc)},e.createMaxAgeTranspiredError=function(){return new e(k.maxAgeTranspiredError.code,k.maxAgeTranspiredError.desc)},e.createNonceNotFoundError=function(r){return new e(k.nonceNotFoundError.code,k.nonceNotFoundError.desc+": "+r)},e.createMultipleMatchingTokensInCacheError=function(){return new e(k.multipleMatchingTokens.code,k.multipleMatchingTokens.desc+".")},e.createMultipleMatchingAccountsInCacheError=function(){return new e(k.multipleMatchingAccounts.code,k.multipleMatchingAccounts.desc)},e.createMultipleMatchingAppMetadataInCacheError=function(){return new e(k.multipleMatchingAppMetadata.code,k.multipleMatchingAppMetadata.desc)},e.createTokenRequestCannotBeMadeError=function(){return new e(k.tokenRequestCannotBeMade.code,k.tokenRequestCannotBeMade.desc)},e.createAppendEmptyScopeToSetError=function(r){return new e(k.appendEmptyScopeError.code,k.appendEmptyScopeError.desc+" Given Scope: "+r)},e.createRemoveEmptyScopeFromSetError=function(r){return new e(k.removeEmptyScopeError.code,k.removeEmptyScopeError.desc+" Given Scope: "+r)},e.createAppendScopeSetError=function(r){return new e(k.appendScopeSetError.code,k.appendScopeSetError.desc+" Detail Error: "+r)},e.createEmptyInputScopeSetError=function(){return new e(k.emptyInputScopeSetError.code,""+k.emptyInputScopeSetError.desc)},e.createDeviceCodeCancelledError=function(){return new e(k.DeviceCodePollingCancelled.code,""+k.DeviceCodePollingCancelled.desc)},e.createDeviceCodeExpiredError=function(){return new e(k.DeviceCodeExpired.code,""+k.DeviceCodeExpired.desc)},e.createDeviceCodeUnknownError=function(){return new e(k.DeviceCodeUnknownError.code,""+k.DeviceCodeUnknownError.desc)},e.createNoAccountInSilentRequestError=function(){return new e(k.NoAccountInSilentRequest.code,""+k.NoAccountInSilentRequest.desc)},e.createNullOrUndefinedCacheRecord=function(){return new e(k.invalidCacheRecord.code,k.invalidCacheRecord.desc)},e.createInvalidCacheEnvironmentError=function(){return new e(k.invalidCacheEnvironment.code,k.invalidCacheEnvironment.desc)},e.createNoAccountFoundError=function(){return new e(k.noAccountFound.code,k.noAccountFound.desc)},e.createCachePluginError=function(){return new e(k.CachePluginError.code,""+k.CachePluginError.desc)},e.createNoCryptoObjectError=function(r){return new e(k.noCryptoObj.code,""+k.noCryptoObj.desc+r)},e.createInvalidCacheTypeError=function(){return new e(k.invalidCacheType.code,""+k.invalidCacheType.desc)},e.createUnexpectedAccountTypeError=function(){return new e(k.unexpectedAccountType.code,""+k.unexpectedAccountType.desc)},e.createUnexpectedCredentialTypeError=function(){return new e(k.unexpectedCredentialType.code,""+k.unexpectedCredentialType.desc)},e.createInvalidAssertionError=function(){return new e(k.invalidAssertion.code,""+k.invalidAssertion.desc)},e.createInvalidCredentialError=function(){return new e(k.invalidClientCredential.code,""+k.invalidClientCredential.desc)},e.createRefreshRequiredError=function(){return new e(k.tokenRefreshRequired.code,k.tokenRefreshRequired.desc)},e.createUserTimeoutReachedError=function(){return new e(k.userTimeoutReached.code,k.userTimeoutReached.desc)},e.createTokenClaimsRequiredError=function(){return new e(k.tokenClaimsRequired.code,k.tokenClaimsRequired.desc)},e.createNoAuthCodeInServerResponseError=function(){return new e(k.noAuthorizationCodeFromServer.code,k.noAuthorizationCodeFromServer.desc)},e.createBindingKeyNotRemovedError=function(){return new e(k.bindingKeyNotRemovedError.code,k.bindingKeyNotRemovedError.desc)},e.createLogoutNotSupportedError=function(){return new e(k.logoutNotSupported.code,k.logoutNotSupported.desc)},e.createKeyIdMissingError=function(){return new e(k.keyIdMissing.code,k.keyIdMissing.desc)},e}(D);/*! @azure/msal-common v7.6.0 2022-10-10 */var N=function(){function t(){}return t.decodeAuthToken=function(e){if(t.isEmpty(e))throw O.createTokenNullOrEmptyError(e);var r=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/,n=r.exec(e);if(!n||n.length<4)throw O.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 v7.6.0 2022-10-10 */var Ee;(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"})(Ee||(Ee={}));var Nd=function(){function t(e,r,n){this.level=Ee.Info;var o=function(){};this.localCallback=e.loggerCallback||o,this.piiLoggingEnabled=e.piiLoggingEnabled||!1,this.level=typeof e.logLevel=="number"?e.logLevel:Ee.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;N.isEmpty(r.correlationId)?N.isEmpty(this.correlationId)?o="["+n+"]":o="["+n+"] : ["+this.correlationId+"]":o="["+n+"] : ["+r.correlationId+"]";var i=o+" : "+this.packageName+"@"+this.packageVersion+" : "+Ee[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:Ee.Error,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.errorPii=function(e,r){this.logMessage(e,{logLevel:Ee.Error,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.warning=function(e,r){this.logMessage(e,{logLevel:Ee.Warning,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.warningPii=function(e,r){this.logMessage(e,{logLevel:Ee.Warning,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.info=function(e,r){this.logMessage(e,{logLevel:Ee.Info,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.infoPii=function(e,r){this.logMessage(e,{logLevel:Ee.Info,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.verbose=function(e,r){this.logMessage(e,{logLevel:Ee.Verbose,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.verbosePii=function(e,r){this.logMessage(e,{logLevel:Ee.Verbose,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.trace=function(e,r){this.logMessage(e,{logLevel:Ee.Trace,containsPii:!1,correlationId:r||_.EMPTY_STRING})},t.prototype.tracePii=function(e,r){this.logMessage(e,{logLevel:Ee.Trace,containsPii:!0,correlationId:r||_.EMPTY_STRING})},t.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var bE="@azure/msal-common",Fm="7.6.0";/*! @azure/msal-common v7.6.0 2022-10-10 */var Vi;(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"})(Vi||(Vi={}));/*! @azure/msal-common v7.6.0 2022-10-10 */var Wi=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 G.ID_TOKEN:return mr.ID_TOKEN;case G.ACCESS_TOKEN:case G.ACCESS_TOKEN_WITH_AUTH_SCHEME:return mr.ACCESS_TOKEN;case G.REFRESH_TOKEN:return mr.REFRESH_TOKEN;default:throw O.createUnexpectedCredentialTypeError()}},t.getCredentialType=function(e){return e.indexOf(G.ACCESS_TOKEN.toLowerCase())!==-1?e.indexOf(G.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())!==-1?G.ACCESS_TOKEN_WITH_AUTH_SCHEME:G.ACCESS_TOKEN:e.indexOf(G.ID_TOKEN.toLowerCase())!==-1?G.ID_TOKEN:e.indexOf(G.REFRESH_TOKEN.toLowerCase())!==-1?G.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(wt.CACHE_KEY_SEPARATOR).toLowerCase()},t.generateAccountIdForCacheKey=function(e,r){var n=[e,r];return n.join(wt.CACHE_KEY_SEPARATOR).toLowerCase()},t.generateCredentialIdForCacheKey=function(e,r,n,o){var i=e===G.REFRESH_TOKEN&&o||r,a=[e,i,n||_.EMPTY_STRING];return a.join(wt.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()!==Z.BEARER.toLowerCase()?e.toLowerCase():_.EMPTY_STRING},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var j={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"}},se=function(t){pt(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(j.redirectUriNotSet.code,j.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(j.postLogoutUriNotSet.code,j.postLogoutUriNotSet.desc)},e.createClaimsRequestParsingError=function(r){return new e(j.claimsRequestParsingError.code,j.claimsRequestParsingError.desc+" Given value: "+r)},e.createInsecureAuthorityUriError=function(r){return new e(j.authorityUriInsecure.code,j.authorityUriInsecure.desc+" Given URI: "+r)},e.createUrlParseError=function(r){return new e(j.urlParseError.code,j.urlParseError.desc+" Given Error: "+r)},e.createUrlEmptyError=function(){return new e(j.urlEmptyError.code,j.urlEmptyError.desc)},e.createEmptyScopesArrayError=function(){return new e(j.emptyScopesError.code,""+j.emptyScopesError.desc)},e.createClientIdSingleScopeError=function(r){return new e(j.clientIdSingleScopeError.code,j.clientIdSingleScopeError.desc+" Given Scopes: "+r)},e.createInvalidPromptError=function(r){return new e(j.invalidPrompt.code,j.invalidPrompt.desc+" Given value: "+r)},e.createInvalidClaimsRequestError=function(){return new e(j.invalidClaimsRequest.code,j.invalidClaimsRequest.desc)},e.createEmptyLogoutRequestError=function(){return new e(j.logoutRequestEmptyError.code,j.logoutRequestEmptyError.desc)},e.createEmptyTokenRequestError=function(){return new e(j.tokenRequestEmptyError.code,j.tokenRequestEmptyError.desc)},e.createInvalidCodeChallengeMethodError=function(){return new e(j.invalidCodeChallengeMethod.code,j.invalidCodeChallengeMethod.desc)},e.createInvalidCodeChallengeParamsError=function(){return new e(j.invalidCodeChallengeParams.code,j.invalidCodeChallengeParams.desc)},e.createInvalidCloudDiscoveryMetadataError=function(){return new e(j.invalidCloudDiscoveryMetadata.code,j.invalidCloudDiscoveryMetadata.desc)},e.createInvalidAuthorityMetadataError=function(){return new e(j.invalidAuthorityMetadata.code,j.invalidAuthorityMetadata.desc)},e.createUntrustedAuthorityError=function(){return new e(j.untrustedAuthority.code,j.untrustedAuthority.desc)},e.createInvalidAzureCloudInstanceError=function(){return new e(j.invalidAzureCloudInstance.code,j.invalidAzureCloudInstance.desc)},e.createMissingSshJwkError=function(){return new e(j.missingSshJwk.code,j.missingSshJwk.desc)},e.createMissingSshKidError=function(){return new e(j.missingSshKid.code,j.missingSshKid.desc)},e.createMissingNonceAuthenticationHeadersError=function(){return new e(j.missingNonceAuthenticationHeader.code,j.missingNonceAuthenticationHeader.desc)},e.createInvalidAuthenticationHeaderError=function(r,n){return new e(j.invalidAuthenticationHeader.code,j.invalidAuthenticationHeader.desc+". Invalid header: "+r+". Details: "+n)},e}(O);/*! @azure/msal-common v7.6.0 2022-10-10 */var tt=function(){function t(e){var r=this,n=e?N.trimArrayEntries(_c(e)):[],o=n?N.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 se.createEmptyScopesArrayError()},t.prototype.containsScope=function(e){var r=this.printScopesLowerCase().split(" "),n=new t(r);return N.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 nf.forEach(function(n){e.containsScope(n)&&(r+=1)}),this.scopes.size===r},t.prototype.appendScope=function(e){N.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 O.createAppendScopeSetError(n)}},t.prototype.removeScope=function(e){if(N.isEmpty(e))throw O.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},t.prototype.removeOIDCScopes=function(){var e=this;nf.forEach(function(r){e.scopes.delete(r)})},t.prototype.unionScopeSets=function(e){if(!e)throw O.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 O.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 v7.6.0 2022-10-10 */function $s(t,e){if(N.isEmpty(t))throw O.createClientInfoEmptyError();try{var r=e.base64Decode(t);return JSON.parse(r)}catch(n){throw O.createClientInfoDecodingError(n.message)}}function io(t){if(N.isEmpty(t))throw O.createClientInfoDecodingError("Home account ID was empty.");var e=t.split(wt.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?_.EMPTY_STRING:e[1]}}/*! @azure/msal-common v7.6.0 2022-10-10 */var Rt;(function(t){t[t.Default=0]="Default",t[t.Adfs=1]="Adfs",t[t.Dsts=2]="Dsts"})(Rt||(Rt={}));/*! @azure/msal-common v7.6.0 2022-10-10 */var He=function(){function t(){}return t.prototype.generateAccountId=function(){var e=[this.homeAccountId,this.environment];return e.join(wt.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 hr.ADFS_ACCOUNT_TYPE:return mr.ADFS;case hr.MSAV1_ACCOUNT_TYPE:return mr.MSA;case hr.MSSTS_ACCOUNT_TYPE:return mr.MSSTS;case hr.GENERIC_ACCOUNT_TYPE:return mr.GENERIC;default:throw O.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(wt.CACHE_KEY_SEPARATOR).toLowerCase()},t.createAccount=function(e,r,n,o,i,a,s,c){var l,u,d,h,p,v,y=new t;y.authorityType=hr.MSSTS_ACCOUNT_TYPE,y.clientInfo=e,y.homeAccountId=r,y.nativeAccountId=c;var I=s||o&&o.getPreferredCache();if(!I)throw O.createInvalidCacheEnvironmentError();if(y.environment=I,y.realm=((l=n==null?void 0:n.claims)===null||l===void 0?void 0:l.tid)||_.EMPTY_STRING,n){y.idTokenClaims=n.claims,y.localAccountId=((u=n==null?void 0:n.claims)===null||u===void 0?void 0:u.oid)||((d=n==null?void 0:n.claims)===null||d===void 0?void 0:d.sub)||_.EMPTY_STRING;var g=(h=n==null?void 0:n.claims)===null||h===void 0?void 0:h.preferred_username,f=!((p=n==null?void 0:n.claims)===null||p===void 0)&&p.emails?n.claims.emails[0]:null;y.username=g||f||_.EMPTY_STRING,y.name=(v=n==null?void 0:n.claims)===null||v===void 0?void 0:v.name}return y.cloudGraphHostName=i,y.msGraphHost=a,y},t.createGenericAccount=function(e,r,n,o,i,a){var s,c,l,u,d=new t;d.authorityType=n&&n.authorityType===Rt.Adfs?hr.ADFS_ACCOUNT_TYPE:hr.GENERIC_ACCOUNT_TYPE,d.homeAccountId=e,d.realm=_.EMPTY_STRING;var h=a||n&&n.getPreferredCache();if(!h)throw O.createInvalidCacheEnvironmentError();return r&&(d.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,d.username=((l=r==null?void 0:r.claims)===null||l===void 0?void 0:l.upn)||_.EMPTY_STRING,d.name=((u=r==null?void 0:r.claims)===null||u===void 0?void 0:u.name)||_.EMPTY_STRING,d.idTokenClaims=r==null?void 0:r.claims),d.environment=h,d.cloudGraphHostName=o,d.msGraphHost=i,d},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===Rt.Adfs||r===Rt.Dsts)return s;if(e)try{var c=$s(e,o);if(!N.isEmpty(c.uid)&&!N.isEmpty(c.utid))return""+c.uid+wt.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 v7.6.0 2022-10-10 */var ir=function(){function t(e,r){if(N.isEmpty(e))throw O.createTokenNullOrEmptyError(e);this.rawToken=e,this.claims=t.extractTokenClaims(e,r)}return t.extractTokenClaims=function(e,r){var n=N.decodeAuthToken(e);try{var o=n.JWSPayload,i=r.base64Decode(o);return JSON.parse(i)}catch(a){throw O.createTokenParsingError(a)}},t.checkMaxAge=function(e,r){var n=3e5;if(r===0||Date.now()-n>e+r)throw O.createMaxAgeTranspiredError()},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Dt=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 He,a),c=s.getAccountInfo(),l=e.readIdTokenFromCache(e.clientId,c);return l&&!c.idTokenClaims&&(c.idToken=l.secret,c.idTokenClaims=new ir(l.secret,e.cryptoImpl).claims),c});return i},t.prototype.saveCacheRecord=function(e){return z(this,void 0,void 0,function(){return $(this,function(r){switch(r.label){case 0:if(!e)throw O.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 z(this,void 0,void 0,function(){var r,n,o,i,a=this;return $(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=tt.fromString(e.target),o=Object.keys(r.accessTokens).map(function(c){return r.accessTokens[c]}),o?(i=[],o.forEach(function(c){var l=tt.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,d){var h=this,p=this.getKeys(),v={idTokens:{},accessTokens:{},refreshTokens:{}};return p.forEach(function(y){var I=Wi.getCredentialType(y);if(I!==_.NOT_DEFINED){var g=h.getSpecificCredential(y,I);if(!!g&&!(!!c&&!h.matchUserAssertionHash(g,c))&&!(typeof e=="string"&&!h.matchHomeAccountId(g,e))&&!(!!r&&!h.matchEnvironment(g,r))&&!(!!a&&!h.matchRealm(g,a))&&!(!!n&&!h.matchCredentialType(g,n))&&!(!!o&&!h.matchClientId(g,o))&&!(!!i&&!h.matchFamilyId(g,i))&&!(!!s&&!h.matchTarget(g,s))&&!((d||g.requestedClaimsHash)&&g.requestedClaimsHash!==d)&&!(n===G.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(!!l&&!h.matchTokenType(g,l)||l===Z.SSH&&u&&!h.matchKeyId(g,u)))){var f=h.updateCredentialCacheKey(y,g);switch(I){case G.ID_TOKEN:v.idTokens[f]=g;break;case G.ACCESS_TOKEN:case G.ACCESS_TOKEN_WITH_AUTH_SCHEME:v.accessTokens[f]=g;break;case G.REFRESH_TOKEN:v.refreshTokens[f]=g;break}}}}),v},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 z(this,void 0,void 0,function(){var e,r,n=this;return $(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 z(this,void 0,void 0,function(){var r;return $(this,function(n){switch(n.label){case 0:if(r=this.getAccount(e),!r)throw O.createNoAccountFoundError();return[4,this.removeAccountContext(r)];case 1:return[2,n.sent()&&this.removeItem(e,wn.ACCOUNT)]}})})},t.prototype.removeAccountContext=function(e){return z(this,void 0,void 0,function(){var r,n,o,i=this;return $(this,function(a){switch(a.label){case 0:return r=this.getKeys(),n=e.generateAccountId(),o=[],r.forEach(function(s){var c=Wi.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 z(this,void 0,void 0,function(){var r,n,o;return $(this,function(i){switch(i.label){case 0:if(r=e.generateCredentialKey(),e.credentialType.toLowerCase()!==G.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(e.tokenType!==Z.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(),O.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(r,wn.CREDENTIAL)]}})})},t.prototype.removeAppMetadata=function(){var e=this,r=this.getKeys();return r.forEach(function(n){e.isAppMetadata(n)&&e.removeItem(n,wn.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 ir(a.secret,this.cryptoImpl).claims),{account:i,idToken:a,accessToken:s,refreshToken:c,appMetadata:l}},t.prototype.readAccountFromCache=function(e){var r=He.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 O.createMultipleMatchingAccountsInCacheError();return n[0]},t.prototype.readIdTokenFromCache=function(e,r){var n={homeAccountId:r.homeAccountId,environment:r.environment,credentialType:G.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 O.createMultipleMatchingTokensInCacheError();return i[0]},t.prototype.readAccessTokenFromCache=function(e,r,n){var o=new tt(n.scopes||[]),i=n.authenticationScheme||Z.BEARER,a=i&&i.toLowerCase()!==Z.BEARER.toLowerCase()?G.ACCESS_TOKEN_WITH_AUTH_SCHEME:G.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(d){return c.accessTokens[d]}),u=l.length;if(u<1)return null;if(u>1)throw O.createMultipleMatchingTokensInCacheError();return l[0]},t.prototype.readRefreshTokenFromCache=function(e,r,n){var o=n?Ds:void 0,i={homeAccountId:r.homeAccountId,environment:r.environment,credentialType:G.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 O.createMultipleMatchingAppMetadataInCacheError();return i[0]},t.prototype.isAppMetadataFOCI=function(e,r){var n=this.readAppMetadataFromCache(e,r);return!!(n&&n.familyId===Ds)},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!==G.ACCESS_TOKEN&&e.credentialType!==G.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(n||!e.target)return!1;var o=tt.fromString(e.target),i=tt.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(mu)!==-1},t.prototype.isAuthorityMetadata=function(e){return e.indexOf(Ci.CACHE_KEY)!==-1},t.prototype.generateAuthorityMetadataCacheKey=function(e){return Ci.CACHE_KEY+"-"+this.clientId+"-"+e},t.prototype.getSpecificCredential=function(e,r){switch(r){case G.ID_TOKEN:return this.getIdTokenCredential(e);case G.ACCESS_TOKEN:case G.ACCESS_TOKEN_WITH_AUTH_SCHEME:return this.getAccessTokenCredential(e);case G.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}(),AE=function(t){pt(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 D.createUnexpectedError(r)},e.prototype.getAccount=function(){var r="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.setIdTokenCredential=function(){var r="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.getIdTokenCredential=function(){var r="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.setAccessTokenCredential=function(){var r="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.getAccessTokenCredential=function(){var r="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.setRefreshTokenCredential=function(){var r="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.getRefreshTokenCredential=function(){var r="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.setAppMetadata=function(){var r="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.getAppMetadata=function(){var r="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.setServerTelemetry=function(){var r="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.getServerTelemetry=function(){var r="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.setAuthorityMetadata=function(){var r="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.getAuthorityMetadata=function(){var r="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.getAuthorityMetadataKeys=function(){var r="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.setThrottlingCache=function(){var r="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.getThrottlingCache=function(){var r="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.removeItem=function(){var r="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.containsKey=function(){var r="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.getKeys=function(){var r="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e.prototype.clear=function(){return z(this,void 0,void 0,function(){var r;return $(this,function(n){throw r="Storage interface - clear() has not been implemented for the cacheStorage interface.",D.createUnexpectedError(r)})})},e.prototype.updateCredentialCacheKey=function(){var r="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw D.createUnexpectedError(r)},e}(Dt);/*! @azure/msal-common v7.6.0 2022-10-10 */var RE=300,zm={tokenRenewalOffsetSeconds:RE,preventCorsPreflight:!1,proxyUrl:_.EMPTY_STRING},NE={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:Ee.Info,correlationId:_.EMPTY_STRING},PE={sendGetRequestAsync:function(){return z(this,void 0,void 0,function(){var t;return $(this,function(e){throw t="Network interface - sendGetRequestAsync() has not been implemented",D.createUnexpectedError(t)})})},sendPostRequestAsync:function(){return z(this,void 0,void 0,function(){var t;return $(this,function(e){throw t="Network interface - sendPostRequestAsync() has not been implemented",D.createUnexpectedError(t)})})}},OE={sku:_.SKU,version:Fm,cpu:_.EMPTY_STRING,os:_.EMPTY_STRING},xE={clientSecret:_.EMPTY_STRING,clientAssertion:void 0},ME={azureCloudInstance:Vi.None,tenant:""+_.DEFAULT_COMMON_TENANT},UE={application:{appName:"",appVersion:""}};function LE(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,d=t.persistencePlugin,h=t.serializableCache,p=ve(ve({},NE),n);return{authOptions:HE(e),systemOptions:ve(ve({},zm),r),loggerOptions:p,storageInterface:o||new AE(e.clientId,zs),networkInterface:i||PE,cryptoInterface:a||zs,clientCredentials:s||xE,libraryInfo:ve(ve({},OE),c),telemetry:ve(ve({},UE),l),serverTelemetryManager:u||null,persistencePlugin:d||null,serializableCache:h||null}}function HE(t){return ve({clientCapabilities:[],azureCloudOptions:ME,skipAuthorityMetadataCache:!1},t)}/*! @azure/msal-common v7.6.0 2022-10-10 */var Nn=function(t){pt(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}(D);/*! @azure/msal-common v7.6.0 2022-10-10 */var js=function(){function t(){}return t.generateThrottlingStorageKey=function(e){return Si.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,wn.THROTTLING);return}throw new Nn(((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[Gt.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(Gt.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||Si.DEFAULT_THROTTLE_TIME_SECONDS),n+Si.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,wn.THROTTLING)},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var DE=function(){function t(e,r){this.networkClient=e,this.cacheManager=r}return t.prototype.sendPostRequest=function(e,r,n){return z(this,void 0,void 0,function(){var o,i;return $(this,function(a){switch(a.label){case 0:js.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 D?i:O.createNetworkError(r,i);case 4:return js.postProcess(this.cacheManager,e,o),[2,o]}})})},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var _t;(function(t){t.HOME_ACCOUNT_ID="home_account_id",t.UPN="UPN"})(_t||(_t={}));/*! @azure/msal-common v7.6.0 2022-10-10 */var Pd=function(){function t(e,r){this.config=LE(e),this.logger=new Nd(this.config.loggerOptions,bE,Fm),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new DE(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[Gt.CONTENT_TYPE]=_.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case _t.HOME_ACCOUNT_ID:try{var n=io(e.credential);r[Gt.CCS_HEADER]="Oid:"+n.uid+"@"+n.utid}catch(o){this.logger.verbose("Could not parse home account ID for CCS Header: "+o)}break;case _t.UPN:r[Gt.CCS_HEADER]="UPN: "+e.credential;break}return r},t.prototype.executePostToTokenEndpoint=function(e,r,n,o){return z(this,void 0,void 0,function(){var i;return $(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 O.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var fn=function(){function t(){}return t.validateRedirectUri=function(e){if(N.isEmpty(e))throw se.createRedirectUriEmptyError()},t.validatePrompt=function(e){var r=[];for(var n in Ye)r.push(Ye[n]);if(r.indexOf(e)<0)throw se.createInvalidPromptError(e)},t.validateClaims=function(e){try{JSON.parse(e)}catch{throw se.createInvalidClaimsRequestError()}},t.validateCodeChallengeParams=function(e,r){if(N.isEmpty(e)||N.isEmpty(r))throw se.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(r)},t.validateCodeChallengeMethod=function(e){if([of.PLAIN,of.S256].indexOf(e)<0)throw se.createInvalidCodeChallengeMethodError()},t.sanitizeEQParams=function(e,r){return e?(r.forEach(function(n,o){e[o]&&delete e[o]}),e):{}},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var ao=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||Ls.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?_c(e||[],sa):e||[],o=new tt(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){fn.validateRedirectUri(e),this.parameters.set(q.REDIRECT_URI,encodeURIComponent(e))},t.prototype.addPostLogoutRedirectUri=function(e){fn.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(wi.DOMAIN_HINT,encodeURIComponent(e))},t.prototype.addLoginHint=function(e){this.parameters.set(wi.LOGIN_HINT,encodeURIComponent(e))},t.prototype.addCcsUpn=function(e){this.parameters.set(Gt.CCS_HEADER,encodeURIComponent("UPN:"+e))},t.prototype.addCcsOid=function(e){this.parameters.set(Gt.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},t.prototype.addSid=function(e){this.parameters.set(wi.SID,encodeURIComponent(e))},t.prototype.addClaims=function(e,r){var n=this.addClientCapabilitiesToClaims(e,r);fn.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){fn.validatePrompt(e),this.parameters.set(""+q.PROMPT,encodeURIComponent(e))},t.prototype.addState=function(e){N.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(fn.validateCodeChallengeParams(e,r),e&&r)this.parameters.set(q.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(q.CODE_CHALLENGE_METHOD,encodeURIComponent(r));else throw se.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){N.isEmpty(e)||this.parameters.set(q.CLIENT_ASSERTION,encodeURIComponent(e))},t.prototype.addClientAssertionType=function(e){N.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(kE,"1")},t.prototype.addExtraQueryParameters=function(e){var r=this;fn.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 se.createInvalidClaimsRequestError()}return r&&r.length>0&&(n.hasOwnProperty(no.ACCESS_TOKEN)||(n[no.ACCESS_TOKEN]={}),n[no.ACCESS_TOKEN][no.XMS_CC]={values:r}),JSON.stringify(n)},t.prototype.addUsername=function(e){this.parameters.set(Fs.username,encodeURIComponent(e))},t.prototype.addPassword=function(e){this.parameters.set(Fs.password,encodeURIComponent(e))},t.prototype.addPopToken=function(e){N.isEmpty(e)||(this.parameters.set(q.TOKEN_TYPE,Z.POP),this.parameters.set(q.REQ_CNF,encodeURIComponent(e)))},t.prototype.addSshJwk=function(e){N.isEmpty(e)||(this.parameters.set(q.TOKEN_TYPE,Z.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,Si.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 v7.6.0 2022-10-10 */var Yi=function(t){pt(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=G.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===G.ID_TOKEN:!1},e}(Wi);/*! @azure/msal-common v7.6.0 2022-10-10 */var Ot=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 v7.6.0 2022-10-10 */var Qi=function(t){pt(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,d,h,p,v,y,I){var g,f,m=new e;m.homeAccountId=r,m.credentialType=G.ACCESS_TOKEN,m.secret=o;var E=Ot.nowSeconds();if(m.cachedAt=E.toString(),m.expiresOn=c.toString(),m.extendedExpiresOn=l.toString(),d&&(m.refreshOn=d.toString()),m.environment=n,m.clientId=i,m.realm=a,m.target=s,m.userAssertionHash=p,m.tokenType=N.isEmpty(h)?Z.BEARER:h,y&&(m.requestedClaims=y,m.requestedClaimsHash=I),((g=m.tokenType)===null||g===void 0?void 0:g.toLowerCase())!==Z.BEARER.toLowerCase())switch(m.credentialType=G.ACCESS_TOKEN_WITH_AUTH_SCHEME,m.tokenType){case Z.POP:var b=ir.extractTokenClaims(o,u);if(!(!((f=b==null?void 0:b.cnf)===null||f===void 0)&&f.kid))throw O.createTokenClaimsRequiredError();m.keyId=b.cnf.kid;break;case Z.SSH:m.keyId=v}return m},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===G.ACCESS_TOKEN||r.credentialType===G.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1},e}(Wi);/*! @azure/msal-common v7.6.0 2022-10-10 */var qs=function(t){pt(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=G.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===G.REFRESH_TOKEN:!1},e}(Wi);/*! @azure/msal-common v7.6.0 2022-10-10 */var sf=["interaction_required","consent_required","login_required"],FE=["message_only","additional_action","basic_action","user_password_expired","consent_required"],ii={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."}},qt=function(t){pt(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&&sf.indexOf(r)>-1,a=!!o&&FE.indexOf(o)>-1,s=!!n&&sf.some(function(c){return n.indexOf(c)>-1});return i||s||a},e.createNoTokensFoundError=function(){return new e(ii.noTokensFoundError.code,ii.noTokensFoundError.desc)},e.createNativeAccountUnavailableError=function(){return new e(ii.native_account_unavailable.code,ii.native_account_unavailable.desc)},e}(D);/*! @azure/msal-common v7.6.0 2022-10-10 */var rs=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 v7.6.0 2022-10-10 */var Er=function(){function t(){}return t.setRequestState=function(e,r,n){var o=t.generateLibraryState(e,n);return N.isEmpty(r)?o:""+o+_.RESOURCE_DELIM+r},t.generateLibraryState=function(e,r){if(!e)throw O.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 O.createNoCryptoObjectError("parseRequestState");if(N.isEmpty(r))throw O.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:N.isEmpty(i)?_.EMPTY_STRING:i,libraryState:s}}catch(c){throw O.createInvalidStateError(r,c)}},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Q=function(){function t(e){if(this._urlString=e,N.isEmpty(this._urlString))throw se.createUrlEmptyError();N.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 N.endsWith(r,"?")?r=r.slice(0,-1):N.endsWith(r,"?/")&&(r=r.slice(0,-2)),N.endsWith(r,"/")||(r+="/"),r}return e},t.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(r){throw se.createUrlParseError(r)}if(!e.HostNameAndPort||!e.PathSegments)throw se.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw se.createInsecureAuthorityUriError(this.urlString)},t.appendQueryString=function(e,r){return N.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]===Us.COMMON||n[0]===Us.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 se.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,!N.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 se.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(N.isEmpty(e))return{};var r=t.parseHash(e),n=N.queryStringToObject(N.isEmpty(r)?e:r);if(!n)throw O.createHashNotDeserializedError(JSON.stringify(n));return n},t.getDeserializedQueryString=function(e){if(N.isEmpty(e))return{};var r=t.parseQueryString(e),n=N.queryStringToObject(N.isEmpty(r)?e:r);if(!n)throw O.createHashNotDeserializedError(JSON.stringify(n));return n},t.hashContainsKnownProperties=function(e){if(N.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 v7.6.0 2022-10-10 */var yu;(function(t){t.SW="sw",t.UHW="uhw"})(yu||(yu={}));var Ro=function(){function t(e){this.cryptoUtils=e}return t.prototype.generateCnf=function(e){return z(this,void 0,void 0,function(){var r,n,o;return $(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 z(this,void 0,void 0,function(){var r;return $(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:yu.SW}]}})})},t.prototype.signPopToken=function(e,r,n){return z(this,void 0,void 0,function(){return $(this,function(o){return[2,this.signPayload(e,r,n)]})})},t.prototype.signPayload=function(e,r,n,o){return z(this,void 0,void 0,function(){var i,a,s,c,l,u;return $(this,function(d){switch(d.label){case 0:return i=n.resourceRequestMethod,a=n.resourceRequestUri,s=n.shrClaims,c=n.shrNonce,l=a?new Q(a):void 0,u=l==null?void 0:l.getUrlComponents(),[4,this.cryptoUtils.signJwt(ve({at:e,ts:Ot.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,d.sent()]}})})},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var _u=function(){function t(){}return t.prototype.generateAppMetadataKey=function(){return t.generateAppMetadataCacheKey(this.environment,this.clientId)},t.generateAppMetadataCacheKey=function(e,r){var n=[mu,e,r];return n.join(wt.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(mu)===0&&r.hasOwnProperty("clientId")&&r.hasOwnProperty("environment"):!1},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var zE=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 v7.6.0 2022-10-10 */var Bs=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?O.createStateNotFoundError("Cached State"):O.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(r))throw O.createStateMismatchError();if(e.error||e.error_description||e.suberror)throw qt.isInteractionRequiredError(e.error,e.error_description,e.suberror)?new qt(e.error||_.EMPTY_STRING,e.error_description,e.suberror):new Nn(e.error||_.EMPTY_STRING,e.error_description,e.suberror);e.client_info&&$s(e.client_info,n)},t.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(qt.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new qt(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 Nn(e.error,r,e.suberror)}},t.prototype.handleServerTokenResponse=function(e,r,n,o,i,a,s,c,l){return z(this,void 0,void 0,function(){var u,d,h,p,v,y,I;return $(this,function(g){switch(g.label){case 0:if(e.id_token){if(u=new ir(e.id_token||_.EMPTY_STRING,this.cryptoObj),i&&!N.isEmpty(i.nonce)&&u.claims.nonce!==i.nonce)throw O.createNonceMismatchError();if(o.maxAge||o.maxAge===0){if(d=u.claims.auth_time,!d)throw O.createAuthTimeNotFoundError();ir.checkMaxAge(d,o.maxAge)}}this.homeAccountIdentifier=He.generateHomeAccountId(e.client_info||_.EMPTY_STRING,r.authorityType,this.logger,this.cryptoObj,u),!!i&&!!i.state&&(h=Er.parseRequestState(this.cryptoObj,i.state)),e.key_id=e.key_id||o.sshKid||void 0,p=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"),v=new zE(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(v)]):[3,3];case 2:g.sent(),g.label=3;case 3:return s&&!c&&p.account&&(y=p.account.generateAccountKey(),I=this.cacheStorage.getAccount(y),!I)?(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,p,!1,o,u,h,void 0,l)]):[4,this.cacheStorage.saveCacheRecord(p)];case 4:return g.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&v?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(v)]):[3,7];case 6:g.sent(),g.label=7;case 7:return[7];case 8:return[2,t.generateAuthenticationResult(this.cryptoObj,r,p,!1,o,u,h,e.spa_code,l)]}})})},t.prototype.generateCacheRecord=function(e,r,n,o,i,a,s){var c=r.getPreferredCache();if(N.isEmpty(c))throw O.createInvalidCacheEnvironmentError();var l,u;!N.isEmpty(e.id_token)&&!!i&&(l=Yi.createIdTokenEntity(this.homeAccountIdentifier,c,e.id_token||_.EMPTY_STRING,this.clientId,i.claims.tid||_.EMPTY_STRING),u=this.generateAccountEntity(e,i,r,s));var d=null;if(!N.isEmpty(e.access_token)){var h=e.scope?tt.fromString(e.scope):new tt(o.scopes||[]),p=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,v=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,y=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,I=n+p,g=I+v,f=y&&y>0?n+y:void 0;d=Qi.createAccessTokenEntity(this.homeAccountIdentifier,c,e.access_token||_.EMPTY_STRING,this.clientId,i?i.claims.tid||_.EMPTY_STRING:r.tenant,h.printScopes(),I,g,this.cryptoObj,f,e.token_type,a,e.key_id,o.claims,o.requestedClaimsHash)}var m=null;N.isEmpty(e.refresh_token)||(m=qs.createRefreshTokenEntity(this.homeAccountIdentifier,c,e.refresh_token||_.EMPTY_STRING,this.clientId,e.foci,a));var E=null;return N.isEmpty(e.foci)||(E=_u.createAppMetadataEntity(this.clientId,c,e.foci)),new rs(u,l,d,m,E)},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===Rt.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),He.createGenericAccount(this.homeAccountIdentifier,r,n,a,s);if(N.isEmpty(e.client_info)&&n.protocolMode==="AAD")throw O.createClientInfoEmptyError();return e.client_info?He.createAccount(e.client_info,this.homeAccountIdentifier,r,n,a,s):He.createGenericAccount(this.homeAccountIdentifier,r,n,a,s)},t.generateAuthenticationResult=function(e,r,n,o,i,a,s,c,l){var u,d,h;return z(this,void 0,void 0,function(){var p,v,y,I,g,f,m,E,b,R,x;return $(this,function(P){switch(P.label){case 0:if(p=_.EMPTY_STRING,v=[],y=null,g=_.EMPTY_STRING,!n.accessToken)return[3,4];if(n.accessToken.tokenType!==Z.POP)return[3,2];if(f=new Ro(e),m=n.accessToken,E=m.secret,b=m.keyId,!b)throw O.createKeyIdMissingError();return[4,f.signPopToken(E,b,i)];case 1:return p=P.sent(),[3,3];case 2:p=n.accessToken.secret,P.label=3;case 3:v=tt.fromString(n.accessToken.target).asArray(),y=new Date(Number(n.accessToken.expiresOn)*1e3),I=new Date(Number(n.accessToken.extendedExpiresOn)*1e3),P.label=4;case 4:return n.appMetadata&&(g=n.appMetadata.familyId===Ds?Ds:_.EMPTY_STRING),R=(a==null?void 0:a.claims.oid)||(a==null?void 0:a.claims.sub)||_.EMPTY_STRING,x=(a==null?void 0:a.claims.tid)||_.EMPTY_STRING,[2,{authority:r.canonicalAuthority,uniqueId:R,tenantId:x,scopes:v,account:n.account?n.account.getAccountInfo():null,idToken:a?a.rawToken:_.EMPTY_STRING,idTokenClaims:a?a.claims:{},accessToken:p,fromCache:o,expiresOn:y,correlationId:i.correlationId,requestId:l||_.EMPTY_STRING,extExpiresOn:I,familyId:g,tokenType:((u=n.accessToken)===null||u===void 0?void 0:u.tokenType)||_.EMPTY_STRING,state:s?s.userRequestState:_.EMPTY_STRING,cloudGraphHostName:((d=n.account)===null||d===void 0?void 0:d.cloudGraphHostName)||_.EMPTY_STRING,msGraphHost:((h=n.account)===null||h===void 0?void 0:h.msGraphHost)||_.EMPTY_STRING,code:c,fromNativeBroker:!1}]}})})},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var $m=function(t){pt(e,t);function e(r){var n=t.call(this,r)||this;return n.includeRedirectUri=!0,n}return e.prototype.getAuthCodeUrl=function(r){return z(this,void 0,void 0,function(){var n;return $(this,function(o){switch(o.label){case 0:return[4,this.createAuthCodeUrlQueryString(r)];case 1:return n=o.sent(),[2,Q.appendQueryString(this.authority.authorizationEndpoint,n)]}})})},e.prototype.acquireToken=function(r,n){var o;return z(this,void 0,void 0,function(){var i,a,s,c;return $(this,function(l){switch(l.label){case 0:if(this.logger.info("in acquireToken call"),!r||N.isEmpty(r.code))throw O.createTokenRequestCannotBeMadeError();return i=Ot.nowSeconds(),[4,this.executeTokenRequest(this.authority,r)];case 1:return a=l.sent(),s=(o=a.headers)===null||o===void 0?void 0:o[Gt.X_MS_REQUEST_ID],c=new Bs(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 Bs(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),i=new Q(r),a=Q.getDeserializedHash(i.getHash());if(o.validateServerAuthorizationCodeResponse(a,n,this.cryptoUtils),!a.code)throw O.createNoAuthCodeInServerResponseError();return ve(ve({},a),{code:a.code})},e.prototype.getLogoutUri=function(r){if(!r)throw se.createEmptyLogoutRequestError();var n=this.createLogoutUrlQueryString(r);return Q.appendQueryString(this.authority.endSessionEndpoint,n)},e.prototype.executeTokenRequest=function(r,n){return z(this,void 0,void 0,function(){var o,i,a,s,c,l,u;return $(this,function(d){switch(d.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=d.sent(),a=this.createTokenQueryParameters(n),s=void 0,n.clientInfo)try{c=$s(n.clientInfo,this.cryptoUtils),s={credential:""+c.uid+wt.CLIENT_INFO_SEPARATOR+c.utid,type:_t.HOME_ACCOUNT_ID}}catch(h){this.logger.verbose("Could not parse client info for CCS Header: "+h)}return l=this.createTokenRequestHeaders(s||n.ccsCredential),u=N.isEmpty(a)?r.tokenEndpoint:r.tokenEndpoint+"?"+a,[2,this.executePostToTokenEndpoint(u,i,l,o)]}})})},e.prototype.createTokenQueryParameters=function(r){var n=new ao;return r.tokenQueryParameters&&n.addExtraQueryParameters(r.tokenQueryParameters),n.createQueryString()},e.prototype.createTokenRequestBody=function(r){return z(this,void 0,void 0,function(){var n,o,i,a,s,c,l,l,u;return $(this,function(d){switch(d.label){case 0:return n=new ao,n.addClientId(this.config.authOptions.clientId),this.includeRedirectUri?n.addRedirectUri(r.redirectUri):fn.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(Hs.AUTHORIZATION_CODE_GRANT),n.addClientInfo(),r.authenticationScheme!==Z.POP?[3,2]:(i=new Ro(this.cryptoUtils),[4,i.generateCnf(r)]);case 1:return a=d.sent(),n.addPopToken(a.reqCnfString),[3,3];case 2:if(r.authenticationScheme===Z.SSH)if(r.sshJwk)n.addSshJwk(r.sshJwk);else throw se.createMissingSshJwkError();d.label=3;case 3:if(s=r.correlationId||this.config.cryptoInterface.createNewGuid(),n.addCorrelationId(s),(!N.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=$s(r.clientInfo,this.cryptoUtils),c={credential:""+l.uid+wt.CLIENT_INFO_SEPARATOR+l.utid,type:_t.HOME_ACCOUNT_ID}}catch(h){this.logger.verbose("Could not parse client info for CCS Header: "+h)}else c=r.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&c)switch(c.type){case _t.HOME_ACCOUNT_ID:try{l=io(c.credential),n.addCcsOid(l)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case _t.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 z(this,void 0,void 0,function(){var n,o,i,a,s,c,c,c,l,u;return $(this,function(d){switch(d.label){case 0:if(n=new ao,n.addClientId(this.config.authOptions.clientId),o=_c(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!==Ye.SELECT_ACCOUNT)if(r.sid&&r.prompt===Ye.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=io(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===Ye.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),n.addSid(a);try{c=io(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=io(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),(!N.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!==Z.POP?[3,2]:(l=new Ro(this.cryptoUtils),[4,l.generateCnf(r)])):[3,2];case 1:u=d.sent(),n.addPopToken(u.reqCnfHash),d.label=2;case 2:return[2,n.createQueryString()]}})})},e.prototype.createLogoutUrlQueryString=function(r){var n=new ao;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}(Pd);/*! @azure/msal-common v7.6.0 2022-10-10 */var be;(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"})(be||(be={}));var so;(function(t){t[t.NotStarted=0]="NotStarted",t[t.InProgress=1]="InProgress",t[t.Completed=2]="Completed"})(so||(so={}));/*! @azure/msal-common v7.6.0 2022-10-10 */var jm=function(t){pt(e,t);function e(r,n){return t.call(this,r,n)||this}return e.prototype.acquireToken=function(r){var n,o;return z(this,void 0,void 0,function(){var i,a,s,c,l,u=this;return $(this,function(d){switch(d.label){case 0:return i=(n=this.performanceClient)===null||n===void 0?void 0:n.startMeasurement(be.RefreshTokenClientAcquireToken,r.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",r.correlationId),a=Ot.nowSeconds(),[4,this.executeTokenRequest(r,this.authority)];case 1:return s=d.sent(),c=(o=s.headers)===null||o===void 0?void 0:o[Gt.X_MS_REQUEST_ID],l=new Bs(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),l.validateTokenResponse(s.body),[2,l.handleServerTokenResponse(s.body,this.authority,a,r,void 0,void 0,!0,r.forceCache,c).then(function(h){var p;return i==null||i.endMeasurement({success:!0,refreshTokenSize:((p=s.body.refresh_token)===null||p===void 0?void 0:p.length)||0}),h}).catch(function(h){throw u.logger.verbose("Error in fetching refresh token",r.correlationId),i==null||i.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1,refreshTokenSize:void 0}),h})]}})})},e.prototype.acquireTokenByRefreshToken=function(r){return z(this,void 0,void 0,function(){var n,o,i;return $(this,function(a){if(!r)throw se.createEmptyTokenRequestError();if(!r.account)throw O.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 qt&&s.errorCode===ii.noTokensFoundError.code,i=s instanceof Nn&&s.errorCode===af.INVALID_GRANT_ERROR&&s.subError===af.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 z(this,void 0,void 0,function(){var i,a,s;return $(this,function(c){if(i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(be.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(),qt.createNoTokensFoundError();return i==null||i.endMeasurement({success:!0}),s=ve(ve({},r),{refreshToken:a.secret,authenticationScheme:r.authenticationScheme||Z.BEARER,ccsCredential:{credential:r.account.homeAccountId,type:_t.HOME_ACCOUNT_ID}}),[2,this.acquireToken(s)]})})},e.prototype.executeTokenRequest=function(r,n){var o;return z(this,void 0,void 0,function(){var i,a,s,c,l,u;return $(this,function(d){switch(d.label){case 0:return i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(be.RefreshTokenClientExecuteTokenRequest,r.correlationId),[4,this.createTokenRequestBody(r)];case 1:return a=d.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=Q.appendQueryString(n.tokenEndpoint,s),[2,this.executePostToTokenEndpoint(u,a,c,l).then(function(h){return i==null||i.endMeasurement({success:!0}),h}).catch(function(h){throw i==null||i.endMeasurement({success:!1}),h})]}})})},e.prototype.createTokenQueryParameters=function(r){var n=new ao;return r.tokenQueryParameters&&n.addExtraQueryParameters(r.tokenQueryParameters),n.createQueryString()},e.prototype.createTokenRequestBody=function(r){var n;return z(this,void 0,void 0,function(){var o,i,a,s,c,l,u;return $(this,function(d){switch(d.label){case 0:return o=r.correlationId,i=(n=this.performanceClient)===null||n===void 0?void 0:n.startMeasurement(be.BaseClientCreateTokenRequestHeaders,o),a=new ao,a.addClientId(this.config.authOptions.clientId),a.addScopes(r.scopes),a.addGrantType(Hs.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!==Z.POP?[3,2]:(c=new Ro(this.cryptoUtils),[4,c.generateCnf(r)]);case 1:return l=d.sent(),a.addPopToken(l.reqCnfString),[3,3];case 2:if(r.authenticationScheme===Z.SSH)if(r.sshJwk)a.addSshJwk(r.sshJwk);else throw i==null||i.endMeasurement({success:!1}),se.createMissingSshJwkError();d.label=3;case 3:if((!N.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 _t.HOME_ACCOUNT_ID:try{u=io(r.ccsCredential.credential),a.addCcsOid(u)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case _t.UPN:a.addCcsUpn(r.ccsCredential.credential);break}return i==null||i.endMeasurement({success:!0}),[2,a.createQueryString()]}})})},e}(Pd);/*! @azure/msal-common v7.6.0 2022-10-10 */var $E=function(t){pt(e,t);function e(r,n){return t.call(this,r,n)||this}return e.prototype.acquireToken=function(r){return z(this,void 0,void 0,function(){var n,o;return $(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 O&&n.errorCode===k.tokenRefreshRequired.code)return o=new jm(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 z(this,void 0,void 0,function(){var s,c;return $(this,function(l){switch(l.label){case 0:if(!r)throw se.createEmptyTokenRequestError();if(r.forceRefresh)throw(n=this.serverTelemetryManager)===null||n===void 0||n.setCacheOutcome(yn.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),O.createRefreshRequiredError();if(!r.account)throw O.createNoAccountInSilentRequestError();if(s=r.authority||this.authority.getPreferredCache(),c=this.cacheManager.readCacheRecord(r.account,this.config.authOptions.clientId,r,s),c.accessToken){if(Ot.wasClockTurnedBack(c.accessToken.cachedAt)||Ot.isTokenExpired(c.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw(i=this.serverTelemetryManager)===null||i===void 0||i.setCacheOutcome(yn.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),O.createRefreshRequiredError();if(c.accessToken.refreshOn&&Ot.isTokenExpired(c.accessToken.refreshOn,0))throw(a=this.serverTelemetryManager)===null||a===void 0||a.setCacheOutcome(yn.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),O.createRefreshRequiredError()}else throw(o=this.serverTelemetryManager)===null||o===void 0||o.setCacheOutcome(yn.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),O.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 z(this,void 0,void 0,function(){var o,i;return $(this,function(a){switch(a.label){case 0:if(r.idToken&&(o=new ir(r.idToken.secret,this.config.cryptoInterface)),n.maxAge||n.maxAge===0){if(i=o==null?void 0:o.claims.auth_time,!i)throw O.createAuthTimeNotFoundError();ir.checkMaxAge(i,n.maxAge)}return[4,Bs.generateAuthenticationResult(this.cryptoUtils,this.authority,r,!0,n,o)];case 1:return[2,a.sent()]}})})},e}(Pd);/*! @azure/msal-common v7.6.0 2022-10-10 */function jE(t){return t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v7.6.0 2022-10-10 */var qm={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"]}]}}},cf=qm.endpointMetadata,lf=qm.instanceDiscoveryMetadata;/*! @azure/msal-common v7.6.0 2022-10-10 */var Ks;(function(t){t.AAD="AAD",t.OIDC="OIDC"})(Ks||(Ks={}));/*! @azure/msal-common v7.6.0 2022-10-10 */var Eu=function(){function t(){this.expiresAt=Ot.nowSeconds()+Ci.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=Ot.nowSeconds()+Ci.REFRESH_TIME_SECONDS},t.prototype.isExpired=function(){return this.expiresAt<=Ot.nowSeconds()},t.isAuthorityMetadataEntity=function(e,r){return r?e.indexOf(Ci.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 v7.6.0 2022-10-10 */function qE(t){return t.hasOwnProperty("tenant_discovery_endpoint")&&t.hasOwnProperty("metadata")}/*! @azure/msal-common v7.6.0 2022-10-10 */var BE=function(){function t(e){this.networkInterface=e}return t.prototype.detectRegion=function(e,r,n){return z(this,void 0,void 0,function(){var o,i,a,s,c;return $(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===oo.httpSuccess&&(o=a.body,r.region_source=Hr.IMDS),a.status!==oo.httpBadRequest?[3,5]:[4,this.getCurrentVersion(i)];case 3:return s=l.sent(),s?[4,this.getRegionFromIMDS(s,i)]:(r.region_source=Hr.FAILED_AUTO_DETECTION,[2,null]);case 4:c=l.sent(),c.status===oo.httpSuccess&&(o=c.body,r.region_source=Hr.IMDS),l.label=5;case 5:return[3,7];case 6:return l.sent(),r.region_source=Hr.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:r.region_source=Hr.ENVIRONMENT_VARIABLE,l.label=9;case 9:return o||(r.region_source=Hr.FAILED_AUTO_DETECTION),[2,o||null]}})})},t.prototype.getRegionFromIMDS=function(e,r){return z(this,void 0,void 0,function(){return $(this,function(n){return[2,this.networkInterface.sendGetRequestAsync(_.IMDS_ENDPOINT+"?api-version="+e+"&format=text",r,_.IMDS_TIMEOUT)]})})},t.prototype.getCurrentVersion=function(e){return z(this,void 0,void 0,function(){var r;return $(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===oo.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 v7.6.0 2022-10-10 */var Gs=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 BE(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 Rt.Adfs;case _.DSTS:return Rt.Dsts}return Rt.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 Q(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 O.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 O.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 O.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw O.createLogoutNotSupportedError();var e=this.replacePath(this.metadata.end_session_endpoint);return this.replaceTenant(e)}else throw O.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 O.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 O.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 Q(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===Rt.Adfs||this.authorityType===Rt.Dsts||this.protocolMode===Ks.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 z(this,void 0,void 0,function(){var e,r,n,o;return $(this,function(i){switch(i.label){case 0:return e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort),e||(e=new Eu,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!==kt.CACHE&&n!==kt.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 z(this,void 0,void 0,function(){var o,i;return $(this,function(a){switch(a.label){case 0:return o=this.getEndpointMetadataFromConfig(),o?(e.updateEndpointMetadata(o,!1),[2,kt.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,kt.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,kt.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,kt.HARDCODED_VALUES];case 7:throw O.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},t.prototype.isAuthoritySameType=function(e){var r=new Q(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 se.createInvalidAuthorityMetadataError()}return null},t.prototype.getEndpointMetadataFromNetwork=function(){return z(this,void 0,void 0,function(){var e,r;return $(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,jE(r.body)?r.body:null];case 3:return n.sent(),[2,null];case 4:return[2]}})})},t.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in cf?cf[this.canonicalAuthority]:null},t.prototype.updateMetadataWithRegionalInformation=function(e){var r,n,o,i,a;return z(this,void 0,void 0,function(){var s,c;return $(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?pn.AUTO_DETECTION_REQUESTED_SUCCESSFUL:pn.AUTO_DETECTION_REQUESTED_FAILED:s?this.regionDiscoveryMetadata.region_outcome=((a=this.authorityOptions.azureRegionConfiguration)===null||a===void 0?void 0:a.azureRegion)===s?pn.CONFIGURED_MATCHES_DETECTED:pn.CONFIGURED_NOT_DETECTED:this.regionDiscoveryMetadata.region_outcome=pn.CONFIGURED_NO_AUTO_DETECTION,c?(this.regionDiscoveryMetadata.region_used=c,[2,t.replaceWithRegionalInformation(e,c)]):[2,e]}})})},t.prototype.updateCloudDiscoveryMetadata=function(e){return z(this,void 0,void 0,function(){var r,n;return $(this,function(o){switch(o.label){case 0:return r=this.getCloudDiscoveryMetadataFromConfig(),r?(e.updateCloudDiscoveryMetadata(r,!1),[2,kt.CONFIG]):this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!e.isExpired()?[2,kt.CACHE]:(n=this.getCloudDiscoveryMetadataFromHarcodedValues(),[4,this.getCloudDiscoveryMetadataFromNetwork()]);case 1:if(r=o.sent(),r)return e.updateCloudDiscoveryMetadata(r,!0),[2,kt.NETWORK];if(n&&!this.options.skipAuthorityMetadataCache)return e.updateCloudDiscoveryMetadata(n,!1),[2,kt.HARDCODED_VALUES];throw se.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 se.createInvalidCloudDiscoveryMetadataError()}return this.isInKnownAuthorities()?t.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort):null},t.prototype.getCloudDiscoveryMetadataFromNetwork=function(){return z(this,void 0,void 0,function(){var e,r,n,o,i;return $(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=qE(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 lf?lf[this.canonicalAuthority]:null},t.prototype.isInKnownAuthorities=function(){var e=this,r=this.authorityOptions.knownAuthorities.filter(function(n){return Q.getDomainFromUrl(n).toLowerCase()===e.hostnameAndPort});return r.length>0},t.generateAuthority=function(e,r){var n;if(r&&r.azureCloudInstance!==Vi.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 O.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 Q(e);o.validateAsUri();var i=o.getUrlComponents(),a=r+"."+i.HostNameAndPort;this.isPublicCloudAuthority(i.HostNameAndPort)&&(a=r+"."+_.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var s=Q.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 v7.6.0 2022-10-10 */var Vs=function(){function t(){}return t.createDiscoveredInstance=function(e,r,n,o,i){return z(this,void 0,void 0,function(){var a,s;return $(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(),O.createEndpointDiscoveryIncompleteError(s);case 4:return[2]}})})},t.createInstance=function(e,r,n,o,i){if(N.isEmpty(e))throw se.createUrlEmptyError();return new Gs(e,r,n,o,i)},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var Ws=function(){function t(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return t.isServerTelemetryEntity=function(e,r){var n=e.indexOf(xe.CACHE_KEY)===0,o=!0;return r&&(o=r.hasOwnProperty("failedRequests")&&r.hasOwnProperty("errors")&&r.hasOwnProperty("cacheHits")),n&&o},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var uf=function(){function t(){}return t.isThrottlingEntity=function(e,r){var n=!1;e&&(n=e.indexOf(Si.THROTTLING_PREFIX)===0);var o=!0;return r&&(o=r.hasOwnProperty("throttleTime")),n&&o},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var KE={sendGetRequestAsync:function(){var t="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(D.createUnexpectedError(t))},sendPostRequestAsync:function(){var t="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(D.createUnexpectedError(t))}};/*! @azure/msal-common v7.6.0 2022-10-10 */var Ma={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."}},df=function(t){pt(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(Ma.missingKidError.code,Ma.missingKidError.desc)},e.createMissingAlgError=function(){return new e(Ma.missingAlgError.code,Ma.missingAlgError.desc)},e}(D);/*! @azure/msal-common v7.6.0 2022-10-10 */var GE=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 df.createMissingKidError();if(!e.alg)throw df.createMissingAlgError();var r=new t({typ:e.typ||vu.Jwt,kid:e.kid,alg:e.alg});return JSON.stringify(r)},t}();/*! @azure/msal-common v7.6.0 2022-10-10 */var VE=function(){function t(e,r){this.cacheOutcome=yn.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=xe.CACHE_KEY+wt.CACHE_KEY_SEPARATOR+e.clientId}return t.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+xe.VALUE_SEPARATOR+this.cacheOutcome,r=[this.wrapperSKU,this.wrapperVer].join(xe.VALUE_SEPARATOR),n=this.getRegionDiscoveryFields(),o=[e,n].join(xe.VALUE_SEPARATOR);return[xe.SCHEMA_VERSION,o,r].join(xe.CATEGORY_SEPARATOR)},t.prototype.generateLastRequestHeaderValue=function(){var e=this.getLastRequests(),r=t.maxErrorsToSend(e),n=e.failedRequests.slice(0,2*r).join(xe.VALUE_SEPARATOR),o=e.errors.slice(0,r).join(xe.VALUE_SEPARATOR),i=e.errors.length,a=r<i?xe.OVERFLOW_TRUE:xe.OVERFLOW_FALSE,s=[i,a].join(xe.VALUE_SEPARATOR);return[xe.SCHEMA_VERSION,e.cacheHits,n,o,s].join(xe.CATEGORY_SEPARATOR)},t.prototype.cacheFailedRequest=function(e){var r=this.getLastRequests();r.errors.length>=xe.MAX_CACHED_ERRORS&&(r.failedRequests.shift(),r.failedRequests.shift(),r.errors.shift()),r.failedRequests.push(this.apiId,this.correlationId),N.isEmpty(e.subError)?N.isEmpty(e.errorCode)?!!e&&e.toString()?r.errors.push(e.toString()):r.errors.push(xe.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 Ws,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 Ws;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<xe.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 v7.6.0 2022-10-10 */var Bm=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.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:so.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,appName:(o=this.applicationTelemetry)===null||o===void 0?void 0:o.appName,appVersion:(i=this.applicationTelemetry)===null||i===void 0?void 0:i.appVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:a};return this.cacheEventByCorrelationId(c),this.cacheMeasurement(c,s),{endMeasurement:function(l){var u=n.endMeasurement(ve(ve({},c),l));return u&&n.cacheEventByCorrelationId(u),u},flushMeasurement:function(){return n.flushMeasurements(c.name,c.correlationId)},discardMeasurement:function(){return n.discardMeasurements(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:so.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.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(u){if(u.name!==e&&u.status!==so.Completed){n.logger.trace("PerformanceClient: Incomplete submeasurement "+u.name+" found for "+e,r);var d=n.endMeasurement(u);d&&i.push(d)}i.push(u)});var a=i.sort(function(u,d){return u.startTimeMs-d.startTimeMs}),s=a.filter(function(u){return u.name===e&&u.status===so.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(u,d){if(d.name!==e){n.logger.trace("PerformanceClient: Complete submeasurement found for "+d.name,r);var h=d.name+"DurationMs";u[h]?n.logger.verbose("PerformanceClient: Submeasurement for "+e+" already exists for "+d.name+", ignoring",r):u[h]=d.durationMs,d.accessTokenSize&&(u.accessTokenSize=d.accessTokenSize),d.idTokenSize&&(u.idTokenSize=d.idTokenSize),d.refreshTokenSize&&(u.refreshTokenSize=d.refreshTokenSize)}return u},c);this.emitEvents([l],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 v7.6.0 2022-10-10 */var WE=function(){function t(){}return t.prototype.startMeasurement=function(){},t.prototype.endMeasurement=function(){},t.prototype.flushMeasurement=function(){return null},t}(),YE=function(t){pt(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 WE},e}(Bm);/*! @azure/msal-browser v2.30.0 2022-10-10 */var T={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."}},A=function(t){ze(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(T.pkceNotGenerated.code,T.pkceNotGenerated.desc+" Detail:"+r)},e.createCryptoNotAvailableError=function(r){return new e(T.cryptoDoesNotExist.code,T.cryptoDoesNotExist.desc+" Detail:"+r)},e.createHttpMethodNotImplementedError=function(r){return new e(T.httpMethodNotImplementedError.code,T.httpMethodNotImplementedError.desc+" Given Method: "+r)},e.createEmptyNavigationUriError=function(){return new e(T.emptyNavigateUriError.code,T.emptyNavigateUriError.desc)},e.createEmptyHashError=function(r){return new e(T.hashEmptyError.code,T.hashEmptyError.desc+" Given Url: "+r)},e.createHashDoesNotContainStateError=function(){return new e(T.hashDoesNotContainStateError.code,T.hashDoesNotContainStateError.desc)},e.createHashDoesNotContainKnownPropertiesError=function(){return new e(T.hashDoesNotContainKnownPropertiesError.code,T.hashDoesNotContainKnownPropertiesError.desc)},e.createUnableToParseStateError=function(){return new e(T.unableToParseStateError.code,T.unableToParseStateError.desc)},e.createStateInteractionTypeMismatchError=function(){return new e(T.stateInteractionTypeMismatchError.code,T.stateInteractionTypeMismatchError.desc)},e.createInteractionInProgressError=function(){return new e(T.interactionInProgress.code,T.interactionInProgress.desc)},e.createPopupWindowError=function(r){var n=T.popupWindowError.desc;return n=N.isEmpty(r)?n:n+" Details: "+r,new e(T.popupWindowError.code,n)},e.createEmptyWindowCreatedError=function(){return new e(T.emptyWindowError.code,T.emptyWindowError.desc)},e.createUserCancelledError=function(){return new e(T.userCancelledError.code,T.userCancelledError.desc)},e.createMonitorPopupTimeoutError=function(){return new e(T.monitorPopupTimeoutError.code,T.monitorPopupTimeoutError.desc)},e.createMonitorIframeTimeoutError=function(){return new e(T.monitorIframeTimeoutError.code,T.monitorIframeTimeoutError.desc)},e.createRedirectInIframeError=function(r){return new e(T.redirectInIframeError.code,T.redirectInIframeError.desc+" (window.parent !== window) => "+r)},e.createBlockReloadInHiddenIframeError=function(){return new e(T.blockTokenRequestsInHiddenIframeError.code,T.blockTokenRequestsInHiddenIframeError.desc)},e.createBlockAcquireTokenInPopupsError=function(){return new e(T.blockAcquireTokenInPopupsError.code,T.blockAcquireTokenInPopupsError.desc)},e.createIframeClosedPrematurelyError=function(){return new e(T.iframeClosedPrematurelyError.code,T.iframeClosedPrematurelyError.desc)},e.createSilentLogoutUnsupportedError=function(){return new e(T.silentLogoutUnsupportedError.code,T.silentLogoutUnsupportedError.desc)},e.createNoAccountError=function(){return new e(T.noAccountError.code,T.noAccountError.desc)},e.createSilentPromptValueError=function(r){return new e(T.silentPromptValueError.code,T.silentPromptValueError.desc+" Given value: "+r)},e.createUnableToParseTokenRequestCacheError=function(){return new e(T.unableToParseTokenRequestCacheError.code,T.unableToParseTokenRequestCacheError.desc)},e.createNoTokenRequestCacheError=function(){return new e(T.noTokenRequestCacheError.code,T.noTokenRequestCacheError.desc)},e.createAuthRequestNotSetError=function(){return new e(T.authRequestNotSet.code,T.authRequestNotSet.desc)},e.createNoCachedAuthorityError=function(){return new e(T.noCachedAuthorityError.code,T.noCachedAuthorityError.desc)},e.createInvalidCacheTypeError=function(){return new e(T.invalidCacheType.code,""+T.invalidCacheType.desc)},e.createNonBrowserEnvironmentError=function(){return new e(T.notInBrowserEnvironment.code,T.notInBrowserEnvironment.desc)},e.createDatabaseNotOpenError=function(){return new e(T.databaseNotOpen.code,T.databaseNotOpen.desc)},e.createNoNetworkConnectivityError=function(){return new e(T.noNetworkConnectivity.code,T.noNetworkConnectivity.desc)},e.createPostRequestFailedError=function(r,n){return new e(T.postRequestFailed.code,T.postRequestFailed.desc+" | Network client threw: "+r+" | Attempted to reach: "+n.split("?")[0])},e.createGetRequestFailedError=function(r,n){return new e(T.getRequestFailed.code,T.getRequestFailed.desc+" | Network client threw: "+r+" | Attempted to reach: "+n.split("?")[0])},e.createFailedToParseNetworkResponseError=function(r){return new e(T.failedToParseNetworkResponse.code,T.failedToParseNetworkResponse.desc+" | Attempted to reach: "+r.split("?")[0])},e.createUnableToLoadTokenError=function(r){return new e(T.unableToLoadTokenError.code,T.unableToLoadTokenError.desc+" | "+r)},e.createSigningKeyNotFoundInStorageError=function(r){return new e(T.signingKeyNotFoundInStorage.code,T.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+r)},e.createAuthCodeRequiredError=function(){return new e(T.authCodeRequired.code,T.authCodeRequired.desc)},e.createAuthCodeOrNativeAccountIdRequiredError=function(){return new e(T.authCodeOrNativeAccountRequired.code,T.authCodeOrNativeAccountRequired.desc)},e.createDatabaseUnavailableError=function(){return new e(T.databaseUnavailable.code,T.databaseUnavailable.desc)},e.createUnableToAcquireTokenFromNativePlatformError=function(){return new e(T.unableToAcquireTokenFromNativePlatform.code,T.unableToAcquireTokenFromNativePlatform.desc)},e.createNativeHandshakeTimeoutError=function(){return new e(T.nativeHandshakeTimeout.code,T.nativeHandshakeTimeout.desc)},e.createNativeExtensionNotInstalledError=function(){return new e(T.nativeExtensionNotInstalled.code,T.nativeExtensionNotInstalled.desc)},e.createNativeConnectionNotEstablishedError=function(){return new e(T.nativeConnectionNotEstablished.code,T.nativeConnectionNotEstablished.desc)},e.createNativeBrokerCalledBeforeInitialize=function(){return new e(T.nativeBrokerCalledBeforeInitialize.code,T.nativeBrokerCalledBeforeInitialize.desc)},e.createNativePromptParameterNotSupportedError=function(){return new e(T.nativePromptNotSupported.code,T.nativePromptNotSupported.desc)},e}(D);/*! @azure/msal-browser v2.30.0 2022-10-10 */var jt={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"},ai={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},vr;(function(t){t.HandshakeRequest="Handshake",t.HandshakeResponse="HandshakeResponse",t.GetToken="GetToken",t.Response="Response"})(vr||(vr={}));var Ge;(function(t){t.LocalStorage="localStorage",t.SessionStorage="sessionStorage",t.MemoryStorage="memoryStorage"})(Ge||(Ge={}));var Xt;(function(t){t.GET="GET",t.POST="POST"})(Xt||(Xt={}));var X;(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"})(X||(X={}));var co;(function(t){t.WRAPPER_SKU="wrapper.sku",t.WRAPPER_VER="wrapper.version"})(co||(co={}));var oe;(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"})(oe||(oe={}));var L;(function(t){t.Redirect="redirect",t.Popup="popup",t.Silent="silent",t.None="none"})(L||(L={}));var hf;(function(t){t.Startup="startup",t.Login="login",t.Logout="logout",t.AcquireToken="acquireToken",t.SsoSilent="ssoSilent",t.HandleRedirect="handleRedirect",t.None="none"})(hf||(hf={}));var ff={scopes:sa},No="jwk",pf;(function(t){t.React="@azure/msal-react",t.Angular="@azure/msal-angular"})(pf||(pf={}));var wu="msal.db",QE=1,JE=wu+".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.30.0 2022-10-10 */var it={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."}},Ys=function(t){ze(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(it.redirectUriNotSet.code,it.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(it.postLogoutUriNotSet.code,it.postLogoutUriNotSet.desc)},e.createStorageNotSupportedError=function(r){return new e(it.storageNotSupportedError.code,it.storageNotSupportedError.desc+" Given Location: "+r)},e.createRedirectCallbacksNotSetError=function(){return new e(it.noRedirectCallbacksSet.code,it.noRedirectCallbacksSet.desc)},e.createStubPcaInstanceCalledError=function(){return new e(it.stubPcaInstanceCalled.code,it.stubPcaInstanceCalled.desc)},e.createInMemoryRedirectUnavailableError=function(){return new e(it.inMemRedirectUnavailable.code,it.inMemRedirectUnavailable.desc)},e.createEntropyNotProvided=function(){return new e(it.entropyNotProvided.code,it.entropyNotProvided.desc)},e}(D);/*! @azure/msal-browser v2.30.0 2022-10-10 */var gf=function(){function t(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return t.prototype.validateWindowStorage=function(e){if(e!==Ge.LocalStorage&&e!==Ge.SessionStorage)throw Ys.createStorageNotSupportedError(e);var r=!!window[e];if(!r)throw Ys.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.30.0 2022-10-10 */var Cu=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.30.0 2022-10-10 */var Km=function(){function t(){}return t.extractBrowserRequestState=function(e,r){if(N.isEmpty(r))return null;try{var n=Er.parseRequestState(e,r);return n.libraryState.meta}catch(o){throw O.createInvalidStateError(r,o)}},t.parseServerResponseFromHash=function(e){if(!e)return{};var r=new Q(e);return Q.getDeserializedHash(r.getHash())},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Su=function(t){ze(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 Cu,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 Ge.LocalStorage:case Ge.SessionStorage:try{return new gf(r)}catch(n){this.logger.verbose(n);break}}return this.cacheConfig.cacheLocation=Ge.MemoryStorage,new Cu},e.prototype.setupTemporaryCacheStorage=function(r){switch(r){case Ge.LocalStorage:case Ge.SessionStorage:try{return new gf(Ge.SessionStorage)}catch(n){return this.logger.verbose(n),this.internalStorage}case Ge.MemoryStorage:default:return this.internalStorage}},e.prototype.migrateCacheEntries=function(){var r=this,n=_.CACHE_PREFIX+"."+Te.ID_TOKEN,o=_.CACHE_PREFIX+"."+Te.CLIENT_INFO,i=_.CACHE_PREFIX+"."+Te.ERROR,a=_.CACHE_PREFIX+"."+Te.ERROR_DESC,s=this.browserStorage.getItem(n),c=this.browserStorage.getItem(o),l=this.browserStorage.getItem(i),u=this.browserStorage.getItem(a),d=[s,c,l,u],h=[Te.ID_TOKEN,Te.CLIENT_INFO,Te.ERROR,Te.ERROR_DESC];h.forEach(function(p,v){return r.migrateCacheEntry(p,d[v])})},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||!He.isAccountEntity(o)?null:Dt.toObject(new He,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||!Yi.isIdTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),Dt.toObject(new Yi,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||!Qi.isAccessTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),Dt.toObject(new Qi,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||!qs.isRefreshTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),Dt.toObject(new qs,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||!_u.isAppMetadataEntity(r,o)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),Dt.toObject(new _u,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||!Ws.isServerTelemetryEntity(r,o)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),Dt.toObject(new Ws,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&&Eu.isAuthorityMetadataEntity(r,o)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),Dt.toObject(new Eu,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(co.WRAPPER_SKU,r),this.internalStorage.setItem(co.WRAPPER_VER,n)},e.prototype.getWrapperMetadata=function(){var r=this.internalStorage.getItem(co.WRAPPER_SKU)||_.EMPTY_STRING,n=this.internalStorage.getItem(co.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(Te.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(Te.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(Te.ACTIVE_ACCOUNT_FILTERS),o=this.generateCacheKey(Te.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 O.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||!uf.isThrottlingEntity(r,o)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),Dt.toObject(new uf,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===Ge.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 Rd(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},e.prototype.clear=function(){return w(this,void 0,void 0,function(){var r=this;return C(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):N.startsWith(r,_.CACHE_PREFIX)||N.startsWith(r,Te.ADAL_ID_TOKEN)?r:_.CACHE_PREFIX+"."+this.clientId+"."+r},e.prototype.generateAuthorityKey=function(r){var n=Er.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(X.AUTHORITY+"."+n)},e.prototype.generateNonceKey=function(r){var n=Er.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(X.NONCE_IDTOKEN+"."+n)},e.prototype.generateStateKey=function(r){var n=Er.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(X.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:_t.HOME_ACCOUNT_ID};this.setTemporaryCache(X.CCS_CREDENTIAL,JSON.stringify(u),!0)}else if(!N.isEmpty(i)){var u={credential:i,type:_t.UPN};this.setTemporaryCache(X.CCS_CREDENTIAL,JSON.stringify(u),!0)}},e.prototype.resetRequestCache=function(r){var n=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),N.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(X.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(X.ORIGIN_URI)),this.removeItem(this.generateCacheKey(X.URL_HASH)),this.removeItem(this.generateCacheKey(X.CORRELATION_ID)),this.removeItem(this.generateCacheKey(X.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(X.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(X.REQUEST_STATE)!==-1){var i=n.temporaryCacheStorage.getItem(o);if(!!i){var a=Km.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(X.REQUEST_PARAMS,o,!0)},e.prototype.getCachedRequest=function(r,n){this.logger.trace("BrowserCacheManager.getCachedRequest called");var o=this.getTemporaryCache(X.REQUEST_PARAMS,!0);if(!o)throw A.createNoTokenRequestCacheError();var i=this.validateAndParseJson(n.base64Decode(o));if(!i)throw A.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(X.REQUEST_PARAMS)),N.isEmpty(i.authority)){var a=this.generateAuthorityKey(r),s=this.getTemporaryCache(a);if(!s)throw A.createNoCachedAuthorityError();i.authority=s}return i},e.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var r=this.getTemporaryCache(X.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+"."+X.INTERACTION_STATUS_KEY;return this.getTemporaryCache(r,!1)},e.prototype.setInteractionInProgress=function(r){var n=_.CACHE_PREFIX+"."+X.INTERACTION_STATUS_KEY;if(r){if(this.getInteractionInProgress())throw A.createInteractionInProgressError();this.setTemporaryCache(n,this.clientId,!1)}else!r&&this.getInteractionInProgress()===this.clientId&&this.removeItem(n)},e.prototype.getLegacyLoginHint=function(){var r=this.getTemporaryCache(Te.ADAL_ID_TOKEN);r&&(this.browserStorage.removeItem(Te.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var n=this.getTemporaryCache(Te.ID_TOKEN,!0);n&&(this.removeItem(this.generateCacheKey(Te.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var o=n||r;if(o){var i=new ir(o,this.cryptoImpl);if(i.claims&&i.claims.preferred_username)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 preferred_username as loginHint"),i.claims.preferred_username;if(i.claims&&i.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),i.claims.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null},e.prototype.updateCredentialCacheKey=function(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}(Dt),XE=function(t,e){var r={cacheLocation:Ge.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1};return new Su(t,r,zs,e)};/*! @azure/msal-browser v2.30.0 2022-10-10 */var rl="@azure/msal-browser",Ti="2.30.0";/*! @azure/msal-browser v2.30.0 2022-10-10 */var ZE=function(){function t(){}return t.prototype.sendGetRequestAsync=function(e,r){return w(this,void 0,void 0,function(){var n,o,i;return C(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,fetch(e,{method:Xt.GET,headers:this.getFetchHeaders(r)})];case 1:return n=a.sent(),[3,3];case 2:throw o=a.sent(),window.navigator.onLine?A.createGetRequestFailedError(o,e):A.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(),A.createFailedToParseNetworkResponseError(e);case 6:return[2]}})})},t.prototype.sendPostRequestAsync=function(e,r){return w(this,void 0,void 0,function(){var n,o,i,a;return C(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:Xt.POST,headers:this.getFetchHeaders(r),body:n})];case 2:return o=s.sent(),[3,4];case 3:throw i=s.sent(),window.navigator.onLine?A.createPostRequestFailedError(i,e):A.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(),A.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.30.0 2022-10-10 */var ew=function(){function t(){}return t.prototype.sendGetRequestAsync=function(e,r){return w(this,void 0,void 0,function(){return C(this,function(n){return[2,this.sendRequestAsync(e,Xt.GET,r)]})})},t.prototype.sendPostRequestAsync=function(e,r){return w(this,void 0,void 0,function(){return C(this,function(n){return[2,this.sendRequestAsync(e,Xt.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===Xt.POST?a(A.createPostRequestFailedError("Failed with status "+s.status,e)):a(A.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(A.createFailedToParseNetworkResponseError(e))}},s.onerror=function(){window.navigator.onLine?r===Xt.POST?a(A.createPostRequestFailedError("Failed with status "+s.status,e)):a(A.createGetRequestFailedError("Failed with status "+s.status,e)):a(A.createNoNetworkConnectivityError())},r===Xt.POST&&n&&n.body)s.send(n.body);else if(r===Xt.GET)s.send();else throw A.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.30.0 2022-10-10 */var ye=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(jt.POPUP_NAME_PREFIX+".")===0},t.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},t.getHomepage=function(){var e=new Q(window.location.href),r=e.getUrlComponents();return r.Protocol+"//"+r.HostNameAndPort+"/"},t.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new ZE:new ew},t.blockReloadInHiddenIframes=function(){var e=Q.hashContainsKnownProperties(window.location.hash);if(e&&t.isInIframe())throw A.createBlockReloadInHiddenIframeError()},t.blockRedirectInIframe=function(e,r){var n=t.isInIframe();if(e===L.Redirect&&n&&!r)throw A.createRedirectInIframeError(n)},t.blockAcquireTokenInPopups=function(){if(t.isInPopup())throw A.createBlockAcquireTokenInPopupsError()},t.blockNonBrowserEnvironment=function(e){if(!e)throw A.createNonBrowserEnvironmentError()},t.blockNativeBrokerCalledBeforeInitialized=function(e,r){if(e&&!r)throw A.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.30.0 2022-10-10 */var Gm=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(jt.MSAL_SKU,Ti,this.correlationId),this.performanceClient=s}return t.prototype.clearCacheOnLogout=function(e){return w(this,void 0,void 0,function(){return C(this,function(r){switch(r.label){case 0:if(!e)return[3,5];He.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(He.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 w(this,void 0,void 0,function(){var r,n,o,i;return C(this,function(a){switch(a.label){case 0:if(this.logger.verbose("Initializing BaseAuthRequest"),r=e.authority||this.config.auth.authority,n=Rd(e&&e.scopes||[]),o=H(H({},e),{correlationId:this.correlationId,authority:r,scopes:n}),!o.authenticationScheme)o.authenticationScheme=Z.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(o.authenticationScheme===Z.SSH){if(!e.sshJwk)throw se.createMissingSshJwkError();if(!e.sshKid)throw se.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+o.authenticationScheme+'" as configured in Auth request')}return e.claims&&!N.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||ye.getCurrentUri();return Q.getAbsoluteUrl(r,ye.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 VE(n,this.browserStorage)},t.prototype.getDiscoveredAuthority=function(e){return w(this,void 0,void 0,function(){var r;return C(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,Vs.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,Vs.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,r)];case 3:return[2,n.sent()]}})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Do=function(t){ze(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.initializeAuthorizationCodeRequest=function(r){return w(this,void 0,void 0,function(){var n,o;return C(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=H(H({},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=H({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=Q.getAbsoluteUrl(r.postLogoutRedirectUri,ye.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=Q.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,ye.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",n.correlationId),n.postLogoutRedirectUri=Q.getAbsoluteUrl(ye.getCurrentUri(),ye.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 w(this,void 0,void 0,function(){var i;return C(this,function(a){switch(a.label){case 0:return[4,this.getClientConfiguration(r,n,o)];case 1:return i=a.sent(),[2,new $m(i)]}})})},e.prototype.getClientConfiguration=function(r,n,o){return w(this,void 0,void 0,function(){var i;return C(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:jt.MSAL_SKU,version:Ti,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 A.createHashDoesNotContainStateError();var i=Km.extractBrowserRequestState(this.browserCrypto,r.state);if(!i)throw A.createUnableToParseStateError();if(i.interactionType!==n)throw A.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",o),r.state},e.prototype.getDiscoveredAuthority=function(r,n){return w(this,void 0,void 0,function(){var o,i,a,s;return C(this,function(c){switch(c.label){case 0:return this.logger.verbose("getDiscoveredAuthority called",this.correlationId),o=this.performanceClient.startMeasurement(be.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=Gs.generateAuthority(a,n||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),[4,Vs.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 w(this,void 0,void 0,function(){var o,i,a,s,c,l,u;return C(this,function(d){switch(d.label){case 0:return this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),o=this.getRedirectUri(r.redirectUri),i={interactionType:n},a=Er.setRequestState(this.browserCrypto,r&&r.state||_.EMPTY_STRING,i),c=[{}],[4,this.initializeBaseRequest(r)];case 1:return s=H.apply(void 0,[H.apply(void 0,c.concat([d.sent()])),{redirectUri:o,state:a,nonce:r.nonce||this.browserCrypto.createNewGuid(),responseMode:Ls.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),N.isEmpty(s.loginHint)&&!l&&(u=this.browserStorage.getLegacyLoginHint(),u&&(s.loginHint=u)),[2,s]}})})},e}(Gm);/*! @azure/msal-browser v2.30.0 2022-10-10 */var Od=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 w(this,void 0,void 0,function(){var i,a,s;return C(this,function(c){if(this.logger.verbose("InteractionHandler.handleCodeResponse called"),N.isEmpty(e))throw A.createEmptyHashError(e);if(i=this.browserStorage.generateStateKey(r),a=this.browserStorage.getTemporaryCache(i),!a)throw O.createStateNotFoundError("Cached State");try{s=this.authModule.handleFragmentResponse(e,a)}catch(l){throw l instanceof Nn&&l.subError===T.userCancelledError.code?A.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),w(this,void 0,void 0,function(){var a,s,c,l,u,d;return C(this,function(h){switch(h.label){case 0:if(this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),a=this.browserStorage.generateStateKey(r),s=this.browserStorage.getTemporaryCache(a),!s)throw O.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:h.sent(),h.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 d=h.sent(),this.browserStorage.cleanRequestByState(r),[2,d]}})})},t.prototype.updateTokenEndpointAuthority=function(e,r,n){return w(this,void 0,void 0,function(){var o,i;return C(this,function(a){switch(a.label){case 0:return o="https://"+e+"/"+r.tenant+"/",[4,Vs.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(X.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.30.0 2022-10-10 */var mf=function(t){ze(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 w(this,void 0,void 0,function(){var o,i;return C(this,function(a){switch(a.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),N.isEmpty(r)?[3,7]:(n.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(X.ORIGIN_URI,n.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(X.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+r),o={apiId:oe.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"),A.createEmptyNavigationUriError();case 8:return[2]}})})},e.prototype.handleCodeResponseFromHash=function(r,n,o,i){return w(this,void 0,void 0,function(){var a,s,c,l,u,d,h;return C(this,function(p){switch(p.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),N.isEmpty(r))throw A.createEmptyHashError(r);if(this.browserStorage.setInteractionInProgress(!1),a=this.browserStorage.generateStateKey(n),s=this.browserStorage.getTemporaryCache(a),!s)throw O.createStateNotFoundError("Cached State");try{c=this.authModule.handleFragmentResponse(r,s)}catch(v){throw v instanceof Nn&&v.subError===T.userCancelledError.code?A.createUserCancelledError():v}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:p.sent(),p.label=2;case 2:return c.nonce=u||void 0,c.state=s,c.client_info?this.authCodeRequest.clientInfo=c.client_info:(d=this.checkCcsCredentials(),d&&(this.authCodeRequest.ccsCredential=d)),[4,this.authModule.acquireToken(this.authCodeRequest,c)];case 3:return h=p.sent(),this.browserStorage.cleanRequestByState(n),[2,h]}})})},e}(Od);/*! @azure/msal-browser v2.30.0 2022-10-10 */var F;(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"})(F||(F={}));/*! @azure/msal-browser v2.30.0 2022-10-10 */var Dr;(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"})(Dr||(Dr={}));var Qo={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){ze(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===Dr.PERSISTENT_ERROR||this.ext.status===Dr.DISABLED))return!0;switch(this.errorCode){case Qo.extensionError.code:return!0;default:return!1}},e.createError=function(r,n,o){if(o&&o.status)switch(o.status){case Dr.ACCOUNT_UNAVAILABLE:return qt.createNativeAccountUnavailableError();case Dr.USER_INTERACTION_REQUIRED:return new qt(r,n);case Dr.USER_CANCEL:return A.createUserCancelledError();case Dr.NO_NETWORK:return A.createNoNetworkConnectivityError()}return new e(r,n,o)},e.createUserSwitchError=function(){return new e(Qo.userSwitch.code,Qo.userSwitch.desc)},e.createTokensNotFoundInCacheError=function(){return new e(Qo.tokensNotFoundInCache.code,Qo.tokensNotFoundInCache.desc)},e}(D);/*! @azure/msal-browser v2.30.0 2022-10-10 */var Vm=function(t){ze(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.acquireToken=function(r){return w(this,void 0,void 0,function(){var n,o,i,a,s;return C(this,function(c){switch(c.label){case 0:return n=this.performanceClient.startMeasurement(be.SilentCacheClientAcquireToken,r.correlationId),o=this.initializeServerTelemetryManager(oe.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 A&&s.errorCode===T.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 D&&s.errorCode||void 0,subErrorCode:s instanceof D&&s.subError||void 0,success:!1}),s;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(A.createSilentLogoutUnsupportedError())},e.prototype.createSilentFlowClient=function(r,n,o){return w(this,void 0,void 0,function(){var i;return C(this,function(a){switch(a.label){case 0:return[4,this.getClientConfiguration(r,n,o)];case 1:return i=a.sent(),[2,new $E(i,this.performanceClient)]}})})},e.prototype.initializeSilentRequest=function(r,n){return w(this,void 0,void 0,function(){var o;return C(this,function(i){switch(i.label){case 0:return o=[H({},r)],[4,this.initializeBaseRequest(r)];case 1:return[2,H.apply(void 0,[H.apply(void 0,o.concat([i.sent()])),{account:n,forceRefresh:r.forceRefresh||!1}])]}})})},e}(Do);/*! @azure/msal-browser v2.30.0 2022-10-10 */var vo=function(t){ze(e,t);function e(r,n,o,i,a,s,c,l,u,d,h,p){var v=t.call(this,r,n,o,i,a,s,l,u,p)||this;return v.apiId=c,v.accountId=d,v.nativeMessageHandler=u,v.nativeStorageManager=h,v.silentCacheClient=new Vm(r,v.nativeStorageManager,o,i,a,s,l,u,p),v}return e.prototype.acquireToken=function(r){return w(this,void 0,void 0,function(){var n,o,i,a,s,c,l;return C(this,function(u){switch(u.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),n=this.performanceClient.startMeasurement(be.NativeInteractionClientAcquireToken,r.correlationId),o=Ot.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:!0,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:vr.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(d){return n.endMeasurement({success:!0,isNativeBroker:!0,requestId:d.requestId}),d}).catch(function(d){throw n.endMeasurement({success:!1,errorCode:d.errorCode,subErrorCode:d.subError,isNativeBroker:!0}),d})]}})})},e.prototype.createSilentCacheRequest=function(r,n){return{authority:r.authority,correlationId:this.correlationId,scopes:tt.fromString(r.scope).asArray(),account:n,forceRefresh:!1}},e.prototype.acquireTokensFromCache=function(r,n){return w(this,void 0,void 0,function(){var o,i,a,s,c;return C(this,function(l){switch(l.label){case 0:if(o=this.browserStorage.readAccountFromCacheWithNativeAccountId(r),!o)throw O.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 w(this,void 0,void 0,function(){var n,o,i,a,s,c;return C(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:vr.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(X.NATIVE_REQUEST,JSON.stringify(n),!0),s={apiId:oe.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 w(this,void 0,void 0,function(){var r,n,o,i,a,s;return C(this,function(c){switch(c.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];this.browserStorage.removeItem(this.browserStorage.generateCacheKey(X.NATIVE_REQUEST)),n={method:vr.GetToken,request:r},o=Ot.nowSeconds(),c.label=1;case 1:return c.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(n)];case 2:return i=c.sent(),this.validateNativeResponse(i),a=this.handleNativeResponse(i,r,o),this.browserStorage.setInteractionInProgress(!1),[2,a];case 3:throw s=c.sent(),this.browserStorage.setInteractionInProgress(!1),s;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 w(this,void 0,void 0,function(){var i,a,s,c,l,u,d,h,p,v,y,I,g,f,m,E,b,R,x,P,he=this;return C(this,function(K){switch(K.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),r.account.id!==n.accountId)throw er.createUserSwitchError();return i=new ir(r.id_token||_.EMPTY_STRING,this.browserCrypto),[4,this.getDiscoveredAuthority(n.authority)];case 1:switch(a=K.sent(),s=a.getPreferredCache(),c=He.generateHomeAccountId(r.client_info||_.EMPTY_STRING,Rt.Default,this.logger,this.browserCrypto,i),l=He.createAccount(r.client_info,c,i,void 0,void 0,void 0,s,r.account.id),this.browserStorage.setAccount(l),u=r.scope?tt.fromString(r.scope):tt.fromString(n.scope),d=r.account.properties||{},h=d.UID||i.claims.oid||i.claims.sub||_.EMPTY_STRING,p=d.TenantId||i.claims.tid||_.EMPTY_STRING,y=Z.BEARER,I=n.tokenType,I){case Z.POP:return[3,2]}return[3,4];case 2:if(y=Z.POP,r.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),v=r.shr,[3,5];if(g=new Ro(this.browserCrypto),f={resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,shrNonce:n.shrNonce},!n.keyId)throw O.createKeyIdMissingError();return[4,g.signPopToken(r.access_token,n.keyId,f)];case 3:return v=K.sent(),[3,5];case 4:v=r.access_token,K.label=5;case 5:return m=this.getMATSFromResponse(r),E={authority:a.canonicalAuthority,uniqueId:h,tenantId:p,scopes:u.asArray(),account:l.getAccountInfo(),idToken:r.id_token,idTokenClaims:i.claims,accessToken:v,fromCache:m?this.isResponseFromCache(m):!1,expiresOn:new Date(Number(o+r.expires_in)*1e3),tokenType:y,correlationId:this.correlationId,state:r.state,fromNativeBroker:!0},b=Yi.createIdTokenEntity(c,n.authority,r.id_token||_.EMPTY_STRING,n.clientId,i.claims.tid||_.EMPTY_STRING),this.nativeStorageManager.setIdTokenCredential(b),R=y===Z.POP?_.SHR_NONCE_VALIDITY:(typeof r.expires_in=="string"?parseInt(r.expires_in,10):r.expires_in)||0,x=o+R,P=Qi.createAccessTokenEntity(c,n.authority,v,n.clientId,p,u.printScopes(),x,0,this.browserCrypto),this.nativeStorageManager.setAccessTokenCredential(P),this.browserStorage.removeAccountContext(l).catch(function(gt){he.logger.error("Error occurred while removing account context from browser storage. "+gt)}),[2,E]}})})},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 w(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,d,h,p=this;return C(this,function(v){switch(v.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),n=r.authority||this.config.auth.authority,o=new Q(n),o.validateAsUri(),i=r.scopes,a=TE(r,["scopes"]),s=new tt(i||[]),s.appendScopes(sa),c=function(){switch(p.apiId){case oe.ssoSilent:case oe.acquireTokenSilent_silentFlow:return p.logger.trace("initializeNativeRequest: silent request sets prompt to none"),Ye.NONE}if(!r.prompt){p.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(r.prompt){case Ye.NONE:case Ye.CONSENT:case Ye.LOGIN:return p.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),r.prompt;default:throw p.logger.trace("initializeNativeRequest: prompt = "+r.prompt+" is not compatible with native flow"),A.createNativePromptParameterNotSupportedError()}},l=H(H({},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:H(H(H({},r.extraQueryParameters),r.tokenQueryParameters),{telemetry:ai.MATS_TELEMETRY}),extendedExpiryToken:!1}),r.authenticationScheme!==Z.POP?[3,2]:(u={resourceRequestUri:r.resourceRequestUri,resourceRequestMethod:r.resourceRequestMethod,shrClaims:r.shrClaims,shrNonce:r.shrNonce},d=new Ro(this.browserCrypto),[4,d.generateCnf(u)]);case 1:h=v.sent(),l.reqCnf=h.reqCnfHash,l.keyId=h.kid,v.label=2;case 2:return[2,l]}})})},e}(Gm);/*! @azure/msal-browser v2.30.0 2022-10-10 */var Cn=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 w(this,void 0,void 0,function(){var r,n=this;return C(this,function(o){return this.logger.trace("NativeMessageHandler - sendMessage called."),r={channel:ai.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 w(this,void 0,void 0,function(){var n,o;return C(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,ai.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 w(this,void 0,void 0,function(){var e,r=this;return C(this,function(n){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:ai.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:vr.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(A.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!==ai.CHANNEL_ID)&&!(r.extensionId&&r.extensionId!==this.extensionId)&&r.body.method===vr.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(A.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===vr.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 D.createUnexpectedError("Event does not contain result.");this.resolvers.delete(r.responseId)}else if(i===vr.HandshakeResponse){if(!o)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=r.extensionId,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.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 Z.BEARER:case Z.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.30.0 2022-10-10 */var tw=function(t){ze(e,t);function e(r,n,o,i,a,s,c,l,u,d){var h=t.call(this,r,n,o,i,a,s,c,u,d)||this;return h.nativeStorage=l,h}return e.prototype.acquireToken=function(r){return w(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,d,h=this;return C(this,function(p){switch(p.label){case 0:return[4,this.initializeAuthorizationRequest(r,L.Redirect)];case 1:n=p.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||_.EMPTY_STRING,n.account||null),o=this.initializeServerTelemetryManager(oe.acquireTokenRedirect),i=function(v){v.persisted&&(h.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),h.browserStorage.cleanRequestByState(n.state))},p.label=2;case 2:return p.trys.push([2,7,,8]),[4,this.initializeAuthorizationCodeRequest(n)];case 3:return a=p.sent(),[4,this.createAuthCodeClient(o,n.authority,n.azureCloudOptions)];case 4:return s=p.sent(),this.logger.verbose("Auth code client created"),c=new mf(s,this.browserStorage,a,this.logger,this.browserCrypto),[4,s.getAuthCodeUrl(H(H({},n),{nativeBroker:Cn.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme)}))];case 5:return l=p.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,p.sent()];case 7:throw d=p.sent(),d instanceof D&&d.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",i),o.cacheFailedRequest(d),this.browserStorage.cleanRequestByState(n.state),d;case 8:return[2]}})})},e.prototype.handleRedirectPromise=function(r){return w(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u,d,h,p,v;return C(this,function(y){switch(y.label){case 0:n=this.initializeServerTelemetryManager(oe.handleRedirectPromise),y.label=1;case 1:if(y.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(L.Redirect),[2,null];i=void 0;try{a=Q.getDeserializedHash(o),i=this.validateAndExtractStateFromHash(a,L.Redirect),this.logger.verbose("State extracted from hash")}catch(I){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+I),this.browserStorage.cleanRequestByInteractionType(L.Redirect),[2,null]}return s=this.browserStorage.getTemporaryCache(X.ORIGIN_URI,!0)||_.EMPTY_STRING,c=Q.removeHashFromUrl(s),l=Q.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=y.sent(),s.indexOf("#")>-1&&ye.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!ye.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(X.URL_HASH,o,!0),d={apiId:oe.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},h=!0,!s||s==="null"?(p=ye.getHomepage(),this.browserStorage.setTemporaryCache(X.ORIGIN_URI,p,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(p,d)]):[3,6]):[3,9];case 5:return h=y.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+s),[4,this.navigationClient.navigateInternal(s,d)];case 7:h=y.sent(),y.label=8;case 8:if(!h)return[2,this.handleHash(o,i,n)];y.label=9;case 9:return[2,null];case 10:throw v=y.sent(),v instanceof D&&v.setCorrelationId(this.correlationId),n.cacheFailedRequest(v),this.browserStorage.cleanRequestByInteractionType(L.Redirect),v;case 11:return[2]}})})},e.prototype.getRedirectResponseHash=function(r){this.logger.verbose("getRedirectResponseHash called");var n=Q.hashContainsKnownProperties(r);if(n)return ye.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),r;var o=this.browserStorage.getTemporaryCache(X.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(X.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),o},e.prototype.handleHash=function(r,n,o){return w(this,void 0,void 0,function(){var i,a,s,c,l,u,d,h=this;return C(this,function(p){switch(p.label){case 0:if(i=this.browserStorage.getCachedRequest(n,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),a=Q.getDeserializedHash(r),a.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw A.createNativeConnectionNotEstablishedError();return s=new vo(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,oe.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,a.accountId,this.browserStorage,i.correlationId),c=Er.parseRequestState(this.browserCrypto,n).userRequestState,[2,s.acquireToken(H(H({},i),{state:c,prompt:void 0})).finally(function(){h.browserStorage.cleanRequestByState(n)})]}if(l=this.browserStorage.getCachedAuthority(n),!l)throw A.createNoCachedAuthorityError();return[4,this.createAuthCodeClient(o,l)];case 1:return u=p.sent(),this.logger.verbose("Auth code client created"),js.removeThrottle(this.browserStorage,this.config.auth.clientId,i),d=new mf(u,this.browserStorage,i,this.logger,this.browserCrypto),[4,d.handleCodeResponseFromHash(r,n,u.authority,this.networkClient)];case 2:return[2,p.sent()]}})})},e.prototype.logout=function(r){return w(this,void 0,void 0,function(){var n,o,i,a,s,c,l;return C(this,function(u){switch(u.label){case 0:this.logger.verbose("logoutRedirect called"),n=this.initializeLogoutRequest(r),o=this.initializeServerTelemetryManager(oe.logout),u.label=1;case 1:return u.trys.push([1,10,,11]),this.eventHandler.emitEvent(F.LOGOUT_START,L.Redirect,r),[4,this.clearCacheOnLogout(n.account)];case 2:return u.sent(),i={apiId:oe.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(F.LOGOUT_SUCCESS,L.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 D&&l.setCorrelationId(this.correlationId),o.cacheFailedRequest(l),this.eventHandler.emitEvent(F.LOGOUT_FAILURE,L.Redirect,null,l),this.eventHandler.emitEvent(F.LOGOUT_END,L.Redirect),l;case 11:return this.eventHandler.emitEvent(F.LOGOUT_END,L.Redirect),[2]}})})},e.prototype.getRedirectStartPage=function(r){var n=r||window.location.href;return Q.getAbsoluteUrl(n,ye.getCurrentUri())},e}(Do);/*! @azure/msal-browser v2.30.0 2022-10-10 */var rw=function(t){ze(e,t);function e(r,n,o,i,a,s,c,l,u,d){var h=t.call(this,r,n,o,i,a,s,c,u,d)||this;return h.unloadWindow=h.unloadWindow.bind(h),h.nativeStorage=l,h}return e.prototype.acquireToken=function(r){try{var n=this.generatePopupName(r.scopes||sa,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 w(this,void 0,void 0,function(){var a,s,c,l,u,d,h,p,v,y,I,g,f,m,E,b,R,x=this;return C(this,function(P){switch(P.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),a=this.initializeServerTelemetryManager(oe.acquireTokenPopup),[4,this.initializeAuthorizationRequest(r,L.Popup)];case 1:s=P.sent(),this.browserStorage.updateCacheEntries(s.state,s.nonce,s.authority,s.loginHint||_.EMPTY_STRING,s.account||null),P.label=2;case 2:return P.trys.push([2,8,,9]),[4,this.initializeAuthorizationCodeRequest(s)];case 3:return c=P.sent(),[4,this.createAuthCodeClient(a,s.authority,s.azureCloudOptions)];case 4:return l=P.sent(),this.logger.verbose("Auth code client created"),u=Cn.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme),d=void 0,u&&(d=this.performanceClient.startMeasurement(be.FetchAccountIdWithNativeBroker,r.correlationId)),[4,l.getAuthCodeUrl(H(H({},s),{nativeBroker:u}))];case 5:return h=P.sent(),p=new Od(l,this.browserStorage,c,this.logger),v={popup:i,popupName:n,popupWindowAttributes:o},y=this.initiateAuthRequest(h,v),this.eventHandler.emitEvent(F.POPUP_OPENED,L.Popup,{popupWindow:y},null),[4,this.monitorPopupForHash(y)];case 6:if(I=P.sent(),g=Q.getDeserializedHash(I),f=this.validateAndExtractStateFromHash(g,L.Popup,s.correlationId),js.removeThrottle(this.browserStorage,this.config.auth.clientId,c),g.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),d&&d.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw A.createNativeConnectionNotEstablishedError();return m=new vo(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,oe.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,g.accountId,this.nativeStorage,s.correlationId),E=Er.parseRequestState(this.browserCrypto,f).userRequestState,[2,m.acquireToken(H(H({},s),{state:E,prompt:void 0})).finally(function(){x.browserStorage.cleanRequestByState(f)})]}return[4,p.handleCodeResponseFromHash(I,f,l.authority,this.networkClient)];case 7:return b=P.sent(),[2,b];case 8:throw R=P.sent(),i&&i.close(),R instanceof D&&R.setCorrelationId(this.correlationId),a.cacheFailedRequest(R),this.browserStorage.cleanRequestByState(s.state),R;case 9:return[2]}})})},e.prototype.logoutPopupAsync=function(r,n,o,i,a,s){return w(this,void 0,void 0,function(){var c,l,u,d,h,p,v;return C(this,function(y){switch(y.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(F.LOGOUT_START,L.Popup,r),c=this.initializeServerTelemetryManager(oe.logoutPopup),y.label=1;case 1:return y.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(r.account)];case 2:return y.sent(),[4,this.createAuthCodeClient(c,i)];case 3:return l=y.sent(),this.logger.verbose("Auth code client created"),u=l.getLogoutUri(r),this.eventHandler.emitEvent(F.LOGOUT_SUCCESS,L.Popup,r),d=this.openPopup(u,{popupName:n,popupWindowAttributes:o,popup:a}),this.eventHandler.emitEvent(F.POPUP_OPENED,L.Popup,{popupWindow:d},null),[4,this.waitForLogoutPopup(d)];case 4:return y.sent(),s?(h={apiId:oe.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},p=Q.getAbsoluteUrl(s,ye.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+p),this.navigationClient.navigateInternal(p,h)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw v=y.sent(),a&&a.close(),v instanceof D&&v.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(F.LOGOUT_FAILURE,L.Popup,null,v),this.eventHandler.emitEvent(F.LOGOUT_END,L.Popup),c.cacheFailedRequest(v),v;case 6:return this.eventHandler.emitEvent(F.LOGOUT_END,L.Popup),[2]}})})},e.prototype.initiateAuthRequest=function(r,n){if(N.isEmpty(r))throw this.logger.error("Navigate url is empty"),A.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(A.createUserCancelledError());return}var l=_.EMPTY_STRING,u=_.EMPTY_STRING;try{l=r.location.href,u=r.location.hash}catch{}N.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),Q.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(A.createHashDoesNotContainKnownPropertiesError()))):s>a&&(n.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(c),i(A.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{}N.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 A.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),A.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,d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,h=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,p=(i=o.popupSize)===null||i===void 0?void 0:i.width,v=(a=o.popupSize)===null||a===void 0?void 0:a.height,y=(s=o.popupPosition)===null||s===void 0?void 0:s.top,I=(c=o.popupPosition)===null||c===void 0?void 0:c.left;return(!p||p<0||p>d)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),p=jt.POPUP_WIDTH),(!v||v<0||v>h)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),v=jt.POPUP_HEIGHT),(!y||y<0||y>h)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),y=Math.max(0,h/2-jt.POPUP_HEIGHT/2+u)),(!I||I<0||I>d)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),I=Math.max(0,d/2-jt.POPUP_WIDTH/2+l)),window.open(r,n,"width="+p+", height="+v+", top="+y+", left="+I+", scrollbars=yes")},e.prototype.unloadWindow=function(r){this.browserStorage.cleanRequestByInteractionType(L.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 jt.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 jt.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+n+"."+this.correlationId},e}(Do);/*! @azure/msal-browser v2.30.0 2022-10-10 */var nw=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.30.0 2022-10-10 */var ow=6e4,Tu=6e3,iw=3e4,aw=2e3;function sw(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:Ks.AAD,azureCloudOptions:{azureCloudInstance:Vi.None,tenant:_.EMPTY_STRING},skipAuthorityMetadataCache:!1},s={cacheLocation:Ge.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1},c={loggerCallback:function(){},logLevel:Ee.Info,piiLoggingEnabled:!1},l=H(H({},zm),{loggerOptions:c,networkClient:e?ye.getBrowserNetworkClient():KE,navigationClient:new nw,loadFrameTimeout:0,windowHashTimeout:(o==null?void 0:o.loadFrameTimeout)||ow,iframeHashTimeout:(o==null?void 0:o.loadFrameTimeout)||Tu,navigateFrameWait:e&&ye.detectIEOrEdge()?500:0,redirectNavigationTimeout:iw,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(o==null?void 0:o.nativeBrokerHandshakeTimeout)||aw,pollIntervalMilliseconds:jt.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),u={application:{appName:_.EMPTY_STRING,appVersion:_.EMPTY_STRING}},d={auth:H(H({},a),r),cache:H(H({},s),n),system:H(H({},l),o),telemetry:H(H({},u),i)};return d}/*! @azure/msal-browser v2.30.0 2022-10-10 */var Wm=function(t){ze(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 w(this,void 0,void 0,function(){var n;return C(this,function(o){switch(o.label){case 0:if(N.isEmpty(r))throw this.logger.info("Navigate url is empty"),A.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<Tu&&o.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+n+"ms) than the default ("+Tu+"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(A.createMonitorIframeTimeoutError());return}var u=_.EMPTY_STRING,d=r.contentWindow;try{u=d?d.location.href:_.EMPTY_STRING}catch{}if(!N.isEmpty(u)){var h=d?d.location.hash:_.EMPTY_STRING;if(Q.hashContainsKnownProperties(h)){o.removeHiddenIframe(r),clearInterval(l),i(h);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}(Od);/*! @azure/msal-browser v2.30.0 2022-10-10 */var cw=function(t){ze(e,t);function e(r,n,o,i,a,s,c,l,u,d,h){var p=t.call(this,r,n,o,i,a,s,l,d,h)||this;return p.apiId=c,p.nativeStorage=u,p}return e.prototype.acquireToken=function(r){return w(this,void 0,void 0,function(){var n,o,i,a,s;return C(this,function(c){switch(c.label){case 0:if(this.logger.verbose("acquireTokenByIframe called"),n=this.performanceClient.startMeasurement(be.SilentIframeClientAcquireToken,r.correlationId),N.isEmpty(r.loginHint)&&N.isEmpty(r.sid)&&(!r.account||N.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!==Ye.NONE&&r.prompt!==Ye.NO_SESSION)throw n.endMeasurement({success:!1}),A.createSilentPromptValueError(r.prompt);return[4,this.initializeAuthorizationRequest(H(H({},r),{prompt:r.prompt||Ye.NONE}),L.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 D&&s.setCorrelationId(this.correlationId),i.cacheFailedRequest(s),this.browserStorage.cleanRequestByState(o.state),n.endMeasurement({errorCode:s instanceof D&&s.errorCode||void 0,subErrorCode:s instanceof D&&s.subError||void 0,success:!1}),s;case 6:return[2]}})})},e.prototype.logout=function(){return Promise.reject(A.createSilentLogoutUnsupportedError())},e.prototype.silentTokenHelper=function(r,n){return w(this,void 0,void 0,function(){var o,i,a,s,c,l,u,d,h,p=this;return C(this,function(v){switch(v.label){case 0:return[4,this.initializeAuthorizationCodeRequest(n)];case 1:return o=v.sent(),[4,r.getAuthCodeUrl(H(H({},n),{nativeBroker:Cn.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,n.authenticationScheme)}))];case 2:return i=v.sent(),a=new Wm(r,this.browserStorage,o,this.logger,this.config.system),[4,a.initiateAuthRequest(i)];case 3:return s=v.sent(),[4,a.monitorIframeForHash(s,this.config.system.iframeHashTimeout)];case 4:if(c=v.sent(),l=Q.getDeserializedHash(c),u=this.validateAndExtractStateFromHash(l,L.Silent,o.correlationId),l.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw A.createNativeConnectionNotEstablishedError();return d=new vo(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,l.accountId,this.browserStorage,this.correlationId),h=Er.parseRequestState(this.browserCrypto,u).userRequestState,[2,d.acquireToken(H(H({},n),{state:h,prompt:n.prompt||Ye.NONE})).finally(function(){p.browserStorage.cleanRequestByState(u)})]}return[2,a.handleCodeResponseFromHash(c,u,r.authority,this.networkClient)]}})})},e}(Do);/*! @azure/msal-browser v2.30.0 2022-10-10 */var lw=function(t){ze(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.acquireToken=function(r){return w(this,void 0,void 0,function(){var n,o,i,a,s,c=this;return C(this,function(l){switch(l.label){case 0:return o=[H({},r)],[4,this.initializeBaseRequest(r)];case 1:return n=H.apply(void 0,o.concat([l.sent()])),i=this.performanceClient.startMeasurement(be.SilentRefreshClientAcquireToken,n.correlationId),a=this.initializeServerTelemetryManager(oe.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 D&&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(A.createSilentLogoutUnsupportedError())},e.prototype.createRefreshTokenClient=function(r,n,o){return w(this,void 0,void 0,function(){var i;return C(this,function(a){switch(a.label){case 0:return[4,this.getClientConfiguration(r,n,o)];case 1:return i=a.sent(),[2,new jm(i,this.performanceClient)]}})})},e}(Do);/*! @azure/msal-browser v2.30.0 2022-10-10 */var uw=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"||!He.isAccountEntity(n))return;var o=Dt.toObject(new He,n),i=o.getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(F.ACCOUNT_ADDED,void 0,i)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(F.ACCOUNT_REMOVED,void 0,i))}catch{return}},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var qe=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.30.0 2022-10-10 */var Ym=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,qe.decimalToHex(e[0])+qe.decimalToHex(e[1])+qe.decimalToHex(e[2])+qe.decimalToHex(e[3])+"-"+qe.decimalToHex(e[4])+qe.decimalToHex(e[5])+"-"+qe.decimalToHex(e[6])+qe.decimalToHex(e[7])+"-"+qe.decimalToHex(e[8])+qe.decimalToHex(e[9])+"-"+qe.decimalToHex(e[10])+qe.decimalToHex(e[11])+qe.decimalToHex(e[12])+qe.decimalToHex(e[13])+qe.decimalToHex(e[14])+qe.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.30.0 2022-10-10 */var wr=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.30.0 2022-10-10 */var Qm=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=wr.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.30.0 2022-10-10 */var dw=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 wr.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,d=0;d<o;d++)if(c=d&3,l|=this.b64ToUint6(n.charCodeAt(d))<<18-6*c,c===3||o-d===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.30.0 2022-10-10 */var hw=32,fw=function(){function t(e){this.base64Encode=new Qm,this.cryptoObj=e}return t.prototype.generateCodes=function(){return w(this,void 0,void 0,function(){var e,r;return C(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(hw);this.cryptoObj.getRandomValues(e);var r=this.base64Encode.urlEncodeArr(e);return r}catch(n){throw A.createPkceNotGeneratedError(n)}},t.prototype.generateCodeChallengeFromVerifier=function(e){return w(this,void 0,void 0,function(){var r,n;return C(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(),A.createPkceNotGeneratedError(n);case 3:return[2]}})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var pw=function(){function t(){}return t.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},t.prototype.generateKey=function(e,r,n){return w(this,void 0,void 0,function(){return C(this,function(o){return[2,window.crypto.subtle.generateKey(e,r,n)]})})},t.prototype.exportKey=function(e){return w(this,void 0,void 0,function(){return C(this,function(r){return[2,window.crypto.subtle.exportKey(No,e)]})})},t.prototype.importKey=function(e,r,n,o){return w(this,void 0,void 0,function(){return C(this,function(i){return[2,window.crypto.subtle.importKey(No,e,r,n,o)]})})},t.prototype.sign=function(e,r,n){return w(this,void 0,void 0,function(){return C(this,function(o){return[2,window.crypto.subtle.sign(e,r,n)]})})},t.prototype.digest=function(e,r){return w(this,void 0,void 0,function(){return C(this,function(n){return[2,window.crypto.subtle.digest(e,r)]})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var gw=function(){function t(){}return t.prototype.initPrng=function(e){return window.msrCrypto.initPrng(Rd(e))},t.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},t.prototype.generateKey=function(e,r,n){return w(this,void 0,void 0,function(){return C(this,function(o){return[2,window.msrCrypto.subtle.generateKey(e,r,n)]})})},t.prototype.exportKey=function(e){return w(this,void 0,void 0,function(){return C(this,function(r){return[2,window.msrCrypto.subtle.exportKey(No,e)]})})},t.prototype.importKey=function(e,r,n,o){return w(this,void 0,void 0,function(){return C(this,function(i){return[2,window.msrCrypto.subtle.importKey(No,e,r,n,o)]})})},t.prototype.sign=function(e,r,n){return w(this,void 0,void 0,function(){return C(this,function(o){return[2,window.msrCrypto.subtle.sign(e,r,n)]})})},t.prototype.digest=function(e,r){return w(this,void 0,void 0,function(){return C(this,function(n){return[2,window.msrCrypto.subtle.digest(e,r)]})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var mw=function(){function t(){}return t.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},t.prototype.generateKey=function(e,r,n){return w(this,void 0,void 0,function(){return C(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 w(this,void 0,void 0,function(){return C(this,function(r){return[2,new Promise(function(n,o){var i=window.msCrypto.subtle.exportKey(No,e);i.addEventListener("complete",function(a){var s=a.target.result,c=wr.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 w(this,void 0,void 0,function(){var i,a;return C(this,function(s){return i=wr.getSortedObjectString(e),a=wr.stringToArrayBuffer(i),[2,new Promise(function(c,l){var u=window.msCrypto.subtle.importKey(No,a,r,n,o);u.addEventListener("complete",function(d){c(d.target.result)}),u.addEventListener("error",function(d){l(d)})})]})})},t.prototype.sign=function(e,r,n){return w(this,void 0,void 0,function(){return C(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 w(this,void 0,void 0,function(){return C(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.30.0 2022-10-10 */var vw="RSASSA-PKCS1-v1_5",vf="SHA-256",yw=2048,_w=new Uint8Array([1,0,1]),Jm=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 pw;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new mw;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 gw;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."),A.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."),Ys.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:vw,hash:vf,modulusLength:yw,publicExponent:_w}}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 w(this,void 0,void 0,function(){var r;return C(this,function(n){return r=wr.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:vf},r)]})})},t.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},t.prototype.generateKeyPair=function(e,r){return w(this,void 0,void 0,function(){return C(this,function(n){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,r)]})})},t.prototype.exportJwk=function(e){return w(this,void 0,void 0,function(){return C(this,function(r){return[2,this.subtleCrypto.exportKey(e)]})})},t.prototype.importJwk=function(e,r,n){return w(this,void 0,void 0,function(){return C(this,function(o){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,r,n)]})})},t.prototype.sign=function(e,r){return w(this,void 0,void 0,function(){return C(this,function(n){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,r)]})})},t}();/*! @azure/msal-browser v2.30.0 2022-10-10 */var Ew=function(){function t(){this.dbName=wu,this.version=QE,this.tableName=JE,this.dbOpen=!1}return t.prototype.open=function(){return w(this,void 0,void 0,function(){var e=this;return C(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(A.createDatabaseUnavailableError())})})]})})},t.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},t.prototype.validateDbIsOpen=function(){return w(this,void 0,void 0,function(){return C(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 w(this,void 0,void 0,function(){var r=this;return C(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(A.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 w(this,void 0,void 0,function(){var n=this;return C(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(A.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 w(this,void 0,void 0,function(){var r=this;return C(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(A.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 w(this,void 0,void 0,function(){var e=this;return C(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(A.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 w(this,void 0,void 0,function(){var r=this;return C(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(A.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 w(this,void 0,void 0,function(){return C(this,function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(r,n){var o=window.indexedDB.deleteDatabase(wu);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.30.0 2022-10-10 */var yf=function(){function t(e,r){this.inMemoryCache=new Cu,this.indexedDBCache=new Ew,this.logger=e,this.storeName=r}return t.prototype.handleDatabaseAccessError=function(e){if(e instanceof A&&e.errorCode===T.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 w(this,void 0,void 0,function(){var r,n;return C(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 w(this,void 0,void 0,function(){var n;return C(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 w(this,void 0,void 0,function(){var r;return C(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 w(this,void 0,void 0,function(){var e,r;return C(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 w(this,void 0,void 0,function(){var r,n;return C(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 w(this,void 0,void 0,function(){var e,r;return C(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.30.0 2022-10-10 */var Qs;(function(t){t.asymmetricKeys="asymmetricKeys",t.symmetricKeys="symmetricKeys"})(Qs||(Qs={}));var ww=function(){function t(e){this.logger=e,this.asymmetricKeys=new yf(this.logger,Qs.asymmetricKeys),this.symmetricKeys=new yf(this.logger,Qs.symmetricKeys)}return t.prototype.clear=function(){return w(this,void 0,void 0,function(){var e;return C(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.30.0 2022-10-10 */var Cw=function(){function t(e,r,n){this.logger=e,this.browserCrypto=new Jm(this.logger,n),this.b64Encode=new Qm,this.b64Decode=new dw,this.guidGenerator=new Ym(this.browserCrypto),this.pkceGenerator=new fw(this.browserCrypto),this.cache=new ww(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 w(this,void 0,void 0,function(){return C(this,function(e){return[2,this.pkceGenerator.generateCodes()]})})},t.prototype.getPublicKeyThumbprint=function(e){var r;return w(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u;return C(this,function(d){switch(d.label){case 0:return n=(r=this.performanceClient)===null||r===void 0?void 0:r.startMeasurement(be.CryptoOptsGetPublicKeyThumbprint,e.correlationId),[4,this.browserCrypto.generateKeyPair(t.EXTRACTABLE,t.POP_KEY_USAGES)];case 1:return o=d.sent(),[4,this.browserCrypto.exportJwk(o.publicKey)];case 2:return i=d.sent(),a={e:i.e,kty:i.kty,n:i.n},s=wr.getSortedObjectString(a),[4,this.hashString(s)];case 3:return c=d.sent(),[4,this.browserCrypto.exportJwk(o.privateKey)];case 4:return l=d.sent(),[4,this.browserCrypto.importJwk(l,!1,["sign"])];case 5:return u=d.sent(),[4,this.cache.asymmetricKeys.setItem(c,{privateKey:u,publicKey:o.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri})];case 6:return d.sent(),n&&n.endMeasurement({success:!0}),[2,c]}})})},t.prototype.removeTokenBindingKey=function(e){return w(this,void 0,void 0,function(){var r;return C(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 w(this,void 0,void 0,function(){return C(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 w(this,void 0,void 0,function(){var i,a,s,c,l,u,d,h,p,v,y,I,g;return C(this,function(f){switch(f.label){case 0:return i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(be.CryptoOptsSignJwt,n),[4,this.cache.asymmetricKeys.getItem(r)];case 1:if(a=f.sent(),!a)throw A.createSigningKeyNotFoundInStorageError(r);return[4,this.browserCrypto.exportJwk(a.publicKey)];case 2:return s=f.sent(),c=wr.getSortedObjectString(s),l=this.b64Encode.urlEncode(JSON.stringify({kid:r})),u=GE.getShrHeaderString({kid:l,alg:s.alg}),d=this.b64Encode.urlEncode(u),e.cnf={jwk:JSON.parse(c)},h=this.b64Encode.urlEncode(JSON.stringify(e)),p=d+"."+h,v=wr.stringToArrayBuffer(p),[4,this.browserCrypto.sign(a.privateKey,v)];case 3:return y=f.sent(),I=this.b64Encode.urlEncodeArr(new Uint8Array(y)),g=p+"."+I,i&&i.endMeasurement({success:!0}),[2,g]}})})},t.prototype.hashString=function(e){return w(this,void 0,void 0,function(){var r,n;return C(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.30.0 2022-10-10 */var Sw=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 A.createUnableToLoadTokenError("Please ensure server response includes id token.");var o=new ir(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 rs(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=Gs.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 Gs(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 rs(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 rs(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 A.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw A.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=He.generateHomeAccountId(n,o,this.logger,this.cryptoObj,e)),!a)throw A.createUnableToLoadTokenError("Unexpected missing homeAccountId");var s=n?He.createAccount(n,a,e,void 0,void 0,void 0,r):He.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 A.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},t.prototype.loadIdToken=function(e,r,n,o){var i=Yi.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 A.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 A.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!a.extendedExpiresOn)throw A.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var s=new tt(e.scopes).printScopes(),c=a.expiresOn||r.expires_in+new Date().getTime()/1e3,l=a.extendedExpiresOn,u=Qi.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 A.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=qs.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 A.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,d;n!=null&&n.accessToken&&(c=n.accessToken.secret,l=tt.fromString(n.accessToken.target).asArray(),u=new Date(Number(n.accessToken.expiresOn)*1e3),d=new Date(Number(n.accessToken.extendedExpiresOn)*1e3));var h=(r==null?void 0:r.claims.oid)||(r==null?void 0:r.claims.sub)||_.EMPTY_STRING,p=(r==null?void 0:r.claims.tid)||_.EMPTY_STRING;return{authority:o?o.canonicalAuthority:_.EMPTY_STRING,uniqueId:h,tenantId:p,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:d,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.30.0 2022-10-10 */var Tw=function(t){ze(e,t);function e(r){var n=t.call(this,r)||this;return n.includeRedirectUri=!1,n}return e}($m);/*! @azure/msal-browser v2.30.0 2022-10-10 */var Iw=function(t){ze(e,t);function e(r,n,o,i,a,s,c,l,u,d){var h=t.call(this,r,n,o,i,a,s,l,u,d)||this;return h.apiId=c,h}return e.prototype.acquireToken=function(r){return w(this,void 0,void 0,function(){var n,o,i,a,s,c,l;return C(this,function(u){switch(u.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!r.code)throw A.createAuthCodeRequiredError();return[4,this.initializeAuthorizationRequest(r,L.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=H(H({},n),{code:r.code}),[4,this.getClientConfiguration(o,n.authority)];case 3:return a=u.sent(),s=new Tw(a),this.logger.verbose("Auth code client created"),c=new Wm(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 D&&l.setCorrelationId(this.correlationId),o.cacheFailedRequest(l),this.browserStorage.cleanRequestByState(n.state),l;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(A.createSilentLogoutUnsupportedError())},e}(Do);/*! @azure/msal-browser v2.30.0 2022-10-10 */var kw=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.30.0 2022-10-10 */var bw=function(t){ze(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 Jm(l.logger,c),l.guidGenerator=new Ym(l.browserCrypto),l}return e.prototype.startPerformanceMeasuremeant=function(r,n){return new kw(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 H(H({},a),{endMeasurement:function(s){return a.endMeasurement(H({startPageVisibility:i,endPageVisibility:o.getPageVisibility()},s))}})},e}(Bm);/*! @azure/msal-browser v2.30.0 2022-10-10 */var Aw=function(){function t(e){this.isBrowserEnvironment=typeof window<"u",this.config=sw(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new Nd(this.config.system.loggerOptions,rl,Ti),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 bw(this.config.auth.clientId,this.config.auth.authority,this.logger,rl,Ti,this.config.telemetry.application,this.config.system.cryptoOptions):new YE(this.config.auth.clientId,this.config.auth.authority,this.logger,rl,Ti,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new Cw(this.logger,this.performanceClient,this.config.system.cryptoOptions):zs,this.eventHandler=new uw(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new Su(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):XE(this.config.auth.clientId,this.logger);var r={cacheLocation:Ge.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1};this.nativeInternalStorage=new Su(this.config.auth.clientId,r,this.browserCrypto,this.logger),this.tokenCache=new Sw(this.config,this.browserStorage,this.logger,this.browserCrypto)}return t.prototype.initialize=function(){return w(this,void 0,void 0,function(){var e,r;return C(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(F.INITIALIZE_START),!this.config.system.allowNativeBroker)return[3,4];n.label=1;case 1:return n.trys.push([1,3,,4]),e=this,[4,Cn.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(F.INITIALIZE_END),[2]}})})},t.prototype.handleRedirectPromise=function(e){return w(this,void 0,void 0,function(){var r,n,o,i,a,s,c,l,u=this;return C(this,function(d){return this.logger.verbose("handleRedirectPromise called"),ye.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(F.HANDLE_REDIRECT_START,L.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),i=this.browserStorage.getCachedNativeRequest(),a=void 0,i&&Cn.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),s=new vo(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,oe.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(X.CORRELATION_ID,!0)||_.EMPTY_STRING,l=this.createRedirectClient(c),a=l.handleRedirectPromise(e)),o=a.then(function(h){if(h){var p=r.length<u.getAllAccounts().length;p?(u.eventHandler.emitEvent(F.LOGIN_SUCCESS,L.Redirect,h),u.logger.verbose("handleRedirectResponse returned result, login success")):(u.eventHandler.emitEvent(F.ACQUIRE_TOKEN_SUCCESS,L.Redirect,h),u.logger.verbose("handleRedirectResponse returned result, acquire token success"))}return u.eventHandler.emitEvent(F.HANDLE_REDIRECT_END,L.Redirect),h}).catch(function(h){throw r.length>0?u.eventHandler.emitEvent(F.ACQUIRE_TOKEN_FAILURE,L.Redirect,null,h):u.eventHandler.emitEvent(F.LOGIN_FAILURE,L.Redirect,null,h),u.eventHandler.emitEvent(F.HANDLE_REDIRECT_END,L.Redirect),h}),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 w(this,void 0,void 0,function(){var r,n,o,i,a,s=this;return C(this,function(c){return r=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",r),this.preflightBrowserEnvironmentCheck(L.Redirect),n=this.getAllAccounts().length>0,n?this.eventHandler.emitEvent(F.ACQUIRE_TOKEN_START,L.Redirect,e):this.eventHandler.emitEvent(F.LOGIN_START,L.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(i=new vo(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,oe.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 qt){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(F.ACQUIRE_TOKEN_FAILURE,L.Redirect,null,l):s.eventHandler.emitEvent(F.LOGIN_FAILURE,L.Redirect,null,l),l})]})})},t.prototype.acquireTokenPopup=function(e){var r=this,n=this.getRequestCorrelationId(e),o=this.performanceClient.startMeasurement(be.AcquireTokenPopup,n);try{this.logger.verbose("acquireTokenPopup called",n),this.preflightBrowserEnvironmentCheck(L.Popup)}catch(c){return Promise.reject(c)}var i=this.getAllAccounts();i.length>0?this.eventHandler.emitEvent(F.ACQUIRE_TOKEN_START,L.Popup,e):this.eventHandler.emitEvent(F.LOGIN_START,L.Popup,e);var a;if(this.canUseNative(e))a=this.acquireTokenNative(e,oe.acquireTokenPopup).then(function(c){return r.browserStorage.setInteractionInProgress(!1),o.endMeasurement({success:!0,isNativeBroker:!0,accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length,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 qt){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(F.LOGIN_SUCCESS,L.Popup,c):r.eventHandler.emitEvent(F.ACQUIRE_TOKEN_SUCCESS,L.Popup,c),o.endMeasurement({success:!0,accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length,requestId:c.requestId}),o.flushMeasurement(),c}).catch(function(c){return i.length>0?r.eventHandler.emitEvent(F.ACQUIRE_TOKEN_FAILURE,L.Popup,null,c):r.eventHandler.emitEvent(F.LOGIN_FAILURE,L.Popup,null,c),o.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),o.flushMeasurement(),Promise.reject(c)})},t.prototype.ssoSilent=function(e){return w(this,void 0,void 0,function(){var r,n,o,i,a,s=this;return C(this,function(c){return r=this.getRequestCorrelationId(e),n=H(H({},e),{prompt:e.prompt,correlationId:r}),this.preflightBrowserEnvironmentCheck(L.Silent),o=this.performanceClient.startMeasurement(be.SsoSilent,r),this.logger.verbose("ssoSilent called",r),this.eventHandler.emitEvent(F.SSO_SILENT_START,L.Silent,n),this.canUseNative(n)?i=this.acquireTokenNative(n,oe.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(F.SSO_SILENT_SUCCESS,L.Silent,l),o.endMeasurement({success:!0,isNativeBroker:l.fromNativeBroker,accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length,requestId:l.requestId}),o.flushMeasurement(),l}).catch(function(l){throw s.eventHandler.emitEvent(F.SSO_SILENT_FAILURE,L.Silent,null,l),o.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),o.flushMeasurement(),l})]})})},t.prototype.acquireTokenByCode=function(e){return w(this,void 0,void 0,function(){var r,n,o,i,a=this;return C(this,function(s){r=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(L.Silent),this.logger.trace("acquireTokenByCode called",r),this.eventHandler.emitEvent(F.ACQUIRE_TOKEN_BY_CODE_START,L.Silent,e),n=this.performanceClient.startMeasurement(be.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(H(H({},e),{correlationId:r})).then(function(c){return a.eventHandler.emitEvent(F.ACQUIRE_TOKEN_BY_CODE_SUCCESS,L.Silent,c),a.hybridAuthCodeResponses.delete(o),n.endMeasurement({success:!0,accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length,isNativeBroker:c.fromNativeBroker,requestId:c.requestId}),n.flushMeasurement(),c}).catch(function(c){throw a.hybridAuthCodeResponses.delete(o),a.eventHandler.emitEvent(F.ACQUIRE_TOKEN_BY_CODE_FAILURE,L.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,oe.acquireTokenByCode,e.nativeAccountId).catch(function(c){throw c instanceof er&&c.isFatal()&&(a.nativeExtensionProvider=void 0),c})];throw A.createUnableToAcquireTokenFromNativePlatformError()}else throw A.createAuthCodeOrNativeAccountIdRequiredError()}catch(c){throw this.eventHandler.emitEvent(F.ACQUIRE_TOKEN_BY_CODE_FAILURE,L.Silent,null,c),n.endMeasurement({errorCode:c instanceof D&&c.errorCode||void 0,subErrorCode:c instanceof D&&c.subError||void 0,success:!1}),c}return[2]})})},t.prototype.acquireTokenByCodeAsync=function(e){return w(this,void 0,void 0,function(){var r,n;return C(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 w(this,void 0,void 0,function(){return C(this,function(o){switch(n.cacheLookupPolicy){case at.Default:case at.AccessToken:case at.AccessTokenAndRefreshToken:return[2,e.acquireToken(r)];default:throw O.createRefreshRequiredError()}return[2]})})},t.prototype.acquireTokenByRefreshToken=function(e,r){return w(this,void 0,void 0,function(){var n;return C(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 O.createRefreshRequiredError()}return[2]})})},t.prototype.acquireTokenBySilentIframe=function(e){return w(this,void 0,void 0,function(){var r;return C(this,function(n){return r=this.createSilentIframeClient(e.correlationId),[2,r.acquireToken(e)]})})},t.prototype.logout=function(e){return w(this,void 0,void 0,function(){var r;return C(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(H({correlationId:r},e))]})})},t.prototype.logoutRedirect=function(e){return w(this,void 0,void 0,function(){var r,n;return C(this,function(o){return r=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(L.Redirect),n=this.createRedirectClient(r),[2,n.logout(e)]})})},t.prototype.logoutPopup=function(e){try{var r=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck(L.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!N.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!N.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!N.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"),ye.blockNonBrowserEnvironment(this.isBrowserEnvironment),ye.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),ye.blockReloadInHiddenIframes(),ye.blockAcquireTokenInPopups(),ye.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===L.Redirect&&this.config.cache.cacheLocation===Ge.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw Ys.createInMemoryRedirectUnavailableError();(e===L.Redirect||e===L.Popup)&&this.preflightInteractiveRequest(r)},t.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),ye.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},t.prototype.acquireTokenNative=function(e,r,n){return w(this,void 0,void 0,function(){var o;return C(this,function(i){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw A.createNativeConnectionNotEstablishedError();return o=new vo(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"),!Cn.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 Ye.NONE:case Ye.CONSENT:case Ye.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 rw(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 tw(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 cw(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,oe.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},t.prototype.createSilentCacheClient=function(e){return new Vm(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},t.prototype.createSilentRefreshClient=function(e){return new lw(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},t.prototype.createSilentAuthCodeClient=function(e){return new Iw(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,oe.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.30.0 2022-10-10 */var Rw=function(t){ze(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 w(this,void 0,void 0,function(){var n;return C(this,function(o){return n=this.getRequestCorrelationId(r),this.logger.verbose("loginRedirect called",n),[2,this.acquireTokenRedirect(H({correlationId:n},r||ff))]})})},e.prototype.loginPopup=function(r){var n=this.getRequestCorrelationId(r);return this.logger.verbose("loginPopup called",n),this.acquireTokenPopup(H({correlationId:n},r||ff))},e.prototype.acquireTokenSilent=function(r){return w(this,void 0,void 0,function(){var n,o,i,a,s,c,l,u=this;return C(this,function(d){if(n=this.getRequestCorrelationId(r),o=this.performanceClient.startMeasurement(be.AcquireTokenSilent,n),this.preflightBrowserEnvironmentCheck(L.Silent),this.logger.verbose("acquireTokenSilent called",n),i=r.account||this.getActiveAccount(),!i)throw A.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(H(H({},r),{correlationId:n}),i).then(function(h){return u.activeSilentTokenRequests.delete(s),o.endMeasurement({success:!0,fromCache:h.fromCache,accessTokenSize:h.accessToken.length,idTokenSize:h.idToken.length,isNativeBroker:h.fromNativeBroker,cacheLookupPolicy:r.cacheLookupPolicy,requestId:h.requestId}),o.flushMeasurement(),h}).catch(function(h){throw u.activeSilentTokenRequests.delete(s),o.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1}),o.flushMeasurement(),h}),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 w(this,void 0,void 0,function(){var o,i,a,s,c,l,u=this;return C(this,function(d){switch(d.label){case 0:return this.eventHandler.emitEvent(F.ACQUIRE_TOKEN_START,L.Silent,r),o=this.performanceClient.startMeasurement(be.AcquireTokenSilentAsync,r.correlationId),Cn.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,r.authenticationScheme)&&n.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),a=H(H({},r),{account:n}),i=this.acquireTokenNative(a,oe.acquireTokenSilent_silentFlow).catch(function(h){return w(u,void 0,void 0,function(){var p;return C(this,function(v){if(h instanceof er&&h.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,p=this.createSilentIframeClient(r.correlationId),[2,p.acquireToken(r)];throw h})})}),[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=d.sent(),l=H(H({},r),{cacheLookupPolicy:r.cacheLookupPolicy||at.Default}),i=this.acquireTokenFromCache(s,c,l).catch(function(h){if(l.cacheLookupPolicy===at.AccessToken)throw h;return ye.blockReloadInHiddenIframes(),u.eventHandler.emitEvent(F.ACQUIRE_TOKEN_NETWORK_START,L.Silent,c),u.acquireTokenByRefreshToken(c,l).catch(function(p){var v=p instanceof Nn,y=p instanceof qt,I=p.errorCode===jt.INVALID_GRANT_ERROR;if((!v||!I||y||l.cacheLookupPolicy===at.AccessTokenAndRefreshToken||l.cacheLookupPolicy===at.RefreshToken)&&l.cacheLookupPolicy!==at.Skip)throw p;return u.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",r.correlationId),u.acquireTokenBySilentIframe(c)})}),d.label=3;case 3:return[2,i.then(function(h){return u.eventHandler.emitEvent(F.ACQUIRE_TOKEN_SUCCESS,L.Silent,h),o.endMeasurement({success:!0,fromCache:h.fromCache,accessTokenSize:h.accessToken.length,idTokenSize:h.idToken.length,isNativeBroker:h.fromNativeBroker,requestId:h.requestId}),h}).catch(function(h){throw u.eventHandler.emitEvent(F.ACQUIRE_TOKEN_FAILURE,L.Silent,null,h),o.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1}),h})]}})})},e}(Aw);const _f="redirect";var Ef=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class Nw extends Rw{constructor(e,r){super(r),this.tenantId=e}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)}login(e,r=_f,n=!0){var o;return Ef(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=_f,n=!0){return Ef(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 Pw=(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")},Ow=(t,e,r,n,o)=>{const i=Object.assign({clientId:e,redirectUri:Pw(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||Nw)(t,{auth:i,cache:a,system:s})};class Xm extends Nd{constructor(e){super({logLevel:e,loggerCallback:(...r)=>this.loggerCallback(...r)}),this.getLogType=r=>{switch(r){case Ee.Error:return"error";case Ee.Warning:return"warn";case Ee.Info:return"info";case Ee.Verbose:default:return"debug"}}}loggerCallback(e,r,n){console[this.getLogType(e)]("%c FUSION::MSAL %c %s","border: 1px solid;","border: none;",r)}}var nl=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const xw="default";class Mw{constructor(e){this._config=e,this._clients={}}get defaultClient(){return this.getClient(xw)}get defaultAccount(){return this.defaultClient.account}get defaultConfig(){return this._config.defaultConfig}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=Ow(r.tenantId,r.clientId,r.redirectUri,r.config);return n.setLogger(new Xm(0)),n}handleRedirect(){return nl(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 nl(this,void 0,void 0,function*(){const r=yield this.acquireToken(e);return r?r.accessToken:void 0})}login(){return nl(this,void 0,void 0,function*(){yield this.defaultClient.login()})}}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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const Zm={name:"auth",configure:t=>{var e;const r=new SE;return!((e=t==null?void 0:t.auth)===null||e===void 0)&&e.defaultConfig&&r.configureDefault(t.auth.defaultConfig),r},initialize:({config:t,requireInstance:e})=>Iu(void 0,void 0,void 0,function*(){const r=new Mw(t);try{(yield e("http")).defaultHttpRequestHandler.set("MSAL",o=>Iu(void 0,void 0,void 0,function*(){const{scopes:i=[]}=o;if(i.length){const a=yield r.acquireToken({scopes:i});if(a){const s=new Headers(o.headers);return s.set("Authorization",`Bearer ${a.accessToken}`),Object.assign(Object.assign({},o),{headers:s})}}}))}catch(n){console.error(n)}return r})},Uw=(t,e)=>({module:Zm,configure:r=>{r.configureDefault(t);const{clients:n}=e!=null?e:{};n&&Object.entries(n).forEach(([o,i])=>r.configureClient(o,i))},afterInit:r=>Iu(void 0,void 0,void 0,function*(){e!=null&&e.requiresAuth&&(yield r.handleRedirect(),r.defaultAccount||(yield r.login()))})});var ev=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const Lw=t=>{var e;return{id:t.id,isChildType:t.isChildType,parentTypeIds:(e=t.parentTypeIds)!==null&&e!==void 0?e:[]}},tv=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:Lw(t.type),value:(o=t.value)!==null&&o!==void 0?o:{}}},Hw=t=>ev(void 0,void 0,void 0,function*(){const e=yield t.json();return tv(e)}),Dw=t=>ev(void 0,void 0,void 0,function*(){return(yield t.json()).map(tv)});var ol=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class Fw{constructor(){this.defaultExpireTime=1*60*1e3}createContextClientGet(e){return ol(this,void 0,void 0,function*(){const n=yield(yield e.requireInstance("services")).createContextClient("json$");return{fn:o=>n.get("v1",o,{selector:Hw})}})}createContextClientQuery(e){return ol(this,void 0,void 0,function*(){const n=yield(yield e.requireInstance("services")).createContextClient("json$");return{fn:o=>n.query("v1",{query:o},{selector:Dw})}})}createConfig(e){return ol(this,void 0,void 0,function*(){const r={getContext:{query:{client:yield this.createContextClientGet(e),key:({id:n})=>n,expire:this.defaultExpireTime}},queryContext:{client:yield this.createContextClientQuery(e),key:n=>JSON.stringify(n),queueOperator:n=>o=>o.pipe(V_(250)),expire:this.defaultExpireTime}};return this.processConfig(r)})}processConfig(e){return e}}var Ua,zw=new Uint8Array(16);function $w(){if(!Ua&&(Ua=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Ua))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Ua(zw)}const jw=/^(?:[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 qw(t){return typeof t=="string"&&jw.test(t)}var Me=[];for(var il=0;il<256;++il)Me.push((il+256).toString(16).substr(1));function Bw(t){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(Me[t[e+0]]+Me[t[e+1]]+Me[t[e+2]]+Me[t[e+3]]+"-"+Me[t[e+4]]+Me[t[e+5]]+"-"+Me[t[e+6]]+Me[t[e+7]]+"-"+Me[t[e+8]]+Me[t[e+9]]+"-"+Me[t[e+10]]+Me[t[e+11]]+Me[t[e+12]]+Me[t[e+13]]+Me[t[e+14]]+Me[t[e+15]]).toLowerCase();if(!qw(r))throw TypeError("Stringified UUID is invalid");return r}function rv(t,e,r){t=t||{};var n=t.random||(t.rng||$w)();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 Bw(n)}const Pn=(...t)=>bo(e=>t.includes(e.type));class wf extends Error{constructor(e,r,n){super(r),this.type=e,this.cause=n}}var Be=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)},Kw=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},Qt,Lt;class nv extends le{constructor(e,r){super(n=>Be(this,Lt,"f").subscribe(n)),this.__initial=r,Qt.set(this,new Xr),Lt.set(this,void 0),Kw(this,Lt,new mc(r),"f"),Be(this,Qt,"f").pipe(xm(e,r),Pm()).subscribe(Be(this,Lt,"f"))}get action$(){return Be(this,Qt,"f").asObservable()}get value(){return Be(this,Lt,"f").value}get closed(){return Be(this,Lt,"f").closed||Be(this,Qt,"f").closed}next(e){Be(this,Qt,"f").next(e)}addEffect(e,r){const n=typeof e=="string"?this.action$.pipe(Pn(e)):this.action$,o=r||e;return n.pipe(Gi(i=>Zr(new Promise((a,s)=>{try{a(o(i,this.value))}catch(c){s(c)}})).pipe(Ao(a=>(console.warn("unhandled effect",a),qi)))),bo(i=>!!i),Bi(ko)).subscribe(Be(this,Qt,"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(Ao(n=>(console.trace("unhandled exception, epic closed!",n),qi)),Bi(ko)).subscribe(Be(this,Qt,"f"))}reset(){Be(this,Lt,"f").next(this.__initial)}unsubscribe(){Be(this,Qt,"f").unsubscribe(),Be(this,Lt,"f").unsubscribe()}complete(){Be(this,Qt,"f").complete(),Be(this,Lt,"f").complete()}asObservable(){return Be(this,Lt,"f").asObservable()}}Qt=new WeakMap,Lt=new WeakMap;class ku extends Error{constructor(e,r,n){super(n!=null?n:r.message),this.action=e,this.cause=r}}const ov=(t,e)=>(r,n)=>new le(o=>{const{controller:i,transaction:a}=r.meta;if(i.signal.aborted)return o.next({type:"cancel",payload:`request [${a}] was aborted!`,meta:{request:r}}),o.complete();if(o.add(t.pipe(Pn("cancel"),Um(e)).subscribe(([s,c])=>{(!s.payload||s.payload===c.transaction)&&(i.signal.aborted||i.abort(),o.complete())})),o.add(du(i.signal,"abort").subscribe(()=>{o.next({type:"cancel",payload:`request [${a}] was aborted!`,meta:{request:r}}),o.complete()})),n)return n(o)}),Gw=t=>(t=Object.assign({},{count:0,delay:0},t),(e,r)=>{const n=ov(e,r);return e.pipe(Pn("failure"),Um(r),ro(([o,i])=>{const{retryCount:a=0}=i,s=Object.assign({},o.payload.action),c=Object.assign({},t,s.meta.retry);return n(s,l=>{if(a>=c.count){const d=c.count?"maximum retries executed!":o.payload.message;return l.next({type:"error",payload:new ku(o,o.payload.cause,d),meta:{request:s}}),l.complete()}return(typeof c.delay=="function"?Zr(c.delay(o.payload.cause)):$_(c.delay)).pipe(ht(()=>s),Ao(d=>vc({type:"error",payload:new ku(s,d,"failed to resolve delay"),meta:{request:s}}))).subscribe(l)})}))}),Vw=t=>(e,r)=>{const n=ov(e,r);return e.pipe(Pn("request"),ro(o=>n(o,i=>{Zr(t(o.payload,o.meta.controller.signal)).pipe(ht(a=>({type:"success",payload:a,meta:{request:o}})),Ao(a=>vc({type:"failure",payload:new ku(o,a,"failed to execute request"),meta:{request:o}}))).subscribe(i)})))},Ww=()=>(t,e)=>{switch(e.type){case"request":{const{transaction:r}=e.meta;return t.transaction===r?Object.assign(Object.assign({},t),{status:"active",retryCount:(t.retryCount||0)+1}):{transaction:r,status:"active",initiated:Date.now(),retryCount:0}}case"success":return Object.assign(Object.assign({},t),{status:"idle",completed:Date.now()});case"failure":return Object.assign(Object.assign({},t),{status:"failed"});case"error":return Object.assign(Object.assign({},t),{status:"failed",error:e.payload});case"cancel":return t.status==="canceled"?t:Object.assign(Object.assign({},t),{status:"canceled"})}};var Yw=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})},Je=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)},Cf=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},Xe,Dn;class Sf extends le{constructor(e,r){super(o=>Je(this,Xe,"f").subscribe(o)),Xe.set(this,void 0),Dn.set(this,void 0),Cf(this,Xe,new nv(Ww(),{status:"idle"}),"f"),Cf(this,Dn,new Nr(()=>Je(this,Xe,"f").complete()),"f"),Je(this,Dn,"f").add(Je(this,Xe,"f").addEpic(Vw(e)));const n=Object.assign({count:0,delay:0},r==null?void 0:r.retry);Je(this,Dn,"f").add(Je(this,Xe,"f").addEpic(Gw(n)))}get value(){return Je(this,Xe,"f").value}get action$(){return Je(this,Xe,"f").action$}get closed(){return Je(this,Xe,"f").closed}get status(){return this.value.status}get error(){return this.value.error}next(e,r){return this._next(e,r).meta.transaction}nextAsync(e,r){return Yw(this,void 0,void 0,function*(){this._next(e,r);const n=Je(this,Xe,"f").action$.pipe(Pn("success","error","cancel"),ht(o=>{const{payload:i,type:a}=o;switch(a){case"error":throw new wf("error","failed to execute request",i);case"cancel":throw new wf("abort","request was canceled",new Error(String(i)))}return i}),Bi(ko));return Ki(n)})}cancel(e,r){this.value.status!=="canceled"&&(r!=null||(r=`request [${e||this.value.transaction}] was canceled!`),Je(this,Xe,"f").next({type:"cancel",payload:e,meta:{request:void 0,reason:r}}))}on(e,r){return Je(this,Xe,"f").addEffect(e,n=>{r(n,this)})}complete(){Je(this,Dn,"f").unsubscribe()}asObservable(){return Je(this,Xe,"f").asObservable()}_next(e,r){const{controller:n=new AbortController,transaction:o=rv()}=r!=null?r:{},i=Object.assign(Object.assign({},r),{controller:n,transaction:o}),a={type:"request",payload:e,meta:i};return Je(this,Xe,"f").next(a),a}}Xe=new WeakMap,Dn=new WeakMap;const Qw=(t,e)=>{var r,n;return((r=e.updated)!==null&&r!==void 0?r:0)-((n=t.updated)!==null&&n!==void 0?n:0)},Jw=()=>(t,e)=>{var r,n,o,i,a;const{type:s,payload:c}=e;switch(s){case"set":{const{key:l,value:u}=c,d=t.data[l],h=Object.assign(Object.assign(Object.assign({},d),u),{created:(r=d==null?void 0:d.created)!==null&&r!==void 0?r:Date.now(),updated:Date.now(),updates:((n=d==null?void 0:d.updates)!==null&&n!==void 0?n:-1)+1}),p=Object.assign(Object.assign({},t.data),{[l]:h});return Object.assign(Object.assign({},t),{data:p,lastTransaction:h.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 d=Object.assign(Object.assign({},t.data),{[l]:Object.assign(Object.assign({},u),{updated:void 0})});return Object.assign(Object.assign({},t),{data:d})}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:Qw,d=Object.entries(t.data).sort((p,v)=>l(p[1],v[1])).filter(([p,v])=>!c.validate||c.validate(v)).slice(0,(a=c.size)!==null&&a!==void 0?a:Number.MAX_SAFE_INTEGER).reduce((p,[v,y])=>Object.assign(p,{[v]:y}),{});return Object.keys(d).length===Object.keys(t.data).length?t:{lastTransaction:t.lastTransaction&&Object.keys(d).includes(t.lastTransaction)?t.lastTransaction:Object.values(d)[0].transaction,data:d}}}return t},Xw=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 Tf extends nv{get data$(){return this.pipe(ht(e=>e.data))}get latest(){return Xw(this.value)}constructor(e){const{trimming:r,initial:n}=e;super(Jw(),{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 re=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)},Ln=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},Zw=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},xr,It,Ht,si,ci,ns;const eC=(t=0)=>e=>{var r;return((r=e.updated)!==null&&r!==void 0?r:0)+t>Date.now()};class Ii extends le{constructor(e){var r,n;super(i=>re(this,Ht,"f").pipe(ht(({data:a})=>a)).subscribe(i)),xr.set(this,new Nr),It.set(this,void 0),Ht.set(this,void 0),si.set(this,new Xr),ci.set(this,void 0),ns.set(this,void 0),Ln(this,ci,e.key,"f"),Ln(this,ns,(r=e==null?void 0:e.validate)!==null&&r!==void 0?r:eC(e==null?void 0:e.expire),"f"),e.client instanceof Sf?Ln(this,It,e.client,"f"):(Ln(this,It,new Sf(e.client.fn,e.client.options),"f"),re(this,xr,"f").add(()=>re(this,It,"f").complete())),e.cache instanceof Tf?Ln(this,Ht,e.cache,"f"):(Ln(this,Ht,new Tf(e.cache||{}),"f"),re(this,xr,"f").add(()=>re(this,Ht,"f").complete()));const o=(n=e.queueOperator)!==null&&n!==void 0?n:()=>i=>i;re(this,xr,"f").add(re(this,It,"f").on("success",i=>{const{payload:a,meta:{request:s}}=i,c=re(this,ci,"f").call(this,s.payload);re(this,Ht,"f").setItem(c,{value:a,args:s.payload,transaction:s.meta.transaction})})),re(this,xr,"f").add(()=>re(this,si,"f").complete()),re(this,xr,"f").add(re(this,si,"f").pipe(o(re(this,Ht,"f").value),Mm(()=>!re(this,It,"f").closed)).subscribe(({args:i,options:a})=>re(this,It,"f").next(i,a)))}get client(){return re(this,It,"f")}get state$(){return re(this,Ht,"f")}next(e,r){re(this,si,"f").next({args:e,options:r})}query(e,r){var n,o,i;const a=((o=(n=r==null?void 0:r.cache)===null||n===void 0?void 0:n.key)!==null&&o!==void 0?o:re(this,ci,"f"))(e),s=((i=r==null?void 0:r.cache)===null||i===void 0?void 0:i.validate)||re(this,ns,"f"),c=re(this,Ht,"f").getItem(a),l=!c||!s(c,e),u=Object.assign({transaction:rv()},r==null?void 0:r.client);l&&(r!=null&&r.skipQueue?re(this,It,"f").next(e,u):this.next(e,u));const d=re(this,It,"f").action$.pipe(Pn("cancel"),bo(p=>{var v;return((v=p.meta.request)===null||v===void 0?void 0:v.meta.transaction)===u.transaction}),ht(p=>{throw new Error("query was canceled",{cause:p})})),h=re(this,Ht,"f").action$.pipe(Pn("set"),bo(p=>p.payload.value.transaction===u.transaction),ht(p=>p.payload.value),Y_(1));return new le(p=>{if(c&&p.next(c),l){const v=()=>re(this,It,"f").cancel(u.transaction);p.add(v),B_(h,d).pipe(hu(()=>p.remove(v))).subscribe(p)}else p.complete()})}queryAsync(e,r){const n=r||{},{awaitResolve:o}=n,i=Zw(n,["awaitResolve"]);return(o?uu:Ki)(this.query(e,i))}complete(){re(this,xr,"f").unsubscribe()}}xr=new WeakMap,It=new WeakMap,Ht=new WeakMap,si=new WeakMap,ci=new WeakMap,ns=new WeakMap;const La=t=>t.pipe(ht(e=>e.value));var sr=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)},If=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},Fn,lr;class tC extends le{constructor(e){super(r=>sr(this,lr,"f").subscribe(r)),Fn.set(this,void 0),lr.set(this,void 0),If(this,Fn,new Ii(e.query),"f"),If(this,lr,new mc(e.initial),"f")}get currentContext(){return sr(this,lr,"f").value}get currentContext$(){return sr(this,lr,"f").asObservable()}get status$(){return sr(this,Fn,"f").client.pipe(ht(e=>e.status))}get client(){return sr(this,Fn,"f")}setCurrentContext(e){typeof e=="string"?this.resolveContext(e).pipe(Ao(()=>qi)).subscribe(r=>sr(this,lr,"f").next(r)):e!==sr(this,lr,"f").value&&sr(this,lr,"f").next(e)}resolveContext(e){return sr(this,Fn,"f").query({id:e}).pipe(ht(r=>r.value))}}Fn=new WeakMap,lr=new WeakMap;var al=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},mt=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)},ur,os,li,zn;class rC{constructor(e){ur.set(this,void 0),os.set(this,void 0),li.set(this,void 0),zn.set(this,new Nr);const{config:r,event:n,parentContext:o}=e;al(this,ur,new tC(r.getContext),"f"),al(this,os,new Ii(r.queryContext),"f"),n&&(al(this,li,n,"f"),mt(this,zn,"f").add(mt(this,ur,"f").currentContext$.pipe(Om()).subscribe(([i,a])=>{n.dispatchEvent("onCurrentContextChanged",{source:this,canBubble:!0,detail:{previous:i,next:a}})})),mt(this,zn,"f").add(n.addEventListener("onCurrentContextChanged",i=>{i.source!==this&&(this.currentContext=i.detail.next)}))),o&&mt(this,zn,"f").add(o.contextClient.currentContext$.subscribe(i=>this.currentContext=i))}get contextClient(){return mt(this,ur,"f")}get queryClient(){return mt(this,os,"f")}get currentContext$(){return mt(this,ur,"f").currentContext$}get currentContext(){return mt(this,ur,"f").currentContext}set currentContext(e){mt(this,li,"f")?mt(this,li,"f").dispatchEvent("onCurrentContextChange",{source:this,canBubble:!0,cancelable:!0,detail:{context:e}}).then(r=>{r.canceled||mt(this,ur,"f").setCurrentContext(e)}):mt(this,ur,"f").setCurrentContext(e)}dispose(){mt(this,zn,"f").unsubscribe()}}ur=new WeakMap,os=new WeakMap,li=new WeakMap,zn=new WeakMap;var nC=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const oC="context",iC={name:oC,configure:()=>new Fw,initialize:t=>nC(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 rC({config:r,event:n,parentContext:o})}),dispose:t=>{t.instance.dispose()}},aC=(t,e)=>JSON.stringify(t)===JSON.stringify(e);var Ha=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},Ke=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)},$n,ui,di,jn,Mr;class sC extends le{constructor(e){super(o=>this.current$.subscribe(o)),$n.set(this,void 0),ui.set(this,void 0),di.set(this,void 0),jn.set(this,void 0),Mr.set(this,new Nr);const{event:r,config:n}=e;Ha(this,jn,new mc(void 0),"f"),Ha(this,$n,new Ii(n.getApp),"f"),Ha(this,ui,new Ii(n.getApps),"f"),Ha(this,di,new Ii(n.getConfig),"f"),Ke(this,Mr,"f").add(Ke(this,$n,"f").complete),Ke(this,Mr,"f").add(Ke(this,ui,"f").complete),Ke(this,Mr,"f").add(Ke(this,di,"f").complete),Ke(this,Mr,"f").add(this.current$.pipe(Om(),Mm(()=>!!r)).subscribe(([o,i])=>{r==null||r.dispatchEvent("onCurrentAppChanged",{source:this,detail:{previous:o,next:i}})}))}get current(){return Ke(this,jn,"f").value}get current$(){return Ke(this,jn,"f").pipe(Pm(aC))}getApp(e){return La(Ke(this,$n,"f").query({appKey:e}))}getAllApps(){return La(Ke(this,ui,"f").query())}getAppConfig(e,r){return La(Ke(this,di,"f").query({appKey:e,tag:r}))}setCurrentApp(e){return new Promise((r,n)=>{const o=Ke(this,$n,"f").query({appKey:e},{skipQueue:!0});Ke(this,Mr,"f").add(La(o).subscribe({next:i=>Ke(this,jn,"f").next(i),error:n,complete:r}))})}dispose(){Ke(this,Mr,"f").unsubscribe()}}$n=new WeakMap,ui=new WeakMap,di=new WeakMap,jn=new WeakMap,Mr=new WeakMap;var cC=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const bu="app",lC={name:bu,configure:()=>new uC,initialize:t=>cC(void 0,void 0,void 0,function*(){const e=yield t.config.createConfig(t),r=yield t.requireInstance("event").catch(()=>{});return new sC({config:e,event:r})}),dispose:t=>{t.instance.dispose()}};var kf=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class uC{constructor(){this.defaultExpireTime=1*60*1e3}_createHttpClient(e){return kf(this,void 0,void 0,function*(){const r=yield e.requireInstance("http");return r.hasClient(bu)?r.createClient(bu):yield(yield e.requireInstance("serviceDiscovery")).createClient("portal")})}createConfig(e){return kf(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 bf=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class dC{constructor(e){this.clientKey=e.clientKey,this.endpoint=e.endpoint,this.clientCtor=e.clientCtor}createHttpClientClient(e){return bf(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 bf(this,void 0,void 0,function*(){if(!this.endpoint)throw Error("no endpoint defined!");return new this.clientCtor({http:e,endpoint:this.endpoint})})}}var sl=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class hC{constructor(e,r){this._client=e,this._http=r}get environment(){return this._client.environment}resolveService(e){return sl(this,void 0,void 0,function*(){return this._client.resolveService(e)})}createClient(e,r){return sl(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 sl(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(Dm(o,{baseUri:i,defaultScopes:a}))})}}var Da=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class fC{constructor({http:e,endpoint:r}){this.http=e,this.endpoint=r}get environment(){return Object.assign({},this._getEnvironment())}selector(e){return Da(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 Da(this,void 0,void 0,function*(){const{services:r}=yield this._getEnvironment();return r[e]})}_getEnvironment(){return Da(this,void 0,void 0,function*(){return this._environment||(this._environment=yield this._fetchServiceDescription()),this._environment})}_fetchServiceDescription(){return Da(this,void 0,void 0,function*(){try{const{http:e,selector:r,endpoint:n}=this;return yield e.fetch(n,{selector:r})}catch(e){throw console.error(e),e}})}}const pC="serviceDiscovery";var gC=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const mC={name:pC,configure:()=>new dC({clientCtor:fC,clientKey:"service_discovery",endpoint:"/_discovery/environments/current"}),initialize:({config:t,requireInstance:e})=>gC(void 0,void 0,void 0,function*(){const r=yield e("http"),n=yield t.createHttpClientClient(r),o=yield t.createClient(n);return new hC(o,r)})};class vC{}class iv extends Error{constructor(e,r){super(`unsupported version ${e}`,{cause:r}),this.version=e}}const yC=(t,e)=>{var r;const n=(r=Cr[t])!==null&&r!==void 0?r:t;switch(n){case Cr.v2:throw new iv(t);case Cr.v1:default:{const{id:o}=e,i=new URLSearchParams;return i.append("api-version",n),`/contexts/${o}/?${String(i)}`}}},_C=(t,e,r)=>[yC(t,e),r],EC=(t,e,r="json")=>(n,o)=>t[r](..._C(e,n,o));var wC=["eq","ne","gt","ge","lt","le"],Fa=["and","or","not"],CC=["any","all"],SC=["startswith","endswith","contains"],TC=["expand","levels","select","skip","top","count","orderby","filter"],Af=/\((.*)\)/,Rf=/(?!indexof)\((\w+)\)/,Nf;(function(t){t.sum="sum",t.min="min",t.max="max",t.average="average",t.countdistinct="countdistinct"})(Nf||(Nf={}));var cr="";function IC(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,d=e.key,h=e.count,p=e.expand,v=e.action,y=e.func,I="",g=[],f={};if(d!=null&&(I+="(".concat(tr(d,g),")")),(c||typeof h=="object")&&(f.$filter=Ji(typeof h=="object"?h:c,g)),l&&(f.$apply=av(l)),p&&(f.$expand=is(p)),u&&(f.$orderby=xd(u)),h&&(typeof h=="boolean"?f.$count=!0:I+="/$count"),typeof a=="number"&&(f.$top=a),typeof s=="number"&&(f.$skip=s),v&&(I+="/".concat(v)),y){if(typeof y=="string")I+="/".concat(y);else if(typeof y=="object"){var m=Object.keys(y)[0],E=tr(y[m],g);I+="/".concat(m),E!==""&&(I+="(".concat(E,")"))}}return g.length>0&&Object.assign(f,g.reduce(function(b,R){var x;return Object.assign(b,(x={},x["@".concat(R.name)]=tr(R.value),x))},{})),NC(I,An({$select:r,$search:n,$skiptoken:o,$format:i},f))}function cl(t,e,r){return r===void 0&&(r=[]),"".concat(t," eq ").concat(tr(e,r))}function Ji(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,d){var h=i[d];if(h===void 0)return u;var p="";if(s?d===cr?p=s:Rf.test(d)?p=d.replace(Rf,function(f,m){return m.trim()===cr?"(".concat(s,")"):"(".concat(s,"/").concat(m.trim(),")")}):Af.test(d)?p=d.replace(Af,function(f,m){return m.trim()===cr?"(".concat(s,")"):"(".concat(s,"/").concat(m.trim(),")")}):p="".concat(s,"/").concat(d):p=d,d===cr&&Array.isArray(h))return u.concat(h.map(function(f){return cl(p,f)}));if(["number","string","boolean"].indexOf(typeof h)!==-1||h instanceof Date||h===null)u.push(cl(p,h,a));else if(Array.isArray(h)){var v=d,y=h.map(function(f){return Ji(f,a,s)}).filter(function(f){return f}).map(function(f){return Fa.indexOf(v)!==-1?"(".concat(f,")"):f});y.length&&(Fa.indexOf(v)!==-1?y.length&&(v==="not"?u.push(Pf(y)):u.push("(".concat(y.join(" ".concat(v," ")),")"))):u.push(y.join(" ".concat(v," "))))}else if(Fa.indexOf(p)!==-1){var I=p,y=Object.keys(h).map(function(m){var E;return n((E={},E[m]=h[m],E))});y.length&&(I==="not"?u.push(Pf(y)):u.push("(".concat(y.join(" ".concat(I," ")),")")))}else if(typeof h=="object")if("type"in h)u.push(cl(p,h,a));else{var g=Object.keys(h);g.forEach(function(f){if(h[f]!==void 0)if(wC.indexOf(f)!==-1)u.push("".concat(p," ").concat(f," ").concat(tr(h[f],a)));else if(Fa.indexOf(f)!==-1)Array.isArray(h[f])?u.push(h[f].map(function(R){return"("+n(R,a,p)+")"}).join(" ".concat(f," "))):u.push("("+n(h[f],a,p)+")");else if(CC.indexOf(f)!==-1){var m=o(d.toLowerCase(),h[f],f,p);m&&u.push(m)}else if(f==="has")u.push("".concat(p," ").concat(f," ").concat(tr(h[f],a)));else if(f==="in"){var E=Array.isArray(h[f])?h[f]:h[f].value.map(function(R){return{type:h[f].type,value:R}});u.push(p+" in ("+E.map(function(R){return tr(R,a)}).join(",")+")")}else if(SC.indexOf(f)!==-1)u.push("".concat(f,"(").concat(p,",").concat(tr(h[f],a),")"));else{var b=n(h,a,p);b&&u.push(b)}})}else throw new Error("Unexpected value type: ".concat(h));return u},[]);c=l.join(" and ")}return c}function o(i,a,s,c){var l="";if(typeof a=="string"||a instanceof String)l=kC(i,a,s,c);else if(a){var u=Array.isArray(a)?a.reduce(function(h,p){return p.hasOwnProperty(cr)?(h.hasOwnProperty(cr)||(h[cr]=[]),h[cr].push(p[cr]),h):An(An({},h),p)},{}):a,d=n(u,e,i);l="".concat(c,"/").concat(s,"(").concat(d?"".concat(i,":").concat(d):"",")")}return l}}function kC(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 bC(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 tr(t,e){if(typeof t=="string")return"'".concat(bC(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 tr(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(tr(o,e))}).join(",")}return t}function is(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 is(r)}).join(","));if(typeof t=="object"){var e=Object.keys(t);return e.some(function(r){return TC.indexOf(r.toLowerCase())!==-1})?e.map(function(r){var n;switch(r){case"filter":n=Ji(t[r]);break;case"orderBy":n=xd(t[r]);break;case"levels":case"count":case"skip":case"top":n="".concat(t[r]);break;default:n=is(t[r])}return"$".concat(r.toLowerCase(),"=").concat(n)}).join(";"):e.map(function(r){var n=is(t[r]);return n?"".concat(r,"(").concat(n,")"):r}).join(",")}return""}function av(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=um(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(AC(i),")")),a){var u=Ji(a);u&&n.push("filter(".concat(Ji(u),")"))}return s&&n.push("groupby(".concat(RC(s),")")),n},[]);return r.join("/")||void 0}function AC(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 RC(t){if(!t.properties)throw new Error("'properties' property required for groupBy");var e="(".concat(t.properties.join(","),")");return t.transform&&(e+=",".concat(av(t.transform))),e}function xd(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 xd(o,"".concat(n,"/"))}).map(function(r){return"".concat(e).concat(r)}).join(","):"".concat(e).concat(String(t))}function NC(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 Pf(t){return"not(".concat(t.join(" and "),")")}const PC=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]})}},{}),OC=t=>Object.keys(t).reduce((e,r)=>{switch(r){case"filter":return Object.assign(Object.assign({},e),{[r]:PC(t.filter)});default:return Object.assign(Object.assign({},e),{[r]:t[r]})}},{}),xC=t=>typeof t=="string"?t:IC(OC(t)),MC=(t,e)=>{var r;const n=(r=Cr[t])!==null&&r!==void 0?r:t;switch(n){case Cr.v2:throw new iv(t);case Cr.v1:default:{const{query:o,includeDeleted:i}=e,a=new URLSearchParams(xC(o));return a.append("api-version",n),i&&a.append("includeDeleted","true"),`/contexts/?${String(a)}`}}},UC=(t,e,r)=>[MC(t,e),r],LC=(t,e,r="json")=>(n,o)=>t[r](...UC(e,n,o));class HC{constructor(e,r){this._client=e,this._method=r}get Version(){return Cr}get(e,...r){return EC(this._client,e,this._method)(...r)}query(e,...r){return LC(this._client,e,this._method)(...r)}}var Cr;(function(t){t.v1="1.0",t.v2="2.0"})(Cr||(Cr={}));const DC=(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)}`}}},FC=(t,e,r)=>{const n=DC(t,e),o=Object.assign({},{method:"Delete"},r);return[n,o]},zC=(t,e,r="json")=>(n,o)=>t[r](...FC(e,n,o)),$C=zC,jC=(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)}`}}},qC=(t,e,r)=>[jC(t,e),r],BC=(t,e,r="json")=>(n,o)=>t[r](...qC(e,n,o)),KC=BC,GC=(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)}`}}},VC=(t,e,r)=>{const n=GC(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]},WC=(t,e,r="json")=>(n,o)=>t[r](...VC(e,n,o)),YC=WC;class QC{constructor(e,r){this._client=e,this._method=r}get(e,...r){return KC(this._client,e,this._method)(...r)}post(e,...r){return YC(this._client,e,this._method)(...r)}delete(e,...r){return $C(this._client,e,this._method)(...r)}}const JC=QC;var Of=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};class XC{constructor({createClient:e}){this._createClientFn=e}createBookmarksClient(e){return Of(this,void 0,void 0,function*(){const r=yield this._createClientFn("bookmarks");return new JC(r,e)})}createContextClient(e){return Of(this,void 0,void 0,function*(){const r=yield this._createClientFn("context");return new HC(r,e)})}}var sv=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const ZC="services",eS=(t,e)=>r=>sv(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}`)}),tS={name:ZC,configure:()=>new vC,initialize:({ref:t,config:e,requireInstance:r,hasModule:n})=>sv(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=eS(o,i)}if(!e.createClient)throw Error("missing configuration for creating API client");return new XC(e)})},rS=tS;class nS extends oE{constructor(){super([dE,Ad,Zm,mC,rS,lC,iC]),this.logger=new lm("FrameworkConfigurator")}configureHttp(...e){this.addConfig(CE(...e))}configureHttpClient(...e){this.addConfig(Dm(...e))}configureMsal(...e){this.addConfig(Uw(...e))}configureServiceDiscovery(e){this.configureHttpClient("service_discovery",e.client)}}var oS=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const iS=(t,e)=>oS(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 Md={exports:{}},Ec={};/**
62
62
  * @license React
63
63
  * react-jsx-runtime.production.min.js
64
64
  *
@@ -66,27 +66,27 @@ PERFORMANCE OF THIS SOFTWARE.
66
66
  *
67
67
  * This source code is licensed under the MIT license found in the
68
68
  * LICENSE file in the root directory of this source tree.
69
- */var uS=J.exports,dS=Symbol.for("react.element"),hS=Symbol.for("react.fragment"),fS=Object.prototype.hasOwnProperty,pS=uS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,gS={key:!0,ref:!0,__self:!0,__source:!0};function lv(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)fS.call(e,n)&&!gS.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:dS,type:t,key:i,ref:a,props:o,_owner:pS.current}}Ec.Fragment=hS;Ec.jsx=lv;Ec.jsxs=lv;(function(t){t.exports=Ec})(Md);const Ve=Md.exports.jsx,uv=Md.exports.jsxs,dv=J.exports.createContext(null),mS=dv.Provider;var vS=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const yS=t=>J.exports.lazy(()=>vS(void 0,void 0,void 0,function*(){const e=new sS;yield t(e);const r=yield lS(e);return{default:({children:n})=>Ve(mS,Object.assign({value:r},{children:n}))}})),_S=()=>{let t=J.exports.useContext(dv);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},ES=t=>{const e=J.exports.useMemo(()=>yS(t.configure),[t.configure]);return Ve(J.exports.Suspense,Object.assign({fallback:t.fallback},{children:Ve(e,{children:t.children})}))};function Au(){return Au=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},Au.apply(this,arguments)}var wS=typeof Symbol=="function"&&Symbol.for;const CS=wS?Symbol.for("mui.nested"):"__THEME_NESTED__";var SS=Zs.createContext(null);const hv=SS;function TS(){var t=Zs.useContext(hv);return t}function IS(t,e){if(typeof e=="function"){var r=e(t);return r}return Au({},t,e)}function kS(t){var e=t.children,r=t.theme,n=TS(),o=Zs.useMemo(function(){var i=n===null?r:IS(n,r);return i!=null&&(i[CS]=n!==null),i},[r,n]);return Ve(hv.Provider,{value:o,children:e})}const bS={jumbo__base:"88px",default__base:"48px",default__input:"56px"},AS={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)"}}},RS={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)"},NS={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)"}},PS={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:""}},OS={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"}},xS={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:bS,colors:AS,elevation:RS,interactions:NS,shape:PS,spacings:OS,typography:xS},MS=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();class ne{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=>`${MS(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]:ne.makeVariable(r[o])}),{})}}get css(){const{attributes:e,style:r}=this;return ne.makeCss({...r,...Object.keys(e).reduce((n,o)=>Object.assign(n,{[o]:ne.makeVariable(e[o])}),{})})}get variables(){return this.getVariables()}getAttributes(e){return Object.values(this.attributes).filter(r=>e||!r.base)}getVariable(e){return ne.makeVariable(this.attributes[e])}getVariables(e){return this.getAttributes(e).map(({attribute:r,value:n})=>[r,n].join(":"))}toString(){return this.css}}class fv extends ne{get attributes(){const{name:e,value:{rgba:r}}=this;return{color:{attribute:ne.makeCssVar("color",e),value:r}}}get style(){return{color:this.value.rgba}}}const Jo=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new fv(`${e}-${n}`,t[n])}),{}),pv={infographic:Jo(et.colors.infographic,"infographic"),interactive:Jo(et.colors.interactive,"interactive"),logo:Jo(et.colors.logo,"logo"),text:Jo(et.colors.text,"text"),ui:Jo(et.colors.ui,"ui")},US=Object.values(pv).reduce((t,e)=>t.concat(fv.extractVariables(e)),[]);class wc extends ne{get attributes(){const{name:e,value:r}=this;return{shadow:{attribute:wc.makeCssVar("elevation",e),value:r}}}get style(){return{boxShadow:ne.makeVariable(this.attributes.shadow)}}}const LS=t=>new wc(t,et.elevation[t]),HS=Object.keys(et.elevation),gv=HS.reduce((t,e)=>Object.assign(t,{[e]:LS(e)}),{}),DS=wc.extractVariables(gv);class mv extends ne{get attributes(){const{name:e,value:r}=this;return{padding:{attribute:ne.makeCssVar("spacing",e),value:r}}}get style(){return{padding:this.value}}}const FS=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new mv(`${e}-${n}`,t[n])}),{}),vv={comfortable:FS(et.spacings.comfortable,"comfortable")},zS=Object.values(vv).reduce((t,e)=>t.concat(mv.extractVariables(e)),[]);class $S extends ne{get attributes(){const{name:e,value:r}=this;return{color:{attribute:ne.makeCssVar("typography",`${e}__color`),value:ne.makeVariable({attribute:ne.makeCssVar("typography","base-color"),value:r.color}),base:!0},fontFamily:{attribute:ne.makeCssVar("typography",`${e}-fontFamily`),value:r.fontFamily},fontSize:{attribute:ne.makeCssVar("typography",`${e}-fontSize`),value:r.fontSize},fontWeight:{attribute:ne.makeCssVar("typography",`${e}-fontWeight`),value:r.fontWeight},lineHeight:{attribute:ne.makeCssVar("typography",`${e}-lineHeight`),value:r.lineHeight},textAlign:{attribute:ne.makeCssVar("typography",`${e}-textAlign`),value:r.textAlign},letterSpacing:{attribute:ne.makeCssVar("typography",`${e}-letterSpacing`),value:r.letterSpacing},fontStyle:{attribute:ne.makeCssVar("typography",`${e}-fontStyle`),value:r.fontStyle},textTransform:{attribute:ne.makeCssVar("typography",`${e}-textTransform`),value:r.textTransform},textDecoration:{attribute:ne.makeCssVar("typography",`${e}-textDecoration`),value:r.textDecoration},fontFeature:{attribute:ne.makeCssVar("typography",`${e}-fontFeature`),value:r.fontFeature}}}}const Hn=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new $S(`${e}-${n}`,t[n])}),{}),yv={heading:Hn(et.typography.heading,"heading"),input:Hn(et.typography.input,"input"),navigation:Hn(et.typography.navigation,"navigation"),paragraph:Hn(et.typography.paragraph,"paragraph"),table:Hn(et.typography.table,"table"),ui:Hn(et.typography.ui,"ui")},Mf={attribute:ne.makeCssVar("typography","base-color"),value:et.colors.text.static_icons__default.rgba},jS=[...Object.values(yv).reduce((t,e)=>t.concat(ne.extractVariables(e)),[]),[Mf.attribute,Mf.value].join(":")],Ne={colors:pv,elevation:gv,spacing:vv,typography:yv};[...US,...DS,...zS,...jS];const qS=(t,e)=>(window.customElements.define(t,e),e),BS=(t,e)=>{const{kind:r,elements:n}=e;return{kind:r,elements:n,finisher(o){window.customElements.define(t,o)}}},Cc=t=>e=>{if(window.customElements.get(t))console.warn(`${t} has been defined twice`);else return typeof e=="function"?qS(t,e):BS(t,e)};/**
69
+ */var aS=J.exports,sS=Symbol.for("react.element"),cS=Symbol.for("react.fragment"),lS=Object.prototype.hasOwnProperty,uS=aS.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,dS={key:!0,ref:!0,__self:!0,__source:!0};function cv(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)lS.call(e,n)&&!dS.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:sS,type:t,key:i,ref:a,props:o,_owner:uS.current}}Ec.Fragment=cS;Ec.jsx=cv;Ec.jsxs=cv;(function(t){t.exports=Ec})(Md);const Ve=Md.exports.jsx,lv=Md.exports.jsxs,uv=J.exports.createContext(null),hS=uv.Provider;var fS=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(d){a(d)}}function c(u){try{l(n.throw(u))}catch(d){a(d)}}function l(u){u.done?i(u.value):o(u.value).then(s,c)}l((n=n.apply(t,e||[])).next())})};const pS=t=>J.exports.lazy(()=>fS(void 0,void 0,void 0,function*(){const e=new nS;yield t(e);const r=yield iS(e);return{default:({children:n})=>Ve(hS,Object.assign({value:r},{children:n}))}})),Ud=()=>{let t=J.exports.useContext(uv);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},gS=t=>{const e=J.exports.useMemo(()=>pS(t.configure),[t.configure]);return Ve(J.exports.Suspense,Object.assign({fallback:t.fallback},{children:Ve(e,{children:t.children})}))};function Au(){return Au=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},Au.apply(this,arguments)}var mS=typeof Symbol=="function"&&Symbol.for;const vS=mS?Symbol.for("mui.nested"):"__THEME_NESTED__";var yS=Zs.createContext(null);const dv=yS;function _S(){var t=Zs.useContext(dv);return t}function ES(t,e){if(typeof e=="function"){var r=e(t);return r}return Au({},t,e)}function wS(t){var e=t.children,r=t.theme,n=_S(),o=Zs.useMemo(function(){var i=n===null?r:ES(n,r);return i!=null&&(i[vS]=n!==null),i},[r,n]);return Ve(dv.Provider,{value:o,children:e})}const CS={jumbo__base:"88px",default__base:"48px",default__input:"56px"},SS={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)"}}},TS={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)"},IS={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)"}},kS={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:""}},bS={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"}},AS={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:CS,colors:SS,elevation:TS,interactions:IS,shape:kS,spacings:bS,typography:AS},RS=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();class ne{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=>`${RS(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]:ne.makeVariable(r[o])}),{})}}get css(){const{attributes:e,style:r}=this;return ne.makeCss({...r,...Object.keys(e).reduce((n,o)=>Object.assign(n,{[o]:ne.makeVariable(e[o])}),{})})}get variables(){return this.getVariables()}getAttributes(e){return Object.values(this.attributes).filter(r=>e||!r.base)}getVariable(e){return ne.makeVariable(this.attributes[e])}getVariables(e){return this.getAttributes(e).map(({attribute:r,value:n})=>[r,n].join(":"))}toString(){return this.css}}class hv extends ne{get attributes(){const{name:e,value:{rgba:r}}=this;return{color:{attribute:ne.makeCssVar("color",e),value:r}}}get style(){return{color:this.value.rgba}}}const Jo=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new hv(`${e}-${n}`,t[n])}),{}),fv={infographic:Jo(et.colors.infographic,"infographic"),interactive:Jo(et.colors.interactive,"interactive"),logo:Jo(et.colors.logo,"logo"),text:Jo(et.colors.text,"text"),ui:Jo(et.colors.ui,"ui")},NS=Object.values(fv).reduce((t,e)=>t.concat(hv.extractVariables(e)),[]);class wc extends ne{get attributes(){const{name:e,value:r}=this;return{shadow:{attribute:wc.makeCssVar("elevation",e),value:r}}}get style(){return{boxShadow:ne.makeVariable(this.attributes.shadow)}}}const PS=t=>new wc(t,et.elevation[t]),OS=Object.keys(et.elevation),pv=OS.reduce((t,e)=>Object.assign(t,{[e]:PS(e)}),{}),xS=wc.extractVariables(pv);class gv extends ne{get attributes(){const{name:e,value:r}=this;return{padding:{attribute:ne.makeCssVar("spacing",e),value:r}}}get style(){return{padding:this.value}}}const MS=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new gv(`${e}-${n}`,t[n])}),{}),mv={comfortable:MS(et.spacings.comfortable,"comfortable")},US=Object.values(mv).reduce((t,e)=>t.concat(gv.extractVariables(e)),[]);class LS extends ne{get attributes(){const{name:e,value:r}=this;return{color:{attribute:ne.makeCssVar("typography",`${e}__color`),value:ne.makeVariable({attribute:ne.makeCssVar("typography","base-color"),value:r.color}),base:!0},fontFamily:{attribute:ne.makeCssVar("typography",`${e}-fontFamily`),value:r.fontFamily},fontSize:{attribute:ne.makeCssVar("typography",`${e}-fontSize`),value:r.fontSize},fontWeight:{attribute:ne.makeCssVar("typography",`${e}-fontWeight`),value:r.fontWeight},lineHeight:{attribute:ne.makeCssVar("typography",`${e}-lineHeight`),value:r.lineHeight},textAlign:{attribute:ne.makeCssVar("typography",`${e}-textAlign`),value:r.textAlign},letterSpacing:{attribute:ne.makeCssVar("typography",`${e}-letterSpacing`),value:r.letterSpacing},fontStyle:{attribute:ne.makeCssVar("typography",`${e}-fontStyle`),value:r.fontStyle},textTransform:{attribute:ne.makeCssVar("typography",`${e}-textTransform`),value:r.textTransform},textDecoration:{attribute:ne.makeCssVar("typography",`${e}-textDecoration`),value:r.textDecoration},fontFeature:{attribute:ne.makeCssVar("typography",`${e}-fontFeature`),value:r.fontFeature}}}}const Hn=(t,e)=>Object.keys(t).reduce((r,n)=>Object.assign(r,{[n]:new LS(`${e}-${n}`,t[n])}),{}),vv={heading:Hn(et.typography.heading,"heading"),input:Hn(et.typography.input,"input"),navigation:Hn(et.typography.navigation,"navigation"),paragraph:Hn(et.typography.paragraph,"paragraph"),table:Hn(et.typography.table,"table"),ui:Hn(et.typography.ui,"ui")},xf={attribute:ne.makeCssVar("typography","base-color"),value:et.colors.text.static_icons__default.rgba},HS=[...Object.values(vv).reduce((t,e)=>t.concat(ne.extractVariables(e)),[]),[xf.attribute,xf.value].join(":")],Ne={colors:fv,elevation:pv,spacing:mv,typography:vv};[...NS,...xS,...US,...HS];const DS=(t,e)=>(window.customElements.define(t,e),e),FS=(t,e)=>{const{kind:r,elements:n}=e;return{kind:r,elements:n,finisher(o){window.customElements.define(t,o)}}},Cc=t=>e=>{if(window.customElements.get(t))console.warn(`${t} has been defined twice`);else return typeof e=="function"?DS(t,e):FS(t,e)};/**
70
70
  * @license
71
71
  * Copyright 2019 Google LLC
72
72
  * SPDX-License-Identifier: BSD-3-Clause
73
- */const as=window,Ud=as.ShadowRoot&&(as.ShadyCSS===void 0||as.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ld=Symbol(),Uf=new WeakMap;class _v{constructor(e,r,n){if(this._$cssResult$=!0,n!==Ld)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(Ud&&e===void 0){const n=r!==void 0&&r.length===1;n&&(e=Uf.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Uf.set(r,e))}return e}toString(){return this.cssText}}const Le=t=>new _v(typeof t=="string"?t:t+"",void 0,Ld),Pr=(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 _v(r,t,Ld)},KS=(t,e)=>{Ud?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{const n=document.createElement("style"),o=as.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,t.appendChild(n)})},Lf=Ud?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return Le(r)})(t):t;/**
73
+ */const as=window,Ld=as.ShadowRoot&&(as.ShadyCSS===void 0||as.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Hd=Symbol(),Mf=new WeakMap;class yv{constructor(e,r,n){if(this._$cssResult$=!0,n!==Hd)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(Ld&&e===void 0){const n=r!==void 0&&r.length===1;n&&(e=Mf.get(r)),e===void 0&&((this.o=e=new CSSStyleSheet).replaceSync(this.cssText),n&&Mf.set(r,e))}return e}toString(){return this.cssText}}const Le=t=>new yv(typeof t=="string"?t:t+"",void 0,Hd),Pr=(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 yv(r,t,Hd)},zS=(t,e)=>{Ld?t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet):e.forEach(r=>{const n=document.createElement("style"),o=as.litNonce;o!==void 0&&n.setAttribute("nonce",o),n.textContent=r.cssText,t.appendChild(n)})},Uf=Ld?t=>t:t=>t instanceof CSSStyleSheet?(e=>{let r="";for(const n of e.cssRules)r+=n.cssText;return Le(r)})(t):t;/**
74
74
  * @license
75
75
  * Copyright 2017 Google LLC
76
76
  * SPDX-License-Identifier: BSD-3-Clause
77
- */var ll;const Js=window,Hf=Js.trustedTypes,GS=Hf?Hf.emptyScript:"",Df=Js.reactiveElementPolyfillSupport,Ru={toAttribute(t,e){switch(e){case Boolean:t=t?GS: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}},Ev=(t,e)=>e!==t&&(e==e||t==t),ul={attribute:!0,type:String,converter:Ru,reflect:!1,hasChanged:Ev};class qn extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var r;(r=this.h)!==null&&r!==void 0||(this.h=[]),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=ul){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)||ul}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),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(Lf(o))}else e!==void 0&&r.push(Lf(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 KS(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=ul){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:Ru).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:Ru;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||Ev)(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){}}qn.finalized=!0,qn.elementProperties=new Map,qn.elementStyles=[],qn.shadowRootOptions={mode:"open"},Df==null||Df({ReactiveElement:qn}),((ll=Js.reactiveElementVersions)!==null&&ll!==void 0?ll:Js.reactiveElementVersions=[]).push("1.4.1");/**
77
+ */var ll;const Js=window,Lf=Js.trustedTypes,$S=Lf?Lf.emptyScript:"",Hf=Js.reactiveElementPolyfillSupport,Ru={toAttribute(t,e){switch(e){case Boolean:t=t?$S: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}},_v=(t,e)=>e!==t&&(e==e||t==t),ul={attribute:!0,type:String,converter:Ru,reflect:!1,hasChanged:_v};class qn extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(e){var r;(r=this.h)!==null&&r!==void 0||(this.h=[]),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=ul){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)||ul}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const e=Object.getPrototypeOf(this);if(e.finalize(),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(Uf(o))}else e!==void 0&&r.push(Uf(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 zS(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=ul){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:Ru).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:Ru;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||_v)(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){}}qn.finalized=!0,qn.elementProperties=new Map,qn.elementStyles=[],qn.shadowRootOptions={mode:"open"},Hf==null||Hf({ReactiveElement:qn}),((ll=Js.reactiveElementVersions)!==null&&ll!==void 0?ll:Js.reactiveElementVersions=[]).push("1.4.1");/**
78
78
  * @license
79
79
  * Copyright 2017 Google LLC
80
80
  * SPDX-License-Identifier: BSD-3-Clause
81
- */var dl;const Xs=window,Po=Xs.trustedTypes,Ff=Po?Po.createPolicy("lit-html",{createHTML:t=>t}):void 0,$r=`lit$${(Math.random()+"").slice(9)}$`,wv="?"+$r,VS=`<${wv}>`,Oo=document,Xi=(t="")=>Oo.createComment(t),Zi=t=>t===null||typeof t!="object"&&typeof t!="function",Cv=Array.isArray,WS=t=>Cv(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Xo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,zf=/-->/g,$f=/>/g,un=RegExp(`>|[
81
+ */var dl;const Xs=window,Po=Xs.trustedTypes,Df=Po?Po.createPolicy("lit-html",{createHTML:t=>t}):void 0,$r=`lit$${(Math.random()+"").slice(9)}$`,Ev="?"+$r,jS=`<${Ev}>`,Oo=document,Xi=(t="")=>Oo.createComment(t),Zi=t=>t===null||typeof t!="object"&&typeof t!="function",wv=Array.isArray,qS=t=>wv(t)||typeof(t==null?void 0:t[Symbol.iterator])=="function",Xo=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ff=/-->/g,zf=/>/g,un=RegExp(`>|[
82
82
  \f\r](?:([^\\s"'>=/]+)([
83
83
  \f\r]*=[
84
84
  \f\r]*(?:[^
85
- \f\r"'\`<>=]|("|')|))|$)`,"g"),jf=/'/g,qf=/"/g,Sv=/^(?:script|style|textarea|title)$/i,Tv=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Iv=Tv(1),Hd=Tv(2),xo=Symbol.for("lit-noChange"),Pe=Symbol.for("lit-nothing"),Bf=new WeakMap,yo=Oo.createTreeWalker(Oo,129,null,!1),YS=(t,e)=>{const r=t.length-1,n=[];let o,i=e===2?"<svg>":"",a=Xo;for(let c=0;c<r;c++){const l=t[c];let u,d,h=-1,p=0;for(;p<l.length&&(a.lastIndex=p,d=a.exec(l),d!==null);)p=a.lastIndex,a===Xo?d[1]==="!--"?a=zf:d[1]!==void 0?a=$f:d[2]!==void 0?(Sv.test(d[2])&&(o=RegExp("</"+d[2],"g")),a=un):d[3]!==void 0&&(a=un):a===un?d[0]===">"?(a=o!=null?o:Xo,h=-1):d[1]===void 0?h=-2:(h=a.lastIndex-d[2].length,u=d[1],a=d[3]===void 0?un:d[3]==='"'?qf:jf):a===qf||a===jf?a=un:a===zf||a===$f?a=Xo:(a=un,o=void 0);const v=a===un&&t[c+1].startsWith("/>")?" ":"";i+=a===Xo?l+VS:h>=0?(n.push(u),l.slice(0,h)+"$lit$"+l.slice(h)+$r+v):l+$r+(h===-2?(n.push(void 0),c):v)}const s=i+(t[r]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Ff!==void 0?Ff.createHTML(s):s,n]};class ea{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]=YS(e,r);if(this.el=ea.createElement(l,n),yo.currentNode=this.el.content,r===2){const d=this.el.content,h=d.firstChild;h.remove(),d.append(...h.childNodes)}for(;(o=yo.nextNode())!==null&&c.length<s;){if(o.nodeType===1){if(o.hasAttributes()){const d=[];for(const h of o.getAttributeNames())if(h.endsWith("$lit$")||h.startsWith($r)){const p=u[a++];if(d.push(h),p!==void 0){const v=o.getAttribute(p.toLowerCase()+"$lit$").split($r),y=/([.?@])?(.*)/.exec(p);c.push({type:1,index:i,name:y[2],strings:v,ctor:y[1]==="."?JS:y[1]==="?"?ZS:y[1]==="@"?eT:Sc})}else c.push({type:6,index:i})}for(const h of d)o.removeAttribute(h)}if(Sv.test(o.tagName)){const d=o.textContent.split($r),h=d.length-1;if(h>0){o.textContent=Po?Po.emptyScript:"";for(let p=0;p<h;p++)o.append(d[p],Xi()),yo.nextNode(),c.push({type:2,index:++i});o.append(d[h],Xi())}}}else if(o.nodeType===8)if(o.data===wv)c.push({type:2,index:i});else{let d=-1;for(;(d=o.data.indexOf($r,d+1))!==-1;)c.push({type:7,index:i}),d+=$r.length-1}i++}}static createElement(e,r){const n=Oo.createElement("template");return n.innerHTML=e,n}}function Mo(t,e,r=t,n){var o,i,a,s;if(e===xo)return e;let c=n!==void 0?(o=r._$Co)===null||o===void 0?void 0:o[n]:r._$Cl;const l=Zi(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=Mo(t,c._$AS(t,e.values),c,n)),e}class QS{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:Oo).importNode(n,!0);yo.currentNode=i;let a=yo.nextNode(),s=0,c=0,l=o[0];for(;l!==void 0;){if(s===l.index){let u;l.type===2?u=new ca(a,a.nextSibling,this,e):l.type===1?u=new l.ctor(a,l.name,l.strings,this,e):l.type===6&&(u=new tT(a,this,e)),this.u.push(u),l=o[++c]}s!==(l==null?void 0:l.index)&&(a=yo.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 ca{constructor(e,r,n,o){var i;this.type=2,this._$AH=Pe,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=Mo(this,e,r),Zi(e)?e===Pe||e==null||e===""?(this._$AH!==Pe&&this._$AR(),this._$AH=Pe):e!==this._$AH&&e!==xo&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):WS(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!==Pe&&Zi(this._$AH)?this._$AA.nextSibling.data=e:this.T(Oo.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=ea.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 QS(i,this),s=a.v(this.options);a.p(n),this.T(s),this._$AH=a}}_$AC(e){let r=Bf.get(e.strings);return r===void 0&&Bf.set(e.strings,r=new ea(e)),r}k(e){Cv(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 ca(this.O(Xi()),this.O(Xi()),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 Sc{constructor(e,r,n,o,i){this.type=1,this._$AH=Pe,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=Pe}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=Mo(this,e,r,0),a=!Zi(e)||e!==this._$AH&&e!==xo,a&&(this._$AH=e);else{const s=e;let c,l;for(e=i[0],c=0;c<i.length-1;c++)l=Mo(this,s[n+c],r,c),l===xo&&(l=this._$AH[c]),a||(a=!Zi(l)||l!==this._$AH[c]),l===Pe?e=Pe:e!==Pe&&(e+=(l!=null?l:"")+i[c+1]),this._$AH[c]=l}a&&!o&&this.j(e)}j(e){e===Pe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class JS extends Sc{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Pe?void 0:e}}const XS=Po?Po.emptyScript:"";class ZS extends Sc{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Pe?this.element.setAttribute(this.name,XS):this.element.removeAttribute(this.name)}}class eT extends Sc{constructor(e,r,n,o,i){super(e,r,n,o,i),this.type=5}_$AI(e,r=this){var n;if((e=(n=Mo(this,e,r,0))!==null&&n!==void 0?n:Pe)===xo)return;const o=this._$AH,i=e===Pe&&o!==Pe||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==Pe&&(o===Pe||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 tT{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){Mo(this,e)}}const Kf=Xs.litHtmlPolyfillSupport;Kf==null||Kf(ea,ca),((dl=Xs.litHtmlVersions)!==null&&dl!==void 0?dl:Xs.litHtmlVersions=[]).push("2.4.0");const rT=(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 ca(e.insertBefore(Xi(),s),s,void 0,r!=null?r:{})}return a._$AI(t),a};/**
85
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),$f=/'/g,jf=/"/g,Cv=/^(?:script|style|textarea|title)$/i,Sv=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Tv=Sv(1),Dd=Sv(2),xo=Symbol.for("lit-noChange"),Pe=Symbol.for("lit-nothing"),qf=new WeakMap,yo=Oo.createTreeWalker(Oo,129,null,!1),BS=(t,e)=>{const r=t.length-1,n=[];let o,i=e===2?"<svg>":"",a=Xo;for(let c=0;c<r;c++){const l=t[c];let u,d,h=-1,p=0;for(;p<l.length&&(a.lastIndex=p,d=a.exec(l),d!==null);)p=a.lastIndex,a===Xo?d[1]==="!--"?a=Ff:d[1]!==void 0?a=zf:d[2]!==void 0?(Cv.test(d[2])&&(o=RegExp("</"+d[2],"g")),a=un):d[3]!==void 0&&(a=un):a===un?d[0]===">"?(a=o!=null?o:Xo,h=-1):d[1]===void 0?h=-2:(h=a.lastIndex-d[2].length,u=d[1],a=d[3]===void 0?un:d[3]==='"'?jf:$f):a===jf||a===$f?a=un:a===Ff||a===zf?a=Xo:(a=un,o=void 0);const v=a===un&&t[c+1].startsWith("/>")?" ":"";i+=a===Xo?l+jS:h>=0?(n.push(u),l.slice(0,h)+"$lit$"+l.slice(h)+$r+v):l+$r+(h===-2?(n.push(void 0),c):v)}const s=i+(t[r]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Df!==void 0?Df.createHTML(s):s,n]};class ea{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]=BS(e,r);if(this.el=ea.createElement(l,n),yo.currentNode=this.el.content,r===2){const d=this.el.content,h=d.firstChild;h.remove(),d.append(...h.childNodes)}for(;(o=yo.nextNode())!==null&&c.length<s;){if(o.nodeType===1){if(o.hasAttributes()){const d=[];for(const h of o.getAttributeNames())if(h.endsWith("$lit$")||h.startsWith($r)){const p=u[a++];if(d.push(h),p!==void 0){const v=o.getAttribute(p.toLowerCase()+"$lit$").split($r),y=/([.?@])?(.*)/.exec(p);c.push({type:1,index:i,name:y[2],strings:v,ctor:y[1]==="."?GS:y[1]==="?"?WS:y[1]==="@"?YS:Sc})}else c.push({type:6,index:i})}for(const h of d)o.removeAttribute(h)}if(Cv.test(o.tagName)){const d=o.textContent.split($r),h=d.length-1;if(h>0){o.textContent=Po?Po.emptyScript:"";for(let p=0;p<h;p++)o.append(d[p],Xi()),yo.nextNode(),c.push({type:2,index:++i});o.append(d[h],Xi())}}}else if(o.nodeType===8)if(o.data===Ev)c.push({type:2,index:i});else{let d=-1;for(;(d=o.data.indexOf($r,d+1))!==-1;)c.push({type:7,index:i}),d+=$r.length-1}i++}}static createElement(e,r){const n=Oo.createElement("template");return n.innerHTML=e,n}}function Mo(t,e,r=t,n){var o,i,a,s;if(e===xo)return e;let c=n!==void 0?(o=r._$Co)===null||o===void 0?void 0:o[n]:r._$Cl;const l=Zi(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=Mo(t,c._$AS(t,e.values),c,n)),e}class KS{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:Oo).importNode(n,!0);yo.currentNode=i;let a=yo.nextNode(),s=0,c=0,l=o[0];for(;l!==void 0;){if(s===l.index){let u;l.type===2?u=new ca(a,a.nextSibling,this,e):l.type===1?u=new l.ctor(a,l.name,l.strings,this,e):l.type===6&&(u=new QS(a,this,e)),this.u.push(u),l=o[++c]}s!==(l==null?void 0:l.index)&&(a=yo.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 ca{constructor(e,r,n,o){var i;this.type=2,this._$AH=Pe,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=Mo(this,e,r),Zi(e)?e===Pe||e==null||e===""?(this._$AH!==Pe&&this._$AR(),this._$AH=Pe):e!==this._$AH&&e!==xo&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):qS(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!==Pe&&Zi(this._$AH)?this._$AA.nextSibling.data=e:this.T(Oo.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=ea.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 KS(i,this),s=a.v(this.options);a.p(n),this.T(s),this._$AH=a}}_$AC(e){let r=qf.get(e.strings);return r===void 0&&qf.set(e.strings,r=new ea(e)),r}k(e){wv(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 ca(this.O(Xi()),this.O(Xi()),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 Sc{constructor(e,r,n,o,i){this.type=1,this._$AH=Pe,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=Pe}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=Mo(this,e,r,0),a=!Zi(e)||e!==this._$AH&&e!==xo,a&&(this._$AH=e);else{const s=e;let c,l;for(e=i[0],c=0;c<i.length-1;c++)l=Mo(this,s[n+c],r,c),l===xo&&(l=this._$AH[c]),a||(a=!Zi(l)||l!==this._$AH[c]),l===Pe?e=Pe:e!==Pe&&(e+=(l!=null?l:"")+i[c+1]),this._$AH[c]=l}a&&!o&&this.j(e)}j(e){e===Pe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class GS extends Sc{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Pe?void 0:e}}const VS=Po?Po.emptyScript:"";class WS extends Sc{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Pe?this.element.setAttribute(this.name,VS):this.element.removeAttribute(this.name)}}class YS extends Sc{constructor(e,r,n,o,i){super(e,r,n,o,i),this.type=5}_$AI(e,r=this){var n;if((e=(n=Mo(this,e,r,0))!==null&&n!==void 0?n:Pe)===xo)return;const o=this._$AH,i=e===Pe&&o!==Pe||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==Pe&&(o===Pe||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 QS{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){Mo(this,e)}}const Bf=Xs.litHtmlPolyfillSupport;Bf==null||Bf(ea,ca),((dl=Xs.litHtmlVersions)!==null&&dl!==void 0?dl:Xs.litHtmlVersions=[]).push("2.4.0");const JS=(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 ca(e.insertBefore(Xi(),s),s,void 0,r!=null?r:{})}return a._$AI(t),a};/**
86
86
  * @license
87
87
  * Copyright 2017 Google LLC
88
88
  * SPDX-License-Identifier: BSD-3-Clause
89
- */var hl,fl;class en extends qn{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=rT(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 xo}}en.finalized=!0,en._$litElement$=!0,(hl=globalThis.litElementHydrateSupport)===null||hl===void 0||hl.call(globalThis,{LitElement:en});const Gf=globalThis.litElementPolyfillSupport;Gf==null||Gf({LitElement:en});((fl=globalThis.litElementVersions)!==null&&fl!==void 0?fl:globalThis.litElementVersions=[]).push("3.2.2");const nT=Pr`
89
+ */var hl,fl;class en extends qn{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=JS(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 xo}}en.finalized=!0,en._$litElement$=!0,(hl=globalThis.litElementHydrateSupport)===null||hl===void 0||hl.call(globalThis,{LitElement:en});const Kf=globalThis.litElementPolyfillSupport;Kf==null||Kf({LitElement:en});((fl=globalThis.litElementVersions)!==null&&fl!==void 0?fl:globalThis.litElementVersions=[]).push("3.2.2");const XS=Pr`
90
90
  ::slotted(*) {
91
91
  --fwc-ripple-color: #000;
92
92
  --fwc-ripple-hover-opacity: 0.1;
@@ -112,15 +112,15 @@ PERFORMANCE OF THIS SOFTWARE.
112
112
  --mdc-theme-surface: var(--fwc-theme-surface);
113
113
  --mdc-typography-font-family: var(--fwc-typography-font-family);
114
114
  }
115
- `,Vf="FUSION_EQUINOR_FONT";class kv extends en{get FontLink(){return document.head.querySelector(`link#${Vf}`)}connectedCallback(){super.connectedCallback(),!this.FontLink&&this.injectFont()}injectFont(){const e=document.createElement("link");e.id=Vf,e.href="https://eds-static.equinor.com/font/equinor-font.css",e.rel="stylesheet",document.head.append(e)}render(){return Iv`<slot></slot>`}}kv.styles=[nT];const oT="fwc-theme";let Wf=class extends kv{};Wf=ar([Cc(oT)],Wf);const iT=t=>{var n;const{children:e,...r}=t;return Ve(kS,{...r,theme:(n=r.theme)!=null?n:Ne,children:Ve("fwc-theme",{children:e})})},aT=new Set(["children","localName","ref","style","className"]),sT=t=>{const e=new Set;for(const r in t.prototype)r in HTMLElement.prototype||(aT.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},cT=(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])},lT=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}},uT=(t,e)=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>t[r]===e[r]),dT={},hT=(t,e,r={})=>{const n=J.exports.useRef({}),o=J.exports.useRef({}),i=J.exports.useMemo(()=>{if(!e)return dT;const a=Object.keys(r).filter(c=>c in e).reduce((c,l)=>Object.assign(c,{[l]:e[l]}),{});return!uT(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(d=>d in i);for(const d of s)if(!(d in a)){const h=p=>{const v=o.current[d];v&&v(lT(p))};console.debug(`adding event listener [${d}]`,t.current),(l=t.current)==null||l.addEventListener(r[d],h),Object.assign(a,{[d]:h})}const c=Object.keys(a).filter(d=>!(d in i));for(const d of c){console.debug(`removing event listener [${d}]`,t.current);const h=r[d],p=a[d];h&&(p&&((u=t.current)==null||u.removeEventListener(h,p)),delete a[d])}n.current=a,o.current=i},[r,t,o,n,i])},fT=(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},pT=t=>{switch(t){case"className":return"class"}return t},gT=["string","number","boolean","bigint"],Dd=(t,e,r={})=>{const{events:n={},functions:o=new Set,displayName:i=t.name}=r,a=sT(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 d=fT(u);cT(d,l,a),hT(d,l,n);const h=J.exports.useMemo(()=>{const p=Object.entries(l||{}),v=p.filter(([I])=>!s.has(I)),y=d.current?[]:p.filter(([I])=>s.has(I)).filter(([I,g])=>gT.includes(typeof g)).filter(([I,g])=>!!g);return[...v,...y].map(([I,g])=>[pT(I),g]).reduce((I,[g,f])=>Object.assign(I,{[g]:f}),{ref:d})},[d,l]);return J.exports.createElement(e,h)});return c.displayName=i,c};/**
115
+ `,Gf="FUSION_EQUINOR_FONT";class Iv extends en{get FontLink(){return document.head.querySelector(`link#${Gf}`)}connectedCallback(){super.connectedCallback(),!this.FontLink&&this.injectFont()}injectFont(){const e=document.createElement("link");e.id=Gf,e.href="https://eds-static.equinor.com/font/equinor-font.css",e.rel="stylesheet",document.head.append(e)}render(){return Tv`<slot></slot>`}}Iv.styles=[XS];const ZS="fwc-theme";let Vf=class extends Iv{};Vf=ar([Cc(ZS)],Vf);const eT=t=>{var n;const{children:e,...r}=t;return Ve(wS,{...r,theme:(n=r.theme)!=null?n:Ne,children:Ve("fwc-theme",{children:e})})},tT=new Set(["children","localName","ref","style","className"]),rT=t=>{const e=new Set;for(const r in t.prototype)r in HTMLElement.prototype||(tT.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},nT=(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])},oT=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}},iT=(t,e)=>Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>t[r]===e[r]),aT={},sT=(t,e,r={})=>{const n=J.exports.useRef({}),o=J.exports.useRef({}),i=J.exports.useMemo(()=>{if(!e)return aT;const a=Object.keys(r).filter(c=>c in e).reduce((c,l)=>Object.assign(c,{[l]:e[l]}),{});return!iT(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(d=>d in i);for(const d of s)if(!(d in a)){const h=p=>{const v=o.current[d];v&&v(oT(p))};console.debug(`adding event listener [${d}]`,t.current),(l=t.current)==null||l.addEventListener(r[d],h),Object.assign(a,{[d]:h})}const c=Object.keys(a).filter(d=>!(d in i));for(const d of c){console.debug(`removing event listener [${d}]`,t.current);const h=r[d],p=a[d];h&&(p&&((u=t.current)==null||u.removeEventListener(h,p)),delete a[d])}n.current=a,o.current=i},[r,t,o,n,i])},cT=(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},lT=t=>{switch(t){case"className":return"class"}return t},uT=["string","number","boolean","bigint"],Fd=(t,e,r={})=>{const{events:n={},functions:o=new Set,displayName:i=t.name}=r,a=rT(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 d=cT(u);nT(d,l,a),sT(d,l,n);const h=J.exports.useMemo(()=>{const p=Object.entries(l||{}),v=p.filter(([I])=>!s.has(I)),y=d.current?[]:p.filter(([I])=>s.has(I)).filter(([I,g])=>uT.includes(typeof g)).filter(([I,g])=>!!g);return[...v,...y].map(([I,g])=>[lT(I),g]).reduce((I,[g,f])=>Object.assign(I,{[g]:f}),{ref:d})},[d,l]);return J.exports.createElement(e,h)});return c.displayName=i,c};/**
116
116
  * @license
117
117
  * Copyright 2017 Google LLC
118
118
  * SPDX-License-Identifier: BSD-3-Clause
119
- */const mT=(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 Fo(t){return(e,r)=>r!==void 0?((n,o,i)=>{o.constructor.createProperty(i,n)})(t,e,r):mT(t,e)}/**
119
+ */const dT=(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 Fo(t){return(e,r)=>r!==void 0?((n,o,i)=>{o.constructor.createProperty(i,n)})(t,e,r):dT(t,e)}/**
120
120
  * @license
121
121
  * Copyright 2021 Google LLC
122
122
  * SPDX-License-Identifier: BSD-3-Clause
123
- */var pl;((pl=window.HTMLSlotElement)===null||pl===void 0?void 0:pl.prototype.assignedElements)!=null;const vT=Pr`
123
+ */var pl;((pl=window.HTMLSlotElement)===null||pl===void 0?void 0:pl.prototype.assignedElements)!=null;const hT=Pr`
124
124
  :host {
125
125
  display: flex;
126
126
  justify-content: center;
@@ -139,7 +139,7 @@ PERFORMANCE OF THIS SOFTWARE.
139
139
  ${Le(Ne.typography.heading.h2.css)};
140
140
  font-size: var(--fwc-star-progress-header-size, ${Le(Ne.typography.heading.h2.getVariable("fontSize"))});
141
141
  }
142
- `,yT=Pr`
142
+ `,fT=Pr`
143
143
  svg {
144
144
  height: calc(var(--fwc-star-progress-size) * 1px);
145
145
  width: calc(var(--fwc-star-progress-size) / 1.2px);
@@ -183,7 +183,7 @@ PERFORMANCE OF THIS SOFTWARE.
183
183
  opacity: 0.05;
184
184
  }
185
185
  }
186
- `,_T=Hd`
186
+ `,pT=Dd`
187
187
  <svg
188
188
  role="progressbar"
189
189
  viewBox="0 0 40 48"
@@ -212,16 +212,16 @@ PERFORMANCE OF THIS SOFTWARE.
212
212
  />
213
213
  </g>
214
214
  </svg>
215
- `;class la extends en{constructor(){super(...arguments),this.size=200}render(){const{size:e=200,text:r}=this;return Iv`
215
+ `;class la extends en{constructor(){super(...arguments),this.size=200}render(){const{size:e=200,text:r}=this;return Tv`
216
216
  <div class="container" style="--fwc-star-progress-size: ${e};">
217
- ${_T}
217
+ ${pT}
218
218
  <header class="title">
219
219
  <slot>
220
220
  <span>${r}</span>
221
221
  </slot>
222
222
  </header
223
223
  </div>
224
- `}}ar([Fo({type:Number,reflect:!0})],la.prototype,"size",void 0);ar([Fo({type:String,reflect:!1})],la.prototype,"text",void 0);la.styles=[vT,yT];const bv="fwc-star-progress";let Yf=class extends la{};Yf=ar([Cc(bv)],Yf);const ET=Pr`
224
+ `}}ar([Fo({type:Number,reflect:!0})],la.prototype,"size",void 0);ar([Fo({type:String,reflect:!1})],la.prototype,"text",void 0);la.styles=[hT,fT];const kv="fwc-star-progress";let Wf=class extends la{};Wf=ar([Cc(kv)],Wf);const gT=Pr`
225
225
  :host {
226
226
  display: flex;
227
227
  justify-content: center;
@@ -235,7 +235,7 @@ PERFORMANCE OF THIS SOFTWARE.
235
235
  :host([color='neutral']) {
236
236
  --fwc-dots-progress-color: ${Le(Ne.colors.interactive.icon_on_interactive_colors.getVariable("color"))};
237
237
  }
238
- `,wT=Pr`
238
+ `,mT=Pr`
239
239
  :host([size='small']) {
240
240
  --fwc-dots-progress-size: 32px;
241
241
  }
@@ -245,7 +245,7 @@ PERFORMANCE OF THIS SOFTWARE.
245
245
  :host([size='large']) {
246
246
  --fwc-dots-progress-size: 64px;
247
247
  }
248
- `,CT=Pr`
248
+ `,vT=Pr`
249
249
  svg {
250
250
  fill: var(--fwc-dots-progress-color, currentColor);
251
251
  height: var(calc(--fwc-dots-progress-size / 4), calc(1.2em / 4));
@@ -270,7 +270,7 @@ PERFORMANCE OF THIS SOFTWARE.
270
270
  opacity: 0.5;
271
271
  }
272
272
  }
273
- `,ST=[ET,wT,CT];var Qf;(function(t){t.Small="small",t.Medium="medium",t.Large="large"})(Qf||(Qf={}));class ua extends en{render(){return Hd`
273
+ `,yT=[gT,mT,vT];var Yf;(function(t){t.Small="small",t.Medium="medium",t.Large="large"})(Yf||(Yf={}));class ua extends en{render(){return Dd`
274
274
  <svg
275
275
  role="progressbar"
276
276
  viewBox="0 0 16 4"
@@ -280,7 +280,7 @@ PERFORMANCE OF THIS SOFTWARE.
280
280
  <circle cx="8" cy="2" r="2" />
281
281
  <circle cx="14" cy="2" r="2" />
282
282
  </svg>
283
- `}}ar([Fo({type:String,reflect:!0})],ua.prototype,"size",void 0);ar([Fo({type:String,reflect:!0})],ua.prototype,"color",void 0);ua.styles=[ST];const Av="fwc-dots-progress";let Jf=class extends ua{};Jf=ar([Cc(Av)],Jf);const TT=Pr`
283
+ `}}ar([Fo({type:String,reflect:!0})],ua.prototype,"size",void 0);ar([Fo({type:String,reflect:!0})],ua.prototype,"color",void 0);ua.styles=[yT];const bv="fwc-dots-progress";let Qf=class extends ua{};Qf=ar([Cc(bv)],Qf);const _T=Pr`
284
284
  :host {
285
285
  display: inline-flex;
286
286
  justify-content: center;
@@ -293,7 +293,7 @@ PERFORMANCE OF THIS SOFTWARE.
293
293
  :host([color='neutral']) {
294
294
  --fwc-circular-progress-color: ${Le(Ne.colors.interactive.icon_on_interactive_colors.getVariable("color"))};
295
295
  }
296
- `,IT=Pr`
296
+ `,ET=Pr`
297
297
  :host([size='x-small']) {
298
298
  --fwc-circular-progress-size: 16px;
299
299
  }
@@ -309,7 +309,7 @@ PERFORMANCE OF THIS SOFTWARE.
309
309
  :host([size='x-large']) {
310
310
  --fwc-circular-progress-size: 48px;
311
311
  }
312
- `,kT=Pr`
312
+ `,wT=Pr`
313
313
  svg {
314
314
  height: var(--fwc-circular-progress-size, 1.2em);
315
315
  width: var(--fwc-circular-progress-size, 1.2em);
@@ -335,7 +335,7 @@ PERFORMANCE OF THIS SOFTWARE.
335
335
  transform: rotate(360deg);
336
336
  }
337
337
  }
338
- `,bT=[TT,IT,kT];var Xf;(function(t){t.XSmall="x-small",t.Small="small",t.Medium="medium",t.Large="large",t.XLarge="x-large"})(Xf||(Xf={}));class da extends en{render(){return Hd`
338
+ `,CT=[_T,ET,wT];var Jf;(function(t){t.XSmall="x-small",t.Small="small",t.Medium="medium",t.Large="large",t.XLarge="x-large"})(Jf||(Jf={}));class da extends en{render(){return Dd`
339
339
  <svg
340
340
  viewBox="0 0 48 48"
341
341
  role="progressbar"
@@ -360,4 +360,4 @@ PERFORMANCE OF THIS SOFTWARE.
360
360
  class="progress">
361
361
  </circle>
362
362
  </svg>
363
- `}}ar([Fo({type:String,reflect:!0})],da.prototype,"size",void 0);ar([Fo({type:String,reflect:!0})],da.prototype,"color",void 0);da.styles=bT;const Rv="fwc-circular-progress";let Zf=class extends da{};Zf=ar([Cc(Rv)],Zf);const Nv=Dd(la,bv);Dd(da,Rv);Dd(ua,Av);const AT=async t=>{t.logger.level=4,t.configureServiceDiscovery({client:{baseUri:"https://pro-s-portal-ci.azurewebsites.net",defaultScopes:["97978493-9777-4d48-b38a-67b0b9cd88d2/.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 Zm(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))})},Fd=()=>(console.warn("@deprecated","import { useFramework } from @equinor/fusion-framework"),_S()),RT=t=>{const e=Fd().modules.app,[r,n]=J.exports.useState(void 0),[o,i]=J.exports.useState(),[a,s]=J.exports.useState(!1);return J.exports.useEffect(()=>{s(!0);const c=e.getApp(t).subscribe({next:l=>n(l),error:l=>i(l),complete:()=>s(!1)});return()=>{s(!1),c.unsubscribe()}},[e,n,i,s,t]),{value:r,error:o,isLoading:a}},NT=t=>{const{appKey:e}=t,r=Fd().modules.app,[n,o]=J.exports.useState(),[i,a]=J.exports.useState(),[s,c]=J.exports.useState(!1);return J.exports.useEffect(()=>{o(void 0)},[o,e]),J.exports.useEffect(()=>{if(!e)return;c(!0);const l=r.getAppConfig(e).subscribe({next:u=>o(u),error:u=>a(u),complete:()=>c(!1)});return()=>{c(!1),l.unsubscribe()}},[r,o,a,c,e]),{value:n,error:i,isLoading:s}},PT=t=>{const{value:e,isLoading:r}=RT(t),{value:n,isLoading:o}=NT({appKey:t});return{manifest:e,config:n,isLoading:r||o}},OT=t=>{const{appKey:e}=t,r=Fd(),n=J.exports.useRef(null),o=J.exports.useRef(void 0),{config:i,manifest:a,isLoading:s}=PT(e),c=J.exports.useCallback(async(l,u)=>{const d=new URL("/index.tsx",self.location).href,{render:h}=await ep(()=>import(d),[]);if(n.current)return h(n.current,{fusion:r,env:{manifest:l,config:u}})},[n,r]);return J.exports.useEffect(()=>(!s&&a&&i&&c(a,i).then(l=>o.current=l),o.current),[c,s,a,i]),uv("div",{children:[s&&Ve(Nv,{text:"Loading Application"}),Ve("span",{ref:n,style:{display:s?"none":""}}),";"]})};gl.createRoot(document.getElementById("root")).render(Ve(Zs.StrictMode,{children:Ve(iT,{theme:Ne,children:Ve(ES,{configure:AT,fallback:Ve(Nv,{text:"Loading framework"}),children:uv("div",{children:[Ve("section",{children:Ve("header",{children:Ve("h1",{children:"Fusion Dev Portal"})})}),Ve(OT,{appKey:"test-app"})]})})})}));
363
+ `}}ar([Fo({type:String,reflect:!0})],da.prototype,"size",void 0);ar([Fo({type:String,reflect:!0})],da.prototype,"color",void 0);da.styles=CT;const Av="fwc-circular-progress";let Xf=class extends da{};Xf=ar([Cc(Av)],Xf);const Rv=Fd(la,kv);Fd(da,Av);Fd(ua,bv);const ST=async t=>{t.logger.level=4,t.configureServiceDiscovery({client:{baseUri:"https://pro-s-portal-ci.azurewebsites.net",defaultScopes:["97978493-9777-4d48-b38a-67b0b9cd88d2/.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 Xm(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))})},TT="modulepreload",IT=function(t){return"/"+t},Zf={},kT=function(e,r,n){if(!r||r.length===0)return e();const o=document.getElementsByTagName("link");return Promise.all(r.map(i=>{if(i=IT(i),i in Zf)return;Zf[i]=!0;const a=i.endsWith(".css"),s=a?'[rel="stylesheet"]':"";if(!!n)for(let u=o.length-1;u>=0;u--){const d=o[u];if(d.href===i&&(!a||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${i}"]${s}`))return;const l=document.createElement("link");if(l.rel=a?"stylesheet":TT,a||(l.as="script",l.crossOrigin=""),l.href=i,document.head.appendChild(l),a)return new Promise((u,d)=>{l.addEventListener("load",u),l.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${i}`)))})})).then(()=>e())},bT=t=>{const e=Ud().modules.app,[r,n]=J.exports.useState(void 0),[o,i]=J.exports.useState(),[a,s]=J.exports.useState(!1);return J.exports.useEffect(()=>{s(!0);const c=e.getApp(t).subscribe({next:l=>n(l),error:l=>i(l),complete:()=>s(!1)});return()=>{s(!1),c.unsubscribe()}},[e,n,i,s,t]),{value:r,error:o,isLoading:a}},AT=t=>{const{appKey:e}=t,r=Ud().modules.app,[n,o]=J.exports.useState(),[i,a]=J.exports.useState(),[s,c]=J.exports.useState(!1);return J.exports.useEffect(()=>{o(void 0)},[o,e]),J.exports.useEffect(()=>{if(!e)return;c(!0);const l=r.getAppConfig(e).subscribe({next:u=>o(u),error:u=>a(u),complete:()=>c(!1)});return()=>{c(!1),l.unsubscribe()}},[r,o,a,c,e]),{value:n,error:i,isLoading:s}},RT=t=>{const{value:e,isLoading:r}=bT(t),{value:n,isLoading:o}=AT({appKey:t});return{manifest:e,config:n,isLoading:r||o}},NT=t=>{const{appKey:e}=t,r=Ud(),n=J.exports.useRef(null),o=J.exports.useRef(void 0),{config:i,manifest:a,isLoading:s}=RT(e),c=J.exports.useCallback(async(l,u)=>{var v;const d=new URL("/index.tsx",self.location).href,h=await kT(()=>import(d),[]),p=(v=h.render)!=null?v:h.default;if(n.current)return p(n.current,{fusion:r,env:{manifest:l,config:u}})},[n,r]);return J.exports.useEffect(()=>(!s&&a&&i&&c(a,i).then(l=>o.current=l),o.current),[c,s,a,i]),lv("div",{children:[s&&Ve(Rv,{text:"Loading Application"}),Ve("span",{ref:n,style:{display:s?"none":""}})]})};gl.createRoot(document.getElementById("root")).render(Ve(Zs.StrictMode,{children:Ve(eT,{theme:Ne,children:Ve(gS,{configure:ST,fallback:Ve(Rv,{text:"Loading framework"}),children:lv("div",{children:[Ve("section",{children:Ve("header",{children:Ve("h1",{children:"Fusion Dev Portal"})})}),Ve(NT,{appKey:"test-app"})]})})})}));