mgwdev-m365-components 0.0.3 → 0.0.4
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.
- package/.env +2 -0
- package/.env.development +2 -0
- package/.eslintrc.cjs +18 -0
- package/build/assets/index-SHI6Sf4K.js +123 -0
- package/build/index.html +13 -0
- package/build/manifest.webmanifest +1 -0
- package/build/registerSW.js +1 -0
- package/build/sw.js +1 -0
- package/build/vite.svg +1 -0
- package/build/workbox-7cfec069.js +1 -0
- package/dist/App.d.ts +3 -0
- package/dist/components/Test.d.ts +4 -0
- package/dist/components/index.d.ts +0 -0
- package/dist/context/AuthenticationContext.d.ts +13 -0
- package/dist/context/GraphContext.d.ts +11 -0
- package/dist/context/SPContext.d.ts +13 -0
- package/dist/context/index.d.ts +3 -0
- package/dist/index.d.ts +1 -0
- package/dist/main.d.ts +1 -0
- package/dist/mwdev-m365-components.es.js +10570 -0
- package/dist/mwdev-m365-components.umd.js +57 -0
- package/dist/vite.svg +1 -0
- package/gulpfile.js +4 -0
- package/index.html +13 -0
- package/package.json +1 -13
- package/public/vite.svg +1 -0
- package/tsconfig.json +35 -0
- package/tsconfig.node.json +10 -0
- package/vite.config.ts +33 -0
- package/vitest.config.ts +11 -0
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
function Qh(t,e){for(var r=0;r<e.length;r++){const n=e[r];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in t)){const i=Object.getOwnPropertyDescriptor(n,o);i&&Object.defineProperty(t,o,i.get?i:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}))}(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))n(o);new MutationObserver(o=>{for(const i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&n(a)}).observe(document,{childList:!0,subtree:!0});function r(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function n(o){if(o.ep)return;o.ep=!0;const i=r(o);fetch(o.href,i)}})();function Yh(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var $h={exports:{}},Ts={},Xh={exports:{}},Z={};/**
|
|
2
|
+
* @license React
|
|
3
|
+
* react.production.min.js
|
|
4
|
+
*
|
|
5
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
6
|
+
*
|
|
7
|
+
* This source code is licensed under the MIT license found in the
|
|
8
|
+
* LICENSE file in the root directory of this source tree.
|
|
9
|
+
*/var Bi=Symbol.for("react.element"),Xm=Symbol.for("react.portal"),Jm=Symbol.for("react.fragment"),Zm=Symbol.for("react.strict_mode"),ey=Symbol.for("react.profiler"),ty=Symbol.for("react.provider"),ry=Symbol.for("react.context"),ny=Symbol.for("react.forward_ref"),oy=Symbol.for("react.suspense"),iy=Symbol.for("react.memo"),ay=Symbol.for("react.lazy"),Nd=Symbol.iterator;function sy(t){return t===null||typeof t!="object"?null:(t=Nd&&t[Nd]||t["@@iterator"],typeof t=="function"?t:null)}var Jh={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},Zh=Object.assign,ep={};function wo(t,e,r){this.props=t,this.context=e,this.refs=ep,this.updater=r||Jh}wo.prototype.isReactComponent={};wo.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")};wo.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")};function tp(){}tp.prototype=wo.prototype;function gu(t,e,r){this.props=t,this.context=e,this.refs=ep,this.updater=r||Jh}var vu=gu.prototype=new tp;vu.constructor=gu;Zh(vu,wo.prototype);vu.isPureReactComponent=!0;var Rd=Array.isArray,rp=Object.prototype.hasOwnProperty,mu={current:null},np={key:!0,ref:!0,__self:!0,__source:!0};function op(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)rp.call(e,n)&&!np.hasOwnProperty(n)&&(o[n]=e[n]);var s=arguments.length-2;if(s===1)o.children=r;else if(1<s){for(var l=Array(s),c=0;c<s;c++)l[c]=arguments[c+2];o.children=l}if(t&&t.defaultProps)for(n in s=t.defaultProps,s)o[n]===void 0&&(o[n]=s[n]);return{$$typeof:Bi,type:t,key:i,ref:a,props:o,_owner:mu.current}}function cy(t,e){return{$$typeof:Bi,type:t.type,key:e,ref:t.ref,props:t.props,_owner:t._owner}}function yu(t){return typeof t=="object"&&t!==null&&t.$$typeof===Bi}function ly(t){var e={"=":"=0",":":"=2"};return"$"+t.replace(/[=:]/g,function(r){return e[r]})}var Bd=/\/+/g;function rc(t,e){return typeof t=="object"&&t!==null&&t.key!=null?ly(""+t.key):e.toString(36)}function ma(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 Bi:case Xm:a=!0}}if(a)return a=t,o=o(a),t=n===""?"."+rc(a,0):n,Rd(o)?(r="",t!=null&&(r=t.replace(Bd,"$&/")+"/"),ma(o,e,r,"",function(c){return c})):o!=null&&(yu(o)&&(o=cy(o,r+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(Bd,"$&/")+"/")+t)),e.push(o)),1;if(a=0,n=n===""?".":n+":",Rd(t))for(var s=0;s<t.length;s++){i=t[s];var l=n+rc(i,s);a+=ma(i,e,r,l,o)}else if(l=sy(t),typeof l=="function")for(t=l.call(t),s=0;!(i=t.next()).done;)i=i.value,l=n+rc(i,s++),a+=ma(i,e,r,l,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 Vi(t,e,r){if(t==null)return t;var n=[],o=0;return ma(t,n,"","",function(i){return e.call(r,i,o++)}),n}function uy(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 ot={current:null},ya={transition:null},dy={ReactCurrentDispatcher:ot,ReactCurrentBatchConfig:ya,ReactCurrentOwner:mu};Z.Children={map:Vi,forEach:function(t,e,r){Vi(t,function(){e.apply(this,arguments)},r)},count:function(t){var e=0;return Vi(t,function(){e++}),e},toArray:function(t){return Vi(t,function(e){return e})||[]},only:function(t){if(!yu(t))throw Error("React.Children.only expected to receive a single React element child.");return t}};Z.Component=wo;Z.Fragment=Jm;Z.Profiler=ey;Z.PureComponent=gu;Z.StrictMode=Zm;Z.Suspense=oy;Z.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=dy;Z.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=Zh({},t.props),o=t.key,i=t.ref,a=t._owner;if(e!=null){if(e.ref!==void 0&&(i=e.ref,a=mu.current),e.key!==void 0&&(o=""+e.key),t.type&&t.type.defaultProps)var s=t.type.defaultProps;for(l in e)rp.call(e,l)&&!np.hasOwnProperty(l)&&(n[l]=e[l]===void 0&&s!==void 0?s[l]:e[l])}var l=arguments.length-2;if(l===1)n.children=r;else if(1<l){s=Array(l);for(var c=0;c<l;c++)s[c]=arguments[c+2];n.children=s}return{$$typeof:Bi,type:t.type,key:o,ref:i,props:n,_owner:a}};Z.createContext=function(t){return t={$$typeof:ry,_currentValue:t,_currentValue2:t,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},t.Provider={$$typeof:ty,_context:t},t.Consumer=t};Z.createElement=op;Z.createFactory=function(t){var e=op.bind(null,t);return e.type=t,e};Z.createRef=function(){return{current:null}};Z.forwardRef=function(t){return{$$typeof:ny,render:t}};Z.isValidElement=yu;Z.lazy=function(t){return{$$typeof:ay,_payload:{_status:-1,_result:t},_init:uy}};Z.memo=function(t,e){return{$$typeof:iy,type:t,compare:e===void 0?null:e}};Z.startTransition=function(t){var e=ya.transition;ya.transition={};try{t()}finally{ya.transition=e}};Z.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")};Z.useCallback=function(t,e){return ot.current.useCallback(t,e)};Z.useContext=function(t){return ot.current.useContext(t)};Z.useDebugValue=function(){};Z.useDeferredValue=function(t){return ot.current.useDeferredValue(t)};Z.useEffect=function(t,e){return ot.current.useEffect(t,e)};Z.useId=function(){return ot.current.useId()};Z.useImperativeHandle=function(t,e,r){return ot.current.useImperativeHandle(t,e,r)};Z.useInsertionEffect=function(t,e){return ot.current.useInsertionEffect(t,e)};Z.useLayoutEffect=function(t,e){return ot.current.useLayoutEffect(t,e)};Z.useMemo=function(t,e){return ot.current.useMemo(t,e)};Z.useReducer=function(t,e,r){return ot.current.useReducer(t,e,r)};Z.useRef=function(t){return ot.current.useRef(t)};Z.useState=function(t){return ot.current.useState(t)};Z.useSyncExternalStore=function(t,e,r){return ot.current.useSyncExternalStore(t,e,r)};Z.useTransition=function(){return ot.current.useTransition()};Z.version="18.2.0";Xh.exports=Z;var E=Xh.exports;const fy=Yh(E),Yc=Qh({__proto__:null,default:fy},[E]);/**
|
|
10
|
+
* @license React
|
|
11
|
+
* react-jsx-runtime.production.min.js
|
|
12
|
+
*
|
|
13
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
14
|
+
*
|
|
15
|
+
* This source code is licensed under the MIT license found in the
|
|
16
|
+
* LICENSE file in the root directory of this source tree.
|
|
17
|
+
*/var hy=E,py=Symbol.for("react.element"),gy=Symbol.for("react.fragment"),vy=Object.prototype.hasOwnProperty,my=hy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,yy={key:!0,ref:!0,__self:!0,__source:!0};function ip(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)vy.call(e,n)&&!yy.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:py,type:t,key:i,ref:a,props:o,_owner:my.current}}Ts.Fragment=gy;Ts.jsx=ip;Ts.jsxs=ip;$h.exports=Ts;var J=$h.exports;const wy=Yh(J),ky=Qh({__proto__:null,default:wy},[J]);var ap={exports:{}},Tt={},sp={exports:{}},cp={};/**
|
|
18
|
+
* @license React
|
|
19
|
+
* scheduler.production.min.js
|
|
20
|
+
*
|
|
21
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
22
|
+
*
|
|
23
|
+
* This source code is licensed under the MIT license found in the
|
|
24
|
+
* LICENSE file in the root directory of this source tree.
|
|
25
|
+
*/(function(t){function e(L,$){var X=L.length;L.push($);e:for(;0<X;){var be=X-1>>>1,Oe=L[be];if(0<o(Oe,$))L[be]=$,L[X]=Oe,X=be;else break e}}function r(L){return L.length===0?null:L[0]}function n(L){if(L.length===0)return null;var $=L[0],X=L.pop();if(X!==$){L[0]=X;e:for(var be=0,Oe=L.length,Gi=Oe>>>1;be<Gi;){var Zr=2*(be+1)-1,tc=L[Zr],en=Zr+1,Wi=L[en];if(0>o(tc,X))en<Oe&&0>o(Wi,tc)?(L[be]=Wi,L[en]=X,be=en):(L[be]=tc,L[Zr]=X,be=Zr);else if(en<Oe&&0>o(Wi,X))L[be]=Wi,L[en]=X,be=en;else break e}}return $}function o(L,$){var X=L.sortIndex-$.sortIndex;return X!==0?X:L.id-$.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 l=[],c=[],u=1,d=null,f=3,p=!1,h=!1,m=!1,C=typeof setTimeout=="function"?setTimeout:null,v=typeof clearTimeout=="function"?clearTimeout:null,g=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(L){for(var $=r(c);$!==null;){if($.callback===null)n(c);else if($.startTime<=L)n(c),$.sortIndex=$.expirationTime,e(l,$);else break;$=r(c)}}function k(L){if(m=!1,y(L),!h)if(r(l)!==null)h=!0,Zs(T);else{var $=r(c);$!==null&&ec(k,$.startTime-L)}}function T(L,$){h=!1,m&&(m=!1,v(R),R=-1),p=!0;var X=f;try{for(y($),d=r(l);d!==null&&(!(d.expirationTime>$)||L&&!Ge());){var be=d.callback;if(typeof be=="function"){d.callback=null,f=d.priorityLevel;var Oe=be(d.expirationTime<=$);$=t.unstable_now(),typeof Oe=="function"?d.callback=Oe:d===r(l)&&n(l),y($)}else n(l);d=r(l)}if(d!==null)var Gi=!0;else{var Zr=r(c);Zr!==null&&ec(k,Zr.startTime-$),Gi=!1}return Gi}finally{d=null,f=X,p=!1}}var _=!1,b=null,R=-1,ae=5,G=-1;function Ge(){return!(t.unstable_now()-G<ae)}function Tr(){if(b!==null){var L=t.unstable_now();G=L;var $=!0;try{$=b(!0,L)}finally{$?So():(_=!1,b=null)}}else _=!1}var So;if(typeof g=="function")So=function(){g(Tr)};else if(typeof MessageChannel<"u"){var Pd=new MessageChannel,$m=Pd.port2;Pd.port1.onmessage=Tr,So=function(){$m.postMessage(null)}}else So=function(){C(Tr,0)};function Zs(L){b=L,_||(_=!0,So())}function ec(L,$){R=C(function(){L(t.unstable_now())},$)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(L){L.callback=null},t.unstable_continueExecution=function(){h||p||(h=!0,Zs(T))},t.unstable_forceFrameRate=function(L){0>L||125<L?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):ae=0<L?Math.floor(1e3/L):5},t.unstable_getCurrentPriorityLevel=function(){return f},t.unstable_getFirstCallbackNode=function(){return r(l)},t.unstable_next=function(L){switch(f){case 1:case 2:case 3:var $=3;break;default:$=f}var X=f;f=$;try{return L()}finally{f=X}},t.unstable_pauseExecution=function(){},t.unstable_requestPaint=function(){},t.unstable_runWithPriority=function(L,$){switch(L){case 1:case 2:case 3:case 4:case 5:break;default:L=3}var X=f;f=L;try{return $()}finally{f=X}},t.unstable_scheduleCallback=function(L,$,X){var be=t.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?be+X:be):X=be,L){case 1:var Oe=-1;break;case 2:Oe=250;break;case 5:Oe=1073741823;break;case 4:Oe=1e4;break;default:Oe=5e3}return Oe=X+Oe,L={id:u++,callback:$,priorityLevel:L,startTime:X,expirationTime:Oe,sortIndex:-1},X>be?(L.sortIndex=X,e(c,L),r(l)===null&&L===r(c)&&(m?(v(R),R=-1):m=!0,ec(k,X-be))):(L.sortIndex=Oe,e(l,L),h||p||(h=!0,Zs(T))),L},t.unstable_shouldYield=Ge,t.unstable_wrapCallback=function(L){var $=f;return function(){var X=f;f=$;try{return L.apply(this,arguments)}finally{f=X}}}})(cp);sp.exports=cp;var Cy=sp.exports;/**
|
|
26
|
+
* @license React
|
|
27
|
+
* react-dom.production.min.js
|
|
28
|
+
*
|
|
29
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
30
|
+
*
|
|
31
|
+
* This source code is licensed under the MIT license found in the
|
|
32
|
+
* LICENSE file in the root directory of this source tree.
|
|
33
|
+
*/var lp=E,St=Cy;function x(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 up=new Set,ui={};function An(t,e){so(t,e),so(t+"Capture",e)}function so(t,e){for(ui[t]=e,t=0;t<e.length;t++)up.add(e[t])}var yr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),$c=Object.prototype.hasOwnProperty,_y=/^[: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]*$/,xd={},Md={};function by(t){return $c.call(Md,t)?!0:$c.call(xd,t)?!1:_y.test(t)?Md[t]=!0:(xd[t]=!0,!1)}function Sy(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"||Sy(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 it(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 je={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(t){je[t]=new it(t,0,!1,t,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(t){var e=t[0];je[e]=new it(e,1,!1,t[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(t){je[t]=new it(t,2,!1,t.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(t){je[t]=new it(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){je[t]=new it(t,3,!1,t.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(t){je[t]=new it(t,3,!0,t,null,!1,!1)});["capture","download"].forEach(function(t){je[t]=new it(t,4,!1,t,null,!1,!1)});["cols","rows","size","span"].forEach(function(t){je[t]=new it(t,6,!1,t,null,!1,!1)});["rowSpan","start"].forEach(function(t){je[t]=new it(t,5,!1,t.toLowerCase(),null,!1,!1)});var wu=/[\-:]([a-z])/g;function ku(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(wu,ku);je[e]=new it(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(wu,ku);je[e]=new it(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(wu,ku);je[e]=new it(e,1,!1,t,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(t){je[t]=new it(t,1,!1,t.toLowerCase(),null,!1,!1)});je.xlinkHref=new it("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(t){je[t]=new it(t,1,!1,t.toLowerCase(),null,!0,!0)});function Cu(t,e,r,n){var o=je.hasOwnProperty(e)?je[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?by(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 br=lp.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Qi=Symbol.for("react.element"),xn=Symbol.for("react.portal"),Mn=Symbol.for("react.fragment"),_u=Symbol.for("react.strict_mode"),Xc=Symbol.for("react.profiler"),dp=Symbol.for("react.provider"),fp=Symbol.for("react.context"),bu=Symbol.for("react.forward_ref"),Jc=Symbol.for("react.suspense"),Zc=Symbol.for("react.suspense_list"),Su=Symbol.for("react.memo"),Nr=Symbol.for("react.lazy"),hp=Symbol.for("react.offscreen"),Od=Symbol.iterator;function Eo(t){return t===null||typeof t!="object"?null:(t=Od&&t[Od]||t["@@iterator"],typeof t=="function"?t:null)}var we=Object.assign,nc;function zo(t){if(nc===void 0)try{throw Error()}catch(r){var e=r.stack.trim().match(/\n( *(at )?)/);nc=e&&e[1]||""}return`
|
|
34
|
+
`+nc+t}var oc=!1;function ic(t,e){if(!t||oc)return"";oc=!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(c){var n=c}Reflect.construct(t,[],e)}else{try{e.call()}catch(c){n=c}t.call(e.prototype)}else{try{throw Error()}catch(c){n=c}t()}}catch(c){if(c&&n&&typeof c.stack=="string"){for(var o=c.stack.split(`
|
|
35
|
+
`),i=n.stack.split(`
|
|
36
|
+
`),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 l=`
|
|
37
|
+
`+o[a].replace(" at new "," at ");return t.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",t.displayName)),l}while(1<=a&&0<=s);break}}}finally{oc=!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=ic(t.type,!1),t;case 11:return t=ic(t.type.render,!1),t;case 1:return t=ic(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 Mn:return"Fragment";case xn:return"Portal";case Xc:return"Profiler";case _u:return"StrictMode";case Jc:return"Suspense";case Zc:return"SuspenseList"}if(typeof t=="object")switch(t.$$typeof){case fp:return(t.displayName||"Context")+".Consumer";case dp:return(t._context.displayName||"Context")+".Provider";case bu:var e=t.render;return t=t.displayName,t||(t=e.displayName||e.name||"",t=t!==""?"ForwardRef("+t+")":"ForwardRef"),t;case Su:return e=t.displayName||null,e!==null?e:el(t.type)||"Memo";case Nr:e=t._payload,t=t._init;try{return el(t(e))}catch{}}return null}function Iy(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===_u?"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 Qr(t){switch(typeof t){case"boolean":case"number":case"string":case"undefined":return t;case"object":return t;default:return""}}function pp(t){var e=t.type;return(t=t.nodeName)&&t.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function Ay(t){var e=pp(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 Yi(t){t._valueTracker||(t._valueTracker=Ay(t))}function gp(t){if(!t)return!1;var e=t._valueTracker;if(!e)return!0;var r=e.getValue(),n="";return t&&(n=pp(t)?t.checked?"true":"false":t.value),t=n,t!==r?(e.setValue(t),!0):!1}function Da(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 tl(t,e){var r=e.checked;return we({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:r??t._wrapperState.initialChecked})}function Fd(t,e){var r=e.defaultValue==null?"":e.defaultValue,n=e.checked!=null?e.checked:e.defaultChecked;r=Qr(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&&Cu(t,"checked",e,!1)}function rl(t,e){vp(t,e);var r=Qr(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")?nl(t,e.type,r):e.hasOwnProperty("defaultValue")&&nl(t,e.type,Qr(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(t.defaultChecked=!!e.defaultChecked)}function Dd(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 nl(t,e,r){(e!=="number"||Da(t.ownerDocument)!==t)&&(r==null?t.defaultValue=""+t._wrapperState.initialValue:t.defaultValue!==""+r&&(t.defaultValue=""+r))}var Lo=Array.isArray;function eo(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=""+Qr(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 ol(t,e){if(e.dangerouslySetInnerHTML!=null)throw Error(x(91));return we({},e,{value:void 0,defaultValue:void 0,children:""+t._wrapperState.initialValue})}function zd(t,e){var r=e.value;if(r==null){if(r=e.children,e=e.defaultValue,r!=null){if(e!=null)throw Error(x(92));if(Lo(r)){if(1<r.length)throw Error(x(93));r=r[0]}e=r}e==null&&(e=""),r=e}t._wrapperState={initialValue:Qr(r)}}function mp(t,e){var r=Qr(e.value),n=Qr(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 Ld(t){var e=t.textContent;e===t._wrapperState.initialValue&&e!==""&&e!==null&&(t.value=e)}function yp(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"?yp(e):t==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":t}var $i,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($i=$i||document.createElement("div"),$i.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=$i.firstChild;t.firstChild;)t.removeChild(t.firstChild);for(;e.firstChild;)t.appendChild(e.firstChild)}});function di(t,e){if(e){var r=t.firstChild;if(r&&r===t.lastChild&&r.nodeType===3){r.nodeValue=e;return}}t.textContent=e}var Wo={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},Py=["Webkit","ms","Moz","O"];Object.keys(Wo).forEach(function(t){Py.forEach(function(e){e=e+t.charAt(0).toUpperCase()+t.substring(1),Wo[e]=Wo[t]})});function kp(t,e,r){return e==null||typeof e=="boolean"||e===""?"":r||typeof e!="number"||e===0||Wo.hasOwnProperty(t)&&Wo[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=kp(r,e[r],n);r==="float"&&(r="cssFloat"),n?t.setProperty(r,o):t[r]=o}}var Ny=we({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 al(t,e){if(e){if(Ny[t]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(x(137,t));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(x(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(x(61))}if(e.style!=null&&typeof e.style!="object")throw Error(x(62))}}function sl(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 cl=null;function Eu(t){return t=t.target||t.srcElement||window,t.correspondingUseElement&&(t=t.correspondingUseElement),t.nodeType===3?t.parentNode:t}var ll=null,to=null,ro=null;function Hd(t){if(t=Oi(t)){if(typeof ll!="function")throw Error(x(280));var e=t.stateNode;e&&(e=Rs(e),ll(t.stateNode,t.type,e))}}function _p(t){to?ro?ro.push(t):ro=[t]:to=t}function bp(){if(to){var t=to,e=ro;if(ro=to=null,Hd(t),e)for(t=0;t<e.length;t++)Hd(e[t])}}function Sp(t,e){return t(e)}function Ep(){}var ac=!1;function Tp(t,e,r){if(ac)return t(e,r);ac=!0;try{return Sp(t,e,r)}finally{ac=!1,(to!==null||ro!==null)&&(Ep(),bp())}}function fi(t,e){var r=t.stateNode;if(r===null)return null;var n=Rs(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(x(231,e,typeof r));return r}var ul=!1;if(yr)try{var To={};Object.defineProperty(To,"passive",{get:function(){ul=!0}}),window.addEventListener("test",To,To),window.removeEventListener("test",To,To)}catch{ul=!1}function Ry(t,e,r,n,o,i,a,s,l){var c=Array.prototype.slice.call(arguments,3);try{e.apply(r,c)}catch(u){this.onError(u)}}var Vo=!1,za=null,La=!1,dl=null,By={onError:function(t){Vo=!0,za=t}};function xy(t,e,r,n,o,i,a,s,l){Vo=!1,za=null,Ry.apply(By,arguments)}function My(t,e,r,n,o,i,a,s,l){if(xy.apply(this,arguments),Vo){if(Vo){var c=za;Vo=!1,za=null}else throw Error(x(198));La||(La=!0,dl=c)}}function Pn(t){var e=t,r=t;if(t.alternate)for(;e.return;)e=e.return;else{t=e;do e=t,e.flags&4098&&(r=e.return),t=e.return;while(t)}return e.tag===3?r:null}function Ip(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 Ud(t){if(Pn(t)!==t)throw Error(x(188))}function Oy(t){var e=t.alternate;if(!e){if(e=Pn(t),e===null)throw Error(x(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 Ud(o),t;if(i===n)return Ud(o),e;i=i.sibling}throw Error(x(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(x(189))}}if(r.alternate!==n)throw Error(x(190))}if(r.tag!==3)throw Error(x(188));return r.stateNode.current===r?t:e}function Ap(t){return t=Oy(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 Np=St.unstable_scheduleCallback,qd=St.unstable_cancelCallback,Fy=St.unstable_shouldYield,Dy=St.unstable_requestPaint,Se=St.unstable_now,zy=St.unstable_getCurrentPriorityLevel,Tu=St.unstable_ImmediatePriority,Rp=St.unstable_UserBlockingPriority,Ha=St.unstable_NormalPriority,Ly=St.unstable_LowPriority,Bp=St.unstable_IdlePriority,Is=null,rr=null;function Hy(t){if(rr&&typeof rr.onCommitFiberRoot=="function")try{rr.onCommitFiberRoot(Is,t,void 0,(t.current.flags&128)===128)}catch{}}var Gt=Math.clz32?Math.clz32:jy,Uy=Math.log,qy=Math.LN2;function jy(t){return t>>>=0,t===0?32:31-(Uy(t)/qy|0)|0}var Xi=64,Ji=4194304;function Ho(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 Ua(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=Ho(s):(i&=a,i!==0&&(n=Ho(i)))}else a=r&~o,a!==0?n=Ho(a):i!==0&&(n=Ho(i));if(n===0)return 0;if(e!==0&&e!==n&&!(e&o)&&(o=n&-n,i=e&-e,o>=i||o===16&&(i&4194240)!==0))return e;if(n&4&&(n|=r&16),e=t.entangledLanes,e!==0)for(t=t.entanglements,e&=n;0<e;)r=31-Gt(e),o=1<<r,n|=t[r],e&=~o;return n}function Ky(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 Gy(t,e){for(var r=t.suspendedLanes,n=t.pingedLanes,o=t.expirationTimes,i=t.pendingLanes;0<i;){var a=31-Gt(i),s=1<<a,l=o[a];l===-1?(!(s&r)||s&n)&&(o[a]=Ky(s,e)):l<=e&&(t.expiredLanes|=s),i&=~s}}function fl(t){return t=t.pendingLanes&-1073741825,t!==0?t:t&1073741824?1073741824:0}function xp(){var t=Xi;return Xi<<=1,!(Xi&4194240)&&(Xi=64),t}function sc(t){for(var e=[],r=0;31>r;r++)e.push(t);return e}function xi(t,e,r){t.pendingLanes|=e,e!==536870912&&(t.suspendedLanes=0,t.pingedLanes=0),t=t.eventTimes,e=31-Gt(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-Gt(r),i=1<<o;e[o]=0,n[o]=-1,t[o]=-1,r&=~i}}function Iu(t,e){var r=t.entangledLanes|=e;for(t=t.entanglements;r;){var n=31-Gt(r),o=1<<n;o&e|t[n]&e&&(t[n]|=e),r&=~o}}var ie=0;function Mp(t){return t&=-t,1<t?4<t?t&268435455?16:536870912:4:1}var Op,Au,Fp,Dp,zp,hl=!1,Zi=[],Hr=null,Ur=null,qr=null,hi=new Map,pi=new Map,Or=[],Vy="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 jd(t,e){switch(t){case"focusin":case"focusout":Hr=null;break;case"dragenter":case"dragleave":Ur=null;break;case"mouseover":case"mouseout":qr=null;break;case"pointerover":case"pointerout":hi.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":pi.delete(e.pointerId)}}function Io(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=Oi(e),e!==null&&Au(e)),t):(t.eventSystemFlags|=n,e=t.targetContainers,o!==null&&e.indexOf(o)===-1&&e.push(o),t)}function Qy(t,e,r,n,o){switch(e){case"focusin":return Hr=Io(Hr,t,e,r,n,o),!0;case"dragenter":return Ur=Io(Ur,t,e,r,n,o),!0;case"mouseover":return qr=Io(qr,t,e,r,n,o),!0;case"pointerover":var i=o.pointerId;return hi.set(i,Io(hi.get(i)||null,t,e,r,n,o)),!0;case"gotpointercapture":return i=o.pointerId,pi.set(i,Io(pi.get(i)||null,t,e,r,n,o)),!0}return!1}function Lp(t){var e=ln(t.target);if(e!==null){var r=Pn(e);if(r!==null){if(e=r.tag,e===13){if(e=Ip(r),e!==null){t.blockedOn=e,zp(t.priority,function(){Fp(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 wa(t){if(t.blockedOn!==null)return!1;for(var e=t.targetContainers;0<e.length;){var r=pl(t.domEventName,t.eventSystemFlags,e[0],t.nativeEvent);if(r===null){r=t.nativeEvent;var n=new r.constructor(r.type,r);cl=n,r.target.dispatchEvent(n),cl=null}else return e=Oi(r),e!==null&&Au(e),t.blockedOn=r,!1;e.shift()}return!0}function Kd(t,e,r){wa(t)&&r.delete(e)}function Yy(){hl=!1,Hr!==null&&wa(Hr)&&(Hr=null),Ur!==null&&wa(Ur)&&(Ur=null),qr!==null&&wa(qr)&&(qr=null),hi.forEach(Kd),pi.forEach(Kd)}function Ao(t,e){t.blockedOn===e&&(t.blockedOn=null,hl||(hl=!0,St.unstable_scheduleCallback(St.unstable_NormalPriority,Yy)))}function gi(t){function e(o){return Ao(o,t)}if(0<Zi.length){Ao(Zi[0],t);for(var r=1;r<Zi.length;r++){var n=Zi[r];n.blockedOn===t&&(n.blockedOn=null)}}for(Hr!==null&&Ao(Hr,t),Ur!==null&&Ao(Ur,t),qr!==null&&Ao(qr,t),hi.forEach(e),pi.forEach(e),r=0;r<Or.length;r++)n=Or[r],n.blockedOn===t&&(n.blockedOn=null);for(;0<Or.length&&(r=Or[0],r.blockedOn===null);)Lp(r),r.blockedOn===null&&Or.shift()}var no=br.ReactCurrentBatchConfig,qa=!0;function $y(t,e,r,n){var o=ie,i=no.transition;no.transition=null;try{ie=1,Pu(t,e,r,n)}finally{ie=o,no.transition=i}}function Xy(t,e,r,n){var o=ie,i=no.transition;no.transition=null;try{ie=4,Pu(t,e,r,n)}finally{ie=o,no.transition=i}}function Pu(t,e,r,n){if(qa){var o=pl(t,e,r,n);if(o===null)mc(t,e,n,ja,r),jd(t,n);else if(Qy(o,t,e,r,n))n.stopPropagation();else if(jd(t,n),e&4&&-1<Vy.indexOf(t)){for(;o!==null;){var i=Oi(o);if(i!==null&&Op(i),i=pl(t,e,r,n),i===null&&mc(t,e,n,ja,r),i===o)break;o=i}o!==null&&n.stopPropagation()}else mc(t,e,n,null,r)}}var ja=null;function pl(t,e,r,n){if(ja=null,t=Eu(n),t=ln(t),t!==null)if(e=Pn(t),e===null)t=null;else if(r=e.tag,r===13){if(t=Ip(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 ja=t,null}function Hp(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(zy()){case Tu:return 1;case Rp:return 4;case Ha:case Ly:return 16;case Bp:return 536870912;default:return 16}default:return 16}}var zr=null,Nu=null,ka=null;function Up(){if(ka)return ka;var t,e=Nu,r=e.length,n,o="value"in zr?zr.value:zr.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 ka=o.slice(t,1<n?1-n:void 0)}function Ca(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 ea(){return!0}function Gd(){return!1}function It(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)?ea:Gd,this.isPropagationStopped=Gd,this}return we(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=ea)},stopPropagation:function(){var r=this.nativeEvent;r&&(r.stopPropagation?r.stopPropagation():typeof r.cancelBubble!="unknown"&&(r.cancelBubble=!0),this.isPropagationStopped=ea)},persist:function(){},isPersistent:ea}),e}var ko={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(t){return t.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ru=It(ko),Mi=we({},ko,{view:0,detail:0}),Jy=It(Mi),cc,lc,Po,As=we({},Mi,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Bu,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!==Po&&(Po&&t.type==="mousemove"?(cc=t.screenX-Po.screenX,lc=t.screenY-Po.screenY):lc=cc=0,Po=t),cc)},movementY:function(t){return"movementY"in t?t.movementY:lc}}),Wd=It(As),Zy=we({},As,{dataTransfer:0}),e0=It(Zy),t0=we({},Mi,{relatedTarget:0}),uc=It(t0),r0=we({},ko,{animationName:0,elapsedTime:0,pseudoElement:0}),n0=It(r0),o0=we({},ko,{clipboardData:function(t){return"clipboardData"in t?t.clipboardData:window.clipboardData}}),i0=It(o0),a0=we({},ko,{data:0}),Vd=It(a0),s0={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},c0={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"},l0={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function u0(t){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(t):(t=l0[t])?!!e[t]:!1}function Bu(){return u0}var d0=we({},Mi,{key:function(t){if(t.key){var e=s0[t.key]||t.key;if(e!=="Unidentified")return e}return t.type==="keypress"?(t=Ca(t),t===13?"Enter":String.fromCharCode(t)):t.type==="keydown"||t.type==="keyup"?c0[t.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Bu,charCode:function(t){return t.type==="keypress"?Ca(t):0},keyCode:function(t){return t.type==="keydown"||t.type==="keyup"?t.keyCode:0},which:function(t){return t.type==="keypress"?Ca(t):t.type==="keydown"||t.type==="keyup"?t.keyCode:0}}),f0=It(d0),h0=we({},As,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),Qd=It(h0),p0=we({},Mi,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Bu}),g0=It(p0),v0=we({},ko,{propertyName:0,elapsedTime:0,pseudoElement:0}),m0=It(v0),y0=we({},As,{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}),w0=It(y0),k0=[9,13,27,32],xu=yr&&"CompositionEvent"in window,Qo=null;yr&&"documentMode"in document&&(Qo=document.documentMode);var C0=yr&&"TextEvent"in window&&!Qo,qp=yr&&(!xu||Qo&&8<Qo&&11>=Qo),Yd=" ",$d=!1;function jp(t,e){switch(t){case"keyup":return k0.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 On=!1;function _0(t,e){switch(t){case"compositionend":return Kp(e);case"keypress":return e.which!==32?null:($d=!0,Yd);case"textInput":return t=e.data,t===Yd&&$d?null:t;default:return null}}function b0(t,e){if(On)return t==="compositionend"||!xu&&jp(t,e)?(t=Up(),ka=Nu=zr=null,On=!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 S0={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 Xd(t){var e=t&&t.nodeName&&t.nodeName.toLowerCase();return e==="input"?!!S0[t.type]:e==="textarea"}function Gp(t,e,r,n){_p(n),e=Ka(e,"onChange"),0<e.length&&(r=new Ru("onChange","change",null,r,n),t.push({event:r,listeners:e}))}var Yo=null,vi=null;function E0(t){rg(t,0)}function Ps(t){var e=zn(t);if(gp(e))return t}function T0(t,e){if(t==="change")return e}var Wp=!1;if(yr){var dc;if(yr){var fc="oninput"in document;if(!fc){var Jd=document.createElement("div");Jd.setAttribute("oninput","return;"),fc=typeof Jd.oninput=="function"}dc=fc}else dc=!1;Wp=dc&&(!document.documentMode||9<document.documentMode)}function Zd(){Yo&&(Yo.detachEvent("onpropertychange",Vp),vi=Yo=null)}function Vp(t){if(t.propertyName==="value"&&Ps(vi)){var e=[];Gp(e,vi,t,Eu(t)),Tp(E0,e)}}function I0(t,e,r){t==="focusin"?(Zd(),Yo=e,vi=r,Yo.attachEvent("onpropertychange",Vp)):t==="focusout"&&Zd()}function A0(t){if(t==="selectionchange"||t==="keyup"||t==="keydown")return Ps(vi)}function P0(t,e){if(t==="click")return Ps(e)}function N0(t,e){if(t==="input"||t==="change")return Ps(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 mi(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(!$c.call(e,o)||!Vt(t[o],e[o]))return!1}return!0}function ef(t){for(;t&&t.firstChild;)t=t.firstChild;return t}function tf(t,e){var r=ef(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=ef(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 Yp(){for(var t=window,e=Da();e instanceof t.HTMLIFrameElement;){try{var r=typeof e.contentWindow.location.href=="string"}catch{r=!1}if(r)t=e.contentWindow;else break;e=Da(t.document)}return e}function Mu(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 B0(t){var e=Yp(),r=t.focusedElem,n=t.selectionRange;if(e!==r&&r&&r.ownerDocument&&Qp(r.ownerDocument.documentElement,r)){if(n!==null&&Mu(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=tf(r,i);var a=tf(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 x0=yr&&"documentMode"in document&&11>=document.documentMode,Fn=null,gl=null,$o=null,vl=!1;function rf(t,e,r){var n=r.window===r?r.document:r.nodeType===9?r:r.ownerDocument;vl||Fn==null||Fn!==Da(n)||(n=Fn,"selectionStart"in n&&Mu(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}),$o&&mi($o,n)||($o=n,n=Ka(gl,"onSelect"),0<n.length&&(e=new Ru("onSelect","select",null,e,r),t.push({event:e,listeners:n}),e.target=Fn)))}function ta(t,e){var r={};return r[t.toLowerCase()]=e.toLowerCase(),r["Webkit"+t]="webkit"+e,r["Moz"+t]="moz"+e,r}var Dn={animationend:ta("Animation","AnimationEnd"),animationiteration:ta("Animation","AnimationIteration"),animationstart:ta("Animation","AnimationStart"),transitionend:ta("Transition","TransitionEnd")},hc={},$p={};yr&&($p=document.createElement("div").style,"AnimationEvent"in window||(delete Dn.animationend.animation,delete Dn.animationiteration.animation,delete Dn.animationstart.animation),"TransitionEvent"in window||delete Dn.transitionend.transition);function Ns(t){if(hc[t])return hc[t];if(!Dn[t])return t;var e=Dn[t],r;for(r in e)if(e.hasOwnProperty(r)&&r in $p)return hc[t]=e[r];return t}var Xp=Ns("animationend"),Jp=Ns("animationiteration"),Zp=Ns("animationstart"),eg=Ns("transitionend"),tg=new Map,nf="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 $r(t,e){tg.set(t,e),An(e,[t])}for(var pc=0;pc<nf.length;pc++){var gc=nf[pc],M0=gc.toLowerCase(),O0=gc[0].toUpperCase()+gc.slice(1);$r(M0,"on"+O0)}$r(Xp,"onAnimationEnd");$r(Jp,"onAnimationIteration");$r(Zp,"onAnimationStart");$r("dblclick","onDoubleClick");$r("focusin","onFocus");$r("focusout","onBlur");$r(eg,"onTransitionEnd");so("onMouseEnter",["mouseout","mouseover"]);so("onMouseLeave",["mouseout","mouseover"]);so("onPointerEnter",["pointerout","pointerover"]);so("onPointerLeave",["pointerout","pointerover"]);An("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));An("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));An("onBeforeInput",["compositionend","keypress","textInput","paste"]);An("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));An("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));An("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Uo="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(" "),F0=new Set("cancel close invalid load scroll toggle".split(" ").concat(Uo));function of(t,e,r){var n=t.type||"unknown-event";t.currentTarget=r,My(n,e,void 0,t),t.currentTarget=null}function rg(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],l=s.instance,c=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;of(o,s,c),i=l}else for(a=0;a<n.length;a++){if(s=n[a],l=s.instance,c=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;of(o,s,c),i=l}}}if(La)throw t=dl,La=!1,dl=null,t}function he(t,e){var r=e[Cl];r===void 0&&(r=e[Cl]=new Set);var n=t+"__bubble";r.has(n)||(ng(e,t,2,!1),r.add(n))}function vc(t,e,r){var n=0;e&&(n|=4),ng(r,t,n,e)}var ra="_reactListening"+Math.random().toString(36).slice(2);function yi(t){if(!t[ra]){t[ra]=!0,up.forEach(function(r){r!=="selectionchange"&&(F0.has(r)||vc(r,!1,t),vc(r,!0,t))});var e=t.nodeType===9?t:t.ownerDocument;e===null||e[ra]||(e[ra]=!0,vc("selectionchange",!1,e))}}function ng(t,e,r,n){switch(Hp(e)){case 1:var o=$y;break;case 4:o=Xy;break;default:o=Pu}r=o.bind(null,e,r,t),o=void 0,!ul||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 mc(t,e,r,n,o){var i=n;if(!(e&1)&&!(e&2)&&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 l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;a=a.return}for(;s!==null;){if(a=ln(s),a===null)return;if(l=a.tag,l===5||l===6){n=i=a;continue e}s=s.parentNode}}n=n.return}Tp(function(){var c=i,u=Eu(r),d=[];e:{var f=tg.get(t);if(f!==void 0){var p=Ru,h=t;switch(t){case"keypress":if(Ca(r)===0)break e;case"keydown":case"keyup":p=f0;break;case"focusin":h="focus",p=uc;break;case"focusout":h="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=Wd;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=e0;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=g0;break;case Xp:case Jp:case Zp:p=n0;break;case eg:p=m0;break;case"scroll":p=Jy;break;case"wheel":p=w0;break;case"copy":case"cut":case"paste":p=i0;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=Qd}var m=(e&4)!==0,C=!m&&t==="scroll",v=m?f!==null?f+"Capture":null:f;m=[];for(var g=c,y;g!==null;){y=g;var k=y.stateNode;if(y.tag===5&&k!==null&&(y=k,v!==null&&(k=fi(g,v),k!=null&&m.push(wi(g,k,y)))),C)break;g=g.return}0<m.length&&(f=new p(f,h,null,r,u),d.push({event:f,listeners:m}))}}if(!(e&7)){e:{if(f=t==="mouseover"||t==="pointerover",p=t==="mouseout"||t==="pointerout",f&&r!==cl&&(h=r.relatedTarget||r.fromElement)&&(ln(h)||h[wr]))break e;if((p||f)&&(f=u.window===u?u:(f=u.ownerDocument)?f.defaultView||f.parentWindow:window,p?(h=r.relatedTarget||r.toElement,p=c,h=h?ln(h):null,h!==null&&(C=Pn(h),h!==C||h.tag!==5&&h.tag!==6)&&(h=null)):(p=null,h=c),p!==h)){if(m=Wd,k="onMouseLeave",v="onMouseEnter",g="mouse",(t==="pointerout"||t==="pointerover")&&(m=Qd,k="onPointerLeave",v="onPointerEnter",g="pointer"),C=p==null?f:zn(p),y=h==null?f:zn(h),f=new m(k,g+"leave",p,r,u),f.target=C,f.relatedTarget=y,k=null,ln(u)===c&&(m=new m(v,g+"enter",h,r,u),m.target=y,m.relatedTarget=C,k=m),C=k,p&&h)t:{for(m=p,v=h,g=0,y=m;y;y=Rn(y))g++;for(y=0,k=v;k;k=Rn(k))y++;for(;0<g-y;)m=Rn(m),g--;for(;0<y-g;)v=Rn(v),y--;for(;g--;){if(m===v||v!==null&&m===v.alternate)break t;m=Rn(m),v=Rn(v)}m=null}else m=null;p!==null&&af(d,f,p,m,!1),h!==null&&C!==null&&af(d,C,h,m,!0)}}e:{if(f=c?zn(c):window,p=f.nodeName&&f.nodeName.toLowerCase(),p==="select"||p==="input"&&f.type==="file")var T=T0;else if(Xd(f))if(Wp)T=N0;else{T=A0;var _=I0}else(p=f.nodeName)&&p.toLowerCase()==="input"&&(f.type==="checkbox"||f.type==="radio")&&(T=P0);if(T&&(T=T(t,c))){Gp(d,T,r,u);break e}_&&_(t,f,c),t==="focusout"&&(_=f._wrapperState)&&_.controlled&&f.type==="number"&&nl(f,"number",f.value)}switch(_=c?zn(c):window,t){case"focusin":(Xd(_)||_.contentEditable==="true")&&(Fn=_,gl=c,$o=null);break;case"focusout":$o=gl=Fn=null;break;case"mousedown":vl=!0;break;case"contextmenu":case"mouseup":case"dragend":vl=!1,rf(d,r,u);break;case"selectionchange":if(x0)break;case"keydown":case"keyup":rf(d,r,u)}var b;if(xu)e:{switch(t){case"compositionstart":var R="onCompositionStart";break e;case"compositionend":R="onCompositionEnd";break e;case"compositionupdate":R="onCompositionUpdate";break e}R=void 0}else On?jp(t,r)&&(R="onCompositionEnd"):t==="keydown"&&r.keyCode===229&&(R="onCompositionStart");R&&(qp&&r.locale!=="ko"&&(On||R!=="onCompositionStart"?R==="onCompositionEnd"&&On&&(b=Up()):(zr=u,Nu="value"in zr?zr.value:zr.textContent,On=!0)),_=Ka(c,R),0<_.length&&(R=new Vd(R,t,null,r,u),d.push({event:R,listeners:_}),b?R.data=b:(b=Kp(r),b!==null&&(R.data=b)))),(b=C0?_0(t,r):b0(t,r))&&(c=Ka(c,"onBeforeInput"),0<c.length&&(u=new Vd("onBeforeInput","beforeinput",null,r,u),d.push({event:u,listeners:c}),u.data=b))}rg(d,e)})}function wi(t,e,r){return{instance:t,listener:e,currentTarget:r}}function Ka(t,e){for(var r=e+"Capture",n=[];t!==null;){var o=t,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=fi(t,r),i!=null&&n.unshift(wi(t,i,o)),i=fi(t,e),i!=null&&n.push(wi(t,i,o))),t=t.return}return n}function Rn(t){if(t===null)return null;do t=t.return;while(t&&t.tag!==5);return t||null}function af(t,e,r,n,o){for(var i=e._reactName,a=[];r!==null&&r!==n;){var s=r,l=s.alternate,c=s.stateNode;if(l!==null&&l===n)break;s.tag===5&&c!==null&&(s=c,o?(l=fi(r,i),l!=null&&a.unshift(wi(r,l,s))):o||(l=fi(r,i),l!=null&&a.push(wi(r,l,s)))),r=r.return}a.length!==0&&t.push({event:e,listeners:a})}var D0=/\r\n?/g,z0=/\u0000|\uFFFD/g;function sf(t){return(typeof t=="string"?t:""+t).replace(D0,`
|
|
38
|
+
`).replace(z0,"")}function na(t,e,r){if(e=sf(e),sf(t)!==e&&r)throw Error(x(425))}function Ga(){}var ml=null,yl=null;function wl(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 kl=typeof setTimeout=="function"?setTimeout:void 0,L0=typeof clearTimeout=="function"?clearTimeout:void 0,cf=typeof Promise=="function"?Promise:void 0,H0=typeof queueMicrotask=="function"?queueMicrotask:typeof cf<"u"?function(t){return cf.resolve(null).then(t).catch(U0)}:kl;function U0(t){setTimeout(function(){throw t})}function yc(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),gi(e);return}n--}else r!=="$"&&r!=="$?"&&r!=="$!"||n++;r=o}while(r);gi(e)}function jr(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 lf(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 Co=Math.random().toString(36).slice(2),er="__reactFiber$"+Co,ki="__reactProps$"+Co,wr="__reactContainer$"+Co,Cl="__reactEvents$"+Co,q0="__reactListeners$"+Co,j0="__reactHandles$"+Co;function ln(t){var e=t[er];if(e)return e;for(var r=t.parentNode;r;){if(e=r[wr]||r[er]){if(r=e.alternate,e.child!==null||r!==null&&r.child!==null)for(t=lf(t);t!==null;){if(r=t[er])return r;t=lf(t)}return e}t=r,r=t.parentNode}return null}function Oi(t){return t=t[er]||t[wr],!t||t.tag!==5&&t.tag!==6&&t.tag!==13&&t.tag!==3?null:t}function zn(t){if(t.tag===5||t.tag===6)return t.stateNode;throw Error(x(33))}function Rs(t){return t[ki]||null}var _l=[],Ln=-1;function Xr(t){return{current:t}}function pe(t){0>Ln||(t.current=_l[Ln],_l[Ln]=null,Ln--)}function de(t,e){Ln++,_l[Ln]=t.current,t.current=e}var Yr={},Je=Xr(Yr),ht=Xr(!1),Cn=Yr;function co(t,e){var r=t.type.contextTypes;if(!r)return Yr;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 pt(t){return t=t.childContextTypes,t!=null}function Wa(){pe(ht),pe(Je)}function uf(t,e,r){if(Je.current!==Yr)throw Error(x(168));de(Je,e),de(ht,r)}function og(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(x(108,Iy(t)||"Unknown",o));return we({},r,n)}function Va(t){return t=(t=t.stateNode)&&t.__reactInternalMemoizedMergedChildContext||Yr,Cn=Je.current,de(Je,t),de(ht,ht.current),!0}function df(t,e,r){var n=t.stateNode;if(!n)throw Error(x(169));r?(t=og(t,e,Cn),n.__reactInternalMemoizedMergedChildContext=t,pe(ht),pe(Je),de(Je,t)):pe(ht),de(ht,r)}var sr=null,Bs=!1,wc=!1;function ig(t){sr===null?sr=[t]:sr.push(t)}function K0(t){Bs=!0,ig(t)}function Jr(){if(!wc&&sr!==null){wc=!0;var t=0,e=ie;try{var r=sr;for(ie=1;t<r.length;t++){var n=r[t];do n=n(!0);while(n!==null)}sr=null,Bs=!1}catch(o){throw sr!==null&&(sr=sr.slice(t+1)),Np(Tu,Jr),o}finally{ie=e,wc=!1}}return null}var Hn=[],Un=0,Qa=null,Ya=0,Pt=[],Nt=0,_n=null,cr=1,lr="";function nn(t,e){Hn[Un++]=Ya,Hn[Un++]=Qa,Qa=t,Ya=e}function ag(t,e,r){Pt[Nt++]=cr,Pt[Nt++]=lr,Pt[Nt++]=_n,_n=t;var n=cr;t=lr;var o=32-Gt(n)-1;n&=~(1<<o),r+=1;var i=32-Gt(e)+o;if(30<i){var a=o-o%5;i=(n&(1<<a)-1).toString(32),n>>=a,o-=a,cr=1<<32-Gt(e)+o|r<<o|n,lr=i+t}else cr=1<<i|r<<o|n,lr=t}function Ou(t){t.return!==null&&(nn(t,1),ag(t,1,0))}function Fu(t){for(;t===Qa;)Qa=Hn[--Un],Hn[Un]=null,Ya=Hn[--Un],Hn[Un]=null;for(;t===_n;)_n=Pt[--Nt],Pt[Nt]=null,lr=Pt[--Nt],Pt[Nt]=null,cr=Pt[--Nt],Pt[Nt]=null}var _t=null,kt=null,ge=!1,jt=null;function sg(t,e){var r=Rt(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 ff(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,_t=t,kt=jr(e.firstChild),!0):!1;case 6:return e=t.pendingProps===""||e.nodeType!==3?null:e,e!==null?(t.stateNode=e,_t=t,kt=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(r=_n!==null?{id:cr,overflow:lr}:null,t.memoizedState={dehydrated:e,treeContext:r,retryLane:1073741824},r=Rt(18,null,null,0),r.stateNode=e,r.return=t,t.child=r,_t=t,kt=null,!0):!1;default:return!1}}function bl(t){return(t.mode&1)!==0&&(t.flags&128)===0}function Sl(t){if(ge){var e=kt;if(e){var r=e;if(!ff(t,e)){if(bl(t))throw Error(x(418));e=jr(r.nextSibling);var n=_t;e&&ff(t,e)?sg(n,r):(t.flags=t.flags&-4097|2,ge=!1,_t=t)}}else{if(bl(t))throw Error(x(418));t.flags=t.flags&-4097|2,ge=!1,_t=t}}}function hf(t){for(t=t.return;t!==null&&t.tag!==5&&t.tag!==3&&t.tag!==13;)t=t.return;_t=t}function oa(t){if(t!==_t)return!1;if(!ge)return hf(t),ge=!0,!1;var e;if((e=t.tag!==3)&&!(e=t.tag!==5)&&(e=t.type,e=e!=="head"&&e!=="body"&&!wl(t.type,t.memoizedProps)),e&&(e=kt)){if(bl(t))throw cg(),Error(x(418));for(;e;)sg(t,e),e=jr(e.nextSibling)}if(hf(t),t.tag===13){if(t=t.memoizedState,t=t!==null?t.dehydrated:null,!t)throw Error(x(317));e:{for(t=t.nextSibling,e=0;t;){if(t.nodeType===8){var r=t.data;if(r==="/$"){if(e===0){kt=jr(t.nextSibling);break e}e--}else r!=="$"&&r!=="$!"&&r!=="$?"||e++}t=t.nextSibling}kt=null}}else kt=_t?jr(t.stateNode.nextSibling):null;return!0}function cg(){for(var t=kt;t;)t=jr(t.nextSibling)}function lo(){kt=_t=null,ge=!1}function Du(t){jt===null?jt=[t]:jt.push(t)}var G0=br.ReactCurrentBatchConfig;function Ut(t,e){if(t&&t.defaultProps){e=we({},e),t=t.defaultProps;for(var r in t)e[r]===void 0&&(e[r]=t[r]);return e}return e}var $a=Xr(null),Xa=null,qn=null,zu=null;function Lu(){zu=qn=Xa=null}function Hu(t){var e=$a.current;pe($a),t._currentValue=e}function El(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 oo(t,e){Xa=t,zu=qn=null,t=t.dependencies,t!==null&&t.firstContext!==null&&(t.lanes&e&&(ft=!0),t.firstContext=null)}function Ft(t){var e=t._currentValue;if(zu!==t)if(t={context:t,memoizedValue:e,next:null},qn===null){if(Xa===null)throw Error(x(308));qn=t,Xa.dependencies={lanes:0,firstContext:t}}else qn=qn.next=t;return e}var un=null;function Uu(t){un===null?un=[t]:un.push(t)}function lg(t,e,r,n){var o=e.interleaved;return o===null?(r.next=r,Uu(e)):(r.next=o.next,o.next=r),e.interleaved=r,kr(t,n)}function kr(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 Rr=!1;function qu(t){t.updateQueue={baseState:t.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ug(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 fr(t,e){return{eventTime:t,lane:e,tag:0,payload:null,callback:null,next:null}}function Kr(t,e,r){var n=t.updateQueue;if(n===null)return null;if(n=n.shared,re&2){var o=n.pending;return o===null?e.next=e:(e.next=o.next,o.next=e),n.pending=e,kr(t,r)}return o=n.interleaved,o===null?(e.next=e,Uu(n)):(e.next=o.next,o.next=e),n.interleaved=e,kr(t,r)}function _a(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,Iu(t,r)}}function pf(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 Ja(t,e,r,n){var o=t.updateQueue;Rr=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,c=l.next;l.next=null,a===null?i=c:a.next=c,a=l;var u=t.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==a&&(s===null?u.firstBaseUpdate=c:s.next=c,u.lastBaseUpdate=l))}if(i!==null){var d=o.baseState;a=0,u=c=l=null,s=i;do{var f=s.lane,p=s.eventTime;if((n&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var h=t,m=s;switch(f=e,p=r,m.tag){case 1:if(h=m.payload,typeof h=="function"){d=h.call(p,d,f);break e}d=h;break e;case 3:h.flags=h.flags&-65537|128;case 0:if(h=m.payload,f=typeof h=="function"?h.call(p,d,f):h,f==null)break e;d=we({},d,f);break e;case 2:Rr=!0}}s.callback!==null&&s.lane!==0&&(t.flags|=64,f=o.effects,f===null?o.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(c=u=p,l=d):u=u.next=p,a|=f;if(s=s.next,s===null){if(s=o.shared.pending,s===null)break;f=s,s=f.next,f.next=null,o.lastBaseUpdate=f,o.shared.pending=null}}while(!0);if(u===null&&(l=d),o.baseState=l,o.firstBaseUpdate=c,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);Sn|=a,t.lanes=a,t.memoizedState=d}}function gf(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(x(191,o));o.call(n)}}}var dg=new lp.Component().refs;function Tl(t,e,r,n){e=t.memoizedState,r=r(n,e),r=r==null?e:we({},e,r),t.memoizedState=r,t.lanes===0&&(t.updateQueue.baseState=r)}var xs={isMounted:function(t){return(t=t._reactInternals)?Pn(t)===t:!1},enqueueSetState:function(t,e,r){t=t._reactInternals;var n=nt(),o=Wr(t),i=fr(n,o);i.payload=e,r!=null&&(i.callback=r),e=Kr(t,i,o),e!==null&&(Wt(e,t,o,n),_a(e,t,o))},enqueueReplaceState:function(t,e,r){t=t._reactInternals;var n=nt(),o=Wr(t),i=fr(n,o);i.tag=1,i.payload=e,r!=null&&(i.callback=r),e=Kr(t,i,o),e!==null&&(Wt(e,t,o,n),_a(e,t,o))},enqueueForceUpdate:function(t,e){t=t._reactInternals;var r=nt(),n=Wr(t),o=fr(r,n);o.tag=2,e!=null&&(o.callback=e),e=Kr(t,o,n),e!==null&&(Wt(e,t,n,r),_a(e,t,n))}};function vf(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?!mi(r,n)||!mi(o,i):!0}function fg(t,e,r){var n=!1,o=Yr,i=e.contextType;return typeof i=="object"&&i!==null?i=Ft(i):(o=pt(e)?Cn:Je.current,n=e.contextTypes,i=(n=n!=null)?co(t,o):Yr),e=new e(r,i),t.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=xs,t.stateNode=e,e._reactInternals=t,n&&(t=t.stateNode,t.__reactInternalMemoizedUnmaskedChildContext=o,t.__reactInternalMemoizedMaskedChildContext=i),e}function mf(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&&xs.enqueueReplaceState(e,e.state,null)}function Il(t,e,r,n){var o=t.stateNode;o.props=r,o.state=t.memoizedState,o.refs=dg,qu(t);var i=e.contextType;typeof i=="object"&&i!==null?o.context=Ft(i):(i=pt(e)?Cn:Je.current,o.context=co(t,i)),o.state=t.memoizedState,i=e.getDerivedStateFromProps,typeof i=="function"&&(Tl(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&&xs.enqueueReplaceState(o,o.state,null),Ja(t,r,o,n),o.state=t.memoizedState),typeof o.componentDidMount=="function"&&(t.flags|=4194308)}function No(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(x(309));var n=r.stateNode}if(!n)throw Error(x(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===dg&&(s=o.refs={}),a===null?delete s[i]:s[i]=a},e._stringRef=i,e)}if(typeof t!="string")throw Error(x(284));if(!r._owner)throw Error(x(290,t))}return t}function ia(t,e){throw t=Object.prototype.toString.call(e),Error(x(31,t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t))}function yf(t){var e=t._init;return e(t._payload)}function hg(t){function e(v,g){if(t){var y=v.deletions;y===null?(v.deletions=[g],v.flags|=16):y.push(g)}}function r(v,g){if(!t)return null;for(;g!==null;)e(v,g),g=g.sibling;return null}function n(v,g){for(v=new Map;g!==null;)g.key!==null?v.set(g.key,g):v.set(g.index,g),g=g.sibling;return v}function o(v,g){return v=Vr(v,g),v.index=0,v.sibling=null,v}function i(v,g,y){return v.index=y,t?(y=v.alternate,y!==null?(y=y.index,y<g?(v.flags|=2,g):y):(v.flags|=2,g)):(v.flags|=1048576,g)}function a(v){return t&&v.alternate===null&&(v.flags|=2),v}function s(v,g,y,k){return g===null||g.tag!==6?(g=Tc(y,v.mode,k),g.return=v,g):(g=o(g,y),g.return=v,g)}function l(v,g,y,k){var T=y.type;return T===Mn?u(v,g,y.props.children,k,y.key):g!==null&&(g.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Nr&&yf(T)===g.type)?(k=o(g,y.props),k.ref=No(v,g,y),k.return=v,k):(k=Aa(y.type,y.key,y.props,null,v.mode,k),k.ref=No(v,g,y),k.return=v,k)}function c(v,g,y,k){return g===null||g.tag!==4||g.stateNode.containerInfo!==y.containerInfo||g.stateNode.implementation!==y.implementation?(g=Ic(y,v.mode,k),g.return=v,g):(g=o(g,y.children||[]),g.return=v,g)}function u(v,g,y,k,T){return g===null||g.tag!==7?(g=vn(y,v.mode,k,T),g.return=v,g):(g=o(g,y),g.return=v,g)}function d(v,g,y){if(typeof g=="string"&&g!==""||typeof g=="number")return g=Tc(""+g,v.mode,y),g.return=v,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Qi:return y=Aa(g.type,g.key,g.props,null,v.mode,y),y.ref=No(v,null,g),y.return=v,y;case xn:return g=Ic(g,v.mode,y),g.return=v,g;case Nr:var k=g._init;return d(v,k(g._payload),y)}if(Lo(g)||Eo(g))return g=vn(g,v.mode,y,null),g.return=v,g;ia(v,g)}return null}function f(v,g,y,k){var T=g!==null?g.key:null;if(typeof y=="string"&&y!==""||typeof y=="number")return T!==null?null:s(v,g,""+y,k);if(typeof y=="object"&&y!==null){switch(y.$$typeof){case Qi:return y.key===T?l(v,g,y,k):null;case xn:return y.key===T?c(v,g,y,k):null;case Nr:return T=y._init,f(v,g,T(y._payload),k)}if(Lo(y)||Eo(y))return T!==null?null:u(v,g,y,k,null);ia(v,y)}return null}function p(v,g,y,k,T){if(typeof k=="string"&&k!==""||typeof k=="number")return v=v.get(y)||null,s(g,v,""+k,T);if(typeof k=="object"&&k!==null){switch(k.$$typeof){case Qi:return v=v.get(k.key===null?y:k.key)||null,l(g,v,k,T);case xn:return v=v.get(k.key===null?y:k.key)||null,c(g,v,k,T);case Nr:var _=k._init;return p(v,g,y,_(k._payload),T)}if(Lo(k)||Eo(k))return v=v.get(y)||null,u(g,v,k,T,null);ia(g,k)}return null}function h(v,g,y,k){for(var T=null,_=null,b=g,R=g=0,ae=null;b!==null&&R<y.length;R++){b.index>R?(ae=b,b=null):ae=b.sibling;var G=f(v,b,y[R],k);if(G===null){b===null&&(b=ae);break}t&&b&&G.alternate===null&&e(v,b),g=i(G,g,R),_===null?T=G:_.sibling=G,_=G,b=ae}if(R===y.length)return r(v,b),ge&&nn(v,R),T;if(b===null){for(;R<y.length;R++)b=d(v,y[R],k),b!==null&&(g=i(b,g,R),_===null?T=b:_.sibling=b,_=b);return ge&&nn(v,R),T}for(b=n(v,b);R<y.length;R++)ae=p(b,v,R,y[R],k),ae!==null&&(t&&ae.alternate!==null&&b.delete(ae.key===null?R:ae.key),g=i(ae,g,R),_===null?T=ae:_.sibling=ae,_=ae);return t&&b.forEach(function(Ge){return e(v,Ge)}),ge&&nn(v,R),T}function m(v,g,y,k){var T=Eo(y);if(typeof T!="function")throw Error(x(150));if(y=T.call(y),y==null)throw Error(x(151));for(var _=T=null,b=g,R=g=0,ae=null,G=y.next();b!==null&&!G.done;R++,G=y.next()){b.index>R?(ae=b,b=null):ae=b.sibling;var Ge=f(v,b,G.value,k);if(Ge===null){b===null&&(b=ae);break}t&&b&&Ge.alternate===null&&e(v,b),g=i(Ge,g,R),_===null?T=Ge:_.sibling=Ge,_=Ge,b=ae}if(G.done)return r(v,b),ge&&nn(v,R),T;if(b===null){for(;!G.done;R++,G=y.next())G=d(v,G.value,k),G!==null&&(g=i(G,g,R),_===null?T=G:_.sibling=G,_=G);return ge&&nn(v,R),T}for(b=n(v,b);!G.done;R++,G=y.next())G=p(b,v,R,G.value,k),G!==null&&(t&&G.alternate!==null&&b.delete(G.key===null?R:G.key),g=i(G,g,R),_===null?T=G:_.sibling=G,_=G);return t&&b.forEach(function(Tr){return e(v,Tr)}),ge&&nn(v,R),T}function C(v,g,y,k){if(typeof y=="object"&&y!==null&&y.type===Mn&&y.key===null&&(y=y.props.children),typeof y=="object"&&y!==null){switch(y.$$typeof){case Qi:e:{for(var T=y.key,_=g;_!==null;){if(_.key===T){if(T=y.type,T===Mn){if(_.tag===7){r(v,_.sibling),g=o(_,y.props.children),g.return=v,v=g;break e}}else if(_.elementType===T||typeof T=="object"&&T!==null&&T.$$typeof===Nr&&yf(T)===_.type){r(v,_.sibling),g=o(_,y.props),g.ref=No(v,_,y),g.return=v,v=g;break e}r(v,_);break}else e(v,_);_=_.sibling}y.type===Mn?(g=vn(y.props.children,v.mode,k,y.key),g.return=v,v=g):(k=Aa(y.type,y.key,y.props,null,v.mode,k),k.ref=No(v,g,y),k.return=v,v=k)}return a(v);case xn:e:{for(_=y.key;g!==null;){if(g.key===_)if(g.tag===4&&g.stateNode.containerInfo===y.containerInfo&&g.stateNode.implementation===y.implementation){r(v,g.sibling),g=o(g,y.children||[]),g.return=v,v=g;break e}else{r(v,g);break}else e(v,g);g=g.sibling}g=Ic(y,v.mode,k),g.return=v,v=g}return a(v);case Nr:return _=y._init,C(v,g,_(y._payload),k)}if(Lo(y))return h(v,g,y,k);if(Eo(y))return m(v,g,y,k);ia(v,y)}return typeof y=="string"&&y!==""||typeof y=="number"?(y=""+y,g!==null&&g.tag===6?(r(v,g.sibling),g=o(g,y),g.return=v,v=g):(r(v,g),g=Tc(y,v.mode,k),g.return=v,v=g),a(v)):r(v,g)}return C}var uo=hg(!0),pg=hg(!1),Fi={},nr=Xr(Fi),Ci=Xr(Fi),_i=Xr(Fi);function dn(t){if(t===Fi)throw Error(x(174));return t}function ju(t,e){switch(de(_i,e),de(Ci,t),de(nr,Fi),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)}pe(nr),de(nr,e)}function fo(){pe(nr),pe(Ci),pe(_i)}function gg(t){dn(_i.current);var e=dn(nr.current),r=il(e,t.type);e!==r&&(de(Ci,t),de(nr,r))}function Ku(t){Ci.current===t&&(pe(nr),pe(Ci))}var ve=Xr(0);function Za(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)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 Gu(){for(var t=0;t<kc.length;t++)kc[t]._workInProgressVersionPrimary=null;kc.length=0}var ba=br.ReactCurrentDispatcher,Cc=br.ReactCurrentBatchConfig,bn=0,ye=null,Be=null,De=null,es=!1,Xo=!1,bi=0,W0=0;function We(){throw Error(x(321))}function Wu(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 Vu(t,e,r,n,o,i){if(bn=i,ye=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,ba.current=t===null||t.memoizedState===null?$0:X0,t=r(n,o),Xo){i=0;do{if(Xo=!1,bi=0,25<=i)throw Error(x(301));i+=1,De=Be=null,e.updateQueue=null,ba.current=J0,t=r(n,o)}while(Xo)}if(ba.current=ts,e=Be!==null&&Be.next!==null,bn=0,De=Be=ye=null,es=!1,e)throw Error(x(300));return t}function Qu(){var t=bi!==0;return bi=0,t}function Yt(){var t={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return De===null?ye.memoizedState=De=t:De=De.next=t,De}function Dt(){if(Be===null){var t=ye.alternate;t=t!==null?t.memoizedState:null}else t=Be.next;var e=De===null?ye.memoizedState:De.next;if(e!==null)De=e,Be=t;else{if(t===null)throw Error(x(310));Be=t,t={memoizedState:Be.memoizedState,baseState:Be.baseState,baseQueue:Be.baseQueue,queue:Be.queue,next:null},De===null?ye.memoizedState=De=t:De=De.next=t}return De}function Si(t,e){return typeof e=="function"?e(t):e}function _c(t){var e=Dt(),r=e.queue;if(r===null)throw Error(x(311));r.lastRenderedReducer=t;var n=Be,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,l=null,c=i;do{var u=c.lane;if((bn&u)===u)l!==null&&(l=l.next={lane:0,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),n=c.hasEagerState?c.eagerState:t(n,c.action);else{var d={lane:u,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null};l===null?(s=l=d,a=n):l=l.next=d,ye.lanes|=u,Sn|=u}c=c.next}while(c!==null&&c!==i);l===null?a=n:l.next=s,Vt(n,e.memoizedState)||(ft=!0),e.memoizedState=n,e.baseState=a,e.baseQueue=l,r.lastRenderedState=n}if(t=r.interleaved,t!==null){o=t;do i=o.lane,ye.lanes|=i,Sn|=i,o=o.next;while(o!==t)}else o===null&&(r.lanes=0);return[e.memoizedState,r.dispatch]}function bc(t){var e=Dt(),r=e.queue;if(r===null)throw Error(x(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)||(ft=!0),e.memoizedState=i,e.baseQueue===null&&(e.baseState=i),r.lastRenderedState=i}return[i,n]}function vg(){}function mg(t,e){var r=ye,n=Dt(),o=e(),i=!Vt(n.memoizedState,o);if(i&&(n.memoizedState=o,ft=!0),n=n.queue,Yu(kg.bind(null,r,n,t),[t]),n.getSnapshot!==e||i||De!==null&&De.memoizedState.tag&1){if(r.flags|=2048,Ei(9,wg.bind(null,r,n,o,e),void 0,null),ze===null)throw Error(x(349));bn&30||yg(r,e,o)}return o}function yg(t,e,r){t.flags|=16384,t={getSnapshot:e,value:r},e=ye.updateQueue,e===null?(e={lastEffect:null,stores:null},ye.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,Cg(e)&&_g(t)}function kg(t,e,r){return r(function(){Cg(e)&&_g(t)})}function Cg(t){var e=t.getSnapshot;t=t.value;try{var r=e();return!Vt(t,r)}catch{return!0}}function _g(t){var e=kr(t,1);e!==null&&Wt(e,t,1,-1)}function wf(t){var e=Yt();return typeof t=="function"&&(t=t()),e.memoizedState=e.baseState=t,t={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Si,lastRenderedState:t},e.queue=t,t=t.dispatch=Y0.bind(null,ye,t),[e.memoizedState,t]}function Ei(t,e,r,n){return t={tag:t,create:e,destroy:r,deps:n,next:null},e=ye.updateQueue,e===null?(e={lastEffect:null,stores:null},ye.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 bg(){return Dt().memoizedState}function Sa(t,e,r,n){var o=Yt();ye.flags|=t,o.memoizedState=Ei(1|e,r,void 0,n===void 0?null:n)}function Ms(t,e,r,n){var o=Dt();n=n===void 0?null:n;var i=void 0;if(Be!==null){var a=Be.memoizedState;if(i=a.destroy,n!==null&&Wu(n,a.deps)){o.memoizedState=Ei(e,r,i,n);return}}ye.flags|=t,o.memoizedState=Ei(1|e,r,i,n)}function kf(t,e){return Sa(8390656,8,t,e)}function Yu(t,e){return Ms(2048,8,t,e)}function Sg(t,e){return Ms(4,2,t,e)}function Eg(t,e){return Ms(4,4,t,e)}function Tg(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 Ig(t,e,r){return r=r!=null?r.concat([t]):null,Ms(4,4,Tg.bind(null,e,t),r)}function $u(){}function Ag(t,e){var r=Dt();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&Wu(e,n[1])?n[0]:(r.memoizedState=[t,e],t)}function Pg(t,e){var r=Dt();e=e===void 0?null:e;var n=r.memoizedState;return n!==null&&e!==null&&Wu(e,n[1])?n[0]:(t=t(),r.memoizedState=[t,e],t)}function Ng(t,e,r){return bn&21?(Vt(r,e)||(r=xp(),ye.lanes|=r,Sn|=r,t.baseState=!0),e):(t.baseState&&(t.baseState=!1,ft=!0),t.memoizedState=r)}function V0(t,e){var r=ie;ie=r!==0&&4>r?r:4,t(!0);var n=Cc.transition;Cc.transition={};try{t(!1),e()}finally{ie=r,Cc.transition=n}}function Rg(){return Dt().memoizedState}function Q0(t,e,r){var n=Wr(t);if(r={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null},Bg(t))xg(e,r);else if(r=lg(t,e,r,n),r!==null){var o=nt();Wt(r,t,n,o),Mg(r,e,n)}}function Y0(t,e,r){var n=Wr(t),o={lane:n,action:r,hasEagerState:!1,eagerState:null,next:null};if(Bg(t))xg(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 l=e.interleaved;l===null?(o.next=o,Uu(e)):(o.next=l.next,l.next=o),e.interleaved=o;return}}catch{}finally{}r=lg(t,e,o,n),r!==null&&(o=nt(),Wt(r,t,n,o),Mg(r,e,n))}}function Bg(t){var e=t.alternate;return t===ye||e!==null&&e===ye}function xg(t,e){Xo=es=!0;var r=t.pending;r===null?e.next=e:(e.next=r.next,r.next=e),t.pending=e}function Mg(t,e,r){if(r&4194240){var n=e.lanes;n&=t.pendingLanes,r|=n,e.lanes=r,Iu(t,r)}}var ts={readContext:Ft,useCallback:We,useContext:We,useEffect:We,useImperativeHandle:We,useInsertionEffect:We,useLayoutEffect:We,useMemo:We,useReducer:We,useRef:We,useState:We,useDebugValue:We,useDeferredValue:We,useTransition:We,useMutableSource:We,useSyncExternalStore:We,useId:We,unstable_isNewReconciler:!1},$0={readContext:Ft,useCallback:function(t,e){return Yt().memoizedState=[t,e===void 0?null:e],t},useContext:Ft,useEffect:kf,useImperativeHandle:function(t,e,r){return r=r!=null?r.concat([t]):null,Sa(4194308,4,Tg.bind(null,e,t),r)},useLayoutEffect:function(t,e){return Sa(4194308,4,t,e)},useInsertionEffect:function(t,e){return Sa(4,2,t,e)},useMemo:function(t,e){var r=Yt();return e=e===void 0?null:e,t=t(),r.memoizedState=[t,e],t},useReducer:function(t,e,r){var n=Yt();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=Q0.bind(null,ye,t),[n.memoizedState,t]},useRef:function(t){var e=Yt();return t={current:t},e.memoizedState=t},useState:wf,useDebugValue:$u,useDeferredValue:function(t){return Yt().memoizedState=t},useTransition:function(){var t=wf(!1),e=t[0];return t=V0.bind(null,t[1]),Yt().memoizedState=t,[e,t]},useMutableSource:function(){},useSyncExternalStore:function(t,e,r){var n=ye,o=Yt();if(ge){if(r===void 0)throw Error(x(407));r=r()}else{if(r=e(),ze===null)throw Error(x(349));bn&30||yg(n,e,r)}o.memoizedState=r;var i={value:r,getSnapshot:e};return o.queue=i,kf(kg.bind(null,n,i,t),[t]),n.flags|=2048,Ei(9,wg.bind(null,n,i,r,e),void 0,null),r},useId:function(){var t=Yt(),e=ze.identifierPrefix;if(ge){var r=lr,n=cr;r=(n&~(1<<32-Gt(n)-1)).toString(32)+r,e=":"+e+"R"+r,r=bi++,0<r&&(e+="H"+r.toString(32)),e+=":"}else r=W0++,e=":"+e+"r"+r.toString(32)+":";return t.memoizedState=e},unstable_isNewReconciler:!1},X0={readContext:Ft,useCallback:Ag,useContext:Ft,useEffect:Yu,useImperativeHandle:Ig,useInsertionEffect:Sg,useLayoutEffect:Eg,useMemo:Pg,useReducer:_c,useRef:bg,useState:function(){return _c(Si)},useDebugValue:$u,useDeferredValue:function(t){var e=Dt();return Ng(e,Be.memoizedState,t)},useTransition:function(){var t=_c(Si)[0],e=Dt().memoizedState;return[t,e]},useMutableSource:vg,useSyncExternalStore:mg,useId:Rg,unstable_isNewReconciler:!1},J0={readContext:Ft,useCallback:Ag,useContext:Ft,useEffect:Yu,useImperativeHandle:Ig,useInsertionEffect:Sg,useLayoutEffect:Eg,useMemo:Pg,useReducer:bc,useRef:bg,useState:function(){return bc(Si)},useDebugValue:$u,useDeferredValue:function(t){var e=Dt();return Be===null?e.memoizedState=t:Ng(e,Be.memoizedState,t)},useTransition:function(){var t=bc(Si)[0],e=Dt().memoizedState;return[t,e]},useMutableSource:vg,useSyncExternalStore:mg,useId:Rg,unstable_isNewReconciler:!1};function ho(t,e){try{var r="",n=e;do r+=Ty(n),n=n.return;while(n);var o=r}catch(i){o=`
|
|
39
|
+
Error generating stack: `+i.message+`
|
|
40
|
+
`+i.stack}return{value:t,source:e,stack:o,digest:null}}function Sc(t,e,r){return{value:t,source:null,stack:r??null,digest:e??null}}function Al(t,e){try{console.error(e.value)}catch(r){setTimeout(function(){throw r})}}var Z0=typeof WeakMap=="function"?WeakMap:Map;function Og(t,e,r){r=fr(-1,r),r.tag=3,r.payload={element:null};var n=e.value;return r.callback=function(){ns||(ns=!0,zl=n),Al(t,e)},r}function Fg(t,e,r){r=fr(-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(){Al(t,e)}}var i=t.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(r.callback=function(){Al(t,e),typeof n!="function"&&(Gr===null?Gr=new Set([this]):Gr.add(this));var a=e.stack;this.componentDidCatch(e.value,{componentStack:a!==null?a:""})}),r}function Cf(t,e,r){var n=t.pingCache;if(n===null){n=t.pingCache=new Z0;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=hw.bind(null,t,e,r),e.then(t,t))}function _f(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 bf(t,e,r,n,o){return t.mode&1?(t.flags|=65536,t.lanes=o,t):(t===e?t.flags|=65536:(t.flags|=128,r.flags|=131072,r.flags&=-52805,r.tag===1&&(r.alternate===null?r.tag=17:(e=fr(-1,1),e.tag=2,Kr(r,e,1))),r.lanes|=1),t)}var ew=br.ReactCurrentOwner,ft=!1;function Ze(t,e,r,n){e.child=t===null?pg(e,null,r,n):uo(e,t.child,r,n)}function Sf(t,e,r,n,o){r=r.render;var i=e.ref;return oo(e,o),n=Vu(t,e,r,n,i,o),r=Qu(),t!==null&&!ft?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~o,Cr(t,e,o)):(ge&&r&&Ou(e),e.flags|=1,Ze(t,e,n,o),e.child)}function Ef(t,e,r,n,o){if(t===null){var i=r.type;return typeof i=="function"&&!od(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=Aa(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)){var a=i.memoizedProps;if(r=r.compare,r=r!==null?r:mi,r(a,n)&&t.ref===e.ref)return Cr(t,e,o)}return e.flags|=1,t=Vr(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(mi(i,n)&&t.ref===e.ref)if(ft=!1,e.pendingProps=n=i,(t.lanes&o)!==0)t.flags&131072&&(ft=!0);else return e.lanes=t.lanes,Cr(t,e,o)}return Pl(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))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},de(Kn,wt),wt|=r;else{if(!(r&1073741824))return t=i!==null?i.baseLanes|r:r,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:t,cachePool:null,transitions:null},e.updateQueue=null,de(Kn,wt),wt|=t,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},n=i!==null?i.baseLanes:r,de(Kn,wt),wt|=n}else i!==null?(n=i.baseLanes|r,e.memoizedState=null):n=r,de(Kn,wt),wt|=n;return Ze(t,e,o,r),e.child}function Lg(t,e){var r=e.ref;(t===null&&r!==null||t!==null&&t.ref!==r)&&(e.flags|=512,e.flags|=2097152)}function Pl(t,e,r,n,o){var i=pt(r)?Cn:Je.current;return i=co(e,i),oo(e,o),r=Vu(t,e,r,n,i,o),n=Qu(),t!==null&&!ft?(e.updateQueue=t.updateQueue,e.flags&=-2053,t.lanes&=~o,Cr(t,e,o)):(ge&&n&&Ou(e),e.flags|=1,Ze(t,e,r,o),e.child)}function Tf(t,e,r,n,o){if(pt(r)){var i=!0;Va(e)}else i=!1;if(oo(e,o),e.stateNode===null)Ea(t,e),fg(e,r,n),Il(e,r,n,o),n=!0;else if(t===null){var a=e.stateNode,s=e.memoizedProps;a.props=s;var l=a.context,c=r.contextType;typeof c=="object"&&c!==null?c=Ft(c):(c=pt(r)?Cn:Je.current,c=co(e,c));var u=r.getDerivedStateFromProps,d=typeof u=="function"||typeof a.getSnapshotBeforeUpdate=="function";d||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==n||l!==c)&&mf(e,a,n,c),Rr=!1;var f=e.memoizedState;a.state=f,Ja(e,n,a,o),l=e.memoizedState,s!==n||f!==l||ht.current||Rr?(typeof u=="function"&&(Tl(e,r,u,n),l=e.memoizedState),(s=Rr||vf(e,r,s,n,f,l,c))?(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=l),a.props=n,a.state=l,a.context=c,n=s):(typeof a.componentDidMount=="function"&&(e.flags|=4194308),n=!1)}else{a=e.stateNode,ug(t,e),s=e.memoizedProps,c=e.type===e.elementType?s:Ut(e.type,s),a.props=c,d=e.pendingProps,f=a.context,l=r.contextType,typeof l=="object"&&l!==null?l=Ft(l):(l=pt(r)?Cn:Je.current,l=co(e,l));var p=r.getDerivedStateFromProps;(u=typeof p=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==d||f!==l)&&mf(e,a,n,l),Rr=!1,f=e.memoizedState,a.state=f,Ja(e,n,a,o);var h=e.memoizedState;s!==d||f!==h||ht.current||Rr?(typeof p=="function"&&(Tl(e,r,p,n),h=e.memoizedState),(c=Rr||vf(e,r,c,n,f,h,l)||!1)?(u||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(n,h,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(n,h,l)),typeof a.componentDidUpdate=="function"&&(e.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),e.memoizedProps=n,e.memoizedState=h),a.props=n,a.state=h,a.context=l,n=c):(typeof a.componentDidUpdate!="function"||s===t.memoizedProps&&f===t.memoizedState||(e.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===t.memoizedProps&&f===t.memoizedState||(e.flags|=1024),n=!1)}return Nl(t,e,r,n,i,o)}function Nl(t,e,r,n,o,i){Lg(t,e);var a=(e.flags&128)!==0;if(!n&&!a)return o&&df(e,r,!1),Cr(t,e,i);n=e.stateNode,ew.current=e;var s=a&&typeof r.getDerivedStateFromError!="function"?null:n.render();return e.flags|=1,t!==null&&a?(e.child=uo(e,t.child,null,i),e.child=uo(e,null,s,i)):Ze(t,e,s,i),e.memoizedState=n.state,o&&df(e,r,!0),e.child}function Hg(t){var e=t.stateNode;e.pendingContext?uf(t,e.pendingContext,e.pendingContext!==e.context):e.context&&uf(t,e.context,!1),ju(t,e.containerInfo)}function If(t,e,r,n,o){return lo(),Du(o),e.flags|=256,Ze(t,e,r,n),e.child}var Rl={dehydrated:null,treeContext:null,retryLane:0};function Bl(t){return{baseLanes:t,cachePool:null,transitions:null}}function Ug(t,e,r){var n=e.pendingProps,o=ve.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),de(ve,o&1),t===null)return Sl(e),t=e.memoizedState,t!==null&&(t=t.dehydrated,t!==null)?(e.mode&1?t.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(a=n.children,t=n.fallback,i?(n=e.mode,i=e.child,a={mode:"hidden",children:a},!(n&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=Ds(a,n,0,null),t=vn(t,n,r,null),i.return=e,t.return=e,i.sibling=t,e.child=i,e.child.memoizedState=Bl(r),e.memoizedState=Rl,t):Xu(e,a));if(o=t.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return tw(t,e,a,n,s,o,r);if(i){i=n.fallback,a=e.mode,o=t.child,s=o.sibling;var l={mode:"hidden",children:n.children};return!(a&1)&&e.child!==o?(n=e.child,n.childLanes=0,n.pendingProps=l,e.deletions=null):(n=Vr(o,l),n.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Vr(s,i):(i=vn(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?Bl(r):{baseLanes:a.baseLanes|r,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=t.childLanes&~r,e.memoizedState=Rl,n}return i=t.child,t=i.sibling,n=Vr(i,{mode:"visible",children:n.children}),!(e.mode&1)&&(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 Xu(t,e){return e=Ds({mode:"visible",children:e},t.mode,0,null),e.return=t,t.child=e}function aa(t,e,r,n){return n!==null&&Du(n),uo(e,t.child,null,r),t=Xu(e,e.pendingProps.children),t.flags|=2,e.memoizedState=null,t}function tw(t,e,r,n,o,i,a){if(r)return e.flags&256?(e.flags&=-257,n=Sc(Error(x(422))),aa(t,e,a,n)):e.memoizedState!==null?(e.child=t.child,e.flags|=128,null):(i=n.fallback,o=e.mode,n=Ds({mode:"visible",children:n.children},o,0,null),i=vn(i,o,a,null),i.flags|=2,n.return=e,i.return=e,n.sibling=i,e.child=n,e.mode&1&&uo(e,t.child,null,a),e.child.memoizedState=Bl(a),e.memoizedState=Rl,i);if(!(e.mode&1))return aa(t,e,a,null);if(o.data==="$!"){if(n=o.nextSibling&&o.nextSibling.dataset,n)var s=n.dgst;return n=s,i=Error(x(419)),n=Sc(i,n,void 0),aa(t,e,a,n)}if(s=(a&t.childLanes)!==0,ft||s){if(n=ze,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:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,kr(t,o),Wt(n,t,o,-1))}return nd(),n=Sc(Error(x(421))),aa(t,e,a,n)}return o.data==="$?"?(e.flags|=128,e.child=t.child,e=pw.bind(null,t),o._reactRetry=e,null):(t=i.treeContext,kt=jr(o.nextSibling),_t=e,ge=!0,jt=null,t!==null&&(Pt[Nt++]=cr,Pt[Nt++]=lr,Pt[Nt++]=_n,cr=t.id,lr=t.overflow,_n=e),e=Xu(e,n.children),e.flags|=4096,e)}function Af(t,e,r){t.lanes|=e;var n=t.alternate;n!==null&&(n.lanes|=e),El(t.return,e,r)}function Ec(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=ve.current,n&2)n=n&1|2,e.flags|=128;else{if(t!==null&&t.flags&128)e:for(t=e.child;t!==null;){if(t.tag===13)t.memoizedState!==null&&Af(t,r,e);else if(t.tag===19)Af(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(de(ve,n),!(e.mode&1))e.memoizedState=null;else switch(o){case"forwards":for(r=e.child,o=null;r!==null;)t=r.alternate,t!==null&&Za(t)===null&&(o=r),r=r.sibling;r=o,r===null?(o=e.child,e.child=null):(o=r.sibling,r.sibling=null),Ec(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&&Za(t)===null){e.child=o;break}t=o.sibling,o.sibling=r,r=o,o=t}Ec(e,!0,r,null,i);break;case"together":Ec(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function Ea(t,e){!(e.mode&1)&&t!==null&&(t.alternate=null,e.alternate=null,e.flags|=2)}function Cr(t,e,r){if(t!==null&&(e.dependencies=t.dependencies),Sn|=e.lanes,!(r&e.childLanes))return null;if(t!==null&&e.child!==t.child)throw Error(x(153));if(e.child!==null){for(t=e.child,r=Vr(t,t.pendingProps),e.child=r,r.return=e;t.sibling!==null;)t=t.sibling,r=r.sibling=Vr(t,t.pendingProps),r.return=e;r.sibling=null}return e.child}function rw(t,e,r){switch(e.tag){case 3:Hg(e),lo();break;case 5:gg(e);break;case 1:pt(e.type)&&Va(e);break;case 4:ju(e,e.stateNode.containerInfo);break;case 10:var n=e.type._context,o=e.memoizedProps.value;de($a,n._currentValue),n._currentValue=o;break;case 13:if(n=e.memoizedState,n!==null)return n.dehydrated!==null?(de(ve,ve.current&1),e.flags|=128,null):r&e.child.childLanes?Ug(t,e,r):(de(ve,ve.current&1),t=Cr(t,e,r),t!==null?t.sibling:null);de(ve,ve.current&1);break;case 19:if(n=(r&e.childLanes)!==0,t.flags&128){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),de(ve,ve.current),n)break;return null;case 22:case 23:return e.lanes=0,zg(t,e,r)}return Cr(t,e,r)}var jg,xl,Kg,Gg;jg=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}};xl=function(){};Kg=function(t,e,r,n){var o=t.memoizedProps;if(o!==n){t=e.stateNode,dn(nr.current);var i=null;switch(r){case"input":o=tl(t,o),n=tl(t,n),i=[];break;case"select":o=we({},o,{value:void 0}),n=we({},n,{value:void 0}),i=[];break;case"textarea":o=ol(t,o),n=ol(t,n),i=[];break;default:typeof o.onClick!="function"&&typeof n.onClick=="function"&&(t.onclick=Ga)}al(r,n);var a;r=null;for(c in o)if(!n.hasOwnProperty(c)&&o.hasOwnProperty(c)&&o[c]!=null)if(c==="style"){var s=o[c];for(a in s)s.hasOwnProperty(a)&&(r||(r={}),r[a]="")}else c!=="dangerouslySetInnerHTML"&&c!=="children"&&c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&c!=="autoFocus"&&(ui.hasOwnProperty(c)?i||(i=[]):(i=i||[]).push(c,null));for(c in n){var l=n[c];if(s=o!=null?o[c]:void 0,n.hasOwnProperty(c)&&l!==s&&(l!=null||s!=null))if(c==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(r||(r={}),r[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(r||(r={}),r[a]=l[a])}else r||(i||(i=[]),i.push(c,r)),r=l;else c==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(c,l)):c==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(c,""+l):c!=="suppressContentEditableWarning"&&c!=="suppressHydrationWarning"&&(ui.hasOwnProperty(c)?(l!=null&&c==="onScroll"&&he("scroll",t),i||s===l||(i=[])):(i=i||[]).push(c,l))}r&&(i=i||[]).push("style",r);var c=i;(e.updateQueue=c)&&(e.flags|=4)}};Gg=function(t,e,r,n){r!==n&&(e.flags|=4)};function Ro(t,e){if(!ge)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 Ve(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 nw(t,e,r){var n=e.pendingProps;switch(Fu(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Ve(e),null;case 1:return pt(e.type)&&Wa(),Ve(e),null;case 3:return n=e.stateNode,fo(),pe(ht),pe(Je),Gu(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(t===null||t.child===null)&&(oa(e)?e.flags|=4:t===null||t.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,jt!==null&&(Ul(jt),jt=null))),xl(t,e),Ve(e),null;case 5:Ku(e);var o=dn(_i.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(x(166));return Ve(e),null}if(t=dn(nr.current),oa(e)){n=e.stateNode,r=e.type;var i=e.memoizedProps;switch(n[er]=e,n[ki]=i,t=(e.mode&1)!==0,r){case"dialog":he("cancel",n),he("close",n);break;case"iframe":case"object":case"embed":he("load",n);break;case"video":case"audio":for(o=0;o<Uo.length;o++)he(Uo[o],n);break;case"source":he("error",n);break;case"img":case"image":case"link":he("error",n),he("load",n);break;case"details":he("toggle",n);break;case"input":Fd(n,i),he("invalid",n);break;case"select":n._wrapperState={wasMultiple:!!i.multiple},he("invalid",n);break;case"textarea":zd(n,i),he("invalid",n)}al(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&&na(n.textContent,s,t),o=["children",s]):typeof s=="number"&&n.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&na(n.textContent,s,t),o=["children",""+s]):ui.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&he("scroll",n)}switch(r){case"input":Yi(n),Dd(n,i,!0);break;case"textarea":Yi(n),Ld(n);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(n.onclick=Ga)}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=yp(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[er]=e,t[ki]=n,jg(t,e,!1,!1),e.stateNode=t;e:{switch(a=sl(r,n),r){case"dialog":he("cancel",t),he("close",t),o=n;break;case"iframe":case"object":case"embed":he("load",t),o=n;break;case"video":case"audio":for(o=0;o<Uo.length;o++)he(Uo[o],t);o=n;break;case"source":he("error",t),o=n;break;case"img":case"image":case"link":he("error",t),he("load",t),o=n;break;case"details":he("toggle",t),o=n;break;case"input":Fd(t,n),o=tl(t,n),he("invalid",t);break;case"option":o=n;break;case"select":t._wrapperState={wasMultiple:!!n.multiple},o=we({},n,{value:void 0}),he("invalid",t);break;case"textarea":zd(t,n),o=ol(t,n),he("invalid",t);break;default:o=n}al(r,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="style"?Cp(t,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&wp(t,l)):i==="children"?typeof l=="string"?(r!=="textarea"||l!=="")&&di(t,l):typeof l=="number"&&di(t,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(ui.hasOwnProperty(i)?l!=null&&i==="onScroll"&&he("scroll",t):l!=null&&Cu(t,i,l,a))}switch(r){case"input":Yi(t),Dd(t,n,!1);break;case"textarea":Yi(t),Ld(t);break;case"option":n.value!=null&&t.setAttribute("value",""+Qr(n.value));break;case"select":t.multiple=!!n.multiple,i=n.value,i!=null?eo(t,!!n.multiple,i,!1):n.defaultValue!=null&&eo(t,!!n.multiple,n.defaultValue,!0);break;default:typeof o.onClick=="function"&&(t.onclick=Ga)}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 Ve(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(x(166));if(r=dn(_i.current),dn(nr.current),oa(e)){if(n=e.stateNode,r=e.memoizedProps,n[er]=e,(i=n.nodeValue!==r)&&(t=_t,t!==null))switch(t.tag){case 3:na(n.nodeValue,r,(t.mode&1)!==0);break;case 5:t.memoizedProps.suppressHydrationWarning!==!0&&na(n.nodeValue,r,(t.mode&1)!==0)}i&&(e.flags|=4)}else n=(r.nodeType===9?r:r.ownerDocument).createTextNode(n),n[er]=e,e.stateNode=n}return Ve(e),null;case 13:if(pe(ve),n=e.memoizedState,t===null||t.memoizedState!==null&&t.memoizedState.dehydrated!==null){if(ge&&kt!==null&&e.mode&1&&!(e.flags&128))cg(),lo(),e.flags|=98560,i=!1;else if(i=oa(e),n!==null&&n.dehydrated!==null){if(t===null){if(!i)throw Error(x(318));if(i=e.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(x(317));i[er]=e}else lo(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;Ve(e),i=!1}else jt!==null&&(Ul(jt),jt=null),i=!0;if(!i)return e.flags&65536?e:null}return e.flags&128?(e.lanes=r,e):(n=n!==null,n!==(t!==null&&t.memoizedState!==null)&&n&&(e.child.flags|=8192,e.mode&1&&(t===null||ve.current&1?Me===0&&(Me=3):nd())),e.updateQueue!==null&&(e.flags|=4),Ve(e),null);case 4:return fo(),xl(t,e),t===null&&yi(e.stateNode.containerInfo),Ve(e),null;case 10:return Hu(e.type._context),Ve(e),null;case 17:return pt(e.type)&&Wa(),Ve(e),null;case 19:if(pe(ve),i=e.memoizedState,i===null)return Ve(e),null;if(n=(e.flags&128)!==0,a=i.rendering,a===null)if(n)Ro(i,!1);else{if(Me!==0||t!==null&&t.flags&128)for(t=e.child;t!==null;){if(a=Za(t),a!==null){for(e.flags|=128,Ro(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 de(ve,ve.current&1|2),e.child}t=t.sibling}i.tail!==null&&Se()>po&&(e.flags|=128,n=!0,Ro(i,!1),e.lanes=4194304)}else{if(!n)if(t=Za(a),t!==null){if(e.flags|=128,n=!0,r=t.updateQueue,r!==null&&(e.updateQueue=r,e.flags|=4),Ro(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!ge)return Ve(e),null}else 2*Se()-i.renderingStartTime>po&&r!==1073741824&&(e.flags|=128,n=!0,Ro(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=Se(),e.sibling=null,r=ve.current,de(ve,n?r&1|2:r&1),e):(Ve(e),null);case 22:case 23:return rd(),n=e.memoizedState!==null,t!==null&&t.memoizedState!==null!==n&&(e.flags|=8192),n&&e.mode&1?wt&1073741824&&(Ve(e),e.subtreeFlags&6&&(e.flags|=8192)):Ve(e),null;case 24:return null;case 25:return null}throw Error(x(156,e.tag))}function ow(t,e){switch(Fu(e),e.tag){case 1:return pt(e.type)&&Wa(),t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 3:return fo(),pe(ht),pe(Je),Gu(),t=e.flags,t&65536&&!(t&128)?(e.flags=t&-65537|128,e):null;case 5:return Ku(e),null;case 13:if(pe(ve),t=e.memoizedState,t!==null&&t.dehydrated!==null){if(e.alternate===null)throw Error(x(340));lo()}return t=e.flags,t&65536?(e.flags=t&-65537|128,e):null;case 19:return pe(ve),null;case 4:return fo(),null;case 10:return Hu(e.type._context),null;case 22:case 23:return rd(),null;case 24:return null;default:return null}}var sa=!1,Ye=!1,iw=typeof WeakSet=="function"?WeakSet:Set,D=null;function jn(t,e){var r=t.ref;if(r!==null)if(typeof r=="function")try{r(null)}catch(n){Ce(t,e,n)}else r.current=null}function Ml(t,e,r){try{r()}catch(n){Ce(t,e,n)}}var Pf=!1;function aw(t,e){if(ml=qa,t=Yp(),Mu(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,l=-1,c=0,u=0,d=t,f=null;t:for(;;){for(var p;d!==r||o!==0&&d.nodeType!==3||(s=a+o),d!==i||n!==0&&d.nodeType!==3||(l=a+n),d.nodeType===3&&(a+=d.nodeValue.length),(p=d.firstChild)!==null;)f=d,d=p;for(;;){if(d===t)break t;if(f===r&&++c===o&&(s=a),f===i&&++u===n&&(l=a),(p=d.nextSibling)!==null)break;d=f,f=d.parentNode}d=p}r=s===-1||l===-1?null:{start:s,end:l}}else r=null}r=r||{start:0,end:0}}else r=null;for(yl={focusedElem:t,selectionRange:r},qa=!1,D=e;D!==null;)if(e=D,t=e.child,(e.subtreeFlags&1028)!==0&&t!==null)t.return=e,D=t;else for(;D!==null;){e=D;try{var h=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var m=h.memoizedProps,C=h.memoizedState,v=e.stateNode,g=v.getSnapshotBeforeUpdate(e.elementType===e.type?m:Ut(e.type,m),C);v.__reactInternalSnapshotBeforeUpdate=g}break;case 3:var y=e.stateNode.containerInfo;y.nodeType===1?y.textContent="":y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(x(163))}}catch(k){Ce(e,e.return,k)}if(t=e.sibling,t!==null){t.return=e.return,D=t;break}D=e.return}return h=Pf,Pf=!1,h}function Jo(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&&Ml(e,r,i)}o=o.next}while(o!==n)}}function Os(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 Ol(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[er],delete e[ki],delete e[Cl],delete e[q0],delete e[j0])),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 Vg(t){return t.tag===5||t.tag===3||t.tag===4}function Nf(t){e:for(;;){for(;t.sibling===null;){if(t.return===null||Vg(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 Fl(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=Ga));else if(n!==4&&(t=t.child,t!==null))for(Fl(t,e,r),t=t.sibling;t!==null;)Fl(t,e,r),t=t.sibling}function Dl(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(Dl(t,e,r),t=t.sibling;t!==null;)Dl(t,e,r),t=t.sibling}var He=null,qt=!1;function Ir(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(Is,r)}catch{}switch(r.tag){case 5:Ye||jn(r,e);case 6:var n=He,o=qt;He=null,Ir(t,e,r),He=n,qt=o,He!==null&&(qt?(t=He,r=r.stateNode,t.nodeType===8?t.parentNode.removeChild(r):t.removeChild(r)):He.removeChild(r.stateNode));break;case 18:He!==null&&(qt?(t=He,r=r.stateNode,t.nodeType===8?yc(t.parentNode,r):t.nodeType===1&&yc(t,r),gi(t)):yc(He,r.stateNode));break;case 4:n=He,o=qt,He=r.stateNode.containerInfo,qt=!0,Ir(t,e,r),He=n,qt=o;break;case 0:case 11:case 14:case 15:if(!Ye&&(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||i&4)&&Ml(r,e,a),o=o.next}while(o!==n)}Ir(t,e,r);break;case 1:if(!Ye&&(jn(r,e),n=r.stateNode,typeof n.componentWillUnmount=="function"))try{n.props=r.memoizedProps,n.state=r.memoizedState,n.componentWillUnmount()}catch(s){Ce(r,e,s)}Ir(t,e,r);break;case 21:Ir(t,e,r);break;case 22:r.mode&1?(Ye=(n=Ye)||r.memoizedState!==null,Ir(t,e,r),Ye=n):Ir(t,e,r);break;default:Ir(t,e,r)}}function Rf(t){var e=t.updateQueue;if(e!==null){t.updateQueue=null;var r=t.stateNode;r===null&&(r=t.stateNode=new iw),e.forEach(function(n){var o=gw.bind(null,t,n);r.has(n)||(r.add(n),n.then(o,o))})}}function Lt(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:He=s.stateNode,qt=!1;break e;case 3:He=s.stateNode.containerInfo,qt=!0;break e;case 4:He=s.stateNode.containerInfo,qt=!0;break e}s=s.return}if(He===null)throw Error(x(160));Qg(i,a,o),He=null,qt=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(c){Ce(o,e,c)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)Yg(e,t),e=e.sibling}function Yg(t,e){var r=t.alternate,n=t.flags;switch(t.tag){case 0:case 11:case 14:case 15:if(Lt(e,t),Qt(t),n&4){try{Jo(3,t,t.return),Os(3,t)}catch(m){Ce(t,t.return,m)}try{Jo(5,t,t.return)}catch(m){Ce(t,t.return,m)}}break;case 1:Lt(e,t),Qt(t),n&512&&r!==null&&jn(r,r.return);break;case 5:if(Lt(e,t),Qt(t),n&512&&r!==null&&jn(r,r.return),t.flags&32){var o=t.stateNode;try{di(o,"")}catch(m){Ce(t,t.return,m)}}if(n&4&&(o=t.stateNode,o!=null)){var i=t.memoizedProps,a=r!==null?r.memoizedProps:i,s=t.type,l=t.updateQueue;if(t.updateQueue=null,l!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&vp(o,i),sl(s,a);var c=sl(s,i);for(a=0;a<l.length;a+=2){var u=l[a],d=l[a+1];u==="style"?Cp(o,d):u==="dangerouslySetInnerHTML"?wp(o,d):u==="children"?di(o,d):Cu(o,u,d,c)}switch(s){case"input":rl(o,i);break;case"textarea":mp(o,i);break;case"select":var f=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var p=i.value;p!=null?eo(o,!!i.multiple,p,!1):f!==!!i.multiple&&(i.defaultValue!=null?eo(o,!!i.multiple,i.defaultValue,!0):eo(o,!!i.multiple,i.multiple?[]:"",!1))}o[ki]=i}catch(m){Ce(t,t.return,m)}}break;case 6:if(Lt(e,t),Qt(t),n&4){if(t.stateNode===null)throw Error(x(162));o=t.stateNode,i=t.memoizedProps;try{o.nodeValue=i}catch(m){Ce(t,t.return,m)}}break;case 3:if(Lt(e,t),Qt(t),n&4&&r!==null&&r.memoizedState.isDehydrated)try{gi(e.containerInfo)}catch(m){Ce(t,t.return,m)}break;case 4:Lt(e,t),Qt(t);break;case 13:Lt(e,t),Qt(t),o=t.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(ed=Se())),n&4&&Rf(t);break;case 22:if(u=r!==null&&r.memoizedState!==null,t.mode&1?(Ye=(c=Ye)||u,Lt(e,t),Ye=c):Lt(e,t),Qt(t),n&8192){if(c=t.memoizedState!==null,(t.stateNode.isHidden=c)&&!u&&t.mode&1)for(D=t,u=t.child;u!==null;){for(d=D=u;D!==null;){switch(f=D,p=f.child,f.tag){case 0:case 11:case 14:case 15:Jo(4,f,f.return);break;case 1:jn(f,f.return);var h=f.stateNode;if(typeof h.componentWillUnmount=="function"){n=f,r=f.return;try{e=n,h.props=e.memoizedProps,h.state=e.memoizedState,h.componentWillUnmount()}catch(m){Ce(n,r,m)}}break;case 5:jn(f,f.return);break;case 22:if(f.memoizedState!==null){xf(d);continue}}p!==null?(p.return=f,D=p):xf(d)}u=u.sibling}e:for(u=null,d=t;;){if(d.tag===5){if(u===null){u=d;try{o=d.stateNode,c?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=d.stateNode,l=d.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=kp("display",a))}catch(m){Ce(t,t.return,m)}}}else if(d.tag===6){if(u===null)try{d.stateNode.nodeValue=c?"":d.memoizedProps}catch(m){Ce(t,t.return,m)}}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:Lt(e,t),Qt(t),n&4&&Rf(t);break;case 21:break;default:Lt(e,t),Qt(t)}}function Qt(t){var e=t.flags;if(e&2){try{e:{for(var r=t.return;r!==null;){if(Vg(r)){var n=r;break e}r=r.return}throw Error(x(160))}switch(n.tag){case 5:var o=n.stateNode;n.flags&32&&(di(o,""),n.flags&=-33);var i=Nf(t);Dl(t,i,o);break;case 3:case 4:var a=n.stateNode.containerInfo,s=Nf(t);Fl(t,s,a);break;default:throw Error(x(161))}}catch(l){Ce(t,t.return,l)}t.flags&=-3}e&4096&&(t.flags&=-4097)}function sw(t,e,r){D=t,$g(t)}function $g(t,e,r){for(var n=(t.mode&1)!==0;D!==null;){var o=D,i=o.child;if(o.tag===22&&n){var a=o.memoizedState!==null||sa;if(!a){var s=o.alternate,l=s!==null&&s.memoizedState!==null||Ye;s=sa;var c=Ye;if(sa=a,(Ye=l)&&!c)for(D=o;D!==null;)a=D,l=a.child,a.tag===22&&a.memoizedState!==null?Mf(o):l!==null?(l.return=a,D=l):Mf(o);for(;i!==null;)D=i,$g(i),i=i.sibling;D=o,sa=s,Ye=c}Bf(t)}else o.subtreeFlags&8772&&i!==null?(i.return=o,D=i):Bf(t)}}function Bf(t){for(;D!==null;){var e=D;if(e.flags&8772){var r=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:Ye||Os(5,e);break;case 1:var n=e.stateNode;if(e.flags&4&&!Ye)if(r===null)n.componentDidMount();else{var o=e.elementType===e.type?r.memoizedProps:Ut(e.type,r.memoizedProps);n.componentDidUpdate(o,r.memoizedState,n.__reactInternalSnapshotBeforeUpdate)}var i=e.updateQueue;i!==null&&gf(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}gf(e,a,r)}break;case 5:var s=e.stateNode;if(r===null&&e.flags&4){r=s;var l=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&r.focus();break;case"img":l.src&&(r.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var c=e.alternate;if(c!==null){var u=c.memoizedState;if(u!==null){var d=u.dehydrated;d!==null&&gi(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(x(163))}Ye||e.flags&512&&Ol(e)}catch(f){Ce(e,e.return,f)}}if(e===t){D=null;break}if(r=e.sibling,r!==null){r.return=e.return,D=r;break}D=e.return}}function xf(t){for(;D!==null;){var e=D;if(e===t){D=null;break}var r=e.sibling;if(r!==null){r.return=e.return,D=r;break}D=e.return}}function Mf(t){for(;D!==null;){var e=D;try{switch(e.tag){case 0:case 11:case 15:var r=e.return;try{Os(4,e)}catch(l){Ce(e,r,l)}break;case 1:var n=e.stateNode;if(typeof n.componentDidMount=="function"){var o=e.return;try{n.componentDidMount()}catch(l){Ce(e,o,l)}}var i=e.return;try{Ol(e)}catch(l){Ce(e,i,l)}break;case 5:var a=e.return;try{Ol(e)}catch(l){Ce(e,a,l)}}}catch(l){Ce(e,e.return,l)}if(e===t){D=null;break}var s=e.sibling;if(s!==null){s.return=e.return,D=s;break}D=e.return}}var cw=Math.ceil,rs=br.ReactCurrentDispatcher,Ju=br.ReactCurrentOwner,xt=br.ReactCurrentBatchConfig,re=0,ze=null,Ae=null,qe=0,wt=0,Kn=Xr(0),Me=0,Ti=null,Sn=0,Fs=0,Zu=0,Zo=null,ut=null,ed=0,po=1/0,ir=null,ns=!1,zl=null,Gr=null,ca=!1,Lr=null,os=0,ei=0,Ll=null,Ta=-1,Ia=0;function nt(){return re&6?Se():Ta!==-1?Ta:Ta=Se()}function Wr(t){return t.mode&1?re&2&&qe!==0?qe&-qe:G0.transition!==null?(Ia===0&&(Ia=xp()),Ia):(t=ie,t!==0||(t=window.event,t=t===void 0?16:Hp(t.type)),t):1}function Wt(t,e,r,n){if(50<ei)throw ei=0,Ll=null,Error(x(185));xi(t,r,n),(!(re&2)||t!==ze)&&(t===ze&&(!(re&2)&&(Fs|=r),Me===4&&Fr(t,qe)),gt(t,n),r===1&&re===0&&!(e.mode&1)&&(po=Se()+500,Bs&&Jr()))}function gt(t,e){var r=t.callbackNode;Gy(t,e);var n=Ua(t,t===ze?qe:0);if(n===0)r!==null&&qd(r),t.callbackNode=null,t.callbackPriority=0;else if(e=n&-n,t.callbackPriority!==e){if(r!=null&&qd(r),e===1)t.tag===0?K0(Of.bind(null,t)):ig(Of.bind(null,t)),H0(function(){!(re&6)&&Jr()}),r=null;else{switch(Mp(n)){case 1:r=Tu;break;case 4:r=Rp;break;case 16:r=Ha;break;case 536870912:r=Bp;break;default:r=Ha}r=ov(r,Xg.bind(null,t))}t.callbackPriority=e,t.callbackNode=r}}function Xg(t,e){if(Ta=-1,Ia=0,re&6)throw Error(x(327));var r=t.callbackNode;if(io()&&t.callbackNode!==r)return null;var n=Ua(t,t===ze?qe:0);if(n===0)return null;if(n&30||n&t.expiredLanes||e)e=is(t,n);else{e=n;var o=re;re|=2;var i=Zg();(ze!==t||qe!==e)&&(ir=null,po=Se()+500,gn(t,e));do try{dw();break}catch(s){Jg(t,s)}while(!0);Lu(),rs.current=i,re=o,Ae!==null?e=0:(ze=null,qe=0,e=Me)}if(e!==0){if(e===2&&(o=fl(t),o!==0&&(n=o,e=Hl(t,o))),e===1)throw r=Ti,gn(t,0),Fr(t,n),gt(t,Se()),r;if(e===6)Fr(t,n);else{if(o=t.current.alternate,!(n&30)&&!lw(o)&&(e=is(t,n),e===2&&(i=fl(t),i!==0&&(n=i,e=Hl(t,i))),e===1))throw r=Ti,gn(t,0),Fr(t,n),gt(t,Se()),r;switch(t.finishedWork=o,t.finishedLanes=n,e){case 0:case 1:throw Error(x(345));case 2:on(t,ut,ir);break;case 3:if(Fr(t,n),(n&130023424)===n&&(e=ed+500-Se(),10<e)){if(Ua(t,0)!==0)break;if(o=t.suspendedLanes,(o&n)!==n){nt(),t.pingedLanes|=t.suspendedLanes&o;break}t.timeoutHandle=kl(on.bind(null,t,ut,ir),e);break}on(t,ut,ir);break;case 4:if(Fr(t,n),(n&4194240)===n)break;for(e=t.eventTimes,o=-1;0<n;){var a=31-Gt(n);i=1<<a,a=e[a],a>o&&(o=a),n&=~i}if(n=o,n=Se()-n,n=(120>n?120:480>n?480:1080>n?1080:1920>n?1920:3e3>n?3e3:4320>n?4320:1960*cw(n/1960))-n,10<n){t.timeoutHandle=kl(on.bind(null,t,ut,ir),n);break}on(t,ut,ir);break;case 5:on(t,ut,ir);break;default:throw Error(x(329))}}}return gt(t,Se()),t.callbackNode===r?Xg.bind(null,t):null}function Hl(t,e){var r=Zo;return t.current.memoizedState.isDehydrated&&(gn(t,e).flags|=256),t=is(t,e),t!==2&&(e=ut,ut=r,e!==null&&Ul(e)),t}function Ul(t){ut===null?ut=t:ut.push.apply(ut,t)}function lw(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 Fr(t,e){for(e&=~Zu,e&=~Fs,t.suspendedLanes|=e,t.pingedLanes&=~e,t=t.expirationTimes;0<e;){var r=31-Gt(e),n=1<<r;t[r]=-1,e&=~n}}function Of(t){if(re&6)throw Error(x(327));io();var e=Ua(t,0);if(!(e&1))return gt(t,Se()),null;var r=is(t,e);if(t.tag!==0&&r===2){var n=fl(t);n!==0&&(e=n,r=Hl(t,n))}if(r===1)throw r=Ti,gn(t,0),Fr(t,e),gt(t,Se()),r;if(r===6)throw Error(x(345));return t.finishedWork=t.current.alternate,t.finishedLanes=e,on(t,ut,ir),gt(t,Se()),null}function td(t,e){var r=re;re|=1;try{return t(e)}finally{re=r,re===0&&(po=Se()+500,Bs&&Jr())}}function En(t){Lr!==null&&Lr.tag===0&&!(re&6)&&io();var e=re;re|=1;var r=xt.transition,n=ie;try{if(xt.transition=null,ie=1,t)return t()}finally{ie=n,xt.transition=r,re=e,!(re&6)&&Jr()}}function rd(){wt=Kn.current,pe(Kn)}function gn(t,e){t.finishedWork=null,t.finishedLanes=0;var r=t.timeoutHandle;if(r!==-1&&(t.timeoutHandle=-1,L0(r)),Ae!==null)for(r=Ae.return;r!==null;){var n=r;switch(Fu(n),n.tag){case 1:n=n.type.childContextTypes,n!=null&&Wa();break;case 3:fo(),pe(ht),pe(Je),Gu();break;case 5:Ku(n);break;case 4:fo();break;case 13:pe(ve);break;case 19:pe(ve);break;case 10:Hu(n.type._context);break;case 22:case 23:rd()}r=r.return}if(ze=t,Ae=t=Vr(t.current,null),qe=wt=e,Me=0,Ti=null,Zu=Fs=Sn=0,ut=Zo=null,un!==null){for(e=0;e<un.length;e++)if(r=un[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}un=null}return t}function Jg(t,e){do{var r=Ae;try{if(Lu(),ba.current=ts,es){for(var n=ye.memoizedState;n!==null;){var o=n.queue;o!==null&&(o.pending=null),n=n.next}es=!1}if(bn=0,De=Be=ye=null,Xo=!1,bi=0,Ju.current=null,r===null||r.return===null){Me=1,Ti=e,Ae=null;break}e:{var i=t,a=r.return,s=r,l=e;if(e=qe,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var c=l,u=s,d=u.tag;if(!(u.mode&1)&&(d===0||d===11||d===15)){var f=u.alternate;f?(u.updateQueue=f.updateQueue,u.memoizedState=f.memoizedState,u.lanes=f.lanes):(u.updateQueue=null,u.memoizedState=null)}var p=_f(a);if(p!==null){p.flags&=-257,bf(p,a,s,i,e),p.mode&1&&Cf(i,c,e),e=p,l=c;var h=e.updateQueue;if(h===null){var m=new Set;m.add(l),e.updateQueue=m}else h.add(l);break e}else{if(!(e&1)){Cf(i,c,e),nd();break e}l=Error(x(426))}}else if(ge&&s.mode&1){var C=_f(a);if(C!==null){!(C.flags&65536)&&(C.flags|=256),bf(C,a,s,i,e),Du(ho(l,s));break e}}i=l=ho(l,s),Me!==4&&(Me=2),Zo===null?Zo=[i]:Zo.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,e&=-e,i.lanes|=e;var v=Og(i,l,e);pf(i,v);break e;case 1:s=l;var g=i.type,y=i.stateNode;if(!(i.flags&128)&&(typeof g.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Gr===null||!Gr.has(y)))){i.flags|=65536,e&=-e,i.lanes|=e;var k=Fg(i,s,e);pf(i,k);break e}}i=i.return}while(i!==null)}tv(r)}catch(T){e=T,Ae===r&&r!==null&&(Ae=r=r.return);continue}break}while(!0)}function Zg(){var t=rs.current;return rs.current=ts,t===null?ts:t}function nd(){(Me===0||Me===3||Me===2)&&(Me=4),ze===null||!(Sn&268435455)&&!(Fs&268435455)||Fr(ze,qe)}function is(t,e){var r=re;re|=2;var n=Zg();(ze!==t||qe!==e)&&(ir=null,gn(t,e));do try{uw();break}catch(o){Jg(t,o)}while(!0);if(Lu(),re=r,rs.current=n,Ae!==null)throw Error(x(261));return ze=null,qe=0,Me}function uw(){for(;Ae!==null;)ev(Ae)}function dw(){for(;Ae!==null&&!Fy();)ev(Ae)}function ev(t){var e=nv(t.alternate,t,wt);t.memoizedProps=t.pendingProps,e===null?tv(t):Ae=e,Ju.current=null}function tv(t){var e=t;do{var r=e.alternate;if(t=e.return,e.flags&32768){if(r=ow(r,e),r!==null){r.flags&=32767,Ae=r;return}if(t!==null)t.flags|=32768,t.subtreeFlags=0,t.deletions=null;else{Me=6,Ae=null;return}}else if(r=nw(r,e,wt),r!==null){Ae=r;return}if(e=e.sibling,e!==null){Ae=e;return}Ae=e=t}while(e!==null);Me===0&&(Me=5)}function on(t,e,r){var n=ie,o=xt.transition;try{xt.transition=null,ie=1,fw(t,e,r,n)}finally{xt.transition=o,ie=n}return null}function fw(t,e,r,n){do io();while(Lr!==null);if(re&6)throw Error(x(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(x(177));t.callbackNode=null,t.callbackPriority=0;var i=r.lanes|r.childLanes;if(Wy(t,i),t===ze&&(Ae=ze=null,qe=0),!(r.subtreeFlags&2064)&&!(r.flags&2064)||ca||(ca=!0,ov(Ha,function(){return io(),null})),i=(r.flags&15990)!==0,r.subtreeFlags&15990||i){i=xt.transition,xt.transition=null;var a=ie;ie=1;var s=re;re|=4,Ju.current=null,aw(t,r),Yg(r,t),B0(yl),qa=!!ml,yl=ml=null,t.current=r,sw(r),Dy(),re=s,ie=a,xt.transition=i}else t.current=r;if(ca&&(ca=!1,Lr=t,os=o),i=t.pendingLanes,i===0&&(Gr=null),Hy(r.stateNode),gt(t,Se()),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(ns)throw ns=!1,t=zl,zl=null,t;return os&1&&t.tag!==0&&io(),i=t.pendingLanes,i&1?t===Ll?ei++:(ei=0,Ll=t):ei=0,Jr(),null}function io(){if(Lr!==null){var t=Mp(os),e=xt.transition,r=ie;try{if(xt.transition=null,ie=16>t?16:t,Lr===null)var n=!1;else{if(t=Lr,Lr=null,os=0,re&6)throw Error(x(331));var o=re;for(re|=4,D=t.current;D!==null;){var i=D,a=i.child;if(D.flags&16){var s=i.deletions;if(s!==null){for(var l=0;l<s.length;l++){var c=s[l];for(D=c;D!==null;){var u=D;switch(u.tag){case 0:case 11:case 15:Jo(8,u,i)}var d=u.child;if(d!==null)d.return=u,D=d;else for(;D!==null;){u=D;var f=u.sibling,p=u.return;if(Wg(u),u===c){D=null;break}if(f!==null){f.return=p,D=f;break}D=p}}}var h=i.alternate;if(h!==null){var m=h.child;if(m!==null){h.child=null;do{var C=m.sibling;m.sibling=null,m=C}while(m!==null)}}D=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,D=a;else e:for(;D!==null;){if(i=D,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Jo(9,i,i.return)}var v=i.sibling;if(v!==null){v.return=i.return,D=v;break e}D=i.return}}var g=t.current;for(D=g;D!==null;){a=D;var y=a.child;if(a.subtreeFlags&2064&&y!==null)y.return=a,D=y;else e:for(a=g;D!==null;){if(s=D,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:Os(9,s)}}catch(T){Ce(s,s.return,T)}if(s===a){D=null;break e}var k=s.sibling;if(k!==null){k.return=s.return,D=k;break e}D=s.return}}if(re=o,Jr(),rr&&typeof rr.onPostCommitFiberRoot=="function")try{rr.onPostCommitFiberRoot(Is,t)}catch{}n=!0}return n}finally{ie=r,xt.transition=e}}return!1}function Ff(t,e,r){e=ho(r,e),e=Og(t,e,1),t=Kr(t,e,1),e=nt(),t!==null&&(xi(t,1,e),gt(t,e))}function Ce(t,e,r){if(t.tag===3)Ff(t,t,r);else for(;e!==null;){if(e.tag===3){Ff(e,t,r);break}else if(e.tag===1){var n=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof n.componentDidCatch=="function"&&(Gr===null||!Gr.has(n))){t=ho(r,t),t=Fg(e,t,1),e=Kr(e,t,1),t=nt(),e!==null&&(xi(e,1,t),gt(e,t));break}}e=e.return}}function hw(t,e,r){var n=t.pingCache;n!==null&&n.delete(e),e=nt(),t.pingedLanes|=t.suspendedLanes&r,ze===t&&(qe&r)===r&&(Me===4||Me===3&&(qe&130023424)===qe&&500>Se()-ed?gn(t,0):Zu|=r),gt(t,e)}function rv(t,e){e===0&&(t.mode&1?(e=Ji,Ji<<=1,!(Ji&130023424)&&(Ji=4194304)):e=1);var r=nt();t=kr(t,e),t!==null&&(xi(t,e,r),gt(t,r))}function pw(t){var e=t.memoizedState,r=0;e!==null&&(r=e.retryLane),rv(t,r)}function gw(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(x(314))}n!==null&&n.delete(e),rv(t,r)}var nv;nv=function(t,e,r){if(t!==null)if(t.memoizedProps!==e.pendingProps||ht.current)ft=!0;else{if(!(t.lanes&r)&&!(e.flags&128))return ft=!1,rw(t,e,r);ft=!!(t.flags&131072)}else ft=!1,ge&&e.flags&1048576&&ag(e,Ya,e.index);switch(e.lanes=0,e.tag){case 2:var n=e.type;Ea(t,e),t=e.pendingProps;var o=co(e,Je.current);oo(e,r),o=Vu(null,e,n,t,o,r);var i=Qu();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,pt(n)?(i=!0,Va(e)):i=!1,e.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,qu(e),o.updater=xs,e.stateNode=o,o._reactInternals=e,Il(e,n,t,r),e=Nl(null,e,n,!0,i,r)):(e.tag=0,ge&&i&&Ou(e),Ze(null,e,o,r),e=e.child),e;case 16:n=e.elementType;e:{switch(Ea(t,e),t=e.pendingProps,o=n._init,n=o(n._payload),e.type=n,o=e.tag=mw(n),t=Ut(n,t),o){case 0:e=Pl(null,e,n,t,r);break e;case 1:e=Tf(null,e,n,t,r);break e;case 11:e=Sf(null,e,n,t,r);break e;case 14:e=Ef(null,e,n,Ut(n.type,t),r);break e}throw Error(x(306,n,""))}return e;case 0:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:Ut(n,o),Pl(t,e,n,o,r);case 1:return n=e.type,o=e.pendingProps,o=e.elementType===n?o:Ut(n,o),Tf(t,e,n,o,r);case 3:e:{if(Hg(e),t===null)throw Error(x(387));n=e.pendingProps,i=e.memoizedState,o=i.element,ug(t,e),Ja(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=ho(Error(x(423)),e),e=If(t,e,n,r,o);break e}else if(n!==o){o=ho(Error(x(424)),e),e=If(t,e,n,r,o);break e}else for(kt=jr(e.stateNode.containerInfo.firstChild),_t=e,ge=!0,jt=null,r=pg(e,null,n,r),e.child=r;r;)r.flags=r.flags&-3|4096,r=r.sibling;else{if(lo(),n===o){e=Cr(t,e,r);break e}Ze(t,e,n,r)}e=e.child}return e;case 5:return gg(e),t===null&&Sl(e),n=e.type,o=e.pendingProps,i=t!==null?t.memoizedProps:null,a=o.children,wl(n,o)?a=null:i!==null&&wl(n,i)&&(e.flags|=32),Lg(t,e),Ze(t,e,a,r),e.child;case 6:return t===null&&Sl(e),null;case 13:return Ug(t,e,r);case 4:return ju(e,e.stateNode.containerInfo),n=e.pendingProps,t===null?e.child=uo(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:Ut(n,o),Sf(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,de($a,n._currentValue),n._currentValue=a,i!==null)if(Vt(i.value,a)){if(i.children===o.children&&!ht.current){e=Cr(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 l=s.firstContext;l!==null;){if(l.context===n){if(i.tag===1){l=fr(-1,r&-r),l.tag=2;var c=i.updateQueue;if(c!==null){c=c.shared;var u=c.pending;u===null?l.next=l:(l.next=u.next,u.next=l),c.pending=l}}i.lanes|=r,l=i.alternate,l!==null&&(l.lanes|=r),El(i.return,r,e),s.lanes|=r;break}l=l.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(x(341));a.lanes|=r,s=a.alternate,s!==null&&(s.lanes|=r),El(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,oo(e,r),o=Ft(o),n=n(o),e.flags|=1,Ze(t,e,n,r),e.child;case 14:return n=e.type,o=Ut(n,e.pendingProps),o=Ut(n.type,o),Ef(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:Ut(n,o),Ea(t,e),e.tag=1,pt(n)?(t=!0,Va(e)):t=!1,oo(e,r),fg(e,n,o),Il(e,n,o,r),Nl(null,e,n,!0,t,r);case 19:return qg(t,e,r);case 22:return zg(t,e,r)}throw Error(x(156,e.tag))};function ov(t,e){return Np(t,e)}function vw(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 Rt(t,e,r,n){return new vw(t,e,r,n)}function od(t){return t=t.prototype,!(!t||!t.isReactComponent)}function mw(t){if(typeof t=="function")return od(t)?1:0;if(t!=null){if(t=t.$$typeof,t===bu)return 11;if(t===Su)return 14}return 2}function Vr(t,e){var r=t.alternate;return r===null?(r=Rt(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 Aa(t,e,r,n,o,i){var a=2;if(n=t,typeof t=="function")od(t)&&(a=1);else if(typeof t=="string")a=5;else e:switch(t){case Mn:return vn(r.children,o,i,e);case _u:a=8,o|=8;break;case Xc:return t=Rt(12,r,e,o|2),t.elementType=Xc,t.lanes=i,t;case Jc:return t=Rt(13,r,e,o),t.elementType=Jc,t.lanes=i,t;case Zc:return t=Rt(19,r,e,o),t.elementType=Zc,t.lanes=i,t;case hp:return Ds(r,o,i,e);default:if(typeof t=="object"&&t!==null)switch(t.$$typeof){case dp:a=10;break e;case fp:a=9;break e;case bu:a=11;break e;case Su:a=14;break e;case Nr:a=16,n=null;break e}throw Error(x(130,t==null?t:typeof t,""))}return e=Rt(a,r,e,o),e.elementType=t,e.type=n,e.lanes=i,e}function vn(t,e,r,n){return t=Rt(7,t,n,e),t.lanes=r,t}function Ds(t,e,r,n){return t=Rt(22,t,n,e),t.elementType=hp,t.lanes=r,t.stateNode={isHidden:!1},t}function Tc(t,e,r){return t=Rt(6,t,null,e),t.lanes=r,t}function Ic(t,e,r){return e=Rt(4,t.children!==null?t.children:[],t.key,e),e.lanes=r,e.stateNode={containerInfo:t.containerInfo,pendingChildren:null,implementation:t.implementation},e}function yw(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=sc(0),this.expirationTimes=sc(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sc(0),this.identifierPrefix=n,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function id(t,e,r,n,o,i,a,s,l){return t=new yw(t,e,r,s,l),e===1?(e=1,i===!0&&(e|=8)):e=0,i=Rt(3,null,null,e),t.current=i,i.stateNode=t,i.memoizedState={element:n,isDehydrated:r,cache:null,transitions:null,pendingSuspenseBoundaries:null},qu(i),t}function ww(t,e,r){var n=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:xn,key:n==null?null:""+n,children:t,containerInfo:e,implementation:r}}function iv(t){if(!t)return Yr;t=t._reactInternals;e:{if(Pn(t)!==t||t.tag!==1)throw Error(x(170));var e=t;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(pt(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(x(171))}if(t.tag===1){var r=t.type;if(pt(r))return og(t,r,e)}return e}function av(t,e,r,n,o,i,a,s,l){return t=id(r,n,!0,t,o,i,a,s,l),t.context=iv(null),r=t.current,n=nt(),o=Wr(r),i=fr(n,o),i.callback=e??null,Kr(r,i,o),t.current.lanes=o,xi(t,o,n),gt(t,n),t}function zs(t,e,r,n){var o=e.current,i=nt(),a=Wr(o);return r=iv(r),e.context===null?e.context=r:e.pendingContext=r,e=fr(i,a),e.payload={element:t},n=n===void 0?null:n,n!==null&&(e.callback=n),t=Kr(o,e,a),t!==null&&(Wt(t,o,a,i),_a(t,o,a)),a}function as(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 Df(t,e){if(t=t.memoizedState,t!==null&&t.dehydrated!==null){var r=t.retryLane;t.retryLane=r!==0&&r<e?r:e}}function ad(t,e){Df(t,e),(t=t.alternate)&&Df(t,e)}function kw(){return null}var sv=typeof reportError=="function"?reportError:function(t){console.error(t)};function sd(t){this._internalRoot=t}Ls.prototype.render=sd.prototype.render=function(t){var e=this._internalRoot;if(e===null)throw Error(x(409));zs(t,e,null,null)};Ls.prototype.unmount=sd.prototype.unmount=function(){var t=this._internalRoot;if(t!==null){this._internalRoot=null;var e=t.containerInfo;En(function(){zs(null,t,null,null)}),e[wr]=null}};function Ls(t){this._internalRoot=t}Ls.prototype.unstable_scheduleHydration=function(t){if(t){var e=Dp();t={blockedOn:null,target:t,priority:e};for(var r=0;r<Or.length&&e!==0&&e<Or[r].priority;r++);Or.splice(r,0,t),r===0&&Lp(t)}};function cd(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)}function Hs(t){return!(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11&&(t.nodeType!==8||t.nodeValue!==" react-mount-point-unstable "))}function zf(){}function Cw(t,e,r,n,o){if(o){if(typeof n=="function"){var i=n;n=function(){var c=as(a);i.call(c)}}var a=av(e,n,t,0,null,!1,!1,"",zf);return t._reactRootContainer=a,t[wr]=a.current,yi(t.nodeType===8?t.parentNode:t),En(),a}for(;o=t.lastChild;)t.removeChild(o);if(typeof n=="function"){var s=n;n=function(){var c=as(l);s.call(c)}}var l=id(t,0,!1,null,null,!1,!1,"",zf);return t._reactRootContainer=l,t[wr]=l.current,yi(t.nodeType===8?t.parentNode:t),En(function(){zs(e,l,r,n)}),l}function Us(t,e,r,n,o){var i=r._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var s=o;o=function(){var l=as(a);s.call(l)}}zs(e,a,t,o)}else a=Cw(r,e,t,o,n);return as(a)}Op=function(t){switch(t.tag){case 3:var e=t.stateNode;if(e.current.memoizedState.isDehydrated){var r=Ho(e.pendingLanes);r!==0&&(Iu(e,r|1),gt(e,Se()),!(re&6)&&(po=Se()+500,Jr()))}break;case 13:En(function(){var n=kr(t,1);if(n!==null){var o=nt();Wt(n,t,1,o)}}),ad(t,1)}};Au=function(t){if(t.tag===13){var e=kr(t,134217728);if(e!==null){var r=nt();Wt(e,t,134217728,r)}ad(t,134217728)}};Fp=function(t){if(t.tag===13){var e=Wr(t),r=kr(t,e);if(r!==null){var n=nt();Wt(r,t,e,n)}ad(t,e)}};Dp=function(){return ie};zp=function(t,e){var r=ie;try{return ie=t,e()}finally{ie=r}};ll=function(t,e,r){switch(e){case"input":if(rl(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=Rs(n);if(!o)throw Error(x(90));gp(n),rl(n,o)}}}break;case"textarea":mp(t,r);break;case"select":e=r.value,e!=null&&eo(t,!!r.multiple,e,!1)}};Sp=td;Ep=En;var _w={usingClientEntryPoint:!1,Events:[Oi,zn,Rs,_p,bp,td]},Bo={findFiberByHostInstance:ln,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},bw={bundleType:Bo.bundleType,version:Bo.version,rendererPackageName:Bo.rendererPackageName,rendererConfig:Bo.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:br.ReactCurrentDispatcher,findHostInstanceByFiber:function(t){return t=Ap(t),t===null?null:t.stateNode},findFiberByHostInstance:Bo.findFiberByHostInstance||kw,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 la=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!la.isDisabled&&la.supportsFiber)try{Is=la.inject(bw),rr=la}catch{}}Tt.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=_w;Tt.createPortal=function(t,e){var r=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!cd(e))throw Error(x(200));return ww(t,e,null,r)};Tt.createRoot=function(t,e){if(!cd(t))throw Error(x(299));var r=!1,n="",o=sv;return e!=null&&(e.unstable_strictMode===!0&&(r=!0),e.identifierPrefix!==void 0&&(n=e.identifierPrefix),e.onRecoverableError!==void 0&&(o=e.onRecoverableError)),e=id(t,1,!1,null,null,r,!1,n,o),t[wr]=e.current,yi(t.nodeType===8?t.parentNode:t),new sd(e)};Tt.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(x(188)):(t=Object.keys(t).join(","),Error(x(268,t)));return t=Ap(e),t=t===null?null:t.stateNode,t};Tt.flushSync=function(t){return En(t)};Tt.hydrate=function(t,e,r){if(!Hs(e))throw Error(x(200));return Us(null,t,e,!0,r)};Tt.hydrateRoot=function(t,e,r){if(!cd(t))throw Error(x(405));var n=r!=null&&r.hydratedSources||null,o=!1,i="",a=sv;if(r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(i=r.identifierPrefix),r.onRecoverableError!==void 0&&(a=r.onRecoverableError)),e=av(e,null,t,1,r??null,o,!1,i,a),t[wr]=e.current,yi(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 Ls(e)};Tt.render=function(t,e,r){if(!Hs(e))throw Error(x(200));return Us(null,t,e,!1,r)};Tt.unmountComponentAtNode=function(t){if(!Hs(t))throw Error(x(40));return t._reactRootContainer?(En(function(){Us(null,null,t,!1,function(){t._reactRootContainer=null,t[wr]=null})}),!0):!1};Tt.unstable_batchedUpdates=td;Tt.unstable_renderSubtreeIntoContainer=function(t,e,r,n){if(!Hs(r))throw Error(x(200));if(t==null||t._reactInternals===void 0)throw Error(x(38));return Us(t,e,r,!1,n)};Tt.version="18.2.0-next-9e3b772b8-20220608";function cv(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(cv)}catch(t){console.error(t)}}cv(),ap.exports=Tt;var Sw=ap.exports,lv,Lf=Sw;lv=Lf.createRoot,Lf.hydrateRoot;const Ew=["Top","Right","Bottom","Left"];function Di(t,e,...r){const[n,o=n,i=n,a=o]=r,s=[n,o,i,a],l={};for(let c=0;c<s.length;c+=1)if(s[c]||s[c]===0){const u=t+Ew[c]+e;l[u]=s[c]}return l}function ql(...t){return Di("border","Width",...t)}function jl(...t){return Di("border","Style",...t)}function Kl(...t){return Di("border","Color",...t)}const Tw=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function zi(t){return Tw.includes(t)}function Iw(...t){return zi(t[0])?{...jl(t[0]),...t[1]&&ql(t[1]),...t[2]&&Kl(t[2])}:{...ql(t[0]),...t[1]&&jl(t[1]),...t[2]&&Kl(t[2])}}function Aw(...t){return zi(t[0])?{borderLeftStyle:t[0],...t[1]&&{borderLeftWidth:t[1]},...t[2]&&{borderLeftColor:t[2]}}:{borderLeftWidth:t[0],...t[1]&&{borderLeftStyle:t[1]},...t[2]&&{borderLeftColor:t[2]}}}function Pw(...t){return zi(t[0])?{borderBottomStyle:t[0],...t[1]&&{borderBottomWidth:t[1]},...t[2]&&{borderBottomColor:t[2]}}:{borderBottomWidth:t[0],...t[1]&&{borderBottomStyle:t[1]},...t[2]&&{borderBottomColor:t[2]}}}function Nw(...t){return zi(t[0])?{borderRightStyle:t[0],...t[1]&&{borderRightWidth:t[1]},...t[2]&&{borderRightColor:t[2]}}:{borderRightWidth:t[0],...t[1]&&{borderRightStyle:t[1]},...t[2]&&{borderRightColor:t[2]}}}function Rw(...t){return zi(t[0])?{borderTopStyle:t[0],...t[1]&&{borderTopWidth:t[1]},...t[2]&&{borderTopColor:t[2]}}:{borderTopWidth:t[0],...t[1]&&{borderTopStyle:t[1]},...t[2]&&{borderTopColor:t[2]}}}function Bw(t,e=t,r=t,n=e){return{borderBottomRightRadius:r,borderBottomLeftRadius:n,borderTopRightRadius:e,borderTopLeftRadius:t}}const xw=t=>typeof t=="string"&&/(\d+(\w+|%))/.test(t),ua=t=>typeof t=="number"&&!Number.isNaN(t),Mw=t=>t==="initial",Hf=t=>t==="auto",Ow=t=>t==="none",Fw=["content","fit-content","max-content","min-content"],Ac=t=>Fw.some(e=>t===e)||xw(t);function Dw(...t){const e=t.length===1,r=t.length===2,n=t.length===3;if(e){const[o]=t;if(Mw(o))return{flexGrow:0,flexShrink:1,flexBasis:"auto"};if(Hf(o))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if(Ow(o))return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(ua(o))return{flexGrow:o,flexShrink:1,flexBasis:0};if(Ac(o))return{flexGrow:1,flexShrink:1,flexBasis:o}}if(r){const[o,i]=t;if(ua(i))return{flexGrow:o,flexShrink:i,flexBasis:0};if(Ac(i))return{flexGrow:o,flexShrink:1,flexBasis:i}}if(n){const[o,i,a]=t;if(ua(o)&&ua(i)&&(Hf(a)||Ac(a)))return{flexGrow:o,flexShrink:i,flexBasis:a}}return{}}function zw(t,e=t){return{columnGap:t,rowGap:e}}const Lw=/var\(.*\)/gi;function Hw(t){return t===void 0||typeof t=="number"||typeof t=="string"&&!Lw.test(t)}const Uw=/^[a-zA-Z0-9\-_\\#;]+$/,qw=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|^\d.*/;function Pc(t){return t!==void 0&&typeof t=="string"&&Uw.test(t)&&!qw.test(t)}function jw(...t){if(t.some(i=>!Hw(i)))return{};const e=t[0]!==void 0?t[0]:"auto",r=t[1]!==void 0?t[1]:Pc(e)?e:"auto",n=t[2]!==void 0?t[2]:Pc(e)?e:"auto",o=t[3]!==void 0?t[3]:Pc(r)?r:"auto";return{gridRowStart:e,gridColumnStart:r,gridRowEnd:n,gridColumnEnd:o}}function Kw(...t){return Di("margin","",...t)}function Gw(t,e=t){return{marginBlockStart:t,marginBlockEnd:e}}function Ww(t,e=t){return{marginInlineStart:t,marginInlineEnd:e}}function Vw(...t){return Di("padding","",...t)}function Qw(t,e=t){return{paddingBlockStart:t,paddingBlockEnd:e}}function Yw(t,e=t){return{paddingInlineStart:t,paddingInlineEnd:e}}function $w(t,e=t){return{overflowX:t,overflowY:e}}function Xw(...t){const[e,r=e,n=e,o=r]=t;return{top:e,right:r,bottom:n,left:o}}function Jw(t,e,r){return{outlineWidth:t,...e&&{outlineStyle:e},...r&&{outlineColor:r}}}function Zw(...t){return tk(t)?{transitionDelay:t[0],transitionDuration:t[0],transitionProperty:t[0],transitionTimingFunction:t[0]}:rk(t).reduce((r,[n,o="0s",i="0s",a="ease"],s)=>(s===0?(r.transitionProperty=n,r.transitionDuration=o,r.transitionDelay=i,r.transitionTimingFunction=a):(r.transitionProperty+=`, ${n}`,r.transitionDuration+=`, ${o}`,r.transitionDelay+=`, ${i}`,r.transitionTimingFunction+=`, ${a}`),r),{})}const ek=["-moz-initial","inherit","initial","revert","unset"];function tk(t){return t.length===1&&ek.includes(t[0])}function rk(t){return t.length===1&&Array.isArray(t[0])?t[0]:[t]}function nk(t,...e){if(e.length===0)return ik(t)?{textDecorationStyle:t}:{textDecorationLine:t};const[r,n,o]=e;return{textDecorationLine:t,...r&&{textDecorationStyle:r},...n&&{textDecorationColor:n},...o&&{textDecorationThickness:o}}}const ok=["dashed","dotted","double","solid","wavy"];function ik(t){return ok.includes(t)}const Nc=typeof window>"u"?global:window,Rc="@griffel/";function ak(t,e){return Nc[Symbol.for(Rc+t)]||(Nc[Symbol.for(Rc+t)]=e),Nc[Symbol.for(Rc+t)]}const Gl=ak("DEFINITION_LOOKUP_TABLE",{}),Pa="data-make-styles-bucket",Wl="f",Vl=7,ld="___",sk=ld.length+Vl,ck=0,lk=1,uk={all:1,animation:1,background:1,backgroundPosition:1,border:1,borderBlock:1,borderBlockEnd:1,borderBlockStart:1,borderBottom:1,borderColor:1,borderImage:1,borderInline:1,borderInlineEnd:1,borderInlineStart:1,borderLeft:1,borderRadius:1,borderRight:1,borderStyle:1,borderTop:1,borderWidth:1,caret:1,columns:1,columnRule:1,containIntrinsicSize:1,container:1,flex:1,flexFlow:1,font:1,gap:1,grid:1,gridArea:1,gridColumn:1,gridRow:1,gridTemplate:1,inset:1,insetBlock:1,insetInline:1,lineClamp:1,listStyle:1,margin:1,marginBlock:1,marginInline:1,mask:1,maskBorder:1,motion:1,offset:1,outline:1,overflow:1,overscrollBehavior:1,padding:1,paddingBlock:1,paddingInline:1,placeItems:1,placeContent:1,placeSelf:1,scrollMargin:1,scrollMarginBlock:1,scrollMarginInline:1,scrollPadding:1,scrollPaddingBlock:1,scrollPaddingInline:1,scrollSnapMargin:1,scrollTimeline:1,textDecoration:1,textEmphasis:1,transition:1};function Ii(t){for(var e=0,r,n=0,o=t.length;o>=4;++n,o-=4)r=t.charCodeAt(n)&255|(t.charCodeAt(++n)&255)<<8|(t.charCodeAt(++n)&255)<<16|(t.charCodeAt(++n)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,e=(r&65535)*1540483477+((r>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(o){case 3:e^=(t.charCodeAt(n+2)&255)<<16;case 2:e^=(t.charCodeAt(n+1)&255)<<8;case 1:e^=t.charCodeAt(n)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}function dk(t){const e=t.length;if(e===Vl)return t;for(let r=e;r<Vl;r++)t+="0";return t}function uv(t,e,r=[]){return ld+dk(Ii(t+e))}function dv(t,e){let r="";for(const n in t){const o=t[n];if(o){const i=Array.isArray(o);e==="rtl"?r+=(i?o[1]:o)+" ":r+=(i?o[0]:o)+" "}}return r.slice(0,-1)}function ss(t,e){const r={};for(const n in t){const o=dv(t[n],e);if(o===""){r[n]="";continue}const i=uv(o,e),a=i+" "+o;Gl[i]=[t[n],e],r[n]=a}return r}const Uf={};function ce(){let t=null,e="",r="";const n=new Array(arguments.length);for(let c=0;c<arguments.length;c++){const u=arguments[c];if(typeof u=="string"&&u!==""){const d=u.indexOf(ld);if(d===-1)e+=u+" ";else{const f=u.substr(d,sk);d>0&&(e+=u.slice(0,d)),r+=f,n[c]=f}}}if(r==="")return e.slice(0,-1);const o=Uf[r];if(o!==void 0)return e+o;const i=[];for(let c=0;c<arguments.length;c++){const u=n[c];if(u){const d=Gl[u];d&&(i.push(d[ck]),t=d[lk])}}const a=Object.assign.apply(Object,[{}].concat(i));let s=dv(a,t);const l=uv(s,t,n);return s=l+" "+s,Uf[r]=s,Gl[l]=[a,t],e+s}function fk(t){return Array.isArray(t)?t:[t]}function hk(t,e,r){const n=[];if(r[Pa]=e,t)for(const i in r)t.setAttribute(i,r[i]);function o(i){return t!=null&&t.sheet?t.sheet.insertRule(i,t.sheet.cssRules.length):n.push(i)}return{elementAttributes:r,insertRule:o,element:t,bucketName:e,cssRules(){return t!=null&&t.sheet?Array.from(t.sheet.cssRules).map(i=>i.cssText):n}}}const pk=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"],qf=pk.reduce((t,e,r)=>(t[e]=r,t),{});function gk(t,e,r,n,o={}){const i=t==="m",a=i?t+o.m:t;if(!n.stylesheets[a]){const s=e&&e.createElement("style"),l=hk(s,t,{...n.styleElementAttributes,...i&&{media:o.m}});n.stylesheets[a]=l,e&&s&&e.head.insertBefore(s,vk(e,r,t,n,o))}return n.stylesheets[a]}function vk(t,e,r,n,o){const i=qf[r];let a=u=>i-qf[u.getAttribute(Pa)],s=t.head.querySelectorAll(`[${Pa}]`);if(r==="m"&&o){const u=t.head.querySelectorAll(`[${Pa}="${r}"]`);u.length&&(s=u,a=d=>n.compareMediaQueries(o.m,d.media))}const l=s.length;let c=l-1;for(;c>=0;){const u=s.item(c);if(a(u)>0)return u.nextSibling;c--}return l>0?s.item(0):e?e.nextSibling:null}function jf(t,e){try{t.insertRule(e)}catch{}}let mk=0;const yk=(t,e)=>t<e?-1:t>e?1:0;function wk(t=typeof document>"u"?void 0:document,e={}){const{unstable_filterCSSRule:r,insertionPoint:n,styleElementAttributes:o,compareMediaQueries:i=yk}=e,a={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(o),compareMediaQueries:i,id:`d${mk++}`,insertCSSRules(s){for(const l in s){const c=s[l];for(let u=0,d=c.length;u<d;u++){const[f,p]=fk(c[u]),h=gk(l,t,n||null,a,p);a.insertionCache[f]||(a.insertionCache[f]=l,r?r(f)&&jf(h,f):jf(h,f))}}}};return a}const ud=()=>{const t={};return function(r,n){t[r.id]===void 0&&(r.insertCSSRules(n),t[r.id]=!0)}};function fv(t){return t.reduce(function(e,r){var n=r[0],o=r[1];return e[n]=o,e[o]=n,e},{})}function kk(t){return typeof t=="boolean"}function Ck(t){return typeof t=="function"}function qo(t){return typeof t=="number"}function _k(t){return t===null||typeof t>"u"}function bk(t){return t&&typeof t=="object"}function Sk(t){return typeof t=="string"}function Na(t,e){return t.indexOf(e)!==-1}function Ek(t){return parseFloat(t)===0?t:t[0]==="-"?t.slice(1):"-"+t}function da(t,e,r,n){return e+Ek(r)+n}function Tk(t){var e=t.indexOf(".");if(e===-1)t=100-parseFloat(t)+"%";else{var r=t.length-e-2;t=100-parseFloat(t),t=t.toFixed(r)+"%"}return t}function hv(t){return t.replace(/ +/g," ").split(" ").map(function(e){return e.trim()}).filter(Boolean).reduce(function(e,r){var n=e.list,o=e.state,i=(r.match(/\(/g)||[]).length,a=(r.match(/\)/g)||[]).length;return o.parensDepth>0?n[n.length-1]=n[n.length-1]+" "+r:n.push(r),o.parensDepth+=i-a,{list:n,state:o}},{list:[],state:{parensDepth:0}}).list}function Kf(t){var e=hv(t);if(e.length<=3||e.length>4)return t;var r=e[0],n=e[1],o=e[2],i=e[3];return[r,i,o,n].join(" ")}function Ik(t){return!kk(t)&&!_k(t)}function Ak(t){for(var e=[],r=0,n=0,o=!1;n<t.length;)!o&&t[n]===","?(e.push(t.substring(r,n).trim()),n++,r=n):t[n]==="("?(o=!0,n++):(t[n]===")"&&(o=!1),n++);return r!=n&&e.push(t.substring(r,n+1)),e}var P={padding:function(e){var r=e.value;return qo(r)?r:Kf(r)},textShadow:function(e){var r=e.value,n=Ak(r).map(function(o){return o.replace(/(^|\s)(-*)([.|\d]+)/,function(i,a,s,l){if(l==="0")return i;var c=s===""?"-":"";return""+a+c+l})});return n.join(",")},borderColor:function(e){var r=e.value;return Kf(r)},borderRadius:function(e){var r=e.value;if(qo(r))return r;if(Na(r,"/")){var n=r.split("/"),o=n[0],i=n[1],a=P.borderRadius({value:o.trim()}),s=P.borderRadius({value:i.trim()});return a+" / "+s}var l=hv(r);switch(l.length){case 2:return l.reverse().join(" ");case 4:{var c=l[0],u=l[1],d=l[2],f=l[3];return[u,c,f,d].join(" ")}default:return r}},background:function(e){var r=e.value,n=e.valuesToConvert,o=e.isRtl,i=e.bgImgDirectionRegex,a=e.bgPosDirectionRegex;if(qo(r))return r;var s=r.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return r=r.replace(s,P.backgroundPosition({value:s,valuesToConvert:n,isRtl:o,bgPosDirectionRegex:a})),P.backgroundImage({value:r,valuesToConvert:n,bgImgDirectionRegex:i})},backgroundImage:function(e){var r=e.value,n=e.valuesToConvert,o=e.bgImgDirectionRegex;return!Na(r,"url(")&&!Na(r,"linear-gradient(")?r:r.replace(o,function(i,a,s){return i.replace(s,n[s])})},backgroundPosition:function(e){var r=e.value,n=e.valuesToConvert,o=e.isRtl,i=e.bgPosDirectionRegex;return r.replace(o?/^((-|\d|\.)+%)/:null,function(a,s){return Tk(s)}).replace(i,function(a){return n[a]})},backgroundPositionX:function(e){var r=e.value,n=e.valuesToConvert,o=e.isRtl,i=e.bgPosDirectionRegex;return qo(r)?r:P.backgroundPosition({value:r,valuesToConvert:n,isRtl:o,bgPosDirectionRegex:i})},transition:function(e){var r=e.value,n=e.propertiesToConvert;return r.split(/,\s*/g).map(function(o){var i=o.split(" ");return i[0]=n[i[0]]||i[0],i.join(" ")}).join(", ")},transitionProperty:function(e){var r=e.value,n=e.propertiesToConvert;return r.split(/,\s*/g).map(function(o){return n[o]||o}).join(", ")},transform:function(e){var r=e.value,n="[^\\u0020-\\u007e]",o="(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",i="((?:-?"+("(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+n+"|"+o+")")+("(?:[_a-z0-9-]|"+n+"|"+o+")")+"*")+")?")+")|(?:inherit|auto))",a=new RegExp("(translateX\\s*\\(\\s*)"+i+"(\\s*\\))","gi"),s=new RegExp("(translate\\s*\\(\\s*)"+i+"((?:\\s*,\\s*"+i+"){0,1}\\s*\\))","gi"),l=new RegExp("(translate3d\\s*\\(\\s*)"+i+"((?:\\s*,\\s*"+i+"){0,2}\\s*\\))","gi"),c=new RegExp("(rotate[ZY]?\\s*\\(\\s*)"+i+"(\\s*\\))","gi");return r.replace(a,da).replace(s,da).replace(l,da).replace(c,da)}};P.objectPosition=P.backgroundPosition;P.margin=P.padding;P.borderWidth=P.padding;P.boxShadow=P.textShadow;P.webkitBoxShadow=P.boxShadow;P.mozBoxShadow=P.boxShadow;P.WebkitBoxShadow=P.boxShadow;P.MozBoxShadow=P.boxShadow;P.borderStyle=P.borderColor;P.webkitTransform=P.transform;P.mozTransform=P.transform;P.WebkitTransform=P.transform;P.MozTransform=P.transform;P.transformOrigin=P.backgroundPosition;P.webkitTransformOrigin=P.transformOrigin;P.mozTransformOrigin=P.transformOrigin;P.WebkitTransformOrigin=P.transformOrigin;P.MozTransformOrigin=P.transformOrigin;P.webkitTransition=P.transition;P.mozTransition=P.transition;P.WebkitTransition=P.transition;P.MozTransition=P.transition;P.webkitTransitionProperty=P.transitionProperty;P.mozTransitionProperty=P.transitionProperty;P.WebkitTransitionProperty=P.transitionProperty;P.MozTransitionProperty=P.transitionProperty;P["text-shadow"]=P.textShadow;P["border-color"]=P.borderColor;P["border-radius"]=P.borderRadius;P["background-image"]=P.backgroundImage;P["background-position"]=P.backgroundPosition;P["background-position-x"]=P.backgroundPositionX;P["object-position"]=P.objectPosition;P["border-width"]=P.padding;P["box-shadow"]=P.textShadow;P["-webkit-box-shadow"]=P.textShadow;P["-moz-box-shadow"]=P.textShadow;P["border-style"]=P.borderColor;P["-webkit-transform"]=P.transform;P["-moz-transform"]=P.transform;P["transform-origin"]=P.transformOrigin;P["-webkit-transform-origin"]=P.transformOrigin;P["-moz-transform-origin"]=P.transformOrigin;P["-webkit-transition"]=P.transition;P["-moz-transition"]=P.transition;P["transition-property"]=P.transitionProperty;P["-webkit-transition-property"]=P.transitionProperty;P["-moz-transition-property"]=P.transitionProperty;var pv=fv([["paddingLeft","paddingRight"],["marginLeft","marginRight"],["left","right"],["borderLeft","borderRight"],["borderLeftColor","borderRightColor"],["borderLeftStyle","borderRightStyle"],["borderLeftWidth","borderRightWidth"],["borderTopLeftRadius","borderTopRightRadius"],["borderBottomLeftRadius","borderBottomRightRadius"],["padding-left","padding-right"],["margin-left","margin-right"],["border-left","border-right"],["border-left-color","border-right-color"],["border-left-style","border-right-style"],["border-left-width","border-right-width"],["border-top-left-radius","border-top-right-radius"],["border-bottom-left-radius","border-bottom-right-radius"]]),Pk=["content"],Gf=fv([["ltr","rtl"],["left","right"],["w-resize","e-resize"],["sw-resize","se-resize"],["nw-resize","ne-resize"]]),Nk=new RegExp("(^|\\W|_)((ltr)|(rtl)|(left)|(right))(\\W|_|$)","g"),Rk=new RegExp("(left)|(right)");function gv(t){return Object.keys(t).reduce(function(e,r){var n=t[r];if(Sk(n)&&(n=n.trim()),Na(Pk,r))return e[r]=n,e;var o=Ql(r,n),i=o.key,a=o.value;return e[i]=a,e},Array.isArray(t)?[]:{})}function Ql(t,e){var r=/\/\*\s?@noflip\s?\*\//.test(e),n=r?t:Bk(t),o=r?e:xk(n,e);return{key:n,value:o}}function Bk(t){return pv[t]||t}function xk(t,e){if(!Ik(e))return e;if(bk(e))return gv(e);var r=qo(e),n=Ck(e),o=r||n?e:e.replace(/ !important.*?$/,""),i=!r&&o.length!==e.length,a=P[t],s;return a?s=a({value:o,valuesToConvert:Gf,propertiesToConvert:pv,isRtl:!0,bgImgDirectionRegex:Nk,bgPosDirectionRegex:Rk}):s=Gf[o]||o,i?s+" !important":s}const Mk=/[A-Z]/g,Ok=/^ms-/,Bc={};function Fk(t){return"-"+t.toLowerCase()}function jo(t){if(Object.prototype.hasOwnProperty.call(Bc,t))return Bc[t];if(t.substr(0,2)==="--")return t;const e=t.replace(Mk,Fk);return Bc[t]=Ok.test(e)?"-"+e:e}function vv(t){return t.charAt(0)==="&"?t.slice(1):t}var ti="-moz-",Ht="-webkit-",mv="comm",qs="rule",dd="decl",Dk="@media",zk="@import",Lk="@supports",Hk="@keyframes",yv="@layer",Uk=Math.abs,js=String.fromCharCode,qk=Object.assign;function jk(t,e){return tt(t,0)^45?(((e<<2^tt(t,0))<<2^tt(t,1))<<2^tt(t,2))<<2^tt(t,3):0}function wv(t){return t.trim()}function kv(t,e){return(t=e.exec(t))?t[0]:t}function ct(t,e,r){return t.replace(e,r)}function Cv(t,e){return t.indexOf(e)}function tt(t,e){return t.charCodeAt(e)|0}function Ai(t,e,r){return t.slice(e,r)}function Jt(t){return t.length}function _v(t){return t.length}function fn(t,e){return e.push(t),t}function Kk(t,e){return t.map(e).join("")}var Ks=1,go=1,bv=0,Et=0,me=0,_o="";function Gs(t,e,r,n,o,i,a,s){return{value:t,root:e,parent:r,type:n,props:o,children:i,line:Ks,column:go,length:a,return:"",siblings:s}}function xc(t,e){return qk(Gs("",null,null,"",null,null,0,t.siblings),t,{length:-t.length},e)}function Gk(){return me}function Wk(){return me=Et>0?tt(_o,--Et):0,go--,me===10&&(go=1,Ks--),me}function Mt(){return me=Et<bv?tt(_o,Et++):0,go++,me===10&&(go=1,Ks++),me}function mn(){return tt(_o,Et)}function Ra(){return Et}function Ws(t,e){return Ai(_o,t,e)}function cs(t){switch(t){case 0:case 9:case 10:case 13:case 32:return 5;case 33:case 43:case 44:case 47:case 62:case 64:case 126:case 59:case 123:case 125:return 4;case 58:return 3;case 34:case 39:case 40:case 91:return 2;case 41:case 93:return 1}return 0}function Sv(t){return Ks=go=1,bv=Jt(_o=t),Et=0,[]}function Ev(t){return _o="",t}function Ba(t){return wv(Ws(Et-1,Yl(t===91?t+2:t===40?t+1:t)))}function Vk(t){return Ev(Yk(Sv(t)))}function Qk(t){for(;(me=mn())&&me<33;)Mt();return cs(t)>2||cs(me)>3?"":" "}function Yk(t){for(;Mt();)switch(cs(me)){case 0:fn(Tv(Et-1),t);break;case 2:fn(Ba(me),t);break;default:fn(js(me),t)}return t}function $k(t,e){for(;--e&&Mt()&&!(me<48||me>102||me>57&&me<65||me>70&&me<97););return Ws(t,Ra()+(e<6&&mn()==32&&Mt()==32))}function Yl(t){for(;Mt();)switch(me){case t:return Et;case 34:case 39:t!==34&&t!==39&&Yl(me);break;case 40:t===41&&Yl(t);break;case 92:Mt();break}return Et}function Xk(t,e){for(;Mt()&&t+me!==57;)if(t+me===84&&mn()===47)break;return"/*"+Ws(e,Et-1)+"*"+js(t===47?t:Mt())}function Tv(t){for(;!cs(mn());)Mt();return Ws(t,Et)}function Iv(t){return Ev(xa("",null,null,null,[""],t=Sv(t),0,[0],t))}function xa(t,e,r,n,o,i,a,s,l){for(var c=0,u=0,d=a,f=0,p=0,h=0,m=1,C=1,v=1,g=0,y="",k=o,T=i,_=n,b=y;C;)switch(h=g,g=Mt()){case 40:if(h!=108&&tt(b,d-1)==58){Cv(b+=ct(Ba(g),"&","&\f"),"&\f")!=-1&&(v=-1);break}case 34:case 39:case 91:b+=Ba(g);break;case 9:case 10:case 13:case 32:b+=Qk(h);break;case 92:b+=$k(Ra()-1,7);continue;case 47:switch(mn()){case 42:case 47:fn(Jk(Xk(Mt(),Ra()),e,r,l),l);break;default:b+="/"}break;case 123*m:s[c++]=Jt(b)*v;case 125*m:case 59:case 0:switch(g){case 0:case 125:C=0;case 59+u:v==-1&&(b=ct(b,/\f/g,"")),p>0&&Jt(b)-d&&fn(p>32?Vf(b+";",n,r,d-1,l):Vf(ct(b," ","")+";",n,r,d-2,l),l);break;case 59:b+=";";default:if(fn(_=Wf(b,e,r,c,u,o,s,y,k=[],T=[],d,i),i),g===123)if(u===0)xa(b,e,_,_,k,i,d,s,T);else switch(f===99&&tt(b,3)===110?100:f){case 100:case 108:case 109:case 115:xa(t,_,_,n&&fn(Wf(t,_,_,0,0,o,s,y,o,k=[],d,T),T),o,T,d,s,n?k:T);break;default:xa(b,_,_,_,[""],T,0,s,T)}}c=u=p=0,m=v=1,y=b="",d=a;break;case 58:d=1+Jt(b),p=h;default:if(m<1){if(g==123)--m;else if(g==125&&m++==0&&Wk()==125)continue}switch(b+=js(g),g*m){case 38:v=u>0?1:(b+="\f",-1);break;case 44:s[c++]=(Jt(b)-1)*v,v=1;break;case 64:mn()===45&&(b+=Ba(Mt())),f=mn(),u=d=Jt(y=b+=Tv(Ra())),g++;break;case 45:h===45&&Jt(b)==2&&(m=0)}}return i}function Wf(t,e,r,n,o,i,a,s,l,c,u,d){for(var f=o-1,p=o===0?i:[""],h=_v(p),m=0,C=0,v=0;m<n;++m)for(var g=0,y=Ai(t,f+1,f=Uk(C=a[m])),k=t;g<h;++g)(k=wv(C>0?p[g]+" "+y:ct(y,/&\f/g,p[g])))&&(l[v++]=k);return Gs(t,e,r,o===0?qs:s,l,c,u,d)}function Jk(t,e,r,n){return Gs(t,e,r,mv,js(Gk()),Ai(t,2,-2),0,n)}function Vf(t,e,r,n,o){return Gs(t,e,r,dd,Ai(t,0,n),Ai(t,n+1,-1),n,o)}function vo(t,e){for(var r="",n=0;n<t.length;n++)r+=e(t[n],n,t,e)||"";return r}function Av(t,e,r,n){switch(t.type){case yv:if(t.children.length)break;case zk:case dd:return t.return=t.return||t.value;case mv:return"";case Hk:return t.return=t.value+"{"+vo(t.children,n)+"}";case qs:if(!Jt(t.value=t.props.join(",")))return""}return Jt(r=vo(t.children,n))?t.return=t.value+"{"+r+"}":""}function Pv(t){var e=_v(t);return function(r,n,o,i){for(var a="",s=0;s<e;s++)a+=t[s](r,n,o,i)||"";return a}}function Nv(t){return function(e){e.root||(e=e.return)&&t(e)}}const Zk=t=>{switch(t.type){case qs:if(typeof t.props=="string")return;t.props=t.props.map(e=>e.indexOf(":global(")===-1?e:Vk(e).reduce((r,n,o,i)=>{if(n==="")return r;if(n===":"&&i[o+1]==="global"){const a=i[o+2].slice(1,-1)+" ";return r.unshift(a),i[o+1]="",i[o+2]="",r}return r.push(n),r},[]).join(""))}};function Rv(t,e,r){switch(jk(t,e)){case 5103:return Ht+"print-"+t+t;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return Ht+t+t;case 4215:if(tt(t,9)===102||tt(t,e+1)===116)return Ht+t+t;break;case 4789:return ti+t+t;case 5349:case 4246:case 6968:return Ht+t+ti+t+t;case 6187:if(!kv(t,/grab/))return ct(ct(ct(t,/(zoom-|grab)/,Ht+"$1"),/(image-set)/,Ht+"$1"),t,"")+t;case 5495:case 3959:return ct(t,/(image-set\([^]*)/,Ht+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return ct(t,/(.+)-inline(.+)/,Ht+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if(Jt(t)-1-e>6)switch(tt(t,e+1)){case 102:if(tt(t,e+3)===108)return ct(t,/(.+:)(.+)-([^]+)/,"$1"+Ht+"$2-$3$1"+ti+(tt(t,e+3)==108?"$3":"$2-$3"))+t;case 115:return~Cv(t,"stretch")?Rv(ct(t,"stretch","fill-available"),e)+t:t}break}return t}function Bv(t,e,r,n){if(t.length>-1&&!t.return)switch(t.type){case dd:t.return=Rv(t.value,t.length);return;case qs:if(t.length)return Kk(t.props,function(o){switch(kv(o,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return vo([xc(t,{props:[ct(o,/:(read-\w+)/,":"+ti+"$1")]})],n);case"::placeholder":return vo([xc(t,{props:[ct(o,/:(plac\w+)/,":"+Ht+"input-$1")]}),xc(t,{props:[ct(o,/:(plac\w+)/,":"+ti+"$1")]})],n)}return""})}}function eC(t){switch(t.type){case"@container":case Dk:case Lk:case yv:return!0}return!1}const tC=t=>{eC(t)&&Array.isArray(t.children)&&t.children.sort((e,r)=>e.props[0]>r.props[0]?1:-1)};function rC(){}function nC(t,e){const r=[];return vo(Iv(t),Pv([Zk,e?tC:rC,Bv,Av,Nv(n=>r.push(n))])),r}const oC=/,( *[^ &])/g;function iC(t){return"&"+vv(t.replace(oC,",&$1"))}function Qf(t,e,r){let n=e;return r.length>0&&(n=r.reduceRight((o,i)=>`${iC(i)} { ${o} }`,e)),`${t}{${n}}`}function Yf(t){const{className:e,media:r,layer:n,selectors:o,support:i,property:a,rtlClassName:s,rtlProperty:l,rtlValue:c,value:u,container:d}=t,f=`.${e}`,p=Array.isArray(u)?`${u.map(m=>`${jo(a)}: ${m}`).join(";")};`:`${jo(a)}: ${u};`;let h=Qf(f,p,o);if(l&&s){const m=`.${s}`,C=Array.isArray(c)?`${c.map(v=>`${jo(l)}: ${v}`).join(";")};`:`${jo(l)}: ${c};`;h+=Qf(m,C,o)}return r&&(h=`@media ${r} { ${h} }`),n&&(h=`@layer ${n} { ${h} }`),i&&(h=`@supports ${i} { ${h} }`),d&&(h=`@container ${d} { ${h} }`),nC(h,!0)}function aC(t){let e="";for(const r in t){const n=t[r];typeof n!="string"&&typeof n!="number"||(e+=jo(r)+":"+n+";")}return e}function $f(t){let e="";for(const r in t)e+=`${r}{${aC(t[r])}}`;return e}function Xf(t,e){const r=`@keyframes ${t} {${e}}`,n=[];return vo(Iv(r),Pv([Av,Bv,Nv(o=>n.push(o))])),n}function Jf(t,e){return t.length===0?e:`${t} and ${e}`}function sC(t){return t.substr(0,6)==="@media"}function cC(t){return t.substr(0,6)==="@layer"}const lC=/^(:|\[|>|&)/;function uC(t){return lC.test(t)}function dC(t){return t.substr(0,9)==="@supports"}function fC(t){return t.substring(0,10)==="@container"}function hC(t){return t!=null&&typeof t=="object"&&Array.isArray(t)===!1}const Zf={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function eh(t,e,r,n,o){if(r)return"m";if(e||n)return"t";if(o)return"c";if(t.length>0){const i=t[0].trim();if(i.charCodeAt(0)===58)return Zf[i.slice(4,8)]||Zf[i.slice(3,5)]||"d"}return"d"}function fa({container:t,media:e,layer:r,property:n,selector:o,support:i,value:a}){const s=Ii(o+t+e+r+i+n+a.trim());return Wl+s}function th(t,e,r,n,o){const i=t+e+r+n+o,a=Ii(i),s=a.charCodeAt(0);return s>=48&&s<=57?String.fromCharCode(s+17)+a.slice(1):a}function rh(t){return t.replace(/>\s+/g,">")}function pC(t,e){const r=JSON.stringify(e,null,2);" ".repeat(2)+""," ".repeat(4)+""," ".repeat(6)+`"${t}": ${r.split(`
|
|
41
|
+
`).map((n,o)=>" ".repeat(o===0?0:6)+n).join(`
|
|
42
|
+
`)}`," ".repeat(4)+""," ".repeat(2)+"",t.indexOf("&")}function nh(t,e,r,n){t[e]=n?[r,n]:r}function oh(t,e){return e?[t,e]:t}function Mc(t,e,r,n,o){var i;let a;e==="m"&&o&&(a={m:o}),(i=t[e])!==null&&i!==void 0||(t[e]=[]),r&&t[e].push(oh(r,a)),n&&t[e].push(oh(n,a))}function an(t,e=[],r="",n="",o="",i="",a={},s={},l){for(const c in t){if(uk.hasOwnProperty(c)){t[c];continue}const u=t[c];if(u!=null){if(typeof u=="string"||typeof u=="number"){const d=rh(e.join("")),f=th(d,i,r,o,c),p=fa({container:i,media:r,layer:n,value:u.toString(),support:o,selector:d,property:c}),h=l&&{key:c,value:l}||Ql(c,u),m=h.key!==c||h.value!==u,C=m?fa({container:i,value:h.value.toString(),property:h.key,selector:d,media:r,layer:n,support:o}):void 0,v=m?{rtlClassName:C,rtlProperty:h.key,rtlValue:h.value}:void 0,g=eh(e,n,r,o,i),[y,k]=Yf({className:p,media:r,layer:n,selectors:e,property:c,support:o,container:i,value:u,...v});nh(a,f,p,C),Mc(s,g,y,k,r)}else if(c==="animationName"){const d=Array.isArray(u)?u:[u],f=[],p=[];for(const h of d){const m=$f(h),C=$f(gv(h)),v=Wl+Ii(m);let g;const y=Xf(v,m);let k=[];m===C?g=v:(g=Wl+Ii(C),k=Xf(g,C));for(let T=0;T<y.length;T++)Mc(s,"k",y[T],k[T],r);f.push(v),p.push(g)}an({animationName:f.join(", ")},e,r,n,o,i,a,s,p.join(", "))}else if(Array.isArray(u)){if(u.length===0)continue;const d=rh(e.join("")),f=th(d,i,r,o,c),p=fa({container:i,media:r,layer:n,value:u.map(_=>(_??"").toString()).join(";"),support:o,selector:d,property:c}),h=u.map(_=>Ql(c,_));if(!!h.some(_=>_.key!==h[0].key))continue;const C=h[0].key!==c||h.some((_,b)=>_.value!==u[b]),v=C?fa({container:i,value:h.map(_=>{var b;return((b=_==null?void 0:_.value)!==null&&b!==void 0?b:"").toString()}).join(";"),property:h[0].key,selector:d,layer:n,media:r,support:o}):void 0,g=C?{rtlClassName:v,rtlProperty:h[0].key,rtlValue:h.map(_=>_.value)}:void 0,y=eh(e,n,r,o,i),[k,T]=Yf({className:p,media:r,layer:n,selectors:e,property:c,support:o,container:i,value:u,...g});nh(a,f,p,v),Mc(s,y,k,T,r)}else if(hC(u))if(uC(c))an(u,e.concat(vv(c)),r,n,o,i,a,s);else if(sC(c)){const d=Jf(r,c.slice(6).trim());an(u,e,d,n,o,i,a,s)}else if(cC(c)){const d=(n?`${n}.`:"")+c.slice(6).trim();an(u,e,r,d,o,i,a,s)}else if(dC(c)){const d=Jf(o,c.slice(9).trim());an(u,e,r,n,d,i,a,s)}else if(fC(c)){const d=c.slice(10).trim();an(u,e,r,n,o,d,a,s)}else pC(c,u)}}return[a,s]}function gC(t){const e={},r={};for(const n in t){const o=t[n],[i,a]=an(o);e[n]=i,Object.keys(a).forEach(s=>{r[s]=(r[s]||[]).concat(a[s])})}return[e,r]}function vC(t,e=ud){const r=e();let n=null,o=null,i=null,a=null;function s(l){const{dir:c,renderer:u}=l;n===null&&([n,o]=gC(t));const d=c==="ltr";return d?i===null&&(i=ss(n,c)):a===null&&(a=ss(n,c)),r(u,o),d?i:a}return s}function xv(t,e,r=ud){const n=r();let o=null,i=null;function a(s){const{dir:l,renderer:c}=s,u=l==="ltr";return u?o===null&&(o=ss(t,l)):i===null&&(i=ss(t,l)),n(c,e),u?o:i}return a}function mC(t,e,r,n=ud){const o=n();function i(a){const{dir:s,renderer:l}=a,c=s==="ltr"?t:e||t;return o(l,Array.isArray(r)?{r}:r),c}return i}const Ma={border:Iw,borderLeft:Aw,borderBottom:Pw,borderRight:Nw,borderTop:Rw,borderColor:Kl,borderStyle:jl,borderRadius:Bw,borderWidth:ql,flex:Dw,gap:zw,gridArea:jw,margin:Kw,marginBlock:Gw,marginInline:Ww,padding:Vw,paddingBlock:Qw,paddingInline:Yw,overflow:$w,inset:Xw,outline:Jw,transition:Zw,textDecoration:nk};function yC(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const ih=Yc.useInsertionEffect?Yc.useInsertionEffect:void 0,fd=()=>{const t={};return function(r,n){if(ih&&yC()){ih(()=>{r.insertCSSRules(n)},[r,n]);return}t[r.id]===void 0&&(r.insertCSSRules(n),t[r.id]=!0)}},wC=E.createContext(wk());function Li(){return E.useContext(wC)}const Mv=E.createContext("ltr"),kC=({children:t,dir:e})=>E.createElement(Mv.Provider,{value:e},t);function hd(){return E.useContext(Mv)}function Ov(t){const e=vC(t,fd);return function(){const n=hd(),o=Li();return e({dir:n,renderer:o})}}function Ee(t,e){const r=xv(t,e,fd);return function(){const o=hd(),i=Li();return r({dir:o,renderer:i})}}function Hi(t,e,r){const n=mC(t,e,r,fd);return function(){const i=hd(),a=Li();return n({dir:i,renderer:a})}}function CC(t,e){if(e){const r=Object.keys(e).reduce((n,o)=>`${n}--${o}: ${e[o]}; `,"");return`${t} { ${r} }`}return`${t} {}`}const Fv=Symbol("fui.slotRenderFunction"),Vs=Symbol("fui.slotElementType");function zt(t,e){const{defaultProps:r,elementType:n}=e,o=_C(t),i={...r,...o,[Vs]:n};return o&&typeof o.children=="function"&&(i[Fv]=o.children,i.children=r==null?void 0:r.children),i}function rt(t,e){if(!(t===null||t===void 0&&!e.renderByDefault))return zt(t,e)}function _C(t){return typeof t=="string"||typeof t=="number"||Array.isArray(t)||E.isValidElement(t)?{children:t}:t}function ah(t){return!!(t!=null&&t.hasOwnProperty(Vs))}const bC=(t,e)=>rt(t,{...e,renderByDefault:e==null?void 0:e.required,elementType:void 0}),fe=(...t)=>{const e={};for(const r of t){const n=Array.isArray(r)?r:Object.keys(r);for(const o of n)e[o]=1}return e},SC=fe(["onAuxClick","onAnimationEnd","onAnimationStart","onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onInput","onSubmit","onLoad","onError","onKeyDown","onKeyDownCapture","onKeyPress","onKeyUp","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onClick","onClickCapture","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onMouseUpCapture","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onPointerCancel","onPointerDown","onPointerEnter","onPointerLeave","onPointerMove","onPointerOut","onPointerOver","onPointerUp","onGotPointerCapture","onLostPointerCapture"]),EC=fe(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),TC=fe(["itemID","itemProp","itemRef","itemScope","itemType"]),Pe=fe(EC,SC,TC),IC=fe(Pe,["form"]),Dv=fe(Pe,["height","loop","muted","preload","src","width"]),AC=fe(Dv,["poster"]),PC=fe(Pe,["start"]),NC=fe(Pe,["value"]),RC=fe(Pe,["download","href","hrefLang","media","rel","target","type"]),BC=fe(Pe,["dateTime"]),Qs=fe(Pe,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),xC=fe(Qs,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),MC=fe(Qs,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),OC=fe(Qs,["form","multiple","required"]),FC=fe(Pe,["selected","value"]),DC=fe(Pe,["cellPadding","cellSpacing"]),zC=Pe,LC=fe(Pe,["colSpan","rowSpan","scope"]),HC=fe(Pe,["colSpan","headers","rowSpan","scope"]),UC=fe(Pe,["span"]),qC=fe(Pe,["span"]),jC=fe(Pe,["disabled","form"]),KC=fe(Pe,["acceptCharset","action","encType","encType","method","noValidate","target"]),GC=fe(Pe,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),WC=fe(Pe,["alt","crossOrigin","height","src","srcSet","useMap","width"]),VC=fe(Pe,["open","onCancel","onClose"]);function QC(t,e,r){const n=Array.isArray(e),o={},i=Object.keys(t);for(const a of i)(!n&&e[a]||n&&e.indexOf(a)>=0||a.indexOf("data-")===0||a.indexOf("aria-")===0)&&(!r||(r==null?void 0:r.indexOf(a))===-1)&&(o[a]=t[a]);return o}const YC={label:IC,audio:Dv,video:AC,ol:PC,li:NC,a:RC,button:Qs,input:xC,textarea:MC,select:OC,option:FC,table:DC,tr:zC,th:LC,td:HC,colGroup:UC,col:qC,fieldset:jC,form:KC,iframe:GC,img:WC,time:BC,dialog:VC};function zv(t,e,r){const n=t&&YC[t]||Pe;return n.as=1,QC(e,n,r)}const $C=({primarySlotTagName:t,props:e,excludedPropNames:r})=>({root:{style:e.style,className:e.className},primary:zv(t,e,[...r||[],"style","className"])}),Sr=(t,e,r)=>{var n;return zv((n=e.as)!==null&&n!==void 0?n:t,e,r)};function Lv(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}function XC(t,e){const r=E.useRef(void 0),n=E.useCallback((i,a)=>(r.current!==void 0&&e(r.current),r.current=t(i,a),r.current),[e,t]),o=E.useCallback(()=>{r.current!==void 0&&(e(r.current),r.current=void 0)},[e]);return E.useEffect(()=>o,[o]),[n,o]}function JC(t){return typeof t=="function"}const Hv=t=>{const[e,r]=E.useState(()=>t.defaultState===void 0?t.initialState:ZC(t.defaultState)?t.defaultState():t.defaultState),n=E.useRef(t.state);E.useEffect(()=>{n.current=t.state},[t.state]);const o=E.useCallback(i=>{JC(i)&&i(n.current)},[]);return e_(t.state)?[t.state,o]:[e,r]};function ZC(t){return typeof t=="function"}const e_=t=>{const[e]=E.useState(()=>t!==void 0);return e},t_={current:0},r_=E.createContext(void 0);function n_(){var t;return(t=E.useContext(r_))!==null&&t!==void 0?t:t_}const pd=Lv()?E.useLayoutEffect:E.useEffect,Oa=t=>{const e=E.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return pd(()=>{e.current=t},[t]),E.useCallback((...r)=>{const n=e.current;return n(...r)},[e])},Uv=E.createContext(void 0);Uv.Provider;function o_(){return E.useContext(Uv)||""}function gd(t="fui-",e){const r=n_(),n=o_(),o=Yc.useId;if(o){const i=o(),a=E.useMemo(()=>i.replace(/:/g,""),[i]);return e||`${n}${t}${a}`}return E.useMemo(()=>e||`${n}${t}${++r.current}`,[n,t,e,r])}function vd(...t){const e=E.useCallback(r=>{e.current=r;for(const n of t)typeof n=="function"?n(r):n&&(n.current=r)},[...t]);return e}function i_(){return XC(setTimeout,clearTimeout)}function sh(t,e){return(...r)=>{t==null||t(...r),e==null||e(...r)}}function ch(t,e){var r;const n=t;var o;return!!(!(n==null||(r=n.ownerDocument)===null||r===void 0)&&r.defaultView&&n instanceof n.ownerDocument.defaultView[(o=e==null?void 0:e.constructorName)!==null&&o!==void 0?o:"HTMLElement"])}function a_(t){return t&&!!t._virtual}function s_(t){return a_(t)&&t._virtual.parent||null}function c_(t,e={}){if(!t)return null;if(!e.skipVirtual){const r=s_(t);if(r)return r}return(t==null?void 0:t.parentNode)||null}function l_(t,e){return{...e,[Vs]:t}}function qv(t,e){return function(n,o,i,a,s){return ah(o)?e(l_(n,o),null,i,a,s):ah(n)?e(n,o,i,a,s):t(n,o,i,a,s)}}function jv(t){const{as:e,[Vs]:r,[Fv]:n,...o}=t,i=o,a=typeof r=="string"?e??r:r;return typeof a!="string"&&e&&(i.as=e),{elementType:a,props:i,renderFunction:n}}const yn=ky,u_=(t,e,r)=>{const{elementType:n,renderFunction:o,props:i}=jv(t),a={...i,...e};return o?yn.jsx(E.Fragment,{children:o(n,a)},r):yn.jsx(n,a,r)},d_=(t,e,r)=>{const{elementType:n,renderFunction:o,props:i}=jv(t),a={...i,...e};return o?yn.jsx(E.Fragment,{children:o(n,{...a,children:yn.jsxs(E.Fragment,{children:a.children},void 0)})},r):yn.jsxs(n,a,r)},se=qv(yn.jsx,u_),Er=qv(yn.jsxs,d_),Kv=E.createContext(void 0),f_=Kv.Provider,h_=E.createContext(void 0),p_=h_.Provider,g_=E.createContext(void 0),v_=g_.Provider,Gv=E.createContext(void 0),m_={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"},y_=Gv.Provider;function Ui(){var t;return(t=E.useContext(Gv))!==null&&t!==void 0?t:m_}const Wv=E.createContext(void 0),w_=Wv.Provider;function Vv(){var t;return(t=E.useContext(Wv))!==null&&t!==void 0?t:{}}const md=E.createContext(void 0),k_=()=>{},C_=md.Provider,Ys=t=>{var e,r;return(r=(e=E.useContext(md))===null||e===void 0?void 0:e[t])!==null&&r!==void 0?r:k_},$l=E.createContext(void 0),__={},b_=$l.Provider,S_=()=>E.useContext($l)?E.useContext($l):__,E_=Ee({root:{mc9l5x:"f1w7gpdv",Bg96gwp:"fez10in",ycbfsm:"fg4l7m0"},rtl:{Bz10aip:"f13rod7r"}},{d:[".f1w7gpdv{display:inline;}",".fez10in{line-height:0;}",".f13rod7r{-webkit-transform:scaleX(-1);-moz-transform:scaleX(-1);-ms-transform:scaleX(-1);transform:scaleX(-1);}"],t:["@media (forced-colors: active){.fg4l7m0{forced-color-adjust:auto;}}"]}),T_=(t,e)=>{const{title:r,primaryFill:n="currentColor",...o}=t,i={...o,title:void 0,fill:n},a=E_(),s=S_();return i.className=ce(a.root,(e==null?void 0:e.flipInRtl)&&(s==null?void 0:s.textDirection)==="rtl"&&a.rtl,i.className),r&&(i["aria-label"]=r),!i["aria-label"]&&!i["aria-labelledby"]?i["aria-hidden"]=!0:i.role="img",i},I_=(t,e,r,n)=>{const o=e==="1em"?"20":e,i=E.forwardRef((a,s)=>{const l={...T_(a,{flipInRtl:n==null?void 0:n.flipInRtl}),ref:s,width:e,height:e,viewBox:`0 0 ${o} ${o}`,xmlns:"http://www.w3.org/2000/svg"};return E.createElement("svg",l,...r.map(c=>E.createElement("path",{d:c,fill:l.fill})))});return i.displayName=t,i},A_=I_("Search20Regular","20",["M8.5 3a5.5 5.5 0 0 1 4.23 9.02l4.12 4.13a.5.5 0 0 1-.63.76l-.07-.06-4.13-4.12A5.5 5.5 0 1 1 8.5 3Zm0 1a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),P_=(t,e)=>se(y_,{value:e.provider,children:se(f_,{value:e.theme,children:se(p_,{value:e.themeClassName,children:se(C_,{value:e.customStyleHooks_unstable,children:se(v_,{value:e.tooltip,children:se(kC,{dir:e.textDirection,children:se(b_,{value:e.iconDirection,children:se(w_,{value:e.overrides_unstable,children:Er(t.root,{children:[Lv()?null:se("style",{dangerouslySetInnerHTML:{__html:t.serverStyleProps.cssRule},...t.serverStyleProps.attributes}),t.root.children]})})})})})})})})});/*!
|
|
43
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
44
|
+
* Licensed under the MIT License.
|
|
45
|
+
*/const N_=typeof WeakRef<"u";class Qv{constructor(e){N_&&typeof e=="object"?this._weakRef=new WeakRef(e):this._instance=e}deref(){var e,r,n;let o;return this._weakRef?(o=(e=this._weakRef)===null||e===void 0?void 0:e.deref(),o||delete this._weakRef):(o=this._instance,!((n=(r=o)===null||r===void 0?void 0:r.isDisposed)===null||n===void 0)&&n.call(r)&&delete this._instance),o}}/*!
|
|
46
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
47
|
+
* Licensed under the MIT License.
|
|
48
|
+
*/const _r="keyborg:focusin";function R_(t){const e=t.HTMLElement,r=e.prototype.focus;let n=!1;return e.prototype.focus=function(){n=!0},t.document.createElement("button").focus(),e.prototype.focus=r,n}let Oc=!1;function Tn(t){const e=t.focus;e.__keyborgNativeFocus?e.__keyborgNativeFocus.call(t):t.focus()}function B_(t){const e=t;Oc||(Oc=R_(e));const r=e.HTMLElement.prototype.focus;if(r.__keyborgNativeFocus)return;e.HTMLElement.prototype.focus=o;const n=e.__keyborgData={focusInHandler:i=>{var a;const s=i.target;if(!s)return;const l=document.createEvent("HTMLEvents");l.initEvent(_r,!0,!0);const c={relatedTarget:i.relatedTarget||void 0};(Oc||n.lastFocusedProgrammatically)&&(c.isFocusedProgrammatically=s===((a=n.lastFocusedProgrammatically)===null||a===void 0?void 0:a.deref()),n.lastFocusedProgrammatically=void 0),l.details=c,s.dispatchEvent(l)}};e.document.addEventListener("focusin",e.__keyborgData.focusInHandler,!0);function o(){const i=e.__keyborgData;return i&&(i.lastFocusedProgrammatically=new Qv(this)),r.apply(this,arguments)}o.__keyborgNativeFocus=r}function x_(t){const e=t,r=e.HTMLElement.prototype,n=r.focus.__keyborgNativeFocus,o=e.__keyborgData;o&&(e.document.removeEventListener("focusin",o.focusInHandler,!0),delete e.__keyborgData),n&&(r.focus=n)}/*!
|
|
49
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
50
|
+
* Licensed under the MIT License.
|
|
51
|
+
*/const M_=500;let Yv=0;class O_{constructor(){this.__keyborgCoreRefs={},this._isNavigatingWithKeyboard=!1}add(e){const r=e.id;r in this.__keyborgCoreRefs||(this.__keyborgCoreRefs[r]=new Qv(e))}remove(e){delete this.__keyborgCoreRefs[e],Object.keys(this.__keyborgCoreRefs).length===0&&(this._isNavigatingWithKeyboard=!1)}setVal(e){if(this._isNavigatingWithKeyboard!==e){this._isNavigatingWithKeyboard=e;for(const r of Object.keys(this.__keyborgCoreRefs)){const o=this.__keyborgCoreRefs[r].deref();o?o.update(e):this.remove(r)}}}getVal(){return this._isNavigatingWithKeyboard}}const $t=new O_;class F_{constructor(e,r){this._onFocusIn=o=>{if(this._isMouseUsedTimer||$t.getVal())return;const i=o.details;i.relatedTarget&&(i.isFocusedProgrammatically||i.isFocusedProgrammatically===void 0||$t.setVal(!0))},this._onMouseDown=o=>{if(o.buttons===0||o.clientX===0&&o.clientY===0&&o.screenX===0&&o.screenY===0)return;const i=this._win;i&&(this._isMouseUsedTimer&&i.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=i.setTimeout(()=>{delete this._isMouseUsedTimer},1e3)),$t.setVal(!1)},this._onKeyDown=o=>{var i,a;const s=$t.getVal(),l=o.keyCode,c=this._triggerKeys;if(!s&&(!c||c.has(l))){const u=(i=this._win)===null||i===void 0?void 0:i.document.activeElement;if(u&&(u.tagName==="INPUT"||u.tagName==="TEXTAREA"||u.contentEditable==="true"))return;$t.setVal(!0)}else s&&(!((a=this._dismissKeys)===null||a===void 0)&&a.has(l))&&this._scheduleDismiss()},this.id="c"+ ++Yv,this._win=e;const n=e.document;if(r){const o=r.triggerKeys,i=r.dismissKeys;o!=null&&o.length&&(this._triggerKeys=new Set(o)),i!=null&&i.length&&(this._dismissKeys=new Set(i))}n.addEventListener(_r,this._onFocusIn,!0),n.addEventListener("mousedown",this._onMouseDown,!0),e.addEventListener("keydown",this._onKeyDown,!0),B_(e),$t.add(this)}dispose(){const e=this._win;if(e){this._isMouseUsedTimer&&(e.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=void 0),this._dismissTimer&&(e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),x_(e);const r=e.document;r.removeEventListener(_r,this._onFocusIn,!0),r.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("keydown",this._onKeyDown,!0),delete this._win,$t.remove(this.id)}}isDisposed(){return!!this._win}update(e){var r,n;const o=(n=(r=this._win)===null||r===void 0?void 0:r.__keyborg)===null||n===void 0?void 0:n.refs;if(o)for(const i of Object.keys(o))qi.update(o[i],e)}_scheduleDismiss(){const e=this._win;if(e){this._dismissTimer&&(e.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);const r=e.document.activeElement;this._dismissTimer=e.setTimeout(()=>{this._dismissTimer=void 0;const n=e.document.activeElement;r&&n&&r===n&&$t.setVal(!1)},M_)}}}class qi{constructor(e,r){this._cb=[],this._id="k"+ ++Yv,this._win=e;const n=e.__keyborg;n?(this._core=n.core,n.refs[this._id]=this):(this._core=new F_(e,r),e.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(e,r){return new qi(e,r)}static dispose(e){e.dispose()}static update(e,r){e._cb.forEach(n=>n(r))}dispose(){var e;const r=(e=this._win)===null||e===void 0?void 0:e.__keyborg;r!=null&&r.refs[this._id]&&(delete r.refs[this._id],Object.keys(r.refs).length===0&&(r.core.dispose(),delete this._win.__keyborg)),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){return $t.getVal()}subscribe(e){this._cb.push(e)}unsubscribe(e){const r=this._cb.indexOf(e);r>=0&&this._cb.splice(r,1)}setVal(e){$t.setVal(e)}}function yd(t,e){return qi.create(t,e)}function wd(t){qi.dispose(t)}/*!
|
|
52
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
53
|
+
* Licensed under the MIT License.
|
|
54
|
+
*/const hr="data-tabster",$v="data-tabster-dummy",D_="tabster:deloser",z_="tabster:modalizer:active",L_="tabster:modalizer:inactive",H_="tabster:modalizer:focusin",U_="tabster:modalizer:focusout",q_="tabster:modalizer:beforefocusout",j_="tabster:mover",Xv="tabster:focusin",Jv="tabster:focusout",kd=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]"].join(", "),K_={Any:0,Accessible:1,Focusable:2},G_={History:0,DeloserDefault:1,RootDefault:2,DeloserFirst:3,RootFirst:4},W_={Invisible:0,PartiallyVisible:1,Visible:2},V_={Source:0,Target:1},Q_={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},Zv={Unlimited:0,Limited:1,LimitedTrapFocus:2},em={Auto:0,Inside:1,Outside:2};var Fc=Object.freeze({__proto__:null,TabsterAttributeName:hr,TabsterDummyInputAttributeName:$v,DeloserEventName:D_,ModalizerActiveEventName:z_,ModalizerInactiveEventName:L_,ModalizerFocusInEventName:H_,ModalizerFocusOutEventName:U_,ModalizerBeforeFocusOutEventName:q_,MoverEventName:j_,FocusInEventName:Xv,FocusOutEventName:Jv,FocusableSelector:kd,ObservedElementAccesibilities:K_,RestoreFocusOrders:G_,Visibilities:W_,RestorerTypes:V_,MoverDirections:Q_,GroupperTabbabilities:Zv,SysDummyInputsPositions:em});/*!
|
|
55
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
56
|
+
* Licensed under the MIT License.
|
|
57
|
+
*/function pr(t,e){var r;return(r=t.storageEntry(e))===null||r===void 0?void 0:r.tabster}function tm(t,e,r){var n,o;const i=r||t._noop?void 0:e.getAttribute(hr);let a=t.storageEntry(e),s;if(i)if(i!==((n=a==null?void 0:a.attr)===null||n===void 0?void 0:n.string))try{const d=JSON.parse(i);if(typeof d!="object")throw new Error(`Value is not a JSON object, got '${i}'.`);s={string:i,object:d}}catch{}else return;else if(!a)return;a||(a=t.storageEntry(e,!0)),a.tabster||(a.tabster={});const l=a.tabster||{},c=((o=a.attr)===null||o===void 0?void 0:o.object)||{},u=(s==null?void 0:s.object)||{};for(const d of Object.keys(c))if(!u[d]){if(d==="root"){const f=l[d];f&&t.root.onRoot(f,!0)}switch(d){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const f=l[d];f&&(f.dispose(),delete l[d]);break;case"observed":delete l[d],t.observedElement&&t.observedElement.onObservedElementUpdate(e);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete l[d];break}}for(const d of Object.keys(u)){const f=u.sys;switch(d){case"deloser":l.deloser?l.deloser.setProps(u.deloser):t.deloser&&(l.deloser=t.deloser.createDeloser(e,u.deloser));break;case"root":l.root?l.root.setProps(u.root):l.root=t.root.createRoot(e,u.root,f),t.root.onRoot(l.root);break;case"modalizer":l.modalizer?l.modalizer.setProps(u.modalizer):t.modalizer&&(l.modalizer=t.modalizer.createModalizer(e,u.modalizer,f));break;case"restorer":l.restorer?l.restorer.setProps(u.restorer):t.restorer&&u.restorer&&(l.restorer=t.restorer.createRestorer(e,u.restorer));break;case"focusable":l.focusable=u.focusable;break;case"groupper":l.groupper?l.groupper.setProps(u.groupper):t.groupper&&(l.groupper=t.groupper.createGroupper(e,u.groupper,f));break;case"mover":l.mover?l.mover.setProps(u.mover):t.mover&&(l.mover=t.mover.createMover(e,u.mover,f));break;case"observed":t.observedElement&&(l.observed=u.observed,t.observedElement.onObservedElementUpdate(e));break;case"uncontrolled":l.uncontrolled=u.uncontrolled;break;case"outline":t.outline&&(l.outline=u.outline);break;case"sys":l.sys=u.sys;break;default:console.error(`Unknown key '${d}' in data-tabster attribute value.`)}}s?a.attr=s:(Object.keys(l).length===0&&(delete a.tabster,delete a.attr),t.storageEntry(e,!1))}/*!
|
|
58
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
59
|
+
* Licensed under the MIT License.
|
|
60
|
+
*/function Y_(t){const e=t();try{if(e.EventTarget)return new e.EventTarget}catch(r){if(!(r instanceof TypeError))throw r}return e.document.createElement("div")}/*!
|
|
61
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
62
|
+
* Licensed under the MIT License.
|
|
63
|
+
*/let Xl,$_=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),Xl=!1}catch{Xl=!0}const Dc=100;function Nn(t){const e=t();let r=e.__tabsterInstanceContext;return r||(r={elementByUId:{},basics:{Promise:e.Promise||void 0,WeakRef:e.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},e.__tabsterInstanceContext=r),r}function X_(t){const e=t.__tabsterInstanceContext;e&&(e.elementByUId={},delete e.WeakRef,e.containerBoundingRectCache={},e.containerBoundingRectCacheTimer&&t.clearTimeout(e.containerBoundingRectCacheTimer),e.fakeWeakRefsTimer&&t.clearTimeout(e.fakeWeakRefsTimer),e.fakeWeakRefs=[],delete t.__tabsterInstanceContext)}function J_(t){const e=t.__tabsterInstanceContext;return new((e==null?void 0:e.basics.WeakMap)||WeakMap)}function Z_(t){return!!t.querySelector(kd)}class rm{constructor(e){this._target=e}deref(){return this._target}static cleanup(e,r){return e._target?r||!Cd(e._target.ownerDocument,e._target)?(delete e._target,!0):!1:!0}}class gr{constructor(e,r,n){const o=Nn(e);let i;o.WeakRef?i=new o.WeakRef(r):(i=new rm(r),o.fakeWeakRefs.push(i)),this._ref=i,this._data=n}get(){const e=this._ref;let r;return e&&(r=e.deref(),r||delete this._ref),r}getData(){return this._data}}function nm(t,e){const r=Nn(t);r.fakeWeakRefs=r.fakeWeakRefs.filter(n=>!rm.cleanup(n,e))}function om(t){const e=Nn(t);e.fakeWeakRefsStarted||(e.fakeWeakRefsStarted=!0,e.WeakRef=ib(e)),e.fakeWeakRefsTimer||(e.fakeWeakRefsTimer=t().setTimeout(()=>{e.fakeWeakRefsTimer=void 0,nm(t),om(t)},2*60*1e3))}function eb(t){const e=Nn(t);e.fakeWeakRefsStarted=!1,e.fakeWeakRefsTimer&&(t().clearTimeout(e.fakeWeakRefsTimer),e.fakeWeakRefsTimer=void 0,e.fakeWeakRefs=[])}function im(t,e,r){if(e.nodeType!==Node.ELEMENT_NODE)return;const n=Xl?r:{acceptNode:r};return t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT,n,!1)}function tb(t){t.__shouldIgnoreFocus=!0}function am(t){return!!t.__shouldIgnoreFocus}function rb(t){const e=new Uint32Array(4);if(t.crypto&&t.crypto.getRandomValues)t.crypto.getRandomValues(e);else if(t.msCrypto&&t.msCrypto.getRandomValues)t.msCrypto.getRandomValues(e);else for(let n=0;n<e.length;n++)e[n]=4294967295*Math.random();const r=[];for(let n=0;n<e.length;n++)r.push(e[n].toString(36));return r.push("|"),r.push((++$_).toString(36)),r.push("|"),r.push(Date.now().toString(36)),r.join("")}function nb(t,e){const r=Nn(t);let n=e.__tabsterElementUID;return n||(n=e.__tabsterElementUID=rb(t())),!r.elementByUId[n]&&Cd(e.ownerDocument,e)&&(r.elementByUId[n]=new gr(t,e)),n}function lh(t,e){const r=Nn(t);for(const n of Object.keys(r.elementByUId)){const o=r.elementByUId[n],i=o&&o.get();i&&e&&!e.contains(i)||delete r.elementByUId[n]}}function Cd(t,e){var r;return!!(!((r=t==null?void 0:t.body)===null||r===void 0)&&r.contains(e))}function ob(t,e){const r=t.matches||t.matchesSelector||t.msMatchesSelector||t.webkitMatchesSelector;return r&&r.call(t,e)}function ib(t){return t.basics.WeakRef}let ab=0;class sm{constructor(e,r,n){const o=e.getWindow;this._tabster=e,this._element=new gr(o,r),this._props={...n},this.id="i"+ ++ab}getElement(){return this._element.get()}getProps(){return this._props}setProps(e){this._props={...e}}}class ls{constructor(e,r,n,o,i){var a;this._focusIn=u=>{if(this._fixedTarget){const f=this._fixedTarget.get();f&&Tn(f);return}const d=this.input;if(this.onFocusIn&&d){const f=u.relatedTarget;this.onFocusIn(this,this._isBackward(!0,d,f),f)}},this._focusOut=u=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const d=this.input;if(this.onFocusOut&&d){const f=u.relatedTarget;this.onFocusOut(this,this._isBackward(!1,d,f),f)}};const s=e(),l=s.document.createElement("i");l.tabIndex=0,l.setAttribute("role","none"),l.setAttribute($v,""),l.setAttribute("aria-hidden","true");const c=l.style;c.position="fixed",c.width=c.height="1px",c.opacity="0.001",c.zIndex="-1",c.setProperty("content-visibility","hidden"),tb(l),this.input=l,this.isFirst=n.isFirst,this.isOutside=r,this._isPhantom=(a=n.isPhantom)!==null&&a!==void 0?a:!1,this._fixedTarget=i,l.addEventListener("focusin",this._focusIn),l.addEventListener("focusout",this._focusOut),l.__tabsterDummyContainer=o,this._isPhantom&&(this._disposeTimer=s.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(s.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var e;this._clearDisposeTimeout&&this._clearDisposeTimeout();const r=this.input;r&&(delete this._fixedTarget,delete this.onFocusIn,delete this.onFocusOut,delete this.input,r.removeEventListener("focusin",this._focusIn),r.removeEventListener("focusout",this._focusOut),delete r.__tabsterDummyContainer,(e=r.parentElement)===null||e===void 0||e.removeChild(r))}setTopLeft(e,r){var n;const o=(n=this.input)===null||n===void 0?void 0:n.style;o&&(o.top=`${e}px`,o.left=`${r}px`)}_isBackward(e,r,n){return e&&!n?!this.isFirst:!!(n&&r.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_FOLLOWING)}}const cm={Root:1,Modalizer:2,Mover:3,Groupper:4};class us{constructor(e,r,n,o,i,a){this._element=r,this._instance=new cb(e,r,this,n,o,i,a)}_setHandlers(e,r){this._onFocusIn=e,this._onFocusOut=r}moveOut(e){var r;(r=this._instance)===null||r===void 0||r.moveOut(e)}moveOutWithDefaultAction(e){var r;(r=this._instance)===null||r===void 0||r.moveOutWithDefaultAction(e)}getHandler(e){return e?this._onFocusIn:this._onFocusOut}setTabbable(e){var r;(r=this._instance)===null||r===void 0||r.setTabbable(this,e)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(e,r,n,o){var i;const s=new ls(e.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(s){let l,c;if(r.tagName==="BODY")l=r,c=n&&o||!n&&!o?r.firstElementChild:null;else{n&&(!o||o&&!e.focusable.isFocusable(r,!1,!0,!0))?(l=r,c=o?r.firstElementChild:null):(l=r.parentElement,c=n&&o||!n&&!o?r:r.nextElementSibling);let u,d;do u=n&&o||!n&&!o?c==null?void 0:c.previousElementSibling:c,d=(i=u==null?void 0:u.__tabsterDummyContainer)===null||i===void 0?void 0:i.get(),d===r?c=n&&o||!n&&!o?u:u==null?void 0:u.nextElementSibling:d=void 0;while(d)}l&&(l.insertBefore(s,c),Tn(s))}}static addPhantomDummyWithTarget(e,r,n,o){const a=new ls(e.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new gr(e.getWindow,o)).input;if(a){let s,l;Z_(r)&&!n?(s=r,l=r.firstElementChild):(s=r.parentElement,l=n?r:r.nextElementSibling),s==null||s.insertBefore(a,l)}}}class sb{constructor(e){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=r=>{var n;this._changedParents.has(r)||(this._changedParents.add(r),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(n=this._win)===null||n===void 0?void 0:n.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const o of this._dummyElements){const i=o.get();if(i){const a=this._dummyCallbacks.get(i);if(a){const s=i.parentElement;(!s||this._changedParents.has(s))&&a()}}}this._changedParents=new WeakSet},Dc)))},this._win=e}add(e,r){!this._dummyCallbacks.has(e)&&this._win&&(this._dummyElements.push(new gr(this._win,e)),this._dummyCallbacks.set(e,r),this.domChanged=this._domChanged)}remove(e){this._dummyElements=this._dummyElements.filter(r=>{const n=r.get();return n&&n!==e}),this._dummyCallbacks.delete(e),this._dummyElements.length===0&&delete this.domChanged}dispose(){var e;const r=(e=this._win)===null||e===void 0?void 0:e.call(this);this._updateTimer&&(r==null||r.clearTimeout(this._updateTimer),delete this._updateTimer),this._updateDummyInputsTimer&&(r==null||r.clearTimeout(this._updateDummyInputsTimer),delete this._updateDummyInputsTimer),this._changedParents=new WeakSet,this._dummyCallbacks=new WeakMap,this._dummyElements=[],this._updateQueue.clear(),delete this.domChanged,delete this._win}updatePositions(e){this._win&&(this._updateQueue.add(e),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var e;this._updateTimer||(this._updateTimer=(e=this._win)===null||e===void 0?void 0:e.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+Dc<=Date.now()){const r=new Map,n=[];for(const o of this._updateQueue)n.push(o(r));this._updateQueue.clear();for(const o of n)o();r.clear()}else this._scheduledUpdatePositions()},Dc))}}class cb{constructor(e,r,n,o,i,a,s){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(p,h,m)=>{this._onFocus(!0,p,h,m)},this._onFocusOut=(p,h,m)=>{this._onFocus(!1,p,h,m)},this.moveOut=p=>{var h;const m=this._firstDummy,C=this._lastDummy;if(m&&C){this._ensurePosition();const v=m.input,g=C.input,y=(h=this._element)===null||h===void 0?void 0:h.get();if(v&&g&&y){let k;p?(v.tabIndex=0,k=v):(g.tabIndex=0,k=g),k&&Tn(k)}}},this.moveOutWithDefaultAction=p=>{var h;const m=this._firstDummy,C=this._lastDummy;if(m&&C){this._ensurePosition();const v=m.input,g=C.input,y=(h=this._element)===null||h===void 0?void 0:h.get();if(v&&g&&y){let k;p?!m.isOutside&&this._tabster.focusable.isFocusable(y,!0,!0,!0)?k=y:(m.useDefaultAction=!0,v.tabIndex=0,k=v):(C.useDefaultAction=!0,g.tabIndex=0,k=g),k&&Tn(k)}}},this.setTabbable=(p,h)=>{var m,C;for(const g of this._wrappers)if(g.manager===p){g.tabbable=h;break}const v=this._getCurrent();if(v){const g=v.tabbable?0:-1;let y=(m=this._firstDummy)===null||m===void 0?void 0:m.input;y&&(y.tabIndex=g),y=(C=this._lastDummy)===null||C===void 0?void 0:C.input,y&&(y.tabIndex=g)}},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=p=>{var h,m;const C=((h=this._firstDummy)===null||h===void 0?void 0:h.input)||((m=this._lastDummy)===null||m===void 0?void 0:m.input),v=this._transformElements,g=new Set;let y=0,k=0;const T=this._getWindow();for(let _=C;_&&_.nodeType===Node.ELEMENT_NODE;_=_.parentElement){let b=p.get(_);if(b===void 0){const R=T.getComputedStyle(_).transform;R&&R!=="none"&&(b={scrollTop:_.scrollTop,scrollLeft:_.scrollLeft}),p.set(_,b||null)}b&&(g.add(_),v.has(_)||_.addEventListener("scroll",this._addTransformOffsets),y+=b.scrollTop,k+=b.scrollLeft)}for(const _ of v)g.has(_)||_.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=g,()=>{var _,b;(_=this._firstDummy)===null||_===void 0||_.setTopLeft(y,k),(b=this._lastDummy)===null||b===void 0||b.setTopLeft(y,k)}};const l=r.get();if(!l)throw new Error("No element");this._tabster=e,this._getWindow=e.getWindow,this._callForDefaultAction=s;const c=l.__tabsterDummy;if((c||this)._wrappers.push({manager:n,priority:o,tabbable:!0}),c)return c;l.__tabsterDummy=this;const u=i==null?void 0:i.dummyInputsPosition,d=l.tagName;this._isOutside=u?u===em.Outside:(a||d==="UL"||d==="OL"||d==="TABLE")&&!(d==="LI"||d==="TD"||d==="TH"),this._firstDummy=new ls(this._getWindow,this._isOutside,{isFirst:!0},r),this._lastDummy=new ls(this._getWindow,this._isOutside,{isFirst:!1},r);const f=this._firstDummy.input;f&&e._dummyObserver.add(f,this._addDummyInputs),this._firstDummy.onFocusIn=this._onFocusIn,this._firstDummy.onFocusOut=this._onFocusOut,this._lastDummy.onFocusIn=this._onFocusIn,this._lastDummy.onFocusOut=this._onFocusOut,this._element=r,this._addDummyInputs()}dispose(e,r){var n,o,i,a;if((this._wrappers=this._wrappers.filter(l=>l.manager!==e&&!r)).length===0){delete((n=this._element)===null||n===void 0?void 0:n.get()).__tabsterDummy;for(const u of this._transformElements)u.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const l=this._getWindow();this._addTimer&&(l.clearTimeout(this._addTimer),delete this._addTimer);const c=(o=this._firstDummy)===null||o===void 0?void 0:o.input;c&&this._tabster._dummyObserver.remove(c),(i=this._firstDummy)===null||i===void 0||i.dispose(),(a=this._lastDummy)===null||a===void 0||a.dispose()}}_onFocus(e,r,n,o){var i;const a=this._getCurrent();a&&(!r.useDefaultAction||this._callForDefaultAction)&&((i=a.manager.getHandler(e))===null||i===void 0||i(r,n,o))}_getCurrent(){return this._wrappers.sort((e,r)=>e.tabbable!==r.tabbable?e.tabbable?-1:1:e.priority-r.priority),this._wrappers[0]}_ensurePosition(){var e,r,n;const o=(e=this._element)===null||e===void 0?void 0:e.get(),i=(r=this._firstDummy)===null||r===void 0?void 0:r.input,a=(n=this._lastDummy)===null||n===void 0?void 0:n.input;if(!(!o||!i||!a))if(this._isOutside){const s=o.parentElement;if(s){const l=o.nextElementSibling;l!==a&&s.insertBefore(a,l),o.previousElementSibling!==i&&s.insertBefore(i,o)}}else{o.lastElementChild!==a&&o.appendChild(a);const s=o.firstElementChild;s&&s!==i&&o.insertBefore(i,s)}}}function lm(t){let e=null;for(let r=t.lastElementChild;r;r=r.lastElementChild)e=r;return e||void 0}function lb(t,e){let r=t,n=null;for(;r&&!n;)n=e?r.previousElementSibling:r.nextElementSibling,r=r.parentElement;return n||void 0}function ds(t,e,r){const n=document.createEvent("HTMLEvents");return n.initEvent(e,!0,!0),n.details=r,t.dispatchEvent(n),!n.defaultPrevented}/*!
|
|
64
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
65
|
+
* Licensed under the MIT License.
|
|
66
|
+
*/function um(t,e){const r=JSON.stringify(t);return e===!0?r:{[hr]:r}}function ub(t,e){for(const r of Object.keys(e)){const n=e[r];n?t[r]=n:delete t[r]}}function db(t,e,r){let n;if(r){const o=t.getAttribute(hr);if(o)try{n=JSON.parse(o)}catch{}}n||(n={}),ub(n,e),Object.keys(n).length>0?t.setAttribute(hr,um(n,!0)):t.removeAttribute(hr)}class uh extends us{constructor(e,r,n,o){super(e,r,cm.Root,o,void 0,!0),this._onDummyInputFocus=i=>{var a;if(i.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const s=this._element.get();if(s){this._setFocused(!0);const l=this._tabster.focusedElement.getFirstOrLastTabbable(i.isFirst,{container:s,ignoreAccessibility:!0});if(l){Tn(l);return}}(a=i.input)===null||a===void 0||a.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=e,this._setFocused=n}}class fb extends sm{constructor(e,r,n,o,i){super(e,r,o),this._isFocused=!1,this._setFocused=l=>{var c;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===l)return;const u=this._element.get();u&&(l?(this._isFocused=!0,(c=this._dummyManager)===null||c===void 0||c.setTabbable(!1),ds(this._tabster.root.eventTarget,"focus",{element:u})):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var d;delete this._setFocusedTimer,this._isFocused=!1,(d=this._dummyManager)===null||d===void 0||d.setTabbable(!0),ds(this._tabster.root.eventTarget,"blur",{element:u})},0))},this._onFocusIn=l=>{const c=this._tabster.getParent,u=this._element.get();let d=l.target;do{if(d===u){this._setFocused(!0);return}d=d&&c(d)}while(d)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=n;const a=e.getWindow;this.uid=nb(a,r),this._sys=i,(e.controlTab||e.rootDummyInputs)&&this.addDummyInputs();const s=a();s.document.addEventListener("focusin",this._onFocusIn),s.document.addEventListener("focusout",this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new uh(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var e;this._onDispose(this);const r=this._tabster.getWindow();r.document.removeEventListener("focusin",this._onFocusIn),r.document.removeEventListener("focusout",this._onFocusOut),this._setFocusedTimer&&(r.clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),(e=this._dummyManager)===null||e===void 0||e.dispose(),this._remove()}moveOutWithDefaultAction(e){const r=this._dummyManager;if(r)r.moveOutWithDefaultAction(e);else{const n=this.getElement();n&&uh.moveWithPhantomDummy(this._tabster,n,!0,e)}}_add(){}_remove(){}}class dt{constructor(e,r){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var n;const o=this._win().document,i=o.body;if(i){this._autoRootUnwait(o);const a=this._autoRoot;if(a)return db(i,{root:a},!0),tm(this._tabster,i),(n=pr(this._tabster,i))===null||n===void 0?void 0:n.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,o.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=n=>{delete this._roots[n.id]},this._tabster=e,this._win=e.getWindow,this._autoRoot=r,this.eventTarget=Y_(this._win),e.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(e){e.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const e=this._win();this._autoRootUnwait(e.document),delete this._autoRoot,Object.keys(this._roots).forEach(r=>{this._roots[r]&&(this._roots[r].dispose(),delete this._roots[r])}),this.rootById={}}createRoot(e,r,n){const o=new fb(this._tabster,e,this._onRootDispose,r,n);return this._roots[o.id]=o,this._forceDummy&&o.addDummyInputs(),o}addDummyInputs(){this._forceDummy=!0;const e=this._roots;for(const r of Object.keys(e))e[r].addDummyInputs()}static getRootByUId(e,r){const n=e().__tabsterInstance;return n&&n.root.rootById[r]}static getTabsterContext(e,r,n){n===void 0&&(n={});var o,i,a,s;if(!r.ownerDocument)return;const{checkRtl:l,referenceElement:c}=n,u=e.getParent;e.drainInitQueue();let d,f,p,h,m=!1,C,v,g,y,k=c||r;const T={};for(;k&&(!d||l);){const b=pr(e,k);if(l&&g===void 0){const Tr=k.dir;Tr&&(g=Tr.toLowerCase()==="rtl")}if(!b){k=u(k);continue}const R=k.tagName;(b.uncontrolled||R==="IFRAME"||R==="WEBVIEW")&&(y=k),!h&&(!((o=b.focusable)===null||o===void 0)&&o.excludeFromMover)&&!p&&(m=!0);const ae=b.modalizer,G=b.groupper,Ge=b.mover;!f&&ae&&(f=ae),!p&&G&&(!f||ae)&&(f?(!G.isActive()&&G.getProps().tabbability&&f.userId!==((i=e.modalizer)===null||i===void 0?void 0:i.activeId)&&(f=void 0,p=G),v=G):p=G),!h&&Ge&&(!f||ae)&&(!G||k!==r)&&(h=Ge,C=!!p&&p!==G),b.root&&(d=b.root),!((a=b.focusable)===null||a===void 0)&&a.ignoreKeydown&&Object.assign(T,b.focusable.ignoreKeydown),k=u(k)}if(!d){const b=e.root;b._autoRoot&&!((s=r.ownerDocument)===null||s===void 0)&&s.body&&(d=b._autoRootCreate())}return p&&!h&&(C=!0),d?{root:d,modalizer:f,groupper:p,mover:h,groupperBeforeMover:C,modalizerInGroupper:v,rtl:l?!!g:void 0,uncontrolled:y,excludedFromMover:m,ignoreKeydown:b=>!!T[b.key]}:void 0}static getRoot(e,r){var n;const o=e.getParent;for(let i=r;i;i=o(i)){const a=(n=pr(e,i))===null||n===void 0?void 0:n.root;if(a)return a}}onRoot(e,r){r?delete this.rootById[e.uid]:this.rootById[e.uid]=e}}/*!
|
|
67
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
68
|
+
* Licensed under the MIT License.
|
|
69
|
+
*/class dm{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(e){const r=this._callbacks;r.indexOf(e)<0&&r.push(e)}subscribeFirst(e){const r=this._callbacks,n=r.indexOf(e);n>=0&&r.splice(n,1),r.unshift(e)}unsubscribe(e){const r=this._callbacks.indexOf(e);r>=0&&this._callbacks.splice(r,1)}setVal(e,r){this._val!==e&&(this._val=e,this._callCallbacks(e,r))}getVal(){return this._val}trigger(e,r){this._callCallbacks(e,r)}_callCallbacks(e,r){this._callbacks.forEach(n=>n(e,r))}}/*!
|
|
70
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
71
|
+
* Licensed under the MIT License.
|
|
72
|
+
*/class hb{constructor(e){this._tabster=e}dispose(){}getProps(e){const r=pr(this._tabster,e);return r&&r.focusable||{}}isFocusable(e,r,n,o){return ob(e,kd)&&(r||e.tabIndex!==-1)?(n||this.isVisible(e))&&(o||this.isAccessible(e)):!1}isVisible(e){if(!e.ownerDocument||e.nodeType!==Node.ELEMENT_NODE||e.offsetParent===null&&e.ownerDocument.body!==e)return!1;const r=e.ownerDocument.defaultView;if(!r)return!1;const n=e.ownerDocument.body.getBoundingClientRect();return!(n.width===0&&n.height===0||r.getComputedStyle(e).visibility==="hidden")}isAccessible(e){var r;for(let n=e;n;n=n.parentElement){const o=pr(this._tabster,n);if(this._isHidden(n)||!((r=o==null?void 0:o.focusable)===null||r===void 0?void 0:r.ignoreAriaDisabled)&&this._isDisabled(n))return!1}return!0}_isDisabled(e){return e.hasAttribute("disabled")}_isHidden(e){var r;const n=e.getAttribute("aria-hidden");return!!(n&&n.toLowerCase()==="true"&&!(!((r=this._tabster.modalizer)===null||r===void 0)&&r.isAugmented(e)))}findFirst(e,r){return this.findElement({...e},r)}findLast(e,r){return this.findElement({isBackward:!0,...e},r)}findNext(e,r){return this.findElement({...e},r)}findPrev(e,r){return this.findElement({...e,isBackward:!0},r)}findDefault(e,r){return this.findElement({...e,acceptCondition:n=>this.isFocusable(n,e.includeProgrammaticallyFocusable)&&!!this.getProps(n).isDefault},r)||null}findAll(e){return this._findElements(!0,e)||[]}findElement(e,r){const n=this._findElements(!1,e,r);return n&&n[0]}_findElements(e,r,n){var o,i,a;const{container:s,currentElement:l=null,includeProgrammaticallyFocusable:c,useActiveModalizer:u,ignoreAccessibility:d,modalizerId:f,isBackward:p,onElement:h}=r;n||(n={});const m=[];let{acceptCondition:C}=r;const v=!!C;if(!s)return null;C||(C=T=>this.isFocusable(T,c,!1,d));const g={container:s,modalizerUserId:f===void 0&&u?(o=this._tabster.modalizer)===null||o===void 0?void 0:o.activeId:f||((a=(i=dt.getTabsterContext(this._tabster,s))===null||i===void 0?void 0:i.modalizer)===null||a===void 0?void 0:a.userId),from:l||s,isBackward:p,acceptCondition:C,hasCustomCondition:v,includeProgrammaticallyFocusable:c,ignoreAccessibility:d,cachedGrouppers:{}},y=im(s.ownerDocument,s,T=>this._acceptElement(T,g));if(!y)return null;const k=T=>{var _,b;const R=(_=g.foundElement)!==null&&_!==void 0?_:g.foundBackward;return R&&m.push(R),e?R&&(g.found=!1,delete g.foundElement,delete g.foundBackward,delete g.fromCtx,g.from=R,h&&!h(R))?!1:!!(R||T):(R&&n&&(n.uncontrolled=(b=dt.getTabsterContext(this._tabster,R))===null||b===void 0?void 0:b.uncontrolled),!!(T&&!R))};if(l||(n.outOfDOMOrder=!0),l)y.currentNode=l;else if(p){const T=lm(s);if(!T)return null;if(this._acceptElement(T,g)===NodeFilter.FILTER_ACCEPT&&!k(!0))return g.skippedFocusable&&(n.outOfDOMOrder=!0),m;y.currentNode=T}do p?y.previousNode():y.nextNode();while(k());return g.skippedFocusable&&(n.outOfDOMOrder=!0),m.length?m:null}_acceptElement(e,r){var n,o,i,a;if(r.found)return NodeFilter.FILTER_ACCEPT;const s=r.foundBackward;if(s&&(e===s||!s.contains(e)))return r.found=!0,r.foundElement=s,NodeFilter.FILTER_ACCEPT;const l=r.container;if(e===l)return NodeFilter.FILTER_SKIP;if(!l.contains(e)||e.__tabsterDummyContainer||!((n=r.rejectElementsFrom)===null||n===void 0)&&n.contains(e))return NodeFilter.FILTER_REJECT;const c=r.currentCtx=dt.getTabsterContext(this._tabster,e);if(!c)return NodeFilter.FILTER_SKIP;if(am(e))return this.isFocusable(e,void 0,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!r.hasCustomCondition&&(e.tagName==="IFRAME"||e.tagName==="WEBVIEW"))return((o=c.modalizer)===null||o===void 0?void 0:o.userId)===((i=this._tabster.modalizer)===null||i===void 0?void 0:i.activeId)?(r.found=!0,r.rejectElementsFrom=r.foundElement=e,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!r.ignoreAccessibility&&!this.isAccessible(e))return this.isFocusable(e,!1,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let u,d=r.fromCtx;d||(d=r.fromCtx=dt.getTabsterContext(this._tabster,r.from));const f=d==null?void 0:d.mover;let p=c.groupper,h=c.mover;if(u=(a=this._tabster.modalizer)===null||a===void 0?void 0:a.acceptElement(e,r),u!==void 0&&(r.skippedFocusable=!0),u===void 0&&(p||h||f)){const m=p==null?void 0:p.getElement(),C=f==null?void 0:f.getElement();let v=h==null?void 0:h.getElement();v&&(C!=null&&C.contains(v))&&l.contains(C)&&(!m||!h||C.contains(m))&&(h=f,v=C),m&&(m===l||!l.contains(m))&&(p=void 0),v&&!l.contains(v)&&(h=void 0),p&&h&&(v&&m&&!m.contains(v)?h=void 0:p=void 0),p&&(u=p.acceptElement(e,r)),h&&(u=h.acceptElement(e,r))}return u===void 0&&(u=r.acceptCondition(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,u===NodeFilter.FILTER_SKIP&&this.isFocusable(e,!1,!0,!0)&&(r.skippedFocusable=!0)),u===NodeFilter.FILTER_ACCEPT&&!r.found&&(r.isBackward?(r.foundBackward=e,u=NodeFilter.FILTER_SKIP):(r.found=!0,r.foundElement=e)),u}}/*!
|
|
73
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
74
|
+
* Licensed under the MIT License.
|
|
75
|
+
*/const Ko={Tab:9,Enter:13,Esc:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,Left:37,Up:38,Right:39,Down:40};/*!
|
|
76
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
77
|
+
* Licensed under the MIT License.
|
|
78
|
+
*/function pb(t,e){var r;const n=t.getParent;let o=e;do{const i=(r=pr(t,o))===null||r===void 0?void 0:r.uncontrolled;if(i&&t.uncontrolled.isUncontrolledCompletely(o,!!i.completely))return o;o=n(o)}while(o)}class Re extends dm{constructor(e,r){super(),this._init=()=>{const n=this._win(),o=n.document;o.addEventListener(_r,this._onFocusIn,!0),o.addEventListener("focusout",this._onFocusOut,!0),n.addEventListener("keydown",this._onKeyDown,!0);const i=o.activeElement;i&&i!==o.body&&this._setFocusedElement(i),this.subscribe(this._onChanged)},this._onFocusIn=n=>{this._setFocusedElement(n.target,n.details.relatedTarget,n.details.isFocusedProgrammatically)},this._onFocusOut=n=>{this._setFocusedElement(void 0,n.relatedTarget)},this._validateFocusedElement=n=>{},this._onKeyDown=n=>{if(n.keyCode!==Ko.Tab||n.ctrlKey)return;const o=this.getVal();if(!o||!o.ownerDocument||o.contentEditable==="true")return;const i=this._tabster,a=i.controlTab,s=dt.getTabsterContext(i,o);if(!s||s.ignoreKeydown(n))return;const l=n.shiftKey,c=Re.findNextTabbable(i,s,void 0,o,void 0,l,!0),u=c==null?void 0:c.element,d=pb(i,o);if(u){const f=c.uncontrolled;if(s.uncontrolled||f!=null&&f.contains(o)){if(!c.outOfDOMOrder&&f===s.uncontrolled||d&&!d.contains(u))return;us.addPhantomDummyWithTarget(i,o,l,u);return}if(f||u.tagName==="IFRAME"){us.moveWithPhantomDummy(this._tabster,f??u,!1,l);return}(a||c!=null&&c.outOfDOMOrder)&&(n.preventDefault(),n.stopImmediatePropagation(),Tn(u))}else d||s.root.moveOutWithDefaultAction(l)},this._onChanged=(n,o)=>{var i,a;if(n)ds(n,Xv,o);else{const s=(i=this._lastVal)===null||i===void 0?void 0:i.get();if(s){const l={...o},c=dt.getTabsterContext(this._tabster,s),u=(a=c==null?void 0:c.modalizer)===null||a===void 0?void 0:a.userId;u&&(l.modalizerId=u),ds(s,Jv,l)}}},this._tabster=e,this._win=r,e.queueInit(this._init)}dispose(){super.dispose();const e=this._win();e.document.removeEventListener(_r,this._onFocusIn,!0),e.document.removeEventListener("focusout",this._onFocusOut,!0),e.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged),delete Re._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(e,r){var n,o;let i=Re._lastResetElement,a=i&&i.get();a&&r.contains(a)&&delete Re._lastResetElement,a=(o=(n=e._nextVal)===null||n===void 0?void 0:n.element)===null||o===void 0?void 0:o.get(),a&&r.contains(a)&&delete e._nextVal,i=e._lastVal,a=i&&i.get(),a&&r.contains(a)&&delete e._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var e;let r=(e=this._lastVal)===null||e===void 0?void 0:e.get();return(!r||r&&!Cd(r.ownerDocument,r))&&(this._lastVal=r=void 0),r}focus(e,r,n){return this._tabster.focusable.isFocusable(e,r,!1,n)?(e.focus(),!0):!1}focusDefault(e){const r=this._tabster.focusable.findDefault({container:e});return r?(this._tabster.focusedElement.focus(r),!0):!1}getFirstOrLastTabbable(e,r){var n;const{container:o,ignoreAccessibility:i}=r;let a;if(o){const s=dt.getTabsterContext(this._tabster,o);s&&(a=(n=Re.findNextTabbable(this._tabster,s,o,void 0,void 0,!e,i))===null||n===void 0?void 0:n.element)}return a&&!(o!=null&&o.contains(a))&&(a=void 0),a||void 0}_focusFirstOrLast(e,r){const n=this.getFirstOrLastTabbable(e,r);return n?(this.focus(n,!1,!0),!0):!1}focusFirst(e){return this._focusFirstOrLast(!0,e)}focusLast(e){return this._focusFirstOrLast(!1,e)}resetFocus(e){if(!this._tabster.focusable.isVisible(e))return!1;if(this._tabster.focusable.isFocusable(e,!0,!0,!0))this.focus(e);else{const r=e.getAttribute("tabindex"),n=e.getAttribute("aria-hidden");e.tabIndex=-1,e.setAttribute("aria-hidden","true"),Re._lastResetElement=new gr(this._win,e),this.focus(e,!0,!0),this._setOrRemoveAttribute(e,"tabindex",r),this._setOrRemoveAttribute(e,"aria-hidden",n)}return!0}_setOrRemoveAttribute(e,r,n){n===null?e.removeAttribute(r):e.setAttribute(r,n)}_setFocusedElement(e,r,n){var o,i;if(this._tabster._noop)return;const a={relatedTarget:r};if(e){const l=(o=Re._lastResetElement)===null||o===void 0?void 0:o.get();if(Re._lastResetElement=void 0,l===e||am(e))return;a.isFocusedProgrammatically=n;const c=dt.getTabsterContext(this._tabster,e),u=(i=c==null?void 0:c.modalizer)===null||i===void 0?void 0:i.userId;u&&(a.modalizerId=u)}const s=this._nextVal={element:e?new gr(this._win,e):void 0,details:a};e&&e!==this._val&&this._validateFocusedElement(e),this._nextVal===s&&this.setVal(e,a),this._nextVal=void 0}setVal(e,r){super.setVal(e,r),e&&(this._lastVal=new gr(this._win,e))}static findNextTabbable(e,r,n,o,i,a,s){const l=n||r.root.getElement();if(!l)return null;let c=null;const u=Re._isTabbingTimer,d=e.getWindow();u&&d.clearTimeout(u),Re.isTabbing=!0,Re._isTabbingTimer=d.setTimeout(()=>{delete Re._isTabbingTimer,Re.isTabbing=!1},0);const f=r.modalizer,p=r.groupper,h=r.mover,m=C=>{var v;if(c=C.findNextTabbable(o,i,a,s),o&&!(c!=null&&c.element)){const g=C!==f&&((v=C.getElement())===null||v===void 0?void 0:v.parentElement);if(g){const y=dt.getTabsterContext(e,o,{referenceElement:g});if(y){const k=C.getElement(),T=a?k:k&&lm(k)||k;T&&(c=Re.findNextTabbable(e,y,n,T,g,a,s),c&&(c.outOfDOMOrder=!0))}}}};if(p&&h)m(r.groupperBeforeMover?p:h);else if(p)m(p);else if(h)m(h);else if(f)m(f);else{const C={container:l,currentElement:o,referenceElement:i,ignoreAccessibility:s,useActiveModalizer:!0},v={};c={element:e.focusable[a?"findPrev":"findNext"](C,v),outOfDOMOrder:v.outOfDOMOrder,uncontrolled:v.uncontrolled}}return c}}Re.isTabbing=!1;/*!
|
|
79
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
80
|
+
* Licensed under the MIT License.
|
|
81
|
+
*/class gb extends us{constructor(e,r,n,o){super(n,e,cm.Groupper,o,!0),this._setHandlers((i,a,s)=>{var l,c;const u=e.get(),d=i.input;if(u&&d){const f=dt.getTabsterContext(n,d);if(f){let p;p=(l=r.findNextTabbable(s||void 0,void 0,a,!0))===null||l===void 0?void 0:l.element,p||(p=(c=Re.findNextTabbable(n,f,void 0,i.isOutside?d:lb(u,!a),void 0,a,!0))===null||c===void 0?void 0:c.element),p&&Tn(p)}}})}}class vb extends sm{constructor(e,r,n,o,i){super(e,r,o),this._shouldTabInside=!1,this.makeTabbable(!1),this._onDispose=n,e.controlTab||(this.dummyManager=new gb(this._element,this,e,i))}dispose(){var e;this._onDispose(this),this._element.get(),(e=this.dummyManager)===null||e===void 0||e.dispose(),delete this.dummyManager,delete this._first}findNextTabbable(e,r,n,o){var i;const a=this.getElement();if(!a)return null;const s=((i=e==null?void 0:e.__tabsterDummyContainer)===null||i===void 0?void 0:i.get())===a;if(!this._shouldTabInside&&e&&a.contains(e)&&!s)return{element:void 0,outOfDOMOrder:!0};const l=this.getFirst(!0);if(!e||!a.contains(e)||s)return{element:l,outOfDOMOrder:!0};const c=this._tabster;let u=null,d=!1,f;if(this._shouldTabInside&&l){const p={container:a,currentElement:e,referenceElement:r,ignoreAccessibility:o,useActiveModalizer:!0},h={};u=c.focusable[n?"findPrev":"findNext"](p,h),d=!!h.outOfDOMOrder,!u&&this._props.tabbability===Zv.LimitedTrapFocus&&(u=c.focusable[n?"findLast":"findFirst"]({container:a,ignoreAccessibility:o,useActiveModalizer:!0},h),d=!0),f=h.uncontrolled}return{element:u,uncontrolled:f,outOfDOMOrder:d}}makeTabbable(e){this._shouldTabInside=e||!this._props.tabbability}isActive(e){var r;const n=this.getElement()||null;let o=!0;for(let a=n==null?void 0:n.parentElement;a;a=a.parentElement){const s=(r=pr(this._tabster,a))===null||r===void 0?void 0:r.groupper;s&&(s._shouldTabInside||(o=!1))}let i=o?this._props.tabbability?this._shouldTabInside:!1:void 0;if(i&&e){const a=this._tabster.focusedElement.getFocusedElement();a&&(i=a!==this.getFirst(!0))}return i}getFirst(e){var r;const n=this.getElement();let o;if(n){if(e&&this._tabster.focusable.isFocusable(n))return n;o=(r=this._first)===null||r===void 0?void 0:r.get(),o||(o=this._tabster.focusable.findFirst({container:n,useActiveModalizer:!0})||void 0,o&&this.setFirst(o))}return o}setFirst(e){e?this._first=new gr(this._tabster.getWindow,e):delete this._first}acceptElement(e,r){var n;const o=r.cachedGrouppers,i=(n=this.getElement())===null||n===void 0?void 0:n.parentElement,a=i&&dt.getTabsterContext(this._tabster,i),s=a==null?void 0:a.groupper,l=a!=null&&a.groupperBeforeMover?s:void 0;let c;const u=p=>{let h=o[p.id],m;return h?m=h.isActive:(m=this.isActive(!0),h=o[p.id]={isActive:m}),m};if(l&&(c=l.getElement(),!u(l)&&c&&r.container!==c&&r.container.contains(c)))return r.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const d=u(this),f=this.getElement();if(f&&d!==!0){if(f===e&&s&&(c||(c=s.getElement()),c&&!u(s)&&r.container.contains(c)&&c!==r.container)||f!==e&&f.contains(e))return r.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const p=o[this.id];let h;if("first"in p?h=p.first:h=p.first=this.getFirst(!0),h&&r.acceptCondition(h))return r.rejectElementsFrom=f,r.skippedFocusable=!0,h!==r.from?(r.found=!0,r.foundElement=h,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT}}}class mb{constructor(e,r){this._current={},this._grouppers={},this._init=()=>{const n=this._win();this._tabster.focusedElement.subscribeFirst(this._onFocus),n.document.addEventListener("mousedown",this._onMouseDown,!0),n.addEventListener("keydown",this._onKeyDown,!0)},this._onGroupperDispose=n=>{delete this._grouppers[n.id]},this._onFocus=n=>{n&&this._updateCurrent(n,!0,!0)},this._onMouseDown=n=>{n.target&&this._updateCurrent(n.target,!0)},this._onKeyDown=n=>{if(n.keyCode!==Ko.Enter&&n.keyCode!==Ko.Esc||n.ctrlKey||n.altKey||n.shiftKey||n.metaKey)return;const o=this._tabster.focusedElement.getFocusedElement();o&&this.handleKeyPress(o,n)},this._tabster=e,this._win=r,e.queueInit(this._init)}dispose(){const e=this._win();this._current={},this._updateTimer&&(e.clearTimeout(this._updateTimer),delete this._updateTimer),this._tabster.focusedElement.unsubscribe(this._onFocus),e.document.removeEventListener("mousedown",this._onMouseDown,!0),e.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._grouppers).forEach(r=>{this._grouppers[r]&&(this._grouppers[r].dispose(),delete this._grouppers[r])})}createGroupper(e,r,n){const o=new vb(this._tabster,e,this._onGroupperDispose,r,n);this._grouppers[o.id]=o;const i=this._tabster.focusedElement.getFocusedElement();return i&&e.contains(i)&&!this._updateTimer&&(this._updateTimer=this._win().setTimeout(()=>{delete this._updateTimer,i===this._tabster.focusedElement.getFocusedElement()&&this._updateCurrent(i,!0,!0)},0)),o}forgetCurrentGrouppers(){this._current={}}_updateCurrent(e,r,n){var o;this._updateTimer&&(this._win().clearTimeout(this._updateTimer),delete this._updateTimer);const i={};let a=!0;for(let s=e;s;s=s.parentElement){const l=(o=pr(this._tabster,s))===null||o===void 0?void 0:o.groupper;if(l){if(i[l.id]=!0,a&&n&&s!==e&&(a=!1),r||!a){this._current[l.id]=l;const c=l.isActive()||e!==s&&(!l.getProps().delegated||l.getFirst(!1)!==e);l.makeTabbable(c)}a=!1}}for(const s of Object.keys(this._current)){const l=this._current[s];l.id in i||(l.makeTabbable(!1),l.setFirst(void 0),delete this._current[s])}}handleKeyPress(e,r,n){var o;const i=this._tabster,a=dt.getTabsterContext(i,e),s=a==null?void 0:a.modalizerInGroupper;let l=(a==null?void 0:a.groupper)||s;if(a&&l){if(a.ignoreKeydown(r))return;let c;const u=l.getElement();if(r.keyCode===Ko.Enter)u&&(e===u||l.getProps().delegated&&e===l.getFirst(!1))&&(c=i.focusable.findNext({container:u,currentElement:e,useActiveModalizer:!0}));else if(r.keyCode===Ko.Esc){if(u&&u.contains(e))if(e!==u||n)c=l.getFirst(!0);else{const d=u.parentElement,f=d?dt.getTabsterContext(i,d):void 0;l=f==null?void 0:f.groupper,c=l==null?void 0:l.getFirst(!0)}l&&(l.makeTabbable(!1),s&&((o=i.modalizer)===null||o===void 0||o.setActive(void 0)))}c&&(r.preventDefault(),r.stopImmediatePropagation(),c.focus())}}}/*!
|
|
82
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
83
|
+
* Licensed under the MIT License.
|
|
84
|
+
*/class yb extends dm{constructor(e){super(),this._onChange=r=>{this.setVal(r,void 0)},this._keyborg=yd(e()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),wd(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(e){var r;(r=this._keyborg)===null||r===void 0||r.setVal(e)}isNavigatingWithKeyboard(){var e;return!!(!((e=this._keyborg)===null||e===void 0)&&e.isNavigatingWithKeyboard())}}/*!
|
|
85
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
86
|
+
* Licensed under the MIT License.
|
|
87
|
+
*/function wb(t,e,r,n){if(typeof MutationObserver>"u")return()=>{};const o=e.getWindow;let i;const a=u=>{var d,f,p,h,m;for(const C of u){const v=C.target,g=C.removedNodes,y=C.addedNodes;if(C.type==="attributes")C.attributeName===hr&&r(e,v);else{for(let k=0;k<g.length;k++)s(g[k],!0),(f=(d=e._dummyObserver).domChanged)===null||f===void 0||f.call(d,v);for(let k=0;k<y.length;k++)s(y[k]),(h=(p=e._dummyObserver).domChanged)===null||h===void 0||h.call(p,v)}}(m=e.modalizer)===null||m===void 0||m.hiddenUpdate()};function s(u,d){i||(i=Nn(o).elementByUId),l(u,d);const f=im(t,u,p=>l(p,d));if(f)for(;f.nextNode(););}function l(u,d){var f;if(!u.getAttribute)return NodeFilter.FILTER_SKIP;const p=u.__tabsterElementUID;return p&&i&&(d?delete i[p]:(f=i[p])!==null&&f!==void 0||(i[p]=new gr(o,u))),(pr(e,u)||u.hasAttribute(hr))&&r(e,u,d),NodeFilter.FILTER_SKIP}const c=new MutationObserver(a);return n&&s(o().document.body),c.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[hr]}),()=>{c.disconnect()}}/*!
|
|
88
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
89
|
+
* Licensed under the MIT License.
|
|
90
|
+
*/class kb{constructor(e){this._isUncontrolledCompletely=e}isUncontrolledCompletely(e,r){var n;const o=(n=this._isUncontrolledCompletely)===null||n===void 0?void 0:n.call(this,e,r);return o===void 0?r:o}}/*!
|
|
91
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
92
|
+
* Licensed under the MIT License.
|
|
93
|
+
*/class Cb{constructor(e){this.keyboardNavigation=e.keyboardNavigation,this.focusedElement=e.focusedElement,this.focusable=e.focusable,this.root=e.root,this.uncontrolled=e.uncontrolled,this.core=e}}class _b{constructor(e,r){var n,o;this._forgetMemorizedElements=[],this._wrappers=new Set,this._initQueue=[],this._version="5.1.0",this._noop=!1,this.getWindow=()=>{if(!this._win)throw new Error("Using disposed Tabster.");return this._win},this._storage=J_(e),this._win=e;const i=this.getWindow;this.keyboardNavigation=new yb(i),this.focusedElement=new Re(this,i),this.focusable=new hb(this),this.root=new dt(this,r==null?void 0:r.autoRoot),this.uncontrolled=new kb((r==null?void 0:r.checkUncontrolledCompletely)||(r==null?void 0:r.checkUncontrolledTrappingFocus)),this.controlTab=(n=r==null?void 0:r.controlTab)!==null&&n!==void 0?n:!0,this.rootDummyInputs=!!(r!=null&&r.rootDummyInputs),this._dummyObserver=new sb(i),this.getParent=(o=r==null?void 0:r.getParent)!==null&&o!==void 0?o:a=>a.parentElement,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:a=>{if(!this._unobserve){const s=i().document;this._unobserve=wb(s,this,tm,a)}}},om(i),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(e){var r;e&&(this.getParent=(r=e.getParent)!==null&&r!==void 0?r:this.getParent)}createTabster(e,r){const n=new Cb(this);return e||this._wrappers.add(n),this._mergeProps(r),n}disposeTabster(e,r){r?this._wrappers.clear():this._wrappers.delete(e),this._wrappers.size===0&&this.dispose()}dispose(){var e,r,n,o,i,a,s,l;this.internal.stopObserver();const c=this._win;c==null||c.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],c&&this._forgetMemorizedTimer&&(c.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(e=this.outline)===null||e===void 0||e.dispose(),(r=this.crossOrigin)===null||r===void 0||r.dispose(),(n=this.deloser)===null||n===void 0||n.dispose(),(o=this.groupper)===null||o===void 0||o.dispose(),(i=this.mover)===null||i===void 0||i.dispose(),(a=this.modalizer)===null||a===void 0||a.dispose(),(s=this.observedElement)===null||s===void 0||s.dispose(),(l=this.restorer)===null||l===void 0||l.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),eb(this.getWindow),lh(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),c&&(X_(c),delete c.__tabsterInstance,delete this._win)}storageEntry(e,r){const n=this._storage;let o=n.get(e);return o?r===!1&&Object.keys(o).length===0&&n.delete(e):r===!0&&(o={},n.set(e,o)),o}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let e=this._forgetMemorizedElements.shift();e;e=this._forgetMemorizedElements.shift())lh(this.getWindow,e),Re.forgetMemorized(this.focusedElement,e)},0),nm(this.getWindow,!0)))}queueInit(e){var r;this._win&&(this._initQueue.push(e),this._initTimer||(this._initTimer=(r=this._win)===null||r===void 0?void 0:r.setTimeout(()=>{delete this._initTimer,this.drainInitQueue()},0)))}drainInitQueue(){if(!this._win)return;const e=this._initQueue;this._initQueue=[],e.forEach(r=>r())}}function bb(t,e){let r=Tb(t);return r?r.createTabster(!1,e):(r=new _b(t,e),t.__tabsterInstance=r,r.createTabster())}function Sb(t){const e=t.core;return e.groupper||(e.groupper=new mb(e,e.getWindow)),e.groupper}function Eb(t,e){t.core.disposeTabster(t,e)}function Tb(t){return t.__tabsterInstance}const _d=()=>{const{targetDocument:t}=Ui(),e=(t==null?void 0:t.defaultView)||void 0,r=E.useMemo(()=>e?bb(e,{autoRoot:{},controlTab:!1,getParent:c_,checkUncontrolledTrappingFocus:n=>{var o;return!!(!((o=n.firstElementChild)===null||o===void 0)&&o.hasAttribute("data-is-focus-trap-zone-bumper"))}}):null,[e]);return pd(()=>()=>{r&&Eb(r)},[r]),r},Ib=t=>(_d(),um(t)),Ab=t=>{const e=_d();return e&&Sb(e),Ib({groupper:{tabbability:Pb(t==null?void 0:t.tabBehavior)},focusable:{ignoreKeydown:t==null?void 0:t.ignoreDefaultKeydown}})},Pb=t=>{switch(t){case"unlimited":return Fc.GroupperTabbabilities.Unlimited;case"limited":return Fc.GroupperTabbabilities.Limited;case"limited-trap-focus":return Fc.GroupperTabbabilities.LimitedTrapFocus;default:return}},Nb=()=>{const t=_d(),{targetDocument:e}=Ui(),r=E.useCallback((s,l)=>(t==null?void 0:t.focusable.findAll({container:s,acceptCondition:l}))||[],[t]),n=E.useCallback(s=>t==null?void 0:t.focusable.findFirst({container:s}),[t]),o=E.useCallback(s=>t==null?void 0:t.focusable.findLast({container:s}),[t]),i=E.useCallback((s,l={})=>{if(!t||!e)return null;const{container:c=e.body}=l;return t.focusable.findNext({currentElement:s,container:c})},[t,e]),a=E.useCallback((s,l={})=>{if(!t||!e)return null;const{container:c=e.body}=l;return t.focusable.findPrev({currentElement:s,container:c})},[t,e]);return{findAllFocusable:r,findFirstFocusable:n,findLastFocusable:o,findNextFocusable:i,findPrevFocusable:a}},dh="data-fui-focus-visible",fm="data-fui-focus-within";function Rb(t,e){if(hm(t))return()=>{};const r={current:void 0},n=yd(e);function o(l){n.isNavigatingWithKeyboard()&&ch(l)&&(r.current=l,l.setAttribute(dh,""))}function i(){r.current&&(r.current.removeAttribute(dh),r.current=void 0)}n.subscribe(l=>{l||i()});const a=l=>{i(),o(l.target)},s=l=>{(!l.relatedTarget||ch(l.relatedTarget)&&!t.contains(l.relatedTarget))&&i()};return t.addEventListener(_r,a),t.addEventListener("focusout",s),t.focusVisible=!0,o(e.document.activeElement),()=>{i(),t.removeEventListener(_r,a),t.removeEventListener("focusout",s),delete t.focusVisible,wd(n)}}function hm(t){return t?t.focusVisible?!0:hm(t==null?void 0:t.parentElement):!1}function Bb(t={}){const e=Ui(),r=E.useRef(null);var n;const o=(n=t.targetDocument)!==null&&n!==void 0?n:e.targetDocument;return E.useEffect(()=>{if(o!=null&&o.defaultView&&r.current)return Rb(r.current,o.defaultView)},[r,o]),r}function xb(t,e){const r=yd(e);r.subscribe(i=>{i||fh(t)});const n=i=>{r.isNavigatingWithKeyboard()&&hh(i.target)&&Mb(t)},o=i=>{(!i.relatedTarget||hh(i.relatedTarget)&&!t.contains(i.relatedTarget))&&fh(t)};return t.addEventListener(_r,n),t.addEventListener("focusout",o),()=>{t.removeEventListener(_r,n),t.removeEventListener("focusout",o),wd(r)}}function Mb(t){t.setAttribute(fm,"")}function fh(t){t.removeAttribute(fm)}function hh(t){return t?!!(t&&typeof t=="object"&&"classList"in t&&"contains"in t):!1}function Ob(){const{targetDocument:t}=Ui(),e=E.useRef(null);return E.useEffect(()=>{if(t!=null&&t.defaultView&&e.current)return xb(e.current,t.defaultView)},[e,t]),e}const q={2:"#050505",4:"#0a0a0a",6:"#0f0f0f",8:"#141414",10:"#1a1a1a",12:"#1f1f1f",14:"#242424",16:"#292929",18:"#2e2e2e",20:"#333333",22:"#383838",24:"#3d3d3d",26:"#424242",28:"#474747",30:"#4d4d4d",32:"#525252",34:"#575757",36:"#5c5c5c",38:"#616161",40:"#666666",42:"#6b6b6b",44:"#707070",46:"#757575",48:"#7a7a7a",50:"#808080",52:"#858585",54:"#8a8a8a",56:"#8f8f8f",58:"#949494",60:"#999999",62:"#9e9e9e",64:"#a3a3a3",66:"#a8a8a8",68:"#adadad",70:"#b3b3b3",72:"#b8b8b8",74:"#bdbdbd",76:"#c2c2c2",78:"#c7c7c7",80:"#cccccc",82:"#d1d1d1",84:"#d6d6d6",86:"#dbdbdb",88:"#e0e0e0",90:"#e6e6e6",92:"#ebebeb",94:"#f0f0f0",96:"#f5f5f5",98:"#fafafa"},Ar={5:"rgba(255, 255, 255, 0.05)",10:"rgba(255, 255, 255, 0.1)",20:"rgba(255, 255, 255, 0.2)",30:"rgba(255, 255, 255, 0.3)",40:"rgba(255, 255, 255, 0.4)",50:"rgba(255, 255, 255, 0.5)",60:"rgba(255, 255, 255, 0.6)",70:"rgba(255, 255, 255, 0.7)",80:"rgba(255, 255, 255, 0.8)",90:"rgba(255, 255, 255, 0.9)"},Pr={5:"rgba(0, 0, 0, 0.05)",10:"rgba(0, 0, 0, 0.1)",20:"rgba(0, 0, 0, 0.2)",30:"rgba(0, 0, 0, 0.3)",40:"rgba(0, 0, 0, 0.4)",50:"rgba(0, 0, 0, 0.5)",60:"rgba(0, 0, 0, 0.6)",70:"rgba(0, 0, 0, 0.7)",80:"rgba(0, 0, 0, 0.8)",90:"rgba(0, 0, 0, 0.9)"},Te="#ffffff",Fb="#000000",Db={shade50:"#130204",shade40:"#230308",shade30:"#420610",shade20:"#590815",shade10:"#690a19",primary:"#750b1c",tint10:"#861b2c",tint20:"#962f3f",tint30:"#ac4f5e",tint40:"#d69ca5",tint50:"#e9c7cd",tint60:"#f9f0f2"},pm={shade50:"#200205",shade40:"#3b0509",shade30:"#6e0811",shade20:"#960b18",shade10:"#b10e1c",primary:"#c50f1f",tint10:"#cc2635",tint20:"#d33f4c",tint30:"#dc626d",tint40:"#eeacb2",tint50:"#f6d1d5",tint60:"#fdf3f4"},zb={shade50:"#210809",shade40:"#3f1011",shade30:"#751d1f",shade20:"#9f282b",shade10:"#bc2f32",primary:"#d13438",tint10:"#d7494c",tint20:"#dc5e62",tint30:"#e37d80",tint40:"#f1bbbc",tint50:"#f8dadb",tint60:"#fdf6f6"},Lb={shade50:"#230900",shade40:"#411200",shade30:"#7a2101",shade20:"#a62d01",shade10:"#c43501",primary:"#da3b01",tint10:"#de501c",tint20:"#e36537",tint30:"#e9835e",tint40:"#f4bfab",tint50:"#f9dcd1",tint60:"#fdf6f3"},Hb={shade50:"#200d03",shade40:"#3d1805",shade30:"#712d09",shade20:"#9a3d0c",shade10:"#b6480e",primary:"#ca5010",tint10:"#d06228",tint20:"#d77440",tint30:"#df8e64",tint40:"#efc4ad",tint50:"#f7dfd2",tint60:"#fdf7f4"},Ub={shade50:"#271002",shade40:"#4a1e04",shade30:"#8a3707",shade20:"#bc4b09",shade10:"#de590b",primary:"#f7630c",tint10:"#f87528",tint20:"#f98845",tint30:"#faa06b",tint40:"#fdcfb4",tint50:"#fee5d7",tint60:"#fff9f5"},qb={shade50:"#291600",shade40:"#4d2a00",shade30:"#8f4e00",shade20:"#c26a00",shade10:"#e67e00",primary:"#ff8c00",tint10:"#ff9a1f",tint20:"#ffa83d",tint30:"#ffba66",tint40:"#ffddb3",tint50:"#ffedd6",tint60:"#fffaf5"},jb={shade50:"#251a00",shade40:"#463100",shade30:"#835b00",shade20:"#b27c00",shade10:"#d39300",primary:"#eaa300",tint10:"#edad1c",tint20:"#efb839",tint30:"#f2c661",tint40:"#f9e2ae",tint50:"#fcefd3",tint60:"#fefbf4"},Kb={primary:"#fde300",shade10:"#e4cc00",shade20:"#c0ad00",shade30:"#817400",shade40:"#4c4400",shade50:"#282400",tint10:"#fde61e",tint20:"#fdea3d",tint30:"#feee66",tint40:"#fef7b2",tint50:"#fffad6",tint60:"#fffef5"},Gb={shade50:"#1f1900",shade40:"#3a2f00",shade30:"#6c5700",shade20:"#937700",shade10:"#ae8c00",primary:"#c19c00",tint10:"#c8a718",tint20:"#d0b232",tint30:"#dac157",tint40:"#ecdfa5",tint50:"#f5eece",tint60:"#fdfbf2"},Wb={shade50:"#181202",shade40:"#2e2103",shade30:"#553e06",shade20:"#745408",shade10:"#89640a",primary:"#986f0b",tint10:"#a47d1e",tint20:"#b18c34",tint30:"#c1a256",tint40:"#e0cea2",tint50:"#efe4cb",tint60:"#fbf8f2"},Vb={shade50:"#170e07",shade40:"#2b1a0e",shade30:"#50301a",shade20:"#6c4123",shade10:"#804d29",primary:"#8e562e",tint10:"#9c663f",tint20:"#a97652",tint30:"#bb8f6f",tint40:"#ddc3b0",tint50:"#edded3",tint60:"#faf7f4"},Qb={shade50:"#0c1501",shade40:"#162702",shade30:"#294903",shade20:"#376304",shade10:"#427505",primary:"#498205",tint10:"#599116",tint20:"#6ba02b",tint30:"#85b44c",tint40:"#bdd99b",tint50:"#dbebc7",tint60:"#f6faf0"},Yb={shade50:"#002111",shade40:"#003d20",shade30:"#00723b",shade20:"#009b51",shade10:"#00b85f",primary:"#00cc6a",tint10:"#19d279",tint20:"#34d889",tint30:"#5ae0a0",tint40:"#a8f0cd",tint50:"#cff7e4",tint60:"#f3fdf8"},$b={shade50:"#031a02",shade40:"#063004",shade30:"#0b5a08",shade20:"#0e7a0b",shade10:"#11910d",primary:"#13a10e",tint10:"#27ac22",tint20:"#3db838",tint30:"#5ec75a",tint40:"#a7e3a5",tint50:"#cef0cd",tint60:"#f2fbf2"},gm={shade50:"#031403",shade40:"#052505",shade30:"#094509",shade20:"#0c5e0c",shade10:"#0e700e",primary:"#107c10",tint10:"#218c21",tint20:"#359b35",tint30:"#54b054",tint40:"#9fd89f",tint50:"#c9eac9",tint60:"#f1faf1"},Xb={shade50:"#021102",shade40:"#032003",shade30:"#063b06",shade20:"#085108",shade10:"#0a5f0a",primary:"#0b6a0b",tint10:"#1a7c1a",tint20:"#2d8e2d",tint30:"#4da64d",tint40:"#9ad29a",tint50:"#c6e7c6",tint60:"#f0f9f0"},Jb={shade50:"#001d1f",shade40:"#00373a",shade30:"#00666d",shade20:"#008b94",shade10:"#00a5af",primary:"#00b7c3",tint10:"#18bfca",tint20:"#32c8d1",tint30:"#58d3db",tint40:"#a6e9ed",tint50:"#cef3f5",tint60:"#f2fcfd"},Zb={shade50:"#001516",shade40:"#012728",shade30:"#02494c",shade20:"#026467",shade10:"#037679",primary:"#038387",tint10:"#159195",tint20:"#2aa0a4",tint30:"#4cb4b7",tint40:"#9bd9db",tint50:"#c7ebec",tint60:"#f0fafa"},e1={shade50:"#000f12",shade40:"#001b22",shade30:"#00333f",shade20:"#004555",shade10:"#005265",primary:"#005b70",tint10:"#0f6c81",tint20:"#237d92",tint30:"#4496a9",tint40:"#94c8d4",tint50:"#c3e1e8",tint60:"#eff7f9"},t1={shade50:"#001322",shade40:"#002440",shade30:"#004377",shade20:"#005ba1",shade10:"#006cbf",primary:"#0078d4",tint10:"#1a86d9",tint20:"#3595de",tint30:"#5caae5",tint40:"#a9d3f2",tint50:"#d0e7f8",tint60:"#f3f9fd"},r1={shade50:"#000c16",shade40:"#00172a",shade30:"#002c4e",shade20:"#003b6a",shade10:"#00467e",primary:"#004e8c",tint10:"#125e9a",tint20:"#286fa8",tint30:"#4a89ba",tint40:"#9abfdc",tint50:"#c7dced",tint60:"#f0f6fa"},n1={shade50:"#0d1126",shade40:"#182047",shade30:"#2c3c85",shade20:"#3c51b4",shade10:"#4760d5",primary:"#4f6bed",tint10:"#637cef",tint20:"#778df1",tint30:"#93a4f4",tint40:"#c8d1fa",tint50:"#e1e6fc",tint60:"#f7f9fe"},o1={shade50:"#00061d",shade40:"#000c36",shade30:"#001665",shade20:"#001e89",shade10:"#0023a2",primary:"#0027b4",tint10:"#173bbd",tint20:"#3050c6",tint30:"#546fd2",tint40:"#a3b2e8",tint50:"#ccd5f3",tint60:"#f2f4fc"},i1={shade50:"#120f25",shade40:"#221d46",shade30:"#3f3682",shade20:"#5649b0",shade10:"#6656d1",primary:"#7160e8",tint10:"#8172eb",tint20:"#9184ee",tint30:"#a79cf1",tint40:"#d2ccf8",tint50:"#e7e4fb",tint60:"#f9f8fe"},a1={shade50:"#0f0717",shade40:"#1c0e2b",shade30:"#341a51",shade20:"#46236e",shade10:"#532982",primary:"#5c2e91",tint10:"#6b3f9e",tint20:"#7c52ab",tint30:"#9470bd",tint40:"#c6b1de",tint50:"#e0d3ed",tint60:"#f7f4fb"},s1={shade50:"#160418",shade40:"#29072e",shade30:"#4c0d55",shade20:"#671174",shade10:"#7a1589",primary:"#881798",tint10:"#952aa4",tint20:"#a33fb1",tint30:"#b55fc1",tint40:"#d9a7e0",tint50:"#eaceef",tint60:"#faf2fb"},c1={shade50:"#1f091d",shade40:"#3a1136",shade30:"#6d2064",shade20:"#932b88",shade10:"#af33a1",primary:"#c239b3",tint10:"#c94cbc",tint20:"#d161c4",tint30:"#da7ed0",tint40:"#edbbe7",tint50:"#f5daf2",tint60:"#fdf5fc"},l1={shade50:"#1c0b1f",shade40:"#35153a",shade30:"#63276d",shade20:"#863593",shade10:"#9f3faf",primary:"#b146c2",tint10:"#ba58c9",tint20:"#c36bd1",tint30:"#cf87da",tint40:"#e6bfed",tint50:"#f2dcf5",tint60:"#fcf6fd"},u1={shade50:"#24091b",shade40:"#441232",shade30:"#80215d",shade20:"#ad2d7e",shade10:"#cd3595",primary:"#e43ba6",tint10:"#e750b0",tint20:"#ea66ba",tint30:"#ef85c8",tint40:"#f7c0e3",tint50:"#fbddf0",tint60:"#fef6fb"},d1={shade50:"#1f0013",shade40:"#390024",shade30:"#6b0043",shade20:"#91005a",shade10:"#ac006b",primary:"#bf0077",tint10:"#c71885",tint20:"#ce3293",tint30:"#d957a8",tint40:"#eca5d1",tint50:"#f5cee6",tint60:"#fcf2f9"},f1={shade50:"#13000c",shade40:"#240017",shade30:"#43002b",shade20:"#5a003b",shade10:"#6b0045",primary:"#77004d",tint10:"#87105d",tint20:"#98246f",tint30:"#ad4589",tint40:"#d696c0",tint50:"#e9c4dc",tint60:"#faf0f6"},h1={shade50:"#141313",shade40:"#252323",shade30:"#444241",shade20:"#5d5958",shade10:"#6e6968",primary:"#7a7574",tint10:"#8a8584",tint20:"#9a9594",tint30:"#afabaa",tint40:"#d7d4d4",tint50:"#eae8e8",tint60:"#faf9f9"},p1={shade50:"#0f0e0e",shade40:"#1c1b1a",shade30:"#343231",shade20:"#474443",shade10:"#54514f",primary:"#5d5a58",tint10:"#706d6b",tint20:"#84817e",tint30:"#9e9b99",tint40:"#cecccb",tint50:"#e5e4e3",tint60:"#f8f8f8"},g1={shade50:"#111314",shade40:"#1f2426",shade30:"#3b4447",shade20:"#505c60",shade10:"#5f6d71",primary:"#69797e",tint10:"#79898d",tint20:"#89989d",tint30:"#a0adb2",tint40:"#cdd6d8",tint50:"#e4e9ea",tint60:"#f8f9fa"},v1={shade50:"#090a0b",shade40:"#111315",shade30:"#202427",shade20:"#2b3135",shade10:"#333a3f",primary:"#394146",tint10:"#4d565c",tint20:"#626c72",tint30:"#808a90",tint40:"#bcc3c7",tint50:"#dbdfe1",tint60:"#f6f7f8"},yt={red:zb,green:gm,darkOrange:Lb,yellow:Kb,berry:c1,lightGreen:$b,marigold:jb},zc={darkRed:Db,cranberry:pm,pumpkin:Hb,peach:qb,gold:Gb,brass:Wb,brown:Vb,forest:Qb,seafoam:Yb,darkGreen:Xb,lightTeal:Jb,teal:Zb,steel:e1,blue:t1,royalBlue:r1,cornflower:n1,navy:o1,lavender:i1,purple:a1,grape:s1,lilac:l1,pink:u1,magenta:d1,plum:f1,beige:h1,mink:p1,platinum:g1,anchor:v1},mt={cranberry:pm,green:gm,orange:Ub},m1=["red","green","darkOrange","yellow","berry","lightGreen","marigold"],y1=["darkRed","cranberry","pumpkin","peach","gold","brass","brown","forest","seafoam","darkGreen","lightTeal","teal","steel","blue","royalBlue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],$s={success:"green",warning:"orange",danger:"cranberry"},ji=m1.reduce((t,e)=>{const r=e.slice(0,1).toUpperCase()+e.slice(1),n={[`colorPalette${r}Background1`]:yt[e].tint60,[`colorPalette${r}Background2`]:yt[e].tint40,[`colorPalette${r}Background3`]:yt[e].primary,[`colorPalette${r}Foreground1`]:yt[e].shade10,[`colorPalette${r}Foreground2`]:yt[e].shade30,[`colorPalette${r}Foreground3`]:yt[e].primary,[`colorPalette${r}BorderActive`]:yt[e].primary,[`colorPalette${r}Border1`]:yt[e].tint40,[`colorPalette${r}Border2`]:yt[e].primary};return Object.assign(t,n)},{});ji.colorPaletteYellowForeground1=yt.yellow.shade30;ji.colorPaletteRedForegroundInverted=yt.red.tint20;ji.colorPaletteGreenForegroundInverted=yt.green.tint20;ji.colorPaletteYellowForegroundInverted=yt.yellow.tint40;const w1=y1.reduce((t,e)=>{const r=e.slice(0,1).toUpperCase()+e.slice(1),n={[`colorPalette${r}Background2`]:zc[e].tint40,[`colorPalette${r}Foreground2`]:zc[e].shade30,[`colorPalette${r}BorderActive`]:zc[e].primary};return Object.assign(t,n)},{}),k1={...ji,...w1},Xs=Object.entries($s).reduce((t,[e,r])=>{const n=e.slice(0,1).toUpperCase()+e.slice(1),o={[`colorStatus${n}Background1`]:mt[r].tint60,[`colorStatus${n}Background2`]:mt[r].tint40,[`colorStatus${n}Background3`]:mt[r].primary,[`colorStatus${n}Foreground1`]:mt[r].shade10,[`colorStatus${n}Foreground2`]:mt[r].shade30,[`colorStatus${n}Foreground3`]:mt[r].primary,[`colorStatus${n}ForegroundInverted`]:mt[r].tint30,[`colorStatus${n}BorderActive`]:mt[r].primary,[`colorStatus${n}Border1`]:mt[r].tint40,[`colorStatus${n}Border2`]:mt[r].primary};return Object.assign(t,o)},{});Xs.colorStatusWarningForeground1=mt[$s.warning].shade20;Xs.colorStatusWarningForeground3=mt[$s.warning].shade20;Xs.colorStatusWarningBorder2=mt[$s.warning].shade20;const C1=t=>({colorNeutralForeground1:q[14],colorNeutralForeground1Hover:q[14],colorNeutralForeground1Pressed:q[14],colorNeutralForeground1Selected:q[14],colorNeutralForeground2:q[26],colorNeutralForeground2Hover:q[14],colorNeutralForeground2Pressed:q[14],colorNeutralForeground2Selected:q[14],colorNeutralForeground2BrandHover:t[80],colorNeutralForeground2BrandPressed:t[70],colorNeutralForeground2BrandSelected:t[80],colorNeutralForeground3:q[38],colorNeutralForeground3Hover:q[26],colorNeutralForeground3Pressed:q[26],colorNeutralForeground3Selected:q[26],colorNeutralForeground3BrandHover:t[80],colorNeutralForeground3BrandPressed:t[70],colorNeutralForeground3BrandSelected:t[80],colorNeutralForeground4:q[44],colorNeutralForegroundDisabled:q[74],colorNeutralForegroundInvertedDisabled:Ar[40],colorBrandForegroundLink:t[70],colorBrandForegroundLinkHover:t[60],colorBrandForegroundLinkPressed:t[40],colorBrandForegroundLinkSelected:t[70],colorNeutralForeground2Link:q[26],colorNeutralForeground2LinkHover:q[14],colorNeutralForeground2LinkPressed:q[14],colorNeutralForeground2LinkSelected:q[14],colorCompoundBrandForeground1:t[80],colorCompoundBrandForeground1Hover:t[70],colorCompoundBrandForeground1Pressed:t[60],colorBrandForeground1:t[80],colorBrandForeground2:t[70],colorBrandForeground2Hover:t[60],colorBrandForeground2Pressed:t[30],colorNeutralForeground1Static:q[14],colorNeutralForegroundStaticInverted:Te,colorNeutralForegroundInverted:Te,colorNeutralForegroundInvertedHover:Te,colorNeutralForegroundInvertedPressed:Te,colorNeutralForegroundInvertedSelected:Te,colorNeutralForegroundInverted2:Te,colorNeutralForegroundOnBrand:Te,colorNeutralForegroundInvertedLink:Te,colorNeutralForegroundInvertedLinkHover:Te,colorNeutralForegroundInvertedLinkPressed:Te,colorNeutralForegroundInvertedLinkSelected:Te,colorBrandForegroundInverted:t[100],colorBrandForegroundInvertedHover:t[110],colorBrandForegroundInvertedPressed:t[100],colorBrandForegroundOnLight:t[80],colorBrandForegroundOnLightHover:t[70],colorBrandForegroundOnLightPressed:t[50],colorBrandForegroundOnLightSelected:t[60],colorNeutralBackground1:Te,colorNeutralBackground1Hover:q[96],colorNeutralBackground1Pressed:q[88],colorNeutralBackground1Selected:q[92],colorNeutralBackground2:q[98],colorNeutralBackground2Hover:q[94],colorNeutralBackground2Pressed:q[86],colorNeutralBackground2Selected:q[90],colorNeutralBackground3:q[96],colorNeutralBackground3Hover:q[92],colorNeutralBackground3Pressed:q[84],colorNeutralBackground3Selected:q[88],colorNeutralBackground4:q[94],colorNeutralBackground4Hover:q[98],colorNeutralBackground4Pressed:q[96],colorNeutralBackground4Selected:Te,colorNeutralBackground5:q[92],colorNeutralBackground5Hover:q[96],colorNeutralBackground5Pressed:q[94],colorNeutralBackground5Selected:q[98],colorNeutralBackground6:q[90],colorNeutralBackgroundInverted:q[16],colorNeutralBackgroundStatic:q[20],colorNeutralBackgroundAlpha:Ar[50],colorNeutralBackgroundAlpha2:Ar[80],colorSubtleBackground:"transparent",colorSubtleBackgroundHover:q[96],colorSubtleBackgroundPressed:q[88],colorSubtleBackgroundSelected:q[92],colorSubtleBackgroundLightAlphaHover:Ar[70],colorSubtleBackgroundLightAlphaPressed:Ar[50],colorSubtleBackgroundLightAlphaSelected:"transparent",colorSubtleBackgroundInverted:"transparent",colorSubtleBackgroundInvertedHover:Pr[10],colorSubtleBackgroundInvertedPressed:Pr[30],colorSubtleBackgroundInvertedSelected:Pr[20],colorTransparentBackground:"transparent",colorTransparentBackgroundHover:"transparent",colorTransparentBackgroundPressed:"transparent",colorTransparentBackgroundSelected:"transparent",colorNeutralBackgroundDisabled:q[94],colorNeutralBackgroundInvertedDisabled:Ar[10],colorNeutralStencil1:q[90],colorNeutralStencil2:q[98],colorNeutralStencil1Alpha:Pr[10],colorNeutralStencil2Alpha:Pr[5],colorBackgroundOverlay:Pr[40],colorScrollbarOverlay:Pr[50],colorBrandBackground:t[80],colorBrandBackgroundHover:t[70],colorBrandBackgroundPressed:t[40],colorBrandBackgroundSelected:t[60],colorCompoundBrandBackground:t[80],colorCompoundBrandBackgroundHover:t[70],colorCompoundBrandBackgroundPressed:t[60],colorBrandBackgroundStatic:t[80],colorBrandBackground2:t[160],colorBrandBackground2Hover:t[150],colorBrandBackground2Pressed:t[130],colorBrandBackgroundInverted:Te,colorBrandBackgroundInvertedHover:t[160],colorBrandBackgroundInvertedPressed:t[140],colorBrandBackgroundInvertedSelected:t[150],colorNeutralStrokeAccessible:q[38],colorNeutralStrokeAccessibleHover:q[34],colorNeutralStrokeAccessiblePressed:q[30],colorNeutralStrokeAccessibleSelected:t[80],colorNeutralStroke1:q[82],colorNeutralStroke1Hover:q[78],colorNeutralStroke1Pressed:q[70],colorNeutralStroke1Selected:q[74],colorNeutralStroke2:q[88],colorNeutralStroke3:q[94],colorNeutralStrokeSubtle:q[88],colorNeutralStrokeOnBrand:Te,colorNeutralStrokeOnBrand2:Te,colorNeutralStrokeOnBrand2Hover:Te,colorNeutralStrokeOnBrand2Pressed:Te,colorNeutralStrokeOnBrand2Selected:Te,colorBrandStroke1:t[80],colorBrandStroke2:t[140],colorBrandStroke2Hover:t[120],colorBrandStroke2Pressed:t[80],colorBrandStroke2Contrast:t[140],colorCompoundBrandStroke:t[80],colorCompoundBrandStrokeHover:t[70],colorCompoundBrandStrokePressed:t[60],colorNeutralStrokeDisabled:q[88],colorNeutralStrokeInvertedDisabled:Ar[40],colorTransparentStroke:"transparent",colorTransparentStrokeInteractive:"transparent",colorTransparentStrokeDisabled:"transparent",colorNeutralStrokeAlpha:Pr[5],colorNeutralStrokeAlpha2:Ar[20],colorStrokeFocus1:Te,colorStrokeFocus2:Fb,colorNeutralShadowAmbient:"rgba(0,0,0,0.12)",colorNeutralShadowKey:"rgba(0,0,0,0.14)",colorNeutralShadowAmbientLighter:"rgba(0,0,0,0.06)",colorNeutralShadowKeyLighter:"rgba(0,0,0,0.07)",colorNeutralShadowAmbientDarker:"rgba(0,0,0,0.20)",colorNeutralShadowKeyDarker:"rgba(0,0,0,0.24)",colorBrandShadowAmbient:"rgba(0,0,0,0.30)",colorBrandShadowKey:"rgba(0,0,0,0.25)"}),_1={borderRadiusNone:"0",borderRadiusSmall:"2px",borderRadiusMedium:"4px",borderRadiusLarge:"6px",borderRadiusXLarge:"8px",borderRadiusCircular:"10000px"},b1={curveAccelerateMax:"cubic-bezier(0.9,0.1,1,0.2)",curveAccelerateMid:"cubic-bezier(1,0,1,1)",curveAccelerateMin:"cubic-bezier(0.8,0,0.78,1)",curveDecelerateMax:"cubic-bezier(0.1,0.9,0.2,1)",curveDecelerateMid:"cubic-bezier(0,0,0,1)",curveDecelerateMin:"cubic-bezier(0.33,0,0.1,1)",curveEasyEaseMax:"cubic-bezier(0.8,0,0.2,1)",curveEasyEase:"cubic-bezier(0.33,0,0.67,1)",curveLinear:"cubic-bezier(0,0,1,1)"},S1={durationUltraFast:"50ms",durationFaster:"100ms",durationFast:"150ms",durationNormal:"200ms",durationGentle:"250ms",durationSlow:"300ms",durationSlower:"400ms",durationUltraSlow:"500ms"},E1={fontSizeBase100:"10px",fontSizeBase200:"12px",fontSizeBase300:"14px",fontSizeBase400:"16px",fontSizeBase500:"20px",fontSizeBase600:"24px",fontSizeHero700:"28px",fontSizeHero800:"32px",fontSizeHero900:"40px",fontSizeHero1000:"68px"},T1={lineHeightBase100:"14px",lineHeightBase200:"16px",lineHeightBase300:"20px",lineHeightBase400:"22px",lineHeightBase500:"28px",lineHeightBase600:"32px",lineHeightHero700:"36px",lineHeightHero800:"40px",lineHeightHero900:"52px",lineHeightHero1000:"92px"},I1={fontWeightRegular:400,fontWeightMedium:500,fontWeightSemibold:600,fontWeightBold:700},A1={fontFamilyBase:"'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif",fontFamilyMonospace:"Consolas, 'Courier New', Courier, monospace",fontFamilyNumeric:"Bahnschrift, 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif"},ke={none:"0",xxs:"2px",xs:"4px",sNudge:"6px",s:"8px",mNudge:"10px",m:"12px",l:"16px",xl:"20px",xxl:"24px",xxxl:"32px"},P1={spacingHorizontalNone:ke.none,spacingHorizontalXXS:ke.xxs,spacingHorizontalXS:ke.xs,spacingHorizontalSNudge:ke.sNudge,spacingHorizontalS:ke.s,spacingHorizontalMNudge:ke.mNudge,spacingHorizontalM:ke.m,spacingHorizontalL:ke.l,spacingHorizontalXL:ke.xl,spacingHorizontalXXL:ke.xxl,spacingHorizontalXXXL:ke.xxxl},N1={spacingVerticalNone:ke.none,spacingVerticalXXS:ke.xxs,spacingVerticalXS:ke.xs,spacingVerticalSNudge:ke.sNudge,spacingVerticalS:ke.s,spacingVerticalMNudge:ke.mNudge,spacingVerticalM:ke.m,spacingVerticalL:ke.l,spacingVerticalXL:ke.xl,spacingVerticalXXL:ke.xxl,spacingVerticalXXXL:ke.xxxl},R1={strokeWidthThin:"1px",strokeWidthThick:"2px",strokeWidthThicker:"3px",strokeWidthThickest:"4px"},Jl={colorNeutralForeground1:"var(--colorNeutralForeground1)",colorNeutralForeground1Hover:"var(--colorNeutralForeground1Hover)",colorNeutralForeground1Pressed:"var(--colorNeutralForeground1Pressed)",colorNeutralForeground1Selected:"var(--colorNeutralForeground1Selected)",colorNeutralForeground2:"var(--colorNeutralForeground2)",colorNeutralForeground2Hover:"var(--colorNeutralForeground2Hover)",colorNeutralForeground2Pressed:"var(--colorNeutralForeground2Pressed)",colorNeutralForeground2Selected:"var(--colorNeutralForeground2Selected)",colorNeutralForeground2BrandHover:"var(--colorNeutralForeground2BrandHover)",colorNeutralForeground2BrandPressed:"var(--colorNeutralForeground2BrandPressed)",colorNeutralForeground2BrandSelected:"var(--colorNeutralForeground2BrandSelected)",colorNeutralForeground3:"var(--colorNeutralForeground3)",colorNeutralForeground3Hover:"var(--colorNeutralForeground3Hover)",colorNeutralForeground3Pressed:"var(--colorNeutralForeground3Pressed)",colorNeutralForeground3Selected:"var(--colorNeutralForeground3Selected)",colorNeutralForeground3BrandHover:"var(--colorNeutralForeground3BrandHover)",colorNeutralForeground3BrandPressed:"var(--colorNeutralForeground3BrandPressed)",colorNeutralForeground3BrandSelected:"var(--colorNeutralForeground3BrandSelected)",colorNeutralForeground4:"var(--colorNeutralForeground4)",colorNeutralForegroundDisabled:"var(--colorNeutralForegroundDisabled)",colorBrandForegroundLink:"var(--colorBrandForegroundLink)",colorBrandForegroundLinkHover:"var(--colorBrandForegroundLinkHover)",colorBrandForegroundLinkPressed:"var(--colorBrandForegroundLinkPressed)",colorBrandForegroundLinkSelected:"var(--colorBrandForegroundLinkSelected)",colorNeutralForeground2Link:"var(--colorNeutralForeground2Link)",colorNeutralForeground2LinkHover:"var(--colorNeutralForeground2LinkHover)",colorNeutralForeground2LinkPressed:"var(--colorNeutralForeground2LinkPressed)",colorNeutralForeground2LinkSelected:"var(--colorNeutralForeground2LinkSelected)",colorCompoundBrandForeground1:"var(--colorCompoundBrandForeground1)",colorCompoundBrandForeground1Hover:"var(--colorCompoundBrandForeground1Hover)",colorCompoundBrandForeground1Pressed:"var(--colorCompoundBrandForeground1Pressed)",colorNeutralForegroundOnBrand:"var(--colorNeutralForegroundOnBrand)",colorNeutralForegroundInverted:"var(--colorNeutralForegroundInverted)",colorNeutralForegroundInvertedHover:"var(--colorNeutralForegroundInvertedHover)",colorNeutralForegroundInvertedPressed:"var(--colorNeutralForegroundInvertedPressed)",colorNeutralForegroundInvertedSelected:"var(--colorNeutralForegroundInvertedSelected)",colorNeutralForegroundInverted2:"var(--colorNeutralForegroundInverted2)",colorNeutralForegroundStaticInverted:"var(--colorNeutralForegroundStaticInverted)",colorNeutralForegroundInvertedLink:"var(--colorNeutralForegroundInvertedLink)",colorNeutralForegroundInvertedLinkHover:"var(--colorNeutralForegroundInvertedLinkHover)",colorNeutralForegroundInvertedLinkPressed:"var(--colorNeutralForegroundInvertedLinkPressed)",colorNeutralForegroundInvertedLinkSelected:"var(--colorNeutralForegroundInvertedLinkSelected)",colorNeutralForegroundInvertedDisabled:"var(--colorNeutralForegroundInvertedDisabled)",colorBrandForeground1:"var(--colorBrandForeground1)",colorBrandForeground2:"var(--colorBrandForeground2)",colorBrandForeground2Hover:"var(--colorBrandForeground2Hover)",colorBrandForeground2Pressed:"var(--colorBrandForeground2Pressed)",colorNeutralForeground1Static:"var(--colorNeutralForeground1Static)",colorBrandForegroundInverted:"var(--colorBrandForegroundInverted)",colorBrandForegroundInvertedHover:"var(--colorBrandForegroundInvertedHover)",colorBrandForegroundInvertedPressed:"var(--colorBrandForegroundInvertedPressed)",colorBrandForegroundOnLight:"var(--colorBrandForegroundOnLight)",colorBrandForegroundOnLightHover:"var(--colorBrandForegroundOnLightHover)",colorBrandForegroundOnLightPressed:"var(--colorBrandForegroundOnLightPressed)",colorBrandForegroundOnLightSelected:"var(--colorBrandForegroundOnLightSelected)",colorNeutralBackground1:"var(--colorNeutralBackground1)",colorNeutralBackground1Hover:"var(--colorNeutralBackground1Hover)",colorNeutralBackground1Pressed:"var(--colorNeutralBackground1Pressed)",colorNeutralBackground1Selected:"var(--colorNeutralBackground1Selected)",colorNeutralBackground2:"var(--colorNeutralBackground2)",colorNeutralBackground2Hover:"var(--colorNeutralBackground2Hover)",colorNeutralBackground2Pressed:"var(--colorNeutralBackground2Pressed)",colorNeutralBackground2Selected:"var(--colorNeutralBackground2Selected)",colorNeutralBackground3:"var(--colorNeutralBackground3)",colorNeutralBackground3Hover:"var(--colorNeutralBackground3Hover)",colorNeutralBackground3Pressed:"var(--colorNeutralBackground3Pressed)",colorNeutralBackground3Selected:"var(--colorNeutralBackground3Selected)",colorNeutralBackground4:"var(--colorNeutralBackground4)",colorNeutralBackground4Hover:"var(--colorNeutralBackground4Hover)",colorNeutralBackground4Pressed:"var(--colorNeutralBackground4Pressed)",colorNeutralBackground4Selected:"var(--colorNeutralBackground4Selected)",colorNeutralBackground5:"var(--colorNeutralBackground5)",colorNeutralBackground5Hover:"var(--colorNeutralBackground5Hover)",colorNeutralBackground5Pressed:"var(--colorNeutralBackground5Pressed)",colorNeutralBackground5Selected:"var(--colorNeutralBackground5Selected)",colorNeutralBackground6:"var(--colorNeutralBackground6)",colorNeutralBackgroundInverted:"var(--colorNeutralBackgroundInverted)",colorNeutralBackgroundStatic:"var(--colorNeutralBackgroundStatic)",colorNeutralBackgroundAlpha:"var(--colorNeutralBackgroundAlpha)",colorNeutralBackgroundAlpha2:"var(--colorNeutralBackgroundAlpha2)",colorSubtleBackground:"var(--colorSubtleBackground)",colorSubtleBackgroundHover:"var(--colorSubtleBackgroundHover)",colorSubtleBackgroundPressed:"var(--colorSubtleBackgroundPressed)",colorSubtleBackgroundSelected:"var(--colorSubtleBackgroundSelected)",colorSubtleBackgroundLightAlphaHover:"var(--colorSubtleBackgroundLightAlphaHover)",colorSubtleBackgroundLightAlphaPressed:"var(--colorSubtleBackgroundLightAlphaPressed)",colorSubtleBackgroundLightAlphaSelected:"var(--colorSubtleBackgroundLightAlphaSelected)",colorSubtleBackgroundInverted:"var(--colorSubtleBackgroundInverted)",colorSubtleBackgroundInvertedHover:"var(--colorSubtleBackgroundInvertedHover)",colorSubtleBackgroundInvertedPressed:"var(--colorSubtleBackgroundInvertedPressed)",colorSubtleBackgroundInvertedSelected:"var(--colorSubtleBackgroundInvertedSelected)",colorTransparentBackground:"var(--colorTransparentBackground)",colorTransparentBackgroundHover:"var(--colorTransparentBackgroundHover)",colorTransparentBackgroundPressed:"var(--colorTransparentBackgroundPressed)",colorTransparentBackgroundSelected:"var(--colorTransparentBackgroundSelected)",colorNeutralBackgroundDisabled:"var(--colorNeutralBackgroundDisabled)",colorNeutralBackgroundInvertedDisabled:"var(--colorNeutralBackgroundInvertedDisabled)",colorNeutralStencil1:"var(--colorNeutralStencil1)",colorNeutralStencil2:"var(--colorNeutralStencil2)",colorNeutralStencil1Alpha:"var(--colorNeutralStencil1Alpha)",colorNeutralStencil2Alpha:"var(--colorNeutralStencil2Alpha)",colorBackgroundOverlay:"var(--colorBackgroundOverlay)",colorScrollbarOverlay:"var(--colorScrollbarOverlay)",colorBrandBackground:"var(--colorBrandBackground)",colorBrandBackgroundHover:"var(--colorBrandBackgroundHover)",colorBrandBackgroundPressed:"var(--colorBrandBackgroundPressed)",colorBrandBackgroundSelected:"var(--colorBrandBackgroundSelected)",colorCompoundBrandBackground:"var(--colorCompoundBrandBackground)",colorCompoundBrandBackgroundHover:"var(--colorCompoundBrandBackgroundHover)",colorCompoundBrandBackgroundPressed:"var(--colorCompoundBrandBackgroundPressed)",colorBrandBackgroundStatic:"var(--colorBrandBackgroundStatic)",colorBrandBackground2:"var(--colorBrandBackground2)",colorBrandBackground2Hover:"var(--colorBrandBackground2Hover)",colorBrandBackground2Pressed:"var(--colorBrandBackground2Pressed)",colorBrandBackgroundInverted:"var(--colorBrandBackgroundInverted)",colorBrandBackgroundInvertedHover:"var(--colorBrandBackgroundInvertedHover)",colorBrandBackgroundInvertedPressed:"var(--colorBrandBackgroundInvertedPressed)",colorBrandBackgroundInvertedSelected:"var(--colorBrandBackgroundInvertedSelected)",colorNeutralStrokeAccessible:"var(--colorNeutralStrokeAccessible)",colorNeutralStrokeAccessibleHover:"var(--colorNeutralStrokeAccessibleHover)",colorNeutralStrokeAccessiblePressed:"var(--colorNeutralStrokeAccessiblePressed)",colorNeutralStrokeAccessibleSelected:"var(--colorNeutralStrokeAccessibleSelected)",colorNeutralStroke1:"var(--colorNeutralStroke1)",colorNeutralStroke1Hover:"var(--colorNeutralStroke1Hover)",colorNeutralStroke1Pressed:"var(--colorNeutralStroke1Pressed)",colorNeutralStroke1Selected:"var(--colorNeutralStroke1Selected)",colorNeutralStroke2:"var(--colorNeutralStroke2)",colorNeutralStroke3:"var(--colorNeutralStroke3)",colorNeutralStrokeSubtle:"var(--colorNeutralStrokeSubtle)",colorNeutralStrokeOnBrand:"var(--colorNeutralStrokeOnBrand)",colorNeutralStrokeOnBrand2:"var(--colorNeutralStrokeOnBrand2)",colorNeutralStrokeOnBrand2Hover:"var(--colorNeutralStrokeOnBrand2Hover)",colorNeutralStrokeOnBrand2Pressed:"var(--colorNeutralStrokeOnBrand2Pressed)",colorNeutralStrokeOnBrand2Selected:"var(--colorNeutralStrokeOnBrand2Selected)",colorBrandStroke1:"var(--colorBrandStroke1)",colorBrandStroke2:"var(--colorBrandStroke2)",colorBrandStroke2Hover:"var(--colorBrandStroke2Hover)",colorBrandStroke2Pressed:"var(--colorBrandStroke2Pressed)",colorBrandStroke2Contrast:"var(--colorBrandStroke2Contrast)",colorCompoundBrandStroke:"var(--colorCompoundBrandStroke)",colorCompoundBrandStrokeHover:"var(--colorCompoundBrandStrokeHover)",colorCompoundBrandStrokePressed:"var(--colorCompoundBrandStrokePressed)",colorNeutralStrokeDisabled:"var(--colorNeutralStrokeDisabled)",colorNeutralStrokeInvertedDisabled:"var(--colorNeutralStrokeInvertedDisabled)",colorTransparentStroke:"var(--colorTransparentStroke)",colorTransparentStrokeInteractive:"var(--colorTransparentStrokeInteractive)",colorTransparentStrokeDisabled:"var(--colorTransparentStrokeDisabled)",colorNeutralStrokeAlpha:"var(--colorNeutralStrokeAlpha)",colorNeutralStrokeAlpha2:"var(--colorNeutralStrokeAlpha2)",colorStrokeFocus1:"var(--colorStrokeFocus1)",colorStrokeFocus2:"var(--colorStrokeFocus2)",colorNeutralShadowAmbient:"var(--colorNeutralShadowAmbient)",colorNeutralShadowKey:"var(--colorNeutralShadowKey)",colorNeutralShadowAmbientLighter:"var(--colorNeutralShadowAmbientLighter)",colorNeutralShadowKeyLighter:"var(--colorNeutralShadowKeyLighter)",colorNeutralShadowAmbientDarker:"var(--colorNeutralShadowAmbientDarker)",colorNeutralShadowKeyDarker:"var(--colorNeutralShadowKeyDarker)",colorBrandShadowAmbient:"var(--colorBrandShadowAmbient)",colorBrandShadowKey:"var(--colorBrandShadowKey)",colorPaletteRedBackground1:"var(--colorPaletteRedBackground1)",colorPaletteRedBackground2:"var(--colorPaletteRedBackground2)",colorPaletteRedBackground3:"var(--colorPaletteRedBackground3)",colorPaletteRedBorderActive:"var(--colorPaletteRedBorderActive)",colorPaletteRedBorder1:"var(--colorPaletteRedBorder1)",colorPaletteRedBorder2:"var(--colorPaletteRedBorder2)",colorPaletteRedForeground1:"var(--colorPaletteRedForeground1)",colorPaletteRedForeground2:"var(--colorPaletteRedForeground2)",colorPaletteRedForeground3:"var(--colorPaletteRedForeground3)",colorPaletteRedForegroundInverted:"var(--colorPaletteRedForegroundInverted)",colorPaletteGreenBackground1:"var(--colorPaletteGreenBackground1)",colorPaletteGreenBackground2:"var(--colorPaletteGreenBackground2)",colorPaletteGreenBackground3:"var(--colorPaletteGreenBackground3)",colorPaletteGreenBorderActive:"var(--colorPaletteGreenBorderActive)",colorPaletteGreenBorder1:"var(--colorPaletteGreenBorder1)",colorPaletteGreenBorder2:"var(--colorPaletteGreenBorder2)",colorPaletteGreenForeground1:"var(--colorPaletteGreenForeground1)",colorPaletteGreenForeground2:"var(--colorPaletteGreenForeground2)",colorPaletteGreenForeground3:"var(--colorPaletteGreenForeground3)",colorPaletteGreenForegroundInverted:"var(--colorPaletteGreenForegroundInverted)",colorPaletteDarkOrangeBackground1:"var(--colorPaletteDarkOrangeBackground1)",colorPaletteDarkOrangeBackground2:"var(--colorPaletteDarkOrangeBackground2)",colorPaletteDarkOrangeBackground3:"var(--colorPaletteDarkOrangeBackground3)",colorPaletteDarkOrangeBorderActive:"var(--colorPaletteDarkOrangeBorderActive)",colorPaletteDarkOrangeBorder1:"var(--colorPaletteDarkOrangeBorder1)",colorPaletteDarkOrangeBorder2:"var(--colorPaletteDarkOrangeBorder2)",colorPaletteDarkOrangeForeground1:"var(--colorPaletteDarkOrangeForeground1)",colorPaletteDarkOrangeForeground2:"var(--colorPaletteDarkOrangeForeground2)",colorPaletteDarkOrangeForeground3:"var(--colorPaletteDarkOrangeForeground3)",colorPaletteYellowBackground1:"var(--colorPaletteYellowBackground1)",colorPaletteYellowBackground2:"var(--colorPaletteYellowBackground2)",colorPaletteYellowBackground3:"var(--colorPaletteYellowBackground3)",colorPaletteYellowBorderActive:"var(--colorPaletteYellowBorderActive)",colorPaletteYellowBorder1:"var(--colorPaletteYellowBorder1)",colorPaletteYellowBorder2:"var(--colorPaletteYellowBorder2)",colorPaletteYellowForeground1:"var(--colorPaletteYellowForeground1)",colorPaletteYellowForeground2:"var(--colorPaletteYellowForeground2)",colorPaletteYellowForeground3:"var(--colorPaletteYellowForeground3)",colorPaletteYellowForegroundInverted:"var(--colorPaletteYellowForegroundInverted)",colorPaletteBerryBackground1:"var(--colorPaletteBerryBackground1)",colorPaletteBerryBackground2:"var(--colorPaletteBerryBackground2)",colorPaletteBerryBackground3:"var(--colorPaletteBerryBackground3)",colorPaletteBerryBorderActive:"var(--colorPaletteBerryBorderActive)",colorPaletteBerryBorder1:"var(--colorPaletteBerryBorder1)",colorPaletteBerryBorder2:"var(--colorPaletteBerryBorder2)",colorPaletteBerryForeground1:"var(--colorPaletteBerryForeground1)",colorPaletteBerryForeground2:"var(--colorPaletteBerryForeground2)",colorPaletteBerryForeground3:"var(--colorPaletteBerryForeground3)",colorPaletteMarigoldBackground1:"var(--colorPaletteMarigoldBackground1)",colorPaletteMarigoldBackground2:"var(--colorPaletteMarigoldBackground2)",colorPaletteMarigoldBackground3:"var(--colorPaletteMarigoldBackground3)",colorPaletteMarigoldBorderActive:"var(--colorPaletteMarigoldBorderActive)",colorPaletteMarigoldBorder1:"var(--colorPaletteMarigoldBorder1)",colorPaletteMarigoldBorder2:"var(--colorPaletteMarigoldBorder2)",colorPaletteMarigoldForeground1:"var(--colorPaletteMarigoldForeground1)",colorPaletteMarigoldForeground2:"var(--colorPaletteMarigoldForeground2)",colorPaletteMarigoldForeground3:"var(--colorPaletteMarigoldForeground3)",colorPaletteLightGreenBackground1:"var(--colorPaletteLightGreenBackground1)",colorPaletteLightGreenBackground2:"var(--colorPaletteLightGreenBackground2)",colorPaletteLightGreenBackground3:"var(--colorPaletteLightGreenBackground3)",colorPaletteLightGreenBorderActive:"var(--colorPaletteLightGreenBorderActive)",colorPaletteLightGreenBorder1:"var(--colorPaletteLightGreenBorder1)",colorPaletteLightGreenBorder2:"var(--colorPaletteLightGreenBorder2)",colorPaletteLightGreenForeground1:"var(--colorPaletteLightGreenForeground1)",colorPaletteLightGreenForeground2:"var(--colorPaletteLightGreenForeground2)",colorPaletteLightGreenForeground3:"var(--colorPaletteLightGreenForeground3)",colorPaletteAnchorBackground2:"var(--colorPaletteAnchorBackground2)",colorPaletteAnchorBorderActive:"var(--colorPaletteAnchorBorderActive)",colorPaletteAnchorForeground2:"var(--colorPaletteAnchorForeground2)",colorPaletteBeigeBackground2:"var(--colorPaletteBeigeBackground2)",colorPaletteBeigeBorderActive:"var(--colorPaletteBeigeBorderActive)",colorPaletteBeigeForeground2:"var(--colorPaletteBeigeForeground2)",colorPaletteBlueBackground2:"var(--colorPaletteBlueBackground2)",colorPaletteBlueBorderActive:"var(--colorPaletteBlueBorderActive)",colorPaletteBlueForeground2:"var(--colorPaletteBlueForeground2)",colorPaletteBrassBackground2:"var(--colorPaletteBrassBackground2)",colorPaletteBrassBorderActive:"var(--colorPaletteBrassBorderActive)",colorPaletteBrassForeground2:"var(--colorPaletteBrassForeground2)",colorPaletteBrownBackground2:"var(--colorPaletteBrownBackground2)",colorPaletteBrownBorderActive:"var(--colorPaletteBrownBorderActive)",colorPaletteBrownForeground2:"var(--colorPaletteBrownForeground2)",colorPaletteCornflowerBackground2:"var(--colorPaletteCornflowerBackground2)",colorPaletteCornflowerBorderActive:"var(--colorPaletteCornflowerBorderActive)",colorPaletteCornflowerForeground2:"var(--colorPaletteCornflowerForeground2)",colorPaletteCranberryBackground2:"var(--colorPaletteCranberryBackground2)",colorPaletteCranberryBorderActive:"var(--colorPaletteCranberryBorderActive)",colorPaletteCranberryForeground2:"var(--colorPaletteCranberryForeground2)",colorPaletteDarkGreenBackground2:"var(--colorPaletteDarkGreenBackground2)",colorPaletteDarkGreenBorderActive:"var(--colorPaletteDarkGreenBorderActive)",colorPaletteDarkGreenForeground2:"var(--colorPaletteDarkGreenForeground2)",colorPaletteDarkRedBackground2:"var(--colorPaletteDarkRedBackground2)",colorPaletteDarkRedBorderActive:"var(--colorPaletteDarkRedBorderActive)",colorPaletteDarkRedForeground2:"var(--colorPaletteDarkRedForeground2)",colorPaletteForestBackground2:"var(--colorPaletteForestBackground2)",colorPaletteForestBorderActive:"var(--colorPaletteForestBorderActive)",colorPaletteForestForeground2:"var(--colorPaletteForestForeground2)",colorPaletteGoldBackground2:"var(--colorPaletteGoldBackground2)",colorPaletteGoldBorderActive:"var(--colorPaletteGoldBorderActive)",colorPaletteGoldForeground2:"var(--colorPaletteGoldForeground2)",colorPaletteGrapeBackground2:"var(--colorPaletteGrapeBackground2)",colorPaletteGrapeBorderActive:"var(--colorPaletteGrapeBorderActive)",colorPaletteGrapeForeground2:"var(--colorPaletteGrapeForeground2)",colorPaletteLavenderBackground2:"var(--colorPaletteLavenderBackground2)",colorPaletteLavenderBorderActive:"var(--colorPaletteLavenderBorderActive)",colorPaletteLavenderForeground2:"var(--colorPaletteLavenderForeground2)",colorPaletteLightTealBackground2:"var(--colorPaletteLightTealBackground2)",colorPaletteLightTealBorderActive:"var(--colorPaletteLightTealBorderActive)",colorPaletteLightTealForeground2:"var(--colorPaletteLightTealForeground2)",colorPaletteLilacBackground2:"var(--colorPaletteLilacBackground2)",colorPaletteLilacBorderActive:"var(--colorPaletteLilacBorderActive)",colorPaletteLilacForeground2:"var(--colorPaletteLilacForeground2)",colorPaletteMagentaBackground2:"var(--colorPaletteMagentaBackground2)",colorPaletteMagentaBorderActive:"var(--colorPaletteMagentaBorderActive)",colorPaletteMagentaForeground2:"var(--colorPaletteMagentaForeground2)",colorPaletteMinkBackground2:"var(--colorPaletteMinkBackground2)",colorPaletteMinkBorderActive:"var(--colorPaletteMinkBorderActive)",colorPaletteMinkForeground2:"var(--colorPaletteMinkForeground2)",colorPaletteNavyBackground2:"var(--colorPaletteNavyBackground2)",colorPaletteNavyBorderActive:"var(--colorPaletteNavyBorderActive)",colorPaletteNavyForeground2:"var(--colorPaletteNavyForeground2)",colorPalettePeachBackground2:"var(--colorPalettePeachBackground2)",colorPalettePeachBorderActive:"var(--colorPalettePeachBorderActive)",colorPalettePeachForeground2:"var(--colorPalettePeachForeground2)",colorPalettePinkBackground2:"var(--colorPalettePinkBackground2)",colorPalettePinkBorderActive:"var(--colorPalettePinkBorderActive)",colorPalettePinkForeground2:"var(--colorPalettePinkForeground2)",colorPalettePlatinumBackground2:"var(--colorPalettePlatinumBackground2)",colorPalettePlatinumBorderActive:"var(--colorPalettePlatinumBorderActive)",colorPalettePlatinumForeground2:"var(--colorPalettePlatinumForeground2)",colorPalettePlumBackground2:"var(--colorPalettePlumBackground2)",colorPalettePlumBorderActive:"var(--colorPalettePlumBorderActive)",colorPalettePlumForeground2:"var(--colorPalettePlumForeground2)",colorPalettePumpkinBackground2:"var(--colorPalettePumpkinBackground2)",colorPalettePumpkinBorderActive:"var(--colorPalettePumpkinBorderActive)",colorPalettePumpkinForeground2:"var(--colorPalettePumpkinForeground2)",colorPalettePurpleBackground2:"var(--colorPalettePurpleBackground2)",colorPalettePurpleBorderActive:"var(--colorPalettePurpleBorderActive)",colorPalettePurpleForeground2:"var(--colorPalettePurpleForeground2)",colorPaletteRoyalBlueBackground2:"var(--colorPaletteRoyalBlueBackground2)",colorPaletteRoyalBlueBorderActive:"var(--colorPaletteRoyalBlueBorderActive)",colorPaletteRoyalBlueForeground2:"var(--colorPaletteRoyalBlueForeground2)",colorPaletteSeafoamBackground2:"var(--colorPaletteSeafoamBackground2)",colorPaletteSeafoamBorderActive:"var(--colorPaletteSeafoamBorderActive)",colorPaletteSeafoamForeground2:"var(--colorPaletteSeafoamForeground2)",colorPaletteSteelBackground2:"var(--colorPaletteSteelBackground2)",colorPaletteSteelBorderActive:"var(--colorPaletteSteelBorderActive)",colorPaletteSteelForeground2:"var(--colorPaletteSteelForeground2)",colorPaletteTealBackground2:"var(--colorPaletteTealBackground2)",colorPaletteTealBorderActive:"var(--colorPaletteTealBorderActive)",colorPaletteTealForeground2:"var(--colorPaletteTealForeground2)",colorStatusSuccessBackground1:"var(--colorStatusSuccessBackground1)",colorStatusSuccessBackground2:"var(--colorStatusSuccessBackground2)",colorStatusSuccessBackground3:"var(--colorStatusSuccessBackground3)",colorStatusSuccessForeground1:"var(--colorStatusSuccessForeground1)",colorStatusSuccessForeground2:"var(--colorStatusSuccessForeground2)",colorStatusSuccessForeground3:"var(--colorStatusSuccessForeground3)",colorStatusSuccessForegroundInverted:"var(--colorStatusSuccessForegroundInverted)",colorStatusSuccessBorderActive:"var(--colorStatusSuccessBorderActive)",colorStatusSuccessBorder1:"var(--colorStatusSuccessBorder1)",colorStatusSuccessBorder2:"var(--colorStatusSuccessBorder2)",colorStatusWarningBackground1:"var(--colorStatusWarningBackground1)",colorStatusWarningBackground2:"var(--colorStatusWarningBackground2)",colorStatusWarningBackground3:"var(--colorStatusWarningBackground3)",colorStatusWarningForeground1:"var(--colorStatusWarningForeground1)",colorStatusWarningForeground2:"var(--colorStatusWarningForeground2)",colorStatusWarningForeground3:"var(--colorStatusWarningForeground3)",colorStatusWarningForegroundInverted:"var(--colorStatusWarningForegroundInverted)",colorStatusWarningBorderActive:"var(--colorStatusWarningBorderActive)",colorStatusWarningBorder1:"var(--colorStatusWarningBorder1)",colorStatusWarningBorder2:"var(--colorStatusWarningBorder2)",colorStatusDangerBackground1:"var(--colorStatusDangerBackground1)",colorStatusDangerBackground2:"var(--colorStatusDangerBackground2)",colorStatusDangerBackground3:"var(--colorStatusDangerBackground3)",colorStatusDangerForeground1:"var(--colorStatusDangerForeground1)",colorStatusDangerForeground2:"var(--colorStatusDangerForeground2)",colorStatusDangerForeground3:"var(--colorStatusDangerForeground3)",colorStatusDangerForegroundInverted:"var(--colorStatusDangerForegroundInverted)",colorStatusDangerBorderActive:"var(--colorStatusDangerBorderActive)",colorStatusDangerBorder1:"var(--colorStatusDangerBorder1)",colorStatusDangerBorder2:"var(--colorStatusDangerBorder2)",borderRadiusNone:"var(--borderRadiusNone)",borderRadiusSmall:"var(--borderRadiusSmall)",borderRadiusMedium:"var(--borderRadiusMedium)",borderRadiusLarge:"var(--borderRadiusLarge)",borderRadiusXLarge:"var(--borderRadiusXLarge)",borderRadiusCircular:"var(--borderRadiusCircular)",fontFamilyBase:"var(--fontFamilyBase)",fontFamilyMonospace:"var(--fontFamilyMonospace)",fontFamilyNumeric:"var(--fontFamilyNumeric)",fontSizeBase100:"var(--fontSizeBase100)",fontSizeBase200:"var(--fontSizeBase200)",fontSizeBase300:"var(--fontSizeBase300)",fontSizeBase400:"var(--fontSizeBase400)",fontSizeBase500:"var(--fontSizeBase500)",fontSizeBase600:"var(--fontSizeBase600)",fontSizeHero700:"var(--fontSizeHero700)",fontSizeHero800:"var(--fontSizeHero800)",fontSizeHero900:"var(--fontSizeHero900)",fontSizeHero1000:"var(--fontSizeHero1000)",fontWeightRegular:"var(--fontWeightRegular)",fontWeightMedium:"var(--fontWeightMedium)",fontWeightSemibold:"var(--fontWeightSemibold)",fontWeightBold:"var(--fontWeightBold)",lineHeightBase100:"var(--lineHeightBase100)",lineHeightBase200:"var(--lineHeightBase200)",lineHeightBase300:"var(--lineHeightBase300)",lineHeightBase400:"var(--lineHeightBase400)",lineHeightBase500:"var(--lineHeightBase500)",lineHeightBase600:"var(--lineHeightBase600)",lineHeightHero700:"var(--lineHeightHero700)",lineHeightHero800:"var(--lineHeightHero800)",lineHeightHero900:"var(--lineHeightHero900)",lineHeightHero1000:"var(--lineHeightHero1000)",shadow2:"var(--shadow2)",shadow4:"var(--shadow4)",shadow8:"var(--shadow8)",shadow16:"var(--shadow16)",shadow28:"var(--shadow28)",shadow64:"var(--shadow64)",shadow2Brand:"var(--shadow2Brand)",shadow4Brand:"var(--shadow4Brand)",shadow8Brand:"var(--shadow8Brand)",shadow16Brand:"var(--shadow16Brand)",shadow28Brand:"var(--shadow28Brand)",shadow64Brand:"var(--shadow64Brand)",strokeWidthThin:"var(--strokeWidthThin)",strokeWidthThick:"var(--strokeWidthThick)",strokeWidthThicker:"var(--strokeWidthThicker)",strokeWidthThickest:"var(--strokeWidthThickest)",spacingHorizontalNone:"var(--spacingHorizontalNone)",spacingHorizontalXXS:"var(--spacingHorizontalXXS)",spacingHorizontalXS:"var(--spacingHorizontalXS)",spacingHorizontalSNudge:"var(--spacingHorizontalSNudge)",spacingHorizontalS:"var(--spacingHorizontalS)",spacingHorizontalMNudge:"var(--spacingHorizontalMNudge)",spacingHorizontalM:"var(--spacingHorizontalM)",spacingHorizontalL:"var(--spacingHorizontalL)",spacingHorizontalXL:"var(--spacingHorizontalXL)",spacingHorizontalXXL:"var(--spacingHorizontalXXL)",spacingHorizontalXXXL:"var(--spacingHorizontalXXXL)",spacingVerticalNone:"var(--spacingVerticalNone)",spacingVerticalXXS:"var(--spacingVerticalXXS)",spacingVerticalXS:"var(--spacingVerticalXS)",spacingVerticalSNudge:"var(--spacingVerticalSNudge)",spacingVerticalS:"var(--spacingVerticalS)",spacingVerticalMNudge:"var(--spacingVerticalMNudge)",spacingVerticalM:"var(--spacingVerticalM)",spacingVerticalL:"var(--spacingVerticalL)",spacingVerticalXL:"var(--spacingVerticalXL)",spacingVerticalXXL:"var(--spacingVerticalXXL)",spacingVerticalXXXL:"var(--spacingVerticalXXXL)",durationUltraFast:"var(--durationUltraFast)",durationFaster:"var(--durationFaster)",durationFast:"var(--durationFast)",durationNormal:"var(--durationNormal)",durationGentle:"var(--durationGentle)",durationSlow:"var(--durationSlow)",durationSlower:"var(--durationSlower)",durationUltraSlow:"var(--durationUltraSlow)",curveAccelerateMax:"var(--curveAccelerateMax)",curveAccelerateMid:"var(--curveAccelerateMid)",curveAccelerateMin:"var(--curveAccelerateMin)",curveDecelerateMax:"var(--curveDecelerateMax)",curveDecelerateMid:"var(--curveDecelerateMid)",curveDecelerateMin:"var(--curveDecelerateMin)",curveEasyEaseMax:"var(--curveEasyEaseMax)",curveEasyEase:"var(--curveEasyEase)",curveLinear:"var(--curveLinear)"};function ph(t,e,r=""){return{[`shadow2${r}`]:`0 0 2px ${t}, 0 1px 2px ${e}`,[`shadow4${r}`]:`0 0 2px ${t}, 0 2px 4px ${e}`,[`shadow8${r}`]:`0 0 2px ${t}, 0 4px 8px ${e}`,[`shadow16${r}`]:`0 0 2px ${t}, 0 8px 16px ${e}`,[`shadow28${r}`]:`0 0 8px ${t}, 0 14px 28px ${e}`,[`shadow64${r}`]:`0 0 8px ${t}, 0 32px 64px ${e}`}}const B1=t=>{const e=C1(t);return{..._1,...E1,...T1,...A1,...I1,...R1,...P1,...N1,...S1,...b1,...e,...k1,...Xs,...ph(e.colorNeutralShadowAmbient,e.colorNeutralShadowKey),...ph(e.colorBrandShadowAmbient,e.colorBrandShadowKey,"Brand")}},x1={10:"#2b2b40",20:"#2f2f4a",30:"#333357",40:"#383966",50:"#3d3e78",60:"#444791",70:"#4f52b2",80:"#5b5fc7",90:"#7579eb",100:"#7f85f5",110:"#9299f7",120:"#aab1fa",130:"#b6bcfa",140:"#c5cbfa",150:"#dce0fa",160:"#e8ebfa"},M1=B1(x1),vm={root:"fui-FluentProvider"},O1=xv({root:{sj55zd:"f19n0e5",De3pzq:"fxugw4r",fsow6f:["f1o700av","fes3tcz"],Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".f19n0e5{color:var(--colorNeutralForeground1);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1o700av{text-align:left;}",".fes3tcz{text-align:right;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),F1=t=>{const e=Li(),r=O1({dir:t.dir,renderer:e});return t.root.className=ce(vm.root,t.themeClassName,r.root,t.root.className),t},D1=E.useInsertionEffect?E.useInsertionEffect:pd,z1=(t,e)=>{if(!t)return;const r=t.createElement("style");return Object.keys(e).forEach(n=>{r.setAttribute(n,e[n])}),t.head.appendChild(r),r},L1=(t,e)=>{const r=t.sheet;r&&(r.cssRules.length>0&&r.deleteRule(0),r.insertRule(e,0))},H1=t=>{const{targetDocument:e,theme:r,rendererAttributes:n}=t,o=E.useRef(),i=gd(vm.root),a=n,s=E.useMemo(()=>CC(`.${i}`,r),[r,i]);return U1(e,i),D1(()=>{const l=e==null?void 0:e.getElementById(i);return l?o.current=l:(o.current=z1(e,{...a,id:i}),o.current&&L1(o.current,s)),()=>{var c;(c=o.current)===null||c===void 0||c.remove()}},[i,e,s,a]),{styleTagId:i,rule:s}};function U1(t,e){E.useState(()=>{if(!t)return;const r=t.getElementById(e);r&&t.head.append(r)})}const q1={},j1=(t,e)=>{const r=Ui(),n=K1(),o=Vv(),i=E.useContext(md)||q1,{applyStylesToPortals:a=!0,customStyleHooks_unstable:s,dir:l=r.dir,targetDocument:c=r.targetDocument,theme:u,overrides_unstable:d={}}=t,f=Lc(n,u),p=Lc(o,d),h=Lc(i,s),m=Li();var C;const{styleTagId:v,rule:g}=H1({theme:f,targetDocument:c,rendererAttributes:(C=m.styleElementAttributes)!==null&&C!==void 0?C:{}});return{applyStylesToPortals:a,customStyleHooks_unstable:h,dir:l,targetDocument:c,theme:f,overrides_unstable:p,themeClassName:v,components:{root:"div"},root:zt(Sr("div",{...t,dir:l,ref:vd(e,Bb({targetDocument:c}))}),{elementType:"div"}),serverStyleProps:{cssRule:g,attributes:{...m.styleElementAttributes,id:v}}}};function Lc(t,e){return t&&e?{...t,...e}:t||e}function K1(){return E.useContext(Kv)}function G1(t){const{applyStylesToPortals:e,customStyleHooks_unstable:r,dir:n,root:o,targetDocument:i,theme:a,themeClassName:s,overrides_unstable:l}=t,c=E.useMemo(()=>({dir:n,targetDocument:i}),[n,i]),[u]=E.useState(()=>({})),d=E.useMemo(()=>({textDirection:n}),[n]);return{customStyleHooks_unstable:r,overrides_unstable:l,provider:c,textDirection:n,iconDirection:d,tooltip:u,theme:a,themeClassName:e?o.className:s}}const mm=E.forwardRef((t,e)=>{const r=j1(t,e);F1(r);const n=G1(r);return P_(r,n)});mm.displayName="FluentProvider";const Fa="Enter",ha=" ";function W1(t,e){const{disabled:r,disabledFocusable:n=!1,["aria-disabled"]:o,onClick:i,onKeyDown:a,onKeyUp:s,...l}=e??{},c=typeof o=="string"?o==="true":o,u=r||n||c,d=Oa(h=>{u?(h.preventDefault(),h.stopPropagation()):i==null||i(h)}),f=Oa(h=>{if(a==null||a(h),h.isDefaultPrevented())return;const m=h.key;if(u&&(m===Fa||m===ha)){h.preventDefault(),h.stopPropagation();return}if(m===ha){h.preventDefault();return}else m===Fa&&(h.preventDefault(),h.currentTarget.click())}),p=Oa(h=>{if(s==null||s(h),h.isDefaultPrevented())return;const m=h.key;if(u&&(m===Fa||m===ha)){h.preventDefault(),h.stopPropagation();return}m===ha&&(h.preventDefault(),h.currentTarget.click())});if(t==="button"||t===void 0)return{...l,disabled:r&&!n,"aria-disabled":n?!0:c,onClick:n?void 0:d,onKeyUp:n?void 0:s,onKeyDown:n?void 0:a};{const h={role:"button",tabIndex:r&&!n?void 0:0,...l,onClick:d,onKeyUp:p,onKeyDown:f,"aria-disabled":r||n||c};return t==="a"&&u&&(h.href=void 0),h}}const V1=(t,e)=>{const r=bC(t,e);var n;const o=W1((n=r==null?void 0:r.as)!==null&&n!==void 0?n:"button",r);return r&&o},Q1=t=>{const{iconOnly:e,iconPosition:r}=t;return Er(t.root,{children:[r!=="after"&&t.icon&&se(t.icon,{}),!e&&t.root.children,r==="after"&&t.icon&&se(t.icon,{})]})},ym=E.createContext(void 0),Y1={};ym.Provider;const $1=()=>{var t;return(t=E.useContext(ym))!==null&&t!==void 0?t:Y1},X1=(t,e)=>{const{size:r}=$1(),{appearance:n="secondary",as:o="button",disabled:i=!1,disabledFocusable:a=!1,icon:s,iconPosition:l="before",shape:c="rounded",size:u=r??"medium"}=t,d=rt(s,{elementType:"span"});return{appearance:n,disabled:i,disabledFocusable:a,iconPosition:l,shape:c,size:u,iconOnly:!!(d!=null&&d.children&&!t.children),components:{root:"button",icon:"span"},root:zt(Sr(o,V1(t,{required:!0,defaultProps:{ref:e,type:"button"}})),{elementType:"button"}),icon:d}},gh={root:"fui-Button",icon:"fui-Button__icon"},J1=Hi("r1alrhcs",null,{r:[".r1alrhcs{align-items:center;box-sizing:border-box;display:inline-flex;justify-content:center;text-decoration-line:none;vertical-align:middle;margin:0;overflow:hidden;background-color:var(--colorNeutralBackground1);color:var(--colorNeutralForeground1);border:var(--strokeWidthThin) solid var(--colorNeutralStroke1);font-family:var(--fontFamilyBase);outline-style:none;padding:5px var(--spacingHorizontalM);min-width:96px;border-radius:var(--borderRadiusMedium);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightSemibold);line-height:var(--lineHeightBase300);transition-duration:var(--durationFaster);transition-property:background,border,color;transition-timing-function:var(--curveEasyEase);}",".r1alrhcs:hover{background-color:var(--colorNeutralBackground1Hover);border-color:var(--colorNeutralStroke1Hover);color:var(--colorNeutralForeground1Hover);cursor:pointer;}",".r1alrhcs:hover:active{background-color:var(--colorNeutralBackground1Pressed);border-color:var(--colorNeutralStroke1Pressed);color:var(--colorNeutralForeground1Pressed);outline-style:none;}",".r1alrhcs[data-fui-focus-visible]{border-color:var(--colorStrokeFocus2);border-radius:var(--borderRadiusMedium);border-width:1px;outline:var(--strokeWidthThick) solid var(--colorTransparentStroke);box-shadow:0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;z-index:1;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1alrhcs{transition-duration:0.01ms;}}","@media (forced-colors: active){.r1alrhcs:focus{border-color:ButtonText;}.r1alrhcs:hover{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}.r1alrhcs:hover:active{background-color:HighlightText;border-color:Highlight;color:Highlight;forced-color-adjust:none;}}","@supports (-moz-appearance:button){.r1alrhcs[data-fui-focus-visible]{box-shadow:0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),Z1=Hi("rywnvv2",null,[".rywnvv2{align-items:center;display:inline-flex;justify-content:center;font-size:20px;height:20px;width:20px;--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}"]),eS=Ee({outline:{De3pzq:"f1c21dwh",Jwef8y:"fjxutwb",iro3zm:"fwiml72"},primary:{De3pzq:"ffp7eso",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"f1phragk",Jwef8y:"f15wkkf3",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f1rq72xc",iro3zm:"fnp9lpt",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1d6v5y2",Bsw6fvg:"f1rirnrt",Bjwas2f:"f1uu00uk",Bn1d65q:["fkvaka8","f9a0qzu"],Bxeuatn:"f1ux7til",n51gp8:["f9a0qzu","fkvaka8"],Bbusuzp:"f1lkg8j3",ycbfsm:"fkc42ay",Bqrx1nm:"fq7113v",pgvf35:"ff1wgvm",Bh7lczh:["fiob0tu","f1x4h75k"],dpv3f4:"f1j6scgf",Bpnjhaq:["f1x4h75k","fiob0tu"],ze5xyy:"f4xjyn1",g2kj27:"fbgcvur",Bf756sw:"f1ks1yx8",Bow2dr7:["f1o6qegi","fmxjhhp"],Bvhedfk:"fcnxywj",Gye4lf:["fmxjhhp","f1o6qegi"],pc6evw:"f9ddjv3"},secondary:{},subtle:{De3pzq:"fhovq9v",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"f1t94bn6",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"fnwyq0v",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",Bbdnnc7:"fy5bs14",iro3zm:"fsv2rcd",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1omzyqd",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",x3br3k:"fj8yq94",ze5xyy:"f4xjyn1",Bx3q9su:"f1et0tmh",pc6evw:"f9ddjv3",xd2cci:"f1wi8ngl"},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],sj55zd:"fkfq4zb",Jwef8y:"fjxutwb",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],Bi91k9c:"f139oj5f",Bk3fhr4:"ft1hn21",Bmfj8id:"fuxngvv",iro3zm:"fwiml72",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"],B2d53fq:"f1fg1p5m",em6i61:"f1dfjoow",vm6p8p:"f1j98vj9",Bqrx1nm:"f1tme0vf",ze5xyy:"f4xjyn1",g2kj27:"f18onu3q",pc6evw:"f9ddjv3"},circular:{Bbmb7ep:["f8fbkgy","f1nfllo7"],Beyfa6y:["f1nfllo7","f8fbkgy"],B7oj6ja:["f1djnp8u","f1s8kh49"],Btl43ni:["f1s8kh49","f1djnp8u"]},rounded:{},square:{Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"]},small:{Bf4jedk:"fh7ncta",z8tnut:"f1khb0e9",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1jnq6q7",uwmqm3:["f1f5gg8d","f1vdfbxk"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},smallWithIcon:{Byoj8tv:"f1brlhvm",z8tnut:"f1sl3k7w"},medium:{},large:{Bf4jedk:"f14es27b",z8tnut:"fp9bwmr",z189sj:["fjodcmx","fhx4nu"],Byoj8tv:"f150uoa4",uwmqm3:["fhx4nu","fjodcmx"],Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},largeWithIcon:{Byoj8tv:"fy7v416",z8tnut:"f1a1bwwz"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".ffp7eso{background-color:var(--colorBrandBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}",".f1phragk{color:var(--colorNeutralForegroundOnBrand);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fkfq4zb{color:var(--colorNeutralForeground2);}",".f8fbkgy{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1nfllo7{border-bottom-left-radius:var(--borderRadiusCircular);}",".f1djnp8u{border-top-right-radius:var(--borderRadiusCircular);}",".f1s8kh49{border-top-left-radius:var(--borderRadiusCircular);}",".fzi6hpg{border-bottom-right-radius:var(--borderRadiusNone);}",".fyowgf4{border-bottom-left-radius:var(--borderRadiusNone);}",".f3fg2lr{border-top-right-radius:var(--borderRadiusNone);}",".f13av6d4{border-top-left-radius:var(--borderRadiusNone);}",".fh7ncta{min-width:64px;}",".f1khb0e9{padding-top:3px;}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1jnq6q7{padding-bottom:3px;}",".f1aa9q02{border-bottom-right-radius:var(--borderRadiusMedium);}",".f16jpd5f{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1jar5jt{border-top-right-radius:var(--borderRadiusMedium);}",".fyu767a{border-top-left-radius:var(--borderRadiusMedium);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1brlhvm{padding-bottom:1px;}",".f1sl3k7w{padding-top:1px;}",".f14es27b{min-width:96px;}",".fp9bwmr{padding-top:8px;}",".fjodcmx{padding-right:var(--spacingHorizontalL);}",".fhx4nu{padding-left:var(--spacingHorizontalL);}",".f150uoa4{padding-bottom:8px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fy7v416{padding-bottom:7px;}",".f1a1bwwz{padding-top:7px;}"],h:[".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".fwiml72:hover:active{background-color:var(--colorTransparentBackgroundPressed);}",".f15wkkf3:hover{background-color:var(--colorBrandBackgroundHover);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1rq72xc:hover{color:var(--colorNeutralForegroundOnBrand);}",".fnp9lpt:hover:active{background-color:var(--colorBrandBackgroundPressed);}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}",".f1d6v5y2:hover:active{color:var(--colorNeutralForegroundOnBrand);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".fnwyq0v:hover{color:var(--colorNeutralForeground2Hover);}",".ft1hn21:hover .fui-Icon-filled{display:inline;}",".fuxngvv:hover .fui-Icon-regular{display:none;}",".fy5bs14:hover .fui-Button__icon{color:var(--colorNeutralForeground2BrandHover);}",".fsv2rcd:hover:active{background-color:var(--colorSubtleBackgroundPressed);}",".f1omzyqd:hover:active{color:var(--colorNeutralForeground2Pressed);}",".f1dfjoow:hover:active .fui-Icon-filled{display:inline;}",".f1j98vj9:hover:active .fui-Icon-regular{display:none;}",".fj8yq94:hover:active .fui-Button__icon{color:var(--colorNeutralForeground2BrandPressed);}",".f139oj5f:hover{color:var(--colorNeutralForeground2BrandHover);}",".f1fg1p5m:hover:active{color:var(--colorNeutralForeground2BrandPressed);}"],m:[["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1uu00uk{border-top-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9a0qzu{border-left-color:HighlightText;}.fkvaka8{border-right-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ux7til{border-bottom-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fq7113v:hover{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.ff1wgvm:hover{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1x4h75k:hover{border-left-color:Highlight;}.fiob0tu:hover{border-right-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1j6scgf:hover{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f4xjyn1:hover{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fbgcvur:hover:active{background-color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1ks1yx8:hover:active{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1o6qegi:hover:active{border-right-color:Highlight;}.fmxjhhp:hover:active{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fcnxywj:hover:active{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f9ddjv3:hover:active{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1et0tmh:hover .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1wi8ngl:hover:active .fui-Button__icon{color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1tme0vf:hover{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18onu3q:hover:active{background-color:var(--colorTransparentBackground);}}",{m:"(forced-colors: active)"}]]}),tS=Ee({base:{De3pzq:"f1bg9a2p",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr",Bfinmwp:"f15x8b5r",Jwef8y:"f1falr9n",Bgoe8wy:"f12mpcsy",Bwzppfd:["f1gwvigk","f18rmfxp"],oetu4i:"f1jnshp0",gg5e9n:["f18rmfxp","f1gwvigk"],Bi91k9c:"fvgxktp",eoavqd:"fphbwmw",Bk3fhr4:"f19vpps7",Bmfj8id:"fv5swzo",Bbdnnc7:"f1al02dq",iro3zm:"f1t6o4dc",b661bw:"f10ztigi",Bk6r4ia:["f1ft5sdu","f1gzf82w"],B9zn80p:"f12zbtn2",Bpld233:["f1gzf82w","f1ft5sdu"],B2d53fq:"fcvwxyo",c3iz72:"f8w4c43",em6i61:"f1ol4fw6",vm6p8p:"f1q1lw4e",x3br3k:"f1dwjv2g"},highContrast:{Bsw6fvg:"f4lkoma",Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bbusuzp:"f1dcs8yz",G867l3:"fjwq6ea",gdbnj:["f1lr3nhc","f1mbxvi6"],mxns5l:"fn5gmvv",o3nasb:["f1mbxvi6","f1lr3nhc"],Bqrx1nm:"f1vmkb5g",pgvf35:"f53ppgq",Bh7lczh:["f1663y11","f80fkiy"],dpv3f4:"f18v5270",Bpnjhaq:["f80fkiy","f1663y11"],ze5xyy:"f1kc2mi9",g2kj27:"f1y0svfh",Bf756sw:"fihuait",Bow2dr7:["fnxhupq","fyd6l6x"],Bvhedfk:"fx507ft",Gye4lf:["fyd6l6x","fnxhupq"],pc6evw:"fb3rf2x"},outline:{De3pzq:"f1c21dwh",Jwef8y:"f9ql6rf",iro3zm:"f3h1zc4"},primary:{g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},secondary:{},subtle:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]},transparent:{De3pzq:"f1c21dwh",g2u3we:"f1p3nwhy",h3c5rm:["f11589ue","f1pdflbu"],B9xav0g:"f1q5o8ev",zhjwy3:["f1pdflbu","f11589ue"],Jwef8y:"f9ql6rf",Bgoe8wy:"f1s2uweq",Bwzppfd:["fr80ssc","fecsdlb"],oetu4i:"f1ukrpxl",gg5e9n:["fecsdlb","fr80ssc"],iro3zm:"f3h1zc4",b661bw:"f1h0usnq",Bk6r4ia:["fs4ktlq","fx2bmrt"],B9zn80p:"f16h9ulv",Bpld233:["fx2bmrt","fs4ktlq"]}},{d:[".f1bg9a2p{background-color:var(--colorNeutralBackgroundDisabled);}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".f15x8b5r .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1p3nwhy{border-top-color:transparent;}",".f11589ue{border-right-color:transparent;}",".f1pdflbu{border-left-color:transparent;}",".f1q5o8ev{border-bottom-color:transparent;}"],h:[".f1falr9n:hover{background-color:var(--colorNeutralBackgroundDisabled);}",".f12mpcsy:hover{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1gwvigk:hover{border-right-color:var(--colorNeutralStrokeDisabled);}",".f18rmfxp:hover{border-left-color:var(--colorNeutralStrokeDisabled);}",".f1jnshp0:hover{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fvgxktp:hover{color:var(--colorNeutralForegroundDisabled);}",".fphbwmw:hover{cursor:not-allowed;}",".f19vpps7:hover .fui-Icon-filled{display:none;}",".fv5swzo:hover .fui-Icon-regular{display:inline;}",".f1al02dq:hover .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f1t6o4dc:hover:active{background-color:var(--colorNeutralBackgroundDisabled);}",".f10ztigi:hover:active{border-top-color:var(--colorNeutralStrokeDisabled);}",".f1ft5sdu:hover:active{border-right-color:var(--colorNeutralStrokeDisabled);}",".f1gzf82w:hover:active{border-left-color:var(--colorNeutralStrokeDisabled);}",".f12zbtn2:hover:active{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fcvwxyo:hover:active{color:var(--colorNeutralForegroundDisabled);}",".f8w4c43:hover:active{cursor:not-allowed;}",".f1ol4fw6:hover:active .fui-Icon-filled{display:none;}",".f1q1lw4e:hover:active .fui-Icon-regular{display:inline;}",".f1dwjv2g:hover:active .fui-Button__icon{color:var(--colorNeutralForegroundDisabled);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}",".f3h1zc4:hover:active{background-color:var(--colorTransparentBackground);}",".f1s2uweq:hover{border-top-color:transparent;}",".fr80ssc:hover{border-right-color:transparent;}",".fecsdlb:hover{border-left-color:transparent;}",".f1ukrpxl:hover{border-bottom-color:transparent;}",".f1h0usnq:hover:active{border-top-color:transparent;}",".fs4ktlq:hover:active{border-right-color:transparent;}",".fx2bmrt:hover:active{border-left-color:transparent;}",".f16h9ulv:hover:active{border-bottom-color:transparent;}"],m:[["@media (forced-colors: active){.f4lkoma{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fjwq6ea:focus{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lr3nhc:focus{border-right-color:GrayText;}.f1mbxvi6:focus{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fn5gmvv:focus{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1vmkb5g:hover{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f53ppgq:hover{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1663y11:hover{border-right-color:GrayText;}.f80fkiy:hover{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f18v5270:hover{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1kc2mi9:hover{color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1y0svfh:hover:active{background-color:ButtonFace;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fihuait:hover:active{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnxhupq:hover:active{border-right-color:GrayText;}.fyd6l6x:hover:active{border-left-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fx507ft:hover:active{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fb3rf2x:hover:active{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),rS=Ee({circular:{kdpuga:["fanj13w","f1gou5sz"],Bw81rd7:["f1gou5sz","fanj13w"],B6xbmo0:["fulf6x3","foeb2x"],dm238s:["foeb2x","fulf6x3"]},rounded:{},square:{kdpuga:["f1ndz5i7","f1co4qro"],Bw81rd7:["f1co4qro","f1ndz5i7"],B6xbmo0:["f146y5a9","f1k2ftg"],dm238s:["f1k2ftg","f146y5a9"]},primary:{B8q5s1w:"f17t0x8g",Bci5o5g:["f194v5ow","fk7jm04"],n8qw10:"f1qgg65p",Bdrgwmp:["fk7jm04","f194v5ow"],j6ew2k:["fhgccpy","fjo7pq6"],he4mth:"f32wu9k",Byr4aka:"fu5nqqq",lks7q5:["f13prjl2","f1nl83rv"],Bnan3qt:"f1czftr5",k1dn9:["f1nl83rv","f13prjl2"],Boium3a:["f12k37oa","fdnykm2"],tm8e47:"fr96u23"},small:{kdpuga:["fg3gtdo","fwii5mg"],Bw81rd7:["fwii5mg","fg3gtdo"],B6xbmo0:["f1palphq","f12nxie7"],dm238s:["f12nxie7","f1palphq"]},medium:{},large:{kdpuga:["ft3lys4","f1la4x2g"],Bw81rd7:["f1la4x2g","ft3lys4"],B6xbmo0:["f156y0zm","fakimq4"],dm238s:["fakimq4","f156y0zm"]}},{d:[".fanj13w[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusCircular);}",".f1gou5sz[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusCircular);}",".fulf6x3[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusCircular);}",".foeb2x[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusCircular);}",".f1ndz5i7[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusNone);}",".f1co4qro[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusNone);}",".f146y5a9[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusNone);}",".f1k2ftg[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusNone);}",".f17t0x8g[data-fui-focus-visible]{border-top-color:var(--colorStrokeFocus2);}",".f194v5ow[data-fui-focus-visible]{border-right-color:var(--colorStrokeFocus2);}",".fk7jm04[data-fui-focus-visible]{border-left-color:var(--colorStrokeFocus2);}",".f1qgg65p[data-fui-focus-visible]{border-bottom-color:var(--colorStrokeFocus2);}",".fhgccpy[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".fjo7pq6[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}",".f32wu9k[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 var(--strokeWidthThin) var(--colorStrokeFocus2) inset;}",".fu5nqqq[data-fui-focus-visible]:hover{border-top-color:var(--colorStrokeFocus2);}",".f13prjl2[data-fui-focus-visible]:hover{border-right-color:var(--colorStrokeFocus2);}",".f1nl83rv[data-fui-focus-visible]:hover{border-left-color:var(--colorStrokeFocus2);}",".f1czftr5[data-fui-focus-visible]:hover{border-bottom-color:var(--colorStrokeFocus2);}",".fg3gtdo[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusSmall);}",".fwii5mg[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1palphq[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusSmall);}",".f12nxie7[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusSmall);}",".ft3lys4[data-fui-focus-visible]{border-bottom-right-radius:var(--borderRadiusLarge);}",".f1la4x2g[data-fui-focus-visible]{border-bottom-left-radius:var(--borderRadiusLarge);}",".f156y0zm[data-fui-focus-visible]{border-top-right-radius:var(--borderRadiusLarge);}",".fakimq4[data-fui-focus-visible]{border-top-left-radius:var(--borderRadiusLarge);}"],t:["@supports (-moz-appearance:button){.f12k37oa[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}.fdnykm2[data-fui-focus-visible]{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset,0 0 0 var(--strokeWidthThick) var(--colorNeutralForegroundOnBrand) inset;}}","@supports (-moz-appearance:button){.fr96u23[data-fui-focus-visible]:hover{box-shadow:var(--shadow2),0 0 0 calc(var(--strokeWidthThin) + 0.25px) var(--colorStrokeFocus2) inset;}}"]}),nS=Ee({small:{z8tnut:"f1sl3k7w",z189sj:["f136y8j8","f10xn8zz"],Byoj8tv:"f1brlhvm",uwmqm3:["f10xn8zz","f136y8j8"],Bf4jedk:"f17fgpbq",B2u0y6b:"f1jt17bm"},medium:{z8tnut:"f1sbtcvk",z189sj:["fwiuce9","f15vdbe4"],Byoj8tv:"fdghr9",uwmqm3:["f15vdbe4","fwiuce9"],Bf4jedk:"fwbmr0d",B2u0y6b:"f44c6la"},large:{z8tnut:"f1a1bwwz",z189sj:["f18k1jr3","f1rtp3s9"],Byoj8tv:"fy7v416",uwmqm3:["f1rtp3s9","f18k1jr3"],Bf4jedk:"f12clzc2",B2u0y6b:"fjy1crr"}},{d:[".f1sl3k7w{padding-top:1px;}",".f136y8j8{padding-right:1px;}",".f10xn8zz{padding-left:1px;}",".f1brlhvm{padding-bottom:1px;}",".f17fgpbq{min-width:24px;}",".f1jt17bm{max-width:24px;}",".f1sbtcvk{padding-top:5px;}",".fwiuce9{padding-right:5px;}",".f15vdbe4{padding-left:5px;}",".fdghr9{padding-bottom:5px;}",".fwbmr0d{min-width:32px;}",".f44c6la{max-width:32px;}",".f1a1bwwz{padding-top:7px;}",".f18k1jr3{padding-right:7px;}",".f1rtp3s9{padding-left:7px;}",".fy7v416{padding-bottom:7px;}",".f12clzc2{min-width:40px;}",".fjy1crr{max-width:40px;}"]}),oS=Ee({small:{Be2twd7:"fe5j1ua",Bqenvij:"fjamq6b",a9b677:"f64fuq3",Bqrlyyl:"fbaiahx"},medium:{},large:{Be2twd7:"f1rt2boy",Bqenvij:"frvgh55",a9b677:"fq4mcun",Bqrlyyl:"f1exjqw5"},before:{t21cq0:["f1nizpg2","f1a695kz"]},after:{Frg6f3:["f1a695kz","f1nizpg2"]}},{d:[".fe5j1ua{font-size:20px;}",".fjamq6b{height:20px;}",".f64fuq3{width:20px;}",".fbaiahx{--fui-Button__icon--spacing:var(--spacingHorizontalXS);}",".f1rt2boy{font-size:24px;}",".frvgh55{height:24px;}",".fq4mcun{width:24px;}",".f1exjqw5{--fui-Button__icon--spacing:var(--spacingHorizontalSNudge);}",".f1nizpg2{margin-right:var(--fui-Button__icon--spacing);}",".f1a695kz{margin-left:var(--fui-Button__icon--spacing);}"]}),iS=t=>{const e=J1(),r=Z1(),n=eS(),o=tS(),i=rS(),a=nS(),s=oS(),{appearance:l,disabled:c,disabledFocusable:u,icon:d,iconOnly:f,iconPosition:p,shape:h,size:m}=t;return t.root.className=ce(gh.root,e,l&&n[l],n[m],d&&m==="small"&&n.smallWithIcon,d&&m==="large"&&n.largeWithIcon,n[h],(c||u)&&o.base,(c||u)&&o.highContrast,l&&(c||u)&&o[l],l==="primary"&&i.primary,i[m],i[h],f&&a[m],t.root.className),t.icon&&(t.icon.className=ce(gh.icon,r,!!t.root.children&&s[p],s[m],t.icon.className)),t},wm=E.forwardRef((t,e)=>{const r=X1(t,e);return iS(r),Ys("useButtonStyles_unstable")(r),Q1(r)});wm.displayName="Button";const km=E.createContext(void 0);km.Provider;const aS=()=>E.useContext(km);function sS(t,e){return cS(aS(),t,e)}function cS(t,e,r){if(!t)return e;e={...e};const{generatedControlId:n,hintId:o,labelFor:i,labelId:a,required:s,validationMessageId:l,validationState:c}=t;if(n){var u,d;(d=(u=e).id)!==null&&d!==void 0||(u.id=n)}if(a&&(!(r!=null&&r.supportsLabelFor)||i!==e.id)){var f,p,h;(h=(f=e)[p="aria-labelledby"])!==null&&h!==void 0||(f[p]=a)}if((l||o)&&(e["aria-describedby"]=[l,o,e==null?void 0:e["aria-describedby"]].filter(Boolean).join(" ")),c==="error"){var m,C,v;(v=(m=e)[C="aria-invalid"])!==null&&v!==void 0||(m[C]=!0)}if(s)if(r!=null&&r.supportsRequired){var g,y;(y=(g=e).required)!==null&&y!==void 0||(g.required=!0)}else{var k,T,_;(_=(k=e)[T="aria-required"])!==null&&_!==void 0||(k[T]=!0)}if(r!=null&&r.supportsSize){var b,R;(R=(b=e).size)!==null&&R!==void 0||(b.size=t.size)}return e}const lS=(t,e)=>{const{disabled:r=!1,required:n=!1,weight:o="regular",size:i="medium"}=t;return{disabled:r,required:rt(n===!0?"*":n||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:o,size:i,components:{root:"label",required:"span"},root:zt(Sr("label",{ref:e,...t}),{elementType:"label"})}},uS=t=>Er(t.root,{children:[t.root.children,t.required&&se(t.required,{})]}),vh={root:"fui-Label",required:"fui-Label__required"},dS=Ee({root:{Bahqtrf:"fk6fouc",sj55zd:"f19n0e5"},disabled:{sj55zd:"f1s2aq7o"},required:{sj55zd:"f1whyuy6",uwmqm3:["fycuoez","f8wuabp"]},requiredDisabled:{sj55zd:"f1s2aq7o"},small:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},medium:{Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi"},large:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k",Bhrd7zp:"fl43uef"},semibold:{Bhrd7zp:"fl43uef"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1whyuy6{color:var(--colorPaletteRedForeground3);}",".fycuoez{padding-left:4px;}",".f8wuabp{padding-right:4px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}"]}),fS=t=>{const e=dS();return t.root.className=ce(vh.root,e.root,t.disabled&&e.disabled,e[t.size],t.weight==="semibold"&&e.semibold,t.root.className),t.required&&(t.required.className=ce(vh.required,e.required,t.disabled&&e.requiredDisabled,t.required.className)),t},Zl=E.forwardRef((t,e)=>{const r=lS(t,e);return fS(r),Ys("useLabelStyles_unstable")(r),uS(r)});Zl.displayName="Label";const hS=(t,e)=>{t=sS(t,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=Vv();var n;const{size:o="medium",appearance:i=(n=r.inputDefaultAppearance)!==null&&n!==void 0?n:"outline",onChange:a}=t,[s,l]=Hv({state:t.value,defaultState:t.defaultValue,initialState:""}),c=$C({props:t,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),u={size:o,appearance:i,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:zt(t.input,{defaultProps:{type:"text",ref:e,...c.primary},elementType:"input"}),contentAfter:rt(t.contentAfter,{elementType:"span"}),contentBefore:rt(t.contentBefore,{elementType:"span"}),root:zt(t.root,{defaultProps:c.root,elementType:"span"})};return u.input.value=s,u.input.onChange=Oa(d=>{const f=d.target.value;a==null||a(d,{value:f}),l(f)}),u},pS=t=>Er(t.root,{children:[t.contentBefore&&se(t.contentBefore,{}),se(t.input,{}),t.contentAfter&&se(t.contentAfter,{})]}),pa={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},gS=Hi("r1jtohuq","rl1z2p5",{r:[".r1jtohuq{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.r1jtohuq::after{box-sizing:border-box;content:"";position:absolute;left:-1px;bottom:-1px;right:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-left-radius:var(--borderRadiusMedium);border-bottom-right-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".r1jtohuq:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".r1jtohuq:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".r1jtohuq:focus-within{outline:2px solid transparent;}",".rl1z2p5{display:inline-flex;align-items:center;flex-wrap:nowrap;gap:var(--spacingHorizontalXXS);border-radius:var(--borderRadiusMedium);position:relative;box-sizing:border-box;min-height:32px;padding:0 var(--spacingHorizontalMNudge);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);background-color:var(--colorNeutralBackground1);border:1px solid var(--colorNeutralStroke1);border-bottom-color:var(--colorNeutralStrokeAccessible);}",'.rl1z2p5::after{box-sizing:border-box;content:"";position:absolute;right:-1px;bottom:-1px;left:-1px;height:max(2px, var(--borderRadiusMedium));border-bottom-right-radius:var(--borderRadiusMedium);border-bottom-left-radius:var(--borderRadiusMedium);border-bottom:2px solid var(--colorCompoundBrandStroke);clip-path:inset(calc(100% - 2px) 0 0 0);transform:scaleX(0);transition-property:transform;transition-duration:var(--durationUltraFast);transition-delay:var(--curveAccelerateMid);}',".rl1z2p5:focus-within::after{transform:scaleX(1);transition-property:transform;transition-duration:var(--durationNormal);transition-delay:var(--curveDecelerateMid);}",".rl1z2p5:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}",".rl1z2p5:focus-within{outline:2px solid transparent;}"],s:["@media screen and (prefers-reduced-motion: reduce){.r1jtohuq::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1jtohuq:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5::after{transition-duration:0.01ms;transition-delay:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.rl1z2p5:focus-within::after{transition-duration:0.01ms;transition-delay:0.01ms;}}"]}),vS=Ee({small:{sshi5w:"f1pha7fy",uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"],Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},medium:{},large:{sshi5w:"f1w5jphr",uwmqm3:["f1uw59to","fw5db7e"],z189sj:["fw5db7e","f1uw59to"],Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",i8kkvl:"f1rjii52",Belr9w4:"f1r7g2jn"},outline:{},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"f1l4zc64",gg5e9n:["f1m52nbi","f1ub3y4t"],Drbcw7:"f8vnjqi",udz0bu:["fz1etlk","f1hc16gm"],Be8ivqh:"f1klwx88",ofdepl:["f1hc16gm","fz1etlk"]},underline:{De3pzq:"f1c21dwh",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"],icvyot:"f1ern45e",vrafjx:["f1n71otn","f1deefiw"],wvpqe5:["f1deefiw","f1n71otn"],Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"]},underlineInteractive:{oetu4i:"f1l4zc64",Be8ivqh:"f1klwx88",B3778ie:["f1nf3wye","feulmo5"],d9w3h3:["feulmo5","f1nf3wye"],Bl18szs:["f18vqdqu","f53nyzz"],B4j8arr:["f53nyzz","f18vqdqu"]},filled:{g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},filledInteractive:{q7v0qe:"ftmjh5b",kmh5ft:["f17blpuu","fsrcdbj"],nagaa4:"f1tpwn32",B1yhkcb:["fsrcdbj","f17blpuu"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},"filled-darker":{De3pzq:"f16xq7d1"},"filled-lighter":{De3pzq:"fxugw4r"},"filled-darker-shadow":{De3pzq:"f16xq7d1",E5pizo:"fyed02w"},"filled-lighter-shadow":{De3pzq:"fxugw4r",E5pizo:"fyed02w"},disabled:{Bceei9c:"fdrzuqr",De3pzq:"f1c21dwh",g2u3we:"f1jj8ep1",h3c5rm:["f15xbau","fy0fskl"],B9xav0g:"f4ikngz",zhjwy3:["fy0fskl","f15xbau"],Bjwas2f:"fg455y9",Bn1d65q:["f1rvyvqg","f14g86mu"],Bxeuatn:"f1cwzwz",n51gp8:["f14g86mu","f1rvyvqg"],Bsft5z2:"fhr9occ",Bduesf4:"f99w1ws"}},{d:[".f1pha7fy{min-height:24px;}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1w5jphr{min-height:40px;}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".f1r7g2jn{row-gap:var(--spacingHorizontalSNudge);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1krrbdw{border-bottom-right-radius:0;}",".f1deotkl{border-bottom-left-radius:0;}",".f10ostut{border-top-right-radius:0;}",".f1ozlkrg{border-top-left-radius:0;}",".f1ern45e{border-top-style:none;}",".f1n71otn{border-right-style:none;}",".f1deefiw{border-left-style:none;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".f1nf3wye::after{border-bottom-right-radius:0;}",".feulmo5::after{border-bottom-left-radius:0;}",".f18vqdqu::after{border-top-right-radius:0;}",".f53nyzz::after{border-top-left-radius:0;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".fs4k3qj:not(:focus-within),.fs4k3qj:hover:not(:focus-within){border-top-color:var(--colorPaletteRedBorder2);}",".fcee079:not(:focus-within),.fcee079:hover:not(:focus-within){border-right-color:var(--colorPaletteRedBorder2);}",".fmyw78r:not(:focus-within),.fmyw78r:hover:not(:focus-within){border-left-color:var(--colorPaletteRedBorder2);}",".f1fgmyf4:not(:focus-within),.f1fgmyf4:hover:not(:focus-within){border-bottom-color:var(--colorPaletteRedBorder2);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".fyed02w{box-shadow:var(--shadow2);}",".fdrzuqr{cursor:not-allowed;}",".f1jj8ep1{border-top-color:var(--colorNeutralStrokeDisabled);}",".f15xbau{border-right-color:var(--colorNeutralStrokeDisabled);}",".fy0fskl{border-left-color:var(--colorNeutralStrokeDisabled);}",".f4ikngz{border-bottom-color:var(--colorNeutralStrokeDisabled);}",".fhr9occ::after{content:unset;}"],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".f1l4zc64:hover{border-bottom-color:var(--colorNeutralStrokeAccessibleHover);}",".ftmjh5b:hover,.ftmjh5b:focus-within{border-top-color:var(--colorTransparentStrokeInteractive);}",".f17blpuu:hover,.f17blpuu:focus-within{border-right-color:var(--colorTransparentStrokeInteractive);}",".fsrcdbj:hover,.fsrcdbj:focus-within{border-left-color:var(--colorTransparentStrokeInteractive);}",".f1tpwn32:hover,.f1tpwn32:focus-within{border-bottom-color:var(--colorTransparentStrokeInteractive);}"],a:[".f8vnjqi:active,.f8vnjqi:focus-within{border-top-color:var(--colorNeutralStroke1Pressed);}",".fz1etlk:active,.fz1etlk:focus-within{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1hc16gm:active,.f1hc16gm:focus-within{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1klwx88:active,.f1klwx88:focus-within{border-bottom-color:var(--colorNeutralStrokeAccessiblePressed);}"],m:[["@media (forced-colors: active){.fg455y9{border-top-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f14g86mu{border-left-color:GrayText;}.f1rvyvqg{border-right-color:GrayText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1cwzwz{border-bottom-color:GrayText;}}",{m:"(forced-colors: active)"}]],w:[".f99w1ws:focus-within{outline-style:none;}"]}),mS=Hi("rvp2gzh",null,[".rvp2gzh{box-sizing:border-box;flex-grow:1;min-width:0;border-style:none;padding:0 var(--spacingHorizontalXXS);color:var(--colorNeutralForeground1);background-color:transparent;outline-style:none;font-family:inherit;font-size:inherit;font-weight:inherit;line-height:inherit;}",".rvp2gzh::-webkit-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::-moz-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh:-ms-input-placeholder{color:var(--colorNeutralForeground4);opacity:1;}",".rvp2gzh::placeholder{color:var(--colorNeutralForeground4);opacity:1;}"]),yS=Ee({large:{uwmqm3:["fk8j09s","fdw0yi8"],z189sj:["fdw0yi8","fk8j09s"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"]}),wS=Hi("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),kS=Ee({disabled:{sj55zd:"f1s2aq7o"},small:{kwki1k:"f3u2cy0"},medium:{},large:{kwki1k:"fa420co"}},{d:[".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".f3u2cy0>svg{font-size:16px;}",".fa420co>svg{font-size:24px;}"]}),CS=t=>{const{size:e,appearance:r}=t,n=t.input.disabled,o=`${t.input["aria-invalid"]}`=="true",i=r.startsWith("filled"),a=vS(),s=yS(),l=kS();t.root.className=ce(pa.root,gS(),a[e],a[r],!n&&r==="outline"&&a.outlineInteractive,!n&&r==="underline"&&a.underlineInteractive,!n&&i&&a.filledInteractive,i&&a.filled,!n&&o&&a.invalid,n&&a.disabled,t.root.className),t.input.className=ce(pa.input,mS(),e==="large"&&s.large,n&&s.disabled,t.input.className);const c=[wS(),n&&l.disabled,l[e]];return t.contentBefore&&(t.contentBefore.className=ce(pa.contentBefore,...c,t.contentBefore.className)),t.contentAfter&&(t.contentAfter.className=ce(pa.contentAfter,...c,t.contentAfter.className)),t},Cm=E.forwardRef((t,e)=>{const r=hS(t,e);return CS(r),Ys("useInputStyles_unstable")(r),pS(r)});Cm.displayName="Input";const _S=()=>E.createElement("svg",{className:"fui-Spinner__Progressbar"},E.createElement("circle",{className:"fui-Spinner__Track"}),E.createElement("circle",{className:"fui-Spinner__Tail"})),_m=E.createContext(void 0),bS={};_m.Provider;const SS=()=>{var t;return(t=E.useContext(_m))!==null&&t!==void 0?t:bS},ES=(t,e)=>{const{size:r}=SS(),{appearance:n="primary",labelPosition:o="after",size:i=r??"medium",delay:a=0}=t,s=gd("spinner"),{role:l="progressbar",tabIndex:c,...u}=t,d=zt(Sr("div",{ref:e,role:l,...u},["size"]),{elementType:"div"}),[f,p]=E.useState(!0),[h,m]=i_();E.useEffect(()=>{if(!(a<=0))return p(!1),h(()=>{p(!0)},a),()=>{m()}},[h,m,a]);const C=rt(t.label,{defaultProps:{id:s},renderByDefault:!1,elementType:Zl}),v=rt(t.spinner,{renderByDefault:!0,defaultProps:{children:E.createElement(_S,null),tabIndex:c},elementType:"span"});return C&&d&&!d["aria-labelledby"]&&(d["aria-labelledby"]=C.id),{appearance:n,delay:a,labelPosition:o,size:i,shouldRenderSpinner:f,components:{root:"div",spinner:"span",label:Zl},root:d,spinner:v,label:C}},TS=t=>{const{labelPosition:e,shouldRenderSpinner:r}=t;return Er(t.root,{children:[t.label&&r&&(e==="above"||e==="before")&&se(t.label,{}),t.spinner&&r&&se(t.spinner,{}),t.label&&r&&(e==="below"||e==="after")&&se(t.label,{})]})},Hc={root:"fui-Spinner",spinner:"fui-Spinner__spinner",label:"fui-Spinner__label"},IS=Ee({root:{mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bg96gwp:"fez10in",i8kkvl:"f4px1ci",Belr9w4:"fn67r4l"},horizontal:{Beiy3e4:"f1063pyq"},vertical:{Beiy3e4:"f1vx9l62"}},{d:[".f22iagw{display:flex;}",".f122n59{align-items:center;}",".f4d9j23{justify-content:center;}",".fez10in{line-height:0;}",".f4px1ci{column-gap:8px;}",".fn67r4l{row-gap:8px;}",".f1063pyq{flex-direction:row;}",".f1vx9l62{flex-direction:column;}"]}),AS=Ee({spinnerSVG:{B3aqqti:"f1or16p5",Brovlpu:"f1grzc83",Bxa1mx5:"f19shzzi",Bwaue66:["f5tbecn","f15qb8s7"],fyp1ls:"fn4mtlg",ag6ruv:"f1y80fxs",osj692:"f1r2crtq",aq5vjd:"f1wsi8sr",tlu9e1:"f1bkm2qd",J3u96z:"f1urqz7h",d32isg:"f1da2vov",Bsvqbuc:"f11rfva0",b3s3i5:"f1exc66"},"extra-tiny":{Bah9ito:"f1x2gjcb",ut6tcf:"f1vjiaua",B7p06xz:"fv1u54w",B807ibg:"f1oebb0s"},tiny:{Bah9ito:"f1j4wmu2",ut6tcf:"f1vppzuq",B7p06xz:"fv1u54w",B807ibg:"fngtx1d"},"extra-small":{Bah9ito:"fmpqlna",ut6tcf:"f15z5jzu",B7p06xz:"fv1u54w",B807ibg:"fadawes"},small:{Bah9ito:"fo52gbo",ut6tcf:"f1b41i3v",B7p06xz:"fv1u54w",B807ibg:"f1xqyyrl"},medium:{Bah9ito:"f1aiqagr",ut6tcf:"f1wtx80b",B7p06xz:"f1flujpd",B807ibg:"f1u06hy7"},large:{Bah9ito:"f1trdq7b",ut6tcf:"f9e0mc5",B7p06xz:"f1flujpd",B807ibg:"f13pmvhl"},"extra-large":{Bah9ito:"f89rf2a",ut6tcf:"f1w2xg3q",B7p06xz:"f1flujpd",B807ibg:"fmn74v6"},huge:{Bah9ito:"f1rx7k5y",ut6tcf:"f1vtyt49",B7p06xz:"f1owbg48",B807ibg:"f1fr1izd"}},{f:[".f1or16p5:focus{outline-width:3px;}",".f1grzc83:focus{outline-style:solid;}",".f19shzzi:focus{outline-color:transparent;}"],k:["@keyframes fb7n1on{0%{transform:rotate(0deg);}100%{transform:rotate(360deg);}}","@keyframes f1gx3jof{0%{transform:rotate(0deg);}100%{transform:rotate(-360deg);}}"],d:[".f5tbecn>svg{animation-name:fb7n1on;}",".f15qb8s7>svg{animation-name:f1gx3jof;}",".fn4mtlg>svg{animation-duration:3s;}",".f1y80fxs>svg{animation-iteration-count:infinite;}",".f1r2crtq>svg{animation-timing-function:linear;}",".f1wsi8sr>svg{background-color:transparent;}",".f1da2vov>svg>circle{cx:50%;}",".f11rfva0>svg>circle{cy:50%;}",".f1exc66>svg>circle{fill:none;}",".f1x2gjcb>svg{height:16px;}",".f1vjiaua>svg{width:16px;}",".fv1u54w>svg>circle{stroke-width:var(--strokeWidthThick);}",".f1oebb0s>svg>circle{r:7px;}",".f1j4wmu2>svg{height:20px;}",".f1vppzuq>svg{width:20px;}",".fngtx1d>svg>circle{r:9px;}",".fmpqlna>svg{height:24px;}",".f15z5jzu>svg{width:24px;}",".fadawes>svg>circle{r:11px;}",".fo52gbo>svg{height:28px;}",".f1b41i3v>svg{width:28px;}",".f1xqyyrl>svg>circle{r:13px;}",".f1aiqagr>svg{height:32px;}",".f1wtx80b>svg{width:32px;}",".f1flujpd>svg>circle{stroke-width:var(--strokeWidthThicker);}",".f1u06hy7>svg>circle{r:14.5px;}",".f1trdq7b>svg{height:36px;}",".f9e0mc5>svg{width:36px;}",".f13pmvhl>svg>circle{r:16.5px;}",".f89rf2a>svg{height:40px;}",".f1w2xg3q>svg{width:40px;}",".fmn74v6>svg>circle{r:18.5px;}",".f1rx7k5y>svg{height:44px;}",".f1vtyt49>svg{width:44px;}",".f1owbg48>svg>circle{stroke-width:var(--strokeWidthThickest);}",".f1fr1izd>svg>circle{r:20px;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1bkm2qd>svg{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1urqz7h>svg{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),PS=Ee({inverted:{gwg7kz:"f1jvpmnu",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f1esql28"},primary:{gwg7kz:"f11ditju",B8k2rxp:"f1m9nikz",Bvrehnu:"fq8a5sv",Bidp6o:"f1b4lwqj",cq3kgi:"f1najlst",Btwiser:"fjxod4",B8001xd:"fu3xdw0",Bdordwa:["f1ttdh6v","fmyjox0"],Bo2mdfu:"f1eseayc",E10nrc:"folzdkc",Bwl7w15:"fhlfkde",Bksq7rz:"f13qeqtg",y14cdu:"flglbw1"}},{d:[".f1jvpmnu>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}",".fq8a5sv>svg>circle.fui-Spinner__Tail{animation-name:f1v1ql0f;}",".f1b4lwqj>svg>circle.fui-Spinner__Tail{animation-duration:1.5s;}",".f1najlst>svg>circle.fui-Spinner__Tail{animation-iteration-count:infinite;}",".fjxod4>svg>circle.fui-Spinner__Tail{animation-timing-function:var(--curveEasyEase);}",".fu3xdw0>svg>circle.fui-Spinner__Tail{stroke-linecap:round;}",".f1ttdh6v>svg>circle.fui-Spinner__Tail{transform:rotate(-90deg);}",".fmyjox0>svg>circle.fui-Spinner__Tail{transform:rotate(90deg);}",".f1eseayc>svg>circle.fui-Spinner__Tail{transform-origin:50% 50%;}",".f1esql28>svg>circle.fui-Spinner__Track{stroke:rgba(255, 255, 255, 0.2);}",".f11ditju>svg>circle.fui-Spinner__Tail{stroke:var(--colorBrandStroke1);}",".f13qeqtg>svg>circle.fui-Spinner__Track{stroke:var(--colorBrandStroke2Contrast);}"],k:["@keyframes f1v1ql0f{0%{stroke-dasharray:1,150;stroke-dashoffset:0;}50%{stroke-dasharray:90,150;stroke-dashoffset:-35;}100%{stroke-dasharray:90,150;stroke-dashoffset:-124;}}"],m:[["@media screen and (prefers-reduced-motion: reduce){.folzdkc>svg>circle.fui-Spinner__Tail{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.fhlfkde>svg>circle.fui-Spinner__Tail{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (forced-colors: active){.f1m9nikz>svg>circle.fui-Spinner__Tail{stroke:var(--colorNeutralStrokeOnBrand2);}}",{m:"screen and (forced-colors: active)"}],["@media screen and (forced-colors: active){.flglbw1>svg>circle.fui-Spinner__Track{stroke:var(--colorNeutralBackgroundInverted);}}",{m:"screen and (forced-colors: active)"}]]}),NS=Ee({inverted:{sj55zd:"f15aqcq"},primary:{},"extra-tiny":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},tiny:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},"extra-small":{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},small:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},medium:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},large:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},"extra-large":{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"},huge:{Bahqtrf:"fk6fouc",Be2twd7:"f1pp30po",Bhrd7zp:"fl43uef",Bg96gwp:"f106mvju"}},{d:[".f15aqcq{color:rgba(255, 255, 255, 1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}"]}),RS=t=>{const{labelPosition:e,size:r,appearance:n="primary"}=t,o=IS(),i=AS(),a=NS(),s=PS();return t.root.className=ce(Hc.root,o.root,(e==="above"||e==="below")&&o.vertical,(e==="before"||e==="after")&&o.horizontal,t.root.className),t.spinner&&(t.spinner.className=ce(Hc.spinner,i.spinnerSVG,i[r],s[n],t.spinner.className)),t.label&&(t.label.className=ce(Hc.label,a[r],a[n],t.label.className)),t},bm=E.forwardRef((t,e)=>{const r=ES(t,e);return RS(r),Ys("useSpinnerStyles_unstable")(r),TS(r)});bm.displayName="Spinner";const BS=(t,e)=>{const{wrap:r,truncate:n,block:o,italic:i,underline:a,strikethrough:s,size:l,font:c,weight:u,align:d}=t;return{align:d??"start",block:o??!1,font:c??"base",italic:i??!1,size:l??300,strikethrough:s??!1,truncate:n??!1,underline:a??!1,weight:u??"regular",wrap:r??!0,components:{root:"span"},root:zt(Sr("span",{ref:e,...t}),{elementType:"span"})}},xS=t=>se(t.root,{}),MS={root:"fui-Text"},OS=Ee({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",Bhrd7zp:"figsok6",fsow6f:"fpgzoln",mc9l5x:"f1w7gpdv",Huce71:"f6juhto",B68tc82:"f1mtd64y",Bmxbyg5:"f1y7q3j9",ygn44y:"f2jf649"},nowrap:{Huce71:"fz5stix",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw"},truncate:{ygn44y:"f1cmbuwj"},block:{mc9l5x:"ftgm304"},italic:{B80ckks:"f1j4dglz"},underline:{w71qe1:"f13mvf36"},strikethrough:{w71qe1:"fv5q2k7"},strikethroughUnderline:{w71qe1:"f1drk4o6"},base100:{Be2twd7:"f13mqy1h",Bg96gwp:"fcpl73t"},base200:{Be2twd7:"fy9rknc",Bg96gwp:"fwrc4pm"},base400:{Be2twd7:"fod5ikn",Bg96gwp:"faaz57k"},base500:{Be2twd7:"f1pp30po",Bg96gwp:"f106mvju"},base600:{Be2twd7:"f1x0m3f5",Bg96gwp:"fb86gi6"},hero700:{Be2twd7:"fojgt09",Bg96gwp:"fcen8rp"},hero800:{Be2twd7:"fccw675",Bg96gwp:"f1ebx5kk"},hero900:{Be2twd7:"f15afnhw",Bg96gwp:"fr3w3wp"},hero1000:{Be2twd7:"fpyltcb",Bg96gwp:"f1ivgwrt"},monospace:{Bahqtrf:"f1fedwem"},numeric:{Bahqtrf:"f1uq0ln5"},weightMedium:{Bhrd7zp:"fdj6btp"},weightSemibold:{Bhrd7zp:"fl43uef"},weightBold:{Bhrd7zp:"flh3ekv"},alignCenter:{fsow6f:"f17mccla"},alignEnd:{fsow6f:"f12ymhq5"},alignJustify:{fsow6f:"f1j59e10"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fpgzoln{text-align:start;}",".f1w7gpdv{display:inline;}",".f6juhto{white-space:normal;}",".f1mtd64y{overflow-x:visible;}",".f1y7q3j9{overflow-y:visible;}",".f2jf649{text-overflow:clip;}",".fz5stix{white-space:nowrap;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".f1cmbuwj{text-overflow:ellipsis;}",".ftgm304{display:block;}",".f1j4dglz{font-style:italic;}",".f13mvf36{text-decoration-line:underline;}",".fv5q2k7{text-decoration-line:line-through;}",".f1drk4o6{text-decoration-line:line-through underline;}",".f13mqy1h{font-size:var(--fontSizeBase100);}",".fcpl73t{line-height:var(--lineHeightBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f106mvju{line-height:var(--lineHeightBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".fb86gi6{line-height:var(--lineHeightBase600);}",".fojgt09{font-size:var(--fontSizeHero700);}",".fcen8rp{line-height:var(--lineHeightHero700);}",".fccw675{font-size:var(--fontSizeHero800);}",".f1ebx5kk{line-height:var(--lineHeightHero800);}",".f15afnhw{font-size:var(--fontSizeHero900);}",".fr3w3wp{line-height:var(--lineHeightHero900);}",".fpyltcb{font-size:var(--fontSizeHero1000);}",".f1ivgwrt{line-height:var(--lineHeightHero1000);}",".f1fedwem{font-family:var(--fontFamilyMonospace);}",".f1uq0ln5{font-family:var(--fontFamilyNumeric);}",".fdj6btp{font-weight:var(--fontWeightMedium);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".flh3ekv{font-weight:var(--fontWeightBold);}",".f17mccla{text-align:center;}",".f12ymhq5{text-align:end;}",".f1j59e10{text-align:justify;}"]}),FS=t=>{const e=OS();return t.root.className=ce(MS.root,e.root,t.wrap===!1&&e.nowrap,t.truncate&&e.truncate,t.block&&e.block,t.italic&&e.italic,t.underline&&e.underline,t.strikethrough&&e.strikethrough,t.underline&&t.strikethrough&&e.strikethroughUnderline,t.size===100&&e.base100,t.size===200&&e.base200,t.size===400&&e.base400,t.size===500&&e.base500,t.size===600&&e.base600,t.size===700&&e.hero700,t.size===800&&e.hero800,t.size===900&&e.hero900,t.size===1e3&&e.hero1000,t.font==="monospace"&&e.monospace,t.font==="numeric"&&e.numeric,t.weight==="medium"&&e.weightMedium,t.weight==="semibold"&&e.weightSemibold,t.weight==="bold"&&e.weightBold,t.align==="center"&&e.alignCenter,t.align==="end"&&e.alignEnd,t.align==="justify"&&e.alignJustify,t.root.className),t};function Sm(t){const{useStyles:e,className:r,displayName:n}=t,o=E.forwardRef((i,a)=>{const s=e(),l=BS(i,a);return FS(l),l.root.className=ce(r,l.root.className,s.root,i.className),xS(l)});return o.displayName=n,o}const DS={root:"fui-Body1"},zS=Ee({root:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}"]}),LS=Sm({useStyles:zS,className:DS.root,displayName:"Body1"}),HS={root:"fui-Caption1"},US=Ee({root:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"}},{d:[".fk6fouc{font-family:var(--fontFamilyBase);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}"]}),qS=Sm({useStyles:US,className:HS.root,displayName:"Caption1"}),jS=(t,{referenceLabel:e,referenceId:r},n)=>{const{checkbox:o={},onSelectionChange:i,floatingAction:a,onClick:s,onKeyDown:l}=t,{findAllFocusable:c}=Nb(),u=E.useRef(null),[d,f]=Hv({state:t.selected,defaultState:t.defaultSelected,initialState:!1}),p=[t.selected,t.defaultSelected,i].some(_=>typeof _<"u"),[h,m]=E.useState(!1),C=E.useCallback(_=>{if(!n.current)return!1;const b=c(n.current),R=_.target,ae=b.some(Ge=>Ge.contains(R)),G=(u==null?void 0:u.current)===R;return ae&&!G},[n,c]),v=E.useCallback(_=>{if(C(_))return;const b=!d;f(b),i&&i(_,{selected:b})},[i,d,f,C]),g=E.useCallback(_=>{[Fa].includes(_.key)&&(_.preventDefault(),v(_))},[v]),y=E.useMemo(()=>{if(!p||a)return;const _={};return r?_["aria-labelledby"]=r:e&&(_["aria-label"]=e),rt(o,{defaultProps:{ref:u,type:"checkbox",checked:d,onChange:b=>v(b),onFocus:()=>m(!0),onBlur:()=>m(!1),..._},elementType:"input"})},[o,a,d,p,v,r,e]),k=E.useMemo(()=>{if(a)return rt(a,{defaultProps:{ref:u},elementType:"div"})},[a]),T=E.useMemo(()=>p?{onClick:sh(s,v),onKeyDown:sh(l,g)}:null,[p,v,s,l,g]);return{selected:d,selectable:p,selectFocused:h,selectableCardProps:T,checkboxSlot:y,floatingActionSlot:k}},Em=E.createContext(void 0),eu={selectableA11yProps:{referenceId:void 0,setReferenceId(){},referenceLabel:void 0,setReferenceLabel(){}}},KS=Em.Provider,Tm=()=>{var t;return(t=E.useContext(Em))!==null&&t!==void 0?t:eu},GS={off:void 0,"no-tab":"limited-trap-focus","tab-exit":"limited","tab-only":"unlimited"},WS=({focusMode:t="off",...e})=>{const r=["onClick","onDoubleClick","onMouseUp","onMouseDown","onPointerUp","onPointerDown","onTouchStart","onTouchEnd","onDragStart","onDragEnd"].some(i=>e[i]),o={...Ab({tabBehavior:GS[r?"no-tab":t]}),tabIndex:0};return{interactive:r,focusAttributes:t==="off"?null:o}},VS=(t,e)=>{const{appearance:r="filled",orientation:n="vertical",size:o="medium"}=t,[i,a]=E.useState(eu.selectableA11yProps.referenceId),[s,l]=E.useState(eu.selectableA11yProps.referenceId),c=Ob(),{selectable:u,selected:d,selectableCardProps:f,selectFocused:p,checkboxSlot:h,floatingActionSlot:m}=jS(t,{referenceId:i,referenceLabel:s},c),C=vd(c,e),{interactive:v,focusAttributes:g}=WS(t);return{appearance:r,orientation:n,size:o,interactive:v,selectable:u,selectFocused:p,selected:d,selectableA11yProps:{setReferenceId:a,referenceId:i,referenceLabel:s,setReferenceLabel:l},components:{root:"div",floatingAction:"div",checkbox:"input"},root:zt(Sr("div",{ref:C,role:"group",...g,...t,...f}),{elementType:"div"}),floatingAction:m,checkbox:h}},QS=(t,e)=>se(t.root,{children:Er(KS,{value:e,children:[t.checkbox?se(t.checkbox,{}):null,t.floatingAction?se(t.floatingAction,{}):null,t.root.children]})}),tu={root:"fui-CardPreview",logo:"fui-CardPreview__logo"},YS=Ee({root:{qhf8xq:"f10pi13n",pnb5jt:"f1rzl30s",Elg2ur:"f1chxnfo",B184ckt:"f17xb19f"},logo:{qhf8xq:"f1euv43f",B5kzvoi:"f1gcvs1y",oyh7mz:["f1t6tvco","ffrfxm3"],a9b677:"f1szoe96",Bqenvij:"f1d2rq10"}},{d:[".f10pi13n{position:relative;}",".f1rzl30s>:not(.fui-CardPreview__logo){display:block;}",".f1chxnfo>:not(.fui-CardPreview__logo){height:100%;}",".f17xb19f>:not(.fui-CardPreview__logo){width:100%;}",".f1euv43f{position:absolute;}",".f1gcvs1y{bottom:12px;}",".f1t6tvco{left:12px;}",".ffrfxm3{right:12px;}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}"]}),$S=t=>{const e=YS();return t.root.className=ce(tu.root,e.root,t.root.className),t.logo&&(t.logo.className=ce(tu.logo,e.logo,t.logo.className)),t},Bn={root:"fui-CardHeader",image:"fui-CardHeader__image",header:"fui-CardHeader__header",description:"fui-CardHeader__description",action:"fui-CardHeader__action"},XS=Ee({root:{Bkc6ea2:"fkufhic",mc9l5x:"f13qh94s",t4k1zu:"f8a668j",Bt984gj:"f122n59"},image:{mc9l5x:"ftuwxu6",t21cq0:["fql5097","f6yss9k"],Br312pm:"fwpfdsa",Ijaq50:"fldnz9j"},header:{Br312pm:"fd46tj4",Ijaq50:"f16hsg94",mc9l5x:"f22iagw"},description:{Br312pm:"fd46tj4",Ijaq50:"faunodf",mc9l5x:"f22iagw"},action:{Frg6f3:["f6yss9k","fql5097"],Br312pm:"fis13di",Ijaq50:"fldnz9j"}},{d:[".fkufhic{--fui-CardHeader--gap:12px;}",".f13qh94s{display:grid;}",".f8a668j{grid-auto-columns:min-content 1fr min-content;}",".f122n59{align-items:center;}",".ftuwxu6{display:inline-flex;}",".fql5097{margin-right:var(--fui-CardHeader--gap);}",".f6yss9k{margin-left:var(--fui-CardHeader--gap);}",".fwpfdsa{grid-column-start:1;}",".fldnz9j{grid-row-start:span 2;}",".fd46tj4{grid-column-start:2;}",".f16hsg94{grid-row-start:1;}",".f22iagw{display:flex;}",".faunodf{grid-row-start:2;}",".fis13di{grid-column-start:3;}"]}),JS=t=>{const e=XS();return t.root.className=ce(Bn.root,e.root,t.root.className),t.image&&(t.image.className=ce(Bn.image,e.image,t.image.className)),t.header&&(t.header.className=ce(Bn.header,e.header,t.header.className)),t.description&&(t.description.className=ce(Bn.description,e.description,t.description.className)),t.action&&(t.action.className=ce(Bn.action,e.action,t.action.className)),t},mh={root:"fui-CardFooter",action:"fui-CardFooter__action"},ZS=Ee({root:{mc9l5x:"f22iagw",Beiy3e4:"f1063pyq",i8kkvl:"f4akndk",Belr9w4:"fe5j3v"},action:{Frg6f3:["fcgxt0o","f1ujusj6"]}},{d:[".f22iagw{display:flex;}",".f1063pyq{flex-direction:row;}",".f4akndk{column-gap:12px;}",".fe5j3v{row-gap:12px;}",".fcgxt0o{margin-left:auto;}",".f1ujusj6{margin-right:auto;}"]}),eE=t=>{const e=ZS();return t.root.className=ce(mh.root,e.root,t.root.className),t.action&&(t.action.className=ce(mh.action,e.action,t.action.className)),t},Uc={root:"fui-Card",floatingAction:"fui-Card__floatingAction",checkbox:"fui-Card__checkbox"},tE=Ee({root:{B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",Bbmb7ep:["fifeqxg","f899z7z"],Beyfa6y:["f899z7z","fifeqxg"],B7oj6ja:["f4h3tyx","f18ur2pz"],Btl43ni:["f18ur2pz","f4h3tyx"],z8tnut:"f1lplnzb",z189sj:["f10m5gbb","f1k04kkk"],Byoj8tv:"fhftqfp",uwmqm3:["f1k04kkk","f10m5gbb"],i8kkvl:"fxsr4vj",Belr9w4:"fcvsdzp",mc9l5x:"f22iagw",qhf8xq:"f10pi13n",B7ck84d:"f1ewtqcl",sj55zd:"f19n0e5",E3zdtr:"f1mdlcz9",bn5sak:"frwkxtg",Eqx8gd:["f1n6gb5g","f15yvnhg"],B1piin3:["f15yvnhg","f1n6gb5g"],By385i5:"fo72kxq",Bsft5z2:"f13zj6fq",B80jsxd:"f1nwj1ja",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"f6czdpx",Ihftqj:["f13hvwk3","f1en4csx"],Bcgy8vk:"f1i1u9k0",Bhxzhr1:["f1en4csx","f13hvwk3"],B3778ie:["f1qnomq5","f2fl922"],d9w3h3:["f2fl922","f1qnomq5"],Bl18szs:["f1anhtl","f1n2zcl3"],B4j8arr:["f1n2zcl3","f1anhtl"],B2jhnfs:"f16v3d5c",wiictr:"f1su8t2g"},focused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",B8q5s1w:"f8hki3x",Bci5o5g:["f1d2448m","ffh67wi"],n8qw10:"f1bjia2o",Bdrgwmp:["ffh67wi","f1d2448m"],Bm4h7ae:"f15bsgw9",B7ys5i9:"f14e48fq",Busjfv9:"f18yb2kv",Bhk32uz:"fd6o370",Bf4ptjt:"fh1cnn4",kclons:["fy7oxxb","f184ne2d"],Bhdgwq3:"fpukqih",Blkhhs4:["f184ne2d","fy7oxxb"],Bqtpl0w:"f99gebs",clg4pj:["f13b0oaq","f8t2bz6"],hgwjuy:"f1jvq617",Bonggc9:["f8t2bz6","f13b0oaq"],B1tsrr9:["f11unbnk","fbd201q"],Dah5zi:["fbd201q","f11unbnk"],Bkh64rk:["f12nqxso","f1uguk4w"],qqdqy8:["f1uguk4w","f12nqxso"],B6dhp37:"f1dvezut",i03rao:["fd0oaoj","f1cwg4i8"],Boxcth7:"fjvm52t",Bsom6fd:["f1cwg4i8","fd0oaoj"],J0r882:"f15fr7a0",Bule8hv:["fwsq40z","fy0y4wt"],Bjwuhne:"f34ld9f",Ghsupd:["fy0y4wt","fwsq40z"]},selectableFocused:{Brovlpu:"ftqa4ok",B486eqv:"f2hkw1w",Bssx7fj:"f1b1k54r",uh7if5:["f4ne723","fqqcjud"],clntm0:"fh7aioi",Dlk2r6:["fqqcjud","f4ne723"],B2j2mmj:"ffht0p2",wigs8:"f1p0ul1q",pbfy6t:"f1c901ms",B0v4ure:"f1alokd7",ghq09:"f78i1la",B24cy0v:["f1kvsw7t","f1bw8brt"],Bwckmig:"f8k7e5g",Bvwlmkc:["f1bw8brt","f1kvsw7t"],Bbgo44z:"f125hn41",Bil7v7r:["fgxkx34","f1v56tyl"],skfxo0:"fdxas6f",jo1ztg:["f1v56tyl","fgxkx34"],Ba3ybja:["fxwickw","f1ia5cve"],az1dzo:["f1ia5cve","fxwickw"],vppk2z:["f194aguw","fqicc6c"],B6352mv:["fqicc6c","f194aguw"],nr063g:"fq4eyks",Blmvk6g:["f1ya6x16","ftuszwa"],Bsiemmq:"f1e2iu44",B98u21t:["ftuszwa","f1ya6x16"],B2pnrqr:"f1amxum7",B29w5g4:["f1cec8w7","f554mv0"],Bhhzhcn:"f1sj6kbr",Bec0n69:["f554mv0","f1cec8w7"]},orientationHorizontal:{Beiy3e4:"f1063pyq",Bt984gj:"f122n59",Bnoktp0:"fpfyeui",Idhjb2:"fwi74qw",ihgzqh:["ffcmwrh","f6ppoih"],Bgp6ld0:["f1dc9p14","fd933vt"],Bbucpmy:"f18esqgw"},orientationVertical:{Beiy3e4:"f1vx9l62",Bt4kzjz:["fobhde4","fx5r7kn"],B1ou843:["fx5r7kn","fobhde4"],y1433z:"f19chtn8",B7egwnw:"fuvs6re",B49b4xf:"fy4glsf"},sizeSmall:{B7balbw:"f1pi9uxy",B1h88n7:"f1h1zgly"},sizeMedium:{B7balbw:"frsmuga",B1h88n7:"fuldkky"},sizeLarge:{B7balbw:"f1qua4xo",B1h88n7:"fimkt6v"},filled:{De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fxugw4r",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1knas48",Bvxd0ez:"f1m145df",ecr2s2:"fb40n2d"},filledInteractiveSelected:{De3pzq:"f1nfm20t",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"f1kz6goq"},filledAlternative:{De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},filledAlternativeInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1dmdbja",E5pizo:"f1whvlc6",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1uvynv3",Bvxd0ez:"f1m145df",ecr2s2:"f1yhgkbh"},filledAlternativeInteractiveSelected:{De3pzq:"fjxa0vh",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"fehi0vp"},outline:{De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"]},outlineInteractive:{Bceei9c:"f1k6fduh",De3pzq:"f1c21dwh",E5pizo:"f1couhl3",B0n5ga8:"ft83z1f",s924m2:["f1g4150c","f192dr6e"],B1q35kw:"f1qnawh6",Gp14am:["f192dr6e","f1g4150c"],Jwef8y:"fjxutwb",Be0v6ae:"f1llr77y",B5kxglz:["fzk0khw","fjj8tog"],B3pwyw6:"fb1u8ub",Bymgtzf:["fjj8tog","fzk0khw"],ecr2s2:"fophhak",dmfk:"f1uohb70",B4ofi8:["f1jm7v1n","f1bus3rq"],jgq6uv:"f1fbu7rr",Baxewws:["f1bus3rq","f1jm7v1n"]},outlineInteractiveSelected:{De3pzq:"f1q9pm1r",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"fg59vm4"},subtle:{De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"]},subtleInteractive:{Bceei9c:"f1k6fduh",De3pzq:"fhovq9v",E5pizo:"f1couhl3",B0n5ga8:"f16gxe2i",s924m2:["fpgykix","fzybk4o"],B1q35kw:"f1osi826",Gp14am:["fzybk4o","fpgykix"],Jwef8y:"f1t94bn6",ecr2s2:"f1wfn5kd"},subtleInteractiveSelected:{De3pzq:"fq5gl1p",B0n5ga8:"f16eln5f",s924m2:["fa2okxs","fg4zq3l"],B1q35kw:"ff6932p",Gp14am:["fg4zq3l","fa2okxs"],Jwef8y:"f1uqaxdt"},highContrastSelected:{ycbfsm:"fkc42ay",Bsw6fvg:"f1rirnrt",Bbusuzp:"f1lkg8j3",xgfqdd:"f1nkj0oa",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},highContrastInteractive:{h1vhog:"fpfvv3l",kslmdy:"f1oamsm6",Baaf6ca:"f1il21bs",x9zz3d:"fnn5dk0",Bmmdzwq:"fey3rwa",zkpvhj:["f5jhx11","fff9uym"],B20bydw:"fm7n0jy",Bwwwggl:["fff9uym","f5jhx11"]},select:{qhf8xq:"f1euv43f",Bhzewxz:"fqclxi7",j35jbq:["fiv86kb","f36uhnt"],Bj3rh1h:"f19g0ac"},hiddenCheckbox:{B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",a9b677:"frkrog8",Bqenvij:"f1mpe4l3",qhf8xq:"f1euv43f",Bh84pgu:"fmf1zke",Bgl5zvf:"f1wch0ki",Huce71:"fz5stix"}},{d:[".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".fifeqxg{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f899z7z{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f4h3tyx{border-top-right-radius:var(--fui-Card--border-radius);}",".f18ur2pz{border-top-left-radius:var(--fui-Card--border-radius);}",".f1lplnzb{padding-top:var(--fui-Card--size);}",".f10m5gbb{padding-right:var(--fui-Card--size);}",".f1k04kkk{padding-left:var(--fui-Card--size);}",".fhftqfp{padding-bottom:var(--fui-Card--size);}",".fxsr4vj{column-gap:var(--fui-Card--size);}",".fcvsdzp{row-gap:var(--fui-Card--size);}",".f22iagw{display:flex;}",".f10pi13n{position:relative;}",".f1ewtqcl{box-sizing:border-box;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1mdlcz9::after{position:absolute;}",".frwkxtg::after{top:0;}",".f1n6gb5g::after{left:0;}",".f15yvnhg::after{right:0;}",".fo72kxq::after{bottom:0;}",'.f13zj6fq::after{content:"";}',".f1nwj1ja::after{pointer-events:none;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".f6czdpx::after{border-top-width:var(--strokeWidthThin);}",".f13hvwk3::after{border-right-width:var(--strokeWidthThin);}",".f1en4csx::after{border-left-width:var(--strokeWidthThin);}",".f1i1u9k0::after{border-bottom-width:var(--strokeWidthThin);}",".f1qnomq5::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f2fl922::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f1anhtl::after{border-top-right-radius:var(--fui-Card--border-radius);}",".f1n2zcl3::after{border-top-left-radius:var(--fui-Card--border-radius);}",".f16v3d5c>.fui-CardHeader,.f16v3d5c>.fui-CardFooter{flex-shrink:0;}",".f1su8t2g>:not(.fui-CardPreview):not(.fui-CardHeader):not(.fui-CardFooter){flex-grow:1;}",".f8hki3x[data-fui-focus-visible]{border-top-color:transparent;}",".f1d2448m[data-fui-focus-visible]{border-right-color:transparent;}",".ffh67wi[data-fui-focus-visible]{border-left-color:transparent;}",".f1bjia2o[data-fui-focus-visible]{border-bottom-color:transparent;}",'.f15bsgw9[data-fui-focus-visible]::after{content:"";}',".f14e48fq[data-fui-focus-visible]::after{position:absolute;}",".f18yb2kv[data-fui-focus-visible]::after{pointer-events:none;}",".fd6o370[data-fui-focus-visible]::after{z-index:1;}",".fh1cnn4[data-fui-focus-visible]::after{border-top-style:solid;}",".fy7oxxb[data-fui-focus-visible]::after{border-right-style:solid;}",".f184ne2d[data-fui-focus-visible]::after{border-left-style:solid;}",".fpukqih[data-fui-focus-visible]::after{border-bottom-style:solid;}",".f99gebs[data-fui-focus-visible]::after{border-top-width:var(--strokeWidthThick);}",".f13b0oaq[data-fui-focus-visible]::after{border-right-width:var(--strokeWidthThick);}",".f8t2bz6[data-fui-focus-visible]::after{border-left-width:var(--strokeWidthThick);}",".f1jvq617[data-fui-focus-visible]::after{border-bottom-width:var(--strokeWidthThick);}",".f11unbnk[data-fui-focus-visible]::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".fbd201q[data-fui-focus-visible]::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f12nqxso[data-fui-focus-visible]::after{border-top-right-radius:var(--fui-Card--border-radius);}",".f1uguk4w[data-fui-focus-visible]::after{border-top-left-radius:var(--fui-Card--border-radius);}",".f1dvezut[data-fui-focus-visible]::after{border-top-color:var(--colorStrokeFocus2);}",".fd0oaoj[data-fui-focus-visible]::after{border-right-color:var(--colorStrokeFocus2);}",".f1cwg4i8[data-fui-focus-visible]::after{border-left-color:var(--colorStrokeFocus2);}",".fjvm52t[data-fui-focus-visible]::after{border-bottom-color:var(--colorStrokeFocus2);}",".f15fr7a0[data-fui-focus-visible]::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".fwsq40z[data-fui-focus-visible]::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".fy0y4wt[data-fui-focus-visible]::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f34ld9f[data-fui-focus-visible]::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1b1k54r[data-fui-focus-within]:focus-within{border-top-color:transparent;}",".f4ne723[data-fui-focus-within]:focus-within{border-right-color:transparent;}",".fqqcjud[data-fui-focus-within]:focus-within{border-left-color:transparent;}",".fh7aioi[data-fui-focus-within]:focus-within{border-bottom-color:transparent;}",'.ffht0p2[data-fui-focus-within]:focus-within::after{content:"";}',".f1p0ul1q[data-fui-focus-within]:focus-within::after{position:absolute;}",".f1c901ms[data-fui-focus-within]:focus-within::after{pointer-events:none;}",".f1alokd7[data-fui-focus-within]:focus-within::after{z-index:1;}",".f78i1la[data-fui-focus-within]:focus-within::after{border-top-style:solid;}",".f1kvsw7t[data-fui-focus-within]:focus-within::after{border-right-style:solid;}",".f1bw8brt[data-fui-focus-within]:focus-within::after{border-left-style:solid;}",".f8k7e5g[data-fui-focus-within]:focus-within::after{border-bottom-style:solid;}",".f125hn41[data-fui-focus-within]:focus-within::after{border-top-width:var(--strokeWidthThick);}",".fgxkx34[data-fui-focus-within]:focus-within::after{border-right-width:var(--strokeWidthThick);}",".f1v56tyl[data-fui-focus-within]:focus-within::after{border-left-width:var(--strokeWidthThick);}",".fdxas6f[data-fui-focus-within]:focus-within::after{border-bottom-width:var(--strokeWidthThick);}",".fxwickw[data-fui-focus-within]:focus-within::after{border-bottom-right-radius:var(--fui-Card--border-radius);}",".f1ia5cve[data-fui-focus-within]:focus-within::after{border-bottom-left-radius:var(--fui-Card--border-radius);}",".f194aguw[data-fui-focus-within]:focus-within::after{border-top-right-radius:var(--fui-Card--border-radius);}",".fqicc6c[data-fui-focus-within]:focus-within::after{border-top-left-radius:var(--fui-Card--border-radius);}",".fq4eyks[data-fui-focus-within]:focus-within::after{border-top-color:var(--colorStrokeFocus2);}",".f1ya6x16[data-fui-focus-within]:focus-within::after{border-right-color:var(--colorStrokeFocus2);}",".ftuszwa[data-fui-focus-within]:focus-within::after{border-left-color:var(--colorStrokeFocus2);}",".f1e2iu44[data-fui-focus-within]:focus-within::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1amxum7[data-fui-focus-within]:focus-within::after{top:calc(0px - var(--strokeWidthThick) - -2px);}",".f1cec8w7[data-fui-focus-within]:focus-within::after{right:calc(0px - var(--strokeWidthThick) - -2px);}",".f554mv0[data-fui-focus-within]:focus-within::after{left:calc(0px - var(--strokeWidthThick) - -2px);}",".f1sj6kbr[data-fui-focus-within]:focus-within::after{bottom:calc(0px - var(--strokeWidthThick) - -2px);}",".f1063pyq{flex-direction:row;}",".f122n59{align-items:center;}",".fpfyeui>.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",".fwi74qw>.fui-CardPreview{margin-bottom:calc(var(--fui-Card--size) * -1);}",'.ffcmwrh>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-left:calc(var(--fui-Card--size) * -1);}','.f6ppoih>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.f1dc9p14>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-right:calc(var(--fui-Card--size) * -1);}','.fd933vt>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-left:calc(var(--fui-Card--size) * -1);}',".f18esqgw>.fui-CardHeader:last-of-type,.f18esqgw>.fui-CardFooter:last-of-type{flex-grow:1;}",".f1vx9l62{flex-direction:column;}",".fobhde4>.fui-CardPreview{margin-left:calc(var(--fui-Card--size) * -1);}",".fx5r7kn>.fui-CardPreview{margin-right:calc(var(--fui-Card--size) * -1);}",'.f19chtn8>:not([aria-hidden="true"]).fui-CardPreview:first-of-type{margin-top:calc(var(--fui-Card--size) * -1);}',".fuvs6re>.fui-Card__floatingAction+.fui-CardPreview{margin-top:calc(var(--fui-Card--size) * -1);}",'.fy4glsf>:not([aria-hidden="true"]).fui-CardPreview:last-of-type{margin-bottom:calc(var(--fui-Card--size) * -1);}',".f1pi9uxy{--fui-Card--size:8px;}",".f1h1zgly{--fui-Card--border-radius:var(--borderRadiusSmall);}",".frsmuga{--fui-Card--size:12px;}",".fuldkky{--fui-Card--border-radius:var(--borderRadiusMedium);}",".f1qua4xo{--fui-Card--size:16px;}",".fimkt6v{--fui-Card--border-radius:var(--borderRadiusLarge);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1whvlc6{box-shadow:var(--shadow4);}",".f16gxe2i::after{border-top-color:var(--colorTransparentStroke);}",".fpgykix::after{border-right-color:var(--colorTransparentStroke);}",".fzybk4o::after{border-left-color:var(--colorTransparentStroke);}",".f1osi826::after{border-bottom-color:var(--colorTransparentStroke);}",".f1k6fduh{cursor:pointer;}",".f1nfm20t{background-color:var(--colorNeutralBackground1Selected);}",".f16eln5f::after{border-top-color:var(--colorNeutralStroke1Selected);}",".fa2okxs::after{border-right-color:var(--colorNeutralStroke1Selected);}",".fg4zq3l::after{border-left-color:var(--colorNeutralStroke1Selected);}",".ff6932p::after{border-bottom-color:var(--colorNeutralStroke1Selected);}",".f1dmdbja{background-color:var(--colorNeutralBackground2);}",".fjxa0vh{background-color:var(--colorNeutralBackground2Selected);}",".f1c21dwh{background-color:var(--colorTransparentBackground);}",".f1couhl3{box-shadow:none;}",".ft83z1f::after{border-top-color:var(--colorNeutralStroke1);}",".f1g4150c::after{border-right-color:var(--colorNeutralStroke1);}",".f192dr6e::after{border-left-color:var(--colorNeutralStroke1);}",".f1qnawh6::after{border-bottom-color:var(--colorNeutralStroke1);}",".f1q9pm1r{background-color:var(--colorTransparentBackgroundSelected);}",".fhovq9v{background-color:var(--colorSubtleBackground);}",".fq5gl1p{background-color:var(--colorSubtleBackgroundSelected);}",".f1euv43f{position:absolute;}",".fqclxi7{top:4px;}",".fiv86kb{right:4px;}",".f36uhnt{left:4px;}",".f19g0ac{z-index:1;}",".frkrog8{width:1px;}",".f1mpe4l3{height:1px;}",".fmf1zke{clip:rect(0 0 0 0);}",".f1wch0ki{clip-path:inset(50%);}",".fz5stix{white-space:nowrap;}"],f:[".ftqa4ok:focus{outline-style:none;}"],i:[".f2hkw1w:focus-visible{outline-style:none;}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f1m145df:hover{box-shadow:var(--shadow8);}",".f1kz6goq:hover{background-color:var(--colorNeutralBackground1Selected);}",".f1uvynv3:hover{background-color:var(--colorNeutralBackground2Hover);}",".fehi0vp:hover{background-color:var(--colorNeutralBackground2Selected);}",".fjxutwb:hover{background-color:var(--colorTransparentBackgroundHover);}",".f1llr77y:hover::after{border-top-color:var(--colorNeutralStroke1Hover);}",".fzk0khw:hover::after{border-right-color:var(--colorNeutralStroke1Hover);}",".fjj8tog:hover::after{border-left-color:var(--colorNeutralStroke1Hover);}",".fb1u8ub:hover::after{border-bottom-color:var(--colorNeutralStroke1Hover);}",".fg59vm4:hover{background-color:var(--colorTransparentBackgroundSelected);}",".f1t94bn6:hover{background-color:var(--colorSubtleBackgroundHover);}",".f1uqaxdt:hover{background-color:var(--colorSubtleBackgroundSelected);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".f1yhgkbh:active{background-color:var(--colorNeutralBackground2Pressed);}",".fophhak:active{background-color:var(--colorTransparentBackgroundPressed);}",".f1uohb70:active::after{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1jm7v1n:active::after{border-right-color:var(--colorNeutralStroke1Pressed);}",".f1bus3rq:active::after{border-left-color:var(--colorNeutralStroke1Pressed);}",".f1fbu7rr:active::after{border-bottom-color:var(--colorNeutralStroke1Pressed);}",".f1wfn5kd:active{background-color:var(--colorSubtleBackgroundPressed);}"],m:[["@media (forced-colors: active){.fkc42ay{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1rirnrt{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1lkg8j3{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1nkj0oa .fui-CardPreview,.f1nkj0oa .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fey3rwa::after{border-top-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f5jhx11::after{border-right-color:Highlight;}.fff9uym::after{border-left-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fm7n0jy::after{border-bottom-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fpfvv3l:hover,.fpfvv3l :active{forced-color-adjust:none;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1oamsm6:hover,.f1oamsm6 :active{background-color:Highlight;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.f1il21bs:hover,.f1il21bs :active{color:HighlightText;}}",{m:"(forced-colors: active)"}],["@media (forced-colors: active){.fnn5dk0:hover .fui-CardPreview,.fnn5dk0 :active .fui-CardPreview,.fnn5dk0:hover .fui-CardFooter,.fnn5dk0 :active .fui-CardFooter{forced-color-adjust:auto;}}",{m:"(forced-colors: active)"}]]}),rE=t=>{const e=tE(),r={horizontal:e.orientationHorizontal,vertical:e.orientationVertical},n={small:e.sizeSmall,medium:e.sizeMedium,large:e.sizeLarge},o={filled:e.filled,"filled-alternative":e.filledAlternative,outline:e.outline,subtle:e.subtle},i={filled:e.filledInteractiveSelected,"filled-alternative":e.filledAlternativeInteractiveSelected,outline:e.outlineInteractiveSelected,subtle:e.subtleInteractiveSelected},a={filled:e.filledInteractive,"filled-alternative":e.filledAlternativeInteractive,outline:e.outlineInteractive,subtle:e.subtleInteractive},s=t.interactive||t.selectable,l=E.useMemo(()=>t.selectable?t.selectFocused?e.selectableFocused:"":e.focused,[t.selectFocused,t.selectable,e.focused,e.selectableFocused]);return t.root.className=ce(Uc.root,e.root,r[t.orientation],n[t.size],o[t.appearance],s&&a[t.appearance],t.selected&&i[t.appearance],l,s&&e.highContrastInteractive,t.selected&&e.highContrastSelected,t.root.className),t.floatingAction&&(t.floatingAction.className=ce(Uc.floatingAction,e.select,t.floatingAction.className)),t.checkbox&&(t.checkbox.className=ce(Uc.checkbox,e.hiddenCheckbox,t.checkbox.className)),t};function nE({selectableA11yProps:t}){return{selectableA11yProps:t}}const Im=E.forwardRef((t,e)=>{const r=VS(t,e),n=nE(r);return rE(r),QS(r,n)});Im.displayName="Card";const oE=(t,e)=>{const{action:r}=t;return{components:{root:"div",action:"div"},root:zt(Sr("div",{ref:e,...t}),{elementType:"div"}),action:rt(r,{elementType:"div"})}},iE=t=>Er(t.root,{children:[t.root.children,t.action&&se(t.action,{})]}),Am=E.forwardRef((t,e)=>{const r=oE(t,e);return eE(r),iE(r)});Am.displayName="CardFooter";function aE(t){function e(r){return E.isValidElement(r)&&!!r.props.id}return E.Children.toArray(t).find(e)}function sE(t,e,r){return t||(e!=null&&e.props.id?e.props.id:r)}const cE=(t,e)=>{const{image:r,header:n,description:o,action:i}=t,{selectableA11yProps:{referenceId:a,setReferenceId:s}}=Tm(),l=E.useRef(null),c=E.useRef(!1),u=gd(Bn.header,a),d=rt(n,{renderByDefault:!0,defaultProps:{ref:l,id:c.current?void 0:a},elementType:"div"});return E.useEffect(()=>{var f;const p=c.current||(f=l.current)===null||f===void 0?void 0:f.id,h=aE(d==null?void 0:d.children);c.current=!!h,s(sE(p,h,u))},[u,n,d,s]),{components:{root:"div",image:"div",header:"div",description:"div",action:"div"},root:zt(Sr("div",{ref:e,...t}),{elementType:"div"}),image:rt(r,{elementType:"div"}),header:d,description:rt(o,{elementType:"div"}),action:rt(i,{elementType:"div"})}},lE=t=>Er(t.root,{children:[t.image&&se(t.image,{}),se(t.header,{}),t.description&&se(t.description,{}),t.action&&se(t.action,{})]}),Pm=E.forwardRef((t,e)=>{const r=cE(t,e);return JS(r),lE(r)});Pm.displayName="CardHeader";const uE=(t,e)=>{const{logo:r}=t,{selectableA11yProps:{referenceLabel:n,referenceId:o,setReferenceLabel:i,setReferenceId:a}}=Tm(),s=vd(e,E.useRef(null));return E.useEffect(()=>{if(!(n&&o)&&s.current&&s.current.parentNode){const l=s.current.parentNode.querySelector(`.${tu.root} > img`);if(l){const c=l.getAttribute("aria-label"),u=l.getAttribute("aria-describedby");u?a(u):l.alt?i(l.alt):c&&i(c)}}},[i,n,s,o,a]),{components:{root:"div",logo:"div"},root:zt(Sr("div",{ref:s,...t}),{elementType:"div"}),logo:rt(r,{elementType:"div"})}},dE=t=>Er(t.root,{children:[t.root.children,t.logo&&se(t.logo,{})]}),Nm=E.forwardRef((t,e)=>{const r=uE(t,e);return $S(r),dE(r)});Nm.displayName="CardPreview";var yh=function(){function t(){}return t.splitToMaxLength=function(e,r){for(var n=[],o=0;o<e.length;)n.push(e.slice(o,o+r)),o+=r;return n},t.getSubMap=function(e,r){var n=new Map;return r.forEach(function(o){return n.set(o,e.get(o))}),n},t}();function fE(t,e){for(var r=t,n=0;n<e.length;n++)r=r.replace("{".concat(n,"}"),e[n]);return r}function wh(t){var e=[],r=new Map;return function(n,o,i){var a=i.value;i.value=function(){for(var s=this,l=[],c=0;c<arguments.length;c++)l[c-0]=arguments[c];var u=fE(t,l);return new Promise(function(d,f){var p=r.get(u);if(!p)p=a.apply(s,l).then(function(m){return d(m),e.length===0&&r.delete(u),m}).catch(function(m){f(m),e.length===0&&r.delete(u)}),r.set(u,p);else{var h=new Promise(function(m,C){p.then(function(v){d(v),m(v),e.splice(e.indexOf(h),1),e.length===0&&r.delete(u)}).catch(function(v){f(v),C(v)})});e.push(h)}})}}}var hE=function(){function t(){}return t.getTokenInfo=function(e){var r=atob(e.split(".")[1]);return JSON.parse(r)},t.isTokenValid=function(e){var r=t.getTokenInfo(e);return!(r.exp<new Date().getTime()/1e3)},t}(),Gn=function(){return Gn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Gn.apply(this,arguments)},kh=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{c(n.next(u))}catch(d){a(d)}}function l(u){try{c(n.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(t,e||[])).next())})},Ch=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(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(u){c=[6,u],o=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},_h=function(){function t(e,r,n,o){o===void 0&&(o=0);var i=this;this.baseClient=e,this.registeredPromises=r,this.batch=n,this.retries=o,this.requestBatch=function(a,s){return s===void 0&&(s="beta"),kh(i,void 0,void 0,function(){var l,c,u;return Ch(this,function(d){switch(d.label){case 0:return l={headers:{Accept:"application/json",ConsistencyLevel:"eventual","Content-Type":"application/json"},body:a},[4,this.baseClient.post("https://graph.microsoft.com/".concat(s,"/$batch"),l)];case 1:return c=d.sent(),c.ok?[4,c.json()]:[3,3];case 2:return u=d.sent(),[2,u];case 3:return[2]}})})}}return t.prototype.executeBatch=function(){return kh(this,void 0,void 0,function(){var e,r,n,o,i,a,s;return Ch(this,function(l){switch(l.label){case 0:return e=this.batch.filter(function(c){return c.url.indexOf("v1.0/")<0}),r=this.batch.filter(function(c){return c.url.indexOf("v1.0/")>=0}),n=JSON.stringify({requests:e.map(function(c){return Gn(Gn({},c),{url:c.url.replace("beta/","")})})}),o=JSON.stringify({requests:r.map(function(c){return Gn(Gn({},c),{url:c.url.replace("v1.0/","")})})}),i=[],e.length>0?[4,this.requestBatch(n)]:[3,2];case 1:a=l.sent(),i.push.apply(i,a.responses),l.label=2;case 2:return r.length>0?[4,this.requestBatch(o,"v1.0")]:[3,4];case 3:s=l.sent(),i.push.apply(i,s.responses),l.label=4;case 4:return this.processBatchResponse(i),this.batch.length>0&&this.retries>0&&(this.retries--,this.executeBatch()),[2]}})})},t.prototype.processBatchResponse=function(e){var r=this,n=[],o=new Map;this.registeredPromises.forEach(function(i,a){var s=e.filter(function(l){return l.id===a})[0];s&&s.status===429&&r.retries>0?(n.push({url:a,id:a,method:"GET"}),o.set(a,i)):r.handleSingleResponse(s,i)}),n.length>0?(this.registeredPromises=o,this.batch=n):(this.batch=[],this.registeredPromises.clear())},t.prototype.handleSingleResponse=function(e,r){e?r.forEach(function(n){n.resolve({json:function(){return Promise.resolve(e.body)},ok:e.status===200,status:e.status,text:function(){return Promise.resolve(JSON.stringify(e.body))},headers:e.headers})}):r.forEach(function(n){n.error({json:function(){return Promise.resolve(e)},ok:!1,text:function(){return Promise.resolve(JSON.stringify(e))}})})},t.maxRetries=5,t}(),ru=function(){return ru=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},ru.apply(this,arguments)},pE=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{c(n.next(u))}catch(d){a(d)}}function l(u){try{c(n.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(t,e||[])).next())})},gE=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(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(u){c=[6,u],o=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},vE=function(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))},mE=function(){function t(e,r,n){r===void 0&&(r=500),n===void 0&&(n=15);var o=this;this.baseClient=e,this.batchWaitTime=r,this.batchSplitThreshold=n,this.batch=[],this.getRequestId=function(i,a){return a==="GET"?encodeURIComponent(i):Math.random().toString(36).substring(7)},this.registeredPromises=new Map,this.generateBatch=function(){return pE(o,void 0,void 0,function(){var i,a,s,l,c,u,d,f;return gE(this,function(p){switch(p.label){case 0:i=vE([],this.batch,!0),this.batch=[],a=new Map(this.registeredPromises),this.registeredPromises.clear(),s=yh.splitToMaxLength(i,this.batchSplitThreshold),l=0,c=s,p.label=1;case 1:return l<c.length?(u=c[l],d=yh.getSubMap(a,u.map(function(h){return h.id})),f=new _h(this.baseClient,d,u,_h.maxRetries),[4,f.executeBatch()]):[3,4];case 2:p.sent(),p.label=3;case 3:return l++,[3,1];case 4:return[2]}})})},this.createGetBatchRequest=function(i,a,s,l){o.batch.length===0&&setTimeout(o.generateBatch,o.batchWaitTime);var c=o.getRequestId(i,a),u=new URL(i,"https://graph.microsoft.com"),d=u.pathname+u.search;o.batch.filter(function(f){return f.id===c})[0]?o.registeredPromises.get(c).push(l):(o.batch.push({url:d,id:c,method:a,body:s&&s.body?JSON.parse(s.body):null,headers:ru({ConsistencyLevel:"eventual"},s?s.headers:{})}),o.registeredPromises.set(c,[l]))}}return t.prototype.get=function(e,r){var n=this;return new Promise(function(o,i){n.createGetBatchRequest(e,"GET",r,{resolve:o,error:i})})},t.prototype.post=function(e,r){var n=this;return new Promise(function(o,i){n.createGetBatchRequest(e,"POST",r,{resolve:o,error:i})})},t.prototype.patch=function(e,r){return this.baseClient.patch(e,r)},t.prototype.put=function(e,r){return this.baseClient.put(e,r)},t.prototype.delete=function(e){return this.baseClient.delete(e)},t}(),Wn=function(){return Wn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Wn.apply(this,arguments)},tn=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{c(n.next(u))}catch(d){a(d)}}function l(u){try{c(n.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(t,e||[])).next())})},rn=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(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(u){c=[6,u],o=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Rm=function(){function t(e,r){this.authService=e,this.baseClient=r,this.resourceUri="https://graph.microsoft.com"}return t.prototype.get=function(e,r){return tn(this,void 0,void 0,function(){var n;return rn(this,function(o){switch(o.label){case 0:return[4,this.prepareRequest(r)];case 1:return n=o.sent(),[2,this.baseClient.get(e,n)]}})})},t.prototype.prepareRequest=function(e){return tn(this,void 0,void 0,function(){var r,n,o,i;return rn(this,function(a){switch(a.label){case 0:return r=[Wn({},e)],o={},n=[Wn({},e==null?void 0:e.headers)],i={},[4,this.getAuthHeader()];case 1:return[2,Wn.apply(void 0,r.concat([(o.headers=Wn.apply(void 0,n.concat([(i.Authorization=a.sent(),i)])),o)]))]}})})},t.prototype.post=function(e,r){return tn(this,void 0,void 0,function(){var n;return rn(this,function(o){switch(o.label){case 0:return[4,this.prepareRequest(r)];case 1:return n=o.sent(),[2,this.baseClient.post(e,n)]}})})},t.prototype.patch=function(e,r){return tn(this,void 0,void 0,function(){var n;return rn(this,function(o){switch(o.label){case 0:return[4,this.prepareRequest(r)];case 1:return n=o.sent(),[2,this.baseClient.patch(e,n)]}})})},t.prototype.put=function(e,r){return tn(this,void 0,void 0,function(){var n;return rn(this,function(o){switch(o.label){case 0:return[4,this.prepareRequest(r)];case 1:return n=o.sent(),[2,this.baseClient.put(e,n)]}})})},t.prototype.delete=function(e){return tn(this,void 0,void 0,function(){return rn(this,function(r){return[2,this.baseClient.delete(e)]})})},t.prototype.getAuthHeader=function(){return tn(this,void 0,void 0,function(){var e;return rn(this,function(r){switch(r.label){case 0:return[4,this.authService.getAccessToken(this.resourceUri)];case 1:return e=r.sent(),[2,"Bearer ".concat(e)]}})})},t}(),Vn=function(){return Vn=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Vn.apply(this,arguments)},Bm=function(){function t(){}return t.prototype.get=function(e,r){return fetch(e,Vn({method:"GET"},r))},t.prototype.post=function(e,r){return fetch(e,Vn({method:"POST"},r))},t.prototype.patch=function(e,r){return fetch(e,Vn({method:"PATCH"},r))},t.prototype.put=function(e,r){return fetch(e,Vn({method:"PUT"},r))},t.prototype.delete=function(e){return fetch(e,{method:"DELETE"})},t}();var xo=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{c(n.next(u))}catch(d){a(d)}}function l(u){try{c(n.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(t,e||[])).next())})},Mo=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(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(u){c=[6,u],o=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},yE=function(){function t(e,r,n){n===void 0&&(n=!1),this.graphClient=e,this.resourceQuery=r,this.skipCountCheck=n,this.filterQuery="",this.orderQuery="",this.nextPageLink="",this.previousPages=[],this.previousPageIndex=-1,this.pageSize=25,this.allItemsCount=-1}return t.prototype.getAllItemsCount=function(){return xo(this,void 0,void 0,function(){var e,r,n,o;return Mo(this,function(i){switch(i.label){case 0:return this.skipCountCheck?[2,-1]:(e=this.getQuery(),r="".concat(this.resourceQuery,"/$count"),this.getQuery()&&(r+="?$filter=".concat(e)),[4,this.graphClient.get(r)]);case 1:return n=i.sent(),n.ok?(o=parseInt,[4,n.text()]):[3,3];case 2:return[2,o.apply(void 0,[i.sent(),10])];case 3:return[2]}})})},t.prototype.getData=function(){return xo(this,void 0,void 0,function(){var e,r,n;return Mo(this,function(o){switch(o.label){case 0:return[4,Promise.all([this.callGraphAPI(this.buildInitialQuery()),this.getAllItemsCount()])];case 1:return e=o.sent(),r=e[0],n=e[1],this.allItemsCount=n,[2,r]}})})},t.prototype.buildInitialQuery=function(){var e=this.getQuery(),r="".concat(this.resourceQuery,"?$top=").concat(this.pageSize);return this.orderQuery&&(r+="&$orderBy=".concat(this.orderQuery)),e&&(r+="&$filter=".concat(e)),r},t.prototype.callGraphAPI=function(e){return xo(this,void 0,void 0,function(){var r,n,o,i;return Mo(this,function(a){switch(a.label){case 0:return[4,this.graphClient.get(e)];case 1:return r=a.sent(),r.ok?[4,r.json()]:[3,3];case 2:return n=a.sent(),o=n.value,this.nextPageLink=n["@odata.nextLink"],[2,o];case 3:return i=Error.bind,[4,r.text()];case 4:throw new(i.apply(Error,[void 0,a.sent()]))}})})},t.prototype.setQuery=function(e){this.filterQuery=e},t.prototype.getQuery=function(){return this.filterQuery},t.prototype.setOrder=function(e,r){this.orderQuery="".concat(e," ").concat(r.toLocaleLowerCase())},t.prototype.getNextPage=function(){return xo(this,void 0,void 0,function(){return Mo(this,function(e){return this.isNextPageAvailable()?(this.previousPageIndex++,this.previousPages.push(this.nextPageLink),[2,this.callGraphAPI(this.nextPageLink)]):[2,[]]})})},t.prototype.isNextPageAvailable=function(){return!!this.nextPageLink},t.prototype.getPreviousPage=function(){return xo(this,void 0,void 0,function(){var e,r;return Mo(this,function(n){switch(n.label){case 0:return this.isPreviousPageAvailable()?(e=this.previousPages[this.previousPageIndex],[4,this.callGraphAPI(e)]):[2,[]];case 1:return r=n.sent(),this.previousPageIndex--,[2,r]}})})},t.prototype.isPreviousPageAvailable=function(){return this.previousPageIndex>=0&&!!this.previousPages[this.previousPageIndex]},t.prototype.getCurrentPage=function(){return this.previousPageIndex+1},t}(),Br=function(){return Br=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Br.apply(this,arguments)},qc=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{c(n.next(u))}catch(d){a(d)}}function l(u){try{c(n.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(t,e||[])).next())})},jc=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(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(u){c=[6,u],o=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},wE=function(){function t(e,r,n){r===void 0&&(r=["listItem"]),n===void 0&&(n=["id","title","url"]),this.graphClient=e,this.entityTypes=r,this.selectFields=n,this.currentPage=0,this.pageSize=25,this.allItemsCount=-1,this.graphSearchEndpoint="https://graph.microsoft.com/beta/search/query"}return t.prototype.setRefiners=function(e){this.requestedRefiners=e||[]},t.prototype.applyRefiners=function(e){this.filters=e||void 0},t.prototype.buildSearchRequest=function(){var e,r={requests:[{entityTypes:this.entityTypes,from:this.currentPage*this.pageSize,to:(this.currentPage+1)*this.pageSize,query:null,sortProperties:null,fields:null,aggregations:this.requestedRefiners,aggregationFilters:((e=this.filters)===null||e===void 0?void 0:e.map(function(n){return"".concat(n.field,":").concat(n.filterValue)}))||void 0,size:this.pageSize}]};return this.getQuery()?(r.requests[0].query={queryString:this.getQuery()},this.queryTemplate&&(r.requests[0].query.queryTemplate=this.queryTemplate)):(r.requests[0].query={queryString:"*"},this.queryTemplate&&(r.requests[0].query.queryTemplate=this.queryTemplate)),this.orderColumn&&(r.requests[0].sortProperties=[{name:this.orderColumn,isDescending:this.isDescending}]),this.selectFields&&this.selectFields.length>0&&(r.requests[0].fields=this.selectFields),r},t.prototype.getData=function(){return qc(this,void 0,void 0,function(){var e,r,n,o;return jc(this,function(i){switch(i.label){case 0:return[4,this.graphClient.post(this.graphSearchEndpoint,{body:JSON.stringify(this.buildSearchRequest()),headers:{accept:"application/json","content-type":"application/json"}})];case 1:return e=i.sent(),e.ok?[4,e.json()]:[3,3];case 2:return r=i.sent(),n=r.value[0].hitsContainers[0],this.allItemsCount=n.total,this.parseAggregations(n),this.allItemsCount>0?[2,n.hits.map(function(a){return Br(Br({},a.resource),{type:a.resource["@odata.type"],hitResourceIdId:a.resource.id,hitId:a.hitId,hitRank:a.rank,hitHighlights:a.highlights,hitSummary:a.summary})})]:[2,[]];case 3:return o=Error.bind,[4,e.text()];case 4:throw new(o.apply(Error,[void 0,i.sent()]))}})})},t.prototype.parseAggregations=function(e){try{this.currentAggregations=e.aggregations.map(function(r){return Br(Br({},r),{buckets:r.buckets.map(function(n){return Br(Br({},n),{value:n.value,count:n.count})})})})}catch{this.currentAggregations=[]}},t.prototype.setQuery=function(e){this.query=e},t.prototype.getQuery=function(){return this.query},t.prototype.setOrder=function(e,r){this.orderColumn=e,this.isDescending=r==="DESC"},t.prototype.getNextPage=function(){return qc(this,void 0,void 0,function(){return jc(this,function(e){return this.isNextPageAvailable()?(this.currentPage++,[2,this.getData()]):[2,[]]})})},t.prototype.isNextPageAvailable=function(){return(this.currentPage+1)*this.pageSize<this.allItemsCount},t.prototype.getPreviousPage=function(){return qc(this,void 0,void 0,function(){return jc(this,function(e){return this.isPreviousPageAvailable()?(this.currentPage--,[2,this.getData()]):[2,[]]})})},t.prototype.isPreviousPageAvailable=function(){return this.currentPage>0},t.prototype.getCurrentPage=function(){return this.currentPage},t.prototype.jumpToAPage=function(e){return this.currentPage=e,this.getData()},t}(),kE=function(){var t=function(e,r){return t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,o){n.__proto__=o}||function(n,o){for(var i in o)Object.prototype.hasOwnProperty.call(o,i)&&(n[i]=o[i])},t(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}(),Kc=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{c(n.next(u))}catch(d){a(d)}}function l(u){try{c(n.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(t,e||[])).next())})},Gc=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(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(u){c=[6,u],o=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}};(function(t){kE(e,t);function e(r,n,o){n===void 0&&(n=!0),o===void 0&&(o=!0);var i=t.call(this,r,"https://graph.microsoft.com/v1.0/me/people",!0)||this;return i.loadPresence=n,i.loadPhoto=o,i.personTypeClass="Person",i.pageSize=7,i}return e.prototype.callGraphAPI=function(r){return Kc(this,void 0,void 0,function(){var n,o;return Gc(this,function(i){switch(i.label){case 0:return[4,t.prototype.callGraphAPI.call(this,r)];case 1:return n=i.sent(),o=[],this.loadPresence&&o.push.apply(o,n.map(this.appendPresence.bind(this))),this.loadPhoto&&o.push.apply(o,n.map(this.appendPhoto.bind(this))),o.length>0?[4,Promise.all(o)]:[3,3];case 2:i.sent(),i.label=3;case 3:return[2,n]}})})},e.prototype.appendPresence=function(r){return Kc(this,void 0,void 0,function(){var n,o;return Gc(this,function(i){switch(i.label){case 0:return[4,this.graphClient.get("v1.0/users/".concat(r.id,"/presence"))];case 1:return n=i.sent(),n.ok?(o=r,[4,n.json()]):[3,3];case 2:o.presence=i.sent(),i.label=3;case 3:return[2]}})})},e.prototype.appendPhoto=function(r){return Kc(this,void 0,void 0,function(){var n,o;return Gc(this,function(i){switch(i.label){case 0:return[4,this.graphClient.get("/v1.0/users/".concat(r.id,"/photo/$value"))];case 1:return n=i.sent(),n.ok?(o=r,[4,n.text()]):[3,3];case 2:o.photo=i.sent(),i.label=3;case 3:return[2]}})})},e.prototype.buildInitialQuery=function(){var r=this.getQuery(),n="".concat(this.resourceQuery,"?$top=").concat(this.pageSize);return this.orderQuery&&(n+="&$orderBy=".concat(this.orderQuery)),r&&(n+="&$search=".concat(r)),this.personTypeClass&&(n+="&$filter=personType/class eq '".concat(this.personTypeClass,"'")),n},e})(yE);/*! @azure/msal-browser v2.38.3 2023-10-27 *//*! *****************************************************************************
|
|
94
|
+
Copyright (c) Microsoft Corporation.
|
|
95
|
+
|
|
96
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
97
|
+
purpose with or without fee is hereby granted.
|
|
98
|
+
|
|
99
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
100
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
101
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
102
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
103
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
104
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
105
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
106
|
+
***************************************************************************** */var nu=function(t,e){return nu=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])},nu(t,e)};function Ke(t,e){nu(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 bh(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 I(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{c(n.next(u))}catch(d){a(d)}}function l(u){try{c(n.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(t,e||[])).next())})}function A(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(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(u){c=[6,u],o=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function CE(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 bd(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(CE(arguments[e]));return t}/*! @azure/msal-common v13.3.1 2023-10-27 *//*! *****************************************************************************
|
|
107
|
+
Copyright (c) Microsoft Corporation.
|
|
108
|
+
|
|
109
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
110
|
+
purpose with or without fee is hereby granted.
|
|
111
|
+
|
|
112
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
113
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
114
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
115
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
116
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
117
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
118
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
119
|
+
***************************************************************************** */var ou=function(t,e){return ou=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])},ou(t,e)};function vt(t,e){ou(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}var ne=function(){return ne=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},ne.apply(this,arguments)};function V(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{c(n.next(u))}catch(d){a(d)}}function l(u){try{c(n.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(t,e||[])).next())})}function Q(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(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(u){c=[6,u],o=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Js(){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 v13.3.1 2023-10-27 */var w={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",CIAM_AUTH_URL:".ciamlogin.com",AAD_TENANT_DOMAIN_SUFFIX:".onmicrosoft.com",RESOURCE_DELIM:"|",NO_ACCOUNT:"NO_ACCOUNT",CLAIMS:"claims",CONSUMER_UTID:"9188040d-6c67-4c5b-b112-36a304b66dad",OPENID_SCOPE:"openid",PROFILE_SCOPE:"profile",OFFLINE_ACCESS_SCOPE:"offline_access",EMAIL_SCOPE:"email",CODE_RESPONSE_TYPE:"code",CODE_GRANT_TYPE:"authorization_code",RT_GRANT_TYPE:"refresh_token",FRAGMENT_RESPONSE_MODE:"fragment",S256_CODE_CHALLENGE_METHOD:"S256",URL_FORM_CONTENT_TYPE:"application/x-www-form-urlencoded;charset=utf-8",AUTHORIZATION_PENDING:"authorization_pending",NOT_DEFINED:"not_defined",EMPTY_STRING:"",NOT_APPLICABLE:"N/A",FORWARD_SLASH:"/",IMDS_ENDPOINT:"http://169.254.169.254/metadata/instance/compute/location",IMDS_VERSION:"2020-06-01",IMDS_TIMEOUT:2e3,AZURE_REGION_AUTO_DISCOVER_FLAG:"TryAutoDetect",REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX:"login.microsoft.com",REGIONAL_AUTH_NON_MSI_QUERY_STRING:"allowestsrnonmsi=true",KNOWN_PUBLIC_CLOUDS:["login.microsoftonline.com","login.windows.net","login.microsoft.com","sts.windows.net"],TOKEN_RESPONSE_TYPE:"token",ID_TOKEN_RESPONSE_TYPE:"id_token",SHR_NONCE_VALIDITY:240,INVALID_INSTANCE:"invalid_instance"},Ki=[w.OPENID_SCOPE,w.PROFILE_SCOPE,w.OFFLINE_ACCESS_SCOPE],Sh=Js(Ki,[w.EMAIL_SCOPE]),bt;(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",t.X_MS_HTTP_VERSION="x-ms-httpver"})(bt||(bt={}));var Ne;(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"})(Ne||(Ne={}));var wn;(function(t){t.COMMON="common",t.ORGANIZATIONS="organizations",t.CONSUMERS="consumers"})(wn||(wn={}));var Y;(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"})(Y||(Y={}));var Qn;(function(t){t.ACCESS_TOKEN="access_token",t.XMS_CC="xms_cc"})(Qn||(Qn={}));var Xe={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},ri;(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"})(ri||(ri={}));var Eh={PLAIN:"plain",S256:"S256"},fs;(function(t){t.QUERY="query",t.FRAGMENT="fragment",t.FORM_POST="form_post"})(fs||(fs={}));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 ar;(function(t){t.MSSTS_ACCOUNT_TYPE="MSSTS",t.ADFS_ACCOUNT_TYPE="ADFS",t.MSAV1_ACCOUNT_TYPE="MSA",t.GENERIC_ACCOUNT_TYPE="Generic"})(ar||(ar={}));var xe;(function(t){t.CACHE_KEY_SEPARATOR="-",t.CLIENT_INFO_SEPARATOR="."})(xe||(xe={}));var j;(function(t){t.ID_TOKEN="IdToken",t.ACCESS_TOKEN="AccessToken",t.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",t.REFRESH_TOKEN="RefreshToken"})(j||(j={}));var ur;(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"})(ur||(ur={}));var iu="appmetadata",_E="client_info",ni="1",oi={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},At;(function(t){t.CONFIG="config",t.CACHE="cache",t.NETWORK="network",t.HARDCODED_VALUES="hardcoded_values"})(At||(At={}));var Le={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"},oe;(function(t){t.BEARER="Bearer",t.POP="pop",t.SSH="ssh-cert"})(oe||(oe={}));var ii={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},Th={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},ps;(function(t){t.username="username",t.password="password"})(ps||(ps={}));var Yn;(function(t){t[t.httpSuccess=200]="httpSuccess",t[t.httpBadRequest=400]="httpBadRequest"})(Yn||(Yn={}));var xr;(function(t){t.FAILED_AUTO_DETECTION="1",t.INTERNAL_CACHE="2",t.ENVIRONMENT_VARIABLE="3",t.IMDS="4"})(xr||(xr={}));var ai;(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"})(ai||(ai={}));var Dr;(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",t.CLAIMS_REQUESTED_CACHE_SKIPPED="5"})(Dr||(Dr={}));var au;(function(t){t.Jwt="JWT",t.Jwk="JWK",t.Pop="pop"})(au||(au={}));/*! @azure/msal-common v13.3.1 2023-10-27 */var ga={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."}},U=function(t){vt(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||w.EMPTY_STRING,i.errorMessage=n||w.EMPTY_STRING,i.subError=o||w.EMPTY_STRING,i.name="AuthError",i}return e.prototype.setCorrelationId=function(r){this.correlationId=r},e.createUnexpectedError=function(r){return new e(ga.unexpectedError.code,ga.unexpectedError.desc+": "+r)},e.createPostRequestFailed=function(r){return new e(ga.postRequestFailed.code,ga.postRequestFailed.desc+": "+r)},e}(Error);/*! @azure/msal-common v13.3.1 2023-10-27 */var gs={createNewGuid:function(){var t="Crypto interface - createNewGuid() has not been implemented";throw U.createUnexpectedError(t)},base64Decode:function(){var t="Crypto interface - base64Decode() has not been implemented";throw U.createUnexpectedError(t)},base64Encode:function(){var t="Crypto interface - base64Encode() has not been implemented";throw U.createUnexpectedError(t)},generatePkceCodes:function(){return V(this,void 0,void 0,function(){var t;return Q(this,function(e){throw t="Crypto interface - generatePkceCodes() has not been implemented",U.createUnexpectedError(t)})})},getPublicKeyThumbprint:function(){return V(this,void 0,void 0,function(){var t;return Q(this,function(e){throw t="Crypto interface - getPublicKeyThumbprint() has not been implemented",U.createUnexpectedError(t)})})},removeTokenBindingKey:function(){return V(this,void 0,void 0,function(){var t;return Q(this,function(e){throw t="Crypto interface - removeTokenBindingKey() has not been implemented",U.createUnexpectedError(t)})})},clearKeystore:function(){return V(this,void 0,void 0,function(){var t;return Q(this,function(e){throw t="Crypto interface - clearKeystore() has not been implemented",U.createUnexpectedError(t)})})},signJwt:function(){return V(this,void 0,void 0,function(){var t;return Q(this,function(e){throw t="Crypto interface - signJwt() has not been implemented",U.createUnexpectedError(t)})})},hashString:function(){return V(this,void 0,void 0,function(){var t;return Q(this,function(e){throw t="Crypto interface - hashString() has not been implemented",U.createUnexpectedError(t)})})}};/*! @azure/msal-common v13.3.1 2023-10-27 */var B={clientInfoDecodingError:{code:"client_info_decoding_error",desc:"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."},clientInfoEmptyError:{code:"client_info_empty_error",desc:"The client info was empty. Please review the trace to determine the root cause."},tokenParsingError:{code:"token_parsing_error",desc:"Token cannot be parsed. Please review stack trace to determine root cause."},nullOrEmptyToken:{code:"null_or_empty_token",desc:"The token is null or empty. Please review the trace to determine the root cause."},endpointResolutionError:{code:"endpoints_resolution_error",desc:"Error: could not resolve endpoints. Please check network and try again."},networkError:{code:"network_error",desc:"Network request failed. Please check network trace to determine root cause."},unableToGetOpenidConfigError:{code:"openid_config_error",desc:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints."},hashNotDeserialized:{code:"hash_not_deserialized",desc:"The hash parameters could not be deserialized. Please review the trace to determine the root cause."},blankGuidGenerated:{code:"blank_guid_generated",desc:"The guid generated was blank. Please review the trace to determine the root cause."},invalidStateError:{code:"invalid_state",desc:"State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState()."},stateMismatchError:{code:"state_mismatch",desc:"State mismatch error. Please check your network. Continued requests may cause cache overflow."},stateNotFoundError:{code:"state_not_found",desc:"State not found"},nonceMismatchError:{code:"nonce_mismatch",desc:"Nonce mismatch error. This may be caused by a race condition in concurrent requests."},nonceNotFoundError:{code:"nonce_not_found",desc:"nonce not found"},authTimeNotFoundError:{code:"auth_time_not_found",desc:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information."},maxAgeTranspiredError:{code:"max_age_transpired",desc:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication."},noTokensFoundError:{code:"no_tokens_found",desc:"No tokens were found for the given scopes, and no authorization code was passed to acquireToken. You must retrieve an authorization code before making a call to acquireToken()."},multipleMatchingTokens:{code:"multiple_matching_tokens",desc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account."},multipleMatchingAccounts:{code:"multiple_matching_accounts",desc:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account"},multipleMatchingAppMetadata:{code:"multiple_matching_appMetadata",desc:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata"},tokenRequestCannotBeMade:{code:"request_cannot_be_made",desc:"Token request cannot be made without authorization code or refresh token."},appendEmptyScopeError:{code:"cannot_append_empty_scope",desc:"Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info."},removeEmptyScopeError:{code:"cannot_remove_empty_scope",desc:"Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info."},appendScopeSetError:{code:"cannot_append_scopeset",desc:"Cannot append ScopeSet due to error."},emptyInputScopeSetError:{code:"empty_input_scopeset",desc:"Empty input ScopeSet cannot be processed."},DeviceCodePollingCancelled:{code:"device_code_polling_cancelled",desc:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true."},DeviceCodeExpired:{code:"device_code_expired",desc:"Device code is expired."},DeviceCodeUnknownError:{code:"device_code_unknown_error",desc:"Device code stopped polling for unknown reasons."},NoAccountInSilentRequest:{code:"no_account_in_silent_request",desc:"Please pass an account object, silent flow is not supported without account information"},invalidCacheRecord:{code:"invalid_cache_record",desc:"Cache record object was null or undefined."},invalidCacheEnvironment:{code:"invalid_cache_environment",desc:"Invalid environment when attempting to create cache entry"},noAccountFound:{code:"no_account_found",desc:"No account found in cache for given key."},CachePluginError:{code:"no cache plugin set on CacheManager",desc:"ICachePlugin needs to be set before using readFromStorage or writeFromStorage"},noCryptoObj:{code:"no_crypto_object",desc:"No crypto object detected. This is required for the following operation: "},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},unexpectedAccountType:{code:"unexpected_account_type",desc:"Unexpected account type."},unexpectedCredentialType:{code:"unexpected_credential_type",desc:"Unexpected credential type."},invalidAssertion:{code:"invalid_assertion",desc:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515"},invalidClientCredential:{code:"invalid_client_credential",desc:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential"},tokenRefreshRequired:{code:"token_refresh_required",desc:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired."},userTimeoutReached:{code:"user_timeout_reached",desc:"User defined timeout for device code polling reached"},tokenClaimsRequired:{code:"token_claims_cnf_required_for_signedjwt",desc:"Cannot generate a POP jwt if the token_claims are not populated"},noAuthorizationCodeFromServer:{code:"authorization_code_missing_from_server_response",desc:"Server response does not contain an authorization code to proceed"},noAzureRegionDetected:{code:"no_azure_region_detected",desc:"No azure region was detected and no fallback was made available"},accessTokenEntityNullError:{code:"access_token_entity_null",desc:"Access token entity is null, please check logs and cache to ensure a valid access token is present."},bindingKeyNotRemovedError:{code:"binding_key_not_removed",desc:"Could not remove the credential's binding key from storage."},logoutNotSupported:{code:"end_session_endpoint_not_supported",desc:"Provided authority does not support logout."},keyIdMissing:{code:"key_id_missing",desc:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key."},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},userCanceledError:{code:"user_canceled",desc:"User canceled the flow."}},F=function(t){vt(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(B.clientInfoDecodingError.code,B.clientInfoDecodingError.desc+" Failed with error: "+r)},e.createClientInfoEmptyError=function(){return new e(B.clientInfoEmptyError.code,""+B.clientInfoEmptyError.desc)},e.createTokenParsingError=function(r){return new e(B.tokenParsingError.code,B.tokenParsingError.desc+" Failed with error: "+r)},e.createTokenNullOrEmptyError=function(r){return new e(B.nullOrEmptyToken.code,B.nullOrEmptyToken.desc+" Raw Token Value: "+r)},e.createEndpointDiscoveryIncompleteError=function(r){return new e(B.endpointResolutionError.code,B.endpointResolutionError.desc+" Detail: "+r)},e.createNetworkError=function(r,n){return new e(B.networkError.code,B.networkError.desc+" | Fetch client threw: "+n+" | Attempted to reach: "+r.split("?")[0])},e.createUnableToGetOpenidConfigError=function(r){return new e(B.unableToGetOpenidConfigError.code,B.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+r)},e.createHashNotDeserializedError=function(r){return new e(B.hashNotDeserialized.code,B.hashNotDeserialized.desc+" Given Object: "+r)},e.createInvalidStateError=function(r,n){return new e(B.invalidStateError.code,B.invalidStateError.desc+" Invalid State: "+r+", Root Err: "+n)},e.createStateMismatchError=function(){return new e(B.stateMismatchError.code,B.stateMismatchError.desc)},e.createStateNotFoundError=function(r){return new e(B.stateNotFoundError.code,B.stateNotFoundError.desc+": "+r)},e.createNonceMismatchError=function(){return new e(B.nonceMismatchError.code,B.nonceMismatchError.desc)},e.createAuthTimeNotFoundError=function(){return new e(B.authTimeNotFoundError.code,B.authTimeNotFoundError.desc)},e.createMaxAgeTranspiredError=function(){return new e(B.maxAgeTranspiredError.code,B.maxAgeTranspiredError.desc)},e.createNonceNotFoundError=function(r){return new e(B.nonceNotFoundError.code,B.nonceNotFoundError.desc+": "+r)},e.createMultipleMatchingTokensInCacheError=function(){return new e(B.multipleMatchingTokens.code,B.multipleMatchingTokens.desc+".")},e.createMultipleMatchingAccountsInCacheError=function(){return new e(B.multipleMatchingAccounts.code,B.multipleMatchingAccounts.desc)},e.createMultipleMatchingAppMetadataInCacheError=function(){return new e(B.multipleMatchingAppMetadata.code,B.multipleMatchingAppMetadata.desc)},e.createTokenRequestCannotBeMadeError=function(){return new e(B.tokenRequestCannotBeMade.code,B.tokenRequestCannotBeMade.desc)},e.createAppendEmptyScopeToSetError=function(r){return new e(B.appendEmptyScopeError.code,B.appendEmptyScopeError.desc+" Given Scope: "+r)},e.createRemoveEmptyScopeFromSetError=function(r){return new e(B.removeEmptyScopeError.code,B.removeEmptyScopeError.desc+" Given Scope: "+r)},e.createAppendScopeSetError=function(r){return new e(B.appendScopeSetError.code,B.appendScopeSetError.desc+" Detail Error: "+r)},e.createEmptyInputScopeSetError=function(){return new e(B.emptyInputScopeSetError.code,""+B.emptyInputScopeSetError.desc)},e.createDeviceCodeCancelledError=function(){return new e(B.DeviceCodePollingCancelled.code,""+B.DeviceCodePollingCancelled.desc)},e.createDeviceCodeExpiredError=function(){return new e(B.DeviceCodeExpired.code,""+B.DeviceCodeExpired.desc)},e.createDeviceCodeUnknownError=function(){return new e(B.DeviceCodeUnknownError.code,""+B.DeviceCodeUnknownError.desc)},e.createNoAccountInSilentRequestError=function(){return new e(B.NoAccountInSilentRequest.code,""+B.NoAccountInSilentRequest.desc)},e.createNullOrUndefinedCacheRecord=function(){return new e(B.invalidCacheRecord.code,B.invalidCacheRecord.desc)},e.createInvalidCacheEnvironmentError=function(){return new e(B.invalidCacheEnvironment.code,B.invalidCacheEnvironment.desc)},e.createNoAccountFoundError=function(){return new e(B.noAccountFound.code,B.noAccountFound.desc)},e.createCachePluginError=function(){return new e(B.CachePluginError.code,""+B.CachePluginError.desc)},e.createNoCryptoObjectError=function(r){return new e(B.noCryptoObj.code,""+B.noCryptoObj.desc+r)},e.createInvalidCacheTypeError=function(){return new e(B.invalidCacheType.code,""+B.invalidCacheType.desc)},e.createUnexpectedAccountTypeError=function(){return new e(B.unexpectedAccountType.code,""+B.unexpectedAccountType.desc)},e.createUnexpectedCredentialTypeError=function(){return new e(B.unexpectedCredentialType.code,""+B.unexpectedCredentialType.desc)},e.createInvalidAssertionError=function(){return new e(B.invalidAssertion.code,""+B.invalidAssertion.desc)},e.createInvalidCredentialError=function(){return new e(B.invalidClientCredential.code,""+B.invalidClientCredential.desc)},e.createRefreshRequiredError=function(){return new e(B.tokenRefreshRequired.code,B.tokenRefreshRequired.desc)},e.createUserTimeoutReachedError=function(){return new e(B.userTimeoutReached.code,B.userTimeoutReached.desc)},e.createTokenClaimsRequiredError=function(){return new e(B.tokenClaimsRequired.code,B.tokenClaimsRequired.desc)},e.createNoAuthCodeInServerResponseError=function(){return new e(B.noAuthorizationCodeFromServer.code,B.noAuthorizationCodeFromServer.desc)},e.createBindingKeyNotRemovedError=function(){return new e(B.bindingKeyNotRemovedError.code,B.bindingKeyNotRemovedError.desc)},e.createLogoutNotSupportedError=function(){return new e(B.logoutNotSupported.code,B.logoutNotSupported.desc)},e.createKeyIdMissingError=function(){return new e(B.keyIdMissing.code,B.keyIdMissing.desc)},e.createNoNetworkConnectivityError=function(){return new e(B.noNetworkConnectivity.code,B.noNetworkConnectivity.desc)},e.createUserCanceledError=function(){return new e(B.userCanceledError.code,B.userCanceledError.desc)},e}(U);/*! @azure/msal-common v13.3.1 2023-10-27 */var O=function(){function t(){}return t.decodeAuthToken=function(e){if(t.isEmpty(e))throw F.createTokenNullOrEmptyError(e);var r=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/,n=r.exec(e);if(!n||n.length<4)throw F.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],l=a[1];s&&l&&(r[o(s)]=o(l))}}),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 v13.3.1 2023-10-27 */var Fe;(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"})(Fe||(Fe={}));var Sd=function(){function t(e,r,n){this.level=Fe.Info;var o=function(){},i=e||t.createDefaultLoggerOptions();this.localCallback=i.loggerCallback||o,this.piiLoggingEnabled=i.piiLoggingEnabled||!1,this.level=typeof i.logLevel=="number"?i.logLevel:Fe.Info,this.correlationId=i.correlationId||w.EMPTY_STRING,this.packageName=r||w.EMPTY_STRING,this.packageVersion=n||w.EMPTY_STRING}return t.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:Fe.Info}},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;O.isEmpty(r.correlationId)?O.isEmpty(this.correlationId)?o="["+n+"]":o="["+n+"] : ["+this.correlationId+"]":o="["+n+"] : ["+r.correlationId+"]";var i=o+" : "+this.packageName+"@"+this.packageVersion+" : "+Fe[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:Fe.Error,containsPii:!1,correlationId:r||w.EMPTY_STRING})},t.prototype.errorPii=function(e,r){this.logMessage(e,{logLevel:Fe.Error,containsPii:!0,correlationId:r||w.EMPTY_STRING})},t.prototype.warning=function(e,r){this.logMessage(e,{logLevel:Fe.Warning,containsPii:!1,correlationId:r||w.EMPTY_STRING})},t.prototype.warningPii=function(e,r){this.logMessage(e,{logLevel:Fe.Warning,containsPii:!0,correlationId:r||w.EMPTY_STRING})},t.prototype.info=function(e,r){this.logMessage(e,{logLevel:Fe.Info,containsPii:!1,correlationId:r||w.EMPTY_STRING})},t.prototype.infoPii=function(e,r){this.logMessage(e,{logLevel:Fe.Info,containsPii:!0,correlationId:r||w.EMPTY_STRING})},t.prototype.verbose=function(e,r){this.logMessage(e,{logLevel:Fe.Verbose,containsPii:!1,correlationId:r||w.EMPTY_STRING})},t.prototype.verbosePii=function(e,r){this.logMessage(e,{logLevel:Fe.Verbose,containsPii:!0,correlationId:r||w.EMPTY_STRING})},t.prototype.trace=function(e,r){this.logMessage(e,{logLevel:Fe.Trace,containsPii:!1,correlationId:r||w.EMPTY_STRING})},t.prototype.tracePii=function(e,r){this.logMessage(e,{logLevel:Fe.Trace,containsPii:!0,correlationId:r||w.EMPTY_STRING})},t.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},t}();/*! @azure/msal-common v13.3.1 2023-10-27 */var xm="@azure/msal-common",Ed="13.3.1";/*! @azure/msal-common v13.3.1 2023-10-27 */var Pi;(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"})(Pi||(Pi={}));/*! @azure/msal-common v13.3.1 2023-10-27 */var W={redirectUriNotSet:{code:"redirect_uri_empty",desc:"A redirect URI is required for all calls, and none has been set."},postLogoutUriNotSet:{code:"post_logout_uri_empty",desc:"A post logout redirect has not been set."},claimsRequestParsingError:{code:"claims_request_parsing_error",desc:"Could not parse the given claims request object."},authorityUriInsecure:{code:"authority_uri_insecure",desc:"Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options"},urlParseError:{code:"url_parse_error",desc:"URL could not be parsed into appropriate segments."},urlEmptyError:{code:"empty_url_error",desc:"URL was empty or null."},emptyScopesError:{code:"empty_input_scopes_error",desc:"Scopes cannot be passed as null, undefined or empty array because they are required to obtain an access token."},nonArrayScopesError:{code:"nonarray_input_scopes_error",desc:"Scopes cannot be passed as non-array."},clientIdSingleScopeError:{code:"clientid_input_scopes_error",desc:"Client ID can only be provided as a single scope."},invalidPrompt:{code:"invalid_prompt_value",desc:"Supported prompt values are 'login', 'select_account', 'consent', 'create', 'none' and 'no_session'. Please see here for valid configuration options: https://azuread.github.io/microsoft-authentication-library-for-js/ref/modules/_azure_msal_common.html#commonauthorizationurlrequest"},invalidClaimsRequest:{code:"invalid_claims",desc:"Given claims parameter must be a stringified JSON object."},tokenRequestEmptyError:{code:"token_request_empty",desc:"Token request was empty and not found in cache."},logoutRequestEmptyError:{code:"logout_request_empty",desc:"The logout request was null or undefined."},invalidCodeChallengeMethod:{code:"invalid_code_challenge_method",desc:'code_challenge_method passed is invalid. Valid values are "plain" and "S256".'},invalidCodeChallengeParams:{code:"pkce_params_missing",desc:"Both params: code_challenge and code_challenge_method are to be passed if to be sent in the request"},invalidCloudDiscoveryMetadata:{code:"invalid_cloud_discovery_metadata",desc:"Invalid cloudDiscoveryMetadata provided. Must be a stringified JSON object containing tenant_discovery_endpoint and metadata fields"},invalidAuthorityMetadata:{code:"invalid_authority_metadata",desc:"Invalid authorityMetadata provided. Must by a stringified JSON object containing authorization_endpoint, token_endpoint, issuer fields."},untrustedAuthority:{code:"untrusted_authority",desc:"The provided authority is not a trusted authority. Please include this authority in the knownAuthorities config parameter."},invalidAzureCloudInstance:{code:"invalid_azure_cloud_instance",desc:"Invalid AzureCloudInstance provided. Please refer MSAL JS docs: aks.ms/msaljs/azure_cloud_instance for valid values"},missingSshJwk:{code:"missing_ssh_jwk",desc:"Missing sshJwk in SSH certificate request. A stringified JSON Web Key is required when using the SSH authentication scheme."},missingSshKid:{code:"missing_ssh_kid",desc:"Missing sshKid in SSH certificate request. A string that uniquely identifies the public SSH key is required when using the SSH authentication scheme."},missingNonceAuthenticationHeader:{code:"missing_nonce_authentication_header",desc:"Unable to find an authentication header containing server nonce. Either the Authentication-Info or WWW-Authenticate headers must be present in order to obtain a server nonce."},invalidAuthenticationHeader:{code:"invalid_authentication_header",desc:"Invalid authentication header provided"},authorityMismatch:{code:"authority_mismatch",desc:"Authority mismatch error. Authority provided in login request or PublicClientApplication config does not match the environment of the provided account. Please use a matching account or make an interactive request to login to this authority."}},ue=function(t){vt(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(W.redirectUriNotSet.code,W.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(W.postLogoutUriNotSet.code,W.postLogoutUriNotSet.desc)},e.createClaimsRequestParsingError=function(r){return new e(W.claimsRequestParsingError.code,W.claimsRequestParsingError.desc+" Given value: "+r)},e.createInsecureAuthorityUriError=function(r){return new e(W.authorityUriInsecure.code,W.authorityUriInsecure.desc+" Given URI: "+r)},e.createUrlParseError=function(r){return new e(W.urlParseError.code,W.urlParseError.desc+" Given Error: "+r)},e.createUrlEmptyError=function(){return new e(W.urlEmptyError.code,W.urlEmptyError.desc)},e.createEmptyScopesArrayError=function(){return new e(W.emptyScopesError.code,""+W.emptyScopesError.desc)},e.createClientIdSingleScopeError=function(r){return new e(W.clientIdSingleScopeError.code,W.clientIdSingleScopeError.desc+" Given Scopes: "+r)},e.createInvalidPromptError=function(r){return new e(W.invalidPrompt.code,W.invalidPrompt.desc+" Given value: "+r)},e.createInvalidClaimsRequestError=function(){return new e(W.invalidClaimsRequest.code,W.invalidClaimsRequest.desc)},e.createEmptyLogoutRequestError=function(){return new e(W.logoutRequestEmptyError.code,W.logoutRequestEmptyError.desc)},e.createEmptyTokenRequestError=function(){return new e(W.tokenRequestEmptyError.code,W.tokenRequestEmptyError.desc)},e.createInvalidCodeChallengeMethodError=function(){return new e(W.invalidCodeChallengeMethod.code,W.invalidCodeChallengeMethod.desc)},e.createInvalidCodeChallengeParamsError=function(){return new e(W.invalidCodeChallengeParams.code,W.invalidCodeChallengeParams.desc)},e.createInvalidCloudDiscoveryMetadataError=function(){return new e(W.invalidCloudDiscoveryMetadata.code,W.invalidCloudDiscoveryMetadata.desc)},e.createInvalidAuthorityMetadataError=function(){return new e(W.invalidAuthorityMetadata.code,W.invalidAuthorityMetadata.desc)},e.createUntrustedAuthorityError=function(){return new e(W.untrustedAuthority.code,W.untrustedAuthority.desc)},e.createInvalidAzureCloudInstanceError=function(){return new e(W.invalidAzureCloudInstance.code,W.invalidAzureCloudInstance.desc)},e.createMissingSshJwkError=function(){return new e(W.missingSshJwk.code,W.missingSshJwk.desc)},e.createMissingSshKidError=function(){return new e(W.missingSshKid.code,W.missingSshKid.desc)},e.createMissingNonceAuthenticationHeadersError=function(){return new e(W.missingNonceAuthenticationHeader.code,W.missingNonceAuthenticationHeader.desc)},e.createInvalidAuthenticationHeaderError=function(r,n){return new e(W.invalidAuthenticationHeader.code,W.invalidAuthenticationHeader.desc+". Invalid header: "+r+". Details: "+n)},e.createAuthorityMismatchError=function(){return new e(W.authorityMismatch.code,W.authorityMismatch.desc)},e}(F);/*! @azure/msal-common v13.3.1 2023-10-27 */var $e=function(){function t(e){var r=this,n=e?O.trimArrayEntries(Js(e)):[],o=n?O.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||w.EMPTY_STRING,n=r.split(" ");return new t(n)},t.createSearchScopes=function(e){var r=new t(e);return r.containsOnlyOIDCScopes()?r.removeScope(w.OFFLINE_ACCESS_SCOPE):r.removeOIDCScopes(),r},t.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw ue.createEmptyScopesArrayError()},t.prototype.containsScope=function(e){var r=this.printScopesLowerCase().split(" "),n=new t(r);return O.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 Sh.forEach(function(n){e.containsScope(n)&&(r+=1)}),this.scopes.size===r},t.prototype.appendScope=function(e){O.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 F.createAppendScopeSetError(n)}},t.prototype.removeScope=function(e){if(O.isEmpty(e))throw F.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},t.prototype.removeOIDCScopes=function(){var e=this;Sh.forEach(function(r){e.scopes.delete(r)})},t.prototype.unionScopeSets=function(e){if(!e)throw F.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 F.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 w.EMPTY_STRING},t.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},t}();/*! @azure/msal-common v13.3.1 2023-10-27 */function vs(t,e){if(O.isEmpty(t))throw F.createClientInfoEmptyError();try{var r=e.base64Decode(t);return JSON.parse(r)}catch(n){throw F.createClientInfoDecodingError(n.message)}}function $n(t){if(O.isEmpty(t))throw F.createClientInfoDecodingError("Home account ID was empty.");var e=t.split(xe.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?w.EMPTY_STRING:e[1]}}/*! @azure/msal-common v13.3.1 2023-10-27 */var et;(function(t){t[t.Default=0]="Default",t[t.Adfs=1]="Adfs",t[t.Dsts=2]="Dsts",t[t.Ciam=3]="Ciam"})(et||(et={}));/*! @azure/msal-common v13.3.1 2023-10-27 */var Ue=function(){function t(){}return t.prototype.generateAccountId=function(){var e=[this.homeAccountId,this.environment];return e.join(xe.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 ar.ADFS_ACCOUNT_TYPE:return ur.ADFS;case ar.MSAV1_ACCOUNT_TYPE:return ur.MSA;case ar.MSSTS_ACCOUNT_TYPE:return ur.MSSTS;case ar.GENERIC_ACCOUNT_TYPE:return ur.GENERIC;default:throw F.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||w.EMPTY_STRING,e.tenantId||w.EMPTY_STRING];return r.join(xe.CACHE_KEY_SEPARATOR).toLowerCase()},t.createAccount=function(e,r,n,o,i,a,s,l){var c,u,d,f,p,h,m=new t;m.authorityType=ar.MSSTS_ACCOUNT_TYPE,m.clientInfo=e,m.homeAccountId=r,m.nativeAccountId=l;var C=s||o&&o.getPreferredCache();if(!C)throw F.createInvalidCacheEnvironmentError();if(m.environment=C,m.realm=((c=n==null?void 0:n.claims)===null||c===void 0?void 0:c.tid)||w.EMPTY_STRING,n){m.idTokenClaims=n.claims,m.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)||w.EMPTY_STRING;var v=(f=n==null?void 0:n.claims)===null||f===void 0?void 0:f.preferred_username,g=!((p=n==null?void 0:n.claims)===null||p===void 0)&&p.emails?n.claims.emails[0]:null;m.username=v||g||w.EMPTY_STRING,m.name=(h=n==null?void 0:n.claims)===null||h===void 0?void 0:h.name}return m.cloudGraphHostName=i,m.msGraphHost=a,m},t.createGenericAccount=function(e,r,n,o,i,a){var s,l,c,u,d=new t;d.authorityType=n&&n.authorityType===et.Adfs?ar.ADFS_ACCOUNT_TYPE:ar.GENERIC_ACCOUNT_TYPE,d.homeAccountId=e,d.realm=w.EMPTY_STRING;var f=a||n&&n.getPreferredCache();if(!f)throw F.createInvalidCacheEnvironmentError();return r&&(d.localAccountId=((s=r==null?void 0:r.claims)===null||s===void 0?void 0:s.oid)||((l=r==null?void 0:r.claims)===null||l===void 0?void 0:l.sub)||w.EMPTY_STRING,d.username=((c=r==null?void 0:r.claims)===null||c===void 0?void 0:c.upn)||w.EMPTY_STRING,d.name=((u=r==null?void 0:r.claims)===null||u===void 0?void 0:u.name)||w.EMPTY_STRING,d.idTokenClaims=r==null?void 0:r.claims),d.environment=f,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:w.EMPTY_STRING;if(r===et.Adfs||r===et.Dsts)return s;if(e)try{var l=vs(e,o);if(!O.isEmpty(l.uid)&&!O.isEmpty(l.utid))return""+l.uid+xe.CLIENT_INFO_SEPARATOR+l.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 v13.3.1 2023-10-27 */var or=function(){function t(e,r){if(O.isEmpty(e))throw F.createTokenNullOrEmptyError(e);this.rawToken=e,this.claims=t.extractTokenClaims(e,r)}return t.extractTokenClaims=function(e,r){var n=O.decodeAuthToken(e);try{var o=n.JWSPayload,i=r.base64Decode(o);return JSON.parse(i)}catch(a){throw F.createTokenParsingError(a)}},t.checkMaxAge=function(e,r){var n=3e5;if(r===0||Date.now()-n>e+r)throw F.createMaxAgeTranspiredError()},t}();/*! @azure/msal-common v13.3.1 2023-10-27 */var st=function(){function t(e,r,n){this.clientId=e,this.cryptoImpl=r,this.commonLogger=n.clone(xm,Ed)}return t.prototype.getAllAccounts=function(){var e=this,r=this.getAccountKeys();if(r.length<1)return[];var n=r.reduce(function(i,a){var s=e.getAccount(a);return s&&i.push(s),i},[]);if(n.length<1)return[];var o=n.map(function(i){return e.getAccountInfoFromEntity(i)});return o},t.prototype.getAccountInfoFilteredBy=function(e){var r=this.getAccountsFilteredBy(e);return r.length>0?this.getAccountInfoFromEntity(r[0]):null},t.prototype.getAccountInfoFromEntity=function(e){var r=e.getAccountInfo(),n=this.getIdToken(r);return n&&(r.idToken=n.secret,r.idTokenClaims=new or(n.secret,this.cryptoImpl).claims),r},t.prototype.saveCacheRecord=function(e){return V(this,void 0,void 0,function(){return Q(this,function(r){switch(r.label){case 0:if(!e)throw F.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 V(this,void 0,void 0,function(){var r,n,o,i,a=this;return Q(this,function(s){switch(s.label){case 0:return r={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},n=this.getTokenKeys(),o=$e.fromString(e.target),i=[],n.accessToken.forEach(function(l){if(a.accessTokenKeyMatchesFilter(l,r,!1)){var c=a.getAccessTokenCredential(l);if(c&&a.credentialMatchesFilter(c,r)){var u=$e.fromString(c.target);u.intersectingScopeSets(o)&&i.push(a.removeAccessToken(l))}}}),[4,Promise.all(i)];case 1:return s.sent(),this.setAccessTokenCredential(e),[2]}})})},t.prototype.getAccountsFilteredBy=function(e){var r=this,n=this.getAccountKeys(),o=[];return n.forEach(function(i){if(r.isAccountKey(i,e.homeAccountId,e.realm)){var a=r.getAccount(i);a&&(e.homeAccountId&&!r.matchHomeAccountId(a,e.homeAccountId)||e.localAccountId&&!r.matchLocalAccountId(a,e.localAccountId)||e.username&&!r.matchUsername(a,e.username)||e.environment&&!r.matchEnvironment(a,e.environment)||e.realm&&!r.matchRealm(a,e.realm)||e.nativeAccountId&&!r.matchNativeAccountId(a,e.nativeAccountId)||o.push(a))}}),o},t.prototype.isAccountKey=function(e,r,n){return!(e.split(xe.CACHE_KEY_SEPARATOR).length<3||r&&!e.toLowerCase().includes(r.toLowerCase())||n&&!e.toLowerCase().includes(n.toLowerCase()))},t.prototype.isCredentialKey=function(e){if(e.split(xe.CACHE_KEY_SEPARATOR).length<6)return!1;var r=e.toLowerCase();if(r.indexOf(j.ID_TOKEN.toLowerCase())===-1&&r.indexOf(j.ACCESS_TOKEN.toLowerCase())===-1&&r.indexOf(j.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&r.indexOf(j.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(r.indexOf(j.REFRESH_TOKEN.toLowerCase())>-1){var n=""+j.REFRESH_TOKEN+xe.CACHE_KEY_SEPARATOR+this.clientId+xe.CACHE_KEY_SEPARATOR,o=""+j.REFRESH_TOKEN+xe.CACHE_KEY_SEPARATOR+ni+xe.CACHE_KEY_SEPARATOR;if(r.indexOf(n.toLowerCase())===-1&&r.indexOf(o.toLowerCase())===-1)return!1}else if(r.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0},t.prototype.credentialMatchesFilter=function(e,r){return!(r.clientId&&!this.matchClientId(e,r.clientId)||r.userAssertionHash&&!this.matchUserAssertionHash(e,r.userAssertionHash)||typeof r.homeAccountId=="string"&&!this.matchHomeAccountId(e,r.homeAccountId)||r.environment&&!this.matchEnvironment(e,r.environment)||r.realm&&!this.matchRealm(e,r.realm)||r.credentialType&&!this.matchCredentialType(e,r.credentialType)||r.familyId&&!this.matchFamilyId(e,r.familyId)||r.target&&!this.matchTarget(e,r.target)||(r.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==r.requestedClaimsHash||e.credentialType===j.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(r.tokenType&&!this.matchTokenType(e,r.tokenType)||r.tokenType===oe.SSH&&r.keyId&&!this.matchKeyId(e,r.keyId)))},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 V(this,void 0,void 0,function(){var e,r,n=this;return Q(this,function(o){switch(o.label){case 0:return e=this.getAccountKeys(),r=[],e.forEach(function(i){r.push(n.removeAccount(i))}),[4,Promise.all(r)];case 1:return o.sent(),[2]}})})},t.prototype.removeAccount=function(e){return V(this,void 0,void 0,function(){var r;return Q(this,function(n){switch(n.label){case 0:if(r=this.getAccount(e),!r)throw F.createNoAccountFoundError();return[4,this.removeAccountContext(r)];case 1:return n.sent(),this.removeItem(e),[2]}})})},t.prototype.removeAccountContext=function(e){return V(this,void 0,void 0,function(){var r,n,o,i=this;return Q(this,function(a){switch(a.label){case 0:return r=this.getTokenKeys(),n=e.generateAccountId(),o=[],r.idToken.forEach(function(s){s.indexOf(n)===0&&i.removeIdToken(s)}),r.accessToken.forEach(function(s){s.indexOf(n)===0&&o.push(i.removeAccessToken(s))}),r.refreshToken.forEach(function(s){s.indexOf(n)===0&&i.removeRefreshToken(s)}),[4,Promise.all(o)];case 1:return a.sent(),[2]}})})},t.prototype.removeAccessToken=function(e){return V(this,void 0,void 0,function(){var r,n,o;return Q(this,function(i){switch(i.label){case 0:if(r=this.getAccessTokenCredential(e),!r)return[2];if(r.credentialType.toLowerCase()!==j.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(r.tokenType!==oe.POP)return[3,4];if(n=r,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(),F.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(e)]}})})},t.prototype.removeAppMetadata=function(){var e=this,r=this.getKeys();return r.forEach(function(n){e.isAppMetadata(n)&&e.removeItem(n)}),!0},t.prototype.readCacheRecord=function(e,r,n){var o=this.getTokenKeys(),i=this.readAccountFromCache(e),a=this.getIdToken(e,o),s=this.getAccessToken(e,r,o),l=this.getRefreshToken(e,!1,o),c=this.readAppMetadataFromCache(n);return i&&a&&(i.idTokenClaims=new or(a.secret,this.cryptoImpl).claims),{account:i,idToken:a,accessToken:s,refreshToken:l,appMetadata:c}},t.prototype.readAccountFromCache=function(e){var r=Ue.generateAccountCacheKey(e);return this.getAccount(r)},t.prototype.getIdToken=function(e,r){var n=this;this.commonLogger.trace("CacheManager - getIdToken called");var o={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:j.ID_TOKEN,clientId:this.clientId,realm:e.tenantId},i=this.getIdTokensByFilter(o,r),a=i.length;return a<1?(this.commonLogger.info("CacheManager:getIdToken - No token found"),null):a>1?(this.commonLogger.info("CacheManager:getIdToken - Multiple id tokens found, clearing them"),i.forEach(function(s){n.removeIdToken(s.generateCredentialKey())}),null):(this.commonLogger.info("CacheManager:getIdToken - Returning id token"),i[0])},t.prototype.getIdTokensByFilter=function(e,r){var n=this,o=r&&r.idToken||this.getTokenKeys().idToken,i=[];return o.forEach(function(a){if(n.idTokenKeyMatchesFilter(a,ne({clientId:n.clientId},e))){var s=n.getIdTokenCredential(a);s&&n.credentialMatchesFilter(s,e)&&i.push(s)}}),i},t.prototype.idTokenKeyMatchesFilter=function(e,r){var n=e.toLowerCase();return!(r.clientId&&n.indexOf(r.clientId.toLowerCase())===-1||r.homeAccountId&&n.indexOf(r.homeAccountId.toLowerCase())===-1)},t.prototype.removeIdToken=function(e){this.removeItem(e)},t.prototype.removeRefreshToken=function(e){this.removeItem(e)},t.prototype.getAccessToken=function(e,r,n){var o=this;this.commonLogger.trace("CacheManager - getAccessToken called");var i=$e.createSearchScopes(r.scopes),a=r.authenticationScheme||oe.BEARER,s=a&&a.toLowerCase()!==oe.BEARER.toLowerCase()?j.ACCESS_TOKEN_WITH_AUTH_SCHEME:j.ACCESS_TOKEN,l={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:s,clientId:this.clientId,realm:e.tenantId,target:i,tokenType:a,keyId:r.sshKid,requestedClaimsHash:r.requestedClaimsHash},c=n&&n.accessToken||this.getTokenKeys().accessToken,u=[];c.forEach(function(f){if(o.accessTokenKeyMatchesFilter(f,l,!0)){var p=o.getAccessTokenCredential(f);p&&o.credentialMatchesFilter(p,l)&&u.push(p)}});var d=u.length;return d<1?(this.commonLogger.info("CacheManager:getAccessToken - No token found"),null):d>1?(this.commonLogger.info("CacheManager:getAccessToken - Multiple access tokens found, clearing them"),u.forEach(function(f){o.removeAccessToken(f.generateCredentialKey())}),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),u[0])},t.prototype.accessTokenKeyMatchesFilter=function(e,r,n){var o=e.toLowerCase();if(r.clientId&&o.indexOf(r.clientId.toLowerCase())===-1||r.homeAccountId&&o.indexOf(r.homeAccountId.toLowerCase())===-1||r.realm&&o.indexOf(r.realm.toLowerCase())===-1||r.requestedClaimsHash&&o.indexOf(r.requestedClaimsHash.toLowerCase())===-1)return!1;if(r.target)for(var i=r.target.asArray(),a=0;a<i.length;a++){if(n&&!o.includes(i[a].toLowerCase()))return!1;if(!n&&o.includes(i[a].toLowerCase()))return!0}return!0},t.prototype.getAccessTokensByFilter=function(e){var r=this,n=this.getTokenKeys(),o=[];return n.accessToken.forEach(function(i){if(r.accessTokenKeyMatchesFilter(i,e,!0)){var a=r.getAccessTokenCredential(i);a&&r.credentialMatchesFilter(a,e)&&o.push(a)}}),o},t.prototype.getRefreshToken=function(e,r,n){var o=this;this.commonLogger.trace("CacheManager - getRefreshToken called");var i=r?ni:void 0,a={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:j.REFRESH_TOKEN,clientId:this.clientId,familyId:i},s=n&&n.refreshToken||this.getTokenKeys().refreshToken,l=[];s.forEach(function(u){if(o.refreshTokenKeyMatchesFilter(u,a)){var d=o.getRefreshTokenCredential(u);d&&o.credentialMatchesFilter(d,a)&&l.push(d)}});var c=l.length;return c<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),l[0])},t.prototype.refreshTokenKeyMatchesFilter=function(e,r){var n=e.toLowerCase();return!(r.familyId&&n.indexOf(r.familyId.toLowerCase())===-1||!r.familyId&&r.clientId&&n.indexOf(r.clientId.toLowerCase())===-1||r.homeAccountId&&n.indexOf(r.homeAccountId.toLowerCase())===-1)},t.prototype.readAppMetadataFromCache=function(e){var r={environment:e,clientId:this.clientId},n=this.getAppMetadataFilteredBy(r),o=Object.keys(n).map(function(a){return n[a]}),i=o.length;if(i<1)return null;if(i>1)throw F.createMultipleMatchingAppMetadataInCacheError();return o[0]},t.prototype.isAppMetadataFOCI=function(e){var r=this.readAppMetadataFromCache(e);return!!(r&&r.familyId===ni)},t.prototype.matchHomeAccountId=function(e,r){return typeof e.homeAccountId=="string"&&r===e.homeAccountId},t.prototype.matchLocalAccountId=function(e,r){return typeof e.localAccountId=="string"&&r===e.localAccountId},t.prototype.matchUsername=function(e,r){return typeof e.username=="string"&&r.toLowerCase()===e.username.toLowerCase()},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!==j.ACCESS_TOKEN&&e.credentialType!==j.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(n||!e.target)return!1;var o=$e.fromString(e.target);return o.containsScopeSet(r)},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(iu)!==-1},t.prototype.isAuthorityMetadata=function(e){return e.indexOf(oi.CACHE_KEY)!==-1},t.prototype.generateAuthorityMetadataCacheKey=function(e){return oi.CACHE_KEY+"-"+this.clientId+"-"+e},t.toObject=function(e,r){for(var n in r)e[n]=r[n];return e},t}(),bE=function(t){vt(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 U.createUnexpectedError(r)},e.prototype.getAccount=function(){var r="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw U.createUnexpectedError(r)},e.prototype.setIdTokenCredential=function(){var r="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw U.createUnexpectedError(r)},e.prototype.getIdTokenCredential=function(){var r="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw U.createUnexpectedError(r)},e.prototype.setAccessTokenCredential=function(){var r="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw U.createUnexpectedError(r)},e.prototype.getAccessTokenCredential=function(){var r="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw U.createUnexpectedError(r)},e.prototype.setRefreshTokenCredential=function(){var r="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw U.createUnexpectedError(r)},e.prototype.getRefreshTokenCredential=function(){var r="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw U.createUnexpectedError(r)},e.prototype.setAppMetadata=function(){var r="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw U.createUnexpectedError(r)},e.prototype.getAppMetadata=function(){var r="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw U.createUnexpectedError(r)},e.prototype.setServerTelemetry=function(){var r="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw U.createUnexpectedError(r)},e.prototype.getServerTelemetry=function(){var r="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw U.createUnexpectedError(r)},e.prototype.setAuthorityMetadata=function(){var r="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw U.createUnexpectedError(r)},e.prototype.getAuthorityMetadata=function(){var r="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw U.createUnexpectedError(r)},e.prototype.getAuthorityMetadataKeys=function(){var r="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw U.createUnexpectedError(r)},e.prototype.setThrottlingCache=function(){var r="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw U.createUnexpectedError(r)},e.prototype.getThrottlingCache=function(){var r="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw U.createUnexpectedError(r)},e.prototype.removeItem=function(){var r="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw U.createUnexpectedError(r)},e.prototype.containsKey=function(){var r="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw U.createUnexpectedError(r)},e.prototype.getKeys=function(){var r="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw U.createUnexpectedError(r)},e.prototype.getAccountKeys=function(){var r="Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface.";throw U.createUnexpectedError(r)},e.prototype.getTokenKeys=function(){var r="Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface.";throw U.createUnexpectedError(r)},e.prototype.clear=function(){return V(this,void 0,void 0,function(){var r;return Q(this,function(n){throw r="Storage interface - clear() has not been implemented for the cacheStorage interface.",U.createUnexpectedError(r)})})},e.prototype.updateCredentialCacheKey=function(){var r="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw U.createUnexpectedError(r)},e}(st);/*! @azure/msal-common v13.3.1 2023-10-27 */var SE=300,Mm={tokenRenewalOffsetSeconds:SE,preventCorsPreflight:!1},EE={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:Fe.Info,correlationId:w.EMPTY_STRING},TE={claimsBasedCachingEnabled:!0},IE={sendGetRequestAsync:function(){return V(this,void 0,void 0,function(){var t;return Q(this,function(e){throw t="Network interface - sendGetRequestAsync() has not been implemented",U.createUnexpectedError(t)})})},sendPostRequestAsync:function(){return V(this,void 0,void 0,function(){var t;return Q(this,function(e){throw t="Network interface - sendPostRequestAsync() has not been implemented",U.createUnexpectedError(t)})})}},AE={sku:w.SKU,version:Ed,cpu:w.EMPTY_STRING,os:w.EMPTY_STRING},PE={clientSecret:w.EMPTY_STRING,clientAssertion:void 0},NE={azureCloudInstance:Pi.None,tenant:""+w.DEFAULT_COMMON_TENANT},RE={application:{appName:"",appVersion:""}};function BE(t){var e=t.authOptions,r=t.systemOptions,n=t.loggerOptions,o=t.cacheOptions,i=t.storageInterface,a=t.networkInterface,s=t.cryptoInterface,l=t.clientCredentials,c=t.libraryInfo,u=t.telemetry,d=t.serverTelemetryManager,f=t.persistencePlugin,p=t.serializableCache,h=ne(ne({},EE),n);return{authOptions:xE(e),systemOptions:ne(ne({},Mm),r),loggerOptions:h,cacheOptions:ne(ne({},TE),o),storageInterface:i||new bE(e.clientId,gs,new Sd(h)),networkInterface:a||IE,cryptoInterface:s||gs,clientCredentials:l||PE,libraryInfo:ne(ne({},AE),c),telemetry:ne(ne({},RE),u),serverTelemetryManager:d||null,persistencePlugin:f||null,serializableCache:p||null}}function xE(t){return ne({clientCapabilities:[],azureCloudOptions:NE,skipAuthorityMetadataCache:!1},t)}/*! @azure/msal-common v13.3.1 2023-10-27 */var In=function(t){vt(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}(U);/*! @azure/msal-common v13.3.1 2023-10-27 */var ms=function(){function t(){}return t.generateThrottlingStorageKey=function(e){return ii.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);return}throw new In(((n=i.errorCodes)===null||n===void 0?void 0:n.join(" "))||w.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[bt.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(bt.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||ii.DEFAULT_THROTTLE_TIME_SECONDS),n+ii.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);e.removeItem(a)},t}();/*! @azure/msal-common v13.3.1 2023-10-27 */var ME=function(){function t(e,r){this.networkClient=e,this.cacheManager=r}return t.prototype.sendPostRequest=function(e,r,n){return V(this,void 0,void 0,function(){var o,i;return Q(this,function(a){switch(a.label){case 0:ms.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 U?i:F.createNetworkError(r,i);case 4:return ms.postProcess(this.cacheManager,e,o),[2,o]}})})},t}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Ct;(function(t){t.HOME_ACCOUNT_ID="home_account_id",t.UPN="UPN"})(Ct||(Ct={}));/*! @azure/msal-common v13.3.1 2023-10-27 */var sn=function(){function t(){}return t.validateRedirectUri=function(e){if(O.isEmpty(e))throw ue.createRedirectUriEmptyError()},t.validatePrompt=function(e){var r=[];for(var n in Xe)r.push(Xe[n]);if(r.indexOf(e)<0)throw ue.createInvalidPromptError(e)},t.validateClaims=function(e){try{JSON.parse(e)}catch{throw ue.createInvalidClaimsRequestError()}},t.validateCodeChallengeParams=function(e,r){if(O.isEmpty(e)||O.isEmpty(r))throw ue.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(r)},t.validateCodeChallengeMethod=function(e){if([Eh.PLAIN,Eh.S256].indexOf(e)<0)throw ue.createInvalidCodeChallengeMethodError()},t.sanitizeEQParams=function(e,r){return e?(r.forEach(function(n,o){e[o]&&delete e[o]}),Object.fromEntries(Object.entries(e).filter(function(n){var o=n[1];return o!==""}))):{}},t}();/*! @azure/msal-common v13.3.1 2023-10-27 */var si=function(){function t(){this.parameters=new Map}return t.prototype.addResponseTypeCode=function(){this.parameters.set(Y.RESPONSE_TYPE,encodeURIComponent(w.CODE_RESPONSE_TYPE))},t.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(Y.RESPONSE_TYPE,encodeURIComponent(w.TOKEN_RESPONSE_TYPE+" "+w.ID_TOKEN_RESPONSE_TYPE))},t.prototype.addResponseMode=function(e){this.parameters.set(Y.RESPONSE_MODE,encodeURIComponent(e||fs.QUERY))},t.prototype.addNativeBroker=function(){this.parameters.set(Y.NATIVE_BROKER,encodeURIComponent("1"))},t.prototype.addScopes=function(e,r){r===void 0&&(r=!0);var n=r?Js(e||[],Ki):e||[],o=new $e(n);this.parameters.set(Y.SCOPE,encodeURIComponent(o.printScopes()))},t.prototype.addClientId=function(e){this.parameters.set(Y.CLIENT_ID,encodeURIComponent(e))},t.prototype.addRedirectUri=function(e){sn.validateRedirectUri(e),this.parameters.set(Y.REDIRECT_URI,encodeURIComponent(e))},t.prototype.addPostLogoutRedirectUri=function(e){sn.validateRedirectUri(e),this.parameters.set(Y.POST_LOGOUT_URI,encodeURIComponent(e))},t.prototype.addIdTokenHint=function(e){this.parameters.set(Y.ID_TOKEN_HINT,encodeURIComponent(e))},t.prototype.addDomainHint=function(e){this.parameters.set(ri.DOMAIN_HINT,encodeURIComponent(e))},t.prototype.addLoginHint=function(e){this.parameters.set(ri.LOGIN_HINT,encodeURIComponent(e))},t.prototype.addCcsUpn=function(e){this.parameters.set(bt.CCS_HEADER,encodeURIComponent("UPN:"+e))},t.prototype.addCcsOid=function(e){this.parameters.set(bt.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},t.prototype.addSid=function(e){this.parameters.set(ri.SID,encodeURIComponent(e))},t.prototype.addClaims=function(e,r){var n=this.addClientCapabilitiesToClaims(e,r);sn.validateClaims(n),this.parameters.set(Y.CLAIMS,encodeURIComponent(n))},t.prototype.addCorrelationId=function(e){this.parameters.set(Y.CLIENT_REQUEST_ID,encodeURIComponent(e))},t.prototype.addLibraryInfo=function(e){this.parameters.set(Y.X_CLIENT_SKU,e.sku),this.parameters.set(Y.X_CLIENT_VER,e.version),e.os&&this.parameters.set(Y.X_CLIENT_OS,e.os),e.cpu&&this.parameters.set(Y.X_CLIENT_CPU,e.cpu)},t.prototype.addApplicationTelemetry=function(e){e!=null&&e.appName&&this.parameters.set(Y.X_APP_NAME,e.appName),e!=null&&e.appVersion&&this.parameters.set(Y.X_APP_VER,e.appVersion)},t.prototype.addPrompt=function(e){sn.validatePrompt(e),this.parameters.set(""+Y.PROMPT,encodeURIComponent(e))},t.prototype.addState=function(e){O.isEmpty(e)||this.parameters.set(Y.STATE,encodeURIComponent(e))},t.prototype.addNonce=function(e){this.parameters.set(Y.NONCE,encodeURIComponent(e))},t.prototype.addCodeChallengeParams=function(e,r){if(sn.validateCodeChallengeParams(e,r),e&&r)this.parameters.set(Y.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(Y.CODE_CHALLENGE_METHOD,encodeURIComponent(r));else throw ue.createInvalidCodeChallengeParamsError()},t.prototype.addAuthorizationCode=function(e){this.parameters.set(Y.CODE,encodeURIComponent(e))},t.prototype.addDeviceCode=function(e){this.parameters.set(Y.DEVICE_CODE,encodeURIComponent(e))},t.prototype.addRefreshToken=function(e){this.parameters.set(Y.REFRESH_TOKEN,encodeURIComponent(e))},t.prototype.addCodeVerifier=function(e){this.parameters.set(Y.CODE_VERIFIER,encodeURIComponent(e))},t.prototype.addClientSecret=function(e){this.parameters.set(Y.CLIENT_SECRET,encodeURIComponent(e))},t.prototype.addClientAssertion=function(e){O.isEmpty(e)||this.parameters.set(Y.CLIENT_ASSERTION,encodeURIComponent(e))},t.prototype.addClientAssertionType=function(e){O.isEmpty(e)||this.parameters.set(Y.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},t.prototype.addOboAssertion=function(e){this.parameters.set(Y.OBO_ASSERTION,encodeURIComponent(e))},t.prototype.addRequestTokenUse=function(e){this.parameters.set(Y.REQUESTED_TOKEN_USE,encodeURIComponent(e))},t.prototype.addGrantType=function(e){this.parameters.set(Y.GRANT_TYPE,encodeURIComponent(e))},t.prototype.addClientInfo=function(){this.parameters.set(_E,"1")},t.prototype.addExtraQueryParameters=function(e){var r=this,n=sn.sanitizeEQParams(e,this.parameters);Object.keys(n).forEach(function(o){r.parameters.set(o,e[o])})},t.prototype.addClientCapabilitiesToClaims=function(e,r){var n;if(!e)n={};else try{n=JSON.parse(e)}catch{throw ue.createInvalidClaimsRequestError()}return r&&r.length>0&&(n.hasOwnProperty(Qn.ACCESS_TOKEN)||(n[Qn.ACCESS_TOKEN]={}),n[Qn.ACCESS_TOKEN][Qn.XMS_CC]={values:r}),JSON.stringify(n)},t.prototype.addUsername=function(e){this.parameters.set(ps.username,encodeURIComponent(e))},t.prototype.addPassword=function(e){this.parameters.set(ps.password,encodeURIComponent(e))},t.prototype.addPopToken=function(e){O.isEmpty(e)||(this.parameters.set(Y.TOKEN_TYPE,oe.POP),this.parameters.set(Y.REQ_CNF,encodeURIComponent(e)))},t.prototype.addSshJwk=function(e){O.isEmpty(e)||(this.parameters.set(Y.TOKEN_TYPE,oe.SSH),this.parameters.set(Y.REQ_CNF,encodeURIComponent(e)))},t.prototype.addServerTelemetry=function(e){this.parameters.set(Y.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(Y.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},t.prototype.addThrottling=function(){this.parameters.set(Y.X_MS_LIB_CAPABILITY,ii.X_MS_LIB_CAPABILITY_VALUE)},t.prototype.addLogoutHint=function(e){this.parameters.set(Y.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 v13.3.1 2023-10-27 */var Td=function(){function t(e,r){this.config=BE(e),this.logger=new Sd(this.config.loggerOptions,xm,Ed),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new ME(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[bt.CONTENT_TYPE]=w.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case Ct.HOME_ACCOUNT_ID:try{var n=$n(e.credential);r[bt.CCS_HEADER]="Oid:"+n.uid+"@"+n.utid}catch(o){this.logger.verbose("Could not parse home account ID for CCS Header: "+o)}break;case Ct.UPN:r[bt.CCS_HEADER]="UPN: "+e.credential;break}return r},t.prototype.executePostToTokenEndpoint=function(e,r,n,o){return V(this,void 0,void 0,function(){var i;return Q(this,function(a){switch(a.label){case 0:return[4,this.networkManager.sendPostRequest(o,e,{body:r,headers:n})];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 F.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},t.prototype.createTokenQueryParameters=function(e){var r=new si;return e.tokenQueryParameters&&r.addExtraQueryParameters(e.tokenQueryParameters),r.createQueryString()},t}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Id=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 j.ID_TOKEN:return ur.ID_TOKEN;case j.ACCESS_TOKEN:case j.ACCESS_TOKEN_WITH_AUTH_SCHEME:return ur.ACCESS_TOKEN;case j.REFRESH_TOKEN:return ur.REFRESH_TOKEN;default:throw F.createUnexpectedCredentialTypeError()}},t.generateCredentialCacheKey=function(e,r,n,o,i,a,s,l,c){var u=[this.generateAccountIdForCacheKey(e,r),this.generateCredentialIdForCacheKey(n,o,i,s),this.generateTargetForCacheKey(a),this.generateClaimsHashForCacheKey(c),this.generateSchemeForCacheKey(l)];return u.join(xe.CACHE_KEY_SEPARATOR).toLowerCase()},t.generateAccountIdForCacheKey=function(e,r){var n=[e,r];return n.join(xe.CACHE_KEY_SEPARATOR).toLowerCase()},t.generateCredentialIdForCacheKey=function(e,r,n,o){var i=e===j.REFRESH_TOKEN&&o||r,a=[e,i,n||w.EMPTY_STRING];return a.join(xe.CACHE_KEY_SEPARATOR).toLowerCase()},t.generateTargetForCacheKey=function(e){return(e||w.EMPTY_STRING).toLowerCase()},t.generateClaimsHashForCacheKey=function(e){return(e||w.EMPTY_STRING).toLowerCase()},t.generateSchemeForCacheKey=function(e){return e&&e.toLowerCase()!==oe.BEARER.toLowerCase()?e.toLowerCase():w.EMPTY_STRING},t}();/*! @azure/msal-common v13.3.1 2023-10-27 */var hn=function(t){vt(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=j.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===j.ID_TOKEN:!1},e}(Id);/*! @azure/msal-common v13.3.1 2023-10-27 */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 v13.3.1 2023-10-27 */var pn=function(t){vt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.createAccessTokenEntity=function(r,n,o,i,a,s,l,c,u,d,f,p,h,m,C){var v,g,y=new e;y.homeAccountId=r,y.credentialType=j.ACCESS_TOKEN,y.secret=o;var k=Ot.nowSeconds();if(y.cachedAt=k.toString(),y.expiresOn=l.toString(),y.extendedExpiresOn=c.toString(),d&&(y.refreshOn=d.toString()),y.environment=n,y.clientId=i,y.realm=a,y.target=s,y.userAssertionHash=p,y.tokenType=O.isEmpty(f)?oe.BEARER:f,m&&(y.requestedClaims=m,y.requestedClaimsHash=C),((v=y.tokenType)===null||v===void 0?void 0:v.toLowerCase())!==oe.BEARER.toLowerCase())switch(y.credentialType=j.ACCESS_TOKEN_WITH_AUTH_SCHEME,y.tokenType){case oe.POP:var T=or.extractTokenClaims(o,u);if(!(!((g=T==null?void 0:T.cnf)===null||g===void 0)&&g.kid))throw F.createTokenClaimsRequiredError();y.keyId=T.cnf.kid;break;case oe.SSH:y.keyId=h}return y},e.isAccessTokenEntity=function(r){return r?r.hasOwnProperty("homeAccountId")&&r.hasOwnProperty("environment")&&r.hasOwnProperty("credentialType")&&r.hasOwnProperty("realm")&&r.hasOwnProperty("clientId")&&r.hasOwnProperty("secret")&&r.hasOwnProperty("target")&&(r.credentialType===j.ACCESS_TOKEN||r.credentialType===j.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1},e}(Id);/*! @azure/msal-common v13.3.1 2023-10-27 */var Xn=function(t){vt(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.createRefreshTokenEntity=function(r,n,o,i,a,s){var l=new e;return l.clientId=i,l.credentialType=j.REFRESH_TOKEN,l.environment=n,l.homeAccountId=r,l.secret=o,l.userAssertionHash=s,a&&(l.familyId=a),l},e.isRefreshTokenEntity=function(r){return r?r.hasOwnProperty("homeAccountId")&&r.hasOwnProperty("environment")&&r.hasOwnProperty("credentialType")&&r.hasOwnProperty("clientId")&&r.hasOwnProperty("secret")&&r.credentialType===j.REFRESH_TOKEN:!1},e}(Id);/*! @azure/msal-common v13.3.1 2023-10-27 */var Ih=["interaction_required","consent_required","login_required"],OE=["message_only","additional_action","basic_action","user_password_expired","consent_required"],Jn={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."}},Bt=function(t){vt(e,t);function e(r,n,o,i,a,s,l){var c=t.call(this,r,n,o)||this;return Object.setPrototypeOf(c,e.prototype),c.timestamp=i||w.EMPTY_STRING,c.traceId=a||w.EMPTY_STRING,c.correlationId=s||w.EMPTY_STRING,c.claims=l||w.EMPTY_STRING,c.name="InteractionRequiredAuthError",c}return e.isInteractionRequiredError=function(r,n,o){var i=!!r&&Ih.indexOf(r)>-1,a=!!o&&OE.indexOf(o)>-1,s=!!n&&Ih.some(function(l){return n.indexOf(l)>-1});return i||s||a},e.createNoTokensFoundError=function(){return new e(Jn.noTokensFoundError.code,Jn.noTokensFoundError.desc)},e.createNativeAccountUnavailableError=function(){return new e(Jn.native_account_unavailable.code,Jn.native_account_unavailable.desc)},e}(U);/*! @azure/msal-common v13.3.1 2023-10-27 */var ci=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 v13.3.1 2023-10-27 */var vr=function(){function t(){}return t.setRequestState=function(e,r,n){var o=t.generateLibraryState(e,n);return O.isEmpty(r)?o:""+o+w.RESOURCE_DELIM+r},t.generateLibraryState=function(e,r){if(!e)throw F.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 F.createNoCryptoObjectError("parseRequestState");if(O.isEmpty(r))throw F.createInvalidStateError(r,"Null, undefined or empty state");try{var n=r.split(w.RESOURCE_DELIM),o=n[0],i=n.length>1?n.slice(1).join(w.RESOURCE_DELIM):w.EMPTY_STRING,a=e.base64Decode(o),s=JSON.parse(a);return{userRequestState:O.isEmpty(i)?w.EMPTY_STRING:i,libraryState:s}}catch(l){throw F.createInvalidStateError(r,l)}},t}();/*! @azure/msal-common v13.3.1 2023-10-27 */var ee=function(){function t(e){if(this._urlString=e,O.isEmpty(this._urlString))throw ue.createUrlEmptyError();O.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 O.endsWith(r,"?")?r=r.slice(0,-1):O.endsWith(r,"?/")&&(r=r.slice(0,-2)),O.endsWith(r,"/")||(r+="/"),r}return e},t.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(r){throw ue.createUrlParseError(r)}if(!e.HostNameAndPort||!e.PathSegments)throw ue.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw ue.createInsecureAuthorityUriError(this.urlString)},t.appendQueryString=function(e,r){return O.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]===wn.COMMON||n[0]===wn.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 ue.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,!O.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 ue.createUrlParseError("Given url string: "+e);return n[2]},t.getAbsoluteUrl=function(e,r){if(e[0]===w.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):w.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):w.EMPTY_STRING},t.constructAuthorityUriFromObject=function(e){return new t(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))},t.getDeserializedHash=function(e){if(O.isEmpty(e))return{};var r=t.parseHash(e),n=O.queryStringToObject(O.isEmpty(r)?e:r);if(!n)throw F.createHashNotDeserializedError(JSON.stringify(n));return n},t.getDeserializedQueryString=function(e){if(O.isEmpty(e))return{};var r=t.parseQueryString(e),n=O.queryStringToObject(O.isEmpty(r)?e:r);if(!n)throw F.createHashNotDeserializedError(JSON.stringify(n));return n},t.hashContainsKnownProperties=function(e){if(O.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 v13.3.1 2023-10-27 */var S;(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",t.RefreshTokenClientAcquireTokenByRefreshToken="refreshTokenClientAcquireTokenByRefreshToken",t.RefreshTokenClientCreateTokenRequestBody="refreshTokenClientCreateTokenRequestBody",t.AcquireTokenFromCache="acquireTokenFromCache",t.AcquireTokenBySilentIframe="acquireTokenBySilentIframe",t.InitializeBaseRequest="initializeBaseRequest",t.InitializeSilentRequest="initializeSilentRequest",t.InitializeClientApplication="initializeClientApplication",t.SilentIframeClientTokenHelper="silentIframeClientTokenHelper",t.SilentHandlerInitiateAuthRequest="silentHandlerInitiateAuthRequest",t.SilentHandlerMonitorIframeForHash="silentHandlerMonitorIframeForHash",t.SilentHandlerLoadFrame="silentHandlerLoadFrame",t.StandardInteractionClientCreateAuthCodeClient="standardInteractionClientCreateAuthCodeClient",t.StandardInteractionClientGetClientConfiguration="standardInteractionClientGetClientConfiguration",t.StandardInteractionClientInitializeAuthorizationRequest="standardInteractionClientInitializeAuthorizationRequest",t.StandardInteractionClientInitializeAuthorizationCodeRequest="standardInteractionClientInitializeAuthorizationCodeRequest",t.GetAuthCodeUrl="getAuthCodeUrl",t.HandleCodeResponseFromServer="handleCodeResponseFromServer",t.HandleCodeResponseFromHash="handleCodeResponseFromHash",t.UpdateTokenEndpointAuthority="updateTokenEndpointAuthority",t.AuthClientAcquireToken="authClientAcquireToken",t.AuthClientExecuteTokenRequest="authClientExecuteTokenRequest",t.AuthClientCreateTokenRequestBody="authClientCreateTokenRequestBody",t.AuthClientCreateQueryString="authClientCreateQueryString",t.PopTokenGenerateCnf="popTokenGenerateCnf",t.PopTokenGenerateKid="popTokenGenerateKid",t.HandleServerTokenResponse="handleServerTokenResponse",t.AuthorityFactoryCreateDiscoveredInstance="authorityFactoryCreateDiscoveredInstance",t.AuthorityResolveEndpointsAsync="authorityResolveEndpointsAsync",t.AuthorityGetCloudDiscoveryMetadataFromNetwork="authorityGetCloudDiscoveryMetadataFromNetwork",t.AuthorityUpdateCloudDiscoveryMetadata="authorityUpdateCloudDiscoveryMetadata",t.AuthorityGetEndpointMetadataFromNetwork="authorityGetEndpointMetadataFromNetwork",t.AuthorityUpdateEndpointMetadata="authorityUpdateEndpointMetadata",t.AuthorityUpdateMetadataWithRegionalInformation="authorityUpdateMetadataWithRegionalInformation",t.RegionDiscoveryDetectRegion="regionDiscoveryDetectRegion",t.RegionDiscoveryGetRegionFromIMDS="regionDiscoveryGetRegionFromIMDS",t.RegionDiscoveryGetCurrentVersion="regionDiscoveryGetCurrentVersion",t.AcquireTokenByCodeAsync="acquireTokenByCodeAsync",t.GetEndpointMetadataFromNetwork="getEndpointMetadataFromNetwork",t.GetCloudDiscoveryMetadataFromNetworkMeasurement="getCloudDiscoveryMetadataFromNetworkMeasurement",t.HandleRedirectPromiseMeasurement="handleRedirectPromiseMeasurement",t.UpdateCloudDiscoveryMetadataMeasurement="updateCloudDiscoveryMetadataMeasurement",t.UsernamePasswordClientAcquireToken="usernamePasswordClientAcquireToken",t.NativeMessageHandlerHandshake="nativeMessageHandlerHandshake",t.ClearTokensAndKeysWithClaims="clearTokensAndKeysWithClaims"})(S||(S={}));var ys;(function(t){t[t.NotStarted=0]="NotStarted",t[t.InProgress=1]="InProgress",t[t.Completed=2]="Completed"})(ys||(ys={}));var FE=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","queuedTimeMs","startTimeMs","status"]);/*! @azure/msal-common v13.3.1 2023-10-27 */var su;(function(t){t.SW="sw",t.UHW="uhw"})(su||(su={}));var mo=function(){function t(e,r){this.cryptoUtils=e,this.performanceClient=r}return t.prototype.generateCnf=function(e){var r,n;return V(this,void 0,void 0,function(){var o,i,a;return Q(this,function(s){switch(s.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(S.PopTokenGenerateCnf,e.correlationId),(n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(S.PopTokenGenerateKid,e.correlationId),[4,this.generateKid(e)];case 1:return o=s.sent(),i=this.cryptoUtils.base64Encode(JSON.stringify(o)),a={kid:o.kid,reqCnfString:i},[4,this.cryptoUtils.hashString(i)];case 2:return[2,(a.reqCnfHash=s.sent(),a)]}})})},t.prototype.generateKid=function(e){var r;return V(this,void 0,void 0,function(){var n;return Q(this,function(o){switch(o.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(S.PopTokenGenerateKid,e.correlationId),[4,this.cryptoUtils.getPublicKeyThumbprint(e)];case 1:return n=o.sent(),[2,{kid:n,xms_ksl:su.SW}]}})})},t.prototype.signPopToken=function(e,r,n){return V(this,void 0,void 0,function(){return Q(this,function(o){return[2,this.signPayload(e,r,n)]})})},t.prototype.signPayload=function(e,r,n,o){return V(this,void 0,void 0,function(){var i,a,s,l,c,u;return Q(this,function(d){switch(d.label){case 0:return i=n.resourceRequestMethod,a=n.resourceRequestUri,s=n.shrClaims,l=n.shrNonce,c=a?new ee(a):void 0,u=c==null?void 0:c.getUrlComponents(),[4,this.cryptoUtils.signJwt(ne({at:e,ts:Ot.nowSeconds(),m:i==null?void 0:i.toUpperCase(),u:u==null?void 0:u.HostNameAndPort,nonce:l||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 v13.3.1 2023-10-27 */var cu=function(){function t(){}return t.prototype.generateAppMetadataKey=function(){return t.generateAppMetadataCacheKey(this.environment,this.clientId)},t.generateAppMetadataCacheKey=function(e,r){var n=[iu,e,r];return n.join(xe.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(iu)===0&&r.hasOwnProperty("clientId")&&r.hasOwnProperty("environment"):!1},t}();/*! @azure/msal-common v13.3.1 2023-10-27 */var DE=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 v13.3.1 2023-10-27 */var ws=function(){function t(e,r,n,o,i,a,s){this.clientId=e,this.cacheStorage=r,this.cryptoObj=n,this.logger=o,this.serializableCache=i,this.persistencePlugin=a,this.performanceClient=s}return t.prototype.validateServerAuthorizationCodeResponse=function(e,r,n){if(!e.state||!r)throw e.state?F.createStateNotFoundError("Cached State"):F.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(r))throw F.createStateMismatchError();if(e.error||e.error_description||e.suberror)throw Bt.isInteractionRequiredError(e.error,e.error_description,e.suberror)?new Bt(e.error||w.EMPTY_STRING,e.error_description,e.suberror,e.timestamp||w.EMPTY_STRING,e.trace_id||w.EMPTY_STRING,e.correlation_id||w.EMPTY_STRING,e.claims||w.EMPTY_STRING):new In(e.error||w.EMPTY_STRING,e.error_description,e.suberror);e.client_info&&vs(e.client_info,n)},t.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(Bt.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new Bt(e.error,e.error_description,e.suberror,e.timestamp||w.EMPTY_STRING,e.trace_id||w.EMPTY_STRING,e.correlation_id||w.EMPTY_STRING,e.claims||w.EMPTY_STRING);var r=e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id;throw new In(e.error,r,e.suberror)}},t.prototype.handleServerTokenResponse=function(e,r,n,o,i,a,s,l,c){var u;return V(this,void 0,void 0,function(){var d,f,p,h,m,C,v;return Q(this,function(g){switch(g.label){case 0:if((u=this.performanceClient)===null||u===void 0||u.addQueueMeasurement(S.HandleServerTokenResponse,e.correlation_id),e.id_token){if(d=new or(e.id_token||w.EMPTY_STRING,this.cryptoObj),i&&!O.isEmpty(i.nonce)&&d.claims.nonce!==i.nonce)throw F.createNonceMismatchError();if(o.maxAge||o.maxAge===0){if(f=d.claims.auth_time,!f)throw F.createAuthTimeNotFoundError();or.checkMaxAge(f,o.maxAge)}}this.homeAccountIdentifier=Ue.generateHomeAccountId(e.client_info||w.EMPTY_STRING,r.authorityType,this.logger,this.cryptoObj,d),i&&i.state&&(p=vr.parseRequestState(this.cryptoObj,i.state)),e.key_id=e.key_id||o.sshKid||void 0,h=this.generateCacheRecord(e,r,n,o,d,a,i),g.label=1;case 1:return g.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),m=new DE(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(m)]):[3,3];case 2:g.sent(),g.label=3;case 3:return s&&!l&&h.account&&(C=h.account.generateAccountKey(),v=this.cacheStorage.getAccount(C),!v)?(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,h,!1,o,d,p,void 0,c)]):[4,this.cacheStorage.saveCacheRecord(h)];case 4:return g.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&m?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(m)]):[3,7];case 6:g.sent(),g.label=7;case 7:return[7];case 8:return[2,t.generateAuthenticationResult(this.cryptoObj,r,h,!1,o,d,p,e,c)]}})})},t.prototype.generateCacheRecord=function(e,r,n,o,i,a,s){var l=r.getPreferredCache();if(O.isEmpty(l))throw F.createInvalidCacheEnvironmentError();var c,u;!O.isEmpty(e.id_token)&&i&&(c=hn.createIdTokenEntity(this.homeAccountIdentifier,l,e.id_token||w.EMPTY_STRING,this.clientId,i.claims.tid||w.EMPTY_STRING),u=this.generateAccountEntity(e,i,r,s));var d=null;if(!O.isEmpty(e.access_token)){var f=e.scope?$e.fromString(e.scope):new $e(o.scopes||[]),p=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,h=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,m=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,C=n+p,v=C+h,g=m&&m>0?n+m:void 0;d=pn.createAccessTokenEntity(this.homeAccountIdentifier,l,e.access_token||w.EMPTY_STRING,this.clientId,i?i.claims.tid||w.EMPTY_STRING:r.tenant,f.printScopes(),C,v,this.cryptoObj,g,e.token_type,a,e.key_id,o.claims,o.requestedClaimsHash)}var y=null;O.isEmpty(e.refresh_token)||(y=Xn.createRefreshTokenEntity(this.homeAccountIdentifier,l,e.refresh_token||w.EMPTY_STRING,this.clientId,e.foci,a));var k=null;return O.isEmpty(e.foci)||(k=cu.createAppMetadataEntity(this.clientId,l,e.foci)),new ci(u,c,d,y,k)},t.prototype.generateAccountEntity=function(e,r,n,o){var i=n.authorityType,a=o?o.cloud_graph_host_name:w.EMPTY_STRING,s=o?o.msgraph_host:w.EMPTY_STRING;if(i===et.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),Ue.createGenericAccount(this.homeAccountIdentifier,r,n,a,s);if(O.isEmpty(e.client_info)&&n.protocolMode==="AAD")throw F.createClientInfoEmptyError();return e.client_info?Ue.createAccount(e.client_info,this.homeAccountIdentifier,r,n,a,s):Ue.createGenericAccount(this.homeAccountIdentifier,r,n,a,s)},t.generateAuthenticationResult=function(e,r,n,o,i,a,s,l,c){var u,d,f;return V(this,void 0,void 0,function(){var p,h,m,C,v,g,y,k,T,_,b;return Q(this,function(R){switch(R.label){case 0:if(p=w.EMPTY_STRING,h=[],m=null,v=w.EMPTY_STRING,!n.accessToken)return[3,4];if(n.accessToken.tokenType!==oe.POP)return[3,2];if(g=new mo(e),y=n.accessToken,k=y.secret,T=y.keyId,!T)throw F.createKeyIdMissingError();return[4,g.signPopToken(k,T,i)];case 1:return p=R.sent(),[3,3];case 2:p=n.accessToken.secret,R.label=3;case 3:h=$e.fromString(n.accessToken.target).asArray(),m=new Date(Number(n.accessToken.expiresOn)*1e3),C=new Date(Number(n.accessToken.extendedExpiresOn)*1e3),R.label=4;case 4:return n.appMetadata&&(v=n.appMetadata.familyId===ni?ni:w.EMPTY_STRING),_=(a==null?void 0:a.claims.oid)||(a==null?void 0:a.claims.sub)||w.EMPTY_STRING,b=(a==null?void 0:a.claims.tid)||w.EMPTY_STRING,l!=null&&l.spa_accountid&&n.account&&(n.account.nativeAccountId=l==null?void 0:l.spa_accountid),[2,{authority:r.canonicalAuthority,uniqueId:_,tenantId:b,scopes:h,account:n.account?n.account.getAccountInfo():null,idToken:a?a.rawToken:w.EMPTY_STRING,idTokenClaims:a?a.claims:{},accessToken:p,fromCache:o,expiresOn:m,correlationId:i.correlationId,requestId:c||w.EMPTY_STRING,extExpiresOn:C,familyId:v,tokenType:((u=n.accessToken)===null||u===void 0?void 0:u.tokenType)||w.EMPTY_STRING,state:s?s.userRequestState:w.EMPTY_STRING,cloudGraphHostName:((d=n.account)===null||d===void 0?void 0:d.cloudGraphHostName)||w.EMPTY_STRING,msGraphHost:((f=n.account)===null||f===void 0?void 0:f.msGraphHost)||w.EMPTY_STRING,code:l==null?void 0:l.spa_code,fromNativeBroker:!1}]}})})},t}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Om=function(t){vt(e,t);function e(r,n){var o=t.call(this,r,n)||this;return o.includeRedirectUri=!0,o}return e.prototype.getAuthCodeUrl=function(r){var n,o;return V(this,void 0,void 0,function(){var i;return Q(this,function(a){switch(a.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(S.GetAuthCodeUrl,r.correlationId),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(S.AuthClientCreateQueryString,r.correlationId),[4,this.createAuthCodeUrlQueryString(r)];case 1:return i=a.sent(),[2,ee.appendQueryString(this.authority.authorizationEndpoint,i)]}})})},e.prototype.acquireToken=function(r,n){var o,i,a,s,l,c;return V(this,void 0,void 0,function(){var u,d,f,p,h,m,C=this;return Q(this,function(v){switch(v.label){case 0:if(!r||!r.code)throw F.createTokenRequestCannotBeMadeError();return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(S.AuthClientAcquireToken,r.correlationId),u=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement("AuthCodeClientAcquireToken",r.correlationId),this.logger.info("in acquireToken call in auth-code client"),d=Ot.nowSeconds(),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(S.AuthClientExecuteTokenRequest,r.correlationId),[4,this.executeTokenRequest(this.authority,r)];case 1:return f=v.sent(),p=(s=f.headers)===null||s===void 0?void 0:s[bt.X_MS_REQUEST_ID],h=(l=f.headers)===null||l===void 0?void 0:l[bt.X_MS_HTTP_VERSION],h&&(u==null||u.addStaticFields({httpVerAuthority:h})),m=new ws(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient),m.validateTokenResponse(f.body),(c=this.performanceClient)===null||c===void 0||c.setPreQueueTime(S.HandleServerTokenResponse,r.correlationId),[2,m.handleServerTokenResponse(f.body,this.authority,d,r,n,void 0,void 0,void 0,p).then(function(g){return u==null||u.endMeasurement({success:!0}),g}).catch(function(g){throw C.logger.verbose("Error in fetching token in ACC",r.correlationId),u==null||u.endMeasurement({errorCode:g.errorCode,subErrorCode:g.subError,success:!1}),g})]}})})},e.prototype.handleFragmentResponse=function(r,n){var o=new ws(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),i=new ee(r),a=ee.getDeserializedHash(i.getHash());if(o.validateServerAuthorizationCodeResponse(a,n,this.cryptoUtils),!a.code)throw F.createNoAuthCodeInServerResponseError();return ne(ne({},a),{code:a.code})},e.prototype.getLogoutUri=function(r){if(!r)throw ue.createEmptyLogoutRequestError();var n=this.createLogoutUrlQueryString(r);return ee.appendQueryString(this.authority.endSessionEndpoint,n)},e.prototype.executeTokenRequest=function(r,n){var o,i;return V(this,void 0,void 0,function(){var a,s,l,c,u,d,f;return Q(this,function(p){switch(p.label){case 0:return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(S.AuthClientExecuteTokenRequest,n.correlationId),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(S.AuthClientCreateTokenRequestBody,n.correlationId),a=this.createTokenQueryParameters(n),s=ee.appendQueryString(r.tokenEndpoint,a),[4,this.createTokenRequestBody(n)];case 1:if(l=p.sent(),c=void 0,n.clientInfo)try{u=vs(n.clientInfo,this.cryptoUtils),c={credential:""+u.uid+xe.CLIENT_INFO_SEPARATOR+u.utid,type:Ct.HOME_ACCOUNT_ID}}catch(h){this.logger.verbose("Could not parse client info for CCS Header: "+h)}return d=this.createTokenRequestHeaders(c||n.ccsCredential),f={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},[2,this.executePostToTokenEndpoint(s,l,d,f)]}})})},e.prototype.createTokenRequestBody=function(r){var n,o;return V(this,void 0,void 0,function(){var i,a,s,l,c,u,d,d,f;return Q(this,function(p){switch(p.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(S.AuthClientCreateTokenRequestBody,r.correlationId),i=new si,i.addClientId(this.config.authOptions.clientId),this.includeRedirectUri?i.addRedirectUri(r.redirectUri):sn.validateRedirectUri(r.redirectUri),i.addScopes(r.scopes),i.addAuthorizationCode(r.code),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addThrottling(),this.serverTelemetryManager&&i.addServerTelemetry(this.serverTelemetryManager),r.codeVerifier&&i.addCodeVerifier(r.codeVerifier),this.config.clientCredentials.clientSecret&&i.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(a=this.config.clientCredentials.clientAssertion,i.addClientAssertion(a.assertion),i.addClientAssertionType(a.assertionType)),i.addGrantType(hs.AUTHORIZATION_CODE_GRANT),i.addClientInfo(),r.authenticationScheme!==oe.POP?[3,2]:(s=new mo(this.cryptoUtils,this.performanceClient),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(S.PopTokenGenerateCnf,r.correlationId),[4,s.generateCnf(r)]);case 1:return l=p.sent(),i.addPopToken(l.reqCnfString),[3,3];case 2:if(r.authenticationScheme===oe.SSH)if(r.sshJwk)i.addSshJwk(r.sshJwk);else throw ue.createMissingSshJwkError();p.label=3;case 3:if(c=r.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(c),(!O.isEmptyObj(r.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&i.addClaims(r.claims,this.config.authOptions.clientCapabilities),u=void 0,r.clientInfo)try{d=vs(r.clientInfo,this.cryptoUtils),u={credential:""+d.uid+xe.CLIENT_INFO_SEPARATOR+d.utid,type:Ct.HOME_ACCOUNT_ID}}catch(h){this.logger.verbose("Could not parse client info for CCS Header: "+h)}else u=r.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&u)switch(u.type){case Ct.HOME_ACCOUNT_ID:try{d=$n(u.credential),i.addCcsOid(d)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case Ct.UPN:i.addCcsUpn(u.credential);break}return r.tokenBodyParameters&&i.addExtraQueryParameters(r.tokenBodyParameters),r.enableSpaAuthorizationCode&&(!r.tokenBodyParameters||!r.tokenBodyParameters[Y.RETURN_SPA_CODE])&&i.addExtraQueryParameters((f={},f[Y.RETURN_SPA_CODE]="1",f)),[2,i.createQueryString()]}})})},e.prototype.createAuthCodeUrlQueryString=function(r){var n;return V(this,void 0,void 0,function(){var o,i,a,s,l,c,c,c,u,d;return Q(this,function(f){switch(f.label){case 0:if((n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(S.AuthClientCreateQueryString,r.correlationId),o=new si,o.addClientId(this.config.authOptions.clientId),i=Js(r.scopes||[],r.extraScopesToConsent||[]),o.addScopes(i),o.addRedirectUri(r.redirectUri),a=r.correlationId||this.config.cryptoInterface.createNewGuid(),o.addCorrelationId(a),o.addResponseMode(r.responseMode),o.addResponseTypeCode(),o.addLibraryInfo(this.config.libraryInfo),o.addApplicationTelemetry(this.config.telemetry.application),o.addClientInfo(),r.codeChallenge&&r.codeChallengeMethod&&o.addCodeChallengeParams(r.codeChallenge,r.codeChallengeMethod),r.prompt&&o.addPrompt(r.prompt),r.domainHint&&o.addDomainHint(r.domainHint),r.prompt!==Xe.SELECT_ACCOUNT)if(r.sid&&r.prompt===Xe.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),o.addSid(r.sid);else if(r.account){if(s=this.extractAccountSid(r.account),l=this.extractLoginHint(r.account),l){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),o.addLoginHint(l);try{c=$n(r.account.homeAccountId),o.addCcsOid(c)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(s&&r.prompt===Xe.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),o.addSid(s);try{c=$n(r.account.homeAccountId),o.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"),o.addLoginHint(r.loginHint),o.addCcsUpn(r.loginHint);else if(r.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),o.addLoginHint(r.account.username);try{c=$n(r.account.homeAccountId),o.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"),o.addLoginHint(r.loginHint),o.addCcsUpn(r.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return r.nonce&&o.addNonce(r.nonce),r.state&&o.addState(r.state),(!O.isEmpty(r.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&o.addClaims(r.claims,this.config.authOptions.clientCapabilities),r.extraQueryParameters&&o.addExtraQueryParameters(r.extraQueryParameters),r.nativeBroker?(o.addNativeBroker(),r.authenticationScheme!==oe.POP?[3,2]:(u=new mo(this.cryptoUtils),[4,u.generateCnf(r)])):[3,2];case 1:d=f.sent(),o.addPopToken(d.reqCnfString),f.label=2;case 2:return[2,o.createQueryString()]}})})},e.prototype.createLogoutUrlQueryString=function(r){var n=new si;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}(Td);/*! @azure/msal-common v13.3.1 2023-10-27 */var Fm=function(t){vt(e,t);function e(r,n){return t.call(this,r,n)||this}return e.prototype.acquireToken=function(r){var n,o,i,a,s,l,c;return V(this,void 0,void 0,function(){var u,d,f,p,h,m,C=this;return Q(this,function(v){switch(v.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(S.RefreshTokenClientAcquireToken,r.correlationId),u=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(S.RefreshTokenClientAcquireToken,r.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",r.correlationId),d=Ot.nowSeconds(),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(S.RefreshTokenClientExecuteTokenRequest,r.correlationId),[4,this.executeTokenRequest(r,this.authority)];case 1:return f=v.sent(),p=(a=f.headers)===null||a===void 0?void 0:a[bt.X_MS_HTTP_VERSION],u==null||u.addStaticFields({refreshTokenSize:((s=f.body.refresh_token)===null||s===void 0?void 0:s.length)||0}),p&&(u==null||u.addStaticFields({httpVerToken:p})),h=(l=f.headers)===null||l===void 0?void 0:l[bt.X_MS_REQUEST_ID],m=new ws(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),m.validateTokenResponse(f.body),(c=this.performanceClient)===null||c===void 0||c.setPreQueueTime(S.HandleServerTokenResponse,r.correlationId),[2,m.handleServerTokenResponse(f.body,this.authority,d,r,void 0,void 0,!0,r.forceCache,h).then(function(g){return u==null||u.endMeasurement({success:!0}),g}).catch(function(g){throw C.logger.verbose("Error in fetching refresh token",r.correlationId),u==null||u.endMeasurement({errorCode:g.errorCode,subErrorCode:g.subError,success:!1}),g})]}})})},e.prototype.acquireTokenByRefreshToken=function(r){var n,o,i,a;return V(this,void 0,void 0,function(){var s,l,c;return Q(this,function(u){if(!r)throw ue.createEmptyTokenRequestError();if((n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(S.RefreshTokenClientAcquireTokenByRefreshToken,r.correlationId),!r.account)throw F.createNoAccountInSilentRequestError();if(s=this.cacheManager.isAppMetadataFOCI(r.account.environment),s)try{return(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(S.RefreshTokenClientAcquireTokenWithCachedRefreshToken,r.correlationId),[2,this.acquireTokenWithCachedRefreshToken(r,!0)]}catch(d){if(l=d instanceof Bt&&d.errorCode===Jn.noTokensFoundError.code,c=d instanceof In&&d.errorCode===Th.INVALID_GRANT_ERROR&&d.subError===Th.CLIENT_MISMATCH_ERROR,l||c)return(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(S.RefreshTokenClientAcquireTokenWithCachedRefreshToken,r.correlationId),[2,this.acquireTokenWithCachedRefreshToken(r,!1)];throw d}return(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(S.RefreshTokenClientAcquireTokenWithCachedRefreshToken,r.correlationId),[2,this.acquireTokenWithCachedRefreshToken(r,!1)]})})},e.prototype.acquireTokenWithCachedRefreshToken=function(r,n){var o,i,a;return V(this,void 0,void 0,function(){var s,l,c;return Q(this,function(u){if((o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(S.RefreshTokenClientAcquireTokenWithCachedRefreshToken,r.correlationId),s=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(S.RefreshTokenClientAcquireTokenWithCachedRefreshToken,r.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",r.correlationId),l=this.cacheManager.getRefreshToken(r.account,n),!l)throw s==null||s.discardMeasurement(),Bt.createNoTokensFoundError();return s==null||s.endMeasurement({success:!0}),c=ne(ne({},r),{refreshToken:l.secret,authenticationScheme:r.authenticationScheme||oe.BEARER,ccsCredential:{credential:r.account.homeAccountId,type:Ct.HOME_ACCOUNT_ID}}),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(S.RefreshTokenClientAcquireToken,r.correlationId),[2,this.acquireToken(c)]})})},e.prototype.executeTokenRequest=function(r,n){var o,i,a;return V(this,void 0,void 0,function(){var s,l,c,u,d,f;return Q(this,function(p){switch(p.label){case 0:return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(S.RefreshTokenClientExecuteTokenRequest,r.correlationId),s=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(S.RefreshTokenClientExecuteTokenRequest,r.correlationId),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(S.RefreshTokenClientCreateTokenRequestBody,r.correlationId),l=this.createTokenQueryParameters(r),c=ee.appendQueryString(n.tokenEndpoint,l),[4,this.createTokenRequestBody(r)];case 1:return u=p.sent(),d=this.createTokenRequestHeaders(r.ccsCredential),f={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},[2,this.executePostToTokenEndpoint(c,u,d,f).then(function(h){return s==null||s.endMeasurement({success:!0}),h}).catch(function(h){throw s==null||s.endMeasurement({success:!1}),h})]}})})},e.prototype.createTokenRequestBody=function(r){var n,o,i;return V(this,void 0,void 0,function(){var a,s,l,c,u,d,f;return Q(this,function(p){switch(p.label){case 0:return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(S.RefreshTokenClientCreateTokenRequestBody,r.correlationId),a=r.correlationId,s=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(S.BaseClientCreateTokenRequestHeaders,a),l=new si,l.addClientId(this.config.authOptions.clientId),l.addScopes(r.scopes),l.addGrantType(hs.REFRESH_TOKEN_GRANT),l.addClientInfo(),l.addLibraryInfo(this.config.libraryInfo),l.addApplicationTelemetry(this.config.telemetry.application),l.addThrottling(),this.serverTelemetryManager&&l.addServerTelemetry(this.serverTelemetryManager),l.addCorrelationId(a),l.addRefreshToken(r.refreshToken),this.config.clientCredentials.clientSecret&&l.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(c=this.config.clientCredentials.clientAssertion,l.addClientAssertion(c.assertion),l.addClientAssertionType(c.assertionType)),r.authenticationScheme!==oe.POP?[3,2]:(u=new mo(this.cryptoUtils,this.performanceClient),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(S.PopTokenGenerateCnf,r.correlationId),[4,u.generateCnf(r)]);case 1:return d=p.sent(),l.addPopToken(d.reqCnfString),[3,3];case 2:if(r.authenticationScheme===oe.SSH)if(r.sshJwk)l.addSshJwk(r.sshJwk);else throw s==null||s.endMeasurement({success:!1}),ue.createMissingSshJwkError();p.label=3;case 3:if((!O.isEmptyObj(r.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&l.addClaims(r.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&r.ccsCredential)switch(r.ccsCredential.type){case Ct.HOME_ACCOUNT_ID:try{f=$n(r.ccsCredential.credential),l.addCcsOid(f)}catch(h){this.logger.verbose("Could not parse home account ID for CCS Header: "+h)}break;case Ct.UPN:l.addCcsUpn(r.ccsCredential.credential);break}return s==null||s.endMeasurement({success:!0}),[2,l.createQueryString()]}})})},e}(Td);/*! @azure/msal-common v13.3.1 2023-10-27 */var zE=function(t){vt(e,t);function e(r,n){return t.call(this,r,n)||this}return e.prototype.acquireToken=function(r){return V(this,void 0,void 0,function(){var n,o;return Q(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 F&&n.errorCode===B.tokenRefreshRequired.code)return o=new Fm(this.config,this.performanceClient),[2,o.acquireTokenByRefreshToken(r)];throw n;case 3:return[2]}})})},e.prototype.acquireCachedToken=function(r){var n,o,i,a,s;return V(this,void 0,void 0,function(){var l,c;return Q(this,function(u){switch(u.label){case 0:if(!r)throw ue.createEmptyTokenRequestError();if(r.forceRefresh)throw(n=this.serverTelemetryManager)===null||n===void 0||n.setCacheOutcome(Dr.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),F.createRefreshRequiredError();if(!this.config.cacheOptions.claimsBasedCachingEnabled&&!O.isEmptyObj(r.claims))throw(o=this.serverTelemetryManager)===null||o===void 0||o.setCacheOutcome(Dr.CLAIMS_REQUESTED_CACHE_SKIPPED),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested."),F.createRefreshRequiredError();if(!r.account)throw F.createNoAccountInSilentRequestError();if(l=r.authority||this.authority.getPreferredCache(),c=this.cacheManager.readCacheRecord(r.account,r,l),c.accessToken){if(Ot.wasClockTurnedBack(c.accessToken.cachedAt)||Ot.isTokenExpired(c.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw(a=this.serverTelemetryManager)===null||a===void 0||a.setCacheOutcome(Dr.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),F.createRefreshRequiredError();if(c.accessToken.refreshOn&&Ot.isTokenExpired(c.accessToken.refreshOn,0))throw(s=this.serverTelemetryManager)===null||s===void 0||s.setCacheOutcome(Dr.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),F.createRefreshRequiredError()}else throw(i=this.serverTelemetryManager)===null||i===void 0||i.setCacheOutcome(Dr.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),F.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(c,r)];case 1:return[2,u.sent()]}})})},e.prototype.generateResultFromCacheRecord=function(r,n){return V(this,void 0,void 0,function(){var o,i;return Q(this,function(a){switch(a.label){case 0:if(r.idToken&&(o=new or(r.idToken.secret,this.config.cryptoInterface)),n.maxAge||n.maxAge===0){if(i=o==null?void 0:o.claims.auth_time,!i)throw F.createAuthTimeNotFoundError();or.checkMaxAge(i,n.maxAge)}return[4,ws.generateAuthenticationResult(this.cryptoUtils,this.authority,r,!0,n,o)];case 1:return[2,a.sent()]}})})},e}(Td);/*! @azure/msal-common v13.3.1 2023-10-27 */function LE(t){return t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v13.3.1 2023-10-27 */var Dm={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"]}]}}},Ah=Dm.endpointMetadata,Ph=Dm.instanceDiscoveryMetadata;/*! @azure/msal-common v13.3.1 2023-10-27 */var Ni;(function(t){t.AAD="AAD",t.OIDC="OIDC"})(Ni||(Ni={}));/*! @azure/msal-common v13.3.1 2023-10-27 */var lu=function(){function t(){this.expiresAt=Ot.nowSeconds()+oi.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()+oi.REFRESH_TIME_SECONDS},t.prototype.isExpired=function(){return this.expiresAt<=Ot.nowSeconds()},t.isAuthorityMetadataEntity=function(e,r){return r?e.indexOf(oi.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 v13.3.1 2023-10-27 */function HE(t){return t.hasOwnProperty("tenant_discovery_endpoint")&&t.hasOwnProperty("metadata")}/*! @azure/msal-common v13.3.1 2023-10-27 */function UE(t){return t.hasOwnProperty("error")&&t.hasOwnProperty("error_description")}/*! @azure/msal-common v13.3.1 2023-10-27 */var qE=function(){function t(e,r,n){this.networkInterface=e,this.performanceClient=r,this.correlationId=n}return t.prototype.detectRegion=function(e,r){var n,o,i,a;return V(this,void 0,void 0,function(){var s,l,c,u,d;return Q(this,function(f){switch(f.label){case 0:if((n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(S.RegionDiscoveryDetectRegion,this.correlationId),s=e,s)return[3,8];l=t.IMDS_OPTIONS,f.label=1;case 1:return f.trys.push([1,6,,7]),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(S.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(w.IMDS_VERSION,l)];case 2:return c=f.sent(),c.status===Yn.httpSuccess&&(s=c.body,r.region_source=xr.IMDS),c.status!==Yn.httpBadRequest?[3,5]:((i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(S.RegionDiscoveryGetCurrentVersion,this.correlationId),[4,this.getCurrentVersion(l)]);case 3:return u=f.sent(),u?((a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(S.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(u,l)]):(r.region_source=xr.FAILED_AUTO_DETECTION,[2,null]);case 4:d=f.sent(),d.status===Yn.httpSuccess&&(s=d.body,r.region_source=xr.IMDS),f.label=5;case 5:return[3,7];case 6:return f.sent(),r.region_source=xr.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:r.region_source=xr.ENVIRONMENT_VARIABLE,f.label=9;case 9:return s||(r.region_source=xr.FAILED_AUTO_DETECTION),[2,s||null]}})})},t.prototype.getRegionFromIMDS=function(e,r){var n;return V(this,void 0,void 0,function(){return Q(this,function(o){return(n=this.performanceClient)===null||n===void 0||n.addQueueMeasurement(S.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[2,this.networkInterface.sendGetRequestAsync(w.IMDS_ENDPOINT+"?api-version="+e+"&format=text",r,w.IMDS_TIMEOUT)]})})},t.prototype.getCurrentVersion=function(e){var r;return V(this,void 0,void 0,function(){var n;return Q(this,function(o){switch(o.label){case 0:(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(S.RegionDiscoveryGetCurrentVersion,this.correlationId),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(w.IMDS_ENDPOINT+"?format=json",e)];case 2:return n=o.sent(),n.status===Yn.httpBadRequest&&n.body&&n.body["newest-versions"]&&n.body["newest-versions"].length>0?[2,n.body["newest-versions"][0]]:[2,null];case 3:return o.sent(),[2,null];case 4:return[2]}})})},t.IMDS_OPTIONS={headers:{Metadata:"true"}},t}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Ri=function(){function t(e,r,n,o,i,a,s){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=r,this.cacheManager=n,this.authorityOptions=o,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=i,this.performanceClient=a,this.correlationId=s,this.regionDiscovery=new qE(r,this.performanceClient,this.correlationId)}return t.prototype.getAuthorityType=function(e){if(e.HostNameAndPort.endsWith(w.CIAM_AUTH_URL))return et.Ciam;var r=e.PathSegments;if(r.length)switch(r[0].toLowerCase()){case w.ADFS:return et.Adfs;case w.DSTS:return et.Dsts}return et.Default},Object.defineProperty(t.prototype,"authorityType",{get:function(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)},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 ee(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())return this.replacePath(this.metadata.authorization_endpoint);throw F.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw F.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw F.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw F.createLogoutNotSupportedError();return this.replacePath(this.metadata.end_session_endpoint)}else throw F.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw F.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"jwksUri",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw F.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),t.prototype.canReplaceTenant=function(e){return e.PathSegments.length===1&&!t.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===et.Default&&this.protocolMode===Ni.AAD},t.prototype.replaceTenant=function(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)},t.prototype.replacePath=function(e){var r=this,n=e,o=new ee(this.metadata.canonical_authority),i=o.getUrlComponents(),a=i.PathSegments,s=this.canonicalAuthorityUrlComponents.PathSegments;return s.forEach(function(l,c){var u=a[c];if(c===0&&r.canReplaceTenant(i)){var d=new ee(r.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];u!==d&&(r.logger.verbose("Replacing tenant domain name "+u+" with id "+d),u=d)}l!==u&&(n=n.replace("/"+u+"/","/"+l+"/"))}),this.replaceTenant(n)},Object.defineProperty(t.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===et.Adfs||this.authorityType===et.Dsts||this.protocolMode===Ni.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(){var e,r,n;return V(this,void 0,void 0,function(){var o,i,a,s;return Q(this,function(l){switch(l.label){case 0:return(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(S.AuthorityResolveEndpointsAsync,this.correlationId),o=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort),o||(o=new lu,o.updateCanonicalAuthority(this.canonicalAuthority)),(r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(S.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),[4,this.updateCloudDiscoveryMetadata(o)];case 1:return i=l.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,o.preferred_network),(n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(S.AuthorityUpdateEndpointMetadata,this.correlationId),[4,this.updateEndpointMetadata(o)];case 2:return a=l.sent(),i!==At.CACHE&&a!==At.CACHE&&(o.resetExpiresAt(),o.updateCanonicalAuthority(this.canonicalAuthority)),s=this.cacheManager.generateAuthorityMetadataCacheKey(o.preferred_cache),this.cacheManager.setAuthorityMetadata(s,o),this.metadata=o,[2]}})})},t.prototype.updateEndpointMetadata=function(e){var r,n,o,i,a,s;return V(this,void 0,void 0,function(){var l,c;return Q(this,function(u){switch(u.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(S.AuthorityUpdateEndpointMetadata,this.correlationId),l=this.getEndpointMetadataFromConfig(),l?(e.updateEndpointMetadata(l,!1),[2,At.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,At.CACHE]:((n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(S.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),[4,this.getEndpointMetadataFromNetwork()]);case 1:return l=u.sent(),l?!((o=this.authorityOptions.azureRegionConfiguration)===null||o===void 0)&&o.azureRegion?((i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(S.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(l)]):[3,3]:[3,4];case 2:l=u.sent(),u.label=3;case 3:return e.updateEndpointMetadata(l,!0),[2,At.NETWORK];case 4:return c=this.getEndpointMetadataFromHardcodedValues(),c&&!this.authorityOptions.skipAuthorityMetadataCache?!((a=this.authorityOptions.azureRegionConfiguration)===null||a===void 0)&&a.azureRegion?((s=this.performanceClient)===null||s===void 0||s.setPreQueueTime(S.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(c)]):[3,6]:[3,7];case 5:c=u.sent(),u.label=6;case 6:return e.updateEndpointMetadata(c,!1),[2,At.HARDCODED_VALUES];case 7:throw F.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},t.prototype.isAuthoritySameType=function(e){var r=new ee(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 ue.createInvalidAuthorityMetadataError()}return null},t.prototype.getEndpointMetadataFromNetwork=function(){var e;return V(this,void 0,void 0,function(){var r,n;return Q(this,function(o){switch(o.label){case 0:(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(S.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),r={},o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,r)];case 2:return n=o.sent(),[2,LE(n.body)?n.body:null];case 3:return o.sent(),[2,null];case 4:return[2]}})})},t.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in Ah?Ah[this.canonicalAuthority]:null},t.prototype.updateMetadataWithRegionalInformation=function(e){var r,n,o,i;return V(this,void 0,void 0,function(){var a,s;return Q(this,function(l){switch(l.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(S.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),a=(n=this.authorityOptions.azureRegionConfiguration)===null||n===void 0?void 0:n.azureRegion,a?a!==w.AZURE_REGION_AUTO_DISCOVER_FLAG?(this.regionDiscoveryMetadata.region_outcome=ai.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=a,[2,t.replaceWithRegionalInformation(e,a)]):((o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(S.RegionDiscoveryDetectRegion,this.correlationId),[4,this.regionDiscovery.detectRegion((i=this.authorityOptions.azureRegionConfiguration)===null||i===void 0?void 0:i.environmentRegion,this.regionDiscoveryMetadata)]):[3,2];case 1:if(s=l.sent(),s)return this.regionDiscoveryMetadata.region_outcome=ai.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=s,[2,t.replaceWithRegionalInformation(e,s)];this.regionDiscoveryMetadata.region_outcome=ai.AUTO_DETECTION_REQUESTED_FAILED,l.label=2;case 2:return[2,e]}})})},t.prototype.updateCloudDiscoveryMetadata=function(e){var r,n;return V(this,void 0,void 0,function(){var o,i,a;return Q(this,function(s){switch(s.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(S.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),this.logger.verbose("Attempting to get cloud discovery metadata in the config"),this.logger.verbosePii("Known Authorities: "+(this.authorityOptions.knownAuthorities||w.NOT_APPLICABLE)),this.logger.verbosePii("Authority Metadata: "+(this.authorityOptions.authorityMetadata||w.NOT_APPLICABLE)),this.logger.verbosePii("Canonical Authority: "+(e.canonical_authority||w.NOT_APPLICABLE)),o=this.getCloudDiscoveryMetadataFromConfig(),o?(this.logger.verbose("Found cloud discovery metadata in the config."),e.updateCloudDiscoveryMetadata(o,!1),[2,At.CONFIG]):(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache."),i=e.isExpired(),this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!i?(this.logger.verbose("Found metadata in the cache."),[2,At.CACHE]):(i&&this.logger.verbose("The metadata entity is expired."),this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network."),(n=this.performanceClient)===null||n===void 0||n.setPreQueueTime(S.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),[4,this.getCloudDiscoveryMetadataFromNetwork()]));case 1:if(o=s.sent(),o)return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"),e.updateCloudDiscoveryMetadata(o,!0),[2,At.NETWORK];if(this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."),a=this.getCloudDiscoveryMetadataFromHarcodedValues(),a&&!this.options.skipAuthorityMetadataCache)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),e.updateCloudDiscoveryMetadata(a,!1),[2,At.HARDCODED_VALUES];throw this.logger.error("Did not find cloud discovery metadata from hardcoded values... Metadata could not be obtained from config, cache, network or hardcoded values. Throwing Untrusted Authority Error."),ue.createUntrustedAuthorityError()}})})},t.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityType===et.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),t.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort);if(this.authorityOptions.cloudDiscoveryMetadata){this.logger.verbose("The cloud discovery metadata has been provided as a network response, in the config.");try{this.logger.verbose("Attempting to parse the cloud discovery metadata.");var e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),r=t.getCloudDiscoveryMetadataFromNetworkResponse(e.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),r)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),r;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),ue.createInvalidCloudDiscoveryMetadataError()}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),t.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null},t.prototype.getCloudDiscoveryMetadataFromNetwork=function(){var e;return V(this,void 0,void 0,function(){var r,n,o,i,a,s,l,c;return Q(this,function(u){switch(u.label){case 0:(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(S.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),r=""+w.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",n={},o=null,u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(r,n)];case 2:if(i=u.sent(),a=void 0,s=void 0,HE(i.body))a=i.body,s=a.metadata,this.logger.verbosePii("tenant_discovery_endpoint is: "+a.tenant_discovery_endpoint);else if(UE(i.body)){if(this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: "+i.status),a=i.body,a.error===w.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),[2,null];this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is "+a.error),this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is "+a.error_description),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),s=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),[2,null];return this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),o=t.getCloudDiscoveryMetadataFromNetworkResponse(s,this.hostnameAndPort),[3,4];case 3:return l=u.sent(),l instanceof U?this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
|
|
120
|
+
Error: `+l.errorCode+`
|
|
121
|
+
Error Description: `+l.errorMessage):(c=l,this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
|
|
122
|
+
Error: `+c.name+`
|
|
123
|
+
Error Description: `+c.message)),[2,null];case 4:return o||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),o=t.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,o]}})})},t.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in Ph?Ph[this.canonicalAuthority]:null},t.prototype.isInKnownAuthorities=function(){var e=this,r=this.authorityOptions.knownAuthorities.filter(function(n){return ee.getDomainFromUrl(n).toLowerCase()===e.hostnameAndPort});return r.length>0},t.generateAuthority=function(e,r){var n;if(r&&r.azureCloudInstance!==Pi.None){var o=r.tenant?r.tenant:w.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 F.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},t.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},t.isPublicCloudAuthority=function(e){return w.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},t.buildRegionalAuthorityString=function(e,r,n){var o=new ee(e);o.validateAsUri();var i=o.getUrlComponents(),a=r+"."+i.HostNameAndPort;this.isPublicCloudAuthority(i.HostNameAndPort)&&(a=r+"."+w.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var s=ee.constructAuthorityUriFromObject(ne(ne({},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,w.REGIONAL_AUTH_NON_MSI_QUERY_STRING),e.end_session_endpoint&&(e.end_session_endpoint=t.buildRegionalAuthorityString(e.end_session_endpoint,r)),e},t.transformCIAMAuthority=function(e){var r=e.endsWith(w.FORWARD_SLASH)?e:""+e+w.FORWARD_SLASH,n=new ee(e),o=n.getUrlComponents();if(o.PathSegments.length===0&&o.HostNameAndPort.endsWith(w.CIAM_AUTH_URL)){var i=o.HostNameAndPort.split(".")[0];r=""+r+i+w.AAD_TENANT_DOMAIN_SUFFIX}return r},t.reservedTenantDomains=new Set(["{tenant}","{tenantid}",wn.COMMON,wn.CONSUMERS,wn.ORGANIZATIONS]),t}();/*! @azure/msal-common v13.3.1 2023-10-27 */var ks=function(){function t(){}return t.createDiscoveredInstance=function(e,r,n,o,i,a,s){return V(this,void 0,void 0,function(){var l,c,u;return Q(this,function(d){switch(d.label){case 0:a==null||a.addQueueMeasurement(S.AuthorityFactoryCreateDiscoveredInstance,s),l=Ri.transformCIAMAuthority(e),c=t.createInstance(l,r,n,o,i,a,s),d.label=1;case 1:return d.trys.push([1,3,,4]),a==null||a.setPreQueueTime(S.AuthorityResolveEndpointsAsync,s),[4,c.resolveEndpointsAsync()];case 2:return d.sent(),[2,c];case 3:throw u=d.sent(),F.createEndpointDiscoveryIncompleteError(u);case 4:return[2]}})})},t.createInstance=function(e,r,n,o,i,a,s){if(O.isEmpty(e))throw ue.createUrlEmptyError();return new Ri(e,r,n,o,i,a,s)},t}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Cs=function(){function t(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return t.isServerTelemetryEntity=function(e,r){var n=e.indexOf(Le.CACHE_KEY)===0,o=!0;return r&&(o=r.hasOwnProperty("failedRequests")&&r.hasOwnProperty("errors")&&r.hasOwnProperty("cacheHits")),n&&o},t}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Nh=function(){function t(){}return t.isThrottlingEntity=function(e,r){var n=!1;e&&(n=e.indexOf(ii.THROTTLING_PREFIX)===0);var o=!0;return r&&(o=r.hasOwnProperty("throttleTime")),n&&o},t}();/*! @azure/msal-common v13.3.1 2023-10-27 */var jE={sendGetRequestAsync:function(){var t="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(U.createUnexpectedError(t))},sendPostRequestAsync:function(){var t="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(U.createUnexpectedError(t))}};/*! @azure/msal-common v13.3.1 2023-10-27 */var va={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."}},Rh=function(t){vt(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(va.missingKidError.code,va.missingKidError.desc)},e.createMissingAlgError=function(){return new e(va.missingAlgError.code,va.missingAlgError.desc)},e}(U);/*! @azure/msal-common v13.3.1 2023-10-27 */var KE=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 Rh.createMissingKidError();if(!e.alg)throw Rh.createMissingAlgError();var r=new t({typ:e.typ||au.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(r)},t}();/*! @azure/msal-common v13.3.1 2023-10-27 */var GE=function(){function t(e,r){this.cacheOutcome=Dr.NO_CACHE_HIT,this.cacheManager=r,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||w.EMPTY_STRING,this.wrapperVer=e.wrapperVer||w.EMPTY_STRING,this.telemetryCacheKey=Le.CACHE_KEY+xe.CACHE_KEY_SEPARATOR+e.clientId}return t.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+Le.VALUE_SEPARATOR+this.cacheOutcome,r=[this.wrapperSKU,this.wrapperVer].join(Le.VALUE_SEPARATOR),n=this.getRegionDiscoveryFields(),o=[e,n].join(Le.VALUE_SEPARATOR);return[Le.SCHEMA_VERSION,o,r].join(Le.CATEGORY_SEPARATOR)},t.prototype.generateLastRequestHeaderValue=function(){var e=this.getLastRequests(),r=t.maxErrorsToSend(e),n=e.failedRequests.slice(0,2*r).join(Le.VALUE_SEPARATOR),o=e.errors.slice(0,r).join(Le.VALUE_SEPARATOR),i=e.errors.length,a=r<i?Le.OVERFLOW_TRUE:Le.OVERFLOW_FALSE,s=[i,a].join(Le.VALUE_SEPARATOR);return[Le.SCHEMA_VERSION,e.cacheHits,n,o,s].join(Le.CATEGORY_SEPARATOR)},t.prototype.cacheFailedRequest=function(e){var r=this.getLastRequests();r.errors.length>=Le.MAX_CACHED_ERRORS&&(r.failedRequests.shift(),r.failedRequests.shift(),r.errors.shift()),r.failedRequests.push(this.apiId,this.correlationId),O.isEmpty(e.subError)?O.isEmpty(e.errorCode)?e&&e.toString()?r.errors.push(e.toString()):r.errors.push(Le.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 Cs,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 Cs;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]||w.EMPTY_STRING,s=e.failedRequests[2*r+1]||w.EMPTY_STRING,l=e.errors[r]||w.EMPTY_STRING;if(o+=a.toString().length+s.toString().length+l.length+3,o<Le.MAX_LAST_HEADER_BYTES)n+=1;else break}return n},t.prototype.getRegionDiscoveryFields=function(){var e=[];return e.push(this.regionUsed||w.EMPTY_STRING),e.push(this.regionSource||w.EMPTY_STRING),e.push(this.regionOutcome||w.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 v13.3.1 2023-10-27 */var zm=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.queueMeasurements=new Map,this.preQueueTimeByCorrelationId=new Map}return t.prototype.startPerformanceMeasurement=function(e,r){return{}},t.prototype.startPerformanceMeasuremeant=function(e,r){return{}},t.prototype.getIntFields=function(){return FE},t.prototype.getPreQueueTime=function(e,r){var n=this.preQueueTimeByCorrelationId.get(r);if(n){if(n.name!==e){this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue time found for "+e+", unable to add queue measurement");return}}else{this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue times found for correlationId: "+r+", unable to add queue measurement");return}return n.time},t.prototype.calculateQueuedTime=function(e,r){return e<1?(this.logger.trace("PerformanceClient: preQueueTime should be a positive integer and not "+e),0):r<1?(this.logger.trace("PerformanceClient: currentTime should be a positive integer and not "+r),0):r<e?(this.logger.trace("PerformanceClient: currentTime is less than preQueueTime, check how time is being retrieved"),0):r-e},t.prototype.addQueueMeasurement=function(e,r,n,o){if(!r){this.logger.trace("PerformanceClient.addQueueMeasurement: correlationId not provided for "+e+", cannot add queue measurement");return}if(n===0)this.logger.trace("PerformanceClient.addQueueMeasurement: queue time provided for "+e+" is "+n);else if(!n){this.logger.trace("PerformanceClient.addQueueMeasurement: no queue time provided for "+e);return}var i={eventName:e,queueTime:n,manuallyCompleted:o},a=this.queueMeasurements.get(r);if(a)a.push(i),this.queueMeasurements.set(r,a);else{this.logger.trace("PerformanceClient.addQueueMeasurement: adding correlationId "+r+" to queue measurements");var s=[i];this.queueMeasurements.set(r,s)}this.preQueueTimeByCorrelationId.delete(r)},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 l={eventId:this.generateId(),status:ys.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:a,appName:(o=this.applicationTelemetry)===null||o===void 0?void 0:o.appName,appVersion:(i=this.applicationTelemetry)===null||i===void 0?void 0:i.appVersion};return this.cacheEventByCorrelationId(l),{endMeasurement:function(c){return n.endMeasurement(ne(ne({},l),c),s)},discardMeasurement:function(){return n.discardMeasurements(l.correlationId)},addStaticFields:function(c){return n.addStaticFields(c,l.correlationId)},increment:function(c){return n.increment(c,l.correlationId)},measurement:s,event:l}},t.prototype.endMeasurement=function(e,r){var n=this,o,i,a=this.eventsByCorrelationId.get(e.correlationId);if(!a)return this.logger.trace("PerformanceClient: Measurement not found for "+e.eventId,e.correlationId),null;var s=e.eventId===a.eventId,l={totalQueueTime:0,totalQueueCount:0,manuallyCompletedCount:0};s?(l=this.getQueueInfo(e.correlationId),this.discardCache(a.correlationId)):(o=a.incompleteSubMeasurements)===null||o===void 0||o.delete(e.eventId),r==null||r.endMeasurement();var c=r==null?void 0:r.flushMeasurement();if(!c)return this.logger.trace("PerformanceClient: Performance measurement not taken",a.correlationId),null;if(this.logger.trace("PerformanceClient: Performance measurement ended for "+e.name+": "+c+" ms",e.correlationId),!s)return a[e.name+"DurationMs"]=Math.floor(c),ne({},a);var u=ne(ne({},a),e),d=0;return(i=u.incompleteSubMeasurements)===null||i===void 0||i.forEach(function(f){n.logger.trace("PerformanceClient: Incomplete submeasurement "+f.name+" found for "+e.name,u.correlationId),d++}),u.incompleteSubMeasurements=void 0,u=ne(ne({},u),{durationMs:Math.round(c),queuedTimeMs:l.totalQueueTime,queuedCount:l.totalQueueCount,queuedManuallyCompletedCount:l.manuallyCompletedCount,status:ys.Completed,incompleteSubsCount:d}),this.truncateIntegralFields(u,this.getIntFields()),this.emitEvents([u],e.correlationId),u},t.prototype.addStaticFields=function(e,r){this.logger.trace("PerformanceClient: Updating static fields");var n=this.eventsByCorrelationId.get(r);n?this.eventsByCorrelationId.set(r,ne(ne({},n),e)):this.logger.trace("PerformanceClient: Event not found for",r)},t.prototype.increment=function(e,r){this.logger.trace("PerformanceClient: Updating counters");var n=this.eventsByCorrelationId.get(r);if(n)for(var o in e)n.hasOwnProperty(o)||(n[o]=0),n[o]+=e[o];else this.logger.trace("PerformanceClient: Event not found for",r)},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.incompleteSubMeasurements=r.incompleteSubMeasurements||new Map,r.incompleteSubMeasurements.set(e.eventId,{name:e.name,startTimeMs:e.startTimeMs})):(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" started",e.correlationId),this.eventsByCorrelationId.set(e.correlationId,ne({},e)))},t.prototype.getQueueInfo=function(e){var r=this.queueMeasurements.get(e);r||this.logger.trace("PerformanceClient: no queue measurements found for for correlationId: "+e);var n=0,o=0,i=0;return r==null||r.forEach(function(a){n+=a.queueTime,o++,i+=a.manuallyCompleted?1:0}),{totalQueueTime:n,totalQueueCount:o,manuallyCompletedCount:i}},t.prototype.discardMeasurements=function(e){this.logger.trace("PerformanceClient: Performance measurements discarded",e),this.eventsByCorrelationId.delete(e)},t.prototype.discardCache=function(e){this.discardMeasurements(e),this.logger.trace("PerformanceClient: QueueMeasurements discarded",e),this.queueMeasurements.delete(e),this.logger.trace("PerformanceClient: Pre-queue times discarded",e),this.preQueueTimeByCorrelationId.delete(e)},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.prototype.truncateIntegralFields=function(e,r){r.forEach(function(n){n in e&&typeof e[n]=="number"&&(e[n]=Math.floor(e[n]))})},t}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Bh=function(){function t(){}return t.prototype.startMeasurement=function(){},t.prototype.endMeasurement=function(){},t.prototype.flushMeasurement=function(){return null},t}(),WE=function(t){vt(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 Bh},e.prototype.startPerformanceMeasurement=function(){return new Bh},e.prototype.calculateQueuedTime=function(r,n){return 0},e.prototype.addQueueMeasurement=function(r,n,o){},e.prototype.setPreQueueTime=function(r,n){},e}(zm);/*! @azure/msal-browser v2.38.3 2023-10-27 */var N={pkceNotGenerated:{code:"pkce_not_created",desc:"The PKCE code challenge and verifier could not be generated."},cryptoDoesNotExist:{code:"crypto_nonexistent",desc:"The crypto object or function is not available."},httpMethodNotImplementedError:{code:"http_method_not_implemented",desc:"The HTTP method given has not been implemented in this library."},emptyNavigateUriError:{code:"empty_navigate_uri",desc:"Navigation URI is empty. Please check stack trace for more info."},hashEmptyError:{code:"hash_empty_error",desc:"Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors."},hashDoesNotContainStateError:{code:"no_state_in_hash",desc:"Hash does not contain state. Please verify that the request originated from msal."},hashDoesNotContainKnownPropertiesError:{code:"hash_does_not_contain_known_properties",desc:"Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors."},unableToParseStateError:{code:"unable_to_parse_state",desc:"Unable to parse state. Please verify that the request originated from msal."},stateInteractionTypeMismatchError:{code:"state_interaction_type_mismatch",desc:"Hash contains state but the interaction type does not match the caller."},interactionInProgress:{code:"interaction_in_progress",desc:"Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. For more visit: aka.ms/msaljs/browser-errors."},popupWindowError:{code:"popup_window_error",desc:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser."},emptyWindowError:{code:"empty_window_error",desc:"window.open returned null or undefined window object."},userCancelledError:{code:"user_cancelled",desc:"User cancelled the flow."},monitorPopupTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},monitorIframeTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},redirectInIframeError:{code:"redirect_in_iframe",desc:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs."},blockTokenRequestsInHiddenIframeError:{code:"block_iframe_reload",desc:"Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors"},blockAcquireTokenInPopupsError:{code:"block_nested_popups",desc:"Request was blocked inside a popup because MSAL detected it was running in a popup."},iframeClosedPrematurelyError:{code:"iframe_closed_prematurely",desc:"The iframe being monitored was closed prematurely."},silentLogoutUnsupportedError:{code:"silent_logout_unsupported",desc:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead."},noAccountError:{code:"no_account_error",desc:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request."},silentPromptValueError:{code:"silent_prompt_value_error",desc:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'."},noTokenRequestCacheError:{code:"no_token_request_cache_error",desc:"No token request found in cache."},unableToParseTokenRequestCacheError:{code:"unable_to_parse_token_request_cache_error",desc:"The cached token request could not be parsed."},noCachedAuthorityError:{code:"no_cached_authority_error",desc:"No cached authority found."},authRequestNotSet:{code:"auth_request_not_set_error",desc:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler"},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},notInBrowserEnvironment:{code:"non_browser_environment",desc:"Login and token requests are not supported in non-browser environments."},databaseNotOpen:{code:"database_not_open",desc:"Database is not open!"},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},postRequestFailed:{code:"post_request_failed",desc:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'"},getRequestFailed:{code:"get_request_failed",desc:"Network request failed. Please check the network trace to determine root cause."},failedToParseNetworkResponse:{code:"failed_to_parse_response",desc:"Failed to parse network response. Check network trace."},unableToLoadTokenError:{code:"unable_to_load_token",desc:"Error loading token to cache."},signingKeyNotFoundInStorage:{code:"crypto_key_not_found",desc:"Cryptographic Key or Keypair not found in browser storage."},authCodeRequired:{code:"auth_code_required",desc:"An authorization code must be provided (as the `code` property on the request) to this flow."},authCodeOrNativeAccountRequired:{code:"auth_code_or_nativeAccountId_required",desc:"An authorization code or nativeAccountId must be provided to this flow."},spaCodeAndNativeAccountPresent:{code:"spa_code_and_nativeAccountId_present",desc:"Request cannot contain both spa code and native account id."},databaseUnavailable:{code:"database_unavailable",desc:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts."},unableToAcquireTokenFromNativePlatform:{code:"unable_to_acquire_token_from_native_platform",desc:"Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors."},nativeHandshakeTimeout:{code:"native_handshake_timeout",desc:"Timed out while attempting to establish connection to browser extension"},nativeExtensionNotInstalled:{code:"native_extension_not_installed",desc:"Native extension is not installed. If you think this is a mistake call the initialize function."},nativeConnectionNotEstablished:{code:"native_connection_not_established",desc:"Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors."},nativeBrokerCalledBeforeInitialize:{code:"native_broker_called_before_initialize",desc:"You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors."},nativePromptNotSupported:{code:"native_prompt_not_supported",desc:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow."}},M=function(t){Ke(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(N.pkceNotGenerated.code,N.pkceNotGenerated.desc+" Detail:"+r)},e.createCryptoNotAvailableError=function(r){return new e(N.cryptoDoesNotExist.code,N.cryptoDoesNotExist.desc+" Detail:"+r)},e.createHttpMethodNotImplementedError=function(r){return new e(N.httpMethodNotImplementedError.code,N.httpMethodNotImplementedError.desc+" Given Method: "+r)},e.createEmptyNavigationUriError=function(){return new e(N.emptyNavigateUriError.code,N.emptyNavigateUriError.desc)},e.createEmptyHashError=function(r){return new e(N.hashEmptyError.code,N.hashEmptyError.desc+" Given Url: "+r)},e.createHashDoesNotContainStateError=function(){return new e(N.hashDoesNotContainStateError.code,N.hashDoesNotContainStateError.desc)},e.createHashDoesNotContainKnownPropertiesError=function(){return new e(N.hashDoesNotContainKnownPropertiesError.code,N.hashDoesNotContainKnownPropertiesError.desc)},e.createUnableToParseStateError=function(){return new e(N.unableToParseStateError.code,N.unableToParseStateError.desc)},e.createStateInteractionTypeMismatchError=function(){return new e(N.stateInteractionTypeMismatchError.code,N.stateInteractionTypeMismatchError.desc)},e.createInteractionInProgressError=function(){return new e(N.interactionInProgress.code,N.interactionInProgress.desc)},e.createPopupWindowError=function(r){var n=N.popupWindowError.desc;return n=O.isEmpty(r)?n:n+" Details: "+r,new e(N.popupWindowError.code,n)},e.createEmptyWindowCreatedError=function(){return new e(N.emptyWindowError.code,N.emptyWindowError.desc)},e.createUserCancelledError=function(){return new e(N.userCancelledError.code,N.userCancelledError.desc)},e.createMonitorPopupTimeoutError=function(){return new e(N.monitorPopupTimeoutError.code,N.monitorPopupTimeoutError.desc)},e.createMonitorIframeTimeoutError=function(){return new e(N.monitorIframeTimeoutError.code,N.monitorIframeTimeoutError.desc)},e.createRedirectInIframeError=function(r){return new e(N.redirectInIframeError.code,N.redirectInIframeError.desc+" (window.parent !== window) => "+r)},e.createBlockReloadInHiddenIframeError=function(){return new e(N.blockTokenRequestsInHiddenIframeError.code,N.blockTokenRequestsInHiddenIframeError.desc)},e.createBlockAcquireTokenInPopupsError=function(){return new e(N.blockAcquireTokenInPopupsError.code,N.blockAcquireTokenInPopupsError.desc)},e.createIframeClosedPrematurelyError=function(){return new e(N.iframeClosedPrematurelyError.code,N.iframeClosedPrematurelyError.desc)},e.createSilentLogoutUnsupportedError=function(){return new e(N.silentLogoutUnsupportedError.code,N.silentLogoutUnsupportedError.desc)},e.createNoAccountError=function(){return new e(N.noAccountError.code,N.noAccountError.desc)},e.createSilentPromptValueError=function(r){return new e(N.silentPromptValueError.code,N.silentPromptValueError.desc+" Given value: "+r)},e.createUnableToParseTokenRequestCacheError=function(){return new e(N.unableToParseTokenRequestCacheError.code,N.unableToParseTokenRequestCacheError.desc)},e.createNoTokenRequestCacheError=function(){return new e(N.noTokenRequestCacheError.code,N.noTokenRequestCacheError.desc)},e.createAuthRequestNotSetError=function(){return new e(N.authRequestNotSet.code,N.authRequestNotSet.desc)},e.createNoCachedAuthorityError=function(){return new e(N.noCachedAuthorityError.code,N.noCachedAuthorityError.desc)},e.createInvalidCacheTypeError=function(){return new e(N.invalidCacheType.code,""+N.invalidCacheType.desc)},e.createNonBrowserEnvironmentError=function(){return new e(N.notInBrowserEnvironment.code,N.notInBrowserEnvironment.desc)},e.createDatabaseNotOpenError=function(){return new e(N.databaseNotOpen.code,N.databaseNotOpen.desc)},e.createNoNetworkConnectivityError=function(){return new e(N.noNetworkConnectivity.code,N.noNetworkConnectivity.desc)},e.createPostRequestFailedError=function(r,n){return new e(N.postRequestFailed.code,N.postRequestFailed.desc+" | Network client threw: "+r+" | Attempted to reach: "+n.split("?")[0])},e.createGetRequestFailedError=function(r,n){return new e(N.getRequestFailed.code,N.getRequestFailed.desc+" | Network client threw: "+r+" | Attempted to reach: "+n.split("?")[0])},e.createFailedToParseNetworkResponseError=function(r){return new e(N.failedToParseNetworkResponse.code,N.failedToParseNetworkResponse.desc+" | Attempted to reach: "+r.split("?")[0])},e.createUnableToLoadTokenError=function(r){return new e(N.unableToLoadTokenError.code,N.unableToLoadTokenError.desc+" | "+r)},e.createSigningKeyNotFoundInStorageError=function(r){return new e(N.signingKeyNotFoundInStorage.code,N.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+r)},e.createAuthCodeRequiredError=function(){return new e(N.authCodeRequired.code,N.authCodeRequired.desc)},e.createAuthCodeOrNativeAccountIdRequiredError=function(){return new e(N.authCodeOrNativeAccountRequired.code,N.authCodeOrNativeAccountRequired.desc)},e.createSpaCodeAndNativeAccountIdPresentError=function(){return new e(N.spaCodeAndNativeAccountPresent.code,N.spaCodeAndNativeAccountPresent.desc)},e.createDatabaseUnavailableError=function(){return new e(N.databaseUnavailable.code,N.databaseUnavailable.desc)},e.createUnableToAcquireTokenFromNativePlatformError=function(){return new e(N.unableToAcquireTokenFromNativePlatform.code,N.unableToAcquireTokenFromNativePlatform.desc)},e.createNativeHandshakeTimeoutError=function(){return new e(N.nativeHandshakeTimeout.code,N.nativeHandshakeTimeout.desc)},e.createNativeExtensionNotInstalledError=function(){return new e(N.nativeExtensionNotInstalled.code,N.nativeExtensionNotInstalled.desc)},e.createNativeConnectionNotEstablishedError=function(){return new e(N.nativeConnectionNotEstablished.code,N.nativeConnectionNotEstablished.desc)},e.createNativeBrokerCalledBeforeInitialize=function(){return new e(N.nativeBrokerCalledBeforeInitialize.code,N.nativeBrokerCalledBeforeInitialize.desc)},e.createNativePromptParameterNotSupportedError=function(){return new e(N.nativePromptNotSupported.code,N.nativePromptNotSupported.desc)},e}(U);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Kt={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"},Go={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},dr;(function(t){t.HandshakeRequest="Handshake",t.HandshakeResponse="HandshakeResponse",t.GetToken="GetToken",t.Response="Response"})(dr||(dr={}));var Ie;(function(t){t.LocalStorage="localStorage",t.SessionStorage="sessionStorage",t.MemoryStorage="memoryStorage"})(Ie||(Ie={}));var Zt;(function(t){t.GET="GET",t.POST="POST"})(Zt||(Zt={}));var te;(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",t.REDIRECT_CONTEXT="request.redirect.context"})(te||(te={}));var Xt;(function(t){t.ACCOUNT_KEYS="msal.account.keys",t.TOKEN_KEYS="msal.token.keys"})(Xt||(Xt={}));var Zn;(function(t){t.WRAPPER_SKU="wrapper.sku",t.WRAPPER_VER="wrapper.version"})(Zn||(Zn={}));var le;(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"})(le||(le={}));var z;(function(t){t.Redirect="redirect",t.Popup="popup",t.Silent="silent",t.None="none"})(z||(z={}));var xh;(function(t){t.Startup="startup",t.Login="login",t.Logout="logout",t.AcquireToken="acquireToken",t.SsoSilent="ssoSilent",t.HandleRedirect="handleRedirect",t.None="none"})(xh||(xh={}));var Mh={scopes:Ki},yo="jwk",Oh;(function(t){t.React="@azure/msal-react",t.Angular="@azure/msal-angular"})(Oh||(Oh={}));var uu="msal.db",VE=1,QE=uu+".keys",lt;(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"})(lt||(lt={}));/*! @azure/msal-browser v2.38.3 2023-10-27 */var at={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."}},_s=function(t){Ke(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(at.redirectUriNotSet.code,at.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(at.postLogoutUriNotSet.code,at.postLogoutUriNotSet.desc)},e.createStorageNotSupportedError=function(r){return new e(at.storageNotSupportedError.code,at.storageNotSupportedError.desc+" Given Location: "+r)},e.createRedirectCallbacksNotSetError=function(){return new e(at.noRedirectCallbacksSet.code,at.noRedirectCallbacksSet.desc)},e.createStubPcaInstanceCalledError=function(){return new e(at.stubPcaInstanceCalled.code,at.stubPcaInstanceCalled.desc)},e.createInMemoryRedirectUnavailableError=function(){return new e(at.inMemRedirectUnavailable.code,at.inMemRedirectUnavailable.desc)},e.createEntropyNotProvided=function(){return new e(at.entropyNotProvided.code,at.entropyNotProvided.desc)},e}(U);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Fh=function(){function t(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return t.prototype.validateWindowStorage=function(e){if(e!==Ie.LocalStorage&&e!==Ie.SessionStorage)throw _s.createStorageNotSupportedError(e);var r=!!window[e];if(!r)throw _s.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.38.3 2023-10-27 */var du=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.38.3 2023-10-27 */var Lm=function(){function t(){}return t.extractBrowserRequestState=function(e,r){if(O.isEmpty(r))return null;try{var n=vr.parseRequestState(e,r);return n.libraryState.meta}catch(o){throw F.createInvalidStateError(r,o)}},t.parseServerResponseFromHash=function(e){if(!e)return{};var r=new ee(e);return ee.getDeserializedHash(r.getHash())},t}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var fu=function(t){Ke(e,t);function e(r,n,o,i){var a=t.call(this,r,o,i)||this;return a.COOKIE_LIFE_MULTIPLIER=24*60*60*1e3,a.cacheConfig=n,a.logger=i,a.internalStorage=new du,a.browserStorage=a.setupBrowserStorage(a.cacheConfig.cacheLocation),a.temporaryCacheStorage=a.setupTemporaryCacheStorage(a.cacheConfig.temporaryCacheLocation,a.cacheConfig.cacheLocation),n.cacheMigrationEnabled&&(a.migrateCacheEntries(),a.createKeyMaps()),a}return e.prototype.setupBrowserStorage=function(r){switch(r){case Ie.LocalStorage:case Ie.SessionStorage:try{return new Fh(r)}catch(n){this.logger.verbose(n);break}}return this.cacheConfig.cacheLocation=Ie.MemoryStorage,new du},e.prototype.setupTemporaryCacheStorage=function(r,n){switch(n){case Ie.LocalStorage:case Ie.SessionStorage:try{return new Fh(r||Ie.SessionStorage)}catch(o){return this.logger.verbose(o),this.internalStorage}case Ie.MemoryStorage:default:return this.internalStorage}},e.prototype.migrateCacheEntries=function(){var r=this,n=w.CACHE_PREFIX+"."+Ne.ID_TOKEN,o=w.CACHE_PREFIX+"."+Ne.CLIENT_INFO,i=w.CACHE_PREFIX+"."+Ne.ERROR,a=w.CACHE_PREFIX+"."+Ne.ERROR_DESC,s=this.browserStorage.getItem(n),l=this.browserStorage.getItem(o),c=this.browserStorage.getItem(i),u=this.browserStorage.getItem(a),d=[s,l,c,u],f=[Ne.ID_TOKEN,Ne.CLIENT_INFO,Ne.ERROR,Ne.ERROR_DESC];f.forEach(function(p,h){return r.migrateCacheEntry(p,d[h])})},e.prototype.migrateCacheEntry=function(r,n){n&&this.setTemporaryCache(r,n,!0)},e.prototype.createKeyMaps=function(){var r=this;this.logger.trace("BrowserCacheManager - createKeyMaps called.");var n=this.getItem(Xt.ACCOUNT_KEYS),o=this.getItem(Xt.TOKEN_KEYS+"."+this.clientId);if(n&&o){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}var i=this.browserStorage.getKeys();i.forEach(function(a){if(r.isCredentialKey(a)){var s=r.getItem(a);if(s){var l=r.validateAndParseJson(s);if(l&&l.hasOwnProperty("credentialType"))switch(l.credentialType){case j.ID_TOKEN:if(hn.isIdTokenEntity(l)){r.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),r.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: "+a+" found, saving key to token key map");var c=st.toObject(new hn,l),u=r.updateCredentialCacheKey(a,c);r.addTokenKey(u,j.ID_TOKEN);return}else r.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),r.logger.tracePii("BrowserCacheManager:createKeyMaps - failed idToken validation on key: "+a);break;case j.ACCESS_TOKEN:case j.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(pn.isAccessTokenEntity(l)){r.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),r.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: "+a+" found, saving key to token key map");var d=st.toObject(new pn,l),u=r.updateCredentialCacheKey(a,d);r.addTokenKey(u,j.ACCESS_TOKEN);return}else r.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),r.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: "+a);break;case j.REFRESH_TOKEN:if(Xn.isRefreshTokenEntity(l)){r.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),r.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: "+a+" found, saving key to token key map");var f=st.toObject(new Xn,l),u=r.updateCredentialCacheKey(a,f);r.addTokenKey(u,j.REFRESH_TOKEN);return}else r.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),r.logger.tracePii("BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: "+a);break}}}if(r.isAccountKey(a)){var s=r.getItem(a);if(s){var p=r.validateAndParseJson(s);p&&Ue.isAccountEntity(p)&&(r.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),r.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: "+a+" found, saving key to account key map"),r.addAccountKeyToMap(a))}}})},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){this.logger.trace("BrowserCacheManager.getAccount called");var n=this.getItem(r);if(!n)return this.removeAccountKeyFromMap(r),null;var o=this.validateAndParseJson(n);return!o||!Ue.isAccountEntity(o)?(this.removeAccountKeyFromMap(r),null):st.toObject(new Ue,o)},e.prototype.setAccount=function(r){this.logger.trace("BrowserCacheManager.setAccount called");var n=r.generateAccountKey();this.setItem(n,JSON.stringify(r)),this.addAccountKeyToMap(n)},e.prototype.getAccountKeys=function(){this.logger.trace("BrowserCacheManager.getAccountKeys called");var r=this.getItem(Xt.ACCOUNT_KEYS);return r?JSON.parse(r):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])},e.prototype.addAccountKeyToMap=function(r){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii("BrowserCacheManager.addAccountKeyToMap called with key: "+r);var n=this.getAccountKeys();n.indexOf(r)===-1?(n.push(r),this.setItem(Xt.ACCOUNT_KEYS,JSON.stringify(n)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")},e.prototype.removeAccountKeyFromMap=function(r){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii("BrowserCacheManager.removeAccountKeyFromMap called with key: "+r);var n=this.getAccountKeys(),o=n.indexOf(r);o>-1?(n.splice(o,1),this.setItem(Xt.ACCOUNT_KEYS,JSON.stringify(n)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")},e.prototype.removeAccount=function(r){return I(this,void 0,void 0,function(){return A(this,function(n){return t.prototype.removeAccount.call(this,r),this.removeAccountKeyFromMap(r),[2]})})},e.prototype.removeIdToken=function(r){t.prototype.removeIdToken.call(this,r),this.removeTokenKey(r,j.ID_TOKEN)},e.prototype.removeAccessToken=function(r){return I(this,void 0,void 0,function(){return A(this,function(n){return t.prototype.removeAccessToken.call(this,r),this.removeTokenKey(r,j.ACCESS_TOKEN),[2]})})},e.prototype.removeRefreshToken=function(r){t.prototype.removeRefreshToken.call(this,r),this.removeTokenKey(r,j.REFRESH_TOKEN)},e.prototype.getTokenKeys=function(){this.logger.trace("BrowserCacheManager.getTokenKeys called");var r=this.getItem(Xt.TOKEN_KEYS+"."+this.clientId);if(r){var n=this.validateAndParseJson(r);if(n&&n.hasOwnProperty("idToken")&&n.hasOwnProperty("accessToken")&&n.hasOwnProperty("refreshToken"))return n;this.logger.error("BrowserCacheManager.getTokenKeys - Token keys found but in an unknown format. Returning empty key map.")}else this.logger.verbose("BrowserCacheManager.getTokenKeys - No token keys found");return{idToken:[],accessToken:[],refreshToken:[]}},e.prototype.addTokenKey=function(r,n){this.logger.trace("BrowserCacheManager addTokenKey called");var o=this.getTokenKeys();switch(n){case j.ID_TOKEN:o.idToken.indexOf(r)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),o.idToken.push(r));break;case j.ACCESS_TOKEN:o.accessToken.indexOf(r)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),o.accessToken.push(r));break;case j.REFRESH_TOKEN:o.refreshToken.indexOf(r)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),o.refreshToken.push(r));break;default:this.logger.error("BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: "+n),F.createUnexpectedCredentialTypeError()}this.setItem(Xt.TOKEN_KEYS+"."+this.clientId,JSON.stringify(o))},e.prototype.removeTokenKey=function(r,n){this.logger.trace("BrowserCacheManager removeTokenKey called");var o=this.getTokenKeys();switch(n){case j.ID_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: "+r+" from map");var i=o.idToken.indexOf(r);i>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),o.idToken.splice(i,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case j.ACCESS_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: "+r+" from map");var a=o.accessToken.indexOf(r);a>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),o.accessToken.splice(a,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case j.REFRESH_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: "+r+" from map");var s=o.refreshToken.indexOf(r);s>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),o.refreshToken.splice(s,1)):this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken does not exist in map. Either it was previously removed or it was never added.");break;default:this.logger.error("BrowserCacheManager:removeTokenKey - CredentialType provided invalid. CredentialType: "+n),F.createUnexpectedCredentialTypeError()}this.setItem(Xt.TOKEN_KEYS+"."+this.clientId,JSON.stringify(o))},e.prototype.getIdTokenCredential=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(r,j.ID_TOKEN),null;var o=this.validateAndParseJson(n);return!o||!hn.isIdTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(r,j.ID_TOKEN),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),st.toObject(new hn,o))},e.prototype.setIdTokenCredential=function(r){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var n=r.generateCredentialKey();this.setItem(n,JSON.stringify(r)),this.addTokenKey(n,j.ID_TOKEN)},e.prototype.getAccessTokenCredential=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(r,j.ACCESS_TOKEN),null;var o=this.validateAndParseJson(n);return!o||!pn.isAccessTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(r,j.ACCESS_TOKEN),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),st.toObject(new pn,o))},e.prototype.setAccessTokenCredential=function(r){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var n=r.generateCredentialKey();this.setItem(n,JSON.stringify(r)),this.addTokenKey(n,j.ACCESS_TOKEN)},e.prototype.getRefreshTokenCredential=function(r){var n=this.getItem(r);if(!n)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(r,j.REFRESH_TOKEN),null;var o=this.validateAndParseJson(n);return!o||!Xn.isRefreshTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(r,j.REFRESH_TOKEN),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),st.toObject(new Xn,o))},e.prototype.setRefreshTokenCredential=function(r){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var n=r.generateCredentialKey();this.setItem(n,JSON.stringify(r)),this.addTokenKey(n,j.REFRESH_TOKEN)},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||!cu.isAppMetadataEntity(r,o)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),st.toObject(new cu,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||!Cs.isServerTelemetryEntity(r,o)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),st.toObject(new Cs,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&&lu.isAuthorityMetadataEntity(r,o)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),st.toObject(new lu,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(Zn.WRAPPER_SKU,r),this.internalStorage.setItem(Zn.WRAPPER_VER,n)},e.prototype.getWrapperMetadata=function(){var r=this.internalStorage.getItem(Zn.WRAPPER_SKU)||w.EMPTY_STRING,n=this.internalStorage.getItem(Zn.WRAPPER_VER)||w.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(Ne.ACTIVE_ACCOUNT_FILTERS),n=this.getItem(r);if(!n){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");var o=this.generateCacheKey(Ne.ACTIVE_ACCOUNT),i=this.getItem(o);if(!i)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;var a=this.getAccountInfoByFilter({localAccountId:i})[0]||null;return a?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(a),a):null}var s=this.validateAndParseJson(n);return s?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:s.homeAccountId,localAccountId:s.localAccountId})[0]||null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)},e.prototype.setActiveAccount=function(r){var n=this.generateCacheKey(Ne.ACTIVE_ACCOUNT_FILTERS),o=this.generateCacheKey(Ne.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 this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total "+n.length+" accounts found"),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 F.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||!Nh.isThrottlingEntity(r,o)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),st.toObject(new Nh,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===Ie.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){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))},e.prototype.containsKey=function(r){return this.browserStorage.containsKey(r)||this.temporaryCacheStorage.containsKey(r)},e.prototype.getKeys=function(){return bd(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},e.prototype.clear=function(){return I(this,void 0,void 0,function(){var r=this;return A(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(w.CACHE_PREFIX)!==-1||o.indexOf(r.clientId)!==-1)&&r.removeItem(o)}),this.internalStorage.clear(),[2]}})})},e.prototype.clearTokensAndKeysWithClaims=function(){return I(this,void 0,void 0,function(){var r,n,o=this;return A(this,function(i){switch(i.label){case 0:return this.logger.trace("BrowserCacheManager.clearTokensAndKeysWithClaims called"),r=this.getTokenKeys(),n=[],r.accessToken.forEach(function(a){var s=o.getAccessTokenCredential(a);s!=null&&s.requestedClaimsHash&&a.includes(s.requestedClaimsHash.toLowerCase())&&n.push(o.removeAccessToken(a))}),[4,Promise.all(n)];case 1:return i.sent(),n.length>0&&this.logger.warning(n.length+" access tokens with claims in the cache keys have been removed from the cache."),[2]}})})},e.prototype.setItemCookie=function(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 w.EMPTY_STRING},e.prototype.clearMsalCookies=function(){var r=this,n=w.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,w.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):O.startsWith(r,w.CACHE_PREFIX)||O.startsWith(r,Ne.ADAL_ID_TOKEN)?r:w.CACHE_PREFIX+"."+this.clientId+"."+r},e.prototype.generateAuthorityKey=function(r){var n=vr.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(te.AUTHORITY+"."+n)},e.prototype.generateNonceKey=function(r){var n=vr.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(te.NONCE_IDTOKEN+"."+n)},e.prototype.generateStateKey=function(r){var n=vr.parseRequestState(this.cryptoImpl,r).libraryState.id;return this.generateCacheKey(te.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 l=this.generateNonceKey(r);this.setTemporaryCache(l,n,!1);var c=this.generateAuthorityKey(r);if(this.setTemporaryCache(c,o,!1),a){var u={credential:a.homeAccountId,type:Ct.HOME_ACCOUNT_ID};this.setTemporaryCache(te.CCS_CREDENTIAL,JSON.stringify(u),!0)}else if(!O.isEmpty(i)){var u={credential:i,type:Ct.UPN};this.setTemporaryCache(te.CCS_CREDENTIAL,JSON.stringify(u),!0)}},e.prototype.resetRequestCache=function(r){var n=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),O.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(te.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(te.ORIGIN_URI)),this.removeItem(this.generateCacheKey(te.URL_HASH)),this.removeItem(this.generateCacheKey(te.CORRELATION_ID)),this.removeItem(this.generateCacheKey(te.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(te.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||w.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(te.REQUEST_STATE)!==-1){var i=n.temporaryCacheStorage.getItem(o);if(i){var a=Lm.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(te.REQUEST_PARAMS,o,!0)},e.prototype.getCachedRequest=function(r,n){this.logger.trace("BrowserCacheManager.getCachedRequest called");var o=this.getTemporaryCache(te.REQUEST_PARAMS,!0);if(!o)throw M.createNoTokenRequestCacheError();var i=this.validateAndParseJson(n.base64Decode(o));if(!i)throw M.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(te.REQUEST_PARAMS)),O.isEmpty(i.authority)){var a=this.generateAuthorityKey(r),s=this.getTemporaryCache(a);if(!s)throw M.createNoCachedAuthorityError();i.authority=s}return i},e.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var r=this.getTemporaryCache(te.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=w.CACHE_PREFIX+"."+te.INTERACTION_STATUS_KEY;return this.getTemporaryCache(r,!1)},e.prototype.setInteractionInProgress=function(r){var n=w.CACHE_PREFIX+"."+te.INTERACTION_STATUS_KEY;if(r){if(this.getInteractionInProgress())throw M.createInteractionInProgressError();this.setTemporaryCache(n,this.clientId,!1)}else!r&&this.getInteractionInProgress()===this.clientId&&this.removeItem(n)},e.prototype.getLegacyLoginHint=function(){var r=this.getTemporaryCache(Ne.ADAL_ID_TOKEN);r&&(this.browserStorage.removeItem(Ne.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var n=this.getTemporaryCache(Ne.ID_TOKEN,!0);n&&(this.removeItem(this.generateCacheKey(Ne.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var o=n||r;if(o){var i=new or(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.prototype.getRedirectRequestContext=function(){return this.getTemporaryCache(te.REDIRECT_CONTEXT,!0)},e.prototype.setRedirectRequestContext=function(r){this.setTemporaryCache(te.REDIRECT_CONTEXT,r,!0)},e}(st),YE=function(t,e){var r={cacheLocation:Ie.MemoryStorage,temporaryCacheLocation:Ie.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};return new fu(t,r,gs,e)};/*! @azure/msal-browser v2.38.3 2023-10-27 */var Wc="@azure/msal-browser",li="2.38.3";/*! @azure/msal-browser v2.38.3 2023-10-27 */var $E=function(){function t(){}return t.prototype.sendGetRequestAsync=function(e,r){return I(this,void 0,void 0,function(){var n,o,i;return A(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,fetch(e,{method:Zt.GET,headers:this.getFetchHeaders(r)})];case 1:return n=a.sent(),[3,3];case 2:throw o=a.sent(),window.navigator.onLine?M.createGetRequestFailedError(o,e):M.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(),M.createFailedToParseNetworkResponseError(e);case 6:return[2]}})})},t.prototype.sendPostRequestAsync=function(e,r){return I(this,void 0,void 0,function(){var n,o,i,a;return A(this,function(s){switch(s.label){case 0:n=r&&r.body||w.EMPTY_STRING,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,fetch(e,{method:Zt.POST,headers:this.getFetchHeaders(r),body:n})];case 2:return o=s.sent(),[3,4];case 3:throw i=s.sent(),window.navigator.onLine?M.createPostRequestFailedError(i,e):M.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(),M.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.38.3 2023-10-27 */var XE=function(){function t(){}return t.prototype.sendGetRequestAsync=function(e,r){return I(this,void 0,void 0,function(){return A(this,function(n){return[2,this.sendRequestAsync(e,Zt.GET,r)]})})},t.prototype.sendPostRequestAsync=function(e,r){return I(this,void 0,void 0,function(){return A(this,function(n){return[2,this.sendRequestAsync(e,Zt.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===Zt.POST?a(M.createPostRequestFailedError("Failed with status "+s.status,e)):a(M.createGetRequestFailedError("Failed with status "+s.status,e)));try{var l=JSON.parse(s.responseText),c={headers:o.getHeaderDict(s),body:l,status:s.status};i(c)}catch{a(M.createFailedToParseNetworkResponseError(e))}},s.onerror=function(){window.navigator.onLine?r===Zt.POST?a(M.createPostRequestFailedError("Failed with status "+s.status,e)):a(M.createGetRequestFailedError("Failed with status "+s.status,e)):a(M.createNoNetworkConnectivityError())},r===Zt.POST&&n&&n.body)s.send(n.body);else if(r===Zt.GET)s.send();else throw M.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(),l=a.join(": ");s&&l&&(o[s]=l)}),o},t}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var _e=function(){function t(){}return t.clearHash=function(e){e.location.hash=w.EMPTY_STRING,typeof e.history.replaceState=="function"&&e.history.replaceState(null,w.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("#"):w.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(Kt.POPUP_NAME_PREFIX+".")===0},t.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},t.getHomepage=function(){var e=new ee(window.location.href),r=e.getUrlComponents();return r.Protocol+"//"+r.HostNameAndPort+"/"},t.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new $E:new XE},t.blockReloadInHiddenIframes=function(){var e=ee.hashContainsKnownProperties(window.location.hash);if(e&&t.isInIframe())throw M.createBlockReloadInHiddenIframeError()},t.blockRedirectInIframe=function(e,r){var n=t.isInIframe();if(e===z.Redirect&&n&&!r)throw M.createRedirectInIframeError(n)},t.blockAcquireTokenInPopups=function(){if(t.isInPopup())throw M.createBlockAcquireTokenInPopupsError()},t.blockNonBrowserEnvironment=function(e){if(!e)throw M.createNonBrowserEnvironmentError()},t.blockNativeBrokerCalledBeforeInitialized=function(e,r){if(e&&!r)throw M.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.38.3 2023-10-27 */var Hm=function(){function t(e,r,n,o,i,a,s,l,c){this.config=e,this.browserStorage=r,this.browserCrypto=n,this.networkClient=this.config.system.networkClient,this.eventHandler=i,this.navigationClient=a,this.nativeMessageHandler=l,this.correlationId=c||this.browserCrypto.createNewGuid(),this.logger=o.clone(Kt.MSAL_SKU,li,this.correlationId),this.performanceClient=s}return t.prototype.clearCacheOnLogout=function(e){return I(this,void 0,void 0,function(){return A(this,function(r){switch(r.label){case 0:if(!e)return[3,5];Ue.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(Ue.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,r){return I(this,void 0,void 0,function(){var n,o,i,a;return A(this,function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(S.InitializeBaseRequest,e.correlationId),this.logger.verbose("Initializing BaseAuthRequest"),n=e.authority||this.config.auth.authority,r?[4,this.validateRequestAuthority(n,r)]:[3,2];case 1:s.sent(),s.label=2;case 2:if(o=bd(e&&e.scopes||[]),i=H(H({},e),{correlationId:this.correlationId,authority:n,scopes:o}),!i.authenticationScheme)i.authenticationScheme=oe.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(i.authenticationScheme===oe.SSH){if(!e.sshJwk)throw ue.createMissingSshJwkError();if(!e.sshKid)throw ue.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+i.authenticationScheme+'" as configured in Auth request')}return this.config.cache.claimsBasedCachingEnabled&&e.claims&&!O.isEmptyObj(e.claims)?(a=i,[4,this.browserCrypto.hashString(e.claims)]):[3,4];case 3:a.requestedClaimsHash=s.sent(),s.label=4;case 4:return[2,i]}})})},t.prototype.getRedirectUri=function(e){this.logger.verbose("getRedirectUri called");var r=e||this.config.auth.redirectUri||_e.getCurrentUri();return ee.getAbsoluteUrl(r,_e.getCurrentUri())},t.prototype.validateRequestAuthority=function(e,r){return I(this,void 0,void 0,function(){var n;return A(this,function(o){switch(o.label){case 0:return[4,this.getDiscoveredAuthority(e)];case 1:if(n=o.sent(),!n.isAlias(r.environment))throw ue.createAuthorityMismatchError();return[2]}})})},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 GE(n,this.browserStorage)},t.prototype.getDiscoveredAuthority=function(e){return I(this,void 0,void 0,function(){var r;return A(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,ks.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,r,this.logger)]):[3,2];case 1:return[2,n.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,ks.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,r,this.logger)];case 3:return[2,n.sent()]}})})},t}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var bo=function(t){Ke(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.initializeAuthorizationCodeRequest=function(r){return I(this,void 0,void 0,function(){var n,o;return A(this,function(i){switch(i.label){case 0:return this.performanceClient.addQueueMeasurement(S.StandardInteractionClientInitializeAuthorizationCodeRequest,r.correlationId),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:w.EMPTY_STRING,codeVerifier:n.verifier}),r.codeChallenge=n.challenge,r.codeChallengeMethod=w.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=ee.getAbsoluteUrl(r.postLogoutRedirectUri,_e.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=ee.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,_e.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",n.correlationId),n.postLogoutRedirectUri=ee.getAbsoluteUrl(_e.getCurrentUri(),_e.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 I(this,void 0,void 0,function(){var i;return A(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(S.StandardInteractionClientCreateAuthCodeClient,this.correlationId),this.performanceClient.setPreQueueTime(S.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(r,n,o)];case 1:return i=a.sent(),[2,new Om(i,this.performanceClient)]}})})},e.prototype.getClientConfiguration=function(r,n,o){return I(this,void 0,void 0,function(){var i,a;return A(this,function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(S.StandardInteractionClientGetClientConfiguration,this.correlationId),this.logger.verbose("getClientConfiguration called",this.correlationId),this.performanceClient.setPreQueueTime(S.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),[4,this.getDiscoveredAuthority(n,o)];case 1:return i=s.sent(),a=this.config.system.loggerOptions,[2,{authOptions:{clientId:this.config.auth.clientId,authority:i,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:a.loggerCallback,piiLoggingEnabled:a.piiLoggingEnabled,logLevel:a.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:r,libraryInfo:{sku:Kt.MSAL_SKU,version:li,cpu:w.EMPTY_STRING,os:w.EMPTY_STRING},telemetry:this.config.telemetry}]}})})},e.prototype.validateAndExtractStateFromHash=function(r,n,o){if(this.logger.verbose("validateAndExtractStateFromHash called",o),!r.state)throw M.createHashDoesNotContainStateError();var i=Lm.extractBrowserRequestState(this.browserCrypto,r.state);if(!i)throw M.createUnableToParseStateError();if(i.interactionType!==n)throw M.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",o),r.state},e.prototype.getDiscoveredAuthority=function(r,n){var o;return I(this,void 0,void 0,function(){var i,a,s,l;return A(this,function(c){switch(c.label){case 0:return this.performanceClient.addQueueMeasurement(S.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),this.logger.verbose("getDiscoveredAuthority called",this.correlationId),i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(S.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),a={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},s=r||this.config.auth.authority,l=Ri.generateAuthority(s,n||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),this.performanceClient.setPreQueueTime(S.AuthorityFactoryCreateDiscoveredInstance,this.correlationId),[4,ks.createDiscoveredInstance(l,this.config.system.networkClient,this.browserStorage,a,this.logger,this.performanceClient,this.correlationId).then(function(u){return i.endMeasurement({success:!0}),u}).catch(function(u){throw i.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})];case 1:return[2,c.sent()]}})})},e.prototype.initializeAuthorizationRequest=function(r,n){return I(this,void 0,void 0,function(){var o,i,a,s,l,c,u;return A(this,function(d){switch(d.label){case 0:return this.performanceClient.addQueueMeasurement(S.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId),this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),o=this.getRedirectUri(r.redirectUri),i={interactionType:n},a=vr.setRequestState(this.browserCrypto,r&&r.state||w.EMPTY_STRING,i),this.performanceClient.setPreQueueTime(S.InitializeBaseRequest,this.correlationId),l=[{}],[4,this.initializeBaseRequest(r)];case 1:return s=H.apply(void 0,[H.apply(void 0,l.concat([d.sent()])),{redirectUri:o,state:a,nonce:r.nonce||this.browserCrypto.createNewGuid(),responseMode:fs.FRAGMENT}]),c=r.account||this.browserStorage.getActiveAccount(),c&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+c.homeAccountId,this.correlationId),s.account=c),O.isEmpty(s.loginHint)&&!c&&(u=this.browserStorage.getLegacyLoginHint(),u&&(s.loginHint=u)),[2,s]}})})},e}(Hm);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Ad=function(){function t(e,r,n,o,i){this.authModule=e,this.browserStorage=r,this.authCodeRequest=n,this.logger=o,this.performanceClient=i}return t.prototype.handleCodeResponseFromHash=function(e,r,n,o){return I(this,void 0,void 0,function(){var i,a,s;return A(this,function(l){if(this.performanceClient.addQueueMeasurement(S.HandleCodeResponseFromHash,this.authCodeRequest.correlationId),this.logger.verbose("InteractionHandler.handleCodeResponse called"),O.isEmpty(e))throw M.createEmptyHashError(e);if(i=this.browserStorage.generateStateKey(r),a=this.browserStorage.getTemporaryCache(i),!a)throw F.createStateNotFoundError("Cached State");try{s=this.authModule.handleFragmentResponse(e,a)}catch(c){throw c instanceof In&&c.subError===N.userCancelledError.code?M.createUserCancelledError():c}return this.performanceClient.setPreQueueTime(S.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),[2,this.handleCodeResponseFromServer(s,r,n,o)]})})},t.prototype.handleCodeResponseFromServer=function(e,r,n,o,i){return i===void 0&&(i=!0),I(this,void 0,void 0,function(){var a,s,l,c,u,d;return A(this,function(f){switch(f.label){case 0:if(this.performanceClient.addQueueMeasurement(S.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),a=this.browserStorage.generateStateKey(r),s=this.browserStorage.getTemporaryCache(a),!s)throw F.createStateNotFoundError("Cached State");return l=this.browserStorage.generateNonceKey(s),c=this.browserStorage.getTemporaryCache(l),this.authCodeRequest.code=e.code,e.cloud_instance_host_name?(this.performanceClient.setPreQueueTime(S.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),[4,this.updateTokenEndpointAuthority(e.cloud_instance_host_name,n,o)]):[3,2];case 1:f.sent(),f.label=2;case 2:return i&&(e.nonce=c||void 0),e.state=s,e.client_info?this.authCodeRequest.clientInfo=e.client_info:(u=this.checkCcsCredentials(),u&&(this.authCodeRequest.ccsCredential=u)),this.performanceClient.setPreQueueTime(S.AuthClientAcquireToken,this.authCodeRequest.correlationId),[4,this.authModule.acquireToken(this.authCodeRequest,e)];case 3:return d=f.sent(),this.browserStorage.cleanRequestByState(r),[2,d]}})})},t.prototype.updateTokenEndpointAuthority=function(e,r,n){return I(this,void 0,void 0,function(){var o,i;return A(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(S.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),o="https://"+e+"/"+r.tenant+"/",[4,ks.createDiscoveredInstance(o,n,this.browserStorage,r.options,this.logger,this.performanceClient,this.authCodeRequest.correlationId)];case 1:return i=a.sent(),this.authModule.updateAuthority(i),[2]}})})},t.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(te.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.38.3 2023-10-27 */var Dh=function(t){Ke(e,t);function e(r,n,o,i,a,s){var l=t.call(this,r,n,o,i,s)||this;return l.browserCrypto=a,l}return e.prototype.initiateAuthRequest=function(r,n){return I(this,void 0,void 0,function(){var o,i;return A(this,function(a){switch(a.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),O.isEmpty(r)?[3,7]:(n.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(te.ORIGIN_URI,n.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(te.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+r),o={apiId:le.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"),M.createEmptyNavigationUriError();case 8:return[2]}})})},e.prototype.handleCodeResponseFromHash=function(r,n,o,i){return I(this,void 0,void 0,function(){var a,s,l,c,u,d,f;return A(this,function(p){switch(p.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),O.isEmpty(r))throw M.createEmptyHashError(r);if(this.browserStorage.setInteractionInProgress(!1),a=this.browserStorage.generateStateKey(n),s=this.browserStorage.getTemporaryCache(a),!s)throw F.createStateNotFoundError("Cached State");try{l=this.authModule.handleFragmentResponse(r,s)}catch(h){throw h instanceof In&&h.subError===N.userCancelledError.code?M.createUserCancelledError():h}return c=this.browserStorage.generateNonceKey(s),u=this.browserStorage.getTemporaryCache(c),this.authCodeRequest.code=l.code,l.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(l.cloud_instance_host_name,o,i)]:[3,2];case 1:p.sent(),p.label=2;case 2:return l.nonce=u||void 0,l.state=s,l.client_info?this.authCodeRequest.clientInfo=l.client_info:(d=this.checkCcsCredentials(),d&&(this.authCodeRequest.ccsCredential=d)),[4,this.authModule.acquireToken(this.authCodeRequest,l)];case 3:return f=p.sent(),this.browserStorage.cleanRequestByState(n),[2,f]}})})},e}(Ad);/*! @azure/msal-browser v2.38.3 2023-10-27 */var K;(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",t.RESTORE_FROM_BFCACHE="msal:restoreFromBFCache"})(K||(K={}));/*! @azure/msal-browser v2.38.3 2023-10-27 */var Mr;(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"})(Mr||(Mr={}));var Oo={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"}},tr=function(t){Ke(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===Mr.PERSISTENT_ERROR||this.ext.status===Mr.DISABLED))return!0;switch(this.errorCode){case Oo.extensionError.code:return!0;default:return!1}},e.createError=function(r,n,o){if(o&&o.status)switch(o.status){case Mr.ACCOUNT_UNAVAILABLE:return Bt.createNativeAccountUnavailableError();case Mr.USER_INTERACTION_REQUIRED:return new Bt(r,n);case Mr.USER_CANCEL:return M.createUserCancelledError();case Mr.NO_NETWORK:return M.createNoNetworkConnectivityError()}return new e(r,n,o)},e.createUserSwitchError=function(){return new e(Oo.userSwitch.code,Oo.userSwitch.desc)},e.createTokensNotFoundInCacheError=function(){return new e(Oo.tokensNotFoundInCache.code,Oo.tokensNotFoundInCache.desc)},e}(U);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Um=function(t){Ke(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.acquireToken=function(r){return I(this,void 0,void 0,function(){var n,o,i,a,s;return A(this,function(l){switch(l.label){case 0:return n=this.performanceClient.startMeasurement(S.SilentCacheClientAcquireToken,r.correlationId),o=this.initializeServerTelemetryManager(le.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(o,r.authority,r.azureCloudOptions)];case 1:i=l.sent(),this.logger.verbose("Silent auth client created"),l.label=2;case 2:return l.trys.push([2,4,,5]),[4,i.acquireCachedToken(r)];case 3:return a=l.sent(),n.endMeasurement({success:!0,fromCache:!0}),[2,a];case 4:throw s=l.sent(),s instanceof M&&s.errorCode===N.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 U&&s.errorCode||void 0,subErrorCode:s instanceof U&&s.subError||void 0,success:!1}),s;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(M.createSilentLogoutUnsupportedError())},e.prototype.createSilentFlowClient=function(r,n,o){return I(this,void 0,void 0,function(){var i;return A(this,function(a){switch(a.label){case 0:return this.performanceClient.setPreQueueTime(S.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(r,n,o)];case 1:return i=a.sent(),[2,new zE(i,this.performanceClient)]}})})},e.prototype.initializeSilentRequest=function(r,n){return I(this,void 0,void 0,function(){var o;return A(this,function(i){switch(i.label){case 0:return this.performanceClient.addQueueMeasurement(S.InitializeSilentRequest,this.correlationId),this.performanceClient.setPreQueueTime(S.InitializeBaseRequest,this.correlationId),o=[H({},r)],[4,this.initializeBaseRequest(r,n)];case 1:return[2,H.apply(void 0,[H.apply(void 0,o.concat([i.sent()])),{account:n,forceRefresh:r.forceRefresh||!1}])]}})})},e}(bo);/*! @azure/msal-browser v2.38.3 2023-10-27 */var ao=function(t){Ke(e,t);function e(r,n,o,i,a,s,l,c,u,d,f,p){var h=t.call(this,r,n,o,i,a,s,c,u,p)||this;return h.apiId=l,h.accountId=d,h.nativeMessageHandler=u,h.nativeStorageManager=f,h.silentCacheClient=new Um(r,h.nativeStorageManager,o,i,a,s,c,u,p),h}return e.prototype.acquireToken=function(r){return I(this,void 0,void 0,function(){var n,o,i,a,s,l,c;return A(this,function(u){switch(u.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),n=this.performanceClient.startMeasurement(S.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:!1,fromCache:!0}),[2,a];case 4:return u.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return s={method:dr.GetToken,request:i},[4,this.nativeMessageHandler.sendMessage(s)];case 6:return l=u.sent(),c=this.validateNativeResponse(l),[2,this.handleNativeResponse(c,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:$e.fromString(r.scope).asArray(),account:n,forceRefresh:!1}},e.prototype.acquireTokensFromCache=function(r,n){return I(this,void 0,void 0,function(){var o,i,a,s;return A(this,function(l){switch(l.label){case 0:if(!r)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),F.createNoAccountFoundError();if(o=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:r}),!o)throw F.createNoAccountFoundError();l.label=1;case 1:return l.trys.push([1,3,,4]),i=this.createSilentCacheRequest(n,o),[4,this.silentCacheClient.acquireToken(i)];case 2:return a=l.sent(),[2,a];case 3:throw s=l.sent(),s;case 4:return[2]}})})},e.prototype.acquireTokenRedirect=function(r){return I(this,void 0,void 0,function(){var n,o,i,a,s,l;return A(this,function(c){switch(c.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(r)];case 1:n=c.sent(),o={method:dr.GetToken,request:n},c.label=2;case 2:return c.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(o)];case 3:return i=c.sent(),this.validateNativeResponse(i),[3,5];case 4:if(a=c.sent(),a instanceof tr&&a.isFatal())throw a;return[3,5];case 5:return this.browserStorage.setTemporaryCache(te.NATIVE_REQUEST,JSON.stringify(n),!0),s={apiId:le.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},l=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(r.redirectUri),[4,this.navigationClient.navigateExternal(l,s)];case 6:return c.sent(),[2]}})})},e.prototype.handleRedirectPromise=function(){return I(this,void 0,void 0,function(){var r,n,o,i,a,s,l,c;return A(this,function(u){switch(u.label){case 0:if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(r=this.browserStorage.getCachedNativeRequest(),!r)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];n=r.prompt,o=bh(r,["prompt"]),n&&this.logger.verbose("NativeInteractionClient - handleRedirectPromise called and prompt was included in the original request, removing prompt from cached request to prevent second interaction with native broker window."),this.browserStorage.removeItem(this.browserStorage.generateCacheKey(te.NATIVE_REQUEST)),i={method:dr.GetToken,request:o},a=Ot.nowSeconds(),u.label=1;case 1:return u.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(i)];case 2:return s=u.sent(),this.validateNativeResponse(s),l=this.handleNativeResponse(s,o,a),this.browserStorage.setInteractionInProgress(!1),[2,l];case 3:throw c=u.sent(),this.browserStorage.setInteractionInProgress(!1),c;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 I(this,void 0,void 0,function(){var i,a,s,l,c,u;return A(this,function(d){switch(d.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),r.account.id!==n.accountId)throw tr.createUserSwitchError();return[4,this.getDiscoveredAuthority(n.authority)];case 1:return i=d.sent(),a=i.getPreferredCache(),s=this.createIdTokenObj(r),l=this.createHomeAccountIdentifier(r,s),c=this.createAccountEntity(r,l,s,a),[4,this.generateAuthenticationResult(r,n,s,c,i.canonicalAuthority,o)];case 2:return u=d.sent(),this.cacheAccount(c),this.cacheNativeTokens(r,n,l,c,s,u.accessToken,u.tenantId,o),[2,u]}})})},e.prototype.createIdTokenObj=function(r){return new or(r.id_token||w.EMPTY_STRING,this.browserCrypto)},e.prototype.createHomeAccountIdentifier=function(r,n){var o=Ue.generateHomeAccountId(r.client_info||w.EMPTY_STRING,et.Default,this.logger,this.browserCrypto,n);return o},e.prototype.createAccountEntity=function(r,n,o,i){return Ue.createAccount(r.client_info,n,o,void 0,void 0,void 0,i,r.account.id)},e.prototype.generateScopes=function(r,n){return r.scope?$e.fromString(r.scope):$e.fromString(n.scope)},e.prototype.generatePopAccessToken=function(r,n){return I(this,void 0,void 0,function(){var o,i;return A(this,function(a){switch(a.label){case 0:if(n.tokenType!==oe.POP)return[3,2];if(r.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),[2,r.shr];if(o=new mo(this.browserCrypto),i={resourceRequestMethod:n.resourceRequestMethod,resourceRequestUri:n.resourceRequestUri,shrClaims:n.shrClaims,shrNonce:n.shrNonce},!n.keyId)throw F.createKeyIdMissingError();return[4,o.signPopToken(r.access_token,n.keyId,i)];case 1:return[2,a.sent()];case 2:return[2,r.access_token]}})})},e.prototype.generateAuthenticationResult=function(r,n,o,i,a,s){return I(this,void 0,void 0,function(){var l,c,u,d,f,p,h,m;return A(this,function(C){switch(C.label){case 0:return l=this.addTelemetryFromNativeResponse(r),c=r.scope?$e.fromString(r.scope):$e.fromString(n.scope),u=r.account.properties||{},d=u.UID||o.claims.oid||o.claims.sub||w.EMPTY_STRING,f=u.TenantId||o.claims.tid||w.EMPTY_STRING,[4,this.generatePopAccessToken(r,n)];case 1:return p=C.sent(),h=n.tokenType===oe.POP?oe.POP:oe.BEARER,m={authority:a,uniqueId:d,tenantId:f,scopes:c.asArray(),account:i.getAccountInfo(),idToken:r.id_token,idTokenClaims:o.claims,accessToken:p,fromCache:l?this.isResponseFromCache(l):!1,expiresOn:new Date(Number(s+r.expires_in)*1e3),tokenType:h,correlationId:this.correlationId,state:r.state,fromNativeBroker:!0},[2,m]}})})},e.prototype.cacheAccount=function(r){var n=this;this.browserStorage.setAccount(r),this.browserStorage.removeAccountContext(r).catch(function(o){n.logger.error("Error occurred while removing account context from browser storage. "+o)})},e.prototype.cacheNativeTokens=function(r,n,o,i,a,s,l,c){var u=hn.createIdTokenEntity(o,n.authority,r.id_token||w.EMPTY_STRING,n.clientId,a.claims.tid||w.EMPTY_STRING),d=n.tokenType===oe.POP?w.SHR_NONCE_VALIDITY:(typeof r.expires_in=="string"?parseInt(r.expires_in,10):r.expires_in)||0,f=c+d,p=this.generateScopes(r,n),h=pn.createAccessTokenEntity(o,n.authority,s,n.clientId,a?a.claims.tid||w.EMPTY_STRING:l,p.printScopes(),f,0,this.browserCrypto),m=new ci(i,u,h);this.nativeStorageManager.saveCacheRecord(m)},e.prototype.addTelemetryFromNativeResponse=function(r){var n=this.getMATSFromResponse(r);return n?(this.performanceClient.addStaticFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:n.broker_version,matsAccountJoinOnStart:n.account_join_on_start,matsAccountJoinOnEnd:n.account_join_on_end,matsDeviceJoin:n.device_join,matsPromptBehavior:n.prompt_behavior,matsApiErrorCode:n.api_error_code,matsUiVisible:n.ui_visible,matsSilentCode:n.silent_code,matsSilentBiSubCode:n.silent_bi_sub_code,matsSilentMessage:n.silent_message,matsSilentStatus:n.silent_status,matsHttpStatus:n.http_status,matsHttpEventCount:n.http_event_count},this.correlationId),n):null},e.prototype.validateNativeResponse=function(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 tr.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 I(this,void 0,void 0,function(){var n,o,i,a,s,l,c,u,d,f,p=this;return A(this,function(h){switch(h.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),n=r.authority||this.config.auth.authority,r.account?[4,this.validateRequestAuthority(n,r.account)]:[3,2];case 1:h.sent(),h.label=2;case 2:return o=new ee(n),o.validateAsUri(),i=r.scopes,a=bh(r,["scopes"]),s=new $e(i||[]),s.appendScopes(Ki),l=function(){switch(p.apiId){case le.ssoSilent:case le.acquireTokenSilent_silentFlow:return p.logger.trace("initializeNativeRequest: silent request sets prompt to none"),Xe.NONE}if(!r.prompt){p.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(r.prompt){case Xe.NONE:case Xe.CONSENT:case Xe.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"),M.createNativePromptParameterNotSupportedError()}},c=H(H({},a),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:o.urlString,scope:s.printScopes(),redirectUri:this.getRedirectUri(r.redirectUri),prompt:l(),correlationId:this.correlationId,tokenType:r.authenticationScheme,windowTitleSubstring:document.title,extraParameters:H(H(H({},r.extraQueryParameters),r.tokenQueryParameters),{telemetry:Go.MATS_TELEMETRY}),extendedExpiryToken:!1}),r.authenticationScheme!==oe.POP?[3,4]:(u={resourceRequestUri:r.resourceRequestUri,resourceRequestMethod:r.resourceRequestMethod,shrClaims:r.shrClaims,shrNonce:r.shrNonce},d=new mo(this.browserCrypto),[4,d.generateCnf(u)]);case 3:f=h.sent(),c.reqCnf=f.reqCnfString,c.keyId=f.kid,h.label=4;case 4:return[2,c]}})})},e}(Hm);/*! @azure/msal-browser v2.38.3 2023-10-27 */var kn=function(){function t(e,r,n,o){this.logger=e,this.handshakeTimeoutMs=r,this.extensionId=o,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=n,this.handshakeEvent=n.startMeasurement(S.NativeMessageHandlerHandshake)}return t.prototype.sendMessage=function(e){return I(this,void 0,void 0,function(){var r,n=this;return A(this,function(o){return this.logger.trace("NativeMessageHandler - sendMessage called."),r={channel:Go.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,n){return I(this,void 0,void 0,function(){var o,i;return A(this,function(a){switch(a.label){case 0:e.trace("NativeMessageHandler - createProvider called."),a.label=1;case 1:return a.trys.push([1,3,,5]),o=new t(e,r,n,Go.PREFERRED_EXTENSION_ID),[4,o.sendHandshakeRequest()];case 2:return a.sent(),[2,o];case 3:return a.sent(),i=new t(e,r,n),[4,i.sendHandshakeRequest()];case 4:return a.sent(),[2,i];case 5:return[2]}})})},t.prototype.sendHandshakeRequest=function(){return I(this,void 0,void 0,function(){var e,r=this;return A(this,function(n){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:Go.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:dr.HandshakeRequest}},this.handshakeEvent.addStaticFields({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),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(),r.handshakeEvent.endMeasurement({extensionHandshakeTimedOut:!0,success:!1}),i(M.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!==Go.CHANNEL_ID)&&!(r.extensionId&&r.extensionId!==this.extensionId)&&r.body.method===dr.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&&(this.handshakeEvent.endMeasurement({success:!1,extensionInstalled:!1}),n.reject(M.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===dr.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(tr.createError(a.code,a.description,a.ext));else if(a.result)a.result.code&&a.result.description?n.reject(tr.createError(a.result.code,a.result.description,a.result.ext)):n.resolve(a.result);else throw U.createUnexpectedError("Event does not contain result.");this.resolvers.delete(r.responseId)}else if(i===dr.HandshakeResponse){if(!o)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=r.extensionId,this.extensionVersion=r.body.version,this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: "+this.extensionId),this.handshakeEvent.endMeasurement({extensionInstalled:!0,success:!0}),o.resolve(),this.handshakeResolvers.delete(r.responseId)}}catch(s){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+s.toString()),this.logger.errorPii("Unable to parse "+e),n?n.reject(s):o&&o.reject(s)}},t.prototype.getExtensionId=function(){return this.extensionId},t.prototype.getExtensionVersion=function(){return this.extensionVersion},t.isNativeAvailable=function(e,r,n,o){if(r.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return r.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!n)return r.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(o)switch(o){case oe.BEARER:case oe.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.38.3 2023-10-27 */var JE=function(t){Ke(e,t);function e(r,n,o,i,a,s,l,c,u,d){var f=t.call(this,r,n,o,i,a,s,l,u,d)||this;return f.nativeStorage=c,f}return e.prototype.acquireToken=function(r){return I(this,void 0,void 0,function(){var n,o,i,a,s,l,c,u,d,f=this;return A(this,function(p){switch(p.label){case 0:return this.performanceClient.setPreQueueTime(S.StandardInteractionClientInitializeAuthorizationRequest,r.correlationId),[4,this.initializeAuthorizationRequest(r,z.Redirect)];case 1:n=p.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||w.EMPTY_STRING,n.account||null),o=this.initializeServerTelemetryManager(le.acquireTokenRedirect),i=function(h){h.persisted&&(f.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),f.browserStorage.cleanRequestByState(n.state),f.eventHandler.emitEvent(K.RESTORE_FROM_BFCACHE,z.Redirect))},p.label=2;case 2:return p.trys.push([2,7,,8]),this.performanceClient.setPreQueueTime(S.StandardInteractionClientInitializeAuthorizationCodeRequest,r.correlationId),[4,this.initializeAuthorizationCodeRequest(n)];case 3:return a=p.sent(),this.performanceClient.setPreQueueTime(S.StandardInteractionClientCreateAuthCodeClient,r.correlationId),[4,this.createAuthCodeClient(o,n.authority,n.azureCloudOptions)];case 4:return s=p.sent(),this.logger.verbose("Auth code client created"),l=new Dh(s,this.browserStorage,a,this.logger,this.browserCrypto,this.performanceClient),[4,s.getAuthCodeUrl(H(H({},n),{nativeBroker:kn.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme)}))];case 5:return c=p.sent(),u=this.getRedirectStartPage(r.redirectStartPage),this.logger.verbosePii("Redirect start page: "+u),window.addEventListener("pageshow",i),[4,l.initiateAuthRequest(c,{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 U&&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 I(this,void 0,void 0,function(){var n,o,i,a,s,l,c,u,d,f,p,h;return A(this,function(m){switch(m.label){case 0:n=this.initializeServerTelemetryManager(le.handleRedirectPromise),m.label=1;case 1:if(m.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(z.Redirect),[2,null];i=void 0;try{a=ee.getDeserializedHash(o),i=this.validateAndExtractStateFromHash(a,z.Redirect),this.logger.verbose("State extracted from hash")}catch(C){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+C),this.browserStorage.cleanRequestByInteractionType(z.Redirect),[2,null]}return s=this.browserStorage.getTemporaryCache(te.ORIGIN_URI,!0)||w.EMPTY_STRING,l=ee.removeHashFromUrl(s),c=ee.removeHashFromUrl(window.location.href),l===c&&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=m.sent(),s.indexOf("#")>-1&&_e.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!_e.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(te.URL_HASH,o,!0),d={apiId:le.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},f=!0,!s||s==="null"?(p=_e.getHomepage(),this.browserStorage.setTemporaryCache(te.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 f=m.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+s),[4,this.navigationClient.navigateInternal(s,d)];case 7:f=m.sent(),m.label=8;case 8:if(!f)return[2,this.handleHash(o,i,n)];m.label=9;case 9:return[2,null];case 10:throw h=m.sent(),h instanceof U&&h.setCorrelationId(this.correlationId),n.cacheFailedRequest(h),this.browserStorage.cleanRequestByInteractionType(z.Redirect),h;case 11:return[2]}})})},e.prototype.getRedirectResponseHash=function(r){this.logger.verbose("getRedirectResponseHash called");var n=ee.hashContainsKnownProperties(r);if(n)return _e.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),r;var o=this.browserStorage.getTemporaryCache(te.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(te.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),o},e.prototype.handleHash=function(r,n,o){return I(this,void 0,void 0,function(){var i,a,s,l,c,u,d,f=this;return A(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=ee.getDeserializedHash(r),a.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw M.createNativeConnectionNotEstablishedError();return s=new ao(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,le.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,a.accountId,this.nativeStorage,i.correlationId),l=vr.parseRequestState(this.browserCrypto,n).userRequestState,[2,s.acquireToken(H(H({},i),{state:l,prompt:void 0})).finally(function(){f.browserStorage.cleanRequestByState(n)})]}if(c=this.browserStorage.getCachedAuthority(n),!c)throw M.createNoCachedAuthorityError();return this.performanceClient.setPreQueueTime(S.StandardInteractionClientCreateAuthCodeClient,i.correlationId),[4,this.createAuthCodeClient(o,c)];case 1:return u=p.sent(),this.logger.verbose("Auth code client created"),ms.removeThrottle(this.browserStorage,this.config.auth.clientId,i),d=new Dh(u,this.browserStorage,i,this.logger,this.browserCrypto,this.performanceClient),[4,d.handleCodeResponseFromHash(r,n,u.authority,this.networkClient)];case 2:return[2,p.sent()]}})})},e.prototype.logout=function(r){return I(this,void 0,void 0,function(){var n,o,i,a,s,l,c;return A(this,function(u){switch(u.label){case 0:this.logger.verbose("logoutRedirect called"),n=this.initializeLogoutRequest(r),o=this.initializeServerTelemetryManager(le.logout),u.label=1;case 1:return u.trys.push([1,10,,11]),this.eventHandler.emitEvent(K.LOGOUT_START,z.Redirect,r),[4,this.clearCacheOnLogout(n.account)];case 2:return u.sent(),i={apiId:le.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},this.performanceClient.setPreQueueTime(S.StandardInteractionClientCreateAuthCodeClient,n.correlationId),[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(K.LOGOUT_SUCCESS,z.Redirect,n),r&&typeof r.onRedirectNavigate=="function"?(l=r.onRedirectNavigate(s),l===!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 c=u.sent(),c instanceof U&&c.setCorrelationId(this.correlationId),o.cacheFailedRequest(c),this.eventHandler.emitEvent(K.LOGOUT_FAILURE,z.Redirect,null,c),this.eventHandler.emitEvent(K.LOGOUT_END,z.Redirect),c;case 11:return this.eventHandler.emitEvent(K.LOGOUT_END,z.Redirect),[2]}})})},e.prototype.getRedirectStartPage=function(r){var n=r||window.location.href;return ee.getAbsoluteUrl(n,_e.getCurrentUri())},e}(bo);/*! @azure/msal-browser v2.38.3 2023-10-27 */var ZE=function(t){Ke(e,t);function e(r,n,o,i,a,s,l,c,u,d){var f=t.call(this,r,n,o,i,a,s,l,u,d)||this;return f.unloadWindow=f.unloadWindow.bind(f),f.nativeStorage=c,f}return e.prototype.acquireToken=function(r){try{var n=this.generatePopupName(r.scopes||Ki,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 l=this.openSizedPopup("about:blank",o,s);return this.logoutPopupAsync(n,o,s,i,l,a)}catch(c){return Promise.reject(c)}},e.prototype.acquireTokenPopupAsync=function(r,n,o,i){return I(this,void 0,void 0,function(){var a,s,l,c,u,d,f,p,h,m,C,v,g,y,k,T,_,b=this;return A(this,function(R){switch(R.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),a=this.initializeServerTelemetryManager(le.acquireTokenPopup),this.performanceClient.setPreQueueTime(S.StandardInteractionClientInitializeAuthorizationRequest,r.correlationId),[4,this.initializeAuthorizationRequest(r,z.Popup)];case 1:s=R.sent(),this.browserStorage.updateCacheEntries(s.state,s.nonce,s.authority,s.loginHint||w.EMPTY_STRING,s.account||null),R.label=2;case 2:return R.trys.push([2,8,,9]),this.performanceClient.setPreQueueTime(S.StandardInteractionClientInitializeAuthorizationCodeRequest,r.correlationId),[4,this.initializeAuthorizationCodeRequest(s)];case 3:return l=R.sent(),this.performanceClient.setPreQueueTime(S.StandardInteractionClientCreateAuthCodeClient,r.correlationId),[4,this.createAuthCodeClient(a,s.authority,s.azureCloudOptions)];case 4:return c=R.sent(),this.logger.verbose("Auth code client created"),u=kn.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme),d=void 0,u&&(d=this.performanceClient.startMeasurement(S.FetchAccountIdWithNativeBroker,r.correlationId)),[4,c.getAuthCodeUrl(H(H({},s),{nativeBroker:u}))];case 5:return f=R.sent(),p=new Ad(c,this.browserStorage,l,this.logger,this.performanceClient),h={popup:i,popupName:n,popupWindowAttributes:o},m=this.initiateAuthRequest(f,h),this.eventHandler.emitEvent(K.POPUP_OPENED,z.Popup,{popupWindow:m},null),[4,this.monitorPopupForHash(m)];case 6:if(C=R.sent(),v=ee.getDeserializedHash(C),g=this.validateAndExtractStateFromHash(v,z.Popup,s.correlationId),ms.removeThrottle(this.browserStorage,this.config.auth.clientId,l),v.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),d&&d.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw M.createNativeConnectionNotEstablishedError();return y=new ao(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,le.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,v.accountId,this.nativeStorage,s.correlationId),k=vr.parseRequestState(this.browserCrypto,g).userRequestState,[2,y.acquireToken(H(H({},s),{state:k,prompt:void 0})).finally(function(){b.browserStorage.cleanRequestByState(g)})]}return[4,p.handleCodeResponseFromHash(C,g,c.authority,this.networkClient)];case 7:return T=R.sent(),[2,T];case 8:throw _=R.sent(),i&&i.close(),_ instanceof U&&_.setCorrelationId(this.correlationId),a.cacheFailedRequest(_),this.browserStorage.cleanRequestByState(s.state),_;case 9:return[2]}})})},e.prototype.logoutPopupAsync=function(r,n,o,i,a,s){return I(this,void 0,void 0,function(){var l,c,u,d,f,p,h;return A(this,function(m){switch(m.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(K.LOGOUT_START,z.Popup,r),l=this.initializeServerTelemetryManager(le.logoutPopup),m.label=1;case 1:return m.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(r.account)];case 2:return m.sent(),this.performanceClient.setPreQueueTime(S.StandardInteractionClientCreateAuthCodeClient,r.correlationId),[4,this.createAuthCodeClient(l,i)];case 3:return c=m.sent(),this.logger.verbose("Auth code client created"),u=c.getLogoutUri(r),this.eventHandler.emitEvent(K.LOGOUT_SUCCESS,z.Popup,r),d=this.openPopup(u,{popupName:n,popupWindowAttributes:o,popup:a}),this.eventHandler.emitEvent(K.POPUP_OPENED,z.Popup,{popupWindow:d},null),[4,this.waitForLogoutPopup(d)];case 4:return m.sent(),s?(f={apiId:le.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},p=ee.getAbsoluteUrl(s,_e.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,f)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw h=m.sent(),a&&a.close(),h instanceof U&&h.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(K.LOGOUT_FAILURE,z.Popup,null,h),this.eventHandler.emitEvent(K.LOGOUT_END,z.Popup),l.cacheFailedRequest(h),h;case 6:return this.eventHandler.emitEvent(K.LOGOUT_END,z.Popup),[2]}})})},e.prototype.initiateAuthRequest=function(r,n){if(O.isEmpty(r))throw this.logger.error("Navigate url is empty"),M.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 l=setInterval(function(){if(r.closed){n.logger.error("PopupHandler.monitorPopupForHash - window closed"),n.cleanPopup(),clearInterval(l),i(M.createUserCancelledError());return}var c=w.EMPTY_STRING,u=w.EMPTY_STRING;try{c=r.location.href,u=r.location.hash}catch{}O.isEmpty(c)||c==="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(l),n.cleanPopup(r),ee.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(M.createHashDoesNotContainKnownPropertiesError()))):s>a&&(n.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(l),i(M.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=w.EMPTY_STRING;try{a=r.location.href}catch{}O.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 M.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),M.createPopupWindowError(i.toString())}},e.prototype.openSizedPopup=function(r,n,o){var i,a,s,l,c=window.screenLeft?window.screenLeft:window.screenX,u=window.screenTop?window.screenTop:window.screenY,d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,f=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,p=(i=o.popupSize)===null||i===void 0?void 0:i.width,h=(a=o.popupSize)===null||a===void 0?void 0:a.height,m=(s=o.popupPosition)===null||s===void 0?void 0:s.top,C=(l=o.popupPosition)===null||l===void 0?void 0:l.left;return(!p||p<0||p>d)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),p=Kt.POPUP_WIDTH),(!h||h<0||h>f)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),h=Kt.POPUP_HEIGHT),(!m||m<0||m>f)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),m=Math.max(0,f/2-Kt.POPUP_HEIGHT/2+u)),(!C||C<0||C>d)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),C=Math.max(0,d/2-Kt.POPUP_WIDTH/2+c)),window.open(r,n,"width="+p+", height="+h+", top="+m+", left="+C+", scrollbars=yes")},e.prototype.unloadWindow=function(r){this.browserStorage.cleanRequestByInteractionType(z.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 Kt.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 Kt.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+n+"."+this.correlationId},e}(bo);/*! @azure/msal-browser v2.38.3 2023-10-27 */var eT=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.38.3 2023-10-27 */var tT=6e4,hu=6e3,rT=3e4,nT=2e3;function oT(t,e){var r=t.auth,n=t.cache,o=t.system,i=t.telemetry,a={clientId:w.EMPTY_STRING,authority:""+w.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:w.EMPTY_STRING,authorityMetadata:w.EMPTY_STRING,redirectUri:w.EMPTY_STRING,postLogoutRedirectUri:w.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:Ni.AAD,azureCloudOptions:{azureCloudInstance:Pi.None,tenant:w.EMPTY_STRING},skipAuthorityMetadataCache:!1},s={cacheLocation:Ie.SessionStorage,temporaryCacheLocation:Ie.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(n&&n.cacheLocation===Ie.LocalStorage),claimsBasedCachingEnabled:!0},l={loggerCallback:function(){},logLevel:Fe.Info,piiLoggingEnabled:!1},c=H(H({},Mm),{loggerOptions:l,networkClient:e?_e.getBrowserNetworkClient():jE,navigationClient:new eT,loadFrameTimeout:0,windowHashTimeout:(o==null?void 0:o.loadFrameTimeout)||tT,iframeHashTimeout:(o==null?void 0:o.loadFrameTimeout)||hu,navigateFrameWait:e&&_e.detectIEOrEdge()?500:0,redirectNavigationTimeout:rT,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(o==null?void 0:o.nativeBrokerHandshakeTimeout)||nT,pollIntervalMilliseconds:Kt.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),u=H(H({},o),{loggerOptions:(o==null?void 0:o.loggerOptions)||l}),d={application:{appName:w.EMPTY_STRING,appVersion:w.EMPTY_STRING}},f={auth:H(H({},a),r),cache:H(H({},s),n),system:H(H({},c),u),telemetry:H(H({},d),i)};return f}/*! @azure/msal-browser v2.38.3 2023-10-27 */var qm=function(t){Ke(e,t);function e(r,n,o,i,a,s){var l=t.call(this,r,n,o,i,s)||this;return l.navigateFrameWait=a.navigateFrameWait,l.pollIntervalMilliseconds=a.pollIntervalMilliseconds,l}return e.prototype.initiateAuthRequest=function(r){return I(this,void 0,void 0,function(){return A(this,function(n){switch(n.label){case 0:if(this.performanceClient.addQueueMeasurement(S.SilentHandlerInitiateAuthRequest,this.authCodeRequest.correlationId),O.isEmpty(r))throw this.logger.info("Navigate url is empty"),M.createEmptyNavigationUriError();return this.navigateFrameWait?(this.performanceClient.setPreQueueTime(S.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),[4,this.loadFrame(r)]):[3,2];case 1:return[2,n.sent()];case 2:return[2,this.loadFrameSync(r)]}})})},e.prototype.monitorIframeForHash=function(r,n){var o=this;return this.performanceClient.addQueueMeasurement(S.SilentHandlerMonitorIframeForHash,this.authCodeRequest.correlationId),new Promise(function(i,a){n<hu&&o.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+n+"ms) than the default ("+hu+"ms). This may result in timeouts.");var s=window.performance.now(),l=s+n,c=setInterval(function(){if(window.performance.now()>l){o.removeHiddenIframe(r),clearInterval(c),a(M.createMonitorIframeTimeoutError());return}var u=w.EMPTY_STRING,d=r.contentWindow;try{u=d?d.location.href:w.EMPTY_STRING}catch{}if(!O.isEmpty(u)){var f=d?d.location.hash:w.EMPTY_STRING;if(ee.hashContainsKnownProperties(f)){o.removeHiddenIframe(r),clearInterval(c),i(f);return}}},o.pollIntervalMilliseconds)})},e.prototype.loadFrame=function(r){var n=this;return this.performanceClient.addQueueMeasurement(S.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),new Promise(function(o,i){var a=n.createHiddenIframe();setTimeout(function(){if(!a){i("Unable to load iframe");return}a.src=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}(Ad);/*! @azure/msal-browser v2.38.3 2023-10-27 */var iT=function(t){Ke(e,t);function e(r,n,o,i,a,s,l,c,u,d,f){var p=t.call(this,r,n,o,i,a,s,c,d,f)||this;return p.apiId=l,p.nativeStorage=u,p}return e.prototype.acquireToken=function(r){return I(this,void 0,void 0,function(){var n,o,i,a,s;return A(this,function(l){switch(l.label){case 0:if(this.performanceClient.addQueueMeasurement(S.SilentIframeClientAcquireToken,r.correlationId),this.logger.verbose("acquireTokenByIframe called"),n=this.performanceClient.startMeasurement(S.SilentIframeClientAcquireToken,r.correlationId),O.isEmpty(r.loginHint)&&O.isEmpty(r.sid)&&(!r.account||O.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!==Xe.NONE&&r.prompt!==Xe.NO_SESSION)throw n.endMeasurement({success:!1}),M.createSilentPromptValueError(r.prompt);return this.performanceClient.setPreQueueTime(S.StandardInteractionClientInitializeAuthorizationRequest,r.correlationId),[4,this.initializeAuthorizationRequest(H(H({},r),{prompt:r.prompt||Xe.NONE}),z.Silent)];case 1:o=l.sent(),this.browserStorage.updateCacheEntries(o.state,o.nonce,o.authority,o.loginHint||w.EMPTY_STRING,o.account||null),i=this.initializeServerTelemetryManager(this.apiId),l.label=2;case 2:return l.trys.push([2,5,,6]),this.performanceClient.setPreQueueTime(S.StandardInteractionClientCreateAuthCodeClient,r.correlationId),[4,this.createAuthCodeClient(i,o.authority,o.azureCloudOptions)];case 3:return a=l.sent(),this.logger.verbose("Auth code client created"),this.performanceClient.setPreQueueTime(S.SilentIframeClientTokenHelper,r.correlationId),[4,this.silentTokenHelper(a,o).then(function(c){return n.endMeasurement({success:!0,fromCache:!1,requestId:c.requestId}),c})];case 4:return[2,l.sent()];case 5:throw s=l.sent(),s instanceof U&&s.setCorrelationId(this.correlationId),i.cacheFailedRequest(s),this.browserStorage.cleanRequestByState(o.state),n.endMeasurement({errorCode:s instanceof U&&s.errorCode||void 0,subErrorCode:s instanceof U&&s.subError||void 0,success:!1}),s;case 6:return[2]}})})},e.prototype.logout=function(){return Promise.reject(M.createSilentLogoutUnsupportedError())},e.prototype.silentTokenHelper=function(r,n){return I(this,void 0,void 0,function(){var o,i,a,s,l,c,u,d,f,p=this;return A(this,function(h){switch(h.label){case 0:return this.performanceClient.addQueueMeasurement(S.SilentIframeClientTokenHelper,n.correlationId),this.performanceClient.setPreQueueTime(S.StandardInteractionClientInitializeAuthorizationCodeRequest,n.correlationId),[4,this.initializeAuthorizationCodeRequest(n)];case 1:return o=h.sent(),this.performanceClient.setPreQueueTime(S.GetAuthCodeUrl,n.correlationId),[4,r.getAuthCodeUrl(H(H({},n),{nativeBroker:kn.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,n.authenticationScheme)}))];case 2:return i=h.sent(),a=new qm(r,this.browserStorage,o,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(S.SilentHandlerInitiateAuthRequest,n.correlationId),[4,a.initiateAuthRequest(i)];case 3:return s=h.sent(),this.performanceClient.setPreQueueTime(S.SilentHandlerMonitorIframeForHash,n.correlationId),[4,a.monitorIframeForHash(s,this.config.system.iframeHashTimeout)];case 4:if(l=h.sent(),c=ee.getDeserializedHash(l),u=this.validateAndExtractStateFromHash(c,z.Silent,o.correlationId),c.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw M.createNativeConnectionNotEstablishedError();return d=new ao(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,c.accountId,this.browserStorage,this.correlationId),f=vr.parseRequestState(this.browserCrypto,u).userRequestState,[2,d.acquireToken(H(H({},n),{state:f,prompt:n.prompt||Xe.NONE})).finally(function(){p.browserStorage.cleanRequestByState(u)})]}return this.performanceClient.setPreQueueTime(S.HandleCodeResponseFromHash,n.correlationId),[2,a.handleCodeResponseFromHash(l,u,r.authority,this.networkClient)]}})})},e}(bo);/*! @azure/msal-browser v2.38.3 2023-10-27 */var aT=function(t){Ke(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e.prototype.acquireToken=function(r){return I(this,void 0,void 0,function(){var n,o,i,a,s,l=this;return A(this,function(c){switch(c.label){case 0:return this.performanceClient.addQueueMeasurement(S.SilentRefreshClientAcquireToken,r.correlationId),this.performanceClient.setPreQueueTime(S.InitializeBaseRequest,r.correlationId),o=[H({},r)],[4,this.initializeBaseRequest(r,r.account)];case 1:return n=H.apply(void 0,o.concat([c.sent()])),i=this.performanceClient.startMeasurement(S.SilentRefreshClientAcquireToken,n.correlationId),a=this.initializeServerTelemetryManager(le.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(a,n.authority,n.azureCloudOptions)];case 2:return s=c.sent(),this.logger.verbose("Refresh token client created"),this.performanceClient.setPreQueueTime(S.RefreshTokenClientAcquireTokenByRefreshToken,r.correlationId),[2,s.acquireTokenByRefreshToken(n).then(function(u){return i.endMeasurement({success:!0,fromCache:u.fromCache,requestId:u.requestId}),u}).catch(function(u){throw u instanceof U&&u.setCorrelationId(l.correlationId),a.cacheFailedRequest(u),i.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})]}})})},e.prototype.logout=function(){return Promise.reject(M.createSilentLogoutUnsupportedError())},e.prototype.createRefreshTokenClient=function(r,n,o){return I(this,void 0,void 0,function(){var i;return A(this,function(a){switch(a.label){case 0:return this.performanceClient.setPreQueueTime(S.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(r,n,o)];case 1:return i=a.sent(),[2,new Fm(i,this.performanceClient)]}})})},e}(bo);/*! @azure/msal-browser v2.38.3 2023-10-27 */var sT=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,l){i.logger.verbose("Emitting event to callback "+l+": "+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"||!Ue.isAccountEntity(n))return;var o=st.toObject(new Ue,n),i=o.getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(K.ACCOUNT_ADDED,void 0,i)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(K.ACCOUNT_REMOVED,void 0,i))}catch{return}},t}();/*! @azure/msal-browser v2.38.3 2023-10-27 */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.38.3 2023-10-27 */var jm=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=w.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.38.3 2023-10-27 */var mr=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,l=0;s<n;l++)r=e.charCodeAt(l),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=w.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.38.3 2023-10-27 */var Km=function(){function t(){}return t.prototype.urlEncode=function(e){return encodeURIComponent(this.encode(e).replace(/=/g,w.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},t.prototype.urlEncodeArr=function(e){return this.base64EncArr(e).replace(/=/g,w.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},t.prototype.encode=function(e){var r=mr.stringToUtf8Arr(e);return this.base64EncArr(r)},t.prototype.base64EncArr=function(e){for(var r=(3-e.length%3)%3,n=w.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.38.3 2023-10-27 */var cT=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 mr.utf8ArrToString(n)},t.prototype.base64DecToArr=function(e,r){for(var n=e.replace(/[^A-Za-z0-9\+\/]/g,w.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,l=void 0,c=0,u=0,d=0;d<o;d++)if(l=d&3,c|=this.b64ToUint6(n.charCodeAt(d))<<18-6*l,l===3||o-d===1){for(s=0;s<3&&u<i;s++,u++)a[u]=c>>>(16>>>s&24)&255;c=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.38.3 2023-10-27 */var lT=32,uT=function(){function t(e){this.base64Encode=new Km,this.cryptoObj=e}return t.prototype.generateCodes=function(){return I(this,void 0,void 0,function(){var e,r;return A(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(lT);this.cryptoObj.getRandomValues(e);var r=this.base64Encode.urlEncodeArr(e);return r}catch(n){throw M.createPkceNotGeneratedError(n)}},t.prototype.generateCodeChallengeFromVerifier=function(e){return I(this,void 0,void 0,function(){var r,n;return A(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(),M.createPkceNotGeneratedError(n);case 3:return[2]}})})},t}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var dT=function(){function t(){}return t.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},t.prototype.generateKey=function(e,r,n){return I(this,void 0,void 0,function(){return A(this,function(o){return[2,window.crypto.subtle.generateKey(e,r,n)]})})},t.prototype.exportKey=function(e){return I(this,void 0,void 0,function(){return A(this,function(r){return[2,window.crypto.subtle.exportKey(yo,e)]})})},t.prototype.importKey=function(e,r,n,o){return I(this,void 0,void 0,function(){return A(this,function(i){return[2,window.crypto.subtle.importKey(yo,e,r,n,o)]})})},t.prototype.sign=function(e,r,n){return I(this,void 0,void 0,function(){return A(this,function(o){return[2,window.crypto.subtle.sign(e,r,n)]})})},t.prototype.digest=function(e,r){return I(this,void 0,void 0,function(){return A(this,function(n){return[2,window.crypto.subtle.digest(e,r)]})})},t}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var fT=function(){function t(){}return t.prototype.initPrng=function(e){return window.msrCrypto.initPrng(bd(e))},t.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},t.prototype.generateKey=function(e,r,n){return I(this,void 0,void 0,function(){return A(this,function(o){return[2,window.msrCrypto.subtle.generateKey(e,r,n)]})})},t.prototype.exportKey=function(e){return I(this,void 0,void 0,function(){return A(this,function(r){return[2,window.msrCrypto.subtle.exportKey(yo,e)]})})},t.prototype.importKey=function(e,r,n,o){return I(this,void 0,void 0,function(){return A(this,function(i){return[2,window.msrCrypto.subtle.importKey(yo,e,r,n,o)]})})},t.prototype.sign=function(e,r,n){return I(this,void 0,void 0,function(){return A(this,function(o){return[2,window.msrCrypto.subtle.sign(e,r,n)]})})},t.prototype.digest=function(e,r){return I(this,void 0,void 0,function(){return A(this,function(n){return[2,window.msrCrypto.subtle.digest(e,r)]})})},t}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var hT=function(){function t(){}return t.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},t.prototype.generateKey=function(e,r,n){return I(this,void 0,void 0,function(){return A(this,function(o){return[2,new Promise(function(i,a){var s=window.msCrypto.subtle.generateKey(e,r,n);s.addEventListener("complete",function(l){i(l.target.result)}),s.addEventListener("error",function(l){a(l)})})]})})},t.prototype.exportKey=function(e){return I(this,void 0,void 0,function(){return A(this,function(r){return[2,new Promise(function(n,o){var i=window.msCrypto.subtle.exportKey(yo,e);i.addEventListener("complete",function(a){var s=a.target.result,l=mr.utf8ArrToString(new Uint8Array(s)).replace(/\r/g,w.EMPTY_STRING).replace(/\n/g,w.EMPTY_STRING).replace(/\t/g,w.EMPTY_STRING).split(" ").join(w.EMPTY_STRING).replace("\0",w.EMPTY_STRING);try{n(JSON.parse(l))}catch(c){o(c)}}),i.addEventListener("error",function(a){o(a)})})]})})},t.prototype.importKey=function(e,r,n,o){return I(this,void 0,void 0,function(){var i,a;return A(this,function(s){return i=mr.getSortedObjectString(e),a=mr.stringToArrayBuffer(i),[2,new Promise(function(l,c){var u=window.msCrypto.subtle.importKey(yo,a,r,n,o);u.addEventListener("complete",function(d){l(d.target.result)}),u.addEventListener("error",function(d){c(d)})})]})})},t.prototype.sign=function(e,r,n){return I(this,void 0,void 0,function(){return A(this,function(o){return[2,new Promise(function(i,a){var s=window.msCrypto.subtle.sign(e,r,n);s.addEventListener("complete",function(l){i(l.target.result)}),s.addEventListener("error",function(l){a(l)})})]})})},t.prototype.digest=function(e,r){return I(this,void 0,void 0,function(){return A(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.38.3 2023-10-27 */var pT="RSASSA-PKCS1-v1_5",zh="SHA-256",gT=2048,vT=new Uint8Array([1,0,1]),Gm=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 dT;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new hT;else if(this.hasMsrCrypto()&&(!((n=this.cryptoOptions)===null||n===void 0)&&n.useMsrCrypto))this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new fT;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."),M.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."),_s.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:pT,hash:zh,modulusLength:gT,publicExponent:vT}}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 I(this,void 0,void 0,function(){var r;return A(this,function(n){return r=mr.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:zh},r)]})})},t.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},t.prototype.generateKeyPair=function(e,r){return I(this,void 0,void 0,function(){return A(this,function(n){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,r)]})})},t.prototype.exportJwk=function(e){return I(this,void 0,void 0,function(){return A(this,function(r){return[2,this.subtleCrypto.exportKey(e)]})})},t.prototype.importJwk=function(e,r,n){return I(this,void 0,void 0,function(){return A(this,function(o){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,r,n)]})})},t.prototype.sign=function(e,r){return I(this,void 0,void 0,function(){return A(this,function(n){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,r)]})})},t}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var mT=function(){function t(){this.dbName=uu,this.version=VE,this.tableName=QE,this.dbOpen=!1}return t.prototype.open=function(){return I(this,void 0,void 0,function(){var e=this;return A(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(M.createDatabaseUnavailableError())})})]})})},t.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},t.prototype.validateDbIsOpen=function(){return I(this,void 0,void 0,function(){return A(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 I(this,void 0,void 0,function(){var r=this;return A(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(M.createDatabaseNotOpenError());var a=r.db.transaction([r.tableName],"readonly"),s=a.objectStore(r.tableName),l=s.get(e);l.addEventListener("success",function(c){var u=c;r.closeConnection(),o(u.target.result)}),l.addEventListener("error",function(c){r.closeConnection(),i(c)})})]}})})},t.prototype.setItem=function(e,r){return I(this,void 0,void 0,function(){var n=this;return A(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(M.createDatabaseNotOpenError());var s=n.db.transaction([n.tableName],"readwrite"),l=s.objectStore(n.tableName),c=l.put(r,e);c.addEventListener("success",function(){n.closeConnection(),i()}),c.addEventListener("error",function(u){n.closeConnection(),a(u)})})]}})})},t.prototype.removeItem=function(e){return I(this,void 0,void 0,function(){var r=this;return A(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(M.createDatabaseNotOpenError());var a=r.db.transaction([r.tableName],"readwrite"),s=a.objectStore(r.tableName),l=s.delete(e);l.addEventListener("success",function(){r.closeConnection(),o()}),l.addEventListener("error",function(c){r.closeConnection(),i(c)})})]}})})},t.prototype.getKeys=function(){return I(this,void 0,void 0,function(){var e=this;return A(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(M.createDatabaseNotOpenError());var i=e.db.transaction([e.tableName],"readonly"),a=i.objectStore(e.tableName),s=a.getAllKeys();s.addEventListener("success",function(l){var c=l;e.closeConnection(),n(c.target.result)}),s.addEventListener("error",function(l){e.closeConnection(),o(l)})})]}})})},t.prototype.containsKey=function(e){return I(this,void 0,void 0,function(){var r=this;return A(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(M.createDatabaseNotOpenError());var a=r.db.transaction([r.tableName],"readonly"),s=a.objectStore(r.tableName),l=s.count(e);l.addEventListener("success",function(c){var u=c;r.closeConnection(),o(u.target.result===1)}),l.addEventListener("error",function(c){r.closeConnection(),i(c)})})]}})})},t.prototype.deleteDatabase=function(){return I(this,void 0,void 0,function(){return A(this,function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(r,n){var o=window.indexedDB.deleteDatabase(uu);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.38.3 2023-10-27 */var Lh=function(){function t(e,r){this.inMemoryCache=new du,this.indexedDBCache=new mT,this.logger=e,this.storeName=r}return t.prototype.handleDatabaseAccessError=function(e){if(e instanceof M&&e.errorCode===N.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 I(this,void 0,void 0,function(){var r,n;return A(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 I(this,void 0,void 0,function(){var n;return A(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 I(this,void 0,void 0,function(){var r;return A(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 I(this,void 0,void 0,function(){var e,r;return A(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 I(this,void 0,void 0,function(){var r,n;return A(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 I(this,void 0,void 0,function(){var e,r;return A(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.38.3 2023-10-27 */var bs;(function(t){t.asymmetricKeys="asymmetricKeys",t.symmetricKeys="symmetricKeys"})(bs||(bs={}));var yT=function(){function t(e){this.logger=e,this.asymmetricKeys=new Lh(this.logger,bs.asymmetricKeys),this.symmetricKeys=new Lh(this.logger,bs.symmetricKeys)}return t.prototype.clear=function(){return I(this,void 0,void 0,function(){var e;return A(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.38.3 2023-10-27 */var wT=function(){function t(e,r,n){this.logger=e,this.browserCrypto=new Gm(this.logger,n),this.b64Encode=new Km,this.b64Decode=new cT,this.guidGenerator=new jm(this.browserCrypto),this.pkceGenerator=new uT(this.browserCrypto),this.cache=new yT(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 I(this,void 0,void 0,function(){return A(this,function(e){return[2,this.pkceGenerator.generateCodes()]})})},t.prototype.getPublicKeyThumbprint=function(e){var r;return I(this,void 0,void 0,function(){var n,o,i,a,s,l,c,u;return A(this,function(d){switch(d.label){case 0:return n=(r=this.performanceClient)===null||r===void 0?void 0:r.startMeasurement(S.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=mr.getSortedObjectString(a),[4,this.hashString(s)];case 3:return l=d.sent(),[4,this.browserCrypto.exportJwk(o.privateKey)];case 4:return c=d.sent(),[4,this.browserCrypto.importJwk(c,!1,["sign"])];case 5:return u=d.sent(),[4,this.cache.asymmetricKeys.setItem(l,{privateKey:u,publicKey:o.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri})];case 6:return d.sent(),n&&n.endMeasurement({success:!0}),[2,l]}})})},t.prototype.removeTokenBindingKey=function(e){return I(this,void 0,void 0,function(){var r;return A(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 I(this,void 0,void 0,function(){return A(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 I(this,void 0,void 0,function(){var i,a,s,l,c,u,d,f,p,h,m,C,v;return A(this,function(g){switch(g.label){case 0:return i=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(S.CryptoOptsSignJwt,n),[4,this.cache.asymmetricKeys.getItem(r)];case 1:if(a=g.sent(),!a)throw M.createSigningKeyNotFoundInStorageError(r);return[4,this.browserCrypto.exportJwk(a.publicKey)];case 2:return s=g.sent(),l=mr.getSortedObjectString(s),c=this.b64Encode.urlEncode(JSON.stringify({kid:r})),u=KE.getShrHeaderString({kid:c,alg:s.alg}),d=this.b64Encode.urlEncode(u),e.cnf={jwk:JSON.parse(l)},f=this.b64Encode.urlEncode(JSON.stringify(e)),p=d+"."+f,h=mr.stringToArrayBuffer(p),[4,this.browserCrypto.sign(a.privateKey,h)];case 3:return m=g.sent(),C=this.b64Encode.urlEncodeArr(new Uint8Array(m)),v=p+"."+C,i&&i.endMeasurement({success:!0}),[2,v]}})})},t.prototype.hashString=function(e){return I(this,void 0,void 0,function(){var r,n;return A(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.38.3 2023-10-27 */var Hh=function(){function t(e,r){this.correlationId=r,this.measureName=t.makeMeasureName(e,r),this.startMark=t.makeStartMark(e,r),this.endMark=t.makeEndMark(e,r)}return t.makeMeasureName=function(e,r){return"msal.measure."+e+"."+r},t.makeStartMark=function(e,r){return"msal.start."+e+"."+r},t.makeEndMark=function(e,r){return"msal.end."+e+"."+r},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.flushMeasurements=function(e,r){if(t.supportsBrowserPerformance())try{r.forEach(function(n){var o=t.makeMeasureName(n.name,e),i=window.performance.getEntriesByName(o,"measure");i.length>0&&(window.performance.clearMeasures(o),window.performance.clearMarks(t.makeStartMark(o,e)),window.performance.clearMarks(t.makeEndMark(o,e)))})}catch{}},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.38.3 2023-10-27 */var kT=function(t){Ke(e,t);function e(r,n,o,i,a,s,l){var c=t.call(this,r,n,o,i,a,s)||this;return c.browserCrypto=new Gm(c.logger,l),c.guidGenerator=new jm(c.browserCrypto),c}return e.prototype.startPerformanceMeasuremeant=function(r,n){return new Hh(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.deleteIncompleteSubMeasurements=function(r){var n=this.eventsByCorrelationId.get(r.event.correlationId),o=n&&n.eventId===r.event.eventId,i=[];o&&(n!=null&&n.incompleteSubMeasurements)&&n.incompleteSubMeasurements.forEach(function(a){i.push(H({},a))}),i.length>0&&Hh.flushMeasurements(r.event.correlationId,i)},e.prototype.supportsBrowserPerformanceNow=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.now=="function"},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){var l=a.endMeasurement(H({startPageVisibility:i,endPageVisibility:o.getPageVisibility()},s));return o.deleteIncompleteSubMeasurements(a),l},discardMeasurement:function(){a.discardMeasurement(),o.deleteIncompleteSubMeasurements(a),a.measurement.flushMeasurement()}})},e.prototype.setPreQueueTime=function(r,n){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to set telemetry queue time for "+r);return}if(!n){this.logger.trace("BrowserPerformanceClient: correlationId for "+r+" not provided, unable to set telemetry queue time");return}var o=this.preQueueTimeByCorrelationId.get(n);o&&(this.logger.trace("BrowserPerformanceClient: Incomplete pre-queue "+o.name+" found",n),this.addQueueMeasurement(o.name,n,void 0,!0)),this.preQueueTimeByCorrelationId.set(n,{name:r,time:window.performance.now()})},e.prototype.addQueueMeasurement=function(r,n,o,i){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to add queue measurement for "+r);return}if(!n){this.logger.trace("BrowserPerformanceClient: correlationId for "+r+" not provided, unable to add queue measurement");return}var a=t.prototype.getPreQueueTime.call(this,r,n);if(a){var s=window.performance.now(),l=o||t.prototype.calculateQueuedTime.call(this,a,s);return t.prototype.addQueueMeasurement.call(this,r,n,l,i)}},e}(zm);/*! @azure/msal-browser v2.38.3 2023-10-27 */var CT=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 M.createUnableToLoadTokenError("Please ensure server response includes id token.");var o=new or(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 ci(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 l=Ri.generateAuthority(e.authority,e.azureCloudOptions),c={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 Ri(l,this.config.system.networkClient,this.storage,c,this.logger),n.clientInfo){this.logger.trace("TokenCache - homeAccountId from options");var s=this.loadAccount(o,a.hostnameAndPort,n.clientInfo,a.authorityType);i=new ci(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 ci(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 M.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw M.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=Ue.generateHomeAccountId(n,o,this.logger,this.cryptoObj,e)),!a)throw M.createUnableToLoadTokenError("Unexpected missing homeAccountId");var s=n?Ue.createAccount(n,a,e,void 0,void 0,void 0,r):Ue.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 M.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},t.prototype.loadIdToken=function(e,r,n,o){var i=hn.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 M.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 M.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!a.extendedExpiresOn)throw M.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var s=new $e(e.scopes).printScopes(),l=a.expiresOn||r.expires_in+new Date().getTime()/1e3,c=a.extendedExpiresOn,u=pn.createAccessTokenEntity(n,o,r.access_token,this.config.auth.clientId,i,s,l,c,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(u),u;throw M.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=Xn.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 M.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},t.prototype.generateAuthenticationResult=function(e,r,n,o){var i,a,s,l=w.EMPTY_STRING,c=[],u=null,d;n!=null&&n.accessToken&&(l=n.accessToken.secret,c=$e.fromString(n.accessToken.target).asArray(),u=new Date(Number(n.accessToken.expiresOn)*1e3),d=new Date(Number(n.accessToken.extendedExpiresOn)*1e3));var f=(r==null?void 0:r.claims.oid)||(r==null?void 0:r.claims.sub)||w.EMPTY_STRING,p=(r==null?void 0:r.claims.tid)||w.EMPTY_STRING;return{authority:o?o.canonicalAuthority:w.EMPTY_STRING,uniqueId:f,tenantId:p,scopes:c,account:n!=null&&n.account?n.account.getAccountInfo():null,idToken:r?r.rawToken:w.EMPTY_STRING,idTokenClaims:r?r.claims:{},accessToken:l,fromCache:!0,expiresOn:u,correlationId:e.correlationId||w.EMPTY_STRING,requestId:w.EMPTY_STRING,extExpiresOn:d,familyId:w.EMPTY_STRING,tokenType:((i=n==null?void 0:n.accessToken)===null||i===void 0?void 0:i.tokenType)||w.EMPTY_STRING,state:w.EMPTY_STRING,cloudGraphHostName:((a=n==null?void 0:n.account)===null||a===void 0?void 0:a.cloudGraphHostName)||w.EMPTY_STRING,msGraphHost:((s=n==null?void 0:n.account)===null||s===void 0?void 0:s.msGraphHost)||w.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},t}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var _T=function(t){Ke(e,t);function e(r){var n=t.call(this,r)||this;return n.includeRedirectUri=!1,n}return e}(Om);/*! @azure/msal-browser v2.38.3 2023-10-27 */var bT=function(t){Ke(e,t);function e(r,n,o,i,a,s,l,c,u,d){var f=t.call(this,r,n,o,i,a,s,c,u,d)||this;return f.apiId=l,f}return e.prototype.acquireToken=function(r){return I(this,void 0,void 0,function(){var n,o,i,a,s,l,c;return A(this,function(u){switch(u.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!r.code)throw M.createAuthCodeRequiredError();return this.performanceClient.setPreQueueTime(S.StandardInteractionClientInitializeAuthorizationRequest,r.correlationId),[4,this.initializeAuthorizationRequest(r,z.Silent)];case 1:n=u.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||w.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}),this.performanceClient.setPreQueueTime(S.StandardInteractionClientGetClientConfiguration,r.correlationId),[4,this.getClientConfiguration(o,n.authority)];case 3:return a=u.sent(),s=new _T(a),this.logger.verbose("Auth code client created"),l=new qm(s,this.browserStorage,i,this.logger,this.config.system,this.performanceClient),[2,l.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 c=u.sent(),c instanceof U&&c.setCorrelationId(this.correlationId),o.cacheFailedRequest(c),this.browserStorage.cleanRequestByState(n.state),c;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(M.createSilentLogoutUnsupportedError())},e}(bo);/*! @azure/msal-browser v2.38.3 2023-10-27 */var ST=function(){function t(e){this.isBrowserEnvironment=typeof window<"u",this.config=oT(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new Sd(this.config.system.loggerOptions,Wc,li),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 kT(this.config.auth.clientId,this.config.auth.authority,this.logger,Wc,li,this.config.telemetry.application,this.config.system.cryptoOptions):new WE(this.config.auth.clientId,this.config.auth.authority,this.logger,Wc,li,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new wT(this.logger,this.performanceClient,this.config.system.cryptoOptions):gs,this.eventHandler=new sT(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new fu(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):YE(this.config.auth.clientId,this.logger);var r={cacheLocation:Ie.MemoryStorage,temporaryCacheLocation:Ie.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};this.nativeInternalStorage=new fu(this.config.auth.clientId,r,this.browserCrypto,this.logger),this.tokenCache=new CT(this.config,this.browserStorage,this.logger,this.browserCrypto),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}return t.prototype.initialize=function(){return I(this,void 0,void 0,function(){var e,r,n,o,i;return A(this,function(a){switch(a.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(e=this.config.system.allowNativeBroker,r=this.performanceClient.startMeasurement(S.InitializeClientApplication),this.eventHandler.emitEvent(K.INITIALIZE_START),!e)return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),n=this,[4,kn.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)];case 2:return n.nativeExtensionProvider=a.sent(),[3,4];case 3:return o=a.sent(),this.logger.verbose(o),[3,4];case 4:return this.config.cache.claimsBasedCachingEnabled?[3,6]:(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),i=this.performanceClient.startMeasurement(S.ClearTokensAndKeysWithClaims),[4,this.browserStorage.clearTokensAndKeysWithClaims()]);case 5:a.sent(),i.endMeasurement({success:!0}),a.label=6;case 6:return this.initialized=!0,this.eventHandler.emitEvent(K.INITIALIZE_END),r.endMeasurement({allowNativeBroker:e,success:!0}),[2]}})})},t.prototype.handleRedirectPromise=function(e){return I(this,void 0,void 0,function(){var r,n,o,i,a,s,l,c,u=this;return A(this,function(d){return this.logger.verbose("handleRedirectPromise called"),_e.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),r=this.getAllAccounts(),this.isBrowserEnvironment?(n=e||w.EMPTY_STRING,o=this.redirectResponse.get(n),typeof o>"u"?(this.eventHandler.emitEvent(K.HANDLE_REDIRECT_START,z.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),i=this.browserStorage.getCachedNativeRequest(),a=void 0,i&&kn.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),s=new ao(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,le.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,i.accountId,this.nativeInternalStorage,i.correlationId),a=s.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),l=this.browserStorage.getTemporaryCache(te.CORRELATION_ID,!0)||w.EMPTY_STRING,c=this.createRedirectClient(l),a=c.handleRedirectPromise(e)),o=a.then(function(f){if(f){var p=r.length<u.getAllAccounts().length;p?(u.eventHandler.emitEvent(K.LOGIN_SUCCESS,z.Redirect,f),u.logger.verbose("handleRedirectResponse returned result, login success")):(u.eventHandler.emitEvent(K.ACQUIRE_TOKEN_SUCCESS,z.Redirect,f),u.logger.verbose("handleRedirectResponse returned result, acquire token success"))}return u.eventHandler.emitEvent(K.HANDLE_REDIRECT_END,z.Redirect),f}).catch(function(f){throw r.length>0?u.eventHandler.emitEvent(K.ACQUIRE_TOKEN_FAILURE,z.Redirect,null,f):u.eventHandler.emitEvent(K.LOGIN_FAILURE,z.Redirect,null,f),u.eventHandler.emitEvent(K.HANDLE_REDIRECT_END,z.Redirect),f}),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 I(this,void 0,void 0,function(){var r,n,o,i,a,s=this;return A(this,function(l){return r=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",r),this.preflightBrowserEnvironmentCheck(z.Redirect),n=this.getAllAccounts().length>0,n?this.eventHandler.emitEvent(K.ACQUIRE_TOKEN_START,z.Redirect,e):this.eventHandler.emitEvent(K.LOGIN_START,z.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(i=new ao(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,le.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),o=i.acquireTokenRedirect(e).catch(function(c){if(c instanceof tr&&c.isFatal()){s.nativeExtensionProvider=void 0;var u=s.createRedirectClient(e.correlationId);return u.acquireToken(e)}else if(c instanceof Bt){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),c})):(a=this.createRedirectClient(e.correlationId),o=a.acquireToken(e)),[2,o.catch(function(c){throw n?s.eventHandler.emitEvent(K.ACQUIRE_TOKEN_FAILURE,z.Redirect,null,c):s.eventHandler.emitEvent(K.LOGIN_FAILURE,z.Redirect,null,c),c})]})})},t.prototype.acquireTokenPopup=function(e){var r=this,n=this.getRequestCorrelationId(e),o=this.performanceClient.startMeasurement(S.AcquireTokenPopup,n);try{this.logger.verbose("acquireTokenPopup called",n),this.preflightBrowserEnvironmentCheck(z.Popup)}catch(l){return Promise.reject(l)}var i=this.getAllAccounts();i.length>0?this.eventHandler.emitEvent(K.ACQUIRE_TOKEN_START,z.Popup,e):this.eventHandler.emitEvent(K.LOGIN_START,z.Popup,e);var a;if(this.canUseNative(e))a=this.acquireTokenNative(e,le.acquireTokenPopup).then(function(l){return r.browserStorage.setInteractionInProgress(!1),o.endMeasurement({success:!0,isNativeBroker:!0,requestId:l.requestId}),l}).catch(function(l){if(l instanceof tr&&l.isFatal()){r.nativeExtensionProvider=void 0;var c=r.createPopupClient(e.correlationId);return c.acquireToken(e)}else if(l instanceof Bt){r.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");var c=r.createPopupClient(e.correlationId);return c.acquireToken(e)}throw r.browserStorage.setInteractionInProgress(!1),l});else{var s=this.createPopupClient(e.correlationId);a=s.acquireToken(e)}return a.then(function(l){var c=i.length<r.getAllAccounts().length;return c?r.eventHandler.emitEvent(K.LOGIN_SUCCESS,z.Popup,l):r.eventHandler.emitEvent(K.ACQUIRE_TOKEN_SUCCESS,z.Popup,l),o.addStaticFields({accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),o.endMeasurement({success:!0,requestId:l.requestId}),l}).catch(function(l){return i.length>0?r.eventHandler.emitEvent(K.ACQUIRE_TOKEN_FAILURE,z.Popup,null,l):r.eventHandler.emitEvent(K.LOGIN_FAILURE,z.Popup,null,l),o.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),Promise.reject(l)})},t.prototype.trackPageVisibilityWithMeasurement=function(){var e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))},t.prototype.ssoSilent=function(e){var r;return I(this,void 0,void 0,function(){var n,o,i,a,s=this;return A(this,function(l){return n=this.getRequestCorrelationId(e),o=H(H({},e),{prompt:e.prompt,correlationId:n}),this.preflightBrowserEnvironmentCheck(z.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(S.SsoSilent,n),(r=this.ssoSilentMeasurement)===null||r===void 0||r.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",n),this.eventHandler.emitEvent(K.SSO_SILENT_START,z.Silent,o),this.canUseNative(o)?i=this.acquireTokenNative(o,le.ssoSilent).catch(function(c){if(c instanceof tr&&c.isFatal()){s.nativeExtensionProvider=void 0;var u=s.createSilentIframeClient(o.correlationId);return u.acquireToken(o)}throw c}):(a=this.createSilentIframeClient(o.correlationId),i=a.acquireToken(o)),[2,i.then(function(c){var u,d;return s.eventHandler.emitEvent(K.SSO_SILENT_SUCCESS,z.Silent,c),(u=s.ssoSilentMeasurement)===null||u===void 0||u.addStaticFields({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),(d=s.ssoSilentMeasurement)===null||d===void 0||d.endMeasurement({success:!0,isNativeBroker:c.fromNativeBroker,requestId:c.requestId}),c}).catch(function(c){var u;throw s.eventHandler.emitEvent(K.SSO_SILENT_FAILURE,z.Silent,null,c),(u=s.ssoSilentMeasurement)===null||u===void 0||u.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),c}).finally(function(){document.removeEventListener("visibilitychange",s.trackPageVisibilityWithMeasurement)})]})})},t.prototype.acquireTokenByCode=function(e){return I(this,void 0,void 0,function(){var r,n,o,i,a=this;return A(this,function(s){r=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(z.Silent),this.logger.trace("acquireTokenByCode called",r),this.eventHandler.emitEvent(K.ACQUIRE_TOKEN_BY_CODE_START,z.Silent,e),n=this.performanceClient.startMeasurement(S.AcquireTokenByCode,e.correlationId);try{if(e.code&&e.nativeAccountId)throw M.createSpaCodeAndNativeAccountIdPresentError();if(e.code)return o=e.code,i=this.hybridAuthCodeResponses.get(o),i?(this.logger.verbose("Existing acquireTokenByCode request found",e.correlationId),n.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",r),i=this.acquireTokenByCodeAsync(H(H({},e),{correlationId:r})).then(function(l){return a.eventHandler.emitEvent(K.ACQUIRE_TOKEN_BY_CODE_SUCCESS,z.Silent,l),a.hybridAuthCodeResponses.delete(o),n.addStaticFields({accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),n.endMeasurement({success:!0,isNativeBroker:l.fromNativeBroker,requestId:l.requestId}),l}).catch(function(l){throw a.hybridAuthCodeResponses.delete(o),a.eventHandler.emitEvent(K.ACQUIRE_TOKEN_BY_CODE_FAILURE,z.Silent,null,l),n.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),l}),this.hybridAuthCodeResponses.set(o,i)),[2,i];if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return[2,this.acquireTokenNative(e,le.acquireTokenByCode,e.nativeAccountId).catch(function(l){throw l instanceof tr&&l.isFatal()&&(a.nativeExtensionProvider=void 0),l})];throw M.createUnableToAcquireTokenFromNativePlatformError()}else throw M.createAuthCodeOrNativeAccountIdRequiredError()}catch(l){throw this.eventHandler.emitEvent(K.ACQUIRE_TOKEN_BY_CODE_FAILURE,z.Silent,null,l),n.endMeasurement({errorCode:l instanceof U&&l.errorCode||void 0,subErrorCode:l instanceof U&&l.subError||void 0,success:!1}),l}return[2]})})},t.prototype.acquireTokenByCodeAsync=function(e){var r;return I(this,void 0,void 0,function(){var n,o,i=this;return A(this,function(a){switch(a.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(S.AcquireTokenByCodeAsync,e.correlationId),(r=this.acquireTokenByCodeAsyncMeasurement)===null||r===void 0||r.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),n=this.createSilentAuthCodeClient(e.correlationId),[4,n.acquireToken(e).then(function(s){var l;return(l=i.acquireTokenByCodeAsyncMeasurement)===null||l===void 0||l.endMeasurement({success:!0,fromCache:s.fromCache,isNativeBroker:s.fromNativeBroker,requestId:s.requestId}),s}).catch(function(s){var l;throw(l=i.acquireTokenByCodeAsyncMeasurement)===null||l===void 0||l.endMeasurement({errorCode:s.errorCode,subErrorCode:s.subError,success:!1}),s}).finally(function(){document.removeEventListener("visibilitychange",i.trackPageVisibilityWithMeasurement)})];case 1:return o=a.sent(),[2,o]}})})},t.prototype.acquireTokenFromCache=function(e,r,n){return I(this,void 0,void 0,function(){return A(this,function(o){switch(this.performanceClient.addQueueMeasurement(S.AcquireTokenFromCache,r.correlationId),n.cacheLookupPolicy){case lt.Default:case lt.AccessToken:case lt.AccessTokenAndRefreshToken:return[2,e.acquireToken(r)];default:throw F.createRefreshRequiredError()}return[2]})})},t.prototype.acquireTokenByRefreshToken=function(e,r){return I(this,void 0,void 0,function(){var n;return A(this,function(o){switch(this.performanceClient.addQueueMeasurement(S.AcquireTokenByRefreshToken,e.correlationId),r.cacheLookupPolicy){case lt.Default:case lt.AccessTokenAndRefreshToken:case lt.RefreshToken:case lt.RefreshTokenAndNetwork:return n=this.createSilentRefreshClient(e.correlationId),this.performanceClient.setPreQueueTime(S.SilentRefreshClientAcquireToken,e.correlationId),[2,n.acquireToken(e)];default:throw F.createRefreshRequiredError()}return[2]})})},t.prototype.acquireTokenBySilentIframe=function(e){return I(this,void 0,void 0,function(){var r;return A(this,function(n){return this.performanceClient.addQueueMeasurement(S.AcquireTokenBySilentIframe,e.correlationId),r=this.createSilentIframeClient(e.correlationId),this.performanceClient.setPreQueueTime(S.SilentIframeClientAcquireToken,e.correlationId),[2,r.acquireToken(e)]})})},t.prototype.logout=function(e){return I(this,void 0,void 0,function(){var r;return A(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 I(this,void 0,void 0,function(){var r,n;return A(this,function(o){return r=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(z.Redirect),n=this.createRedirectClient(r),[2,n.logout(e)]})})},t.prototype.logoutPopup=function(e){try{var r=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck(z.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){if(this.logger.trace("getAccountByUsername called"),!e)return this.logger.warning("getAccountByUsername: No username provided"),null;var r=this.browserStorage.getAccountInfoFilteredBy({username:e});return r?(this.logger.verbose("getAccountByUsername: Account matching username found, returning"),this.logger.verbosePii("getAccountByUsername: Returning signed-in accounts matching username: "+e),r):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},t.prototype.getAccountByHomeId=function(e){if(this.logger.trace("getAccountByHomeId called"),!e)return this.logger.warning("getAccountByHomeId: No homeAccountId provided"),null;var r=this.browserStorage.getAccountInfoFilteredBy({homeAccountId:e});return r?(this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),this.logger.verbosePii("getAccountByHomeId: Returning signed-in accounts matching homeAccountId: "+e),r):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},t.prototype.getAccountByLocalId=function(e){if(this.logger.trace("getAccountByLocalId called"),!e)return this.logger.warning("getAccountByLocalId: No localAccountId provided"),null;var r=this.browserStorage.getAccountInfoFilteredBy({localAccountId:e});return r?(this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),this.logger.verbosePii("getAccountByLocalId: Returning signed-in accounts matching localAccountId: "+e),r):(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"),_e.blockNonBrowserEnvironment(this.isBrowserEnvironment),_e.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),_e.blockReloadInHiddenIframes(),_e.blockAcquireTokenInPopups(),_e.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===z.Redirect&&this.config.cache.cacheLocation===Ie.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw _s.createInMemoryRedirectUnavailableError();(e===z.Redirect||e===z.Popup)&&this.preflightInteractiveRequest(r)},t.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),_e.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},t.prototype.acquireTokenNative=function(e,r,n){return I(this,void 0,void 0,function(){var o;return A(this,function(i){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw M.createNativeConnectionNotEstablishedError();return o=new ao(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"),!kn.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 Xe.NONE:case Xe.CONSENT:case Xe.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 ZE(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 JE(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 iT(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,le.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},t.prototype.createSilentCacheClient=function(e){return new Um(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},t.prototype.createSilentRefreshClient=function(e){return new aT(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},t.prototype.createSilentAuthCodeClient=function(e){return new bT(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,le.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():w.EMPTY_STRING},t}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var ET=function(t){Ke(e,t);function e(r){var n=t.call(this,r)||this;return n.astsAsyncMeasurement=void 0,n.activeSilentTokenRequests=new Map,n.trackPageVisibility=n.trackPageVisibility.bind(n),n}return e.prototype.loginRedirect=function(r){return I(this,void 0,void 0,function(){var n;return A(this,function(o){return n=this.getRequestCorrelationId(r),this.logger.verbose("loginRedirect called",n),[2,this.acquireTokenRedirect(H({correlationId:n},r||Mh))]})})},e.prototype.loginPopup=function(r){var n=this.getRequestCorrelationId(r);return this.logger.verbose("loginPopup called",n),this.acquireTokenPopup(H({correlationId:n},r||Mh))},e.prototype.acquireTokenSilent=function(r){return I(this,void 0,void 0,function(){var n,o,i,a,s,l,c,u=this;return A(this,function(d){if(n=this.getRequestCorrelationId(r),o=this.performanceClient.startMeasurement(S.AcquireTokenSilent,n),o.addStaticFields({cacheLookupPolicy:r.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(z.Silent),this.logger.verbose("acquireTokenSilent called",n),i=r.account||this.getActiveAccount(),!i)throw M.createNoAccountError();return a={clientId:this.config.auth.clientId,authority:r.authority||w.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),l=this.activeSilentTokenRequests.get(s),typeof l>"u"?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",n),this.performanceClient.setPreQueueTime(S.AcquireTokenSilentAsync,n),c=this.acquireTokenSilentAsync(H(H({},r),{correlationId:n}),i).then(function(f){return u.activeSilentTokenRequests.delete(s),o.addStaticFields({accessTokenSize:f.accessToken.length,idTokenSize:f.idToken.length}),o.endMeasurement({success:!0,fromCache:f.fromCache,isNativeBroker:f.fromNativeBroker,cacheLookupPolicy:r.cacheLookupPolicy,requestId:f.requestId}),f}).catch(function(f){throw u.activeSilentTokenRequests.delete(s),o.endMeasurement({errorCode:f.errorCode,subErrorCode:f.subError,success:!1}),f}),this.activeSilentTokenRequests.set(s,c),[2,c]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",n),o.discardMeasurement(),[2,l])})})},e.prototype.trackPageVisibility=function(){this.astsAsyncMeasurement&&(this.logger.info("Perf: Visibility change detected"),this.astsAsyncMeasurement.increment({visibilityChangeCount:1}))},e.prototype.acquireTokenSilentAsync=function(r,n){var o;return I(this,void 0,void 0,function(){var i,a,s,l,c,u=this;return A(this,function(d){switch(d.label){case 0:return this.performanceClient.addQueueMeasurement(S.AcquireTokenSilentAsync,r.correlationId),this.eventHandler.emitEvent(K.ACQUIRE_TOKEN_START,z.Silent,r),this.astsAsyncMeasurement=this.performanceClient.startMeasurement(S.AcquireTokenSilentAsync,r.correlationId),(o=this.astsAsyncMeasurement)===null||o===void 0||o.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility),kn.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,le.acquireTokenSilent_silentFlow).catch(function(f){return I(u,void 0,void 0,function(){var p;return A(this,function(h){if(f instanceof tr&&f.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 f})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),s=this.createSilentCacheClient(r.correlationId),this.performanceClient.setPreQueueTime(S.InitializeSilentRequest,r.correlationId),[4,s.initializeSilentRequest(r,n)];case 2:l=d.sent(),c=H(H({},r),{cacheLookupPolicy:r.cacheLookupPolicy||lt.Default}),this.performanceClient.setPreQueueTime(S.AcquireTokenFromCache,l.correlationId),i=this.acquireTokenFromCache(s,l,c).catch(function(f){if(c.cacheLookupPolicy===lt.AccessToken)throw f;return _e.blockReloadInHiddenIframes(),u.eventHandler.emitEvent(K.ACQUIRE_TOKEN_NETWORK_START,z.Silent,l),u.performanceClient.setPreQueueTime(S.AcquireTokenByRefreshToken,l.correlationId),u.acquireTokenByRefreshToken(l,c).catch(function(p){var h=p instanceof In,m=p instanceof Bt,C=p.errorCode===Jn.noTokensFoundError.code,v=p.errorCode===Kt.INVALID_GRANT_ERROR;if((!h||!v||m||c.cacheLookupPolicy===lt.AccessTokenAndRefreshToken||c.cacheLookupPolicy===lt.RefreshToken)&&c.cacheLookupPolicy!==lt.Skip&&!C)throw p;return u.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",r.correlationId),u.performanceClient.setPreQueueTime(S.AcquireTokenBySilentIframe,l.correlationId),u.acquireTokenBySilentIframe(l)})}),d.label=3;case 3:return[2,i.then(function(f){var p;return u.eventHandler.emitEvent(K.ACQUIRE_TOKEN_SUCCESS,z.Silent,f),(p=u.astsAsyncMeasurement)===null||p===void 0||p.endMeasurement({success:!0,fromCache:f.fromCache,isNativeBroker:f.fromNativeBroker,requestId:f.requestId}),f}).catch(function(f){var p;throw u.eventHandler.emitEvent(K.ACQUIRE_TOKEN_FAILURE,z.Silent,null,f),(p=u.astsAsyncMeasurement)===null||p===void 0||p.endMeasurement({errorCode:f.errorCode,subErrorCode:f.subError,success:!1}),f}).finally(function(){document.removeEventListener("visibilitychange",u.trackPageVisibility)})]}})})},e}(ST),Uh=function(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},TT=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{c(n.next(u))}catch(d){a(d)}}function l(u){try{c(n.throw(u))}catch(d){a(d)}}function c(u){u.done?i(u.value):o(u.value).then(s,l)}c((n=n.apply(t,e||[])).next())})},IT=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(c){return function(u){return l([c,u])}}function l(c){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=c[0]&2?o.return:c[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,c[1])).done)return i;switch(o=0,i&&(c=[c[0]&2,i.value]),c[0]){case 0:case 1:i=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,o=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!i||c[1]>i[0]&&c[1]<i[3])){r.label=c[1];break}if(c[0]===6&&r.label<i[1]){r.label=i[1],i=c;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(c);break}i[2]&&r.ops.pop(),r.trys.pop();continue}c=e.call(t,r)}catch(u){c=[6,u],o=0}finally{n=i=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},AT=function(){function t(e,r){r===void 0&&(r=!0);var n=this;this.config=e,this.usePopup=r,this.resourceTokenMap=new Map,this.resourceScopeMap=new Map,this.handleResponse=function(o){if(o){var i=o.scopes||[],a=new URL(i[0]).origin;sessionStorage.setItem("msal.".concat(n.config.clientId,".").concat(a,".idtoken"),o.accessToken),n.resourceTokenMap.set(a,o.accessToken),window.history&&window.history.replaceState&&window.history.replaceState({},document.title,window.location.pathname)}},this.config.tenantId=e.tenantId||"common",this.config.redirectUri=e.redirectUri||window.location.origin,this.msalObj=new ET({auth:{clientId:e.clientId,authority:"https://login.microsoftonline.com/".concat(e.tenantId),redirectUri:e.redirectUri},cache:{cacheLocation:"sessionStorage"}}),this.usePopup||this.msalObj.handleRedirectPromise().then(this.handleResponse)}return t.prototype.login=function(e){var r,n=this.config.scopes||["".concat(e,"/.default")];if(this.resourceScopeMap.has(e)&&(n=((r=this.resourceScopeMap.get(e))===null||r===void 0?void 0:r.map(function(o){return"".concat(e,"/").concat(o)}))||n),this.usePopup)return this.msalObj.loginPopup({scopes:n});this.msalObj.loginRedirect({scopes:["".concat(e,"/.default")]})},t.prototype.getAccessToken=function(e){return TT(this,void 0,void 0,function(){var r,n,o;return IT(this,function(i){switch(i.label){case 0:if(r=this.resourceTokenMap.get(e),r||(r=sessionStorage.getItem("msal.".concat(this.config.clientId,".").concat(e,".idtoken"))),r&&hE.isTokenValid(r))return[2,r];i.label=1;case 1:return i.trys.push([1,3,,6]),[4,this.msalObj.ssoSilent({scopes:["".concat(e,"/.default")]})];case 2:return n=i.sent(),[3,6];case 3:return o=i.sent(),o instanceof Bt?[4,this.login(e)]:[3,5];case 4:n=i.sent(),i.label=5;case 5:return[3,6];case 6:return r=(n==null?void 0:n.accessToken)||"",sessionStorage.setItem("msal.".concat(this.config.clientId,".").concat(e,".idtoken"),r),this.resourceTokenMap.set(e,r),[2,r]}})})},Uh([wh("msalLogin-{0}")],t.prototype,"login",null),Uh([wh("access-token-{0}")],t.prototype,"getAccessToken",null),t}();const Wm=E.createContext(void 0),Vm=()=>E.useContext(Wm),PT=t=>{const[e,r]=E.useState(void 0),n=E.useMemo(()=>e!==void 0,[e]);return E.useEffect(()=>{t.authProvider?r(t.authProvider):t.authProviderFactory?t.authProviderFactory().then(o=>{r(o)}):t.msalAuthConfig&&r(new AT(t.msalAuthConfig))},[t.authProvider,t.authProviderFactory,t.msalAuthConfig]),J.jsx(Wm.Provider,{value:{authProvider:e},children:n&&t.children})},Qm=E.createContext(void 0),Ym=()=>E.useContext(Qm),NT=t=>{const{authProvider:e}=Vm(),r=()=>{if(t.graphClient)return t.graphClient;if(e)return new mE(new Rm(e,new Bm))},[n,o]=E.useState(r());return E.useEffect(()=>{o(r())},[t.graphClient,e]),J.jsx(Qm.Provider,{value:{graphClient:n},children:t.children})},RT=E.createContext(void 0),BT=t=>{const{authProvider:e}=Vm(),[r,n]=E.useState(void 0);return E.useEffect(()=>{if(t.spClient)n(t.spClient);else{var o=new Rm(e,new Bm);o.resourceUri=new URL(t.siteUrl).origin,n(o)}},[t.spClient,e]),J.jsx(RT.Provider,{value:{siteUrl:t.siteUrl,spClient:r},children:t.children})},xT=["Title","Path","Description","ListItemId","IdentityListItemId","IdentityListId","IdentitySiteCollectionId","IdentityWebId","LastModifiedTime","ViewsLifeTime","ViewsRecent","owstaxidmetadataalltagsinfo","DriveId","Author","AuthorOwsUser"],qh="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/xlsx.png",jh="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/docx.png",Kh="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/pptx.png",Gh="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/mpp.png",Fo="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/photo.png",MT="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/pdf.png",OT="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/txt.png",Wh="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/email.png",FT="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/csv.png",DT="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/pub.png",zT="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/accdb.png",Vc="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/zip.png",Qc="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/genericfile.png",Vh="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/code.png",LT="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/html.png",HT="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/xml.png",UT="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/spo.png",Do="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/video.png",Es=class Es{static getFileImageUrl(e){if(!e)return Qc;let r=Qc;const n=e.split("."),o=n[n.length-1];if(!o)return r;switch(o.toLowerCase()){case"xlsx":r=qh;break;case"xls":r=qh;break;case"docx":r=jh;break;case"doc":r=jh;break;case"pptx":r=Kh;break;case"ppt":r=Kh;break;case"mppx":r=Gh;break;case"mpp":r=Gh;break;case"csv":r=FT;break;case"pdf":r=MT;break;case"txt":r=OT;break;case"jpg":r=Fo;break;case"msg":r=Wh;break;case"jpeg":r=Fo;break;case"png":r=Fo;break;case"ico":r=Fo;break;case"tiff":r=Fo;break;case"eml":r=Wh;break;case"pub":r=DT;break;case"accdb":r=zT;break;case"zip":r=Vc;break;case"7z":r=Vc;break;case"tar":r=Vc;break;case"js":r=Vh;break;case"json":r=Vh;break;case"html":r=LT;break;case"xml":r=HT;break;case"aspx":r=UT;break;case"mp4":r=Do;break;case"mov":r=Do;break;case"wmv":r=Do;break;case"ogg":r=Do;break;case"webm":r=Do;break;default:r=Qc;break}return r}};Es.getShortName=e=>{if(!e)return"";const r=e.split("."),n=r[0].substring(0,25),o=r[r.length-1];return`${n}...${o}`},Es.isOndrive=async e=>e?e.indexOf("my.sharepoint.com")>-1:!1;let Ss=Es;const cn=class cn{};cn.getThumbnailUrl=(e,r="medium")=>`https://graph.microsoft.com/v1.0/sites/${e.identitySiteCollectionId}/sites/${e.identityWebId}/lists/${e.identityListId}/items/${e.listItemId}/microsoft.graph.listitem/driveItem/thumbnails/0/${r}/content`,cn.getThumbnailImageFromGraphApiCall=async(e,r)=>{const n=await e.get(r);if(n.headers["content-type"]==="application/json")return"data:image/png;base64,"+(await n.text()).replace('"',"").replace('"',"");if(n.status===302)return n.headers.Location;if(n.status===404)return"";const o=await n.arrayBuffer();return`data:image/jpeg;base64,${Buffer.from(new Uint8Array(o).reduce((a,s)=>a+String.fromCharCode(s),"")).toString("base64")}`},cn.getThumbnailImageFromGraph=async(e,r,n="medium")=>{const o=cn.getThumbnailUrl(e,n);return await cn.getThumbnailImageFromGraphApiCall(r,o)};let pu=cn;const qT=Ov({title:{...Ma.margin(0,0,"12px")},description:{...Ma.margin(0,0,"12px")},card:{width:"20rem",maxWidth:"100%",height:"fit-content"},image:{width:"20rem",height:"7rem"},text:{...Ma.margin(0)},imageIconWrapper:{width:"20rem!important",height:"7rem!important",display:"flex!important",justifyContent:"center",alignItems:"center",backgroundColor:Jl.colorNeutralBackground3}}),jT=t=>{const{graphClient:e}=Ym(),r=qT(),[n,o]=E.useState(void 0);return E.useEffect(()=>{pu.getThumbnailImageFromGraph(t.document.fields,e).then(i=>{o(i)}).catch(i=>{console.error(i)})},[]),J.jsxs(Im,{className:r.card,children:[J.jsx(Nm,{children:n?J.jsx("img",{src:n,alt:t.document.fields.title,className:r.image}):J.jsx("div",{className:r.imageIconWrapper,children:J.jsx("div",{children:J.jsx("img",{src:Ss.getFileImageUrl(t.document.fields.path),width:"32px",height:"32px",alt:t.document.fields.title})})})}),J.jsx(Pm,{image:J.jsx("img",{src:Ss.getFileImageUrl(t.document.fields.path),width:"32px",height:"32px",alt:t.document.fields.title}),header:J.jsx(LS,{children:J.jsx("b",{children:t.document.fields.title})}),description:J.jsx(qS,{children:t.document.fields.author}),action:J.jsx(wm,{appearance:"transparent","aria-label":"More options"})}),J.jsx("p",{className:r.text,children:t.document.fields.description}),J.jsx(Am,{})]})},KT=Ov({wrapper:{},searchInput:{},searchResults:{display:"flex",flexWrap:"wrap",flexDirection:"row",...Ma.gap(Jl.spacingHorizontalL,Jl.spacingVerticalL)}}),GT=t=>{var p;const{graphClient:e}=Ym(),r=KT(),n=E.useMemo(()=>{var m,C,v,g,y,k;var h=new wE(e,[((m=t.dataProviderProps)==null?void 0:m.entityType)??"listItem"],((C=t.dataProviderProps)==null?void 0:C.selectFields)||xT);return h.queryTemplate=(v=t.dataProviderProps)==null?void 0:v.queryTemplate,h.pageSize=(g=t.dataProviderProps)==null?void 0:g.pageSize,h.setRefiners((y=t.dataProviderProps)==null?void 0:y.aggregations),h.setQuery(((k=t.dataProviderProps)==null?void 0:k.initialQuery)??""),h},[e,t.dataProviderProps]),[o,i]=E.useState(!0),[a,s]=E.useState(((p=t.dataProviderProps)==null?void 0:p.initialQuery)??""),[l,c]=E.useState([]),[u,d]=E.useState(void 0);E.useEffect(()=>{n.setQuery(a),i(!0),n.getData().then(h=>{c(h),d(void 0)}).catch(h=>{d(h.message)}).finally(()=>{i(!1)})},[a]);const f=()=>t!=null&&t.searchInputComponent?J.jsx(t.searchInputComponent,{onSearch:h=>{s(h)}}):J.jsx(Cm,{contentBefore:J.jsx(A_,{}),placeholder:"Search",value:a,onChange:h=>{s(h.target.value)}});return J.jsxs("div",{children:[J.jsx("div",{children:f()}),J.jsxs("div",{children:[o&&J.jsx(bm,{label:"Loading..."}),!o&&u&&J.jsxs("div",{children:["Error: ",u]})]}),J.jsx("div",{className:r.searchResults,children:l.map((h,m)=>J.jsx("div",{children:t!=null&&t.onResultRendering?t.onResultRendering(h):J.jsx(jT,{document:h})},m))})]})};function WT(){return J.jsx(PT,{msalAuthConfig:{clientId:"<app_client_id>"},children:J.jsx(NT,{children:J.jsx(BT,{siteUrl:"<site_url>",children:J.jsx(J.Fragment,{children:J.jsx(GT,{dataProviderProps:{queryTemplate:"{searchTerms} AND (contentclass:STS_ListItem OR IsDocument:True) -FileType:aspx",aggregations:[{field:"FileType",size:10,bucketDefinition:{sortBy:"count",isDescending:!0,minimumCount:0}},{field:"Size",bucketDefinition:{sortBy:"count",isDescending:!0,minimumCount:0}}]}})})})})})}lv(document.getElementById("root")).render(J.jsx(mm,{theme:M1,children:J.jsx(WT,{})}));
|