mgwdev-m365-components 0.0.4 → 0.0.6
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/dist/components/common/ConditionalRenderComponent.d.ts +7 -0
- package/dist/components/common/GraphGroupMembershipTrimmedComponent.d.ts +10 -0
- package/{lib → dist}/components/common/GraphPersona.d.ts +12 -10
- package/dist/components/common/SPPermissionTrimmedComponent.d.ts +11 -0
- package/{lib → dist}/components/common/graphEntityPicker/AbstractGraphEntityPicker.d.ts +16 -16
- package/{lib → dist}/components/common/graphEntityPicker/ChannelPicker.d.ts +11 -11
- package/{lib → dist}/components/common/graphEntityPicker/DrivePicker.d.ts +11 -11
- package/{lib → dist}/components/common/graphEntityPicker/ListPicker.d.ts +11 -11
- package/{lib → dist}/components/common/graphEntityPicker/PeoplePicker.d.ts +8 -8
- package/{lib → dist}/components/common/graphEntityPicker/SitePicker.d.ts +8 -8
- package/{lib → dist}/components/common/graphEntityPicker/TeamPicker.d.ts +8 -8
- package/{lib → dist}/components/common/graphEntityPicker/index.d.ts +6 -6
- package/dist/components/common/index.d.ts +4 -0
- package/dist/components/index.d.ts +2 -0
- package/{lib → dist}/components/search/DefaultDocumentCard.d.ts +7 -7
- package/{lib → dist}/components/search/M365Search.d.ts +18 -18
- package/{lib → dist}/components/search/SearchDefaults.d.ts +1 -1
- package/{lib → dist}/components/search/index.d.ts +2 -2
- package/dist/context/AuthenticationContext.d.ts +1 -3
- package/{lib → dist}/context/DataverseContext.d.ts +13 -13
- package/dist/context/SPContext.d.ts +2 -2
- package/dist/context/index.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/{lib → dist}/model/IEntityWithIdAndDisplayName.d.ts +4 -4
- package/{lib → dist}/model/ISearchResult.d.ts +19 -19
- package/{lib → dist}/model/index.d.ts +1 -1
- package/{lib → dist}/model/infra/ICacheEntry.d.ts +4 -4
- package/dist/mwdev-m365-components.es.js +14549 -9702
- package/dist/mwdev-m365-components.umd.js +127 -39
- package/{lib → dist}/services/PersonaService.d.ts +12 -12
- package/{lib → dist}/utils/FileUtils.d.ts +29 -29
- package/{lib → dist}/utils/StringUtils.d.ts +1 -1
- package/{lib → dist}/utils/ThumbnailUtils.d.ts +7 -7
- package/{lib → dist}/utils/index.d.ts +3 -3
- package/package.json +70 -54
- package/.env +0 -2
- package/.env.development +0 -2
- package/.eslintrc.cjs +0 -18
- package/build/assets/index-SHI6Sf4K.js +0 -123
- package/build/index.html +0 -13
- package/build/manifest.webmanifest +0 -1
- package/build/registerSW.js +0 -1
- package/build/sw.js +0 -1
- package/build/vite.svg +0 -1
- package/build/workbox-7cfec069.js +0 -1
- package/gulpfile.js +0 -4
- package/index.html +0 -13
- package/lib/App.d.ts +0 -3
- package/lib/App.js +0 -212
- package/lib/components/Test.d.ts +0 -4
- package/lib/components/Test.js +0 -37
- package/lib/components/common/GraphPersona.js +0 -125
- package/lib/components/common/graphEntityPicker/AbstractGraphEntityPicker.js +0 -117
- package/lib/components/common/graphEntityPicker/ChannelPicker.js +0 -83
- package/lib/components/common/graphEntityPicker/DrivePicker.js +0 -77
- package/lib/components/common/graphEntityPicker/ListPicker.js +0 -77
- package/lib/components/common/graphEntityPicker/PeoplePicker.js +0 -76
- package/lib/components/common/graphEntityPicker/SitePicker.js +0 -73
- package/lib/components/common/graphEntityPicker/TeamPicker.js +0 -77
- package/lib/components/common/graphEntityPicker/index.js +0 -6
- package/lib/components/common/index.d.ts +0 -2
- package/lib/components/common/index.js +0 -2
- package/lib/components/index.d.ts +0 -2
- package/lib/components/index.js +0 -2
- package/lib/components/provisioning/GetSiteTemplate.d.ts +0 -6
- package/lib/components/provisioning/GetSiteTemplate.js +0 -41
- package/lib/components/search/DefaultDocumentCard.js +0 -59
- package/lib/components/search/M365Search.js +0 -69
- package/lib/components/search/SearchDefaults.js +0 -17
- package/lib/components/search/index.js +0 -2
- package/lib/context/AuthenticationContext.d.ts +0 -11
- package/lib/context/AuthenticationContext.js +0 -50
- package/lib/context/DataverseContext.js +0 -29
- package/lib/context/GraphContext.d.ts +0 -11
- package/lib/context/GraphContext.js +0 -26
- package/lib/context/SPContext.d.ts +0 -13
- package/lib/context/SPContext.js +0 -30
- package/lib/context/index.d.ts +0 -4
- package/lib/context/index.js +0 -4
- package/lib/index.d.ts +0 -2
- package/lib/index.js +0 -2
- package/lib/main.d.ts +0 -1
- package/lib/main.js +0 -6
- package/lib/model/IEntityWithIdAndDisplayName.js +0 -1
- package/lib/model/ISearchResult.js +0 -1
- package/lib/model/index.js +0 -1
- package/lib/model/infra/ICacheEntry.js +0 -1
- package/lib/service-worker/sw.d.ts +0 -3
- package/lib/service-worker/sw.js +0 -20
- package/lib/services/PersonaService.js +0 -134
- package/lib/utils/FileUtils.js +0 -200
- package/lib/utils/StringUtils.js +0 -10
- package/lib/utils/ThumbnailUtils.js +0 -92
- package/lib/utils/index.js +0 -3
- package/public/vite.svg +0 -1
- package/tsconfig.json +0 -35
- package/tsconfig.node.json +0 -10
- package/vite.config.ts +0 -33
- package/vitest.config.ts +0 -11
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(X,gt){typeof exports=="object"&&typeof module<"u"?gt(exports,require("react"),require("react-dom")):typeof define=="function"&&define.amd?define(["exports","react","react-dom"],gt):(X=typeof globalThis<"u"?globalThis:X||self,gt(X["mwdev-m365-components"]={},X.React,X.ReactDOM))})(this,function(X,gt,oc){"use strict";function Qn(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const o=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(t,r,o.get?o:{enumerable:!0,get:()=>e[r]})}}return t.default=e,Object.freeze(t)}function nc(e,t){for(var r=0;r<t.length;r++){const o=t[r];if(typeof o!="string"&&!Array.isArray(o)){for(const i in o)if(i!=="default"&&!(i in e)){const n=Object.getOwnPropertyDescriptor(o,i);n&&Object.defineProperty(e,i,n.get?n:{enumerable:!0,get:()=>o[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}const p=Qn(gt),ic=Qn(oc);function ac(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Bo={exports:{}},cr={};/**
|
|
2
2
|
* @license React
|
|
3
3
|
* react-jsx-runtime.development.js
|
|
4
4
|
*
|
|
@@ -6,17 +6,17 @@
|
|
|
6
6
|
*
|
|
7
7
|
* This source code is licensed under the MIT license found in the
|
|
8
8
|
* LICENSE file in the root directory of this source tree.
|
|
9
|
-
*/var
|
|
10
|
-
`+
|
|
11
|
-
`),
|
|
12
|
-
`),Z
|
|
13
|
-
`+
|
|
9
|
+
*/var Jn;function sc(){return Jn||(Jn=1,process.env.NODE_ENV!=="production"&&function(){var e=gt,t=Symbol.for("react.element"),r=Symbol.for("react.portal"),o=Symbol.for("react.fragment"),i=Symbol.for("react.strict_mode"),n=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),a=Symbol.for("react.suspense"),c=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),v=Symbol.for("react.lazy"),d=Symbol.for("react.offscreen"),h=Symbol.iterator,m="@@iterator";function k(g){if(g===null||typeof g!="object")return null;var z=h&&g[h]||g[m];return typeof z=="function"?z:null}var b=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function y(g){{for(var z=arguments.length,j=new Array(z>1?z-1:0),W=1;W<z;W++)j[W-1]=arguments[W];P("error",g,j)}}function P(g,z,j){{var W=b.ReactDebugCurrentFrame,oe=W.getStackAddendum();oe!==""&&(z+="%s",j=j.concat([oe]));var ce=j.map(function(ee){return String(ee)});ce.unshift("Warning: "+z),Function.prototype.apply.call(console[g],console,ce)}}var x=!1,S=!1,w=!1,_=!1,F=!1,R;R=Symbol.for("react.module.reference");function V(g){return!!(typeof g=="string"||typeof g=="function"||g===o||g===n||F||g===i||g===a||g===c||_||g===d||x||S||w||typeof g=="object"&&g!==null&&(g.$$typeof===v||g.$$typeof===f||g.$$typeof===s||g.$$typeof===l||g.$$typeof===u||g.$$typeof===R||g.getModuleId!==void 0))}function G(g,z,j){var W=g.displayName;if(W)return W;var oe=z.displayName||z.name||"";return oe!==""?j+"("+oe+")":j}function O(g){return g.displayName||"Context"}function B(g){if(g==null)return null;if(typeof g.tag=="number"&&y("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof g=="function")return g.displayName||g.name||null;if(typeof g=="string")return g;switch(g){case o:return"Fragment";case r:return"Portal";case n:return"Profiler";case i:return"StrictMode";case a:return"Suspense";case c:return"SuspenseList"}if(typeof g=="object")switch(g.$$typeof){case l:var z=g;return O(z)+".Consumer";case s:var j=g;return O(j._context)+".Provider";case u:return G(g,g.render,"ForwardRef");case f:var W=g.displayName||null;return W!==null?W:B(g.type)||"Memo";case v:{var oe=g,ce=oe._payload,ee=oe._init;try{return B(ee(ce))}catch{return null}}}return null}var L=Object.assign,Y=0,te,ne,ae,de,Le,N,I;function q(){}q.__reactDisabledLog=!0;function re(){{if(Y===0){te=console.log,ne=console.info,ae=console.warn,de=console.error,Le=console.group,N=console.groupCollapsed,I=console.groupEnd;var g={configurable:!0,enumerable:!0,value:q,writable:!0};Object.defineProperties(console,{info:g,log:g,warn:g,error:g,group:g,groupCollapsed:g,groupEnd:g})}Y++}}function he(){{if(Y--,Y===0){var g={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:L({},g,{value:te}),info:L({},g,{value:ne}),warn:L({},g,{value:ae}),error:L({},g,{value:de}),group:L({},g,{value:Le}),groupCollapsed:L({},g,{value:N}),groupEnd:L({},g,{value:I})})}Y<0&&y("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Se=b.ReactCurrentDispatcher,Ce;function ve(g,z,j){{if(Ce===void 0)try{throw Error()}catch(oe){var W=oe.stack.trim().match(/\n( *(at )?)/);Ce=W&&W[1]||""}return`
|
|
10
|
+
`+Ce+g}}var ge=!1,Q;{var T=typeof WeakMap=="function"?WeakMap:Map;Q=new T}function ie(g,z){if(!g||ge)return"";{var j=Q.get(g);if(j!==void 0)return j}var W;ge=!0;var oe=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var ce;ce=Se.current,Se.current=null,re();try{if(z){var ee=function(){throw Error()};if(Object.defineProperty(ee.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ee,[])}catch(vt){W=vt}Reflect.construct(g,[],ee)}else{try{ee.call()}catch(vt){W=vt}g.call(ee.prototype)}}else{try{throw Error()}catch(vt){W=vt}g()}}catch(vt){if(vt&&W&&typeof vt.stack=="string"){for(var Z=vt.stack.split(`
|
|
11
|
+
`),De=W.stack.split(`
|
|
12
|
+
`),be=Z.length-1,we=De.length-1;be>=1&&we>=0&&Z[be]!==De[we];)we--;for(;be>=1&&we>=0;be--,we--)if(Z[be]!==De[we]){if(be!==1||we!==1)do if(be--,we--,we<0||Z[be]!==De[we]){var Ke=`
|
|
13
|
+
`+Z[be].replace(" at new "," at ");return g.displayName&&Ke.includes("<anonymous>")&&(Ke=Ke.replace("<anonymous>",g.displayName)),typeof g=="function"&&Q.set(g,Ke),Ke}while(be>=1&&we>=0);break}}}finally{ge=!1,Se.current=ce,he(),Error.prepareStackTrace=oe}var lr=g?g.displayName||g.name:"",rc=lr?ve(lr):"";return typeof g=="function"&&Q.set(g,rc),rc}function _e(g,z,j){return ie(g,!1)}function Ne(g){var z=g.prototype;return!!(z&&z.isReactComponent)}function He(g,z,j){if(g==null)return"";if(typeof g=="function")return ie(g,Ne(g));if(typeof g=="string")return ve(g);switch(g){case a:return ve("Suspense");case c:return ve("SuspenseList")}if(typeof g=="object")switch(g.$$typeof){case u:return _e(g.render);case f:return He(g.type,z,j);case v:{var W=g,oe=W._payload,ce=W._init;try{return He(ce(oe),z,j)}catch{}}}return""}var Xe=Object.prototype.hasOwnProperty,Bt={},ir=b.ReactDebugCurrentFrame;function ar(g){if(g){var z=g._owner,j=He(g.type,g._source,z?z.type:null);ir.setExtraStackFrame(j)}else ir.setExtraStackFrame(null)}function Wn(g,z,j,W,oe){{var ce=Function.call.bind(Xe);for(var ee in g)if(ce(g,ee)){var Z=void 0;try{if(typeof g[ee]!="function"){var De=Error((W||"React class")+": "+j+" type `"+ee+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof g[ee]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw De.name="Invariant Violation",De}Z=g[ee](z,ee,W,j,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(be){Z=be}Z&&!(Z instanceof Error)&&(ar(oe),y("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).",W||"React class",j,ee,typeof Z),ar(null)),Z instanceof Error&&!(Z.message in Bt)&&(Bt[Z.message]=!0,ar(oe),y("Failed %s type: %s",j,Z.message),ar(null))}}}var Un=Array.isArray;function Rr(g){return Un(g)}function Gn(g){{var z=typeof Symbol=="function"&&Symbol.toStringTag,j=z&&g[Symbol.toStringTag]||g.constructor.name||"Object";return j}}function Xn(g){try{return yo(g),!1}catch{return!0}}function yo(g){return""+g}function wo(g){if(Xn(g))return y("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Gn(g)),yo(g)}var Mt=b.ReactCurrentOwner,Kn={key:!0,ref:!0,__self:!0,__source:!0},ko,xo,E;E={};function D(g){if(Xe.call(g,"ref")){var z=Object.getOwnPropertyDescriptor(g,"ref").get;if(z&&z.isReactWarning)return!1}return g.ref!==void 0}function K(g){if(Xe.call(g,"key")){var z=Object.getOwnPropertyDescriptor(g,"key").get;if(z&&z.isReactWarning)return!1}return g.key!==void 0}function fe(g,z){if(typeof g.ref=="string"&&Mt.current&&z&&Mt.current.stateNode!==z){var j=B(Mt.current.type);E[j]||(y('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',B(Mt.current.type),g.ref),E[j]=!0)}}function Pe(g,z){{var j=function(){ko||(ko=!0,y("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",z))};j.isReactWarning=!0,Object.defineProperty(g,"key",{get:j,configurable:!0})}}function ze(g,z){{var j=function(){xo||(xo=!0,y("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)",z))};j.isReactWarning=!0,Object.defineProperty(g,"ref",{get:j,configurable:!0})}}var Ee=function(g,z,j,W,oe,ce,ee){var Z={$$typeof:t,type:g,key:z,ref:j,props:ee,_owner:ce};return Z._store={},Object.defineProperty(Z._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Z,"_self",{configurable:!1,enumerable:!1,writable:!1,value:W}),Object.defineProperty(Z,"_source",{configurable:!1,enumerable:!1,writable:!1,value:oe}),Object.freeze&&(Object.freeze(Z.props),Object.freeze(Z)),Z};function it(g,z,j,W,oe){{var ce,ee={},Z=null,De=null;j!==void 0&&(wo(j),Z=""+j),K(z)&&(wo(z.key),Z=""+z.key),D(z)&&(De=z.ref,fe(z,oe));for(ce in z)Xe.call(z,ce)&&!Kn.hasOwnProperty(ce)&&(ee[ce]=z[ce]);if(g&&g.defaultProps){var be=g.defaultProps;for(ce in be)ee[ce]===void 0&&(ee[ce]=be[ce])}if(Z||De){var we=typeof g=="function"?g.displayName||g.name||"Unknown":g;Z&&Pe(ee,we),De&&ze(ee,we)}return Ee(g,Z,De,oe,W,Mt.current,ee)}}var Te=b.ReactCurrentOwner,Zl=b.ReactDebugCurrentFrame;function sr(g){if(g){var z=g._owner,j=He(g.type,g._source,z?z.type:null);Zl.setExtraStackFrame(j)}else Zl.setExtraStackFrame(null)}var Zn;Zn=!1;function Yn(g){return typeof g=="object"&&g!==null&&g.$$typeof===t}function Yl(){{if(Te.current){var g=B(Te.current.type);if(g)return`
|
|
14
14
|
|
|
15
|
-
Check the render method of \``+
|
|
15
|
+
Check the render method of \``+g+"`."}return""}}function F1(g){{if(g!==void 0){var z=g.fileName.replace(/^.*[\\\/]/,""),j=g.lineNumber;return`
|
|
16
16
|
|
|
17
|
-
Check your code at `+
|
|
17
|
+
Check your code at `+z+":"+j+"."}return""}}var Ql={};function q1(g){{var z=Yl();if(!z){var j=typeof g=="string"?g:g.displayName||g.name;j&&(z=`
|
|
18
18
|
|
|
19
|
-
Check the top-level render call using <`+
|
|
19
|
+
Check the top-level render call using <`+j+">.")}return z}}function Jl(g,z){{if(!g._store||g._store.validated||g.key!=null)return;g._store.validated=!0;var j=q1(z);if(Ql[j])return;Ql[j]=!0;var W="";g&&g._owner&&g._owner!==Te.current&&(W=" It was passed a child from "+B(g._owner.type)+"."),sr(g),y('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',j,W),sr(null)}}function ec(g,z){{if(typeof g!="object")return;if(Rr(g))for(var j=0;j<g.length;j++){var W=g[j];Yn(W)&&Jl(W,z)}else if(Yn(g))g._store&&(g._store.validated=!0);else if(g){var oe=k(g);if(typeof oe=="function"&&oe!==g.entries)for(var ce=oe.call(g),ee;!(ee=ce.next()).done;)Yn(ee.value)&&Jl(ee.value,z)}}}function A1(g){{var z=g.type;if(z==null||typeof z=="string")return;var j;if(typeof z=="function")j=z.propTypes;else if(typeof z=="object"&&(z.$$typeof===u||z.$$typeof===f))j=z.propTypes;else return;if(j){var W=B(z);Wn(j,g.props,"prop",W,g)}else if(z.PropTypes!==void 0&&!Zn){Zn=!0;var oe=B(z);y("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",oe||"Unknown")}typeof z.getDefaultProps=="function"&&!z.getDefaultProps.isReactClassApproved&&y("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function D1(g){{for(var z=Object.keys(g.props),j=0;j<z.length;j++){var W=z[j];if(W!=="children"&&W!=="key"){sr(g),y("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",W),sr(null);break}}g.ref!==null&&(sr(g),y("Invalid attribute `ref` supplied to `React.Fragment`."),sr(null))}}function tc(g,z,j,W,oe,ce){{var ee=V(g);if(!ee){var Z="";(g===void 0||typeof g=="object"&&g!==null&&Object.keys(g).length===0)&&(Z+=" You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.");var De=F1(oe);De?Z+=De:Z+=Yl();var be;g===null?be="null":Rr(g)?be="array":g!==void 0&&g.$$typeof===t?(be="<"+(B(g.type)||"Unknown")+" />",Z=" Did you accidentally export a JSX literal instead of a component?"):be=typeof g,y("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",be,Z)}var we=it(g,z,j,oe,ce);if(we==null)return we;if(ee){var Ke=z.children;if(Ke!==void 0)if(W)if(Rr(Ke)){for(var lr=0;lr<Ke.length;lr++)ec(Ke[lr],g);Object.freeze&&Object.freeze(Ke)}else y("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");else ec(Ke,g)}return g===o?D1(we):A1(we),we}}function O1(g,z,j){return tc(g,z,j,!0)}function I1(g,z,j){return tc(g,z,j,!1)}var M1=I1,L1=O1;cr.Fragment=o,cr.jsx=M1,cr.jsxs=L1}()),cr}var ur={};/**
|
|
20
20
|
* @license React
|
|
21
21
|
* react-jsx-runtime.production.min.js
|
|
22
22
|
*
|
|
@@ -24,34 +24,122 @@ Check the top-level render call using <`+A+">.")}return E}}function jn(h,E){{if(
|
|
|
24
24
|
*
|
|
25
25
|
* This source code is licensed under the MIT license found in the
|
|
26
26
|
* LICENSE file in the root directory of this source tree.
|
|
27
|
-
*/var xr;function Zn(){if(xr)return vt;xr=1;var n=ze,t=Symbol.for("react.element"),e=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,i=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(c,l,a){var u,d={},p=null,g=null;a!==void 0&&(p=""+a),l.key!==void 0&&(p=""+l.key),l.ref!==void 0&&(g=l.ref);for(u in l)r.call(l,u)&&!o.hasOwnProperty(u)&&(d[u]=l[u]);if(c&&c.defaultProps)for(u in l=c.defaultProps,l)d[u]===void 0&&(d[u]=l[u]);return{$$typeof:t,type:c,key:p,ref:g,props:d,_owner:i.current}}return vt.Fragment=e,vt.jsx=s,vt.jsxs=s,vt}process.env.NODE_ENV==="production"?rr.exports=Zn():rr.exports=$n();var nr=rr.exports,Fr=function(){function n(){}return n.splitToMaxLength=function(t,e){for(var r=[],i=0;i<t.length;)r.push(t.slice(i,i+e)),i+=e;return r},n.getSubMap=function(t,e){var r=new Map;return e.forEach(function(i){return r.set(i,t.get(i))}),r},n}();function eo(n,t){for(var e=n,r=0;r<t.length;r++)e=e.replace("{".concat(r,"}"),t[r]);return e}function Br(n){var t=[],e=new Map;return function(r,i,o){var s=o.value;o.value=function(){for(var c=this,l=[],a=0;a<arguments.length;a++)l[a-0]=arguments[a];var u=eo(n,l);return new Promise(function(d,p){var g=e.get(u);if(!g)g=s.apply(c,l).then(function(w){return d(w),t.length===0&&e.delete(u),w}).catch(function(w){p(w),t.length===0&&e.delete(u)}),e.set(u,g);else{var v=new Promise(function(w,B){g.then(function(F){d(F),w(F),t.splice(t.indexOf(v),1),t.length===0&&e.delete(u)}).catch(function(F){p(F),B(F)})});t.push(v)}})}}}var to=function(){function n(){}return n.getTokenInfo=function(t){var e=atob(t.split(".")[1]);return JSON.parse(e)},n.isTokenValid=function(t){var e=n.getTokenInfo(t);return!(e.exp<new Date().getTime()/1e3)},n}(),et=function(){return et=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},et.apply(this,arguments)},Kr=function(n,t,e,r){function i(o){return o instanceof e?o:new e(function(s){s(o)})}return new(e||(e=Promise))(function(o,s){function c(u){try{a(r.next(u))}catch(d){s(d)}}function l(u){try{a(r.throw(u))}catch(d){s(d)}}function a(u){u.done?o(u.value):i(u.value).then(c,l)}a((r=r.apply(n,t||[])).next())})},qr=function(n,t){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(a){return function(u){return l([a,u])}}function l(a){if(r)throw new TypeError("Generator is already executing.");for(;e;)try{if(r=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return e.label++,{value:a[1],done:!1};case 5:e.label++,i=a[1],a=[0];continue;case 7:a=e.ops.pop(),e.trys.pop();continue;default:if(o=e.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){e.label=a[1];break}if(a[0]===6&&e.label<o[1]){e.label=o[1],o=a;break}if(o&&e.label<o[2]){e.label=o[2],e.ops.push(a);break}o[2]&&e.ops.pop(),e.trys.pop();continue}a=t.call(n,e)}catch(u){a=[6,u],i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},Gr=function(){function n(t,e,r,i){i===void 0&&(i=0);var o=this;this.baseClient=t,this.registeredPromises=e,this.batch=r,this.retries=i,this.requestBatch=function(s,c){return c===void 0&&(c="beta"),Kr(o,void 0,void 0,function(){var l,a,u;return qr(this,function(d){switch(d.label){case 0:return l={headers:{Accept:"application/json",ConsistencyLevel:"eventual","Content-Type":"application/json"},body:s},[4,this.baseClient.post("https://graph.microsoft.com/".concat(c,"/$batch"),l)];case 1:return a=d.sent(),a.ok?[4,a.json()]:[3,3];case 2:return u=d.sent(),[2,u];case 3:return[2]}})})}}return n.prototype.executeBatch=function(){return Kr(this,void 0,void 0,function(){var t,e,r,i,o,s,c;return qr(this,function(l){switch(l.label){case 0:return t=this.batch.filter(function(a){return a.url.indexOf("v1.0/")<0}),e=this.batch.filter(function(a){return a.url.indexOf("v1.0/")>=0}),r=JSON.stringify({requests:t.map(function(a){return et(et({},a),{url:a.url.replace("beta/","")})})}),i=JSON.stringify({requests:e.map(function(a){return et(et({},a),{url:a.url.replace("v1.0/","")})})}),o=[],t.length>0?[4,this.requestBatch(r)]:[3,2];case 1:s=l.sent(),o.push.apply(o,s.responses),l.label=2;case 2:return e.length>0?[4,this.requestBatch(i,"v1.0")]:[3,4];case 3:c=l.sent(),o.push.apply(o,c.responses),l.label=4;case 4:return this.processBatchResponse(o),this.batch.length>0&&this.retries>0&&(this.retries--,this.executeBatch()),[2]}})})},n.prototype.processBatchResponse=function(t){var e=this,r=[],i=new Map;this.registeredPromises.forEach(function(o,s){var c=t.filter(function(l){return l.id===s})[0];c&&c.status===429&&e.retries>0?(r.push({url:s,id:s,method:"GET"}),i.set(s,o)):e.handleSingleResponse(c,o)}),r.length>0?(this.registeredPromises=i,this.batch=r):(this.batch=[],this.registeredPromises.clear())},n.prototype.handleSingleResponse=function(t,e){t?e.forEach(function(r){r.resolve({json:function(){return Promise.resolve(t.body)},ok:t.status===200,status:t.status,text:function(){return Promise.resolve(JSON.stringify(t.body))},headers:t.headers})}):e.forEach(function(r){r.error({json:function(){return Promise.resolve(t)},ok:!1,text:function(){return Promise.resolve(JSON.stringify(t))}})})},n.maxRetries=5,n}(),or=function(){return or=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},or.apply(this,arguments)},ro=function(n,t,e,r){function i(o){return o instanceof e?o:new e(function(s){s(o)})}return new(e||(e=Promise))(function(o,s){function c(u){try{a(r.next(u))}catch(d){s(d)}}function l(u){try{a(r.throw(u))}catch(d){s(d)}}function a(u){u.done?o(u.value):i(u.value).then(c,l)}a((r=r.apply(n,t||[])).next())})},no=function(n,t){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(a){return function(u){return l([a,u])}}function l(a){if(r)throw new TypeError("Generator is already executing.");for(;e;)try{if(r=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return e.label++,{value:a[1],done:!1};case 5:e.label++,i=a[1],a=[0];continue;case 7:a=e.ops.pop(),e.trys.pop();continue;default:if(o=e.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){e.label=a[1];break}if(a[0]===6&&e.label<o[1]){e.label=o[1],o=a;break}if(o&&e.label<o[2]){e.label=o[2],e.ops.push(a);break}o[2]&&e.ops.pop(),e.trys.pop();continue}a=t.call(n,e)}catch(u){a=[6,u],i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},oo=function(n,t,e){if(e||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return n.concat(o||Array.prototype.slice.call(t))},io=function(){function n(t,e,r){e===void 0&&(e=500),r===void 0&&(r=15);var i=this;this.baseClient=t,this.batchWaitTime=e,this.batchSplitThreshold=r,this.batch=[],this.getRequestId=function(o,s){return s==="GET"?encodeURIComponent(o):Math.random().toString(36).substring(7)},this.registeredPromises=new Map,this.generateBatch=function(){return ro(i,void 0,void 0,function(){var o,s,c,l,a,u,d,p;return no(this,function(g){switch(g.label){case 0:o=oo([],this.batch,!0),this.batch=[],s=new Map(this.registeredPromises),this.registeredPromises.clear(),c=Fr.splitToMaxLength(o,this.batchSplitThreshold),l=0,a=c,g.label=1;case 1:return l<a.length?(u=a[l],d=Fr.getSubMap(s,u.map(function(v){return v.id})),p=new Gr(this.baseClient,d,u,Gr.maxRetries),[4,p.executeBatch()]):[3,4];case 2:g.sent(),g.label=3;case 3:return l++,[3,1];case 4:return[2]}})})},this.createGetBatchRequest=function(o,s,c,l){i.batch.length===0&&setTimeout(i.generateBatch,i.batchWaitTime);var a=i.getRequestId(o,s),u=new URL(o,"https://graph.microsoft.com"),d=u.pathname+u.search;i.batch.filter(function(p){return p.id===a})[0]?i.registeredPromises.get(a).push(l):(i.batch.push({url:d,id:a,method:s,body:c&&c.body?JSON.parse(c.body):null,headers:or({ConsistencyLevel:"eventual"},c?c.headers:{})}),i.registeredPromises.set(a,[l]))}}return n.prototype.get=function(t,e){var r=this;return new Promise(function(i,o){r.createGetBatchRequest(t,"GET",e,{resolve:i,error:o})})},n.prototype.post=function(t,e){var r=this;return new Promise(function(i,o){r.createGetBatchRequest(t,"POST",e,{resolve:i,error:o})})},n.prototype.patch=function(t,e){return this.baseClient.patch(t,e)},n.prototype.put=function(t,e){return this.baseClient.put(t,e)},n.prototype.delete=function(t){return this.baseClient.delete(t)},n}(),tt=function(){return tt=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},tt.apply(this,arguments)},Ye=function(n,t,e,r){function i(o){return o instanceof e?o:new e(function(s){s(o)})}return new(e||(e=Promise))(function(o,s){function c(u){try{a(r.next(u))}catch(d){s(d)}}function l(u){try{a(r.throw(u))}catch(d){s(d)}}function a(u){u.done?o(u.value):i(u.value).then(c,l)}a((r=r.apply(n,t||[])).next())})},Qe=function(n,t){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(a){return function(u){return l([a,u])}}function l(a){if(r)throw new TypeError("Generator is already executing.");for(;e;)try{if(r=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return e.label++,{value:a[1],done:!1};case 5:e.label++,i=a[1],a=[0];continue;case 7:a=e.ops.pop(),e.trys.pop();continue;default:if(o=e.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){e.label=a[1];break}if(a[0]===6&&e.label<o[1]){e.label=o[1],o=a;break}if(o&&e.label<o[2]){e.label=o[2],e.ops.push(a);break}o[2]&&e.ops.pop(),e.trys.pop();continue}a=t.call(n,e)}catch(u){a=[6,u],i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},zr=function(){function n(t,e){this.authService=t,this.baseClient=e,this.resourceUri="https://graph.microsoft.com"}return n.prototype.get=function(t,e){return Ye(this,void 0,void 0,function(){var r;return Qe(this,function(i){switch(i.label){case 0:return[4,this.prepareRequest(e)];case 1:return r=i.sent(),[2,this.baseClient.get(t,r)]}})})},n.prototype.prepareRequest=function(t){return Ye(this,void 0,void 0,function(){var e,r,i,o;return Qe(this,function(s){switch(s.label){case 0:return e=[tt({},t)],i={},r=[tt({},t==null?void 0:t.headers)],o={},[4,this.getAuthHeader()];case 1:return[2,tt.apply(void 0,e.concat([(i.headers=tt.apply(void 0,r.concat([(o.Authorization=s.sent(),o)])),i)]))]}})})},n.prototype.post=function(t,e){return Ye(this,void 0,void 0,function(){var r;return Qe(this,function(i){switch(i.label){case 0:return[4,this.prepareRequest(e)];case 1:return r=i.sent(),[2,this.baseClient.post(t,r)]}})})},n.prototype.patch=function(t,e){return Ye(this,void 0,void 0,function(){var r;return Qe(this,function(i){switch(i.label){case 0:return[4,this.prepareRequest(e)];case 1:return r=i.sent(),[2,this.baseClient.patch(t,r)]}})})},n.prototype.put=function(t,e){return Ye(this,void 0,void 0,function(){var r;return Qe(this,function(i){switch(i.label){case 0:return[4,this.prepareRequest(e)];case 1:return r=i.sent(),[2,this.baseClient.put(t,r)]}})})},n.prototype.delete=function(t){return Ye(this,void 0,void 0,function(){return Qe(this,function(e){return[2,this.baseClient.delete(t)]})})},n.prototype.getAuthHeader=function(){return Ye(this,void 0,void 0,function(){var t;return Qe(this,function(e){switch(e.label){case 0:return[4,this.authService.getAccessToken(this.resourceUri)];case 1:return t=e.sent(),[2,"Bearer ".concat(t)]}})})},n}(),rt=function(){return rt=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},rt.apply(this,arguments)},Yr=function(){function n(){}return n.prototype.get=function(t,e){return fetch(t,rt({method:"GET"},e))},n.prototype.post=function(t,e){return fetch(t,rt({method:"POST"},e))},n.prototype.patch=function(t,e){return fetch(t,rt({method:"PATCH"},e))},n.prototype.put=function(t,e){return fetch(t,rt({method:"PUT"},e))},n.prototype.delete=function(t){return fetch(t,{method:"DELETE"})},n}(),Qr=function(){return Qr=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},Qr.apply(this,arguments)},yt=function(n,t,e,r){function i(o){return o instanceof e?o:new e(function(s){s(o)})}return new(e||(e=Promise))(function(o,s){function c(u){try{a(r.next(u))}catch(d){s(d)}}function l(u){try{a(r.throw(u))}catch(d){s(d)}}function a(u){u.done?o(u.value):i(u.value).then(c,l)}a((r=r.apply(n,t||[])).next())})},Ct=function(n,t){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(a){return function(u){return l([a,u])}}function l(a){if(r)throw new TypeError("Generator is already executing.");for(;e;)try{if(r=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return e.label++,{value:a[1],done:!1};case 5:e.label++,i=a[1],a=[0];continue;case 7:a=e.ops.pop(),e.trys.pop();continue;default:if(o=e.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){e.label=a[1];break}if(a[0]===6&&e.label<o[1]){e.label=o[1],o=a;break}if(o&&e.label<o[2]){e.label=o[2],e.ops.push(a);break}o[2]&&e.ops.pop(),e.trys.pop();continue}a=t.call(n,e)}catch(u){a=[6,u],i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},ao=function(){function n(t,e,r){r===void 0&&(r=!1),this.graphClient=t,this.resourceQuery=e,this.skipCountCheck=r,this.filterQuery="",this.orderQuery="",this.nextPageLink="",this.previousPages=[],this.previousPageIndex=-1,this.pageSize=25,this.allItemsCount=-1}return n.prototype.getAllItemsCount=function(){return yt(this,void 0,void 0,function(){var t,e,r,i;return Ct(this,function(o){switch(o.label){case 0:return this.skipCountCheck?[2,-1]:(t=this.getQuery(),e="".concat(this.resourceQuery,"/$count"),this.getQuery()&&(e+="?$filter=".concat(t)),[4,this.graphClient.get(e)]);case 1:return r=o.sent(),r.ok?(i=parseInt,[4,r.text()]):[3,3];case 2:return[2,i.apply(void 0,[o.sent(),10])];case 3:return[2]}})})},n.prototype.getData=function(){return yt(this,void 0,void 0,function(){var t,e,r;return Ct(this,function(i){switch(i.label){case 0:return[4,Promise.all([this.callGraphAPI(this.buildInitialQuery()),this.getAllItemsCount()])];case 1:return t=i.sent(),e=t[0],r=t[1],this.allItemsCount=r,[2,e]}})})},n.prototype.buildInitialQuery=function(){var t=this.getQuery(),e="".concat(this.resourceQuery,"?$top=").concat(this.pageSize);return this.orderQuery&&(e+="&$orderBy=".concat(this.orderQuery)),t&&(e+="&$filter=".concat(t)),e},n.prototype.callGraphAPI=function(t){return yt(this,void 0,void 0,function(){var e,r,i,o;return Ct(this,function(s){switch(s.label){case 0:return[4,this.graphClient.get(t)];case 1:return e=s.sent(),e.ok?[4,e.json()]:[3,3];case 2:return r=s.sent(),i=r.value,this.nextPageLink=r["@odata.nextLink"],[2,i];case 3:return o=Error.bind,[4,e.text()];case 4:throw new(o.apply(Error,[void 0,s.sent()]))}})})},n.prototype.setQuery=function(t){this.filterQuery=t},n.prototype.getQuery=function(){return this.filterQuery},n.prototype.setOrder=function(t,e){this.orderQuery="".concat(t," ").concat(e.toLocaleLowerCase())},n.prototype.getNextPage=function(){return yt(this,void 0,void 0,function(){return Ct(this,function(t){return this.isNextPageAvailable()?(this.previousPageIndex++,this.previousPages.push(this.nextPageLink),[2,this.callGraphAPI(this.nextPageLink)]):[2,[]]})})},n.prototype.isNextPageAvailable=function(){return!!this.nextPageLink},n.prototype.getPreviousPage=function(){return yt(this,void 0,void 0,function(){var t,e;return Ct(this,function(r){switch(r.label){case 0:return this.isPreviousPageAvailable()?(t=this.previousPages[this.previousPageIndex],[4,this.callGraphAPI(t)]):[2,[]];case 1:return e=r.sent(),this.previousPageIndex--,[2,e]}})})},n.prototype.isPreviousPageAvailable=function(){return this.previousPageIndex>=0&&!!this.previousPages[this.previousPageIndex]},n.prototype.getCurrentPage=function(){return this.previousPageIndex+1},n}(),jr=function(){return jr=Object.assign||function(n){for(var t,e=1,r=arguments.length;e<r;e++){t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=t[i])}return n},jr.apply(this,arguments)},so=function(){var n=function(t,e){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},n(t,e)};return function(t,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");n(t,e);function r(){this.constructor=t}t.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}}(),ir=function(n,t,e,r){function i(o){return o instanceof e?o:new e(function(s){s(o)})}return new(e||(e=Promise))(function(o,s){function c(u){try{a(r.next(u))}catch(d){s(d)}}function l(u){try{a(r.throw(u))}catch(d){s(d)}}function a(u){u.done?o(u.value):i(u.value).then(c,l)}a((r=r.apply(n,t||[])).next())})},ar=function(n,t){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(a){return function(u){return l([a,u])}}function l(a){if(r)throw new TypeError("Generator is already executing.");for(;e;)try{if(r=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return e.label++,{value:a[1],done:!1};case 5:e.label++,i=a[1],a=[0];continue;case 7:a=e.ops.pop(),e.trys.pop();continue;default:if(o=e.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){e.label=a[1];break}if(a[0]===6&&e.label<o[1]){e.label=o[1],o=a;break}if(o&&e.label<o[2]){e.label=o[2],e.ops.push(a);break}o[2]&&e.ops.pop(),e.trys.pop();continue}a=t.call(n,e)}catch(u){a=[6,u],i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};(function(n){so(t,n);function t(e,r,i){r===void 0&&(r=!0),i===void 0&&(i=!0);var o=n.call(this,e,"https://graph.microsoft.com/v1.0/me/people",!0)||this;return o.loadPresence=r,o.loadPhoto=i,o.personTypeClass="Person",o.pageSize=7,o}return t.prototype.callGraphAPI=function(e){return ir(this,void 0,void 0,function(){var r,i;return ar(this,function(o){switch(o.label){case 0:return[4,n.prototype.callGraphAPI.call(this,e)];case 1:return r=o.sent(),i=[],this.loadPresence&&i.push.apply(i,r.map(this.appendPresence.bind(this))),this.loadPhoto&&i.push.apply(i,r.map(this.appendPhoto.bind(this))),i.length>0?[4,Promise.all(i)]:[3,3];case 2:o.sent(),o.label=3;case 3:return[2,r]}})})},t.prototype.appendPresence=function(e){return ir(this,void 0,void 0,function(){var r,i;return ar(this,function(o){switch(o.label){case 0:return[4,this.graphClient.get("v1.0/users/".concat(e.id,"/presence"))];case 1:return r=o.sent(),r.ok?(i=e,[4,r.json()]):[3,3];case 2:i.presence=o.sent(),o.label=3;case 3:return[2]}})})},t.prototype.appendPhoto=function(e){return ir(this,void 0,void 0,function(){var r,i;return ar(this,function(o){switch(o.label){case 0:return[4,this.graphClient.get("/v1.0/users/".concat(e.id,"/photo/$value"))];case 1:return r=o.sent(),r.ok?(i=e,[4,r.text()]):[3,3];case 2:i.photo=o.sent(),o.label=3;case 3:return[2]}})})},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+="&$search=".concat(e)),this.personTypeClass&&(r+="&$filter=personType/class eq '".concat(this.personTypeClass,"'")),r},t})(ao);/*! @azure/msal-browser v2.38.3 2023-10-27 *//*! *****************************************************************************
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
27
|
+
*/var ei;function lc(){if(ei)return ur;ei=1;var e=gt,t=Symbol.for("react.element"),r=Symbol.for("react.fragment"),o=Object.prototype.hasOwnProperty,i=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,n={key:!0,ref:!0,__self:!0,__source:!0};function s(l,u,a){var c,f={},v=null,d=null;a!==void 0&&(v=""+a),u.key!==void 0&&(v=""+u.key),u.ref!==void 0&&(d=u.ref);for(c in u)o.call(u,c)&&!n.hasOwnProperty(c)&&(f[c]=u[c]);if(l&&l.defaultProps)for(c in u=l.defaultProps,u)f[c]===void 0&&(f[c]=u[c]);return{$$typeof:t,type:l,key:v,ref:d,props:f,_owner:i.current}}return ur.Fragment=r,ur.jsx=s,ur.jsxs=s,ur}process.env.NODE_ENV==="production"?Bo.exports=lc():Bo.exports=sc();var M=Bo.exports;const cc=nc({__proto__:null,default:ac(M)},[M]),_o=p.createContext({authProvider:{getAccessToken:async()=>{throw new Error("No auth provider available")}}}),Fr=()=>p.useContext(_o),uc=e=>M.jsx(_o.Provider,{value:{authProvider:e.authProvider},children:e.children});var ti=function(){function e(){}return e.splitToMaxLength=function(t,r){for(var o=[],i=0;i<t.length;)o.push(t.slice(i,i+r)),i+=r;return o},e.getSubMap=function(t,r){var o=new Map;return r.forEach(function(i){return o.set(i,t.get(i))}),o},e}(),ri=function(){function e(){}return e.prototype.get=function(t){return JSON.parse(localStorage.getItem(t))},e.prototype.set=function(t,r){localStorage.setItem(t,JSON.stringify(r))},e.prototype.remove=function(t){localStorage.removeItem(t)},e}();function fc(e,t){for(var r=e,o=0;o<t.length;o++)r=r.replace("{".concat(o,"}"),t[o]);return r}function oi(e){var t=[],r=new Map;return function(o,i,n){var s=n.value;n.value=function(){for(var l=this,u=[],a=0;a<arguments.length;a++)u[a-0]=arguments[a];var c=fc(e,u);return new Promise(function(f,v){var d=r.get(c);if(!d)d=s.apply(l,u).then(function(m){return f(m),t.length===0&&r.delete(c),m}).catch(function(m){v(m),t.length===0&&r.delete(c)}),r.set(c,d);else{var h=new Promise(function(m,k){d.then(function(b){f(b),m(b),t.splice(t.indexOf(h),1),t.length===0&&r.delete(c)}).catch(function(b){v(b),k(b)})});t.push(h)}})}}}var ni=function(){function e(){}return e.getTokenInfo=function(t){var r=atob(t.split(".")[1]);return JSON.parse(r)},e.isTokenValid=function(t){var r=e.getTokenInfo(t);return!(r.exp<new Date().getTime()/1e3)},e}(),Po=function(e,t,r,o){function i(n){return n instanceof r?n:new r(function(s){s(n)})}return new(r||(r=Promise))(function(n,s){function l(c){try{a(o.next(c))}catch(f){s(f)}}function u(c){try{a(o.throw(c))}catch(f){s(f)}}function a(c){c.done?n(c.value):i(c.value).then(l,u)}a((o=o.apply(e,t||[])).next())})},So=function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,i,n,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,i&&(n=a[0]&2?i.return:a[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;switch(i=0,n&&(a=[a[0]&2,n.value]),a[0]){case 0:case 1:n=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,i=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){r.label=a[1];break}if(a[0]===6&&r.label<n[1]){r.label=n[1],n=a;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(a);break}n[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(c){a=[6,c],i=0}finally{o=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},dc=function(){function e(){}return e.debounce=function(t,r,o){return o===void 0&&(o=100),Po(this,void 0,void 0,function(){var i=this;return So(this,function(n){return e.registeredTimeouts.has(t)&&window.clearTimeout(e.registeredTimeouts.get(t)),[2,new Promise(function(s,l){return Po(i,void 0,void 0,function(){var u,a=this;return So(this,function(c){return u=setTimeout(function(){return Po(a,void 0,void 0,function(){var f,v;return So(this,function(d){switch(d.label){case 0:return d.trys.push([0,2,,3]),[4,r()];case 1:return f=d.sent(),e.registeredTimeouts.delete(t),s(f),[3,3];case 2:return v=d.sent(),e.registeredTimeouts.delete(t),l(v),[3,3];case 3:return[2]}})})},o),e.registeredTimeouts.set(t,u),[2]})})})]})})},e.registeredTimeouts=new Map,e}(),Lt=function(){return Lt=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Lt.apply(this,arguments)},ii=function(e,t,r,o){function i(n){return n instanceof r?n:new r(function(s){s(n)})}return new(r||(r=Promise))(function(n,s){function l(c){try{a(o.next(c))}catch(f){s(f)}}function u(c){try{a(o.throw(c))}catch(f){s(f)}}function a(c){c.done?n(c.value):i(c.value).then(l,u)}a((o=o.apply(e,t||[])).next())})},ai=function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,i,n,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,i&&(n=a[0]&2?i.return:a[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;switch(i=0,n&&(a=[a[0]&2,n.value]),a[0]){case 0:case 1:n=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,i=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){r.label=a[1];break}if(a[0]===6&&r.label<n[1]){r.label=n[1],n=a;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(a);break}n[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(c){a=[6,c],i=0}finally{o=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},si=function(){function e(t,r,o,i){i===void 0&&(i=0);var n=this;this.baseClient=t,this.registeredPromises=r,this.batch=o,this.retries=i,this.requestBatch=function(s,l){return l===void 0&&(l="beta"),ii(n,void 0,void 0,function(){var u,a,c;return ai(this,function(f){switch(f.label){case 0:return u={headers:{Accept:"application/json",ConsistencyLevel:"eventual","Content-Type":"application/json"},body:s},[4,this.baseClient.post("https://graph.microsoft.com/".concat(l,"/$batch"),u)];case 1:return a=f.sent(),a.ok?[4,a.json()]:[3,3];case 2:return c=f.sent(),[2,c];case 3:return[2]}})})}}return e.prototype.executeBatch=function(){return ii(this,void 0,void 0,function(){var t,r,o,i,n,s,l;return ai(this,function(u){switch(u.label){case 0:return t=this.batch.filter(function(a){return a.url.indexOf("v1.0/")<0}),r=this.batch.filter(function(a){return a.url.indexOf("v1.0/")>=0}),o=JSON.stringify({requests:t.map(function(a){return Lt(Lt({},a),{url:a.url.replace("beta/","")})})}),i=JSON.stringify({requests:r.map(function(a){return Lt(Lt({},a),{url:a.url.replace("v1.0/","")})})}),n=[],t.length>0?[4,this.requestBatch(o)]:[3,2];case 1:s=u.sent(),n.push.apply(n,s.responses),u.label=2;case 2:return r.length>0?[4,this.requestBatch(i,"v1.0")]:[3,4];case 3:l=u.sent(),n.push.apply(n,l.responses),u.label=4;case 4:return this.processBatchResponse(n),this.batch.length>0&&this.retries>0&&(this.retries--,this.executeBatch()),[2]}})})},e.prototype.processBatchResponse=function(t){var r=this,o=[],i=new Map;this.registeredPromises.forEach(function(n,s){var l=t.filter(function(u){return u.id===s})[0];l&&l.status===429&&r.retries>0?(o.push({url:s,id:s,method:"GET"}),i.set(s,n)):r.handleSingleResponse(l,n)}),o.length>0?(this.registeredPromises=i,this.batch=o):(this.batch=[],this.registeredPromises.clear())},e.prototype.handleSingleResponse=function(t,r){t?r.forEach(function(o){o.resolve({json:function(){return Promise.resolve(t.body)},ok:t.status===200,status:t.status,text:function(){return Promise.resolve(JSON.stringify(t.body))},headers:t.headers})}):r.forEach(function(o){o.error({json:function(){return Promise.resolve(t)},ok:!1,text:function(){return Promise.resolve(JSON.stringify(t))}})})},e.maxRetries=5,e}(),Co=function(){return Co=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Co.apply(this,arguments)},hc=function(e,t,r,o){function i(n){return n instanceof r?n:new r(function(s){s(n)})}return new(r||(r=Promise))(function(n,s){function l(c){try{a(o.next(c))}catch(f){s(f)}}function u(c){try{a(o.throw(c))}catch(f){s(f)}}function a(c){c.done?n(c.value):i(c.value).then(l,u)}a((o=o.apply(e,t||[])).next())})},vc=function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,i,n,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,i&&(n=a[0]&2?i.return:a[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;switch(i=0,n&&(a=[a[0]&2,n.value]),a[0]){case 0:case 1:n=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,i=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){r.label=a[1];break}if(a[0]===6&&r.label<n[1]){r.label=n[1],n=a;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(a);break}n[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(c){a=[6,c],i=0}finally{o=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},gc=function(e,t,r){if(r||arguments.length===2)for(var o=0,i=t.length,n;o<i;o++)(n||!(o in t))&&(n||(n=Array.prototype.slice.call(t,0,o)),n[o]=t[o]);return e.concat(n||Array.prototype.slice.call(t))},pc=function(){function e(t,r,o){r===void 0&&(r=500),o===void 0&&(o=15);var i=this;this.baseClient=t,this.batchWaitTime=r,this.batchSplitThreshold=o,this.batch=[],this.getRequestId=function(n,s){return s==="GET"?encodeURIComponent(n):Math.random().toString(36).substring(7)},this.registeredPromises=new Map,this.generateBatch=function(){return hc(i,void 0,void 0,function(){var n,s,l,u,a,c,f,v;return vc(this,function(d){switch(d.label){case 0:n=gc([],this.batch,!0),this.batch=[],s=new Map(this.registeredPromises),this.registeredPromises.clear(),l=ti.splitToMaxLength(n,this.batchSplitThreshold),u=0,a=l,d.label=1;case 1:return u<a.length?(c=a[u],f=ti.getSubMap(s,c.map(function(h){return h.id})),v=new si(this.baseClient,f,c,si.maxRetries),[4,v.executeBatch()]):[3,4];case 2:d.sent(),d.label=3;case 3:return u++,[3,1];case 4:return[2]}})})},this.createGetBatchRequest=function(n,s,l,u){i.batch.length===0&&setTimeout(i.generateBatch,i.batchWaitTime);var a=i.getRequestId(n,s),c=new URL(n,"https://graph.microsoft.com"),f=c.pathname+c.search;i.batch.filter(function(v){return v.id===a})[0]?i.registeredPromises.get(a).push(u):(i.batch.push({url:f,id:a,method:s,body:l&&l.body?JSON.parse(l.body):null,headers:Co({ConsistencyLevel:"eventual"},l?l.headers:{})}),i.registeredPromises.set(a,[u]))}}return e.prototype.get=function(t,r){var o=this;return new Promise(function(i,n){o.createGetBatchRequest(t,"GET",r,{resolve:i,error:n})})},e.prototype.post=function(t,r){var o=this;return new Promise(function(i,n){o.createGetBatchRequest(t,"POST",r,{resolve:i,error:n})})},e.prototype.patch=function(t,r){return this.baseClient.patch(t,r)},e.prototype.put=function(t,r){return this.baseClient.put(t,r)},e.prototype.delete=function(t,r){return this.baseClient.delete(t,r)},e}(),Ht=function(){return Ht=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},Ht.apply(this,arguments)},_t=function(e,t,r,o){function i(n){return n instanceof r?n:new r(function(s){s(n)})}return new(r||(r=Promise))(function(n,s){function l(c){try{a(o.next(c))}catch(f){s(f)}}function u(c){try{a(o.throw(c))}catch(f){s(f)}}function a(c){c.done?n(c.value):i(c.value).then(l,u)}a((o=o.apply(e,t||[])).next())})},Pt=function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,i,n,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,i&&(n=a[0]&2?i.return:a[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;switch(i=0,n&&(a=[a[0]&2,n.value]),a[0]){case 0:case 1:n=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,i=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){r.label=a[1];break}if(a[0]===6&&r.label<n[1]){r.label=n[1],n=a;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(a);break}n[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(c){a=[6,c],i=0}finally{o=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},zo=function(){function e(t,r){this.authService=t,this.baseClient=r,this.resourceUri="https://graph.microsoft.com"}return e.prototype.get=function(t,r){return _t(this,void 0,void 0,function(){var o;return Pt(this,function(i){switch(i.label){case 0:return[4,this.prepareRequest(r)];case 1:return o=i.sent(),[2,this.baseClient.get(t,o)]}})})},e.prototype.post=function(t,r){return _t(this,void 0,void 0,function(){var o;return Pt(this,function(i){switch(i.label){case 0:return[4,this.prepareRequest(r)];case 1:return o=i.sent(),[2,this.baseClient.post(t,o)]}})})},e.prototype.patch=function(t,r){return _t(this,void 0,void 0,function(){var o;return Pt(this,function(i){switch(i.label){case 0:return[4,this.prepareRequest(r)];case 1:return o=i.sent(),[2,this.baseClient.patch(t,o)]}})})},e.prototype.put=function(t,r){return _t(this,void 0,void 0,function(){var o;return Pt(this,function(i){switch(i.label){case 0:return[4,this.prepareRequest(r)];case 1:return o=i.sent(),[2,this.baseClient.put(t,o)]}})})},e.prototype.delete=function(t,r){return _t(this,void 0,void 0,function(){var o;return Pt(this,function(i){switch(i.label){case 0:return[4,this.prepareRequest({})];case 1:return o=i.sent(),[2,this.baseClient.delete(t,o)]}})})},e.prototype.prepareRequest=function(t){return _t(this,void 0,void 0,function(){var r,o,i,n;return Pt(this,function(s){switch(s.label){case 0:return r=[Ht({},t)],i={},o=[Ht({},t==null?void 0:t.headers)],n={},[4,this.getAuthHeader()];case 1:return[2,Ht.apply(void 0,r.concat([(i.headers=Ht.apply(void 0,o.concat([(n.Authorization=s.sent(),n)])),i)]))]}})})},e.prototype.getAuthHeader=function(){return _t(this,void 0,void 0,function(){var t;return Pt(this,function(r){switch(r.label){case 0:return[4,this.authService.getAccessToken(this.resourceUri)];case 1:return t=r.sent(),[2,"Bearer ".concat(t)]}})})},e}(),St=function(){return St=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},St.apply(this,arguments)},Vt=function(){function e(t){this.baseUrl=t}return e.prototype.buildUrl=function(t){return t.startsWith("http")||!this.baseUrl?t:this.baseUrl+t},e.prototype.get=function(t,r){return fetch(this.buildUrl(t),St({method:"GET"},r))},e.prototype.post=function(t,r){return fetch(this.buildUrl(t),St({method:"POST"},r))},e.prototype.patch=function(t,r){return fetch(this.buildUrl(t),St({method:"PATCH"},r))},e.prototype.put=function(t,r){return fetch(this.buildUrl(t),St({method:"PUT"},r))},e.prototype.delete=function(t,r){return fetch(this.buildUrl(t),St({method:"DELETE"},r))},e}(),mc=function(){var e=function(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)};return"".concat(e()).concat(e(),"-").concat(e(),"-").concat(e(),"-").concat(e(),"-").concat(e()).concat(e()).concat(e())},li=function(e){for(var t="",r=0;r<e;r++){var o=Math.floor(Math.random()*26)+(Math.random()<.5?65:97);t+=String.fromCharCode(o)}return t},ci=function(){return ci=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},ci.apply(this,arguments)},fr=function(e,t,r,o){function i(n){return n instanceof r?n:new r(function(s){s(n)})}return new(r||(r=Promise))(function(n,s){function l(c){try{a(o.next(c))}catch(f){s(f)}}function u(c){try{a(o.throw(c))}catch(f){s(f)}}function a(c){c.done?n(c.value):i(c.value).then(l,u)}a((o=o.apply(e,t||[])).next())})},dr=function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,i,n,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,i&&(n=a[0]&2?i.return:a[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;switch(i=0,n&&(a=[a[0]&2,n.value]),a[0]){case 0:case 1:n=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,i=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){r.label=a[1];break}if(a[0]===6&&r.label<n[1]){r.label=n[1],n=a;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(a);break}n[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(c){a=[6,c],i=0}finally{o=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},bc=function(){function e(t,r,o){o===void 0&&(o=!1),this.graphClient=t,this.resourceQuery=r,this.skipCountCheck=o,this.filterQuery="",this.orderQuery="",this.nextPageLink="",this.previousPages=[],this.previousPageIndex=-1,this.pageSize=25,this.allItemsCount=-1}return e.prototype.getAllItemsCount=function(){return fr(this,void 0,void 0,function(){var t,r,o,i;return dr(this,function(n){switch(n.label){case 0:return this.skipCountCheck?[2,-1]:(t=this.getQuery(),r="".concat(this.resourceQuery,"/$count"),this.getQuery()&&(r+="?$filter=".concat(t)),[4,this.graphClient.get(r)]);case 1:return o=n.sent(),o.ok?(i=parseInt,[4,o.text()]):[3,3];case 2:return[2,i.apply(void 0,[n.sent(),10])];case 3:return[2]}})})},e.prototype.getData=function(){return fr(this,void 0,void 0,function(){var t,r,o;return dr(this,function(i){switch(i.label){case 0:return[4,Promise.all([this.callGraphAPI(this.buildInitialQuery()),this.getAllItemsCount()])];case 1:return t=i.sent(),r=t[0],o=t[1],this.allItemsCount=o,[2,r]}})})},e.prototype.buildInitialQuery=function(){var t=this.getQuery(),r="".concat(this.resourceQuery,"?$top=").concat(this.pageSize);return this.orderQuery&&(r+="&$orderBy=".concat(this.orderQuery)),t&&(r+="&$filter=".concat(t)),r},e.prototype.callGraphAPI=function(t){return fr(this,void 0,void 0,function(){var r,o,i,n;return dr(this,function(s){switch(s.label){case 0:return[4,this.graphClient.get(t)];case 1:return r=s.sent(),r.ok?[4,r.json()]:[3,3];case 2:return o=s.sent(),i=o.value,this.nextPageLink=o["@odata.nextLink"],[2,i];case 3:return n=Error.bind,[4,r.text()];case 4:throw new(n.apply(Error,[void 0,s.sent()]))}})})},e.prototype.setQuery=function(t){this.filterQuery=t},e.prototype.getQuery=function(){return this.filterQuery},e.prototype.setOrder=function(t,r){this.orderQuery="".concat(t," ").concat(r.toLocaleLowerCase())},e.prototype.getNextPage=function(){return fr(this,void 0,void 0,function(){return dr(this,function(t){return this.isNextPageAvailable()?(this.previousPageIndex++,this.previousPages.push(this.nextPageLink),[2,this.callGraphAPI(this.nextPageLink)]):[2,[]]})})},e.prototype.isNextPageAvailable=function(){return!!this.nextPageLink},e.prototype.getPreviousPage=function(){return fr(this,void 0,void 0,function(){var t,r;return dr(this,function(o){switch(o.label){case 0:return this.isPreviousPageAvailable()?(t=this.previousPages[this.previousPageIndex],[4,this.callGraphAPI(t)]):[2,[]];case 1:return r=o.sent(),this.previousPageIndex--,[2,r]}})})},e.prototype.isPreviousPageAvailable=function(){return this.previousPageIndex>=0&&!!this.previousPages[this.previousPageIndex]},e.prototype.getCurrentPage=function(){return this.previousPageIndex+1},e}(),pt=function(){return pt=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i])}return e},pt.apply(this,arguments)},qr=function(e,t,r,o){function i(n){return n instanceof r?n:new r(function(s){s(n)})}return new(r||(r=Promise))(function(n,s){function l(c){try{a(o.next(c))}catch(f){s(f)}}function u(c){try{a(o.throw(c))}catch(f){s(f)}}function a(c){c.done?n(c.value):i(c.value).then(l,u)}a((o=o.apply(e,t||[])).next())})},Ar=function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,i,n,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,i&&(n=a[0]&2?i.return:a[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;switch(i=0,n&&(a=[a[0]&2,n.value]),a[0]){case 0:case 1:n=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,i=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){r.label=a[1];break}if(a[0]===6&&r.label<n[1]){r.label=n[1],n=a;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(a);break}n[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(c){a=[6,c],i=0}finally{o=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},ui=function(){function e(t,r,o){r===void 0&&(r=["listItem"]),o===void 0&&(o=["id","title","url"]),this.graphClient=t,this.entityTypes=r,this.selectFields=o,this.currentPage=0,this.pageSize=25,this.allItemsCount=-1,this.graphSearchEndpoint="https://graph.microsoft.com/beta/search/query"}return e.prototype.setRefiners=function(t){this.requestedRefiners=t||[]},e.prototype.applyRefiners=function(t){this.filters=t||void 0},e.prototype.buildSearchRequest=function(){var t,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:((t=this.filters)===null||t===void 0?void 0:t.map(function(o){return"".concat(o.field,":").concat(o.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},e.prototype.callForData=function(){return qr(this,void 0,void 0,function(){var t,r,o,i;return Ar(this,function(n){switch(n.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 t=n.sent(),t.ok?[4,t.json()]:[3,3];case 2:return r=n.sent(),o=r.value[0].hitsContainers[0],this.allItemsCount=o.total,this.parseAggregations(o),this.allItemsCount>0?[2,o.hits.map(function(s){return pt(pt({},s.resource),{type:s.resource["@odata.type"],hitResourceIdId:s.resource.id,hitId:s.hitId,hitRank:s.rank,hitHighlights:s.highlights,hitSummary:s.summary})})]:[2,[]];case 3:return i=Error.bind,[4,t.text()];case 4:throw new(i.apply(Error,[void 0,n.sent()]))}})})},e.prototype.getData=function(){return qr(this,void 0,void 0,function(){return Ar(this,function(t){return this.currentPage=0,[2,this.callForData()]})})},e.prototype.parseAggregations=function(t){try{this.currentAggregations=t.aggregations.map(function(r){return pt(pt({},r),{buckets:r.buckets.map(function(o){return pt(pt({},o),{value:o.value,count:o.count})})})})}catch{this.currentAggregations=[]}},e.prototype.setQuery=function(t){this.query=t},e.prototype.getQuery=function(){return this.query},e.prototype.setOrder=function(t,r){this.orderColumn=t,this.isDescending=r==="DESC"},e.prototype.getNextPage=function(){return qr(this,void 0,void 0,function(){return Ar(this,function(t){return this.isNextPageAvailable()?(this.currentPage++,[2,this.callForData()]):[2,[]]})})},e.prototype.isNextPageAvailable=function(){return(this.currentPage+1)*this.pageSize<this.allItemsCount},e.prototype.getPreviousPage=function(){return qr(this,void 0,void 0,function(){return Ar(this,function(t){return this.isPreviousPageAvailable()?(this.currentPage--,[2,this.callForData()]):[2,[]]})})},e.prototype.isPreviousPageAvailable=function(){return this.currentPage>0},e.prototype.getCurrentPage=function(){return this.currentPage},e.prototype.jumpToAPage=function(t){return this.currentPage=t,this.callForData()},e}(),yc=function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(o[n]=i[n])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function o(){this.constructor=t}t.prototype=r===null?Object.create(r):(o.prototype=r.prototype,new o)}}(),To=function(e,t,r,o){function i(n){return n instanceof r?n:new r(function(s){s(n)})}return new(r||(r=Promise))(function(n,s){function l(c){try{a(o.next(c))}catch(f){s(f)}}function u(c){try{a(o.throw(c))}catch(f){s(f)}}function a(c){c.done?n(c.value):i(c.value).then(l,u)}a((o=o.apply(e,t||[])).next())})},No=function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,i,n,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,i&&(n=a[0]&2?i.return:a[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;switch(i=0,n&&(a=[a[0]&2,n.value]),a[0]){case 0:case 1:n=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,i=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){r.label=a[1];break}if(a[0]===6&&r.label<n[1]){r.label=n[1],n=a;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(a);break}n[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(c){a=[6,c],i=0}finally{o=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},wc=function(e){yc(t,e);function t(r,o,i){o===void 0&&(o=!0),i===void 0&&(i=!0);var n=e.call(this,r,"https://graph.microsoft.com/v1.0/me/people",!0)||this;return n.loadPresence=o,n.loadPhoto=i,n.personTypeClass="Person",n.pageSize=7,n}return t.prototype.callGraphAPI=function(r){return To(this,void 0,void 0,function(){var o,i;return No(this,function(n){switch(n.label){case 0:return[4,e.prototype.callGraphAPI.call(this,r)];case 1:return o=n.sent(),i=[],this.loadPresence&&i.push.apply(i,o.map(this.appendPresence.bind(this))),this.loadPhoto&&i.push.apply(i,o.map(this.appendPhoto.bind(this))),i.length>0?[4,Promise.all(i)]:[3,3];case 2:n.sent(),n.label=3;case 3:return[2,o]}})})},t.prototype.appendPresence=function(r){return To(this,void 0,void 0,function(){var o,i;return No(this,function(n){switch(n.label){case 0:return[4,this.graphClient.get("v1.0/users/".concat(r.id,"/presence"))];case 1:return o=n.sent(),o.ok?(i=r,[4,o.json()]):[3,3];case 2:i.presence=n.sent(),n.label=3;case 3:return[2]}})})},t.prototype.appendPhoto=function(r){return To(this,void 0,void 0,function(){var o,i;return No(this,function(n){switch(n.label){case 0:return[4,this.graphClient.get("/v1.0/users/".concat(r.id,"/photo/$value"))];case 1:return o=n.sent(),o.ok?(i=r,[4,o.text()]):[3,3];case 2:i.photo=n.sent(),n.label=3;case 3:return[2]}})})},t.prototype.buildInitialQuery=function(){var r=this.getQuery(),o="".concat(this.resourceQuery,"?$top=").concat(this.pageSize);return this.orderQuery&&(o+="&$orderBy=".concat(this.orderQuery)),r&&(o+="&$search=".concat(r)),this.personTypeClass&&(o+="&$filter=personType/class eq '".concat(this.personTypeClass,"'")),o},t}(bc),kc=function(e,t,r,o){var i=arguments.length,n=i<3?t:o===null?o=Object.getOwnPropertyDescriptor(t,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(e,t,r,o);else for(var l=e.length-1;l>=0;l--)(s=e[l])&&(n=(i<3?s(n):i>3?s(t,r,n):s(t,r))||n);return i>3&&n&&Object.defineProperty(t,r,n),n},hr=function(e,t,r,o){function i(n){return n instanceof r?n:new r(function(s){s(n)})}return new(r||(r=Promise))(function(n,s){function l(c){try{a(o.next(c))}catch(f){s(f)}}function u(c){try{a(o.throw(c))}catch(f){s(f)}}function a(c){c.done?n(c.value):i(c.value).then(l,u)}a((o=o.apply(e,t||[])).next())})},vr=function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,i,n,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,i&&(n=a[0]&2?i.return:a[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;switch(i=0,n&&(a=[a[0]&2,n.value]),a[0]){case 0:case 1:n=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,i=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){r.label=a[1];break}if(a[0]===6&&r.label<n[1]){r.label=n[1],n=a;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(a);break}n[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(c){a=[6,c],i=0}finally{o=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}};(function(){function e(t,r){r===void 0&&(r=!0);var o=this;this.config=t,this.usePopup=r,this.resourceTokenMap=new Map,this.resourceScopeMap=new Map,this.cacheService=new ri,this.getCodeFromLoginWindow=function(i,n){try{var s=new URLSearchParams(i==null?void 0:i.location.search),l=s.get("code");l?(n(l),i.close()):i&&setTimeout(function(){return o.getCodeFromLoginWindow(i,n)})}catch{i&&setTimeout(function(){return o.getCodeFromLoginWindow(i,n)},1e3)}},this.config.tenantId=t.tenantId||"common",this.config.redirectUri=t.redirectUri||window.location.origin,this.getCodeVerifier(),this.state=li(108)}return e.prototype.getCodeVerifier=function(){this.cacheService.get("msal.codeVerifier")?this.codeVerifier=this.cacheService.get("msal.codeVerifier"):this.codeVerifier=li(43)},e.prototype.buildLoginUrl=function(t){var r=new URL("https://login.microsoftonline.com/".concat(this.config.tenantId||"common","/oauth2/v2.0/authorize"));return r.searchParams.append("client_id",this.config.clientId),r.searchParams.append("scope","".concat(t,"/.default openid profile offline_access")),r.searchParams.append("redirect_uri",this.config.redirectUri),r.searchParams.append("client-request-id",mc()),r.searchParams.append("response_mode","query"),r.searchParams.append("response_type","code"),r.searchParams.append("code_challenge",this.codeVerifier),r.searchParams.append("code_challenge_method","plain"),r.searchParams.append("prompt","select_account"),r.searchParams.append("client_info","1"),r.searchParams.append("nonce","8a9afd0b-47f6-4678-9289-1b1bf5bfa20f"),r.searchParams.append("state",this.state),r.toString()},e.prototype.loginUser=function(t){return hr(this,void 0,void 0,function(){var r,o,i,n,s,l,u,a=this;return vr(this,function(c){switch(c.label){case 0:return r=this.buildLoginUrl(t),o="",this.usePopup?(i=window.open(r,"login","width=600,height=600"),i?[4,new Promise(function(f,v){return a.getCodeFromLoginWindow(i,function(d){o=d,f()})})]:[3,2]):[3,3];case 1:c.sent(),c.label=2;case 2:return[3,4];case 3:if(n=new URLSearchParams(window.location.search),s=n.get("code"),l=n.get("error"),s)return this.cacheService.remove("msal.codeVerifier"),o=s,u=new URL(window.location.href),u.searchParams.delete("code"),u.searchParams.delete("state"),u.searchParams.delete("error"),u.searchParams.delete("client_info"),u.searchParams.delete("expires_in"),u.searchParams.delete("ext_expires_in"),u.searchParams.delete("session_state"),window.history.replaceState({},"",u.toString()),[2,o];if(l)throw u.searchParams.delete("error"),new Error(l);this.cacheService.set("msal.codeVerifier",this.codeVerifier),window.location.href=r,c.label=4;case 4:return[2,o]}})})},e.prototype.getAccessTokenFromCode=function(t,r){return hr(this,void 0,void 0,function(){var o,i,n,s,l;return vr(this,function(u){switch(u.label){case 0:return[4,fetch("https://login.microsoftonline.com/common/oauth2/v2.0/token",{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",accept:"application/json"},body:new URLSearchParams({client_id:this.config.clientId,scope:"".concat(t,"/.default openid profile offline_access"),redirect_uri:this.config.redirectUri,grant_type:"authorization_code",code:r,code_verifier:this.codeVerifier})})];case 1:return o=u.sent(),o.ok?[4,o.json()]:[3,3];case 2:return i=u.sent(),[2,i];case 3:return s=(n=console).log,l=["Unable to get access token from code",o.status,o.statusText],[4,o.text()];case 4:throw s.apply(n,l.concat([u.sent()])),new Error("Unable to get access token from code")}})})},e.prototype.getAccessTokenFromRefreshToken=function(t,r){return hr(this,void 0,void 0,function(){var o,i,n,s;return vr(this,function(l){switch(l.label){case 0:return[4,fetch("https://login.microsoftonline.com/".concat(this.config.tenantId||"common","/oauth2/v2.0/token"),{method:"POST",headers:{"Content-Type":"application/x-www-form-urlencoded",accept:"application/json"},body:new URLSearchParams({client_id:this.config.clientId,scope:"".concat(t,"/.default openid profile offline_access"),grant_type:"refresh_token",refresh_token:r})})];case 1:return o=l.sent(),o.ok?[4,o.json()]:[3,3];case 2:return i=l.sent(),[2,i];case 3:return l.trys.push([3,5,,7]),[4,o.json()];case 4:return n=l.sent(),n.error_codes&&n.error_codes.length>0&&n.error_codes[0]===700084&&(this.cacheService.remove("msal.".concat(this.config.clientId,".").concat(t,".authResult")),this.resourceTokenMap.has(t)&&this.resourceTokenMap.delete(t)),[2,this.getAuthResult(t)];case 5:return l.sent(),[4,o.text()];case 6:throw s=l.sent(),new Error(s);case 7:return[2]}})})},e.prototype.getAuthResult=function(t){return hr(this,void 0,void 0,function(){var r,o;return vr(this,function(i){switch(i.label){case 0:if(r=this.cacheService.get("msal.".concat(this.config.clientId,".").concat(t,".authResult")),!r)return[3,2];try{if(ni.isTokenValid(r.access_token))return[2,r]}catch{console.log("Unable to verify token validity")}return r.refresh_token?[4,this.getAccessTokenFromRefreshToken(t,r.refresh_token)]:[3,2];case 1:return r=i.sent(),this.resourceTokenMap.set(t,r.access_token),this.cacheService.set("msal.".concat(this.config.clientId,".").concat(t,".authResult"),r),[2,r];case 2:return[4,this.loginUser(t)];case 3:return o=i.sent(),[4,this.getAccessTokenFromCode(t,o)];case 4:return r=i.sent(),this.cacheService.set("msal.".concat(this.config.clientId,".").concat(t,".authResult"),r),this.resourceTokenMap.set(t,r.access_token),[2,r]}})})},e.prototype.getAccessToken=function(t){return hr(this,void 0,void 0,function(){var r,o;return vr(this,function(i){switch(i.label){case 0:return r=this.resourceTokenMap.get(t),r&&ni.isTokenValid(r)?[2,r]:[4,this.getAuthResult(t)];case 1:return o=i.sent(),[2,o.access_token]}})})},kc([oi("msal-access-token-{0}")],e.prototype,"getAccessToken",null),e})();var xc=function(e,t,r,o){function i(n){return n instanceof r?n:new r(function(s){s(n)})}return new(r||(r=Promise))(function(n,s){function l(c){try{a(o.next(c))}catch(f){s(f)}}function u(c){try{a(o.throw(c))}catch(f){s(f)}}function a(c){c.done?n(c.value):i(c.value).then(l,u)}a((o=o.apply(e,t||[])).next())})},Bc=function(e,t){var r={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},o,i,n,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(a){return function(c){return u([a,c])}}function u(a){if(o)throw new TypeError("Generator is already executing.");for(;r;)try{if(o=1,i&&(n=a[0]&2?i.return:a[0]?i.throw||((n=i.return)&&n.call(i),0):i.next)&&!(n=n.call(i,a[1])).done)return n;switch(i=0,n&&(a=[a[0]&2,n.value]),a[0]){case 0:case 1:n=a;break;case 4:return r.label++,{value:a[1],done:!1};case 5:r.label++,i=a[1],a=[0];continue;case 7:a=r.ops.pop(),r.trys.pop();continue;default:if(n=r.trys,!(n=n.length>0&&n[n.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!n||a[1]>n[0]&&a[1]<n[3])){r.label=a[1];break}if(a[0]===6&&r.label<n[1]){r.label=n[1],n=a;break}if(n&&r.label<n[2]){r.label=n[2],r.ops.push(a);break}n[2]&&r.ops.pop(),r.trys.pop();continue}a=t.call(e,r)}catch(c){a=[6,c],i=0}finally{o=n=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},Dr={emptyMask:0,viewListItems:1,addListItems:2,editListItems:3,deleteListItems:4,approveItems:5,openItems:6,viewVersions:7,deleteVersions:8,cancelCheckout:9,managePersonalViews:10,manageLists:12,viewFormPages:13,anonymousSearchAccessList:14,open:17,viewPages:18,addAndCustomizePages:19,applyThemeAndBorder:20,applyStyleSheets:21,viewUsageData:22,createSSCSite:23,manageSubwebs:24,createGroups:25,managePermissions:26,browseDirectories:27,browseUserInfo:28,addDelPrivateWebParts:29,updatePersonalWebParts:30,manageWeb:31,anonymousSearchAccessWebLists:32,useClientIntegration:37,useRemoteAPIs:38,manageAlerts:39,createAlerts:40,editMyUserInfo:41,enumeratePermissions:63,fullMask:65},_c=function(){function e(t,r){this.spHttpClient=t,this.siteUrl=r}return e.hasPermission=function(t,r){if(r===65)return(t.High&32767)===32767&&t.Low===65535;var o=r-1,i=1;return o>0&&o<32?(i=i<<o,(t.Low&i)!==0):o>=32&&o<64?(i=i<<o-32,(t.High&i)!==0):!1},e.prototype.checkUserPermissions=function(t){return xc(this,void 0,void 0,function(){var r,o,i,n,s,l;return Bc(this,function(u){switch(u.label){case 0:return r="".concat(this.siteUrl,"/_api/web/getUserEffectivePermissions('").concat(encodeURIComponent("i:0#.f|membership|"+t),"')"),[4,this.spHttpClient.get(r,{headers:{accept:"application/json"}})];case 1:return o=u.sent(),[4,o.json()];case 2:i=u.sent(),n=[];for(s in Dr)l=e.hasPermission(i,Dr[s]),l&&n.push(s);return[2,n]}})})},e}();const Eo=p.createContext({graphClient:new Vt}),Je=()=>p.useContext(Eo),Pc=e=>{const{authProvider:t}=Fr(),r=()=>{if(e.graphClient)return e.graphClient;if(t)return new pc(new zo(t,new Vt))},[o,i]=p.useState(r());return p.useEffect(()=>{i(r())},[e.graphClient,t]),o&&M.jsx(Eo.Provider,{value:{graphClient:o},children:e.children})},jo=p.createContext({spClient:new Vt,siteUrl:""}),fi=()=>p.useContext(jo),Sc=e=>{const{authProvider:t}=Fr(),r=()=>{if(e.spClient)return e.spClient;if(t){let n=new zo(t,new Vt);return n.resourceUri=new URL(e.siteUrl).origin,n}},[o,i]=p.useState(r());return p.useEffect(()=>{i(r())},[e.spClient,t]),o&&M.jsx(jo.Provider,{value:{spClient:o,siteUrl:e.siteUrl},children:e.children})},Ro=p.createContext({dataverseClient:new Vt}),Cc=()=>p.useContext(Ro),zc=e=>{const{authProvider:t}=Fr(),r=()=>{if(e.dataverseClient)return e.dataverseClient;if(t){let n=new zo(t,new Vt);return n.resourceUri=e.dataverseResource,n}},[o,i]=p.useState(r());return p.useEffect(()=>{i(r())},[e.dataverseClient,t]),o&&M.jsx(Ro.Provider,{value:{dataverseClient:o,dataverseResource:e.dataverseResource},children:e.children})},Tc=["Top","Right","Bottom","Left"];function gr(e,t,...r){const[o,i=o,n=o,s=i]=r,l=[o,i,n,s],u={};for(let a=0;a<l.length;a+=1)if(l[a]||l[a]===0){const c=e+Tc[a]+t;u[c]=l[a]}return u}function Fo(...e){return gr("border","Width",...e)}function qo(...e){return gr("border","Style",...e)}function Ao(...e){return gr("border","Color",...e)}const Nc=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function pr(e){return Nc.includes(e)}function Ec(...e){return pr(e[0])?{...qo(e[0]),...e[1]&&Fo(e[1]),...e[2]&&Ao(e[2])}:{...Fo(e[0]),...e[1]&&qo(e[1]),...e[2]&&Ao(e[2])}}function jc(...e){return pr(e[0])?{borderLeftStyle:e[0],...e[1]&&{borderLeftWidth:e[1]},...e[2]&&{borderLeftColor:e[2]}}:{borderLeftWidth:e[0],...e[1]&&{borderLeftStyle:e[1]},...e[2]&&{borderLeftColor:e[2]}}}function Rc(...e){return pr(e[0])?{borderBottomStyle:e[0],...e[1]&&{borderBottomWidth:e[1]},...e[2]&&{borderBottomColor:e[2]}}:{borderBottomWidth:e[0],...e[1]&&{borderBottomStyle:e[1]},...e[2]&&{borderBottomColor:e[2]}}}function Fc(...e){return pr(e[0])?{borderRightStyle:e[0],...e[1]&&{borderRightWidth:e[1]},...e[2]&&{borderRightColor:e[2]}}:{borderRightWidth:e[0],...e[1]&&{borderRightStyle:e[1]},...e[2]&&{borderRightColor:e[2]}}}function qc(...e){return pr(e[0])?{borderTopStyle:e[0],...e[1]&&{borderTopWidth:e[1]},...e[2]&&{borderTopColor:e[2]}}:{borderTopWidth:e[0],...e[1]&&{borderTopStyle:e[1]},...e[2]&&{borderTopColor:e[2]}}}function Ac(e,t=e,r=e,o=t){return{borderBottomRightRadius:r,borderBottomLeftRadius:o,borderTopRightRadius:t,borderTopLeftRadius:e}}const Dc=e=>typeof e=="string"&&/(\d+(\w+|%))/.test(e),Or=e=>typeof e=="number"&&!Number.isNaN(e),Oc=e=>e==="initial",di=e=>e==="auto",Ic=e=>e==="none",Mc=["content","fit-content","max-content","min-content"],Do=e=>Mc.some(t=>e===t)||Dc(e);function Lc(...e){const t=e.length===1,r=e.length===2,o=e.length===3;if(t){const[i]=e;if(Oc(i))return{flexGrow:0,flexShrink:1,flexBasis:"auto"};if(di(i))return{flexGrow:1,flexShrink:1,flexBasis:"auto"};if(Ic(i))return{flexGrow:0,flexShrink:0,flexBasis:"auto"};if(Or(i))return{flexGrow:i,flexShrink:1,flexBasis:0};if(Do(i))return{flexGrow:1,flexShrink:1,flexBasis:i}}if(r){const[i,n]=e;if(Or(n))return{flexGrow:i,flexShrink:n,flexBasis:0};if(Do(n))return{flexGrow:i,flexShrink:1,flexBasis:n}}if(o){const[i,n,s]=e;if(Or(i)&&Or(n)&&(di(s)||Do(s)))return{flexGrow:i,flexShrink:n,flexBasis:s}}return process.env.NODE_ENV!=="production"&&console.error("The value passed to shorthands.flex did not match any flex property specs. The CSS styles were not generated. Please, check the flex documentation."),{}}function Hc(e,t=e){return{columnGap:e,rowGap:t}}const Vc=/var\(.*\)/gi;function $c(e){return e===void 0||typeof e=="number"||typeof e=="string"&&!Vc.test(e)}const Wc=/^[a-zA-Z0-9\-_\\#;]+$/,Uc=/^-moz-initial$|^auto$|^initial$|^inherit$|^revert$|^unset$|^span \d+$|^\d.*/;function Oo(e){return e!==void 0&&typeof e=="string"&&Wc.test(e)&&!Uc.test(e)}function Gc(...e){if(e.some(n=>!$c(n)))return process.env.NODE_ENV!=="production"&&console.error("The value passed to shorthands.gridArea() did not match any gridArea property specs. The CSS styles were not generated. Please, check the gridArea documentation.",["The value passed to shorthands.gridArea() did not match any gridArea property specs. ",`The CSS styles were not generated.
|
|
28
|
+
`,"Please, check the `grid-area` documentation:\n","- https://developer.mozilla.org/docs/Web/CSS/grid-area","- https://griffel.js.org/react/api/shorthands#shorthandsgridarea"].join("")),{};const t=e[0]!==void 0?e[0]:"auto",r=e[1]!==void 0?e[1]:Oo(t)?t:"auto",o=e[2]!==void 0?e[2]:Oo(t)?t:"auto",i=e[3]!==void 0?e[3]:Oo(r)?r:"auto";return{gridRowStart:t,gridColumnStart:r,gridRowEnd:o,gridColumnEnd:i}}function Xc(...e){return gr("margin","",...e)}function Kc(e,t=e){return{marginBlockStart:e,marginBlockEnd:t}}function Zc(e,t=e){return{marginInlineStart:e,marginInlineEnd:t}}function Yc(...e){return gr("padding","",...e)}function Qc(e,t=e){return{paddingBlockStart:e,paddingBlockEnd:t}}function Jc(e,t=e){return{paddingInlineStart:e,paddingInlineEnd:t}}function eu(e,t=e){return{overflowX:e,overflowY:t}}function tu(...e){const[t,r=t,o=t,i=r]=e;return{top:t,right:r,bottom:o,left:i}}function ru(e,t,r){return{outlineWidth:e,...t&&{outlineStyle:t},...r&&{outlineColor:r}}}function ou(...e){return iu(e)?{transitionDelay:e[0],transitionDuration:e[0],transitionProperty:e[0],transitionTimingFunction:e[0]}:au(e).reduce((r,[o,i="0s",n="0s",s="ease"],l)=>(l===0?(r.transitionProperty=o,r.transitionDuration=i,r.transitionDelay=n,r.transitionTimingFunction=s):(r.transitionProperty+=`, ${o}`,r.transitionDuration+=`, ${i}`,r.transitionDelay+=`, ${n}`,r.transitionTimingFunction+=`, ${s}`),r),{})}const nu=["-moz-initial","inherit","initial","revert","unset"];function iu(e){return e.length===1&&nu.includes(e[0])}function au(e){return e.length===1&&Array.isArray(e[0])?e[0]:[e]}function su(e,...t){if(t.length===0)return cu(e)?{textDecorationStyle:e}:{textDecorationLine:e};const[r,o,i]=t;return{textDecorationLine:e,...r&&{textDecorationStyle:r},...o&&{textDecorationColor:o},...i&&{textDecorationThickness:i}}}const lu=["dashed","dotted","double","solid","wavy"];function cu(e){return lu.includes(e)}const Io=typeof window>"u"?global:window,Mo="@griffel/";function hi(e,t){return Io[Symbol.for(Mo+e)]||(Io[Symbol.for(Mo+e)]=t),Io[Symbol.for(Mo+e)]}const vi=hi("DEBUG_RESET_CLASSES",{}),mr=hi("DEFINITION_LOOKUP_TABLE",{}),Ir="data-make-styles-bucket",Lo="f",uu="r",br=7,et="___",gi="_",pi=process.env.NODE_ENV==="production"?et.length+br:et.length+br+gi.length+br,fu=0,mi=1,du={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 Ct(e){for(var t=0,r,o=0,i=e.length;i>=4;++o,i-=4)r=e.charCodeAt(o)&255|(e.charCodeAt(++o)&255)<<8|(e.charCodeAt(++o)&255)<<16|(e.charCodeAt(++o)&255)<<24,r=(r&65535)*1540483477+((r>>>16)*59797<<16),r^=r>>>24,t=(r&65535)*1540483477+((r>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(o+2)&255)<<16;case 2:t^=(e.charCodeAt(o+1)&255)<<8;case 1:t^=e.charCodeAt(o)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}function Ho(e){const t=e.length;if(t===br)return e;for(let r=t;r<br;r++)e+="0";return e}function bi(e,t,r=[]){return process.env.NODE_ENV==="production"?et+Ho(Ct(e+t)):et+Ho(Ct(e+t))+gi+Ho(Ct(r.join("")))}function yi(e,t){let r="";for(const o in e){const i=e[o];if(i){const n=Array.isArray(i);t==="rtl"?r+=(n?i[1]:i)+" ":r+=(n?i[0]:i)+" "}}return r.slice(0,-1)}function Mr(e,t){const r={};for(const o in e){const i=yi(e[o],t);if(i===""){r[o]="";continue}const n=bi(i,t),s=n+" "+i;mr[n]=[e[o],t],r[o]=s}return r}const Lr={};function A(){let e=null,t="",r="";const o=new Array(arguments.length);let i="";for(let c=0;c<arguments.length;c++){const f=arguments[c];if(typeof f=="string"&&f!==""){const v=f.indexOf(et);if(v===-1)process.env.NODE_ENV!=="production"&&f.split(" ").forEach(d=>{d.startsWith(uu)&&vi[d]&&(i?console.error(`mergeClasses(): a passed string contains multiple classes produced by makeResetStyles (${f} & ${t}, this will lead to non-deterministic behavior. Learn more:https://griffel.js.org/react/api/make-reset-styles#limitations
|
|
29
|
+
Source string: ${f}`):i=d)}),t+=f+" ";else{const d=f.substr(v,pi);v>0&&(t+=f.slice(0,v)),r+=d,o[c]=d}process.env.NODE_ENV!=="production"&&f.indexOf(et,v+1)!==-1&&console.error(`mergeClasses(): a passed string contains multiple identifiers of atomic classes (classes that start with "${et}"), it's possible that passed classes were concatenated in a wrong way. Source string: ${f}`)}}if(r==="")return t.slice(0,-1);const n=Lr[r];if(n!==void 0)return t+n;const s=[];for(let c=0;c<arguments.length;c++){const f=o[c];if(f){const v=mr[f];v?(s.push(v[fu]),process.env.NODE_ENV!=="production"&&e!==null&&e!==v[mi]&&console.error(`mergeClasses(): a passed string contains an identifier (${f}) that has different direction (dir="${v[1]?"rtl":"ltr"}") setting than other classes. This is not supported. Source string: ${arguments[c]}`),e=v[mi]):process.env.NODE_ENV!=="production"&&console.error(`mergeClasses(): a passed string contains an identifier (${f}) that does not match any entry in cache. Source string: ${arguments[c]}`)}}const l=Object.assign.apply(Object,[{}].concat(s));let u=yi(l,e);const a=bi(u,e,o);return u=a+" "+u,Lr[r]=u,mr[a]=[l,e],t+u}const wi={},ki=new Set,$t={getChildrenSequences:e=>{const t=Object.keys(Lr).find(r=>Lr[r].startsWith(e));return t?t.split(et).filter(r=>r.length).map(r=>et+r):[]},addCSSRule:e=>{ki.add(e)},addSequenceDetails:(e,t)=>{Object.entries(e).forEach(([r,o])=>{wi[o.substring(0,pi)]={slotName:r,sourceURL:t}})},getCSSRules:()=>Array.from(ki),getSequenceDetails:e=>wi[e]};function xi(e,t){return Array.isArray(e)?t==="rtl"?e[1]:e[0]:e}function hu(e,t,r,o){const i=e[0],n=e[1];return Object.entries(i).map(([s,l])=>{const u=xi(l,n);let a;if(r&&t){const c=r.find(({className:f})=>f===u);!c&&t[0][s]?a=xi(t[0][s],t[1]):c&&t[0][s]?a=(o?o.filter(({debugClassNames:v})=>v.filter(({className:d})=>d===u).length>0).length>0:!1)?c.className:c.overriddenBy:(!c&&!t[0][s]||c&&!t[0][s])&&(a=void 0)}return{className:u,overriddenBy:a}})}function Bi(e,t){const r=mr[e];if(r===void 0)return;const o=t?mr[t.sequenceHash]:void 0,i=hu(r,o,t==null?void 0:t.debugClassNames,t==null?void 0:t.children),n={sequenceHash:e,direction:r[1],children:[],debugClassNames:i};return $t.getChildrenSequences(n.sequenceHash).reverse().forEach(l=>{const u=Bi(l,n);u&&n.children.push(u)}),n.children.length||(n.rules={},n.debugClassNames.forEach(({className:l})=>{const u=$t.getSequenceDetails(e);u&&(n.slot=u.slotName,n.sourceURL=u.sourceURL);const a=$t.getCSSRules().find(c=>c.includes(l));n.rules[l]=a})),n}function vu(e){const t=e.defaultView;if(!t||t.__GRIFFEL_DEVTOOLS__)return;const r={getInfo:o=>{const i=Array.from(o.classList).find(n=>n.startsWith(et));if(i!==void 0)return Bi(i)}};Object.defineProperty(t,"__GRIFFEL_DEVTOOLS__",{configurable:!1,enumerable:!1,get(){return r}})}const Wt=(()=>{var e;try{return!!(typeof window<"u"&&(!((e=window.sessionStorage)===null||e===void 0)&&e.getItem("__GRIFFEL_DEVTOOLS__")))}catch{return!1}})();function gu(e){if(!Array.isArray(e))return[e];if(process.env.NODE_ENV!=="production"&&e.length>2)throw new Error("CSS Bucket contains an entry with greater than 2 items, please report this to https://github.com/microsoft/griffel/issues");return e}function pu(e,t,r){const o=[];if(r[Ir]=t,e)for(const n in r)e.setAttribute(n,r[n]);function i(n){return e!=null&&e.sheet?e.sheet.insertRule(n,e.sheet.cssRules.length):o.push(n)}return{elementAttributes:r,insertRule:i,element:e,bucketName:t,cssRules(){return e!=null&&e.sheet?Array.from(e.sheet.cssRules).map(n=>n.cssText):o}}}const _i=["r","d","l","v","w","f","i","h","a","s","k","t","m","c"].reduce((e,t,r)=>(e[t]=r,e),{});function mu(e,t,r,o,i={}){const n=e==="m",s=n?e+i.m:e;if(!o.stylesheets[s]){const l=t&&t.createElement("style"),u=pu(l,e,{...o.styleElementAttributes,...n&&{media:i.m}});o.stylesheets[s]=u,t&&l&&t.head.insertBefore(l,bu(t,r,e,o,i))}return o.stylesheets[s]}function bu(e,t,r,o,i){const n=_i[r];let s=c=>n-_i[c.getAttribute(Ir)],l=e.head.querySelectorAll(`[${Ir}]`);if(r==="m"&&i){const c=e.head.querySelectorAll(`[${Ir}="${r}"]`);c.length&&(l=c,s=f=>o.compareMediaQueries(i.m,f.media))}const u=l.length;let a=u-1;for(;a>=0;){const c=l.item(a);if(s(c)>0)return c.nextSibling;a--}return u>0?l.item(0):t?t.nextSibling:null}const yu=["-moz-placeholder","-moz-focus-inner","-moz-focusring","-ms-input-placeholder","-moz-read-write","-moz-read-only"].join("|"),wu=new RegExp(`:(${yu})`);function Pi(e,t){try{e.insertRule(t)}catch(r){process.env.NODE_ENV!=="production"&&!wu.test(t)&&console.error(`There was a problem inserting the following rule: "${t}"`,r)}}let ku=0;const xu=(e,t)=>e<t?-1:e>t?1:0;function Bu(e=typeof document>"u"?void 0:document,t={}){const{unstable_filterCSSRule:r,insertionPoint:o,styleElementAttributes:i,compareMediaQueries:n=xu}=t,s={insertionCache:{},stylesheets:{},styleElementAttributes:Object.freeze(i),compareMediaQueries:n,id:`d${ku++}`,insertCSSRules(l){for(const u in l){const a=l[u];for(let c=0,f=a.length;c<f;c++){const[v,d]=gu(a[c]),h=mu(u,e,o||null,s,d);s.insertionCache[v]||(s.insertionCache[v]=u,process.env.NODE_ENV!=="production"&&Wt&&$t.addCSSRule(v),r?r(v)&&Pi(h,v):Pi(h,v))}}}};return e&&process.env.NODE_ENV!=="production"&&Wt&&vu(e),s}const Vo="<unknown>";function _u(e){return zu(e)||Eu(e)||Ru(e)}const Pu=/^\s*at (.*?) ?\(((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/|[a-z]:\\|\\\\).*?)?\)?\s*$/i,Su=/^\s*at ()((?:file|https?|blob|chrome-extension|native|eval|webpack|<anonymous>|\/|[a-z]:\\|\\\\).*?)\s*$/i,Cu=/\((\S*)\)/;function zu(e){const t=Pu.exec(e)||Su.exec(e);if(!t)return null;let r=t[2];const o=r&&r.indexOf("native")===0,i=r&&r.indexOf("eval")===0,n=Cu.exec(r);return i&&n!=null&&(r=n[1]),{loc:o?null:t[2],name:t[1]||Vo}}const Tu=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)((?:file|https?|blob|chrome|webpack|resource|\[native).*?|[^@]*bundle)\s*$/i,Nu=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i;function Eu(e){const t=Tu.exec(e);if(!t)return null;let r=t[3];const o=r&&r.indexOf(" > eval")>-1,i=Nu.exec(r);return o&&i!=null&&(r=i[1]),{loc:t[3],name:t[1]||Vo}}const ju=/^\s*(?:([^@]*)(?:\((.*?)\))?@)?(\S.*?)\s*$/i;function Ru(e){const t=ju.exec(e);return t?{loc:t[3],name:t[1]||Vo}:null}function Si(){const e=String(new Error().stack).split(`
|
|
30
|
+
`),t=Fu(e);if(t===void 0)return;const r=_u(t);return r==null?void 0:r.loc}function Fu(e){for(let t=e.length-1;t>=0;--t)if(e[t].includes("at getSourceURLfromError"))return e[t+3]}const $o=()=>{const e={};return function(r,o){e[r.id]===void 0&&(r.insertCSSRules(o),e[r.id]=!0)}};function Ci(e){return e.reduce(function(t,r){var o=r[0],i=r[1];return t[o]=i,t[i]=o,t},{})}function qu(e){return typeof e=="boolean"}function Au(e){return typeof e=="function"}function yr(e){return typeof e=="number"}function Du(e){return e===null||typeof e>"u"}function Ou(e){return e&&typeof e=="object"}function Iu(e){return typeof e=="string"}function Hr(e,t){return e.indexOf(t)!==-1}function Mu(e){return parseFloat(e)===0?e:e[0]==="-"?e.slice(1):"-"+e}function Vr(e,t,r,o){return t+Mu(r)+o}function Lu(e){var t=e.indexOf(".");if(t===-1)e=100-parseFloat(e)+"%";else{var r=e.length-t-2;e=100-parseFloat(e),e=e.toFixed(r)+"%"}return e}function zi(e){return e.replace(/ +/g," ").split(" ").map(function(t){return t.trim()}).filter(Boolean).reduce(function(t,r){var o=t.list,i=t.state,n=(r.match(/\(/g)||[]).length,s=(r.match(/\)/g)||[]).length;return i.parensDepth>0?o[o.length-1]=o[o.length-1]+" "+r:o.push(r),i.parensDepth+=n-s,{list:o,state:i}},{list:[],state:{parensDepth:0}}).list}function Ti(e){var t=zi(e);if(t.length<=3||t.length>4)return e;var r=t[0],o=t[1],i=t[2],n=t[3];return[r,n,i,o].join(" ")}function Hu(e){return!qu(e)&&!Du(e)}function Vu(e){for(var t=[],r=0,o=0,i=!1;o<e.length;)!i&&e[o]===","?(t.push(e.substring(r,o).trim()),o++,r=o):e[o]==="("?(i=!0,o++):(e[o]===")"&&(i=!1),o++);return r!=o&&t.push(e.substring(r,o+1)),t}var C={padding:function(t){var r=t.value;return yr(r)?r:Ti(r)},textShadow:function(t){var r=t.value,o=Vu(r).map(function(i){return i.replace(/(^|\s)(-*)([.|\d]+)/,function(n,s,l,u){if(u==="0")return n;var a=l===""?"-":"";return""+s+a+u})});return o.join(",")},borderColor:function(t){var r=t.value;return Ti(r)},borderRadius:function(t){var r=t.value;if(yr(r))return r;if(Hr(r,"/")){var o=r.split("/"),i=o[0],n=o[1],s=C.borderRadius({value:i.trim()}),l=C.borderRadius({value:n.trim()});return s+" / "+l}var u=zi(r);switch(u.length){case 2:return u.reverse().join(" ");case 4:{var a=u[0],c=u[1],f=u[2],v=u[3];return[c,a,v,f].join(" ")}default:return r}},background:function(t){var r=t.value,o=t.valuesToConvert,i=t.isRtl,n=t.bgImgDirectionRegex,s=t.bgPosDirectionRegex;if(yr(r))return r;var l=r.replace(/(url\(.*?\))|(rgba?\(.*?\))|(hsl\(.*?\))|(#[a-fA-F0-9]+)|((^| )(\D)+( |$))/g,"").trim();return r=r.replace(l,C.backgroundPosition({value:l,valuesToConvert:o,isRtl:i,bgPosDirectionRegex:s})),C.backgroundImage({value:r,valuesToConvert:o,bgImgDirectionRegex:n})},backgroundImage:function(t){var r=t.value,o=t.valuesToConvert,i=t.bgImgDirectionRegex;return!Hr(r,"url(")&&!Hr(r,"linear-gradient(")?r:r.replace(i,function(n,s,l){return n.replace(l,o[l])})},backgroundPosition:function(t){var r=t.value,o=t.valuesToConvert,i=t.isRtl,n=t.bgPosDirectionRegex;return r.replace(i?/^((-|\d|\.)+%)/:null,function(s,l){return Lu(l)}).replace(n,function(s){return o[s]})},backgroundPositionX:function(t){var r=t.value,o=t.valuesToConvert,i=t.isRtl,n=t.bgPosDirectionRegex;return yr(r)?r:C.backgroundPosition({value:r,valuesToConvert:o,isRtl:i,bgPosDirectionRegex:n})},transition:function(t){var r=t.value,o=t.propertiesToConvert;return r.split(/,\s*/g).map(function(i){var n=i.split(" ");return n[0]=o[n[0]]||n[0],n.join(" ")}).join(", ")},transitionProperty:function(t){var r=t.value,o=t.propertiesToConvert;return r.split(/,\s*/g).map(function(i){return o[i]||i}).join(", ")},transform:function(t){var r=t.value,o="[^\\u0020-\\u007e]",i="(?:(?:(?:\\[0-9a-f]{1,6})(?:\\r\\n|\\s)?)|\\\\[^\\r\\n\\f0-9a-f])",n="((?:-?"+("(?:[0-9]*\\.[0-9]+|[0-9]+)(?:\\s*(?:em|ex|px|cm|mm|in|pt|pc|deg|rad|grad|ms|s|hz|khz|%)|"+("-?"+("(?:[_a-z]|"+o+"|"+i+")")+("(?:[_a-z0-9-]|"+o+"|"+i+")")+"*")+")?")+")|(?:inherit|auto))",s=new RegExp("(translateX\\s*\\(\\s*)"+n+"(\\s*\\))","gi"),l=new RegExp("(translate\\s*\\(\\s*)"+n+"((?:\\s*,\\s*"+n+"){0,1}\\s*\\))","gi"),u=new RegExp("(translate3d\\s*\\(\\s*)"+n+"((?:\\s*,\\s*"+n+"){0,2}\\s*\\))","gi"),a=new RegExp("(rotate[ZY]?\\s*\\(\\s*)"+n+"(\\s*\\))","gi");return r.replace(s,Vr).replace(l,Vr).replace(u,Vr).replace(a,Vr)}};C.objectPosition=C.backgroundPosition,C.margin=C.padding,C.borderWidth=C.padding,C.boxShadow=C.textShadow,C.webkitBoxShadow=C.boxShadow,C.mozBoxShadow=C.boxShadow,C.WebkitBoxShadow=C.boxShadow,C.MozBoxShadow=C.boxShadow,C.borderStyle=C.borderColor,C.webkitTransform=C.transform,C.mozTransform=C.transform,C.WebkitTransform=C.transform,C.MozTransform=C.transform,C.transformOrigin=C.backgroundPosition,C.webkitTransformOrigin=C.transformOrigin,C.mozTransformOrigin=C.transformOrigin,C.WebkitTransformOrigin=C.transformOrigin,C.MozTransformOrigin=C.transformOrigin,C.webkitTransition=C.transition,C.mozTransition=C.transition,C.WebkitTransition=C.transition,C.MozTransition=C.transition,C.webkitTransitionProperty=C.transitionProperty,C.mozTransitionProperty=C.transitionProperty,C.WebkitTransitionProperty=C.transitionProperty,C.MozTransitionProperty=C.transitionProperty,C["text-shadow"]=C.textShadow,C["border-color"]=C.borderColor,C["border-radius"]=C.borderRadius,C["background-image"]=C.backgroundImage,C["background-position"]=C.backgroundPosition,C["background-position-x"]=C.backgroundPositionX,C["object-position"]=C.objectPosition,C["border-width"]=C.padding,C["box-shadow"]=C.textShadow,C["-webkit-box-shadow"]=C.textShadow,C["-moz-box-shadow"]=C.textShadow,C["border-style"]=C.borderColor,C["-webkit-transform"]=C.transform,C["-moz-transform"]=C.transform,C["transform-origin"]=C.transformOrigin,C["-webkit-transform-origin"]=C.transformOrigin,C["-moz-transform-origin"]=C.transformOrigin,C["-webkit-transition"]=C.transition,C["-moz-transition"]=C.transition,C["transition-property"]=C.transitionProperty,C["-webkit-transition-property"]=C.transitionProperty,C["-moz-transition-property"]=C.transitionProperty;var Ni=Ci([["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"]]),$u=["content"],Ei=Ci([["ltr","rtl"],["left","right"],["w-resize","e-resize"],["sw-resize","se-resize"],["nw-resize","ne-resize"]]),Wu=new RegExp("(^|\\W|_)((ltr)|(rtl)|(left)|(right))(\\W|_|$)","g"),Uu=new RegExp("(left)|(right)");function ji(e){return Object.keys(e).reduce(function(t,r){var o=e[r];if(Iu(o)&&(o=o.trim()),Hr($u,r))return t[r]=o,t;var i=Wo(r,o),n=i.key,s=i.value;return t[n]=s,t},Array.isArray(e)?[]:{})}function Wo(e,t){var r=/\/\*\s?@noflip\s?\*\//.test(t),o=r?e:Gu(e),i=r?t:Xu(o,t);return{key:o,value:i}}function Gu(e){return Ni[e]||e}function Xu(e,t){if(!Hu(t))return t;if(Ou(t))return ji(t);var r=yr(t),o=Au(t),i=r||o?t:t.replace(/ !important.*?$/,""),n=!r&&i.length!==t.length,s=C[e],l;return s?l=s({value:i,valuesToConvert:Ei,propertiesToConvert:Ni,isRtl:!0,bgImgDirectionRegex:Wu,bgPosDirectionRegex:Uu}):l=Ei[i]||i,n?l+" !important":l}const Ku=/[A-Z]/g,Zu=/^ms-/,Uo={};function Yu(e){return"-"+e.toLowerCase()}function wr(e){if(Object.prototype.hasOwnProperty.call(Uo,e))return Uo[e];if(e.substr(0,2)==="--")return e;const t=e.replace(Ku,Yu);return Uo[e]=Zu.test(t)?"-"+t:t}function Ri(e){return e.charAt(0)==="&"?e.slice(1):e}var kr="-moz-",Ze="-webkit-",Fi="comm",$r="rule",Go="decl",Qu="@media",Ju="@import",ef="@supports",tf="@keyframes",qi="@layer",rf=Math.abs,Wr=String.fromCharCode,of=Object.assign;function nf(e,t){return je(e,0)^45?(((t<<2^je(e,0))<<2^je(e,1))<<2^je(e,2))<<2^je(e,3):0}function Ai(e){return e.trim()}function Di(e,t){return(e=t.exec(e))?e[0]:e}function Oe(e,t,r){return e.replace(t,r)}function Oi(e,t){return e.indexOf(t)}function je(e,t){return e.charCodeAt(t)|0}function xr(e,t,r){return e.slice(t,r)}function tt(e){return e.length}function Ii(e){return e.length}function zt(e,t){return t.push(e),e}function af(e,t){return e.map(t).join("")}var Ur=1,Ut=1,Mi=0,Ve=0,pe=0,Gt="";function Gr(e,t,r,o,i,n,s,l){return{value:e,root:t,parent:r,type:o,props:i,children:n,line:Ur,column:Ut,length:s,return:"",siblings:l}}function Xo(e,t){return of(Gr("",null,null,"",null,null,0,e.siblings),e,{length:-e.length},t)}function sf(){return pe}function lf(){return pe=Ve>0?je(Gt,--Ve):0,Ut--,pe===10&&(Ut=1,Ur--),pe}function We(){return pe=Ve<Mi?je(Gt,Ve++):0,Ut++,pe===10&&(Ut=1,Ur++),pe}function Tt(){return je(Gt,Ve)}function Xr(){return Ve}function Kr(e,t){return xr(Gt,e,t)}function Zr(e){switch(e){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 Li(e){return Ur=Ut=1,Mi=tt(Gt=e),Ve=0,[]}function Hi(e){return Gt="",e}function Yr(e){return Ai(Kr(Ve-1,Ko(e===91?e+2:e===40?e+1:e)))}function cf(e){return Hi(ff(Li(e)))}function uf(e){for(;(pe=Tt())&&pe<33;)We();return Zr(e)>2||Zr(pe)>3?"":" "}function ff(e){for(;We();)switch(Zr(pe)){case 0:zt(Vi(Ve-1),e);break;case 2:zt(Yr(pe),e);break;default:zt(Wr(pe),e)}return e}function df(e,t){for(;--t&&We()&&!(pe<48||pe>102||pe>57&&pe<65||pe>70&&pe<97););return Kr(e,Xr()+(t<6&&Tt()==32&&We()==32))}function Ko(e){for(;We();)switch(pe){case e:return Ve;case 34:case 39:e!==34&&e!==39&&Ko(pe);break;case 40:e===41&&Ko(e);break;case 92:We();break}return Ve}function hf(e,t){for(;We()&&e+pe!==57;)if(e+pe===84&&Tt()===47)break;return"/*"+Kr(t,Ve-1)+"*"+Wr(e===47?e:We())}function Vi(e){for(;!Zr(Tt());)We();return Kr(e,Ve)}function $i(e){return Hi(Qr("",null,null,null,[""],e=Li(e),0,[0],e))}function Qr(e,t,r,o,i,n,s,l,u){for(var a=0,c=0,f=s,v=0,d=0,h=0,m=1,k=1,b=1,y=0,P="",x=i,S=n,w=o,_=P;k;)switch(h=y,y=We()){case 40:if(h!=108&&je(_,f-1)==58){Oi(_+=Oe(Yr(y),"&","&\f"),"&\f")!=-1&&(b=-1);break}case 34:case 39:case 91:_+=Yr(y);break;case 9:case 10:case 13:case 32:_+=uf(h);break;case 92:_+=df(Xr()-1,7);continue;case 47:switch(Tt()){case 42:case 47:zt(vf(hf(We(),Xr()),t,r,u),u);break;default:_+="/"}break;case 123*m:l[a++]=tt(_)*b;case 125*m:case 59:case 0:switch(y){case 0:case 125:k=0;case 59+c:b==-1&&(_=Oe(_,/\f/g,"")),d>0&&tt(_)-f&&zt(d>32?Ui(_+";",o,r,f-1,u):Ui(Oe(_," ","")+";",o,r,f-2,u),u);break;case 59:_+=";";default:if(zt(w=Wi(_,t,r,a,c,i,l,P,x=[],S=[],f,n),n),y===123)if(c===0)Qr(_,t,w,w,x,n,f,l,S);else switch(v===99&&je(_,3)===110?100:v){case 100:case 108:case 109:case 115:Qr(e,w,w,o&&zt(Wi(e,w,w,0,0,i,l,P,i,x=[],f,S),S),i,S,f,l,o?x:S);break;default:Qr(_,w,w,w,[""],S,0,l,S)}}a=c=d=0,m=b=1,P=_="",f=s;break;case 58:f=1+tt(_),d=h;default:if(m<1){if(y==123)--m;else if(y==125&&m++==0&&lf()==125)continue}switch(_+=Wr(y),y*m){case 38:b=c>0?1:(_+="\f",-1);break;case 44:l[a++]=(tt(_)-1)*b,b=1;break;case 64:Tt()===45&&(_+=Yr(We())),v=Tt(),c=f=tt(P=_+=Vi(Xr())),y++;break;case 45:h===45&&tt(_)==2&&(m=0)}}return n}function Wi(e,t,r,o,i,n,s,l,u,a,c,f){for(var v=i-1,d=i===0?n:[""],h=Ii(d),m=0,k=0,b=0;m<o;++m)for(var y=0,P=xr(e,v+1,v=rf(k=s[m])),x=e;y<h;++y)(x=Ai(k>0?d[y]+" "+P:Oe(P,/&\f/g,d[y])))&&(u[b++]=x);return Gr(e,t,r,i===0?$r:l,u,a,c,f)}function vf(e,t,r,o){return Gr(e,t,r,Fi,Wr(sf()),xr(e,2,-2),0,o)}function Ui(e,t,r,o,i){return Gr(e,t,r,Go,xr(e,0,o),xr(e,o+1,-1),o,i)}function Xt(e,t){for(var r="",o=0;o<e.length;o++)r+=t(e[o],o,e,t)||"";return r}function Gi(e,t,r,o){switch(e.type){case qi:if(e.children.length)break;case Ju:case Go:return e.return=e.return||e.value;case Fi:return"";case tf:return e.return=e.value+"{"+Xt(e.children,o)+"}";case $r:if(!tt(e.value=e.props.join(",")))return""}return tt(r=Xt(e.children,o))?e.return=e.value+"{"+r+"}":""}function Xi(e){var t=Ii(e);return function(r,o,i,n){for(var s="",l=0;l<t;l++)s+=e[l](r,o,i,n)||"";return s}}function Ki(e){return function(t){t.root||(t=t.return)&&e(t)}}const gf=e=>{switch(e.type){case $r:if(typeof e.props=="string"){if(process.env.NODE_ENV!=="production")throw new Error(`"element.props" has type "string" (${JSON.stringify(e.props,null,2)}), it's not expected. Please report a bug if it happens.`);return}e.props=e.props.map(t=>t.indexOf(":global(")===-1?t:cf(t).reduce((r,o,i,n)=>{if(o==="")return r;if(o===":"&&n[i+1]==="global"){const s=n[i+2].slice(1,-1)+" ";return r.unshift(s),n[i+1]="",n[i+2]="",r}return r.push(o),r},[]).join(""))}};function Zi(e,t,r){switch(nf(e,t)){case 5103:return Ze+"print-"+e+e;case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:return Ze+e+e;case 4215:if(je(e,9)===102||je(e,t+1)===116)return Ze+e+e;break;case 4789:return kr+e+e;case 5349:case 4246:case 6968:return Ze+e+kr+e+e;case 6187:if(!Di(e,/grab/))return Oe(Oe(Oe(e,/(zoom-|grab)/,Ze+"$1"),/(image-set)/,Ze+"$1"),e,"")+e;case 5495:case 3959:return Oe(e,/(image-set\([^]*)/,Ze+"$1$`$1");case 4095:case 3583:case 4068:case 2532:return Oe(e,/(.+)-inline(.+)/,Ze+"$1$2")+e;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(tt(e)-1-t>6)switch(je(e,t+1)){case 102:if(je(e,t+3)===108)return Oe(e,/(.+:)(.+)-([^]+)/,"$1"+Ze+"$2-$3$1"+kr+(je(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~Oi(e,"stretch")?Zi(Oe(e,"stretch","fill-available"),t)+e:e}break}return e}function Yi(e,t,r,o){if(e.length>-1&&!e.return)switch(e.type){case Go:e.return=Zi(e.value,e.length);return;case $r:if(e.length)return af(e.props,function(i){switch(Di(i,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Xt([Xo(e,{props:[Oe(i,/:(read-\w+)/,":"+kr+"$1")]})],o);case"::placeholder":return Xt([Xo(e,{props:[Oe(i,/:(plac\w+)/,":"+Ze+"input-$1")]}),Xo(e,{props:[Oe(i,/:(plac\w+)/,":"+kr+"$1")]})],o)}return""})}}function pf(e){switch(e.type){case"@container":case Qu:case ef:case qi:return!0}return!1}const mf=e=>{pf(e)&&Array.isArray(e.children)&&e.children.sort((t,r)=>t.props[0]>r.props[0]?1:-1)};function bf(){}function yf(e,t){const r=[];return Xt($i(e),Xi([gf,t?mf:bf,Yi,Gi,Ki(o=>r.push(o))])),r}const wf=/,( *[^ &])/g;function kf(e){return"&"+Ri(e.replace(wf,",&$1"))}function Qi(e,t,r){let o=t;return r.length>0&&(o=r.reduceRight((i,n)=>`${kf(n)} { ${i} }`,t)),`${e}{${o}}`}function Ji(e){const{className:t,media:r,layer:o,selectors:i,support:n,property:s,rtlClassName:l,rtlProperty:u,rtlValue:a,value:c,container:f}=e,v=`.${t}`,d=Array.isArray(c)?`${c.map(m=>`${wr(s)}: ${m}`).join(";")};`:`${wr(s)}: ${c};`;let h=Qi(v,d,i);if(u&&l){const m=`.${l}`,k=Array.isArray(a)?`${a.map(b=>`${wr(u)}: ${b}`).join(";")};`:`${wr(u)}: ${a};`;h+=Qi(m,k,i)}return r&&(h=`@media ${r} { ${h} }`),o&&(h=`@layer ${o} { ${h} }`),n&&(h=`@supports ${n} { ${h} }`),f&&(h=`@container ${f} { ${h} }`),yf(h,!0)}function xf(e){let t="";for(const r in e){const o=e[r];typeof o!="string"&&typeof o!="number"||(t+=wr(r)+":"+o+";")}return t}function ea(e){let t="";for(const r in e)t+=`${r}{${xf(e[r])}}`;return t}function ta(e,t){const r=`@keyframes ${e} {${t}}`,o=[];return Xt($i(r),Xi([Gi,Yi,Ki(i=>o.push(i))])),o}function ra(e,t){return e.length===0?t:`${e} and ${t}`}function Bf(e){return e.substr(0,6)==="@media"}function _f(e){return e.substr(0,6)==="@layer"}const Pf=/^(:|\[|>|&)/;function Sf(e){return Pf.test(e)}function Cf(e){return e.substr(0,9)==="@supports"}function zf(e){return e.substring(0,10)==="@container"}function Tf(e){return e!=null&&typeof e=="object"&&Array.isArray(e)===!1}const oa={"us-w":"w","us-v":"i",nk:"l",si:"v",cu:"f",ve:"h",ti:"a"};function na(e,t,r,o,i){if(r)return"m";if(t||o)return"t";if(i)return"c";if(e.length>0){const n=e[0].trim();if(n.charCodeAt(0)===58)return oa[n.slice(4,8)]||oa[n.slice(3,5)]||"d"}return"d"}function Jr({container:e,media:t,layer:r,property:o,selector:i,support:n,value:s}){const l=Ct(i+e+t+r+n+o+s.trim());return Lo+l}function ia(e,t,r,o,i){const n=e+t+r+o+i,s=Ct(n),l=s.charCodeAt(0);return l>=48&&l<=57?String.fromCharCode(l+17)+s.slice(1):s}function aa(e){return e.replace(/>\s+/g,">")}function sa(...e){process.env.NODE_ENV!=="production"&&typeof document<"u"&&console.error(...e)}function Nf(e,t){const r=JSON.stringify(t,null,2),o=["@griffel/react: A rule was not resolved to CSS properly. Please check your `makeStyles` or `makeResetStyles` calls for following:"," ".repeat(2)+"makeStyles({"," ".repeat(4)+"[slot]: {"," ".repeat(6)+`"${e}": ${r.split(`
|
|
31
|
+
`).map((i,n)=>" ".repeat(n===0?0:6)+i).join(`
|
|
32
|
+
`)}`," ".repeat(4)+"}"," ".repeat(2)+"})",""];e.indexOf("&")===-1?(o.push("It looks that you're are using a nested selector, but it is missing an ampersand placeholder where the generated class name should be injected."),o.push(`Try to update a property to include it i.e "${e}" => "&${e}".`)):(o.push(""),o.push("If it's not obvious what triggers a problem, please report an issue at https://github.com/microsoft/griffel/issues")),sa(o.join(`
|
|
33
|
+
`))}function Ef(e,t){sa([`@griffel/react: You are using unsupported shorthand CSS property "${e}". Please check your "makeStyles" calls, there *should not* be following:`," ".repeat(2)+"makeStyles({"," ".repeat(4)+`[slot]: { ${e}: "${t}" }`," ".repeat(2)+"})","","Learn why CSS shorthands are not supported: https://aka.ms/griffel-css-shorthands"].join(`
|
|
34
|
+
`))}function la(e,t,r,o){e[t]=o?[r,o]:r}function ca(e,t){return t?[e,t]:e}function Zo(e,t,r,o,i){var n;let s;t==="m"&&i&&(s={m:i}),(n=e[t])!==null&&n!==void 0||(e[t]=[]),r&&e[t].push(ca(r,s)),o&&e[t].push(ca(o,s))}function Nt(e,t=[],r="",o="",i="",n="",s={},l={},u){for(const a in e){if(du.hasOwnProperty(a)){Ef(a,e[a]);continue}const c=e[a];if(c!=null){if(typeof c=="string"||typeof c=="number"){const f=aa(t.join("")),v=ia(f,n,r,i,a),d=Jr({container:n,media:r,layer:o,value:c.toString(),support:i,selector:f,property:a}),h=u&&{key:a,value:u}||Wo(a,c),m=h.key!==a||h.value!==c,k=m?Jr({container:n,value:h.value.toString(),property:h.key,selector:f,media:r,layer:o,support:i}):void 0,b=m?{rtlClassName:k,rtlProperty:h.key,rtlValue:h.value}:void 0,y=na(t,o,r,i,n),[P,x]=Ji({className:d,media:r,layer:o,selectors:t,property:a,support:i,container:n,value:c,...b});la(s,v,d,k),Zo(l,y,P,x,r)}else if(a==="animationName"){const f=Array.isArray(c)?c:[c],v=[],d=[];for(const h of f){const m=ea(h),k=ea(ji(h)),b=Lo+Ct(m);let y;const P=ta(b,m);let x=[];m===k?y=b:(y=Lo+Ct(k),x=ta(y,k));for(let S=0;S<P.length;S++)Zo(l,"k",P[S],x[S],r);v.push(b),d.push(y)}Nt({animationName:v.join(", ")},t,r,o,i,n,s,l,d.join(", "))}else if(Array.isArray(c)){if(c.length===0){process.env.NODE_ENV!=="production"&&console.warn(`makeStyles(): An empty array was passed as input to "${a}", the property will be omitted in the styles.`);continue}const f=aa(t.join("")),v=ia(f,n,r,i,a),d=Jr({container:n,media:r,layer:o,value:c.map(w=>(w??"").toString()).join(";"),support:i,selector:f,property:a}),h=c.map(w=>Wo(a,w));if(!!h.some(w=>w.key!==h[0].key)){process.env.NODE_ENV!=="production"&&console.error("makeStyles(): mixing CSS fallback values which result in multiple CSS properties in RTL is not supported.");continue}const k=h[0].key!==a||h.some((w,_)=>w.value!==c[_]),b=k?Jr({container:n,value:h.map(w=>{var _;return((_=w==null?void 0:w.value)!==null&&_!==void 0?_:"").toString()}).join(";"),property:h[0].key,selector:f,layer:o,media:r,support:i}):void 0,y=k?{rtlClassName:b,rtlProperty:h[0].key,rtlValue:h.map(w=>w.value)}:void 0,P=na(t,o,r,i,n),[x,S]=Ji({className:d,media:r,layer:o,selectors:t,property:a,support:i,container:n,value:c,...y});la(s,v,d,b),Zo(l,P,x,S,r)}else if(Tf(c))if(Sf(a))Nt(c,t.concat(Ri(a)),r,o,i,n,s,l);else if(Bf(a)){const f=ra(r,a.slice(6).trim());Nt(c,t,f,o,i,n,s,l)}else if(_f(a)){const f=(o?`${o}.`:"")+a.slice(6).trim();Nt(c,t,r,f,i,n,s,l)}else if(Cf(a)){const f=ra(i,a.slice(9).trim());Nt(c,t,r,o,f,n,s,l)}else if(zf(a)){const f=a.slice(10).trim();Nt(c,t,r,o,i,f,s,l)}else Nf(a,c)}}return[s,l]}function jf(e){const t={},r={};for(const o in e){const i=e[o],[n,s]=Nt(i);t[o]=n,Object.keys(s).forEach(l=>{r[l]=(r[l]||[]).concat(s[l])})}return[t,r]}function Rf(e,t=$o){const r=t();let o=null,i=null,n=null,s=null,l;process.env.NODE_ENV!=="production"&&Wt&&(l=Si());function u(a){const{dir:c,renderer:f}=a;o===null&&([o,i]=jf(e));const v=c==="ltr";v?n===null&&(n=Mr(o,c)):s===null&&(s=Mr(o,c)),r(f,i);const d=v?n:s;return process.env.NODE_ENV!=="production"&&Wt&&$t.addSequenceDetails(d,l),d}return u}function Ff(e,t,r=$o){const o=r();let i=null,n=null,s;process.env.NODE_ENV!=="production"&&Wt&&(s=Si());function l(u){const{dir:a,renderer:c}=u,f=a==="ltr";f?i===null&&(i=Mr(e,a)):n===null&&(n=Mr(e,a)),o(c,t);const v=f?i:n;return process.env.NODE_ENV!=="production"&&Wt&&$t.addSequenceDetails(v,s),v}return l}function qf(e,t,r,o=$o){const i=o();function n(s){const{dir:l,renderer:u}=s,a=l==="ltr"?e:t||e;return i(u,Array.isArray(r)?{r}:r),process.env.NODE_ENV!=="production"&&(vi[a]=1),a}return n}const eo={border:Ec,borderLeft:jc,borderBottom:Rc,borderRight:Fc,borderTop:qc,borderColor:Ao,borderStyle:qo,borderRadius:Ac,borderWidth:Fo,flex:Lc,gap:Hc,gridArea:Gc,margin:Xc,marginBlock:Kc,marginInline:Zc,padding:Yc,paddingBlock:Qc,paddingInline:Jc,overflow:eu,inset:tu,outline:ru,transition:ou,textDecoration:su};function Af(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}const ua=p.useInsertionEffect?p.useInsertionEffect:void 0,Yo=()=>{const e={};return function(r,o){if(ua&&Af()){ua(()=>{r.insertCSSRules(o)},[r,o]);return}e[r.id]===void 0&&(r.insertCSSRules(o),e[r.id]=!0)}},Df=p.createContext(Bu());function Qo(){return p.useContext(Df)}const Of=p.createContext("ltr");function Jo(){return p.useContext(Of)}function If(){try{const e=p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher.current;return e==null?!1:(e.useContext({}),!0)}catch{return!1}}function fa(e){const t=Rf(e,Yo);if(process.env.NODE_ENV!=="production"&&If())throw new Error(["makeStyles(): this function cannot be called in component's scope.","All makeStyles() calls should be top level i.e. in a root scope of a file."].join(" "));return function(){const o=Jo(),i=Qo();return t({dir:o,renderer:i})}}function U(e,t){const r=Ff(e,t,Yo);return function(){const i=Jo(),n=Qo();return r({dir:i,renderer:n})}}function Re(e,t,r){const o=qf(e,t,r,Yo);return function(){const n=Jo(),s=Qo();return o({dir:n,renderer:s})}}const da=Symbol("fui.slotRenderFunction"),Kt=Symbol("fui.slotElementType");function me(e,t){const{defaultProps:r,elementType:o}=t,i=ha(e),n={...r,...i,[Kt]:o};return i&&typeof i.children=="function"&&(n[da]=i.children,n.children=r==null?void 0:r.children),n}function J(e,t){if(!(e===null||e===void 0&&!t.renderByDefault))return me(e,t)}function ha(e){return typeof e=="string"||typeof e=="number"||Array.isArray(e)||p.isValidElement(e)?{children:e}:(e&&typeof e!="object"&&process.env.NODE_ENV!=="production"&&console.error(`@fluentui/react-utilities [slot.${ha.name}]:
|
|
35
|
+
A slot got an invalid value "${e}" (${typeof e}).
|
|
36
|
+
A valid value for a slot is a slot shorthand or slot properties object.
|
|
37
|
+
Slot shorthands can be strings, numbers, arrays or JSX elements`),e)}function en(e){return!!(e!=null&&e.hasOwnProperty(Kt))}const Mf=(e,t)=>J(e,{...t,renderByDefault:t==null?void 0:t.required,elementType:void 0});function ke(e){if(process.env.NODE_ENV!=="production"){const t=e;for(const r of Object.keys(t.components)){const o=t[r];if(o!==void 0)if(!en(o))t[r]=me(o,{elementType:t.components[r]}),console.warn(`@fluentui/react-utilities [${ke.name}]:
|
|
38
|
+
"state.${r}" is not a slot!
|
|
39
|
+
Be sure to create slots properly by using "slot.always" or "slot.optional".`);else{const{[Kt]:i}=o;i!==t.components[r]&&(o[Kt]=t.components[r],console.warn(`@fluentui/react-utilities [${ke.name}]:
|
|
40
|
+
"state.${r}" element type differs from "state.components.${r}",
|
|
41
|
+
${i} !== ${t.components[r]}.
|
|
42
|
+
Be sure to create slots properly by using "slot.always" or "slot.optional" with the correct elementType.`))}}}}const ue=(...e)=>{const t={};for(const r of e){const o=Array.isArray(r)?r:Object.keys(r);for(const i of o)t[i]=1}return t},Lf=ue(["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"]),Hf=ue(["accessKey","children","className","contentEditable","dir","draggable","hidden","htmlFor","id","lang","ref","role","style","tabIndex","title","translate","spellCheck","name"]),Vf=ue(["itemID","itemProp","itemRef","itemScope","itemType"]),ye=ue(Hf,Lf,Vf),$f=ue(ye,["form"]),va=ue(ye,["height","loop","muted","preload","src","width"]),Wf=ue(va,["poster"]),Uf=ue(ye,["start"]),Gf=ue(ye,["value"]),Xf=ue(ye,["download","href","hrefLang","media","rel","target","type"]),Kf=ue(ye,["dateTime"]),to=ue(ye,["autoFocus","disabled","form","formAction","formEncType","formMethod","formNoValidate","formTarget","type","value"]),Zf=ue(to,["accept","alt","autoCapitalize","autoComplete","checked","dirname","form","height","inputMode","list","max","maxLength","min","multiple","pattern","placeholder","readOnly","required","src","step","size","type","value","width"]),Yf=ue(to,["autoCapitalize","cols","dirname","form","maxLength","placeholder","readOnly","required","rows","wrap"]),Qf=ue(to,["form","multiple","required"]),Jf=ue(ye,["selected","value"]),ed=ue(ye,["cellPadding","cellSpacing"]),td=ye,rd=ue(ye,["colSpan","rowSpan","scope"]),od=ue(ye,["colSpan","headers","rowSpan","scope"]),nd=ue(ye,["span"]),id=ue(ye,["span"]),ad=ue(ye,["disabled","form"]),sd=ue(ye,["acceptCharset","action","encType","encType","method","noValidate","target"]),ld=ue(ye,["allow","allowFullScreen","allowPaymentRequest","allowTransparency","csp","height","importance","referrerPolicy","sandbox","src","srcDoc","width"]),cd=ue(ye,["alt","crossOrigin","height","src","srcSet","useMap","width"]),ud=ue(ye,["open","onCancel","onClose"]);function fd(e,t,r){const o=Array.isArray(t),i={},n=Object.keys(e);for(const s of n)(!o&&t[s]||o&&t.indexOf(s)>=0||s.indexOf("data-")===0||s.indexOf("aria-")===0)&&(!r||(r==null?void 0:r.indexOf(s))===-1)&&(i[s]=e[s]);return i}const dd={label:$f,audio:va,video:Wf,ol:Uf,li:Gf,a:Xf,button:to,input:Zf,textarea:Yf,select:Qf,option:Jf,table:ed,tr:td,th:rd,td:od,colGroup:nd,col:id,fieldset:ad,form:sd,iframe:ld,img:cd,time:Kf,dialog:ud};function ga(e,t,r){const o=e&&dd[e]||ye;return o.as=1,fd(t,o,r)}const pa=({primarySlotTagName:e,props:t,excludedPropNames:r})=>({root:{style:t.style,className:t.className},primary:ga(e,t,[...r||[],"style","className"])}),Fe=(e,t,r)=>{var o;return ga((o=t.as)!==null&&o!==void 0?o:e,t,r)};function tn(){return typeof window<"u"&&!!(window.document&&window.document.createElement)}function hd(e,t){const r=p.useRef(void 0),o=p.useCallback((n,s)=>(r.current!==void 0&&t(r.current),r.current=e(n,s),r.current),[t,e]),i=p.useCallback(()=>{r.current!==void 0&&(t(r.current),r.current=void 0)},[t]);return p.useEffect(()=>i,[i]),[o,i]}function vd(e){return typeof e=="function"}const Zt=e=>{const[t,r]=p.useState(()=>e.defaultState===void 0?e.initialState:gd(e.defaultState)?e.defaultState():e.defaultState),o=p.useRef(e.state);p.useEffect(()=>{o.current=e.state},[e.state]);const i=p.useCallback(n=>{vd(n)&&n(o.current)},[]);return pd(e.state)?[e.state,i]:[t,r]};function gd(e){return typeof e=="function"}const pd=e=>{const[t]=p.useState(()=>e!==void 0);return process.env.NODE_ENV!=="production"&&p.useEffect(()=>{if(t!==(e!==void 0)){const r=new Error,o=t?"a controlled value to be uncontrolled":"an uncontrolled value to be controlled",i=t?"defined to an undefined":"undefined to a defined";console.error(`@fluentui/react-utilities [${Zt.name}]:
|
|
43
|
+
A component is changing ${o}. This is likely caused by the value changing from ${i} value, which should not happen.
|
|
44
|
+
Decide between using a controlled or uncontrolled input element for the lifetime of the component.
|
|
45
|
+
More info: https://reactjs.org/link/controlled-components
|
|
46
|
+
${r.stack}`)}},[t,e]),t},md={current:0},bd=p.createContext(void 0);function yd(){var e;return(e=p.useContext(bd))!==null&&e!==void 0?e:md}const Et=tn()?p.useLayoutEffect:p.useEffect,qe=e=>{const t=p.useRef(()=>{throw new Error("Cannot call an event handler while rendering")});return Et(()=>{t.current=e},[e]),p.useCallback((...r)=>{const o=t.current;return o(...r)},[t])};function wd(){const e=p.useRef(!0);return e.current?(e.current=!1,!0):e.current}const ma=p.createContext(void 0);ma.Provider;function kd(){return p.useContext(ma)||""}function jt(e="fui-",t){const r=yd(),o=kd(),i=p.useId;if(i){const n=i(),s=p.useMemo(()=>n.replace(/:/g,""),[n]);return t||`${o}${e}${s}`}return p.useMemo(()=>t||`${o}${e}${++r.current}`,[o,e,t,r])}function rt(...e){const t=p.useCallback(r=>{t.current=r;for(const o of e)typeof o=="function"?o(r):o&&(o.current=r)},[...e]);return t}function xd(){return hd(setTimeout,clearTimeout)}function xe(e,t){return(...r)=>{e==null||e(...r),t==null||t(...r)}}function Rt(e,t){var r;const o=e;var i;return!!(!(o==null||(r=o.ownerDocument)===null||r===void 0)&&r.defaultView&&o instanceof o.ownerDocument.defaultView[(i=t==null?void 0:t.constructorName)!==null&&i!==void 0?i:"HTMLElement"])}function Bd(e){return e&&!!e._virtual}function _d(e){return Bd(e)&&e._virtual.parent||null}function Pd(e,t={}){if(!e)return null;if(!t.skipVirtual){const r=_d(e);if(r)return r}return(e==null?void 0:e.parentNode)||null}function ba(e,t){if(!e)return;const r=e;r._virtual||(r._virtual={}),r._virtual.parent=t}function Sd(e,t){return{...t,[Kt]:e}}var rn={exports:{}},se={};/** @license React v17.0.2
|
|
47
|
+
* react-is.development.js
|
|
48
|
+
*
|
|
49
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
50
|
+
*
|
|
51
|
+
* This source code is licensed under the MIT license found in the
|
|
52
|
+
* LICENSE file in the root directory of this source tree.
|
|
53
|
+
*/var ya;function Cd(){return ya||(ya=1,process.env.NODE_ENV!=="production"&&function(){var e=60103,t=60106,r=60107,o=60108,i=60114,n=60109,s=60110,l=60112,u=60113,a=60120,c=60115,f=60116,v=60121,d=60122,h=60117,m=60129,k=60131;if(typeof Symbol=="function"&&Symbol.for){var b=Symbol.for;e=b("react.element"),t=b("react.portal"),r=b("react.fragment"),o=b("react.strict_mode"),i=b("react.profiler"),n=b("react.provider"),s=b("react.context"),l=b("react.forward_ref"),u=b("react.suspense"),a=b("react.suspense_list"),c=b("react.memo"),f=b("react.lazy"),v=b("react.block"),d=b("react.server.block"),h=b("react.fundamental"),b("react.scope"),b("react.opaque.id"),m=b("react.debug_trace_mode"),b("react.offscreen"),k=b("react.legacy_hidden")}var y=!1;function P(T){return!!(typeof T=="string"||typeof T=="function"||T===r||T===i||T===m||T===o||T===u||T===a||T===k||y||typeof T=="object"&&T!==null&&(T.$$typeof===f||T.$$typeof===c||T.$$typeof===n||T.$$typeof===s||T.$$typeof===l||T.$$typeof===h||T.$$typeof===v||T[0]===d))}function x(T){if(typeof T=="object"&&T!==null){var ie=T.$$typeof;switch(ie){case e:var _e=T.type;switch(_e){case r:case i:case o:case u:case a:return _e;default:var Ne=_e&&_e.$$typeof;switch(Ne){case s:case l:case f:case c:case n:return Ne;default:return ie}}case t:return ie}}}var S=s,w=n,_=e,F=l,R=r,V=f,G=c,O=t,B=i,L=o,Y=u,te=!1,ne=!1;function ae(T){return te||(te=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 18+.")),!1}function de(T){return ne||(ne=!0,console.warn("The ReactIs.isConcurrentMode() alias has been deprecated, and will be removed in React 18+.")),!1}function Le(T){return x(T)===s}function N(T){return x(T)===n}function I(T){return typeof T=="object"&&T!==null&&T.$$typeof===e}function q(T){return x(T)===l}function re(T){return x(T)===r}function he(T){return x(T)===f}function Se(T){return x(T)===c}function Ce(T){return x(T)===t}function ve(T){return x(T)===i}function ge(T){return x(T)===o}function Q(T){return x(T)===u}se.ContextConsumer=S,se.ContextProvider=w,se.Element=_,se.ForwardRef=F,se.Fragment=R,se.Lazy=V,se.Memo=G,se.Portal=O,se.Profiler=B,se.StrictMode=L,se.Suspense=Y,se.isAsyncMode=ae,se.isConcurrentMode=de,se.isContextConsumer=Le,se.isContextProvider=N,se.isElement=I,se.isForwardRef=q,se.isFragment=re,se.isLazy=he,se.isMemo=Se,se.isPortal=Ce,se.isProfiler=ve,se.isStrictMode=ge,se.isSuspense=Q,se.isValidElementType=P,se.typeOf=x}()),se}var le={};/** @license React v17.0.2
|
|
54
|
+
* react-is.production.min.js
|
|
55
|
+
*
|
|
56
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
57
|
+
*
|
|
58
|
+
* This source code is licensed under the MIT license found in the
|
|
59
|
+
* LICENSE file in the root directory of this source tree.
|
|
60
|
+
*/var wa;function zd(){if(wa)return le;wa=1;var e=60103,t=60106,r=60107,o=60108,i=60114,n=60109,s=60110,l=60112,u=60113,a=60120,c=60115,f=60116,v=60121,d=60122,h=60117,m=60129,k=60131;if(typeof Symbol=="function"&&Symbol.for){var b=Symbol.for;e=b("react.element"),t=b("react.portal"),r=b("react.fragment"),o=b("react.strict_mode"),i=b("react.profiler"),n=b("react.provider"),s=b("react.context"),l=b("react.forward_ref"),u=b("react.suspense"),a=b("react.suspense_list"),c=b("react.memo"),f=b("react.lazy"),v=b("react.block"),d=b("react.server.block"),h=b("react.fundamental"),m=b("react.debug_trace_mode"),k=b("react.legacy_hidden")}function y(B){if(typeof B=="object"&&B!==null){var L=B.$$typeof;switch(L){case e:switch(B=B.type,B){case r:case i:case o:case u:case a:return B;default:switch(B=B&&B.$$typeof,B){case s:case l:case f:case c:case n:return B;default:return L}}case t:return L}}}var P=n,x=e,S=l,w=r,_=f,F=c,R=t,V=i,G=o,O=u;return le.ContextConsumer=s,le.ContextProvider=P,le.Element=x,le.ForwardRef=S,le.Fragment=w,le.Lazy=_,le.Memo=F,le.Portal=R,le.Profiler=V,le.StrictMode=G,le.Suspense=O,le.isAsyncMode=function(){return!1},le.isConcurrentMode=function(){return!1},le.isContextConsumer=function(B){return y(B)===s},le.isContextProvider=function(B){return y(B)===n},le.isElement=function(B){return typeof B=="object"&&B!==null&&B.$$typeof===e},le.isForwardRef=function(B){return y(B)===l},le.isFragment=function(B){return y(B)===r},le.isLazy=function(B){return y(B)===f},le.isMemo=function(B){return y(B)===c},le.isPortal=function(B){return y(B)===t},le.isProfiler=function(B){return y(B)===i},le.isStrictMode=function(B){return y(B)===o},le.isSuspense=function(B){return y(B)===u},le.isValidElementType=function(B){return typeof B=="string"||typeof B=="function"||B===r||B===i||B===m||B===o||B===u||B===a||B===k||typeof B=="object"&&B!==null&&(B.$$typeof===f||B.$$typeof===c||B.$$typeof===n||B.$$typeof===s||B.$$typeof===l||B.$$typeof===h||B.$$typeof===v||B[0]===d)},le.typeOf=y,le}process.env.NODE_ENV==="production"?rn.exports=zd():rn.exports=Cd();var Td=rn.exports;function Nd(e){process.env.NODE_ENV==="development"&&typeof e=="object"&&!Td.isValidElementType(e)&&console.error(`@fluentui/react-jsx-runtime:
|
|
61
|
+
Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: ${e}.
|
|
45
62
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
***************************************************************************** */var ur=function(n,t){return ur=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,r){e.__proto__=r}||function(e,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])},ur(n,t)};function ge(n,t){ur(n,t);function e(){this.constructor=n}n.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}var Q=function(){return Q=Object.assign||function(t){for(var e,r=1,i=arguments.length;r<i;r++){e=arguments[r];for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o])}return t},Q.apply(this,arguments)};function U(n,t,e,r){function i(o){return o instanceof e?o:new e(function(s){s(o)})}return new(e||(e=Promise))(function(o,s){function c(u){try{a(r.next(u))}catch(d){s(d)}}function l(u){try{a(r.throw(u))}catch(d){s(d)}}function a(u){u.done?o(u.value):i(u.value).then(c,l)}a((r=r.apply(n,t||[])).next())})}function H(n,t){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(a){return function(u){return l([a,u])}}function l(a){if(r)throw new TypeError("Generator is already executing.");for(;e;)try{if(r=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return e.label++,{value:a[1],done:!1};case 5:e.label++,i=a[1],a=[0];continue;case 7:a=e.ops.pop(),e.trys.pop();continue;default:if(o=e.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){e.label=a[1];break}if(a[0]===6&&e.label<o[1]){e.label=o[1],o=a;break}if(o&&e.label<o[2]){e.label=o[2],e.ops.push(a);break}o[2]&&e.ops.pop(),e.trys.pop();continue}a=t.call(n,e)}catch(u){a=[6,u],i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}}function Dt(){for(var n=0,t=0,e=arguments.length;t<e;t++)n+=arguments[t].length;for(var r=Array(n),i=0,t=0;t<e;t++)for(var o=arguments[t],s=0,c=o.length;s<c;s++,i++)r[i]=o[s];return r}/*! @azure/msal-common v13.3.1 2023-10-27 */var f={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"},Et=[f.OPENID_SCOPE,f.PROFILE_SCOPE,f.OFFLINE_ACCESS_SCOPE],Wr=Dt(Et,[f.EMAIL_SCOPE]),Ce;(function(n){n.CONTENT_TYPE="Content-Type",n.RETRY_AFTER="Retry-After",n.CCS_HEADER="X-AnchorMailbox",n.WWWAuthenticate="WWW-Authenticate",n.AuthenticationInfo="Authentication-Info",n.X_MS_REQUEST_ID="x-ms-request-id",n.X_MS_HTTP_VERSION="x-ms-httpver"})(Ce||(Ce={}));var re;(function(n){n.ID_TOKEN="idtoken",n.CLIENT_INFO="client.info",n.ADAL_ID_TOKEN="adal.idtoken",n.ERROR="error",n.ERROR_DESC="error.description",n.ACTIVE_ACCOUNT="active-account",n.ACTIVE_ACCOUNT_FILTERS="active-account-filters"})(re||(re={}));var je;(function(n){n.COMMON="common",n.ORGANIZATIONS="organizations",n.CONSUMERS="consumers"})(je||(je={}));var x;(function(n){n.CLIENT_ID="client_id",n.REDIRECT_URI="redirect_uri",n.RESPONSE_TYPE="response_type",n.RESPONSE_MODE="response_mode",n.GRANT_TYPE="grant_type",n.CLAIMS="claims",n.SCOPE="scope",n.ERROR="error",n.ERROR_DESCRIPTION="error_description",n.ACCESS_TOKEN="access_token",n.ID_TOKEN="id_token",n.REFRESH_TOKEN="refresh_token",n.EXPIRES_IN="expires_in",n.STATE="state",n.NONCE="nonce",n.PROMPT="prompt",n.SESSION_STATE="session_state",n.CLIENT_INFO="client_info",n.CODE="code",n.CODE_CHALLENGE="code_challenge",n.CODE_CHALLENGE_METHOD="code_challenge_method",n.CODE_VERIFIER="code_verifier",n.CLIENT_REQUEST_ID="client-request-id",n.X_CLIENT_SKU="x-client-SKU",n.X_CLIENT_VER="x-client-VER",n.X_CLIENT_OS="x-client-OS",n.X_CLIENT_CPU="x-client-CPU",n.X_CLIENT_CURR_TELEM="x-client-current-telemetry",n.X_CLIENT_LAST_TELEM="x-client-last-telemetry",n.X_MS_LIB_CAPABILITY="x-ms-lib-capability",n.X_APP_NAME="x-app-name",n.X_APP_VER="x-app-ver",n.POST_LOGOUT_URI="post_logout_redirect_uri",n.ID_TOKEN_HINT="id_token_hint",n.DEVICE_CODE="device_code",n.CLIENT_SECRET="client_secret",n.CLIENT_ASSERTION="client_assertion",n.CLIENT_ASSERTION_TYPE="client_assertion_type",n.TOKEN_TYPE="token_type",n.REQ_CNF="req_cnf",n.OBO_ASSERTION="assertion",n.REQUESTED_TOKEN_USE="requested_token_use",n.ON_BEHALF_OF="on_behalf_of",n.FOCI="foci",n.CCS_HEADER="X-AnchorMailbox",n.RETURN_SPA_CODE="return_spa_code",n.NATIVE_BROKER="nativebroker",n.LOGOUT_HINT="logout_hint"})(x||(x={}));var nt;(function(n){n.ACCESS_TOKEN="access_token",n.XMS_CC="xms_cc"})(nt||(nt={}));var ue={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},_t;(function(n){n.ACCOUNT="account",n.SID="sid",n.LOGIN_HINT="login_hint",n.ID_TOKEN="id_token",n.DOMAIN_HINT="domain_hint",n.ORGANIZATIONS="organizations",n.CONSUMERS="consumers",n.ACCOUNT_ID="accountIdentifier",n.HOMEACCOUNT_ID="homeAccountIdentifier"})(_t||(_t={}));var Jr={PLAIN:"plain",S256:"S256"},Lt;(function(n){n.QUERY="query",n.FRAGMENT="fragment",n.FORM_POST="form_post"})(Lt||(Lt={}));var xt;(function(n){n.IMPLICIT_GRANT="implicit",n.AUTHORIZATION_CODE_GRANT="authorization_code",n.CLIENT_CREDENTIALS_GRANT="client_credentials",n.RESOURCE_OWNER_PASSWORD_GRANT="password",n.REFRESH_TOKEN_GRANT="refresh_token",n.DEVICE_CODE_GRANT="device_code",n.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"})(xt||(xt={}));var Ue;(function(n){n.MSSTS_ACCOUNT_TYPE="MSSTS",n.ADFS_ACCOUNT_TYPE="ADFS",n.MSAV1_ACCOUNT_TYPE="MSA",n.GENERIC_ACCOUNT_TYPE="Generic"})(Ue||(Ue={}));var ne;(function(n){n.CACHE_KEY_SEPARATOR="-",n.CLIENT_INFO_SEPARATOR="."})(ne||(ne={}));var M;(function(n){n.ID_TOKEN="IdToken",n.ACCESS_TOKEN="AccessToken",n.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",n.REFRESH_TOKEN="RefreshToken"})(M||(M={}));var He;(function(n){n[n.ADFS=1001]="ADFS",n[n.MSA=1002]="MSA",n[n.MSSTS=1003]="MSSTS",n[n.GENERIC=1004]="GENERIC",n[n.ACCESS_TOKEN=2001]="ACCESS_TOKEN",n[n.REFRESH_TOKEN=2002]="REFRESH_TOKEN",n[n.ID_TOKEN=2003]="ID_TOKEN",n[n.APP_METADATA=3001]="APP_METADATA",n[n.UNDEFINED=9999]="UNDEFINED"})(He||(He={}));var lr="appmetadata",uo="client_info",Tt="1",wt={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},we;(function(n){n.CONFIG="config",n.CACHE="cache",n.NETWORK="network",n.HARDCODED_VALUES="hardcoded_values"})(we||(we={}));var ae={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"},V;(function(n){n.BEARER="Bearer",n.POP="pop",n.SSH="ssh-cert"})(V||(V={}));var It={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},Xr={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},Ft;(function(n){n.username="username",n.password="password"})(Ft||(Ft={}));var ot;(function(n){n[n.httpSuccess=200]="httpSuccess",n[n.httpBadRequest=400]="httpBadRequest"})(ot||(ot={}));var Ke;(function(n){n.FAILED_AUTO_DETECTION="1",n.INTERNAL_CACHE="2",n.ENVIRONMENT_VARIABLE="3",n.IMDS="4"})(Ke||(Ke={}));var St;(function(n){n.CONFIGURED_MATCHES_DETECTED="1",n.CONFIGURED_NO_AUTO_DETECTION="2",n.CONFIGURED_NOT_DETECTED="3",n.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",n.AUTO_DETECTION_REQUESTED_FAILED="5"})(St||(St={}));var qe;(function(n){n.NO_CACHE_HIT="0",n.FORCE_REFRESH="1",n.NO_CACHED_ACCESS_TOKEN="2",n.CACHED_ACCESS_TOKEN_EXPIRED="3",n.REFRESH_CACHED_ACCESS_TOKEN="4",n.CLAIMS_REQUESTED_CACHE_SKIPPED="5"})(qe||(qe={}));var dr;(function(n){n.Jwt="JWT",n.Jwk="JWK",n.Pop="pop"})(dr||(dr={}));/*! @azure/msal-common v13.3.1 2023-10-27 */var Bt={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."}},N=function(n){ge(t,n);function t(e,r,i){var o=this,s=r?e+": "+r:e;return o=n.call(this,s)||this,Object.setPrototypeOf(o,t.prototype),o.errorCode=e||f.EMPTY_STRING,o.errorMessage=r||f.EMPTY_STRING,o.subError=i||f.EMPTY_STRING,o.name="AuthError",o}return t.prototype.setCorrelationId=function(e){this.correlationId=e},t.createUnexpectedError=function(e){return new t(Bt.unexpectedError.code,Bt.unexpectedError.desc+": "+e)},t.createPostRequestFailed=function(e){return new t(Bt.postRequestFailed.code,Bt.postRequestFailed.desc+": "+e)},t}(Error);/*! @azure/msal-common v13.3.1 2023-10-27 */var Kt={createNewGuid:function(){var n="Crypto interface - createNewGuid() has not been implemented";throw N.createUnexpectedError(n)},base64Decode:function(){var n="Crypto interface - base64Decode() has not been implemented";throw N.createUnexpectedError(n)},base64Encode:function(){var n="Crypto interface - base64Encode() has not been implemented";throw N.createUnexpectedError(n)},generatePkceCodes:function(){return U(this,void 0,void 0,function(){var n;return H(this,function(t){throw n="Crypto interface - generatePkceCodes() has not been implemented",N.createUnexpectedError(n)})})},getPublicKeyThumbprint:function(){return U(this,void 0,void 0,function(){var n;return H(this,function(t){throw n="Crypto interface - getPublicKeyThumbprint() has not been implemented",N.createUnexpectedError(n)})})},removeTokenBindingKey:function(){return U(this,void 0,void 0,function(){var n;return H(this,function(t){throw n="Crypto interface - removeTokenBindingKey() has not been implemented",N.createUnexpectedError(n)})})},clearKeystore:function(){return U(this,void 0,void 0,function(){var n;return H(this,function(t){throw n="Crypto interface - clearKeystore() has not been implemented",N.createUnexpectedError(n)})})},signJwt:function(){return U(this,void 0,void 0,function(){var n;return H(this,function(t){throw n="Crypto interface - signJwt() has not been implemented",N.createUnexpectedError(n)})})},hashString:function(){return U(this,void 0,void 0,function(){var n;return H(this,function(t){throw n="Crypto interface - hashString() has not been implemented",N.createUnexpectedError(n)})})}};/*! @azure/msal-common v13.3.1 2023-10-27 */var T={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."}},b=function(n){ge(t,n);function t(e,r){var i=n.call(this,e,r)||this;return i.name="ClientAuthError",Object.setPrototypeOf(i,t.prototype),i}return t.createClientInfoDecodingError=function(e){return new t(T.clientInfoDecodingError.code,T.clientInfoDecodingError.desc+" Failed with error: "+e)},t.createClientInfoEmptyError=function(){return new t(T.clientInfoEmptyError.code,""+T.clientInfoEmptyError.desc)},t.createTokenParsingError=function(e){return new t(T.tokenParsingError.code,T.tokenParsingError.desc+" Failed with error: "+e)},t.createTokenNullOrEmptyError=function(e){return new t(T.nullOrEmptyToken.code,T.nullOrEmptyToken.desc+" Raw Token Value: "+e)},t.createEndpointDiscoveryIncompleteError=function(e){return new t(T.endpointResolutionError.code,T.endpointResolutionError.desc+" Detail: "+e)},t.createNetworkError=function(e,r){return new t(T.networkError.code,T.networkError.desc+" | Fetch client threw: "+r+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToGetOpenidConfigError=function(e){return new t(T.unableToGetOpenidConfigError.code,T.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+e)},t.createHashNotDeserializedError=function(e){return new t(T.hashNotDeserialized.code,T.hashNotDeserialized.desc+" Given Object: "+e)},t.createInvalidStateError=function(e,r){return new t(T.invalidStateError.code,T.invalidStateError.desc+" Invalid State: "+e+", Root Err: "+r)},t.createStateMismatchError=function(){return new t(T.stateMismatchError.code,T.stateMismatchError.desc)},t.createStateNotFoundError=function(e){return new t(T.stateNotFoundError.code,T.stateNotFoundError.desc+": "+e)},t.createNonceMismatchError=function(){return new t(T.nonceMismatchError.code,T.nonceMismatchError.desc)},t.createAuthTimeNotFoundError=function(){return new t(T.authTimeNotFoundError.code,T.authTimeNotFoundError.desc)},t.createMaxAgeTranspiredError=function(){return new t(T.maxAgeTranspiredError.code,T.maxAgeTranspiredError.desc)},t.createNonceNotFoundError=function(e){return new t(T.nonceNotFoundError.code,T.nonceNotFoundError.desc+": "+e)},t.createMultipleMatchingTokensInCacheError=function(){return new t(T.multipleMatchingTokens.code,T.multipleMatchingTokens.desc+".")},t.createMultipleMatchingAccountsInCacheError=function(){return new t(T.multipleMatchingAccounts.code,T.multipleMatchingAccounts.desc)},t.createMultipleMatchingAppMetadataInCacheError=function(){return new t(T.multipleMatchingAppMetadata.code,T.multipleMatchingAppMetadata.desc)},t.createTokenRequestCannotBeMadeError=function(){return new t(T.tokenRequestCannotBeMade.code,T.tokenRequestCannotBeMade.desc)},t.createAppendEmptyScopeToSetError=function(e){return new t(T.appendEmptyScopeError.code,T.appendEmptyScopeError.desc+" Given Scope: "+e)},t.createRemoveEmptyScopeFromSetError=function(e){return new t(T.removeEmptyScopeError.code,T.removeEmptyScopeError.desc+" Given Scope: "+e)},t.createAppendScopeSetError=function(e){return new t(T.appendScopeSetError.code,T.appendScopeSetError.desc+" Detail Error: "+e)},t.createEmptyInputScopeSetError=function(){return new t(T.emptyInputScopeSetError.code,""+T.emptyInputScopeSetError.desc)},t.createDeviceCodeCancelledError=function(){return new t(T.DeviceCodePollingCancelled.code,""+T.DeviceCodePollingCancelled.desc)},t.createDeviceCodeExpiredError=function(){return new t(T.DeviceCodeExpired.code,""+T.DeviceCodeExpired.desc)},t.createDeviceCodeUnknownError=function(){return new t(T.DeviceCodeUnknownError.code,""+T.DeviceCodeUnknownError.desc)},t.createNoAccountInSilentRequestError=function(){return new t(T.NoAccountInSilentRequest.code,""+T.NoAccountInSilentRequest.desc)},t.createNullOrUndefinedCacheRecord=function(){return new t(T.invalidCacheRecord.code,T.invalidCacheRecord.desc)},t.createInvalidCacheEnvironmentError=function(){return new t(T.invalidCacheEnvironment.code,T.invalidCacheEnvironment.desc)},t.createNoAccountFoundError=function(){return new t(T.noAccountFound.code,T.noAccountFound.desc)},t.createCachePluginError=function(){return new t(T.CachePluginError.code,""+T.CachePluginError.desc)},t.createNoCryptoObjectError=function(e){return new t(T.noCryptoObj.code,""+T.noCryptoObj.desc+e)},t.createInvalidCacheTypeError=function(){return new t(T.invalidCacheType.code,""+T.invalidCacheType.desc)},t.createUnexpectedAccountTypeError=function(){return new t(T.unexpectedAccountType.code,""+T.unexpectedAccountType.desc)},t.createUnexpectedCredentialTypeError=function(){return new t(T.unexpectedCredentialType.code,""+T.unexpectedCredentialType.desc)},t.createInvalidAssertionError=function(){return new t(T.invalidAssertion.code,""+T.invalidAssertion.desc)},t.createInvalidCredentialError=function(){return new t(T.invalidClientCredential.code,""+T.invalidClientCredential.desc)},t.createRefreshRequiredError=function(){return new t(T.tokenRefreshRequired.code,T.tokenRefreshRequired.desc)},t.createUserTimeoutReachedError=function(){return new t(T.userTimeoutReached.code,T.userTimeoutReached.desc)},t.createTokenClaimsRequiredError=function(){return new t(T.tokenClaimsRequired.code,T.tokenClaimsRequired.desc)},t.createNoAuthCodeInServerResponseError=function(){return new t(T.noAuthorizationCodeFromServer.code,T.noAuthorizationCodeFromServer.desc)},t.createBindingKeyNotRemovedError=function(){return new t(T.bindingKeyNotRemovedError.code,T.bindingKeyNotRemovedError.desc)},t.createLogoutNotSupportedError=function(){return new t(T.logoutNotSupported.code,T.logoutNotSupported.desc)},t.createKeyIdMissingError=function(){return new t(T.keyIdMissing.code,T.keyIdMissing.desc)},t.createNoNetworkConnectivityError=function(){return new t(T.noNetworkConnectivity.code,T.noNetworkConnectivity.desc)},t.createUserCanceledError=function(){return new t(T.userCanceledError.code,T.userCanceledError.desc)},t}(N);/*! @azure/msal-common v13.3.1 2023-10-27 */var S=function(){function n(){}return n.decodeAuthToken=function(t){if(n.isEmpty(t))throw b.createTokenNullOrEmptyError(t);var e=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/,r=e.exec(t);if(!r||r.length<4)throw b.createTokenParsingError("Given token is malformed: "+JSON.stringify(t));var i={header:r[1],JWSPayload:r[2],JWSSig:r[3]};return i},n.isEmpty=function(t){return typeof t>"u"||!t||t.length===0},n.isEmptyObj=function(t){if(t&&!n.isEmpty(t))try{var e=JSON.parse(t);return Object.keys(e).length===0}catch{}return!0},n.startsWith=function(t,e){return t.indexOf(e)===0},n.endsWith=function(t,e){return t.length>=e.length&&t.lastIndexOf(e)===t.length-e.length},n.queryStringToObject=function(t){var e={},r=t.split("&"),i=function(o){return decodeURIComponent(o.replace(/\+/g," "))};return r.forEach(function(o){if(o.trim()){var s=o.split(/=(.+)/g,2),c=s[0],l=s[1];c&&l&&(e[i(c)]=i(l))}}),e},n.trimArrayEntries=function(t){return t.map(function(e){return e.trim()})},n.removeEmptyStringsFromArray=function(t){return t.filter(function(e){return!n.isEmpty(e)})},n.jsonParseHelper=function(t){try{return JSON.parse(t)}catch{return null}},n.matchPattern=function(t,e){var r=new RegExp(t.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?"));return r.test(e)},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var oe;(function(n){n[n.Error=0]="Error",n[n.Warning=1]="Warning",n[n.Info=2]="Info",n[n.Verbose=3]="Verbose",n[n.Trace=4]="Trace"})(oe||(oe={}));var hr=function(){function n(t,e,r){this.level=oe.Info;var i=function(){},o=t||n.createDefaultLoggerOptions();this.localCallback=o.loggerCallback||i,this.piiLoggingEnabled=o.piiLoggingEnabled||!1,this.level=typeof o.logLevel=="number"?o.logLevel:oe.Info,this.correlationId=o.correlationId||f.EMPTY_STRING,this.packageName=e||f.EMPTY_STRING,this.packageVersion=r||f.EMPTY_STRING}return n.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:oe.Info}},n.prototype.clone=function(t,e,r){return new n({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:r||this.correlationId},t,e)},n.prototype.logMessage=function(t,e){if(!(e.logLevel>this.level||!this.piiLoggingEnabled&&e.containsPii)){var r=new Date().toUTCString(),i;S.isEmpty(e.correlationId)?S.isEmpty(this.correlationId)?i="["+r+"]":i="["+r+"] : ["+this.correlationId+"]":i="["+r+"] : ["+e.correlationId+"]";var o=i+" : "+this.packageName+"@"+this.packageVersion+" : "+oe[e.logLevel]+" - "+t;this.executeCallback(e.logLevel,o,e.containsPii||!1)}},n.prototype.executeCallback=function(t,e,r){this.localCallback&&this.localCallback(t,e,r)},n.prototype.error=function(t,e){this.logMessage(t,{logLevel:oe.Error,containsPii:!1,correlationId:e||f.EMPTY_STRING})},n.prototype.errorPii=function(t,e){this.logMessage(t,{logLevel:oe.Error,containsPii:!0,correlationId:e||f.EMPTY_STRING})},n.prototype.warning=function(t,e){this.logMessage(t,{logLevel:oe.Warning,containsPii:!1,correlationId:e||f.EMPTY_STRING})},n.prototype.warningPii=function(t,e){this.logMessage(t,{logLevel:oe.Warning,containsPii:!0,correlationId:e||f.EMPTY_STRING})},n.prototype.info=function(t,e){this.logMessage(t,{logLevel:oe.Info,containsPii:!1,correlationId:e||f.EMPTY_STRING})},n.prototype.infoPii=function(t,e){this.logMessage(t,{logLevel:oe.Info,containsPii:!0,correlationId:e||f.EMPTY_STRING})},n.prototype.verbose=function(t,e){this.logMessage(t,{logLevel:oe.Verbose,containsPii:!1,correlationId:e||f.EMPTY_STRING})},n.prototype.verbosePii=function(t,e){this.logMessage(t,{logLevel:oe.Verbose,containsPii:!0,correlationId:e||f.EMPTY_STRING})},n.prototype.trace=function(t,e){this.logMessage(t,{logLevel:oe.Trace,containsPii:!1,correlationId:e||f.EMPTY_STRING})},n.prototype.tracePii=function(t,e){this.logMessage(t,{logLevel:oe.Trace,containsPii:!0,correlationId:e||f.EMPTY_STRING})},n.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var $r="@azure/msal-common",fr="13.3.1";/*! @azure/msal-common v13.3.1 2023-10-27 */var At;(function(n){n[n.None=0]="None",n.AzurePublic="https://login.microsoftonline.com",n.AzurePpe="https://login.windows-ppe.net",n.AzureChina="https://login.chinacloudapi.cn",n.AzureGermany="https://login.microsoftonline.de",n.AzureUsGovernment="https://login.microsoftonline.us"})(At||(At={}));/*! @azure/msal-common v13.3.1 2023-10-27 */var D={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."}},J=function(n){ge(t,n);function t(e,r){var i=n.call(this,e,r)||this;return i.name="ClientConfigurationError",Object.setPrototypeOf(i,t.prototype),i}return t.createRedirectUriEmptyError=function(){return new t(D.redirectUriNotSet.code,D.redirectUriNotSet.desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(D.postLogoutUriNotSet.code,D.postLogoutUriNotSet.desc)},t.createClaimsRequestParsingError=function(e){return new t(D.claimsRequestParsingError.code,D.claimsRequestParsingError.desc+" Given value: "+e)},t.createInsecureAuthorityUriError=function(e){return new t(D.authorityUriInsecure.code,D.authorityUriInsecure.desc+" Given URI: "+e)},t.createUrlParseError=function(e){return new t(D.urlParseError.code,D.urlParseError.desc+" Given Error: "+e)},t.createUrlEmptyError=function(){return new t(D.urlEmptyError.code,D.urlEmptyError.desc)},t.createEmptyScopesArrayError=function(){return new t(D.emptyScopesError.code,""+D.emptyScopesError.desc)},t.createClientIdSingleScopeError=function(e){return new t(D.clientIdSingleScopeError.code,D.clientIdSingleScopeError.desc+" Given Scopes: "+e)},t.createInvalidPromptError=function(e){return new t(D.invalidPrompt.code,D.invalidPrompt.desc+" Given value: "+e)},t.createInvalidClaimsRequestError=function(){return new t(D.invalidClaimsRequest.code,D.invalidClaimsRequest.desc)},t.createEmptyLogoutRequestError=function(){return new t(D.logoutRequestEmptyError.code,D.logoutRequestEmptyError.desc)},t.createEmptyTokenRequestError=function(){return new t(D.tokenRequestEmptyError.code,D.tokenRequestEmptyError.desc)},t.createInvalidCodeChallengeMethodError=function(){return new t(D.invalidCodeChallengeMethod.code,D.invalidCodeChallengeMethod.desc)},t.createInvalidCodeChallengeParamsError=function(){return new t(D.invalidCodeChallengeParams.code,D.invalidCodeChallengeParams.desc)},t.createInvalidCloudDiscoveryMetadataError=function(){return new t(D.invalidCloudDiscoveryMetadata.code,D.invalidCloudDiscoveryMetadata.desc)},t.createInvalidAuthorityMetadataError=function(){return new t(D.invalidAuthorityMetadata.code,D.invalidAuthorityMetadata.desc)},t.createUntrustedAuthorityError=function(){return new t(D.untrustedAuthority.code,D.untrustedAuthority.desc)},t.createInvalidAzureCloudInstanceError=function(){return new t(D.invalidAzureCloudInstance.code,D.invalidAzureCloudInstance.desc)},t.createMissingSshJwkError=function(){return new t(D.missingSshJwk.code,D.missingSshJwk.desc)},t.createMissingSshKidError=function(){return new t(D.missingSshKid.code,D.missingSshKid.desc)},t.createMissingNonceAuthenticationHeadersError=function(){return new t(D.missingNonceAuthenticationHeader.code,D.missingNonceAuthenticationHeader.desc)},t.createInvalidAuthenticationHeaderError=function(e,r){return new t(D.invalidAuthenticationHeader.code,D.invalidAuthenticationHeader.desc+". Invalid header: "+e+". Details: "+r)},t.createAuthorityMismatchError=function(){return new t(D.authorityMismatch.code,D.authorityMismatch.desc)},t}(b);/*! @azure/msal-common v13.3.1 2023-10-27 */var le=function(){function n(t){var e=this,r=t?S.trimArrayEntries(Dt(t)):[],i=r?S.removeEmptyStringsFromArray(r):[];this.validateInputScopes(i),this.scopes=new Set,i.forEach(function(o){return e.scopes.add(o)})}return n.fromString=function(t){var e=t||f.EMPTY_STRING,r=e.split(" ");return new n(r)},n.createSearchScopes=function(t){var e=new n(t);return e.containsOnlyOIDCScopes()?e.removeScope(f.OFFLINE_ACCESS_SCOPE):e.removeOIDCScopes(),e},n.prototype.validateInputScopes=function(t){if(!t||t.length<1)throw J.createEmptyScopesArrayError()},n.prototype.containsScope=function(t){var e=this.printScopesLowerCase().split(" "),r=new n(e);return S.isEmpty(t)?!1:r.scopes.has(t.toLowerCase())},n.prototype.containsScopeSet=function(t){var e=this;return!t||t.scopes.size<=0?!1:this.scopes.size>=t.scopes.size&&t.asArray().every(function(r){return e.containsScope(r)})},n.prototype.containsOnlyOIDCScopes=function(){var t=this,e=0;return Wr.forEach(function(r){t.containsScope(r)&&(e+=1)}),this.scopes.size===e},n.prototype.appendScope=function(t){S.isEmpty(t)||this.scopes.add(t.trim())},n.prototype.appendScopes=function(t){var e=this;try{t.forEach(function(r){return e.appendScope(r)})}catch(r){throw b.createAppendScopeSetError(r)}},n.prototype.removeScope=function(t){if(S.isEmpty(t))throw b.createRemoveEmptyScopeFromSetError(t);this.scopes.delete(t.trim())},n.prototype.removeOIDCScopes=function(){var t=this;Wr.forEach(function(e){t.scopes.delete(e)})},n.prototype.unionScopeSets=function(t){if(!t)throw b.createEmptyInputScopeSetError();var e=new Set;return t.scopes.forEach(function(r){return e.add(r.toLowerCase())}),this.scopes.forEach(function(r){return e.add(r.toLowerCase())}),e},n.prototype.intersectingScopeSets=function(t){if(!t)throw b.createEmptyInputScopeSetError();t.containsOnlyOIDCScopes()||t.removeOIDCScopes();var e=this.unionScopeSets(t),r=t.getScopeCount(),i=this.getScopeCount(),o=e.size;return o<i+r},n.prototype.getScopeCount=function(){return this.scopes.size},n.prototype.asArray=function(){var t=[];return this.scopes.forEach(function(e){return t.push(e)}),t},n.prototype.printScopes=function(){if(this.scopes){var t=this.asArray();return t.join(" ")}return f.EMPTY_STRING},n.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */function qt(n,t){if(S.isEmpty(n))throw b.createClientInfoEmptyError();try{var e=t.base64Decode(n);return JSON.parse(e)}catch(r){throw b.createClientInfoDecodingError(r.message)}}function it(n){if(S.isEmpty(n))throw b.createClientInfoDecodingError("Home account ID was empty.");var t=n.split(ne.CLIENT_INFO_SEPARATOR,2);return{uid:t[0],utid:t.length<2?f.EMPTY_STRING:t[1]}}/*! @azure/msal-common v13.3.1 2023-10-27 */var fe;(function(n){n[n.Default=0]="Default",n[n.Adfs=1]="Adfs",n[n.Dsts=2]="Dsts",n[n.Ciam=3]="Ciam"})(fe||(fe={}));/*! @azure/msal-common v13.3.1 2023-10-27 */var se=function(){function n(){}return n.prototype.generateAccountId=function(){var t=[this.homeAccountId,this.environment];return t.join(ne.CACHE_KEY_SEPARATOR).toLowerCase()},n.prototype.generateAccountKey=function(){return n.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},n.prototype.generateType=function(){switch(this.authorityType){case Ue.ADFS_ACCOUNT_TYPE:return He.ADFS;case Ue.MSAV1_ACCOUNT_TYPE:return He.MSA;case Ue.MSSTS_ACCOUNT_TYPE:return He.MSSTS;case Ue.GENERIC_ACCOUNT_TYPE:return He.GENERIC;default:throw b.createUnexpectedAccountTypeError()}},n.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}},n.generateAccountCacheKey=function(t){var e=[t.homeAccountId,t.environment||f.EMPTY_STRING,t.tenantId||f.EMPTY_STRING];return e.join(ne.CACHE_KEY_SEPARATOR).toLowerCase()},n.createAccount=function(t,e,r,i,o,s,c,l){var a,u,d,p,g,v,w=new n;w.authorityType=Ue.MSSTS_ACCOUNT_TYPE,w.clientInfo=t,w.homeAccountId=e,w.nativeAccountId=l;var B=c||i&&i.getPreferredCache();if(!B)throw b.createInvalidCacheEnvironmentError();if(w.environment=B,w.realm=((a=r==null?void 0:r.claims)===null||a===void 0?void 0:a.tid)||f.EMPTY_STRING,r){w.idTokenClaims=r.claims,w.localAccountId=((u=r==null?void 0:r.claims)===null||u===void 0?void 0:u.oid)||((d=r==null?void 0:r.claims)===null||d===void 0?void 0:d.sub)||f.EMPTY_STRING;var F=(p=r==null?void 0:r.claims)===null||p===void 0?void 0:p.preferred_username,P=!((g=r==null?void 0:r.claims)===null||g===void 0)&&g.emails?r.claims.emails[0]:null;w.username=F||P||f.EMPTY_STRING,w.name=(v=r==null?void 0:r.claims)===null||v===void 0?void 0:v.name}return w.cloudGraphHostName=o,w.msGraphHost=s,w},n.createGenericAccount=function(t,e,r,i,o,s){var c,l,a,u,d=new n;d.authorityType=r&&r.authorityType===fe.Adfs?Ue.ADFS_ACCOUNT_TYPE:Ue.GENERIC_ACCOUNT_TYPE,d.homeAccountId=t,d.realm=f.EMPTY_STRING;var p=s||r&&r.getPreferredCache();if(!p)throw b.createInvalidCacheEnvironmentError();return e&&(d.localAccountId=((c=e==null?void 0:e.claims)===null||c===void 0?void 0:c.oid)||((l=e==null?void 0:e.claims)===null||l===void 0?void 0:l.sub)||f.EMPTY_STRING,d.username=((a=e==null?void 0:e.claims)===null||a===void 0?void 0:a.upn)||f.EMPTY_STRING,d.name=((u=e==null?void 0:e.claims)===null||u===void 0?void 0:u.name)||f.EMPTY_STRING,d.idTokenClaims=e==null?void 0:e.claims),d.environment=p,d.cloudGraphHostName=i,d.msGraphHost=o,d},n.generateHomeAccountId=function(t,e,r,i,o){var s,c=!((s=o==null?void 0:o.claims)===null||s===void 0)&&s.sub?o.claims.sub:f.EMPTY_STRING;if(e===fe.Adfs||e===fe.Dsts)return c;if(t)try{var l=qt(t,i);if(!S.isEmpty(l.uid)&&!S.isEmpty(l.utid))return""+l.uid+ne.CLIENT_INFO_SEPARATOR+l.utid}catch{}return r.verbose("No client info in response"),c},n.isAccountEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("localAccountId")&&t.hasOwnProperty("username")&&t.hasOwnProperty("authorityType"):!1},n.accountInfoIsEqual=function(t,e,r){if(!t||!e)return!1;var i=!0;if(r){var o=t.idTokenClaims||{},s=e.idTokenClaims||{};i=o.iat===s.iat&&o.nonce===s.nonce}return t.homeAccountId===e.homeAccountId&&t.localAccountId===e.localAccountId&&t.username===e.username&&t.tenantId===e.tenantId&&t.environment===e.environment&&t.nativeAccountId===e.nativeAccountId&&i},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Re=function(){function n(t,e){if(S.isEmpty(t))throw b.createTokenNullOrEmptyError(t);this.rawToken=t,this.claims=n.extractTokenClaims(t,e)}return n.extractTokenClaims=function(t,e){var r=S.decodeAuthToken(t);try{var i=r.JWSPayload,o=e.base64Decode(i);return JSON.parse(o)}catch(s){throw b.createTokenParsingError(s)}},n.checkMaxAge=function(t,e){var r=3e5;if(e===0||Date.now()-r>t+e)throw b.createMaxAgeTranspiredError()},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var me=function(){function n(t,e,r){this.clientId=t,this.cryptoImpl=e,this.commonLogger=r.clone($r,fr)}return n.prototype.getAllAccounts=function(){var t=this,e=this.getAccountKeys();if(e.length<1)return[];var r=e.reduce(function(o,s){var c=t.getAccount(s);return c&&o.push(c),o},[]);if(r.length<1)return[];var i=r.map(function(o){return t.getAccountInfoFromEntity(o)});return i},n.prototype.getAccountInfoFilteredBy=function(t){var e=this.getAccountsFilteredBy(t);return e.length>0?this.getAccountInfoFromEntity(e[0]):null},n.prototype.getAccountInfoFromEntity=function(t){var e=t.getAccountInfo(),r=this.getIdToken(e);return r&&(e.idToken=r.secret,e.idTokenClaims=new Re(r.secret,this.cryptoImpl).claims),e},n.prototype.saveCacheRecord=function(t){return U(this,void 0,void 0,function(){return H(this,function(e){switch(e.label){case 0:if(!t)throw b.createNullOrUndefinedCacheRecord();return t.account&&this.setAccount(t.account),t.idToken&&this.setIdTokenCredential(t.idToken),t.accessToken?[4,this.saveAccessToken(t.accessToken)]:[3,2];case 1:e.sent(),e.label=2;case 2:return t.refreshToken&&this.setRefreshTokenCredential(t.refreshToken),t.appMetadata&&this.setAppMetadata(t.appMetadata),[2]}})})},n.prototype.saveAccessToken=function(t){return U(this,void 0,void 0,function(){var e,r,i,o,s=this;return H(this,function(c){switch(c.label){case 0:return e={clientId:t.clientId,credentialType:t.credentialType,environment:t.environment,homeAccountId:t.homeAccountId,realm:t.realm,tokenType:t.tokenType,requestedClaimsHash:t.requestedClaimsHash},r=this.getTokenKeys(),i=le.fromString(t.target),o=[],r.accessToken.forEach(function(l){if(s.accessTokenKeyMatchesFilter(l,e,!1)){var a=s.getAccessTokenCredential(l);if(a&&s.credentialMatchesFilter(a,e)){var u=le.fromString(a.target);u.intersectingScopeSets(i)&&o.push(s.removeAccessToken(l))}}}),[4,Promise.all(o)];case 1:return c.sent(),this.setAccessTokenCredential(t),[2]}})})},n.prototype.getAccountsFilteredBy=function(t){var e=this,r=this.getAccountKeys(),i=[];return r.forEach(function(o){if(e.isAccountKey(o,t.homeAccountId,t.realm)){var s=e.getAccount(o);s&&(t.homeAccountId&&!e.matchHomeAccountId(s,t.homeAccountId)||t.localAccountId&&!e.matchLocalAccountId(s,t.localAccountId)||t.username&&!e.matchUsername(s,t.username)||t.environment&&!e.matchEnvironment(s,t.environment)||t.realm&&!e.matchRealm(s,t.realm)||t.nativeAccountId&&!e.matchNativeAccountId(s,t.nativeAccountId)||i.push(s))}}),i},n.prototype.isAccountKey=function(t,e,r){return!(t.split(ne.CACHE_KEY_SEPARATOR).length<3||e&&!t.toLowerCase().includes(e.toLowerCase())||r&&!t.toLowerCase().includes(r.toLowerCase()))},n.prototype.isCredentialKey=function(t){if(t.split(ne.CACHE_KEY_SEPARATOR).length<6)return!1;var e=t.toLowerCase();if(e.indexOf(M.ID_TOKEN.toLowerCase())===-1&&e.indexOf(M.ACCESS_TOKEN.toLowerCase())===-1&&e.indexOf(M.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&e.indexOf(M.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(e.indexOf(M.REFRESH_TOKEN.toLowerCase())>-1){var r=""+M.REFRESH_TOKEN+ne.CACHE_KEY_SEPARATOR+this.clientId+ne.CACHE_KEY_SEPARATOR,i=""+M.REFRESH_TOKEN+ne.CACHE_KEY_SEPARATOR+Tt+ne.CACHE_KEY_SEPARATOR;if(e.indexOf(r.toLowerCase())===-1&&e.indexOf(i.toLowerCase())===-1)return!1}else if(e.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0},n.prototype.credentialMatchesFilter=function(t,e){return!(e.clientId&&!this.matchClientId(t,e.clientId)||e.userAssertionHash&&!this.matchUserAssertionHash(t,e.userAssertionHash)||typeof e.homeAccountId=="string"&&!this.matchHomeAccountId(t,e.homeAccountId)||e.environment&&!this.matchEnvironment(t,e.environment)||e.realm&&!this.matchRealm(t,e.realm)||e.credentialType&&!this.matchCredentialType(t,e.credentialType)||e.familyId&&!this.matchFamilyId(t,e.familyId)||e.target&&!this.matchTarget(t,e.target)||(e.requestedClaimsHash||t.requestedClaimsHash)&&t.requestedClaimsHash!==e.requestedClaimsHash||t.credentialType===M.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(e.tokenType&&!this.matchTokenType(t,e.tokenType)||e.tokenType===V.SSH&&e.keyId&&!this.matchKeyId(t,e.keyId)))},n.prototype.getAppMetadataFilteredBy=function(t){return this.getAppMetadataFilteredByInternal(t.environment,t.clientId)},n.prototype.getAppMetadataFilteredByInternal=function(t,e){var r=this,i=this.getKeys(),o={};return i.forEach(function(s){if(r.isAppMetadata(s)){var c=r.getAppMetadata(s);c&&(t&&!r.matchEnvironment(c,t)||e&&!r.matchClientId(c,e)||(o[s]=c))}}),o},n.prototype.getAuthorityMetadataByAlias=function(t){var e=this,r=this.getAuthorityMetadataKeys(),i=null;return r.forEach(function(o){if(!(!e.isAuthorityMetadata(o)||o.indexOf(e.clientId)===-1)){var s=e.getAuthorityMetadata(o);s&&s.aliases.indexOf(t)!==-1&&(i=s)}}),i},n.prototype.removeAllAccounts=function(){return U(this,void 0,void 0,function(){var t,e,r=this;return H(this,function(i){switch(i.label){case 0:return t=this.getAccountKeys(),e=[],t.forEach(function(o){e.push(r.removeAccount(o))}),[4,Promise.all(e)];case 1:return i.sent(),[2]}})})},n.prototype.removeAccount=function(t){return U(this,void 0,void 0,function(){var e;return H(this,function(r){switch(r.label){case 0:if(e=this.getAccount(t),!e)throw b.createNoAccountFoundError();return[4,this.removeAccountContext(e)];case 1:return r.sent(),this.removeItem(t),[2]}})})},n.prototype.removeAccountContext=function(t){return U(this,void 0,void 0,function(){var e,r,i,o=this;return H(this,function(s){switch(s.label){case 0:return e=this.getTokenKeys(),r=t.generateAccountId(),i=[],e.idToken.forEach(function(c){c.indexOf(r)===0&&o.removeIdToken(c)}),e.accessToken.forEach(function(c){c.indexOf(r)===0&&i.push(o.removeAccessToken(c))}),e.refreshToken.forEach(function(c){c.indexOf(r)===0&&o.removeRefreshToken(c)}),[4,Promise.all(i)];case 1:return s.sent(),[2]}})})},n.prototype.removeAccessToken=function(t){return U(this,void 0,void 0,function(){var e,r,i;return H(this,function(o){switch(o.label){case 0:if(e=this.getAccessTokenCredential(t),!e)return[2];if(e.credentialType.toLowerCase()!==M.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(e.tokenType!==V.POP)return[3,4];if(r=e,i=r.keyId,!i)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.cryptoImpl.removeTokenBindingKey(i)];case 2:return o.sent(),[3,4];case 3:throw o.sent(),b.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(t)]}})})},n.prototype.removeAppMetadata=function(){var t=this,e=this.getKeys();return e.forEach(function(r){t.isAppMetadata(r)&&t.removeItem(r)}),!0},n.prototype.readCacheRecord=function(t,e,r){var i=this.getTokenKeys(),o=this.readAccountFromCache(t),s=this.getIdToken(t,i),c=this.getAccessToken(t,e,i),l=this.getRefreshToken(t,!1,i),a=this.readAppMetadataFromCache(r);return o&&s&&(o.idTokenClaims=new Re(s.secret,this.cryptoImpl).claims),{account:o,idToken:s,accessToken:c,refreshToken:l,appMetadata:a}},n.prototype.readAccountFromCache=function(t){var e=se.generateAccountCacheKey(t);return this.getAccount(e)},n.prototype.getIdToken=function(t,e){var r=this;this.commonLogger.trace("CacheManager - getIdToken called");var i={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:M.ID_TOKEN,clientId:this.clientId,realm:t.tenantId},o=this.getIdTokensByFilter(i,e),s=o.length;return s<1?(this.commonLogger.info("CacheManager:getIdToken - No token found"),null):s>1?(this.commonLogger.info("CacheManager:getIdToken - Multiple id tokens found, clearing them"),o.forEach(function(c){r.removeIdToken(c.generateCredentialKey())}),null):(this.commonLogger.info("CacheManager:getIdToken - Returning id token"),o[0])},n.prototype.getIdTokensByFilter=function(t,e){var r=this,i=e&&e.idToken||this.getTokenKeys().idToken,o=[];return i.forEach(function(s){if(r.idTokenKeyMatchesFilter(s,Q({clientId:r.clientId},t))){var c=r.getIdTokenCredential(s);c&&r.credentialMatchesFilter(c,t)&&o.push(c)}}),o},n.prototype.idTokenKeyMatchesFilter=function(t,e){var r=t.toLowerCase();return!(e.clientId&&r.indexOf(e.clientId.toLowerCase())===-1||e.homeAccountId&&r.indexOf(e.homeAccountId.toLowerCase())===-1)},n.prototype.removeIdToken=function(t){this.removeItem(t)},n.prototype.removeRefreshToken=function(t){this.removeItem(t)},n.prototype.getAccessToken=function(t,e,r){var i=this;this.commonLogger.trace("CacheManager - getAccessToken called");var o=le.createSearchScopes(e.scopes),s=e.authenticationScheme||V.BEARER,c=s&&s.toLowerCase()!==V.BEARER.toLowerCase()?M.ACCESS_TOKEN_WITH_AUTH_SCHEME:M.ACCESS_TOKEN,l={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:c,clientId:this.clientId,realm:t.tenantId,target:o,tokenType:s,keyId:e.sshKid,requestedClaimsHash:e.requestedClaimsHash},a=r&&r.accessToken||this.getTokenKeys().accessToken,u=[];a.forEach(function(p){if(i.accessTokenKeyMatchesFilter(p,l,!0)){var g=i.getAccessTokenCredential(p);g&&i.credentialMatchesFilter(g,l)&&u.push(g)}});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(p){i.removeAccessToken(p.generateCredentialKey())}),null):(this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),u[0])},n.prototype.accessTokenKeyMatchesFilter=function(t,e,r){var i=t.toLowerCase();if(e.clientId&&i.indexOf(e.clientId.toLowerCase())===-1||e.homeAccountId&&i.indexOf(e.homeAccountId.toLowerCase())===-1||e.realm&&i.indexOf(e.realm.toLowerCase())===-1||e.requestedClaimsHash&&i.indexOf(e.requestedClaimsHash.toLowerCase())===-1)return!1;if(e.target)for(var o=e.target.asArray(),s=0;s<o.length;s++){if(r&&!i.includes(o[s].toLowerCase()))return!1;if(!r&&i.includes(o[s].toLowerCase()))return!0}return!0},n.prototype.getAccessTokensByFilter=function(t){var e=this,r=this.getTokenKeys(),i=[];return r.accessToken.forEach(function(o){if(e.accessTokenKeyMatchesFilter(o,t,!0)){var s=e.getAccessTokenCredential(o);s&&e.credentialMatchesFilter(s,t)&&i.push(s)}}),i},n.prototype.getRefreshToken=function(t,e,r){var i=this;this.commonLogger.trace("CacheManager - getRefreshToken called");var o=e?Tt:void 0,s={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:M.REFRESH_TOKEN,clientId:this.clientId,familyId:o},c=r&&r.refreshToken||this.getTokenKeys().refreshToken,l=[];c.forEach(function(u){if(i.refreshTokenKeyMatchesFilter(u,s)){var d=i.getRefreshTokenCredential(u);d&&i.credentialMatchesFilter(d,s)&&l.push(d)}});var a=l.length;return a<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),l[0])},n.prototype.refreshTokenKeyMatchesFilter=function(t,e){var r=t.toLowerCase();return!(e.familyId&&r.indexOf(e.familyId.toLowerCase())===-1||!e.familyId&&e.clientId&&r.indexOf(e.clientId.toLowerCase())===-1||e.homeAccountId&&r.indexOf(e.homeAccountId.toLowerCase())===-1)},n.prototype.readAppMetadataFromCache=function(t){var e={environment:t,clientId:this.clientId},r=this.getAppMetadataFilteredBy(e),i=Object.keys(r).map(function(s){return r[s]}),o=i.length;if(o<1)return null;if(o>1)throw b.createMultipleMatchingAppMetadataInCacheError();return i[0]},n.prototype.isAppMetadataFOCI=function(t){var e=this.readAppMetadataFromCache(t);return!!(e&&e.familyId===Tt)},n.prototype.matchHomeAccountId=function(t,e){return typeof t.homeAccountId=="string"&&e===t.homeAccountId},n.prototype.matchLocalAccountId=function(t,e){return typeof t.localAccountId=="string"&&e===t.localAccountId},n.prototype.matchUsername=function(t,e){return typeof t.username=="string"&&e.toLowerCase()===t.username.toLowerCase()},n.prototype.matchUserAssertionHash=function(t,e){return!!(t.userAssertionHash&&e===t.userAssertionHash)},n.prototype.matchEnvironment=function(t,e){var r=this.getAuthorityMetadataByAlias(e);return!!(r&&r.aliases.indexOf(t.environment)>-1)},n.prototype.matchCredentialType=function(t,e){return t.credentialType&&e.toLowerCase()===t.credentialType.toLowerCase()},n.prototype.matchClientId=function(t,e){return!!(t.clientId&&e===t.clientId)},n.prototype.matchFamilyId=function(t,e){return!!(t.familyId&&e===t.familyId)},n.prototype.matchRealm=function(t,e){return!!(t.realm&&e===t.realm)},n.prototype.matchNativeAccountId=function(t,e){return!!(t.nativeAccountId&&e===t.nativeAccountId)},n.prototype.matchTarget=function(t,e){var r=t.credentialType!==M.ACCESS_TOKEN&&t.credentialType!==M.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(r||!t.target)return!1;var i=le.fromString(t.target);return i.containsScopeSet(e)},n.prototype.matchTokenType=function(t,e){return!!(t.tokenType&&t.tokenType===e)},n.prototype.matchKeyId=function(t,e){return!!(t.keyId&&t.keyId===e)},n.prototype.isAppMetadata=function(t){return t.indexOf(lr)!==-1},n.prototype.isAuthorityMetadata=function(t){return t.indexOf(wt.CACHE_KEY)!==-1},n.prototype.generateAuthorityMetadataCacheKey=function(t){return wt.CACHE_KEY+"-"+this.clientId+"-"+t},n.toObject=function(t,e){for(var r in e)t[r]=e[r];return t},n}(),lo=function(n){ge(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.setAccount=function(){var e="Storage interface - setAccount() has not been implemented for the cacheStorage interface.";throw N.createUnexpectedError(e)},t.prototype.getAccount=function(){var e="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw N.createUnexpectedError(e)},t.prototype.setIdTokenCredential=function(){var e="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw N.createUnexpectedError(e)},t.prototype.getIdTokenCredential=function(){var e="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw N.createUnexpectedError(e)},t.prototype.setAccessTokenCredential=function(){var e="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw N.createUnexpectedError(e)},t.prototype.getAccessTokenCredential=function(){var e="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw N.createUnexpectedError(e)},t.prototype.setRefreshTokenCredential=function(){var e="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw N.createUnexpectedError(e)},t.prototype.getRefreshTokenCredential=function(){var e="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw N.createUnexpectedError(e)},t.prototype.setAppMetadata=function(){var e="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw N.createUnexpectedError(e)},t.prototype.getAppMetadata=function(){var e="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw N.createUnexpectedError(e)},t.prototype.setServerTelemetry=function(){var e="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw N.createUnexpectedError(e)},t.prototype.getServerTelemetry=function(){var e="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw N.createUnexpectedError(e)},t.prototype.setAuthorityMetadata=function(){var e="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw N.createUnexpectedError(e)},t.prototype.getAuthorityMetadata=function(){var e="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw N.createUnexpectedError(e)},t.prototype.getAuthorityMetadataKeys=function(){var e="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw N.createUnexpectedError(e)},t.prototype.setThrottlingCache=function(){var e="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw N.createUnexpectedError(e)},t.prototype.getThrottlingCache=function(){var e="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw N.createUnexpectedError(e)},t.prototype.removeItem=function(){var e="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw N.createUnexpectedError(e)},t.prototype.containsKey=function(){var e="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw N.createUnexpectedError(e)},t.prototype.getKeys=function(){var e="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw N.createUnexpectedError(e)},t.prototype.getAccountKeys=function(){var e="Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface.";throw N.createUnexpectedError(e)},t.prototype.getTokenKeys=function(){var e="Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface.";throw N.createUnexpectedError(e)},t.prototype.clear=function(){return U(this,void 0,void 0,function(){var e;return H(this,function(r){throw e="Storage interface - clear() has not been implemented for the cacheStorage interface.",N.createUnexpectedError(e)})})},t.prototype.updateCredentialCacheKey=function(){var e="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw N.createUnexpectedError(e)},t}(me);/*! @azure/msal-common v13.3.1 2023-10-27 */var ho=300,Zr={tokenRenewalOffsetSeconds:ho,preventCorsPreflight:!1},fo={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:oe.Info,correlationId:f.EMPTY_STRING},po={claimsBasedCachingEnabled:!0},go={sendGetRequestAsync:function(){return U(this,void 0,void 0,function(){var n;return H(this,function(t){throw n="Network interface - sendGetRequestAsync() has not been implemented",N.createUnexpectedError(n)})})},sendPostRequestAsync:function(){return U(this,void 0,void 0,function(){var n;return H(this,function(t){throw n="Network interface - sendPostRequestAsync() has not been implemented",N.createUnexpectedError(n)})})}},mo={sku:f.SKU,version:fr,cpu:f.EMPTY_STRING,os:f.EMPTY_STRING},vo={clientSecret:f.EMPTY_STRING,clientAssertion:void 0},yo={azureCloudInstance:At.None,tenant:""+f.DEFAULT_COMMON_TENANT},Co={application:{appName:"",appVersion:""}};function Eo(n){var t=n.authOptions,e=n.systemOptions,r=n.loggerOptions,i=n.cacheOptions,o=n.storageInterface,s=n.networkInterface,c=n.cryptoInterface,l=n.clientCredentials,a=n.libraryInfo,u=n.telemetry,d=n.serverTelemetryManager,p=n.persistencePlugin,g=n.serializableCache,v=Q(Q({},fo),r);return{authOptions:_o(t),systemOptions:Q(Q({},Zr),e),loggerOptions:v,cacheOptions:Q(Q({},po),i),storageInterface:o||new lo(t.clientId,Kt,new hr(v)),networkInterface:s||go,cryptoInterface:c||Kt,clientCredentials:l||vo,libraryInfo:Q(Q({},mo),a),telemetry:Q(Q({},Co),u),serverTelemetryManager:d||null,persistencePlugin:p||null,serializableCache:g||null}}function _o(n){return Q({clientCapabilities:[],azureCloudOptions:yo,skipAuthorityMetadataCache:!1},n)}/*! @azure/msal-common v13.3.1 2023-10-27 */var Ve=function(n){ge(t,n);function t(e,r,i){var o=n.call(this,e,r,i)||this;return o.name="ServerError",Object.setPrototypeOf(o,t.prototype),o}return t}(N);/*! @azure/msal-common v13.3.1 2023-10-27 */var Gt=function(){function n(){}return n.generateThrottlingStorageKey=function(t){return It.THROTTLING_PREFIX+"."+JSON.stringify(t)},n.preProcess=function(t,e){var r,i=n.generateThrottlingStorageKey(e),o=t.getThrottlingCache(i);if(o){if(o.throttleTime<Date.now()){t.removeItem(i);return}throw new Ve(((r=o.errorCodes)===null||r===void 0?void 0:r.join(" "))||f.EMPTY_STRING,o.errorMessage,o.subError)}},n.postProcess=function(t,e,r){if(n.checkResponseStatus(r)||n.checkResponseForRetryAfter(r)){var i={throttleTime:n.calculateThrottleTime(parseInt(r.headers[Ce.RETRY_AFTER])),error:r.body.error,errorCodes:r.body.error_codes,errorMessage:r.body.error_description,subError:r.body.suberror};t.setThrottlingCache(n.generateThrottlingStorageKey(e),i)}},n.checkResponseStatus=function(t){return t.status===429||t.status>=500&&t.status<600},n.checkResponseForRetryAfter=function(t){return t.headers?t.headers.hasOwnProperty(Ce.RETRY_AFTER)&&(t.status<200||t.status>=300):!1},n.calculateThrottleTime=function(t){var e=t<=0?0:t,r=Date.now()/1e3;return Math.floor(Math.min(r+(e||It.DEFAULT_THROTTLE_TIME_SECONDS),r+It.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)},n.removeThrottle=function(t,e,r,i){var o={clientId:e,authority:r.authority,scopes:r.scopes,homeAccountIdentifier:i,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid},s=this.generateThrottlingStorageKey(o);t.removeItem(s)},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var To=function(){function n(t,e){this.networkClient=t,this.cacheManager=e}return n.prototype.sendPostRequest=function(t,e,r){return U(this,void 0,void 0,function(){var i,o;return H(this,function(s){switch(s.label){case 0:Gt.preProcess(this.cacheManager,t),s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(e,r)];case 2:return i=s.sent(),[3,4];case 3:throw o=s.sent(),o instanceof N?o:b.createNetworkError(e,o);case 4:return Gt.postProcess(this.cacheManager,t,i),[2,i]}})})},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Ee;(function(n){n.HOME_ACCOUNT_ID="home_account_id",n.UPN="UPN"})(Ee||(Ee={}));/*! @azure/msal-common v13.3.1 2023-10-27 */var We=function(){function n(){}return n.validateRedirectUri=function(t){if(S.isEmpty(t))throw J.createRedirectUriEmptyError()},n.validatePrompt=function(t){var e=[];for(var r in ue)e.push(ue[r]);if(e.indexOf(t)<0)throw J.createInvalidPromptError(t)},n.validateClaims=function(t){try{JSON.parse(t)}catch{throw J.createInvalidClaimsRequestError()}},n.validateCodeChallengeParams=function(t,e){if(S.isEmpty(t)||S.isEmpty(e))throw J.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(e)},n.validateCodeChallengeMethod=function(t){if([Jr.PLAIN,Jr.S256].indexOf(t)<0)throw J.createInvalidCodeChallengeMethodError()},n.sanitizeEQParams=function(t,e){return t?(e.forEach(function(r,i){t[i]&&delete t[i]}),Object.fromEntries(Object.entries(t).filter(function(r){var i=r[1];return i!==""}))):{}},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var bt=function(){function n(){this.parameters=new Map}return n.prototype.addResponseTypeCode=function(){this.parameters.set(x.RESPONSE_TYPE,encodeURIComponent(f.CODE_RESPONSE_TYPE))},n.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(x.RESPONSE_TYPE,encodeURIComponent(f.TOKEN_RESPONSE_TYPE+" "+f.ID_TOKEN_RESPONSE_TYPE))},n.prototype.addResponseMode=function(t){this.parameters.set(x.RESPONSE_MODE,encodeURIComponent(t||Lt.QUERY))},n.prototype.addNativeBroker=function(){this.parameters.set(x.NATIVE_BROKER,encodeURIComponent("1"))},n.prototype.addScopes=function(t,e){e===void 0&&(e=!0);var r=e?Dt(t||[],Et):t||[],i=new le(r);this.parameters.set(x.SCOPE,encodeURIComponent(i.printScopes()))},n.prototype.addClientId=function(t){this.parameters.set(x.CLIENT_ID,encodeURIComponent(t))},n.prototype.addRedirectUri=function(t){We.validateRedirectUri(t),this.parameters.set(x.REDIRECT_URI,encodeURIComponent(t))},n.prototype.addPostLogoutRedirectUri=function(t){We.validateRedirectUri(t),this.parameters.set(x.POST_LOGOUT_URI,encodeURIComponent(t))},n.prototype.addIdTokenHint=function(t){this.parameters.set(x.ID_TOKEN_HINT,encodeURIComponent(t))},n.prototype.addDomainHint=function(t){this.parameters.set(_t.DOMAIN_HINT,encodeURIComponent(t))},n.prototype.addLoginHint=function(t){this.parameters.set(_t.LOGIN_HINT,encodeURIComponent(t))},n.prototype.addCcsUpn=function(t){this.parameters.set(Ce.CCS_HEADER,encodeURIComponent("UPN:"+t))},n.prototype.addCcsOid=function(t){this.parameters.set(Ce.CCS_HEADER,encodeURIComponent("Oid:"+t.uid+"@"+t.utid))},n.prototype.addSid=function(t){this.parameters.set(_t.SID,encodeURIComponent(t))},n.prototype.addClaims=function(t,e){var r=this.addClientCapabilitiesToClaims(t,e);We.validateClaims(r),this.parameters.set(x.CLAIMS,encodeURIComponent(r))},n.prototype.addCorrelationId=function(t){this.parameters.set(x.CLIENT_REQUEST_ID,encodeURIComponent(t))},n.prototype.addLibraryInfo=function(t){this.parameters.set(x.X_CLIENT_SKU,t.sku),this.parameters.set(x.X_CLIENT_VER,t.version),t.os&&this.parameters.set(x.X_CLIENT_OS,t.os),t.cpu&&this.parameters.set(x.X_CLIENT_CPU,t.cpu)},n.prototype.addApplicationTelemetry=function(t){t!=null&&t.appName&&this.parameters.set(x.X_APP_NAME,t.appName),t!=null&&t.appVersion&&this.parameters.set(x.X_APP_VER,t.appVersion)},n.prototype.addPrompt=function(t){We.validatePrompt(t),this.parameters.set(""+x.PROMPT,encodeURIComponent(t))},n.prototype.addState=function(t){S.isEmpty(t)||this.parameters.set(x.STATE,encodeURIComponent(t))},n.prototype.addNonce=function(t){this.parameters.set(x.NONCE,encodeURIComponent(t))},n.prototype.addCodeChallengeParams=function(t,e){if(We.validateCodeChallengeParams(t,e),t&&e)this.parameters.set(x.CODE_CHALLENGE,encodeURIComponent(t)),this.parameters.set(x.CODE_CHALLENGE_METHOD,encodeURIComponent(e));else throw J.createInvalidCodeChallengeParamsError()},n.prototype.addAuthorizationCode=function(t){this.parameters.set(x.CODE,encodeURIComponent(t))},n.prototype.addDeviceCode=function(t){this.parameters.set(x.DEVICE_CODE,encodeURIComponent(t))},n.prototype.addRefreshToken=function(t){this.parameters.set(x.REFRESH_TOKEN,encodeURIComponent(t))},n.prototype.addCodeVerifier=function(t){this.parameters.set(x.CODE_VERIFIER,encodeURIComponent(t))},n.prototype.addClientSecret=function(t){this.parameters.set(x.CLIENT_SECRET,encodeURIComponent(t))},n.prototype.addClientAssertion=function(t){S.isEmpty(t)||this.parameters.set(x.CLIENT_ASSERTION,encodeURIComponent(t))},n.prototype.addClientAssertionType=function(t){S.isEmpty(t)||this.parameters.set(x.CLIENT_ASSERTION_TYPE,encodeURIComponent(t))},n.prototype.addOboAssertion=function(t){this.parameters.set(x.OBO_ASSERTION,encodeURIComponent(t))},n.prototype.addRequestTokenUse=function(t){this.parameters.set(x.REQUESTED_TOKEN_USE,encodeURIComponent(t))},n.prototype.addGrantType=function(t){this.parameters.set(x.GRANT_TYPE,encodeURIComponent(t))},n.prototype.addClientInfo=function(){this.parameters.set(uo,"1")},n.prototype.addExtraQueryParameters=function(t){var e=this,r=We.sanitizeEQParams(t,this.parameters);Object.keys(r).forEach(function(i){e.parameters.set(i,t[i])})},n.prototype.addClientCapabilitiesToClaims=function(t,e){var r;if(!t)r={};else try{r=JSON.parse(t)}catch{throw J.createInvalidClaimsRequestError()}return e&&e.length>0&&(r.hasOwnProperty(nt.ACCESS_TOKEN)||(r[nt.ACCESS_TOKEN]={}),r[nt.ACCESS_TOKEN][nt.XMS_CC]={values:e}),JSON.stringify(r)},n.prototype.addUsername=function(t){this.parameters.set(Ft.username,encodeURIComponent(t))},n.prototype.addPassword=function(t){this.parameters.set(Ft.password,encodeURIComponent(t))},n.prototype.addPopToken=function(t){S.isEmpty(t)||(this.parameters.set(x.TOKEN_TYPE,V.POP),this.parameters.set(x.REQ_CNF,encodeURIComponent(t)))},n.prototype.addSshJwk=function(t){S.isEmpty(t)||(this.parameters.set(x.TOKEN_TYPE,V.SSH),this.parameters.set(x.REQ_CNF,encodeURIComponent(t)))},n.prototype.addServerTelemetry=function(t){this.parameters.set(x.X_CLIENT_CURR_TELEM,t.generateCurrentRequestHeaderValue()),this.parameters.set(x.X_CLIENT_LAST_TELEM,t.generateLastRequestHeaderValue())},n.prototype.addThrottling=function(){this.parameters.set(x.X_MS_LIB_CAPABILITY,It.X_MS_LIB_CAPABILITY_VALUE)},n.prototype.addLogoutHint=function(t){this.parameters.set(x.LOGOUT_HINT,encodeURIComponent(t))},n.prototype.createQueryString=function(){var t=new Array;return this.parameters.forEach(function(e,r){t.push(r+"="+e)}),t.join("&")},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var pr=function(){function n(t,e){this.config=Eo(t),this.logger=new hr(this.config.loggerOptions,$r,fr),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new To(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=e}return n.prototype.createTokenRequestHeaders=function(t){var e={};if(e[Ce.CONTENT_TYPE]=f.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&t)switch(t.type){case Ee.HOME_ACCOUNT_ID:try{var r=it(t.credential);e[Ce.CCS_HEADER]="Oid:"+r.uid+"@"+r.utid}catch(i){this.logger.verbose("Could not parse home account ID for CCS Header: "+i)}break;case Ee.UPN:e[Ce.CCS_HEADER]="UPN: "+t.credential;break}return e},n.prototype.executePostToTokenEndpoint=function(t,e,r,i){return U(this,void 0,void 0,function(){var o;return H(this,function(s){switch(s.label){case 0:return[4,this.networkManager.sendPostRequest(i,t,{body:e,headers:r})];case 1:return o=s.sent(),this.config.serverTelemetryManager&&o.status<500&&o.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,o]}})})},n.prototype.updateAuthority=function(t){if(!t.discoveryComplete())throw b.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=t},n.prototype.createTokenQueryParameters=function(t){var e=new bt;return t.tokenQueryParameters&&e.addExtraQueryParameters(t.tokenQueryParameters),e.createQueryString()},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var gr=function(){function n(){}return n.prototype.generateAccountId=function(){return n.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},n.prototype.generateCredentialId=function(){return n.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},n.prototype.generateTarget=function(){return n.generateTargetForCacheKey(this.target)},n.prototype.generateCredentialKey=function(){return n.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},n.prototype.generateType=function(){switch(this.credentialType){case M.ID_TOKEN:return He.ID_TOKEN;case M.ACCESS_TOKEN:case M.ACCESS_TOKEN_WITH_AUTH_SCHEME:return He.ACCESS_TOKEN;case M.REFRESH_TOKEN:return He.REFRESH_TOKEN;default:throw b.createUnexpectedCredentialTypeError()}},n.generateCredentialCacheKey=function(t,e,r,i,o,s,c,l,a){var u=[this.generateAccountIdForCacheKey(t,e),this.generateCredentialIdForCacheKey(r,i,o,c),this.generateTargetForCacheKey(s),this.generateClaimsHashForCacheKey(a),this.generateSchemeForCacheKey(l)];return u.join(ne.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateAccountIdForCacheKey=function(t,e){var r=[t,e];return r.join(ne.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateCredentialIdForCacheKey=function(t,e,r,i){var o=t===M.REFRESH_TOKEN&&i||e,s=[t,o,r||f.EMPTY_STRING];return s.join(ne.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateTargetForCacheKey=function(t){return(t||f.EMPTY_STRING).toLowerCase()},n.generateClaimsHashForCacheKey=function(t){return(t||f.EMPTY_STRING).toLowerCase()},n.generateSchemeForCacheKey=function(t){return t&&t.toLowerCase()!==V.BEARER.toLowerCase()?t.toLowerCase():f.EMPTY_STRING},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Je=function(n){ge(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.createIdTokenEntity=function(e,r,i,o,s){var c=new t;return c.credentialType=M.ID_TOKEN,c.homeAccountId=e,c.environment=r,c.clientId=o,c.secret=i,c.realm=s,c},t.isIdTokenEntity=function(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.credentialType===M.ID_TOKEN:!1},t}(gr);/*! @azure/msal-common v13.3.1 2023-10-27 */var Ie=function(){function n(){}return n.nowSeconds=function(){return Math.round(new Date().getTime()/1e3)},n.isTokenExpired=function(t,e){var r=Number(t)||0,i=n.nowSeconds()+e;return i>r},n.wasClockTurnedBack=function(t){var e=Number(t);return e>n.nowSeconds()},n.delay=function(t,e){return new Promise(function(r){return setTimeout(function(){return r(e)},t)})},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Xe=function(n){ge(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.createAccessTokenEntity=function(e,r,i,o,s,c,l,a,u,d,p,g,v,w,B){var F,P,Y=new t;Y.homeAccountId=e,Y.credentialType=M.ACCESS_TOKEN,Y.secret=i;var Ae=Ie.nowSeconds();if(Y.cachedAt=Ae.toString(),Y.expiresOn=l.toString(),Y.extendedExpiresOn=a.toString(),d&&(Y.refreshOn=d.toString()),Y.environment=r,Y.clientId=o,Y.realm=s,Y.target=c,Y.userAssertionHash=g,Y.tokenType=S.isEmpty(p)?V.BEARER:p,w&&(Y.requestedClaims=w,Y.requestedClaimsHash=B),((F=Y.tokenType)===null||F===void 0?void 0:F.toLowerCase())!==V.BEARER.toLowerCase())switch(Y.credentialType=M.ACCESS_TOKEN_WITH_AUTH_SCHEME,Y.tokenType){case V.POP:var _e=Re.extractTokenClaims(i,u);if(!(!((P=_e==null?void 0:_e.cnf)===null||P===void 0)&&P.kid))throw b.createTokenClaimsRequiredError();Y.keyId=_e.cnf.kid;break;case V.SSH:Y.keyId=v}return Y},t.isAccessTokenEntity=function(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.hasOwnProperty("target")&&(e.credentialType===M.ACCESS_TOKEN||e.credentialType===M.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1},t}(gr);/*! @azure/msal-common v13.3.1 2023-10-27 */var at=function(n){ge(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.createRefreshTokenEntity=function(e,r,i,o,s,c){var l=new t;return l.clientId=o,l.credentialType=M.REFRESH_TOKEN,l.environment=r,l.homeAccountId=e,l.secret=i,l.userAssertionHash=c,s&&(l.familyId=s),l},t.isRefreshTokenEntity=function(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("credentialType")&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("secret")&&e.credentialType===M.REFRESH_TOKEN:!1},t}(gr);/*! @azure/msal-common v13.3.1 2023-10-27 */var en=["interaction_required","consent_required","login_required"],wo=["message_only","additional_action","basic_action","user_password_expired","consent_required"],st={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."}},Se=function(n){ge(t,n);function t(e,r,i,o,s,c,l){var a=n.call(this,e,r,i)||this;return Object.setPrototypeOf(a,t.prototype),a.timestamp=o||f.EMPTY_STRING,a.traceId=s||f.EMPTY_STRING,a.correlationId=c||f.EMPTY_STRING,a.claims=l||f.EMPTY_STRING,a.name="InteractionRequiredAuthError",a}return t.isInteractionRequiredError=function(e,r,i){var o=!!e&&en.indexOf(e)>-1,s=!!i&&wo.indexOf(i)>-1,c=!!r&&en.some(function(l){return r.indexOf(l)>-1});return o||c||s},t.createNoTokensFoundError=function(){return new t(st.noTokensFoundError.code,st.noTokensFoundError.desc)},t.createNativeAccountUnavailableError=function(){return new t(st.native_account_unavailable.code,st.native_account_unavailable.desc)},t}(N);/*! @azure/msal-common v13.3.1 2023-10-27 */var kt=function(){function n(t,e,r,i,o){this.account=t||null,this.idToken=e||null,this.accessToken=r||null,this.refreshToken=i||null,this.appMetadata=o||null}return n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var De=function(){function n(){}return n.setRequestState=function(t,e,r){var i=n.generateLibraryState(t,r);return S.isEmpty(e)?i:""+i+f.RESOURCE_DELIM+e},n.generateLibraryState=function(t,e){if(!t)throw b.createNoCryptoObjectError("generateLibraryState");var r={id:t.createNewGuid()};e&&(r.meta=e);var i=JSON.stringify(r);return t.base64Encode(i)},n.parseRequestState=function(t,e){if(!t)throw b.createNoCryptoObjectError("parseRequestState");if(S.isEmpty(e))throw b.createInvalidStateError(e,"Null, undefined or empty state");try{var r=e.split(f.RESOURCE_DELIM),i=r[0],o=r.length>1?r.slice(1).join(f.RESOURCE_DELIM):f.EMPTY_STRING,s=t.base64Decode(i),c=JSON.parse(s);return{userRequestState:S.isEmpty(o)?f.EMPTY_STRING:o,libraryState:c}}catch(l){throw b.createInvalidStateError(e,l)}},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var q=function(){function n(t){if(this._urlString=t,S.isEmpty(this._urlString))throw J.createUrlEmptyError();S.isEmpty(this.getHash())&&(this._urlString=n.canonicalizeUri(t))}return Object.defineProperty(n.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),n.canonicalizeUri=function(t){if(t){var e=t.toLowerCase();return S.endsWith(e,"?")?e=e.slice(0,-1):S.endsWith(e,"?/")&&(e=e.slice(0,-2)),S.endsWith(e,"/")||(e+="/"),e}return t},n.prototype.validateAsUri=function(){var t;try{t=this.getUrlComponents()}catch(e){throw J.createUrlParseError(e)}if(!t.HostNameAndPort||!t.PathSegments)throw J.createUrlParseError("Given url string: "+this.urlString);if(!t.Protocol||t.Protocol.toLowerCase()!=="https:")throw J.createInsecureAuthorityUriError(this.urlString)},n.appendQueryString=function(t,e){return S.isEmpty(e)?t:t.indexOf("?")<0?t+"?"+e:t+"&"+e},n.removeHashFromUrl=function(t){return n.canonicalizeUri(t.split("#")[0])},n.prototype.replaceTenantPath=function(t){var e=this.getUrlComponents(),r=e.PathSegments;return t&&r.length!==0&&(r[0]===je.COMMON||r[0]===je.ORGANIZATIONS)&&(r[0]=t),n.constructAuthorityUriFromObject(e)},n.prototype.getHash=function(){return n.parseHash(this.urlString)},n.prototype.getUrlComponents=function(){var t=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),e=this.urlString.match(t);if(!e)throw J.createUrlParseError("Given url string: "+this.urlString);var r={Protocol:e[1],HostNameAndPort:e[4],AbsolutePath:e[5],QueryString:e[7]},i=r.AbsolutePath.split("/");return i=i.filter(function(o){return o&&o.length>0}),r.PathSegments=i,!S.isEmpty(r.QueryString)&&r.QueryString.endsWith("/")&&(r.QueryString=r.QueryString.substring(0,r.QueryString.length-1)),r},n.getDomainFromUrl=function(t){var e=RegExp("^([^:/?#]+://)?([^/?#]*)"),r=t.match(e);if(!r)throw J.createUrlParseError("Given url string: "+t);return r[2]},n.getAbsoluteUrl=function(t,e){if(t[0]===f.FORWARD_SLASH){var r=new n(e),i=r.getUrlComponents();return i.Protocol+"//"+i.HostNameAndPort+t}return t},n.parseHash=function(t){var e=t.indexOf("#"),r=t.indexOf("#/");return r>-1?t.substring(r+2):e>-1?t.substring(e+1):f.EMPTY_STRING},n.parseQueryString=function(t){var e=t.indexOf("?"),r=t.indexOf("/?");return r>-1?t.substring(r+2):e>-1?t.substring(e+1):f.EMPTY_STRING},n.constructAuthorityUriFromObject=function(t){return new n(t.Protocol+"//"+t.HostNameAndPort+"/"+t.PathSegments.join("/"))},n.getDeserializedHash=function(t){if(S.isEmpty(t))return{};var e=n.parseHash(t),r=S.queryStringToObject(S.isEmpty(e)?t:e);if(!r)throw b.createHashNotDeserializedError(JSON.stringify(r));return r},n.getDeserializedQueryString=function(t){if(S.isEmpty(t))return{};var e=n.parseQueryString(t),r=S.queryStringToObject(S.isEmpty(e)?t:e);if(!r)throw b.createHashNotDeserializedError(JSON.stringify(r));return r},n.hashContainsKnownProperties=function(t){if(S.isEmpty(t)||t.indexOf("=")<0)return!1;var e=n.getDeserializedHash(t);return!!(e.code||e.error_description||e.error||e.state)},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var m;(function(n){n.AcquireTokenByCode="acquireTokenByCode",n.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",n.AcquireTokenSilent="acquireTokenSilent",n.AcquireTokenSilentAsync="acquireTokenSilentAsync",n.AcquireTokenPopup="acquireTokenPopup",n.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",n.CryptoOptsSignJwt="cryptoOptsSignJwt",n.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",n.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",n.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",n.SsoSilent="ssoSilent",n.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",n.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",n.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",n.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",n.BrokerHandhshake="brokerHandshake",n.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",n.AcquireTokenByBroker="acquireTokenByBroker",n.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",n.RefreshTokenClientAcquireToken="refreshTokenClientAcquireToken",n.RefreshTokenClientAcquireTokenWithCachedRefreshToken="refreshTokenClientAcquireTokenWithCachedRefreshToken",n.RefreshTokenClientAcquireTokenByRefreshToken="refreshTokenClientAcquireTokenByRefreshToken",n.RefreshTokenClientCreateTokenRequestBody="refreshTokenClientCreateTokenRequestBody",n.AcquireTokenFromCache="acquireTokenFromCache",n.AcquireTokenBySilentIframe="acquireTokenBySilentIframe",n.InitializeBaseRequest="initializeBaseRequest",n.InitializeSilentRequest="initializeSilentRequest",n.InitializeClientApplication="initializeClientApplication",n.SilentIframeClientTokenHelper="silentIframeClientTokenHelper",n.SilentHandlerInitiateAuthRequest="silentHandlerInitiateAuthRequest",n.SilentHandlerMonitorIframeForHash="silentHandlerMonitorIframeForHash",n.SilentHandlerLoadFrame="silentHandlerLoadFrame",n.StandardInteractionClientCreateAuthCodeClient="standardInteractionClientCreateAuthCodeClient",n.StandardInteractionClientGetClientConfiguration="standardInteractionClientGetClientConfiguration",n.StandardInteractionClientInitializeAuthorizationRequest="standardInteractionClientInitializeAuthorizationRequest",n.StandardInteractionClientInitializeAuthorizationCodeRequest="standardInteractionClientInitializeAuthorizationCodeRequest",n.GetAuthCodeUrl="getAuthCodeUrl",n.HandleCodeResponseFromServer="handleCodeResponseFromServer",n.HandleCodeResponseFromHash="handleCodeResponseFromHash",n.UpdateTokenEndpointAuthority="updateTokenEndpointAuthority",n.AuthClientAcquireToken="authClientAcquireToken",n.AuthClientExecuteTokenRequest="authClientExecuteTokenRequest",n.AuthClientCreateTokenRequestBody="authClientCreateTokenRequestBody",n.AuthClientCreateQueryString="authClientCreateQueryString",n.PopTokenGenerateCnf="popTokenGenerateCnf",n.PopTokenGenerateKid="popTokenGenerateKid",n.HandleServerTokenResponse="handleServerTokenResponse",n.AuthorityFactoryCreateDiscoveredInstance="authorityFactoryCreateDiscoveredInstance",n.AuthorityResolveEndpointsAsync="authorityResolveEndpointsAsync",n.AuthorityGetCloudDiscoveryMetadataFromNetwork="authorityGetCloudDiscoveryMetadataFromNetwork",n.AuthorityUpdateCloudDiscoveryMetadata="authorityUpdateCloudDiscoveryMetadata",n.AuthorityGetEndpointMetadataFromNetwork="authorityGetEndpointMetadataFromNetwork",n.AuthorityUpdateEndpointMetadata="authorityUpdateEndpointMetadata",n.AuthorityUpdateMetadataWithRegionalInformation="authorityUpdateMetadataWithRegionalInformation",n.RegionDiscoveryDetectRegion="regionDiscoveryDetectRegion",n.RegionDiscoveryGetRegionFromIMDS="regionDiscoveryGetRegionFromIMDS",n.RegionDiscoveryGetCurrentVersion="regionDiscoveryGetCurrentVersion",n.AcquireTokenByCodeAsync="acquireTokenByCodeAsync",n.GetEndpointMetadataFromNetwork="getEndpointMetadataFromNetwork",n.GetCloudDiscoveryMetadataFromNetworkMeasurement="getCloudDiscoveryMetadataFromNetworkMeasurement",n.HandleRedirectPromiseMeasurement="handleRedirectPromiseMeasurement",n.UpdateCloudDiscoveryMetadataMeasurement="updateCloudDiscoveryMetadataMeasurement",n.UsernamePasswordClientAcquireToken="usernamePasswordClientAcquireToken",n.NativeMessageHandlerHandshake="nativeMessageHandlerHandshake",n.ClearTokensAndKeysWithClaims="clearTokensAndKeysWithClaims"})(m||(m={}));var zt;(function(n){n[n.NotStarted=0]="NotStarted",n[n.InProgress=1]="InProgress",n[n.Completed=2]="Completed"})(zt||(zt={}));var Io=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","queuedTimeMs","startTimeMs","status"]);/*! @azure/msal-common v13.3.1 2023-10-27 */var mr;(function(n){n.SW="sw",n.UHW="uhw"})(mr||(mr={}));var ct=function(){function n(t,e){this.cryptoUtils=t,this.performanceClient=e}return n.prototype.generateCnf=function(t){var e,r;return U(this,void 0,void 0,function(){var i,o,s;return H(this,function(c){switch(c.label){case 0:return(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(m.PopTokenGenerateCnf,t.correlationId),(r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(m.PopTokenGenerateKid,t.correlationId),[4,this.generateKid(t)];case 1:return i=c.sent(),o=this.cryptoUtils.base64Encode(JSON.stringify(i)),s={kid:i.kid,reqCnfString:o},[4,this.cryptoUtils.hashString(o)];case 2:return[2,(s.reqCnfHash=c.sent(),s)]}})})},n.prototype.generateKid=function(t){var e;return U(this,void 0,void 0,function(){var r;return H(this,function(i){switch(i.label){case 0:return(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(m.PopTokenGenerateKid,t.correlationId),[4,this.cryptoUtils.getPublicKeyThumbprint(t)];case 1:return r=i.sent(),[2,{kid:r,xms_ksl:mr.SW}]}})})},n.prototype.signPopToken=function(t,e,r){return U(this,void 0,void 0,function(){return H(this,function(i){return[2,this.signPayload(t,e,r)]})})},n.prototype.signPayload=function(t,e,r,i){return U(this,void 0,void 0,function(){var o,s,c,l,a,u;return H(this,function(d){switch(d.label){case 0:return o=r.resourceRequestMethod,s=r.resourceRequestUri,c=r.shrClaims,l=r.shrNonce,a=s?new q(s):void 0,u=a==null?void 0:a.getUrlComponents(),[4,this.cryptoUtils.signJwt(Q({at:t,ts:Ie.nowSeconds(),m:o==null?void 0:o.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:c||void 0},i),e,r.correlationId)];case 1:return[2,d.sent()]}})})},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var vr=function(){function n(){}return n.prototype.generateAppMetadataKey=function(){return n.generateAppMetadataCacheKey(this.environment,this.clientId)},n.generateAppMetadataCacheKey=function(t,e){var r=[lr,t,e];return r.join(ne.CACHE_KEY_SEPARATOR).toLowerCase()},n.createAppMetadataEntity=function(t,e,r){var i=new n;return i.clientId=t,i.environment=e,r&&(i.familyId=r),i},n.isAppMetadataEntity=function(t,e){return e?t.indexOf(lr)===0&&e.hasOwnProperty("clientId")&&e.hasOwnProperty("environment"):!1},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var So=function(){function n(t,e){this.cache=t,this.hasChanged=e}return Object.defineProperty(n.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Yt=function(){function n(t,e,r,i,o,s,c){this.clientId=t,this.cacheStorage=e,this.cryptoObj=r,this.logger=i,this.serializableCache=o,this.persistencePlugin=s,this.performanceClient=c}return n.prototype.validateServerAuthorizationCodeResponse=function(t,e,r){if(!t.state||!e)throw t.state?b.createStateNotFoundError("Cached State"):b.createStateNotFoundError("Server State");if(decodeURIComponent(t.state)!==decodeURIComponent(e))throw b.createStateMismatchError();if(t.error||t.error_description||t.suberror)throw Se.isInteractionRequiredError(t.error,t.error_description,t.suberror)?new Se(t.error||f.EMPTY_STRING,t.error_description,t.suberror,t.timestamp||f.EMPTY_STRING,t.trace_id||f.EMPTY_STRING,t.correlation_id||f.EMPTY_STRING,t.claims||f.EMPTY_STRING):new Ve(t.error||f.EMPTY_STRING,t.error_description,t.suberror);t.client_info&&qt(t.client_info,r)},n.prototype.validateTokenResponse=function(t){if(t.error||t.error_description||t.suberror){if(Se.isInteractionRequiredError(t.error,t.error_description,t.suberror))throw new Se(t.error,t.error_description,t.suberror,t.timestamp||f.EMPTY_STRING,t.trace_id||f.EMPTY_STRING,t.correlation_id||f.EMPTY_STRING,t.claims||f.EMPTY_STRING);var e=t.error_codes+" - ["+t.timestamp+"]: "+t.error_description+" - Correlation ID: "+t.correlation_id+" - Trace ID: "+t.trace_id;throw new Ve(t.error,e,t.suberror)}},n.prototype.handleServerTokenResponse=function(t,e,r,i,o,s,c,l,a){var u;return U(this,void 0,void 0,function(){var d,p,g,v,w,B,F;return H(this,function(P){switch(P.label){case 0:if((u=this.performanceClient)===null||u===void 0||u.addQueueMeasurement(m.HandleServerTokenResponse,t.correlation_id),t.id_token){if(d=new Re(t.id_token||f.EMPTY_STRING,this.cryptoObj),o&&!S.isEmpty(o.nonce)&&d.claims.nonce!==o.nonce)throw b.createNonceMismatchError();if(i.maxAge||i.maxAge===0){if(p=d.claims.auth_time,!p)throw b.createAuthTimeNotFoundError();Re.checkMaxAge(p,i.maxAge)}}this.homeAccountIdentifier=se.generateHomeAccountId(t.client_info||f.EMPTY_STRING,e.authorityType,this.logger,this.cryptoObj,d),o&&o.state&&(g=De.parseRequestState(this.cryptoObj,o.state)),t.key_id=t.key_id||i.sshKid||void 0,v=this.generateCacheRecord(t,e,r,i,d,s,o),P.label=1;case 1:return P.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),w=new So(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(w)]):[3,3];case 2:P.sent(),P.label=3;case 3:return c&&!l&&v.account&&(B=v.account.generateAccountKey(),F=this.cacheStorage.getAccount(B),!F)?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,n.generateAuthenticationResult(this.cryptoObj,e,v,!1,i,d,g,void 0,a)]):[4,this.cacheStorage.saveCacheRecord(v)];case 4:return P.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&w?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(w)]):[3,7];case 6:P.sent(),P.label=7;case 7:return[7];case 8:return[2,n.generateAuthenticationResult(this.cryptoObj,e,v,!1,i,d,g,t,a)]}})})},n.prototype.generateCacheRecord=function(t,e,r,i,o,s,c){var l=e.getPreferredCache();if(S.isEmpty(l))throw b.createInvalidCacheEnvironmentError();var a,u;!S.isEmpty(t.id_token)&&o&&(a=Je.createIdTokenEntity(this.homeAccountIdentifier,l,t.id_token||f.EMPTY_STRING,this.clientId,o.claims.tid||f.EMPTY_STRING),u=this.generateAccountEntity(t,o,e,c));var d=null;if(!S.isEmpty(t.access_token)){var p=t.scope?le.fromString(t.scope):new le(i.scopes||[]),g=(typeof t.expires_in=="string"?parseInt(t.expires_in,10):t.expires_in)||0,v=(typeof t.ext_expires_in=="string"?parseInt(t.ext_expires_in,10):t.ext_expires_in)||0,w=(typeof t.refresh_in=="string"?parseInt(t.refresh_in,10):t.refresh_in)||void 0,B=r+g,F=B+v,P=w&&w>0?r+w:void 0;d=Xe.createAccessTokenEntity(this.homeAccountIdentifier,l,t.access_token||f.EMPTY_STRING,this.clientId,o?o.claims.tid||f.EMPTY_STRING:e.tenant,p.printScopes(),B,F,this.cryptoObj,P,t.token_type,s,t.key_id,i.claims,i.requestedClaimsHash)}var Y=null;S.isEmpty(t.refresh_token)||(Y=at.createRefreshTokenEntity(this.homeAccountIdentifier,l,t.refresh_token||f.EMPTY_STRING,this.clientId,t.foci,s));var Ae=null;return S.isEmpty(t.foci)||(Ae=vr.createAppMetadataEntity(this.clientId,l,t.foci)),new kt(u,a,d,Y,Ae)},n.prototype.generateAccountEntity=function(t,e,r,i){var o=r.authorityType,s=i?i.cloud_graph_host_name:f.EMPTY_STRING,c=i?i.msgraph_host:f.EMPTY_STRING;if(o===fe.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),se.createGenericAccount(this.homeAccountIdentifier,e,r,s,c);if(S.isEmpty(t.client_info)&&r.protocolMode==="AAD")throw b.createClientInfoEmptyError();return t.client_info?se.createAccount(t.client_info,this.homeAccountIdentifier,e,r,s,c):se.createGenericAccount(this.homeAccountIdentifier,e,r,s,c)},n.generateAuthenticationResult=function(t,e,r,i,o,s,c,l,a){var u,d,p;return U(this,void 0,void 0,function(){var g,v,w,B,F,P,Y,Ae,_e,Oe,ft;return H(this,function(ce){switch(ce.label){case 0:if(g=f.EMPTY_STRING,v=[],w=null,F=f.EMPTY_STRING,!r.accessToken)return[3,4];if(r.accessToken.tokenType!==V.POP)return[3,2];if(P=new ct(t),Y=r.accessToken,Ae=Y.secret,_e=Y.keyId,!_e)throw b.createKeyIdMissingError();return[4,P.signPopToken(Ae,_e,o)];case 1:return g=ce.sent(),[3,3];case 2:g=r.accessToken.secret,ce.label=3;case 3:v=le.fromString(r.accessToken.target).asArray(),w=new Date(Number(r.accessToken.expiresOn)*1e3),B=new Date(Number(r.accessToken.extendedExpiresOn)*1e3),ce.label=4;case 4:return r.appMetadata&&(F=r.appMetadata.familyId===Tt?Tt:f.EMPTY_STRING),Oe=(s==null?void 0:s.claims.oid)||(s==null?void 0:s.claims.sub)||f.EMPTY_STRING,ft=(s==null?void 0:s.claims.tid)||f.EMPTY_STRING,l!=null&&l.spa_accountid&&r.account&&(r.account.nativeAccountId=l==null?void 0:l.spa_accountid),[2,{authority:e.canonicalAuthority,uniqueId:Oe,tenantId:ft,scopes:v,account:r.account?r.account.getAccountInfo():null,idToken:s?s.rawToken:f.EMPTY_STRING,idTokenClaims:s?s.claims:{},accessToken:g,fromCache:i,expiresOn:w,correlationId:o.correlationId,requestId:a||f.EMPTY_STRING,extExpiresOn:B,familyId:F,tokenType:((u=r.accessToken)===null||u===void 0?void 0:u.tokenType)||f.EMPTY_STRING,state:c?c.userRequestState:f.EMPTY_STRING,cloudGraphHostName:((d=r.account)===null||d===void 0?void 0:d.cloudGraphHostName)||f.EMPTY_STRING,msGraphHost:((p=r.account)===null||p===void 0?void 0:p.msGraphHost)||f.EMPTY_STRING,code:l==null?void 0:l.spa_code,fromNativeBroker:!1}]}})})},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var tn=function(n){ge(t,n);function t(e,r){var i=n.call(this,e,r)||this;return i.includeRedirectUri=!0,i}return t.prototype.getAuthCodeUrl=function(e){var r,i;return U(this,void 0,void 0,function(){var o;return H(this,function(s){switch(s.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(m.GetAuthCodeUrl,e.correlationId),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(m.AuthClientCreateQueryString,e.correlationId),[4,this.createAuthCodeUrlQueryString(e)];case 1:return o=s.sent(),[2,q.appendQueryString(this.authority.authorizationEndpoint,o)]}})})},t.prototype.acquireToken=function(e,r){var i,o,s,c,l,a;return U(this,void 0,void 0,function(){var u,d,p,g,v,w,B=this;return H(this,function(F){switch(F.label){case 0:if(!e||!e.code)throw b.createTokenRequestCannotBeMadeError();return(i=this.performanceClient)===null||i===void 0||i.addQueueMeasurement(m.AuthClientAcquireToken,e.correlationId),u=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement("AuthCodeClientAcquireToken",e.correlationId),this.logger.info("in acquireToken call in auth-code client"),d=Ie.nowSeconds(),(s=this.performanceClient)===null||s===void 0||s.setPreQueueTime(m.AuthClientExecuteTokenRequest,e.correlationId),[4,this.executeTokenRequest(this.authority,e)];case 1:return p=F.sent(),g=(c=p.headers)===null||c===void 0?void 0:c[Ce.X_MS_REQUEST_ID],v=(l=p.headers)===null||l===void 0?void 0:l[Ce.X_MS_HTTP_VERSION],v&&(u==null||u.addStaticFields({httpVerAuthority:v})),w=new Yt(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient),w.validateTokenResponse(p.body),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(m.HandleServerTokenResponse,e.correlationId),[2,w.handleServerTokenResponse(p.body,this.authority,d,e,r,void 0,void 0,void 0,g).then(function(P){return u==null||u.endMeasurement({success:!0}),P}).catch(function(P){throw B.logger.verbose("Error in fetching token in ACC",e.correlationId),u==null||u.endMeasurement({errorCode:P.errorCode,subErrorCode:P.subError,success:!1}),P})]}})})},t.prototype.handleFragmentResponse=function(e,r){var i=new Yt(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),o=new q(e),s=q.getDeserializedHash(o.getHash());if(i.validateServerAuthorizationCodeResponse(s,r,this.cryptoUtils),!s.code)throw b.createNoAuthCodeInServerResponseError();return Q(Q({},s),{code:s.code})},t.prototype.getLogoutUri=function(e){if(!e)throw J.createEmptyLogoutRequestError();var r=this.createLogoutUrlQueryString(e);return q.appendQueryString(this.authority.endSessionEndpoint,r)},t.prototype.executeTokenRequest=function(e,r){var i,o;return U(this,void 0,void 0,function(){var s,c,l,a,u,d,p;return H(this,function(g){switch(g.label){case 0:return(i=this.performanceClient)===null||i===void 0||i.addQueueMeasurement(m.AuthClientExecuteTokenRequest,r.correlationId),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(m.AuthClientCreateTokenRequestBody,r.correlationId),s=this.createTokenQueryParameters(r),c=q.appendQueryString(e.tokenEndpoint,s),[4,this.createTokenRequestBody(r)];case 1:if(l=g.sent(),a=void 0,r.clientInfo)try{u=qt(r.clientInfo,this.cryptoUtils),a={credential:""+u.uid+ne.CLIENT_INFO_SEPARATOR+u.utid,type:Ee.HOME_ACCOUNT_ID}}catch(v){this.logger.verbose("Could not parse client info for CCS Header: "+v)}return d=this.createTokenRequestHeaders(a||r.ccsCredential),p={clientId:this.config.authOptions.clientId,authority:e.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,l,d,p)]}})})},t.prototype.createTokenRequestBody=function(e){var r,i;return U(this,void 0,void 0,function(){var o,s,c,l,a,u,d,d,p;return H(this,function(g){switch(g.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(m.AuthClientCreateTokenRequestBody,e.correlationId),o=new bt,o.addClientId(this.config.authOptions.clientId),this.includeRedirectUri?o.addRedirectUri(e.redirectUri):We.validateRedirectUri(e.redirectUri),o.addScopes(e.scopes),o.addAuthorizationCode(e.code),o.addLibraryInfo(this.config.libraryInfo),o.addApplicationTelemetry(this.config.telemetry.application),o.addThrottling(),this.serverTelemetryManager&&o.addServerTelemetry(this.serverTelemetryManager),e.codeVerifier&&o.addCodeVerifier(e.codeVerifier),this.config.clientCredentials.clientSecret&&o.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(s=this.config.clientCredentials.clientAssertion,o.addClientAssertion(s.assertion),o.addClientAssertionType(s.assertionType)),o.addGrantType(xt.AUTHORIZATION_CODE_GRANT),o.addClientInfo(),e.authenticationScheme!==V.POP?[3,2]:(c=new ct(this.cryptoUtils,this.performanceClient),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(m.PopTokenGenerateCnf,e.correlationId),[4,c.generateCnf(e)]);case 1:return l=g.sent(),o.addPopToken(l.reqCnfString),[3,3];case 2:if(e.authenticationScheme===V.SSH)if(e.sshJwk)o.addSshJwk(e.sshJwk);else throw J.createMissingSshJwkError();g.label=3;case 3:if(a=e.correlationId||this.config.cryptoInterface.createNewGuid(),o.addCorrelationId(a),(!S.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&o.addClaims(e.claims,this.config.authOptions.clientCapabilities),u=void 0,e.clientInfo)try{d=qt(e.clientInfo,this.cryptoUtils),u={credential:""+d.uid+ne.CLIENT_INFO_SEPARATOR+d.utid,type:Ee.HOME_ACCOUNT_ID}}catch(v){this.logger.verbose("Could not parse client info for CCS Header: "+v)}else u=e.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&u)switch(u.type){case Ee.HOME_ACCOUNT_ID:try{d=it(u.credential),o.addCcsOid(d)}catch(v){this.logger.verbose("Could not parse home account ID for CCS Header: "+v)}break;case Ee.UPN:o.addCcsUpn(u.credential);break}return e.tokenBodyParameters&&o.addExtraQueryParameters(e.tokenBodyParameters),e.enableSpaAuthorizationCode&&(!e.tokenBodyParameters||!e.tokenBodyParameters[x.RETURN_SPA_CODE])&&o.addExtraQueryParameters((p={},p[x.RETURN_SPA_CODE]="1",p)),[2,o.createQueryString()]}})})},t.prototype.createAuthCodeUrlQueryString=function(e){var r;return U(this,void 0,void 0,function(){var i,o,s,c,l,a,a,a,u,d;return H(this,function(p){switch(p.label){case 0:if((r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(m.AuthClientCreateQueryString,e.correlationId),i=new bt,i.addClientId(this.config.authOptions.clientId),o=Dt(e.scopes||[],e.extraScopesToConsent||[]),i.addScopes(o),i.addRedirectUri(e.redirectUri),s=e.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(s),i.addResponseMode(e.responseMode),i.addResponseTypeCode(),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addClientInfo(),e.codeChallenge&&e.codeChallengeMethod&&i.addCodeChallengeParams(e.codeChallenge,e.codeChallengeMethod),e.prompt&&i.addPrompt(e.prompt),e.domainHint&&i.addDomainHint(e.domainHint),e.prompt!==ue.SELECT_ACCOUNT)if(e.sid&&e.prompt===ue.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),i.addSid(e.sid);else if(e.account){if(c=this.extractAccountSid(e.account),l=this.extractLoginHint(e.account),l){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),i.addLoginHint(l);try{a=it(e.account.homeAccountId),i.addCcsOid(a)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(c&&e.prompt===ue.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),i.addSid(c);try{a=it(e.account.homeAccountId),i.addCcsOid(a)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(e.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),i.addLoginHint(e.loginHint),i.addCcsUpn(e.loginHint);else if(e.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),i.addLoginHint(e.account.username);try{a=it(e.account.homeAccountId),i.addCcsOid(a)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else e.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),i.addLoginHint(e.loginHint),i.addCcsUpn(e.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return e.nonce&&i.addNonce(e.nonce),e.state&&i.addState(e.state),(!S.isEmpty(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&i.addClaims(e.claims,this.config.authOptions.clientCapabilities),e.extraQueryParameters&&i.addExtraQueryParameters(e.extraQueryParameters),e.nativeBroker?(i.addNativeBroker(),e.authenticationScheme!==V.POP?[3,2]:(u=new ct(this.cryptoUtils),[4,u.generateCnf(e)])):[3,2];case 1:d=p.sent(),i.addPopToken(d.reqCnfString),p.label=2;case 2:return[2,i.createQueryString()]}})})},t.prototype.createLogoutUrlQueryString=function(e){var r=new bt;return e.postLogoutRedirectUri&&r.addPostLogoutRedirectUri(e.postLogoutRedirectUri),e.correlationId&&r.addCorrelationId(e.correlationId),e.idTokenHint&&r.addIdTokenHint(e.idTokenHint),e.state&&r.addState(e.state),e.logoutHint&&r.addLogoutHint(e.logoutHint),e.extraQueryParameters&&r.addExtraQueryParameters(e.extraQueryParameters),r.createQueryString()},t.prototype.extractAccountSid=function(e){var r;return((r=e.idTokenClaims)===null||r===void 0?void 0:r.sid)||null},t.prototype.extractLoginHint=function(e){var r;return((r=e.idTokenClaims)===null||r===void 0?void 0:r.login_hint)||null},t}(pr);/*! @azure/msal-common v13.3.1 2023-10-27 */var rn=function(n){ge(t,n);function t(e,r){return n.call(this,e,r)||this}return t.prototype.acquireToken=function(e){var r,i,o,s,c,l,a;return U(this,void 0,void 0,function(){var u,d,p,g,v,w,B=this;return H(this,function(F){switch(F.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(m.RefreshTokenClientAcquireToken,e.correlationId),u=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(m.RefreshTokenClientAcquireToken,e.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",e.correlationId),d=Ie.nowSeconds(),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(m.RefreshTokenClientExecuteTokenRequest,e.correlationId),[4,this.executeTokenRequest(e,this.authority)];case 1:return p=F.sent(),g=(s=p.headers)===null||s===void 0?void 0:s[Ce.X_MS_HTTP_VERSION],u==null||u.addStaticFields({refreshTokenSize:((c=p.body.refresh_token)===null||c===void 0?void 0:c.length)||0}),g&&(u==null||u.addStaticFields({httpVerToken:g})),v=(l=p.headers)===null||l===void 0?void 0:l[Ce.X_MS_REQUEST_ID],w=new Yt(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),w.validateTokenResponse(p.body),(a=this.performanceClient)===null||a===void 0||a.setPreQueueTime(m.HandleServerTokenResponse,e.correlationId),[2,w.handleServerTokenResponse(p.body,this.authority,d,e,void 0,void 0,!0,e.forceCache,v).then(function(P){return u==null||u.endMeasurement({success:!0}),P}).catch(function(P){throw B.logger.verbose("Error in fetching refresh token",e.correlationId),u==null||u.endMeasurement({errorCode:P.errorCode,subErrorCode:P.subError,success:!1}),P})]}})})},t.prototype.acquireTokenByRefreshToken=function(e){var r,i,o,s;return U(this,void 0,void 0,function(){var c,l,a;return H(this,function(u){if(!e)throw J.createEmptyTokenRequestError();if((r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(m.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),!e.account)throw b.createNoAccountInSilentRequestError();if(c=this.cacheManager.isAppMetadataFOCI(e.account.environment),c)try{return(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(m.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),[2,this.acquireTokenWithCachedRefreshToken(e,!0)]}catch(d){if(l=d instanceof Se&&d.errorCode===st.noTokensFoundError.code,a=d instanceof Ve&&d.errorCode===Xr.INVALID_GRANT_ERROR&&d.subError===Xr.CLIENT_MISMATCH_ERROR,l||a)return(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(m.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),[2,this.acquireTokenWithCachedRefreshToken(e,!1)];throw d}return(s=this.performanceClient)===null||s===void 0||s.setPreQueueTime(m.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),[2,this.acquireTokenWithCachedRefreshToken(e,!1)]})})},t.prototype.acquireTokenWithCachedRefreshToken=function(e,r){var i,o,s;return U(this,void 0,void 0,function(){var c,l,a;return H(this,function(u){if((i=this.performanceClient)===null||i===void 0||i.addQueueMeasurement(m.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),c=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(m.RefreshTokenClientAcquireTokenWithCachedRefreshToken,e.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",e.correlationId),l=this.cacheManager.getRefreshToken(e.account,r),!l)throw c==null||c.discardMeasurement(),Se.createNoTokensFoundError();return c==null||c.endMeasurement({success:!0}),a=Q(Q({},e),{refreshToken:l.secret,authenticationScheme:e.authenticationScheme||V.BEARER,ccsCredential:{credential:e.account.homeAccountId,type:Ee.HOME_ACCOUNT_ID}}),(s=this.performanceClient)===null||s===void 0||s.setPreQueueTime(m.RefreshTokenClientAcquireToken,e.correlationId),[2,this.acquireToken(a)]})})},t.prototype.executeTokenRequest=function(e,r){var i,o,s;return U(this,void 0,void 0,function(){var c,l,a,u,d,p;return H(this,function(g){switch(g.label){case 0:return(i=this.performanceClient)===null||i===void 0||i.addQueueMeasurement(m.RefreshTokenClientExecuteTokenRequest,e.correlationId),c=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(m.RefreshTokenClientExecuteTokenRequest,e.correlationId),(s=this.performanceClient)===null||s===void 0||s.setPreQueueTime(m.RefreshTokenClientCreateTokenRequestBody,e.correlationId),l=this.createTokenQueryParameters(e),a=q.appendQueryString(r.tokenEndpoint,l),[4,this.createTokenRequestBody(e)];case 1:return u=g.sent(),d=this.createTokenRequestHeaders(e.ccsCredential),p={clientId:this.config.authOptions.clientId,authority:r.canonicalAuthority,scopes:e.scopes,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid},[2,this.executePostToTokenEndpoint(a,u,d,p).then(function(v){return c==null||c.endMeasurement({success:!0}),v}).catch(function(v){throw c==null||c.endMeasurement({success:!1}),v})]}})})},t.prototype.createTokenRequestBody=function(e){var r,i,o;return U(this,void 0,void 0,function(){var s,c,l,a,u,d,p;return H(this,function(g){switch(g.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(m.RefreshTokenClientCreateTokenRequestBody,e.correlationId),s=e.correlationId,c=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(m.BaseClientCreateTokenRequestHeaders,s),l=new bt,l.addClientId(this.config.authOptions.clientId),l.addScopes(e.scopes),l.addGrantType(xt.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(s),l.addRefreshToken(e.refreshToken),this.config.clientCredentials.clientSecret&&l.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(a=this.config.clientCredentials.clientAssertion,l.addClientAssertion(a.assertion),l.addClientAssertionType(a.assertionType)),e.authenticationScheme!==V.POP?[3,2]:(u=new ct(this.cryptoUtils,this.performanceClient),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(m.PopTokenGenerateCnf,e.correlationId),[4,u.generateCnf(e)]);case 1:return d=g.sent(),l.addPopToken(d.reqCnfString),[3,3];case 2:if(e.authenticationScheme===V.SSH)if(e.sshJwk)l.addSshJwk(e.sshJwk);else throw c==null||c.endMeasurement({success:!1}),J.createMissingSshJwkError();g.label=3;case 3:if((!S.isEmptyObj(e.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&l.addClaims(e.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&e.ccsCredential)switch(e.ccsCredential.type){case Ee.HOME_ACCOUNT_ID:try{p=it(e.ccsCredential.credential),l.addCcsOid(p)}catch(v){this.logger.verbose("Could not parse home account ID for CCS Header: "+v)}break;case Ee.UPN:l.addCcsUpn(e.ccsCredential.credential);break}return c==null||c.endMeasurement({success:!0}),[2,l.createQueryString()]}})})},t}(pr);/*! @azure/msal-common v13.3.1 2023-10-27 */var Ao=function(n){ge(t,n);function t(e,r){return n.call(this,e,r)||this}return t.prototype.acquireToken=function(e){return U(this,void 0,void 0,function(){var r,i;return H(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.acquireCachedToken(e)];case 1:return[2,o.sent()];case 2:if(r=o.sent(),r instanceof b&&r.errorCode===T.tokenRefreshRequired.code)return i=new rn(this.config,this.performanceClient),[2,i.acquireTokenByRefreshToken(e)];throw r;case 3:return[2]}})})},t.prototype.acquireCachedToken=function(e){var r,i,o,s,c;return U(this,void 0,void 0,function(){var l,a;return H(this,function(u){switch(u.label){case 0:if(!e)throw J.createEmptyTokenRequestError();if(e.forceRefresh)throw(r=this.serverTelemetryManager)===null||r===void 0||r.setCacheOutcome(qe.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),b.createRefreshRequiredError();if(!this.config.cacheOptions.claimsBasedCachingEnabled&&!S.isEmptyObj(e.claims))throw(i=this.serverTelemetryManager)===null||i===void 0||i.setCacheOutcome(qe.CLAIMS_REQUESTED_CACHE_SKIPPED),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested."),b.createRefreshRequiredError();if(!e.account)throw b.createNoAccountInSilentRequestError();if(l=e.authority||this.authority.getPreferredCache(),a=this.cacheManager.readCacheRecord(e.account,e,l),a.accessToken){if(Ie.wasClockTurnedBack(a.accessToken.cachedAt)||Ie.isTokenExpired(a.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw(s=this.serverTelemetryManager)===null||s===void 0||s.setCacheOutcome(qe.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),b.createRefreshRequiredError();if(a.accessToken.refreshOn&&Ie.isTokenExpired(a.accessToken.refreshOn,0))throw(c=this.serverTelemetryManager)===null||c===void 0||c.setCacheOutcome(qe.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),b.createRefreshRequiredError()}else throw(o=this.serverTelemetryManager)===null||o===void 0||o.setCacheOutcome(qe.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),b.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(a,e)];case 1:return[2,u.sent()]}})})},t.prototype.generateResultFromCacheRecord=function(e,r){return U(this,void 0,void 0,function(){var i,o;return H(this,function(s){switch(s.label){case 0:if(e.idToken&&(i=new Re(e.idToken.secret,this.config.cryptoInterface)),r.maxAge||r.maxAge===0){if(o=i==null?void 0:i.claims.auth_time,!o)throw b.createAuthTimeNotFoundError();Re.checkMaxAge(o,r.maxAge)}return[4,Yt.generateAuthenticationResult(this.cryptoUtils,this.authority,e,!0,r,i)];case 1:return[2,s.sent()]}})})},t}(pr);/*! @azure/msal-common v13.3.1 2023-10-27 */function bo(n){return n.hasOwnProperty("authorization_endpoint")&&n.hasOwnProperty("token_endpoint")&&n.hasOwnProperty("issuer")&&n.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v13.3.1 2023-10-27 */var nn={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"]}]}}},on=nn.endpointMetadata,an=nn.instanceDiscoveryMetadata;/*! @azure/msal-common v13.3.1 2023-10-27 */var Rt;(function(n){n.AAD="AAD",n.OIDC="OIDC"})(Rt||(Rt={}));/*! @azure/msal-common v13.3.1 2023-10-27 */var yr=function(){function n(){this.expiresAt=Ie.nowSeconds()+wt.REFRESH_TIME_SECONDS}return n.prototype.updateCloudDiscoveryMetadata=function(t,e){this.aliases=t.aliases,this.preferred_cache=t.preferred_cache,this.preferred_network=t.preferred_network,this.aliasesFromNetwork=e},n.prototype.updateEndpointMetadata=function(t,e){this.authorization_endpoint=t.authorization_endpoint,this.token_endpoint=t.token_endpoint,this.end_session_endpoint=t.end_session_endpoint,this.issuer=t.issuer,this.endpointsFromNetwork=e,this.jwks_uri=t.jwks_uri},n.prototype.updateCanonicalAuthority=function(t){this.canonical_authority=t},n.prototype.resetExpiresAt=function(){this.expiresAt=Ie.nowSeconds()+wt.REFRESH_TIME_SECONDS},n.prototype.isExpired=function(){return this.expiresAt<=Ie.nowSeconds()},n.isAuthorityMetadataEntity=function(t,e){return e?t.indexOf(wt.CACHE_KEY)===0&&e.hasOwnProperty("aliases")&&e.hasOwnProperty("preferred_cache")&&e.hasOwnProperty("preferred_network")&&e.hasOwnProperty("canonical_authority")&&e.hasOwnProperty("authorization_endpoint")&&e.hasOwnProperty("token_endpoint")&&e.hasOwnProperty("issuer")&&e.hasOwnProperty("aliasesFromNetwork")&&e.hasOwnProperty("endpointsFromNetwork")&&e.hasOwnProperty("expiresAt")&&e.hasOwnProperty("jwks_uri"):!1},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */function ko(n){return n.hasOwnProperty("tenant_discovery_endpoint")&&n.hasOwnProperty("metadata")}/*! @azure/msal-common v13.3.1 2023-10-27 */function Ro(n){return n.hasOwnProperty("error")&&n.hasOwnProperty("error_description")}/*! @azure/msal-common v13.3.1 2023-10-27 */var No=function(){function n(t,e,r){this.networkInterface=t,this.performanceClient=e,this.correlationId=r}return n.prototype.detectRegion=function(t,e){var r,i,o,s;return U(this,void 0,void 0,function(){var c,l,a,u,d;return H(this,function(p){switch(p.label){case 0:if((r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(m.RegionDiscoveryDetectRegion,this.correlationId),c=t,c)return[3,8];l=n.IMDS_OPTIONS,p.label=1;case 1:return p.trys.push([1,6,,7]),(i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(m.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(f.IMDS_VERSION,l)];case 2:return a=p.sent(),a.status===ot.httpSuccess&&(c=a.body,e.region_source=Ke.IMDS),a.status!==ot.httpBadRequest?[3,5]:((o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(m.RegionDiscoveryGetCurrentVersion,this.correlationId),[4,this.getCurrentVersion(l)]);case 3:return u=p.sent(),u?((s=this.performanceClient)===null||s===void 0||s.setPreQueueTime(m.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(u,l)]):(e.region_source=Ke.FAILED_AUTO_DETECTION,[2,null]);case 4:d=p.sent(),d.status===ot.httpSuccess&&(c=d.body,e.region_source=Ke.IMDS),p.label=5;case 5:return[3,7];case 6:return p.sent(),e.region_source=Ke.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:e.region_source=Ke.ENVIRONMENT_VARIABLE,p.label=9;case 9:return c||(e.region_source=Ke.FAILED_AUTO_DETECTION),[2,c||null]}})})},n.prototype.getRegionFromIMDS=function(t,e){var r;return U(this,void 0,void 0,function(){return H(this,function(i){return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(m.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[2,this.networkInterface.sendGetRequestAsync(f.IMDS_ENDPOINT+"?api-version="+t+"&format=text",e,f.IMDS_TIMEOUT)]})})},n.prototype.getCurrentVersion=function(t){var e;return U(this,void 0,void 0,function(){var r;return H(this,function(i){switch(i.label){case 0:(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(m.RegionDiscoveryGetCurrentVersion,this.correlationId),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(f.IMDS_ENDPOINT+"?format=json",t)];case 2:return r=i.sent(),r.status===ot.httpBadRequest&&r.body&&r.body["newest-versions"]&&r.body["newest-versions"].length>0?[2,r.body["newest-versions"][0]]:[2,null];case 3:return i.sent(),[2,null];case 4:return[2]}})})},n.IMDS_OPTIONS={headers:{Metadata:"true"}},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Nt=function(){function n(t,e,r,i,o,s,c){this.canonicalAuthority=t,this._canonicalAuthority.validateAsUri(),this.networkInterface=e,this.cacheManager=r,this.authorityOptions=i,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=o,this.performanceClient=s,this.correlationId=c,this.regionDiscovery=new No(e,this.performanceClient,this.correlationId)}return n.prototype.getAuthorityType=function(t){if(t.HostNameAndPort.endsWith(f.CIAM_AUTH_URL))return fe.Ciam;var e=t.PathSegments;if(e.length)switch(e[0].toLowerCase()){case f.ADFS:return fe.Adfs;case f.DSTS:return fe.Dsts}return fe.Default},Object.defineProperty(n.prototype,"authorityType",{get:function(){return this.getAuthorityType(this.canonicalAuthorityUrlComponents)},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(t){this._canonicalAuthority=new q(t),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.authorization_endpoint);throw b.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint);throw b.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));throw b.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw b.createLogoutNotSupportedError();return this.replacePath(this.metadata.end_session_endpoint)}else throw b.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw b.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"jwksUri",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.jwks_uri);throw b.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),n.prototype.canReplaceTenant=function(t){return t.PathSegments.length===1&&!n.reservedTenantDomains.has(t.PathSegments[0])&&this.getAuthorityType(t)===fe.Default&&this.protocolMode===Rt.AAD},n.prototype.replaceTenant=function(t){return t.replace(/{tenant}|{tenantid}/g,this.tenant)},n.prototype.replacePath=function(t){var e=this,r=t,i=new q(this.metadata.canonical_authority),o=i.getUrlComponents(),s=o.PathSegments,c=this.canonicalAuthorityUrlComponents.PathSegments;return c.forEach(function(l,a){var u=s[a];if(a===0&&e.canReplaceTenant(o)){var d=new q(e.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];u!==d&&(e.logger.verbose("Replacing tenant domain name "+u+" with id "+d),u=d)}l!==u&&(r=r.replace("/"+u+"/","/"+l+"/"))}),this.replaceTenant(r)},Object.defineProperty(n.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===fe.Adfs||this.authorityType===fe.Dsts||this.protocolMode===Rt.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),n.prototype.discoveryComplete=function(){return!!this.metadata},n.prototype.resolveEndpointsAsync=function(){var t,e,r;return U(this,void 0,void 0,function(){var i,o,s,c;return H(this,function(l){switch(l.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(m.AuthorityResolveEndpointsAsync,this.correlationId),i=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort),i||(i=new yr,i.updateCanonicalAuthority(this.canonicalAuthority)),(e=this.performanceClient)===null||e===void 0||e.setPreQueueTime(m.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),[4,this.updateCloudDiscoveryMetadata(i)];case 1:return o=l.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,i.preferred_network),(r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(m.AuthorityUpdateEndpointMetadata,this.correlationId),[4,this.updateEndpointMetadata(i)];case 2:return s=l.sent(),o!==we.CACHE&&s!==we.CACHE&&(i.resetExpiresAt(),i.updateCanonicalAuthority(this.canonicalAuthority)),c=this.cacheManager.generateAuthorityMetadataCacheKey(i.preferred_cache),this.cacheManager.setAuthorityMetadata(c,i),this.metadata=i,[2]}})})},n.prototype.updateEndpointMetadata=function(t){var e,r,i,o,s,c;return U(this,void 0,void 0,function(){var l,a;return H(this,function(u){switch(u.label){case 0:return(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(m.AuthorityUpdateEndpointMetadata,this.correlationId),l=this.getEndpointMetadataFromConfig(),l?(t.updateEndpointMetadata(l,!1),[2,we.CONFIG]):this.isAuthoritySameType(t)&&t.endpointsFromNetwork&&!t.isExpired()?[2,we.CACHE]:((r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(m.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),[4,this.getEndpointMetadataFromNetwork()]);case 1:return l=u.sent(),l?!((i=this.authorityOptions.azureRegionConfiguration)===null||i===void 0)&&i.azureRegion?((o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(m.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(l)]):[3,3]:[3,4];case 2:l=u.sent(),u.label=3;case 3:return t.updateEndpointMetadata(l,!0),[2,we.NETWORK];case 4:return a=this.getEndpointMetadataFromHardcodedValues(),a&&!this.authorityOptions.skipAuthorityMetadataCache?!((s=this.authorityOptions.azureRegionConfiguration)===null||s===void 0)&&s.azureRegion?((c=this.performanceClient)===null||c===void 0||c.setPreQueueTime(m.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(a)]):[3,6]:[3,7];case 5:a=u.sent(),u.label=6;case 6:return t.updateEndpointMetadata(a,!1),[2,we.HARDCODED_VALUES];case 7:throw b.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},n.prototype.isAuthoritySameType=function(t){var e=new q(t.canonical_authority),r=e.getUrlComponents().PathSegments;return r.length===this.canonicalAuthorityUrlComponents.PathSegments.length},n.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw J.createInvalidAuthorityMetadataError()}return null},n.prototype.getEndpointMetadataFromNetwork=function(){var t;return U(this,void 0,void 0,function(){var e,r;return H(this,function(i){switch(i.label){case 0:(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(m.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),e={},i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,e)];case 2:return r=i.sent(),[2,bo(r.body)?r.body:null];case 3:return i.sent(),[2,null];case 4:return[2]}})})},n.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in on?on[this.canonicalAuthority]:null},n.prototype.updateMetadataWithRegionalInformation=function(t){var e,r,i,o;return U(this,void 0,void 0,function(){var s,c;return H(this,function(l){switch(l.label){case 0:return(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(m.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),s=(r=this.authorityOptions.azureRegionConfiguration)===null||r===void 0?void 0:r.azureRegion,s?s!==f.AZURE_REGION_AUTO_DISCOVER_FLAG?(this.regionDiscoveryMetadata.region_outcome=St.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=s,[2,n.replaceWithRegionalInformation(t,s)]):((i=this.performanceClient)===null||i===void 0||i.setPreQueueTime(m.RegionDiscoveryDetectRegion,this.correlationId),[4,this.regionDiscovery.detectRegion((o=this.authorityOptions.azureRegionConfiguration)===null||o===void 0?void 0:o.environmentRegion,this.regionDiscoveryMetadata)]):[3,2];case 1:if(c=l.sent(),c)return this.regionDiscoveryMetadata.region_outcome=St.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=c,[2,n.replaceWithRegionalInformation(t,c)];this.regionDiscoveryMetadata.region_outcome=St.AUTO_DETECTION_REQUESTED_FAILED,l.label=2;case 2:return[2,t]}})})},n.prototype.updateCloudDiscoveryMetadata=function(t){var e,r;return U(this,void 0,void 0,function(){var i,o,s;return H(this,function(c){switch(c.label){case 0:return(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(m.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),this.logger.verbose("Attempting to get cloud discovery metadata in the config"),this.logger.verbosePii("Known Authorities: "+(this.authorityOptions.knownAuthorities||f.NOT_APPLICABLE)),this.logger.verbosePii("Authority Metadata: "+(this.authorityOptions.authorityMetadata||f.NOT_APPLICABLE)),this.logger.verbosePii("Canonical Authority: "+(t.canonical_authority||f.NOT_APPLICABLE)),i=this.getCloudDiscoveryMetadataFromConfig(),i?(this.logger.verbose("Found cloud discovery metadata in the config."),t.updateCloudDiscoveryMetadata(i,!1),[2,we.CONFIG]):(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache."),o=t.isExpired(),this.isAuthoritySameType(t)&&t.aliasesFromNetwork&&!o?(this.logger.verbose("Found metadata in the cache."),[2,we.CACHE]):(o&&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."),(r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(m.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),[4,this.getCloudDiscoveryMetadataFromNetwork()]));case 1:if(i=c.sent(),i)return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"),t.updateCloudDiscoveryMetadata(i,!0),[2,we.NETWORK];if(this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."),s=this.getCloudDiscoveryMetadataFromHarcodedValues(),s&&!this.options.skipAuthorityMetadataCache)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),t.updateCloudDiscoveryMetadata(s,!1),[2,we.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."),J.createUntrustedAuthorityError()}})})},n.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityType===fe.Ciam)return this.logger.verbose("CIAM authorities do not support cloud discovery metadata, generate the aliases from authority host."),n.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 t=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),e=n.getCloudDiscoveryMetadataFromNetworkResponse(t.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),e)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),e;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."),J.createInvalidCloudDiscoveryMetadataError()}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null},n.prototype.getCloudDiscoveryMetadataFromNetwork=function(){var t;return U(this,void 0,void 0,function(){var e,r,i,o,s,c,l,a;return H(this,function(u){switch(u.label){case 0:(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(m.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),e=""+f.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",r={},i=null,u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(e,r)];case 2:if(o=u.sent(),s=void 0,c=void 0,ko(o.body))s=o.body,c=s.metadata,this.logger.verbosePii("tenant_discovery_endpoint is: "+s.tenant_discovery_endpoint);else if(Ro(o.body)){if(this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: "+o.status),s=o.body,s.error===f.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),[2,null];this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is "+s.error),this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is "+s.error_description),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),c=[]}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."),i=n.getCloudDiscoveryMetadataFromNetworkResponse(c,this.hostnameAndPort),[3,4];case 3:return l=u.sent(),l instanceof N?this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
Error Description: `+a.message)),[2,null];case 4:return i||(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."),i=n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,i]}})})},n.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in an?an[this.canonicalAuthority]:null},n.prototype.isInKnownAuthorities=function(){var t=this,e=this.authorityOptions.knownAuthorities.filter(function(r){return q.getDomainFromUrl(r).toLowerCase()===t.hostnameAndPort});return e.length>0},n.generateAuthority=function(t,e){var r;if(e&&e.azureCloudInstance!==At.None){var i=e.tenant?e.tenant:f.DEFAULT_COMMON_TENANT;r=e.azureCloudInstance+"/"+i+"/"}return r||t},n.createCloudDiscoveryMetadataFromHost=function(t){return{preferred_network:t,preferred_cache:t,aliases:[t]}},n.getCloudDiscoveryMetadataFromNetworkResponse=function(t,e){for(var r=0;r<t.length;r++){var i=t[r];if(i.aliases.indexOf(e)>-1)return i}return null},n.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw b.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},n.prototype.isAlias=function(t){return this.metadata.aliases.indexOf(t)>-1},n.isPublicCloudAuthority=function(t){return f.KNOWN_PUBLIC_CLOUDS.indexOf(t)>=0},n.buildRegionalAuthorityString=function(t,e,r){var i=new q(t);i.validateAsUri();var o=i.getUrlComponents(),s=e+"."+o.HostNameAndPort;this.isPublicCloudAuthority(o.HostNameAndPort)&&(s=e+"."+f.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var c=q.constructAuthorityUriFromObject(Q(Q({},i.getUrlComponents()),{HostNameAndPort:s})).urlString;return r?c+"?"+r:c},n.replaceWithRegionalInformation=function(t,e){return t.authorization_endpoint=n.buildRegionalAuthorityString(t.authorization_endpoint,e),t.token_endpoint=n.buildRegionalAuthorityString(t.token_endpoint,e,f.REGIONAL_AUTH_NON_MSI_QUERY_STRING),t.end_session_endpoint&&(t.end_session_endpoint=n.buildRegionalAuthorityString(t.end_session_endpoint,e)),t},n.transformCIAMAuthority=function(t){var e=t.endsWith(f.FORWARD_SLASH)?t:""+t+f.FORWARD_SLASH,r=new q(t),i=r.getUrlComponents();if(i.PathSegments.length===0&&i.HostNameAndPort.endsWith(f.CIAM_AUTH_URL)){var o=i.HostNameAndPort.split(".")[0];e=""+e+o+f.AAD_TENANT_DOMAIN_SUFFIX}return e},n.reservedTenantDomains=new Set(["{tenant}","{tenantid}",je.COMMON,je.CONSUMERS,je.ORGANIZATIONS]),n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Qt=function(){function n(){}return n.createDiscoveredInstance=function(t,e,r,i,o,s,c){return U(this,void 0,void 0,function(){var l,a,u;return H(this,function(d){switch(d.label){case 0:s==null||s.addQueueMeasurement(m.AuthorityFactoryCreateDiscoveredInstance,c),l=Nt.transformCIAMAuthority(t),a=n.createInstance(l,e,r,i,o,s,c),d.label=1;case 1:return d.trys.push([1,3,,4]),s==null||s.setPreQueueTime(m.AuthorityResolveEndpointsAsync,c),[4,a.resolveEndpointsAsync()];case 2:return d.sent(),[2,a];case 3:throw u=d.sent(),b.createEndpointDiscoveryIncompleteError(u);case 4:return[2]}})})},n.createInstance=function(t,e,r,i,o,s,c){if(S.isEmpty(t))throw J.createUrlEmptyError();return new Nt(t,e,r,i,o,s,c)},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var jt=function(){function n(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return n.isServerTelemetryEntity=function(t,e){var r=t.indexOf(ae.CACHE_KEY)===0,i=!0;return e&&(i=e.hasOwnProperty("failedRequests")&&e.hasOwnProperty("errors")&&e.hasOwnProperty("cacheHits")),r&&i},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var sn=function(){function n(){}return n.isThrottlingEntity=function(t,e){var r=!1;t&&(r=t.indexOf(It.THROTTLING_PREFIX)===0);var i=!0;return e&&(i=e.hasOwnProperty("throttleTime")),r&&i},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Po={sendGetRequestAsync:function(){var n="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(N.createUnexpectedError(n))},sendPostRequestAsync:function(){var n="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(N.createUnexpectedError(n))}};/*! @azure/msal-common v13.3.1 2023-10-27 */var Vt={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."}},cn=function(n){ge(t,n);function t(e,r){var i=n.call(this,e,r)||this;return i.name="JoseHeaderError",Object.setPrototypeOf(i,t.prototype),i}return t.createMissingKidError=function(){return new t(Vt.missingKidError.code,Vt.missingKidError.desc)},t.createMissingAlgError=function(){return new t(Vt.missingAlgError.code,Vt.missingAlgError.desc)},t}(N);/*! @azure/msal-common v13.3.1 2023-10-27 */var Mo=function(){function n(t){this.typ=t.typ,this.alg=t.alg,this.kid=t.kid}return n.getShrHeaderString=function(t){if(!t.kid)throw cn.createMissingKidError();if(!t.alg)throw cn.createMissingAlgError();var e=new n({typ:t.typ||dr.Pop,kid:t.kid,alg:t.alg});return JSON.stringify(e)},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var Oo=function(){function n(t,e){this.cacheOutcome=qe.NO_CACHE_HIT,this.cacheManager=e,this.apiId=t.apiId,this.correlationId=t.correlationId,this.wrapperSKU=t.wrapperSKU||f.EMPTY_STRING,this.wrapperVer=t.wrapperVer||f.EMPTY_STRING,this.telemetryCacheKey=ae.CACHE_KEY+ne.CACHE_KEY_SEPARATOR+t.clientId}return n.prototype.generateCurrentRequestHeaderValue=function(){var t=""+this.apiId+ae.VALUE_SEPARATOR+this.cacheOutcome,e=[this.wrapperSKU,this.wrapperVer].join(ae.VALUE_SEPARATOR),r=this.getRegionDiscoveryFields(),i=[t,r].join(ae.VALUE_SEPARATOR);return[ae.SCHEMA_VERSION,i,e].join(ae.CATEGORY_SEPARATOR)},n.prototype.generateLastRequestHeaderValue=function(){var t=this.getLastRequests(),e=n.maxErrorsToSend(t),r=t.failedRequests.slice(0,2*e).join(ae.VALUE_SEPARATOR),i=t.errors.slice(0,e).join(ae.VALUE_SEPARATOR),o=t.errors.length,s=e<o?ae.OVERFLOW_TRUE:ae.OVERFLOW_FALSE,c=[o,s].join(ae.VALUE_SEPARATOR);return[ae.SCHEMA_VERSION,t.cacheHits,r,i,c].join(ae.CATEGORY_SEPARATOR)},n.prototype.cacheFailedRequest=function(t){var e=this.getLastRequests();e.errors.length>=ae.MAX_CACHED_ERRORS&&(e.failedRequests.shift(),e.failedRequests.shift(),e.errors.shift()),e.failedRequests.push(this.apiId,this.correlationId),S.isEmpty(t.subError)?S.isEmpty(t.errorCode)?t&&t.toString()?e.errors.push(t.toString()):e.errors.push(ae.UNKNOWN_ERROR):e.errors.push(t.errorCode):e.errors.push(t.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e)},n.prototype.incrementCacheHits=function(){var t=this.getLastRequests();return t.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t),t.cacheHits},n.prototype.getLastRequests=function(){var t=new jt,e=this.cacheManager.getServerTelemetry(this.telemetryCacheKey);return e||t},n.prototype.clearTelemetryCache=function(){var t=this.getLastRequests(),e=n.maxErrorsToSend(t),r=t.errors.length;if(e===r)this.cacheManager.removeItem(this.telemetryCacheKey);else{var i=new jt;i.failedRequests=t.failedRequests.slice(e*2),i.errors=t.errors.slice(e),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,i)}},n.maxErrorsToSend=function(t){var e,r=0,i=0,o=t.errors.length;for(e=0;e<o;e++){var s=t.failedRequests[2*e]||f.EMPTY_STRING,c=t.failedRequests[2*e+1]||f.EMPTY_STRING,l=t.errors[e]||f.EMPTY_STRING;if(i+=s.toString().length+c.toString().length+l.length+3,i<ae.MAX_LAST_HEADER_BYTES)r+=1;else break}return r},n.prototype.getRegionDiscoveryFields=function(){var t=[];return t.push(this.regionUsed||f.EMPTY_STRING),t.push(this.regionSource||f.EMPTY_STRING),t.push(this.regionOutcome||f.EMPTY_STRING),t.join(",")},n.prototype.updateRegionDiscoveryMetadata=function(t){this.regionUsed=t.region_used,this.regionSource=t.region_source,this.regionOutcome=t.region_outcome},n.prototype.setCacheOutcome=function(t){this.cacheOutcome=t},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var un=function(){function n(t,e,r,i,o,s){this.authority=e,this.libraryName=i,this.libraryVersion=o,this.applicationTelemetry=s,this.clientId=t,this.logger=r,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.queueMeasurements=new Map,this.preQueueTimeByCorrelationId=new Map}return n.prototype.startPerformanceMeasurement=function(t,e){return{}},n.prototype.startPerformanceMeasuremeant=function(t,e){return{}},n.prototype.getIntFields=function(){return Io},n.prototype.getPreQueueTime=function(t,e){var r=this.preQueueTimeByCorrelationId.get(e);if(r){if(r.name!==t){this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue time found for "+t+", unable to add queue measurement");return}}else{this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue times found for correlationId: "+e+", unable to add queue measurement");return}return r.time},n.prototype.calculateQueuedTime=function(t,e){return t<1?(this.logger.trace("PerformanceClient: preQueueTime should be a positive integer and not "+t),0):e<1?(this.logger.trace("PerformanceClient: currentTime should be a positive integer and not "+e),0):e<t?(this.logger.trace("PerformanceClient: currentTime is less than preQueueTime, check how time is being retrieved"),0):e-t},n.prototype.addQueueMeasurement=function(t,e,r,i){if(!e){this.logger.trace("PerformanceClient.addQueueMeasurement: correlationId not provided for "+t+", cannot add queue measurement");return}if(r===0)this.logger.trace("PerformanceClient.addQueueMeasurement: queue time provided for "+t+" is "+r);else if(!r){this.logger.trace("PerformanceClient.addQueueMeasurement: no queue time provided for "+t);return}var o={eventName:t,queueTime:r,manuallyCompleted:i},s=this.queueMeasurements.get(e);if(s)s.push(o),this.queueMeasurements.set(e,s);else{this.logger.trace("PerformanceClient.addQueueMeasurement: adding correlationId "+e+" to queue measurements");var c=[o];this.queueMeasurements.set(e,c)}this.preQueueTimeByCorrelationId.delete(e)},n.prototype.startMeasurement=function(t,e){var r=this,i,o,s=e||this.generateId();e||this.logger.info("PerformanceClient: No correlation id provided for "+t+", generating",s),this.logger.trace("PerformanceClient: Performance measurement started for "+t,s);var c=this.startPerformanceMeasuremeant(t,s);c.startMeasurement();var l={eventId:this.generateId(),status:zt.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:t,startTimeMs:Date.now(),correlationId:s,appName:(i=this.applicationTelemetry)===null||i===void 0?void 0:i.appName,appVersion:(o=this.applicationTelemetry)===null||o===void 0?void 0:o.appVersion};return this.cacheEventByCorrelationId(l),{endMeasurement:function(a){return r.endMeasurement(Q(Q({},l),a),c)},discardMeasurement:function(){return r.discardMeasurements(l.correlationId)},addStaticFields:function(a){return r.addStaticFields(a,l.correlationId)},increment:function(a){return r.increment(a,l.correlationId)},measurement:c,event:l}},n.prototype.endMeasurement=function(t,e){var r=this,i,o,s=this.eventsByCorrelationId.get(t.correlationId);if(!s)return this.logger.trace("PerformanceClient: Measurement not found for "+t.eventId,t.correlationId),null;var c=t.eventId===s.eventId,l={totalQueueTime:0,totalQueueCount:0,manuallyCompletedCount:0};c?(l=this.getQueueInfo(t.correlationId),this.discardCache(s.correlationId)):(i=s.incompleteSubMeasurements)===null||i===void 0||i.delete(t.eventId),e==null||e.endMeasurement();var a=e==null?void 0:e.flushMeasurement();if(!a)return this.logger.trace("PerformanceClient: Performance measurement not taken",s.correlationId),null;if(this.logger.trace("PerformanceClient: Performance measurement ended for "+t.name+": "+a+" ms",t.correlationId),!c)return s[t.name+"DurationMs"]=Math.floor(a),Q({},s);var u=Q(Q({},s),t),d=0;return(o=u.incompleteSubMeasurements)===null||o===void 0||o.forEach(function(p){r.logger.trace("PerformanceClient: Incomplete submeasurement "+p.name+" found for "+t.name,u.correlationId),d++}),u.incompleteSubMeasurements=void 0,u=Q(Q({},u),{durationMs:Math.round(a),queuedTimeMs:l.totalQueueTime,queuedCount:l.totalQueueCount,queuedManuallyCompletedCount:l.manuallyCompletedCount,status:zt.Completed,incompleteSubsCount:d}),this.truncateIntegralFields(u,this.getIntFields()),this.emitEvents([u],t.correlationId),u},n.prototype.addStaticFields=function(t,e){this.logger.trace("PerformanceClient: Updating static fields");var r=this.eventsByCorrelationId.get(e);r?this.eventsByCorrelationId.set(e,Q(Q({},r),t)):this.logger.trace("PerformanceClient: Event not found for",e)},n.prototype.increment=function(t,e){this.logger.trace("PerformanceClient: Updating counters");var r=this.eventsByCorrelationId.get(e);if(r)for(var i in t)r.hasOwnProperty(i)||(r[i]=0),r[i]+=t[i];else this.logger.trace("PerformanceClient: Event not found for",e)},n.prototype.cacheEventByCorrelationId=function(t){var e=this.eventsByCorrelationId.get(t.correlationId);e?(this.logger.trace("PerformanceClient: Performance measurement for "+t.name+" added/updated",t.correlationId),e.incompleteSubMeasurements=e.incompleteSubMeasurements||new Map,e.incompleteSubMeasurements.set(t.eventId,{name:t.name,startTimeMs:t.startTimeMs})):(this.logger.trace("PerformanceClient: Performance measurement for "+t.name+" started",t.correlationId),this.eventsByCorrelationId.set(t.correlationId,Q({},t)))},n.prototype.getQueueInfo=function(t){var e=this.queueMeasurements.get(t);e||this.logger.trace("PerformanceClient: no queue measurements found for for correlationId: "+t);var r=0,i=0,o=0;return e==null||e.forEach(function(s){r+=s.queueTime,i++,o+=s.manuallyCompleted?1:0}),{totalQueueTime:r,totalQueueCount:i,manuallyCompletedCount:o}},n.prototype.discardMeasurements=function(t){this.logger.trace("PerformanceClient: Performance measurements discarded",t),this.eventsByCorrelationId.delete(t)},n.prototype.discardCache=function(t){this.discardMeasurements(t),this.logger.trace("PerformanceClient: QueueMeasurements discarded",t),this.queueMeasurements.delete(t),this.logger.trace("PerformanceClient: Pre-queue times discarded",t),this.preQueueTimeByCorrelationId.delete(t)},n.prototype.addPerformanceCallback=function(t){var e=this.generateId();return this.callbacks.set(e,t),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+e),e},n.prototype.removePerformanceCallback=function(t){var e=this.callbacks.delete(t);return e?this.logger.verbose("PerformanceClient: Performance callback "+t+" removed."):this.logger.verbose("PerformanceClient: Performance callback "+t+" not removed."),e},n.prototype.emitEvents=function(t,e){var r=this;this.logger.verbose("PerformanceClient: Emitting performance events",e),this.callbacks.forEach(function(i,o){r.logger.trace("PerformanceClient: Emitting event to callback "+o,e),i.apply(null,[t])})},n.prototype.truncateIntegralFields=function(t,e){e.forEach(function(r){r in t&&typeof t[r]=="number"&&(t[r]=Math.floor(t[r]))})},n}();/*! @azure/msal-common v13.3.1 2023-10-27 */var ln=function(){function n(){}return n.prototype.startMeasurement=function(){},n.prototype.endMeasurement=function(){},n.prototype.flushMeasurement=function(){return null},n}(),Uo=function(n){ge(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.generateId=function(){return"callback-id"},t.prototype.startPerformanceMeasuremeant=function(){return new ln},t.prototype.startPerformanceMeasurement=function(){return new ln},t.prototype.calculateQueuedTime=function(e,r){return 0},t.prototype.addQueueMeasurement=function(e,r,i){},t.prototype.setPreQueueTime=function(e,r){},t}(un);/*! @azure/msal-browser v2.38.3 2023-10-27 */var _={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."}},I=function(n){ie(t,n);function t(e,r){var i=n.call(this,e,r)||this;return Object.setPrototypeOf(i,t.prototype),i.name="BrowserAuthError",i}return t.createPkceNotGeneratedError=function(e){return new t(_.pkceNotGenerated.code,_.pkceNotGenerated.desc+" Detail:"+e)},t.createCryptoNotAvailableError=function(e){return new t(_.cryptoDoesNotExist.code,_.cryptoDoesNotExist.desc+" Detail:"+e)},t.createHttpMethodNotImplementedError=function(e){return new t(_.httpMethodNotImplementedError.code,_.httpMethodNotImplementedError.desc+" Given Method: "+e)},t.createEmptyNavigationUriError=function(){return new t(_.emptyNavigateUriError.code,_.emptyNavigateUriError.desc)},t.createEmptyHashError=function(e){return new t(_.hashEmptyError.code,_.hashEmptyError.desc+" Given Url: "+e)},t.createHashDoesNotContainStateError=function(){return new t(_.hashDoesNotContainStateError.code,_.hashDoesNotContainStateError.desc)},t.createHashDoesNotContainKnownPropertiesError=function(){return new t(_.hashDoesNotContainKnownPropertiesError.code,_.hashDoesNotContainKnownPropertiesError.desc)},t.createUnableToParseStateError=function(){return new t(_.unableToParseStateError.code,_.unableToParseStateError.desc)},t.createStateInteractionTypeMismatchError=function(){return new t(_.stateInteractionTypeMismatchError.code,_.stateInteractionTypeMismatchError.desc)},t.createInteractionInProgressError=function(){return new t(_.interactionInProgress.code,_.interactionInProgress.desc)},t.createPopupWindowError=function(e){var r=_.popupWindowError.desc;return r=S.isEmpty(e)?r:r+" Details: "+e,new t(_.popupWindowError.code,r)},t.createEmptyWindowCreatedError=function(){return new t(_.emptyWindowError.code,_.emptyWindowError.desc)},t.createUserCancelledError=function(){return new t(_.userCancelledError.code,_.userCancelledError.desc)},t.createMonitorPopupTimeoutError=function(){return new t(_.monitorPopupTimeoutError.code,_.monitorPopupTimeoutError.desc)},t.createMonitorIframeTimeoutError=function(){return new t(_.monitorIframeTimeoutError.code,_.monitorIframeTimeoutError.desc)},t.createRedirectInIframeError=function(e){return new t(_.redirectInIframeError.code,_.redirectInIframeError.desc+" (window.parent !== window) => "+e)},t.createBlockReloadInHiddenIframeError=function(){return new t(_.blockTokenRequestsInHiddenIframeError.code,_.blockTokenRequestsInHiddenIframeError.desc)},t.createBlockAcquireTokenInPopupsError=function(){return new t(_.blockAcquireTokenInPopupsError.code,_.blockAcquireTokenInPopupsError.desc)},t.createIframeClosedPrematurelyError=function(){return new t(_.iframeClosedPrematurelyError.code,_.iframeClosedPrematurelyError.desc)},t.createSilentLogoutUnsupportedError=function(){return new t(_.silentLogoutUnsupportedError.code,_.silentLogoutUnsupportedError.desc)},t.createNoAccountError=function(){return new t(_.noAccountError.code,_.noAccountError.desc)},t.createSilentPromptValueError=function(e){return new t(_.silentPromptValueError.code,_.silentPromptValueError.desc+" Given value: "+e)},t.createUnableToParseTokenRequestCacheError=function(){return new t(_.unableToParseTokenRequestCacheError.code,_.unableToParseTokenRequestCacheError.desc)},t.createNoTokenRequestCacheError=function(){return new t(_.noTokenRequestCacheError.code,_.noTokenRequestCacheError.desc)},t.createAuthRequestNotSetError=function(){return new t(_.authRequestNotSet.code,_.authRequestNotSet.desc)},t.createNoCachedAuthorityError=function(){return new t(_.noCachedAuthorityError.code,_.noCachedAuthorityError.desc)},t.createInvalidCacheTypeError=function(){return new t(_.invalidCacheType.code,""+_.invalidCacheType.desc)},t.createNonBrowserEnvironmentError=function(){return new t(_.notInBrowserEnvironment.code,_.notInBrowserEnvironment.desc)},t.createDatabaseNotOpenError=function(){return new t(_.databaseNotOpen.code,_.databaseNotOpen.desc)},t.createNoNetworkConnectivityError=function(){return new t(_.noNetworkConnectivity.code,_.noNetworkConnectivity.desc)},t.createPostRequestFailedError=function(e,r){return new t(_.postRequestFailed.code,_.postRequestFailed.desc+" | Network client threw: "+e+" | Attempted to reach: "+r.split("?")[0])},t.createGetRequestFailedError=function(e,r){return new t(_.getRequestFailed.code,_.getRequestFailed.desc+" | Network client threw: "+e+" | Attempted to reach: "+r.split("?")[0])},t.createFailedToParseNetworkResponseError=function(e){return new t(_.failedToParseNetworkResponse.code,_.failedToParseNetworkResponse.desc+" | Attempted to reach: "+e.split("?")[0])},t.createUnableToLoadTokenError=function(e){return new t(_.unableToLoadTokenError.code,_.unableToLoadTokenError.desc+" | "+e)},t.createSigningKeyNotFoundInStorageError=function(e){return new t(_.signingKeyNotFoundInStorage.code,_.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+e)},t.createAuthCodeRequiredError=function(){return new t(_.authCodeRequired.code,_.authCodeRequired.desc)},t.createAuthCodeOrNativeAccountIdRequiredError=function(){return new t(_.authCodeOrNativeAccountRequired.code,_.authCodeOrNativeAccountRequired.desc)},t.createSpaCodeAndNativeAccountIdPresentError=function(){return new t(_.spaCodeAndNativeAccountPresent.code,_.spaCodeAndNativeAccountPresent.desc)},t.createDatabaseUnavailableError=function(){return new t(_.databaseUnavailable.code,_.databaseUnavailable.desc)},t.createUnableToAcquireTokenFromNativePlatformError=function(){return new t(_.unableToAcquireTokenFromNativePlatform.code,_.unableToAcquireTokenFromNativePlatform.desc)},t.createNativeHandshakeTimeoutError=function(){return new t(_.nativeHandshakeTimeout.code,_.nativeHandshakeTimeout.desc)},t.createNativeExtensionNotInstalledError=function(){return new t(_.nativeExtensionNotInstalled.code,_.nativeExtensionNotInstalled.desc)},t.createNativeConnectionNotEstablishedError=function(){return new t(_.nativeConnectionNotEstablished.code,_.nativeConnectionNotEstablished.desc)},t.createNativeBrokerCalledBeforeInitialize=function(){return new t(_.nativeBrokerCalledBeforeInitialize.code,_.nativeBrokerCalledBeforeInitialize.desc)},t.createNativePromptParameterNotSupportedError=function(){return new t(_.nativePromptNotSupported.code,_.nativePromptNotSupported.desc)},t}(N);/*! @azure/msal-browser v2.38.3 2023-10-27 */var ke={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"},Pt={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},Le;(function(n){n.HandshakeRequest="Handshake",n.HandshakeResponse="HandshakeResponse",n.GetToken="GetToken",n.Response="Response"})(Le||(Le={}));var ee;(function(n){n.LocalStorage="localStorage",n.SessionStorage="sessionStorage",n.MemoryStorage="memoryStorage"})(ee||(ee={}));var Ne;(function(n){n.GET="GET",n.POST="POST"})(Ne||(Ne={}));var z;(function(n){n.AUTHORITY="authority",n.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",n.SESSION_STATE="session.state",n.REQUEST_STATE="request.state",n.NONCE_IDTOKEN="nonce.id_token",n.ORIGIN_URI="request.origin",n.RENEW_STATUS="token.renew.status",n.URL_HASH="urlHash",n.REQUEST_PARAMS="request.params",n.SCOPES="scopes",n.INTERACTION_STATUS_KEY="interaction.status",n.CCS_CREDENTIAL="ccs.credential",n.CORRELATION_ID="request.correlationId",n.NATIVE_REQUEST="request.native",n.REDIRECT_CONTEXT="request.redirect.context"})(z||(z={}));var Pe;(function(n){n.ACCOUNT_KEYS="msal.account.keys",n.TOKEN_KEYS="msal.token.keys"})(Pe||(Pe={}));var ut;(function(n){n.WRAPPER_SKU="wrapper.sku",n.WRAPPER_VER="wrapper.version"})(ut||(ut={}));var X;(function(n){n[n.acquireTokenRedirect=861]="acquireTokenRedirect",n[n.acquireTokenPopup=862]="acquireTokenPopup",n[n.ssoSilent=863]="ssoSilent",n[n.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",n[n.handleRedirectPromise=865]="handleRedirectPromise",n[n.acquireTokenByCode=866]="acquireTokenByCode",n[n.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",n[n.logout=961]="logout",n[n.logoutPopup=962]="logoutPopup"})(X||(X={}));var k;(function(n){n.Redirect="redirect",n.Popup="popup",n.Silent="silent",n.None="none"})(k||(k={}));var dn;(function(n){n.Startup="startup",n.Login="login",n.Logout="logout",n.AcquireToken="acquireToken",n.SsoSilent="ssoSilent",n.HandleRedirect="handleRedirect",n.None="none"})(dn||(dn={}));var hn={scopes:Et},lt="jwk",fn;(function(n){n.React="@azure/msal-react",n.Angular="@azure/msal-angular"})(fn||(fn={}));var Cr="msal.db",Ho=1,Do=Cr+".keys",ve;(function(n){n[n.Default=0]="Default",n[n.AccessToken=1]="AccessToken",n[n.AccessTokenAndRefreshToken=2]="AccessTokenAndRefreshToken",n[n.RefreshToken=3]="RefreshToken",n[n.RefreshTokenAndNetwork=4]="RefreshTokenAndNetwork",n[n.Skip=5]="Skip"})(ve||(ve={}));/*! @azure/msal-browser v2.38.3 2023-10-27 */var ye={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."}},Wt=function(n){ie(t,n);function t(e,r){var i=n.call(this,e,r)||this;return i.name="BrowserConfigurationAuthError",Object.setPrototypeOf(i,t.prototype),i}return t.createRedirectUriEmptyError=function(){return new t(ye.redirectUriNotSet.code,ye.redirectUriNotSet.desc)},t.createPostLogoutRedirectUriEmptyError=function(){return new t(ye.postLogoutUriNotSet.code,ye.postLogoutUriNotSet.desc)},t.createStorageNotSupportedError=function(e){return new t(ye.storageNotSupportedError.code,ye.storageNotSupportedError.desc+" Given Location: "+e)},t.createRedirectCallbacksNotSetError=function(){return new t(ye.noRedirectCallbacksSet.code,ye.noRedirectCallbacksSet.desc)},t.createStubPcaInstanceCalledError=function(){return new t(ye.stubPcaInstanceCalled.code,ye.stubPcaInstanceCalled.desc)},t.createInMemoryRedirectUnavailableError=function(){return new t(ye.inMemRedirectUnavailable.code,ye.inMemRedirectUnavailable.desc)},t.createEntropyNotProvided=function(){return new t(ye.entropyNotProvided.code,ye.entropyNotProvided.desc)},t}(N);/*! @azure/msal-browser v2.38.3 2023-10-27 */var pn=function(){function n(t){this.validateWindowStorage(t),this.windowStorage=window[t]}return n.prototype.validateWindowStorage=function(t){if(t!==ee.LocalStorage&&t!==ee.SessionStorage)throw Wt.createStorageNotSupportedError(t);var e=!!window[t];if(!e)throw Wt.createStorageNotSupportedError(t)},n.prototype.getItem=function(t){return this.windowStorage.getItem(t)},n.prototype.setItem=function(t,e){this.windowStorage.setItem(t,e)},n.prototype.removeItem=function(t){this.windowStorage.removeItem(t)},n.prototype.getKeys=function(){return Object.keys(this.windowStorage)},n.prototype.containsKey=function(t){return this.windowStorage.hasOwnProperty(t)},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Er=function(){function n(){this.cache=new Map}return n.prototype.getItem=function(t){return this.cache.get(t)||null},n.prototype.setItem=function(t,e){this.cache.set(t,e)},n.prototype.removeItem=function(t){this.cache.delete(t)},n.prototype.getKeys=function(){var t=[];return this.cache.forEach(function(e,r){t.push(r)}),t},n.prototype.containsKey=function(t){return this.cache.has(t)},n.prototype.clear=function(){this.cache.clear()},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var gn=function(){function n(){}return n.extractBrowserRequestState=function(t,e){if(S.isEmpty(e))return null;try{var r=De.parseRequestState(t,e);return r.libraryState.meta}catch(i){throw b.createInvalidStateError(e,i)}},n.parseServerResponseFromHash=function(t){if(!t)return{};var e=new q(t);return q.getDeserializedHash(e.getHash())},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var _r=function(n){ie(t,n);function t(e,r,i,o){var s=n.call(this,e,i,o)||this;return s.COOKIE_LIFE_MULTIPLIER=24*60*60*1e3,s.cacheConfig=r,s.logger=o,s.internalStorage=new Er,s.browserStorage=s.setupBrowserStorage(s.cacheConfig.cacheLocation),s.temporaryCacheStorage=s.setupTemporaryCacheStorage(s.cacheConfig.temporaryCacheLocation,s.cacheConfig.cacheLocation),r.cacheMigrationEnabled&&(s.migrateCacheEntries(),s.createKeyMaps()),s}return t.prototype.setupBrowserStorage=function(e){switch(e){case ee.LocalStorage:case ee.SessionStorage:try{return new pn(e)}catch(r){this.logger.verbose(r);break}}return this.cacheConfig.cacheLocation=ee.MemoryStorage,new Er},t.prototype.setupTemporaryCacheStorage=function(e,r){switch(r){case ee.LocalStorage:case ee.SessionStorage:try{return new pn(e||ee.SessionStorage)}catch(i){return this.logger.verbose(i),this.internalStorage}case ee.MemoryStorage:default:return this.internalStorage}},t.prototype.migrateCacheEntries=function(){var e=this,r=f.CACHE_PREFIX+"."+re.ID_TOKEN,i=f.CACHE_PREFIX+"."+re.CLIENT_INFO,o=f.CACHE_PREFIX+"."+re.ERROR,s=f.CACHE_PREFIX+"."+re.ERROR_DESC,c=this.browserStorage.getItem(r),l=this.browserStorage.getItem(i),a=this.browserStorage.getItem(o),u=this.browserStorage.getItem(s),d=[c,l,a,u],p=[re.ID_TOKEN,re.CLIENT_INFO,re.ERROR,re.ERROR_DESC];p.forEach(function(g,v){return e.migrateCacheEntry(g,d[v])})},t.prototype.migrateCacheEntry=function(e,r){r&&this.setTemporaryCache(e,r,!0)},t.prototype.createKeyMaps=function(){var e=this;this.logger.trace("BrowserCacheManager - createKeyMaps called.");var r=this.getItem(Pe.ACCOUNT_KEYS),i=this.getItem(Pe.TOKEN_KEYS+"."+this.clientId);if(r&&i){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}var o=this.browserStorage.getKeys();o.forEach(function(s){if(e.isCredentialKey(s)){var c=e.getItem(s);if(c){var l=e.validateAndParseJson(c);if(l&&l.hasOwnProperty("credentialType"))switch(l.credentialType){case M.ID_TOKEN:if(Je.isIdTokenEntity(l)){e.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),e.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: "+s+" found, saving key to token key map");var a=me.toObject(new Je,l),u=e.updateCredentialCacheKey(s,a);e.addTokenKey(u,M.ID_TOKEN);return}else e.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),e.logger.tracePii("BrowserCacheManager:createKeyMaps - failed idToken validation on key: "+s);break;case M.ACCESS_TOKEN:case M.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(Xe.isAccessTokenEntity(l)){e.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),e.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: "+s+" found, saving key to token key map");var d=me.toObject(new Xe,l),u=e.updateCredentialCacheKey(s,d);e.addTokenKey(u,M.ACCESS_TOKEN);return}else e.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),e.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: "+s);break;case M.REFRESH_TOKEN:if(at.isRefreshTokenEntity(l)){e.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),e.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: "+s+" found, saving key to token key map");var p=me.toObject(new at,l),u=e.updateCredentialCacheKey(s,p);e.addTokenKey(u,M.REFRESH_TOKEN);return}else e.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),e.logger.tracePii("BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: "+s);break}}}if(e.isAccountKey(s)){var c=e.getItem(s);if(c){var g=e.validateAndParseJson(c);g&&se.isAccountEntity(g)&&(e.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),e.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: "+s+" found, saving key to account key map"),e.addAccountKeyToMap(s))}}})},t.prototype.validateAndParseJson=function(e){try{var r=JSON.parse(e);return r&&typeof r=="object"?r:null}catch{return null}},t.prototype.getItem=function(e){return this.browserStorage.getItem(e)},t.prototype.setItem=function(e,r){this.browserStorage.setItem(e,r)},t.prototype.getAccount=function(e){this.logger.trace("BrowserCacheManager.getAccount called");var r=this.getItem(e);if(!r)return this.removeAccountKeyFromMap(e),null;var i=this.validateAndParseJson(r);return!i||!se.isAccountEntity(i)?(this.removeAccountKeyFromMap(e),null):me.toObject(new se,i)},t.prototype.setAccount=function(e){this.logger.trace("BrowserCacheManager.setAccount called");var r=e.generateAccountKey();this.setItem(r,JSON.stringify(e)),this.addAccountKeyToMap(r)},t.prototype.getAccountKeys=function(){this.logger.trace("BrowserCacheManager.getAccountKeys called");var e=this.getItem(Pe.ACCOUNT_KEYS);return e?JSON.parse(e):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])},t.prototype.addAccountKeyToMap=function(e){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii("BrowserCacheManager.addAccountKeyToMap called with key: "+e);var r=this.getAccountKeys();r.indexOf(e)===-1?(r.push(e),this.setItem(Pe.ACCOUNT_KEYS,JSON.stringify(r)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")},t.prototype.removeAccountKeyFromMap=function(e){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii("BrowserCacheManager.removeAccountKeyFromMap called with key: "+e);var r=this.getAccountKeys(),i=r.indexOf(e);i>-1?(r.splice(i,1),this.setItem(Pe.ACCOUNT_KEYS,JSON.stringify(r)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")},t.prototype.removeAccount=function(e){return y(this,void 0,void 0,function(){return C(this,function(r){return n.prototype.removeAccount.call(this,e),this.removeAccountKeyFromMap(e),[2]})})},t.prototype.removeIdToken=function(e){n.prototype.removeIdToken.call(this,e),this.removeTokenKey(e,M.ID_TOKEN)},t.prototype.removeAccessToken=function(e){return y(this,void 0,void 0,function(){return C(this,function(r){return n.prototype.removeAccessToken.call(this,e),this.removeTokenKey(e,M.ACCESS_TOKEN),[2]})})},t.prototype.removeRefreshToken=function(e){n.prototype.removeRefreshToken.call(this,e),this.removeTokenKey(e,M.REFRESH_TOKEN)},t.prototype.getTokenKeys=function(){this.logger.trace("BrowserCacheManager.getTokenKeys called");var e=this.getItem(Pe.TOKEN_KEYS+"."+this.clientId);if(e){var r=this.validateAndParseJson(e);if(r&&r.hasOwnProperty("idToken")&&r.hasOwnProperty("accessToken")&&r.hasOwnProperty("refreshToken"))return r;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:[]}},t.prototype.addTokenKey=function(e,r){this.logger.trace("BrowserCacheManager addTokenKey called");var i=this.getTokenKeys();switch(r){case M.ID_TOKEN:i.idToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),i.idToken.push(e));break;case M.ACCESS_TOKEN:i.accessToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),i.accessToken.push(e));break;case M.REFRESH_TOKEN:i.refreshToken.indexOf(e)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),i.refreshToken.push(e));break;default:this.logger.error("BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: "+r),b.createUnexpectedCredentialTypeError()}this.setItem(Pe.TOKEN_KEYS+"."+this.clientId,JSON.stringify(i))},t.prototype.removeTokenKey=function(e,r){this.logger.trace("BrowserCacheManager removeTokenKey called");var i=this.getTokenKeys();switch(r){case M.ID_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: "+e+" from map");var o=i.idToken.indexOf(e);o>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),i.idToken.splice(o,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case M.ACCESS_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: "+e+" from map");var s=i.accessToken.indexOf(e);s>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),i.accessToken.splice(s,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case M.REFRESH_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: "+e+" from map");var c=i.refreshToken.indexOf(e);c>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),i.refreshToken.splice(c,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: "+r),b.createUnexpectedCredentialTypeError()}this.setItem(Pe.TOKEN_KEYS+"."+this.clientId,JSON.stringify(i))},t.prototype.getIdTokenCredential=function(e){var r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,M.ID_TOKEN),null;var i=this.validateAndParseJson(r);return!i||!Je.isIdTokenEntity(i)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(e,M.ID_TOKEN),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),me.toObject(new Je,i))},t.prototype.setIdTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var r=e.generateCredentialKey();this.setItem(r,JSON.stringify(e)),this.addTokenKey(r,M.ID_TOKEN)},t.prototype.getAccessTokenCredential=function(e){var r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,M.ACCESS_TOKEN),null;var i=this.validateAndParseJson(r);return!i||!Xe.isAccessTokenEntity(i)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(e,M.ACCESS_TOKEN),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),me.toObject(new Xe,i))},t.prototype.setAccessTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var r=e.generateCredentialKey();this.setItem(r,JSON.stringify(e)),this.addTokenKey(r,M.ACCESS_TOKEN)},t.prototype.getRefreshTokenCredential=function(e){var r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,M.REFRESH_TOKEN),null;var i=this.validateAndParseJson(r);return!i||!at.isRefreshTokenEntity(i)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(e,M.REFRESH_TOKEN),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),me.toObject(new at,i))},t.prototype.setRefreshTokenCredential=function(e){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var r=e.generateCredentialKey();this.setItem(r,JSON.stringify(e)),this.addTokenKey(r,M.REFRESH_TOKEN)},t.prototype.getAppMetadata=function(e){var r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var i=this.validateAndParseJson(r);return!i||!vr.isAppMetadataEntity(e,i)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),me.toObject(new vr,i))},t.prototype.setAppMetadata=function(e){this.logger.trace("BrowserCacheManager.setAppMetadata called");var r=e.generateAppMetadataKey();this.setItem(r,JSON.stringify(e))},t.prototype.getServerTelemetry=function(e){var r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var i=this.validateAndParseJson(r);return!i||!jt.isServerTelemetryEntity(e,i)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),me.toObject(new jt,i))},t.prototype.setServerTelemetry=function(e,r){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(e,JSON.stringify(r))},t.prototype.getAuthorityMetadata=function(e){var r=this.internalStorage.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var i=this.validateAndParseJson(r);return i&&yr.isAuthorityMetadataEntity(e,i)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),me.toObject(new yr,i)):null},t.prototype.getAuthorityMetadataKeys=function(){var e=this,r=this.internalStorage.getKeys();return r.filter(function(i){return e.isAuthorityMetadata(i)})},t.prototype.setWrapperMetadata=function(e,r){this.internalStorage.setItem(ut.WRAPPER_SKU,e),this.internalStorage.setItem(ut.WRAPPER_VER,r)},t.prototype.getWrapperMetadata=function(){var e=this.internalStorage.getItem(ut.WRAPPER_SKU)||f.EMPTY_STRING,r=this.internalStorage.getItem(ut.WRAPPER_VER)||f.EMPTY_STRING;return[e,r]},t.prototype.setAuthorityMetadata=function(e,r){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(e,JSON.stringify(r))},t.prototype.getActiveAccount=function(){var e=this.generateCacheKey(re.ACTIVE_ACCOUNT_FILTERS),r=this.getItem(e);if(!r){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");var i=this.generateCacheKey(re.ACTIVE_ACCOUNT),o=this.getItem(i);if(!o)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;var s=this.getAccountInfoByFilter({localAccountId:o})[0]||null;return s?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(s),s):null}var c=this.validateAndParseJson(r);return c?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:c.homeAccountId,localAccountId:c.localAccountId})[0]||null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)},t.prototype.setActiveAccount=function(e){var r=this.generateCacheKey(re.ACTIVE_ACCOUNT_FILTERS),i=this.generateCacheKey(re.ACTIVE_ACCOUNT);if(e){this.logger.verbose("setActiveAccount: Active account set");var o={homeAccountId:e.homeAccountId,localAccountId:e.localAccountId};this.browserStorage.setItem(r,JSON.stringify(o)),this.browserStorage.setItem(i,e.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(r),this.browserStorage.removeItem(i)},t.prototype.getAccountInfoByFilter=function(e){var r=this.getAllAccounts();return this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total "+r.length+" accounts found"),r.filter(function(i){return!(e.username&&e.username.toLowerCase()!==i.username.toLowerCase()||e.homeAccountId&&e.homeAccountId!==i.homeAccountId||e.localAccountId&&e.localAccountId!==i.localAccountId||e.tenantId&&e.tenantId!==i.tenantId||e.environment&&e.environment!==i.environment)})},t.prototype.getAccountInfoByHints=function(e,r){var i=this.getAllAccounts().filter(function(o){if(r){var s=o.idTokenClaims&&o.idTokenClaims.sid;return r===s}return e?e===o.username:!1});if(i.length===1)return i[0];if(i.length>1)throw b.createMultipleMatchingAccountsInCacheError();return null},t.prototype.getThrottlingCache=function(e){var r=this.getItem(e);if(!r)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var i=this.validateAndParseJson(r);return!i||!sn.isThrottlingEntity(e,i)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),me.toObject(new sn,i))},t.prototype.setThrottlingCache=function(e,r){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(e,JSON.stringify(r))},t.prototype.getTemporaryCache=function(e,r){var i=r?this.generateCacheKey(e):e;if(this.cacheConfig.storeAuthStateInCookie){var o=this.getItemCookie(i);if(o)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),o}var s=this.temporaryCacheStorage.getItem(i);if(!s){if(this.cacheConfig.cacheLocation===ee.LocalStorage){var c=this.browserStorage.getItem(i);if(c)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),c}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),s},t.prototype.setTemporaryCache=function(e,r,i){var o=i?this.generateCacheKey(e):e;this.temporaryCacheStorage.setItem(o,r),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(o,r))},t.prototype.removeItem=function(e){this.browserStorage.removeItem(e),this.temporaryCacheStorage.removeItem(e),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(e))},t.prototype.containsKey=function(e){return this.browserStorage.containsKey(e)||this.temporaryCacheStorage.containsKey(e)},t.prototype.getKeys=function(){return cr(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},t.prototype.clear=function(){return y(this,void 0,void 0,function(){var e=this;return C(this,function(r){switch(r.label){case 0:return[4,this.removeAllAccounts()];case 1:return r.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(i){(e.browserStorage.containsKey(i)||e.temporaryCacheStorage.containsKey(i))&&(i.indexOf(f.CACHE_PREFIX)!==-1||i.indexOf(e.clientId)!==-1)&&e.removeItem(i)}),this.internalStorage.clear(),[2]}})})},t.prototype.clearTokensAndKeysWithClaims=function(){return y(this,void 0,void 0,function(){var e,r,i=this;return C(this,function(o){switch(o.label){case 0:return this.logger.trace("BrowserCacheManager.clearTokensAndKeysWithClaims called"),e=this.getTokenKeys(),r=[],e.accessToken.forEach(function(s){var c=i.getAccessTokenCredential(s);c!=null&&c.requestedClaimsHash&&s.includes(c.requestedClaimsHash.toLowerCase())&&r.push(i.removeAccessToken(s))}),[4,Promise.all(r)];case 1:return o.sent(),r.length>0&&this.logger.warning(r.length+" access tokens with claims in the cache keys have been removed from the cache."),[2]}})})},t.prototype.setItemCookie=function(e,r,i){var o=encodeURIComponent(e)+"="+encodeURIComponent(r)+";path=/;SameSite=Lax;";if(i){var s=this.getCookieExpirationTime(i);o+="expires="+s+";"}this.cacheConfig.secureCookies&&(o+="Secure;"),document.cookie=o},t.prototype.getItemCookie=function(e){for(var r=encodeURIComponent(e)+"=",i=document.cookie.split(";"),o=0;o<i.length;o++){for(var s=i[o];s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(r)===0)return decodeURIComponent(s.substring(r.length,s.length))}return f.EMPTY_STRING},t.prototype.clearMsalCookies=function(){var e=this,r=f.CACHE_PREFIX+"."+this.clientId,i=document.cookie.split(";");i.forEach(function(o){for(;o.charAt(0)===" ";)o=o.substring(1);if(o.indexOf(r)===0){var s=o.split("=")[0];e.clearItemCookie(s)}})},t.prototype.clearItemCookie=function(e){this.setItemCookie(e,f.EMPTY_STRING,-1)},t.prototype.getCookieExpirationTime=function(e){var r=new Date,i=new Date(r.getTime()+e*this.COOKIE_LIFE_MULTIPLIER);return i.toUTCString()},t.prototype.getCache=function(){return this.browserStorage},t.prototype.setCache=function(){},t.prototype.generateCacheKey=function(e){var r=this.validateAndParseJson(e);return r?JSON.stringify(e):S.startsWith(e,f.CACHE_PREFIX)||S.startsWith(e,re.ADAL_ID_TOKEN)?e:f.CACHE_PREFIX+"."+this.clientId+"."+e},t.prototype.generateAuthorityKey=function(e){var r=De.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(z.AUTHORITY+"."+r)},t.prototype.generateNonceKey=function(e){var r=De.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(z.NONCE_IDTOKEN+"."+r)},t.prototype.generateStateKey=function(e){var r=De.parseRequestState(this.cryptoImpl,e).libraryState.id;return this.generateCacheKey(z.REQUEST_STATE+"."+r)},t.prototype.getCachedAuthority=function(e){var r=this.generateStateKey(e),i=this.getTemporaryCache(r);if(!i)return null;var o=this.generateAuthorityKey(i);return this.getTemporaryCache(o)},t.prototype.updateCacheEntries=function(e,r,i,o,s){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var c=this.generateStateKey(e);this.setTemporaryCache(c,e,!1);var l=this.generateNonceKey(e);this.setTemporaryCache(l,r,!1);var a=this.generateAuthorityKey(e);if(this.setTemporaryCache(a,i,!1),s){var u={credential:s.homeAccountId,type:Ee.HOME_ACCOUNT_ID};this.setTemporaryCache(z.CCS_CREDENTIAL,JSON.stringify(u),!0)}else if(!S.isEmpty(o)){var u={credential:o,type:Ee.UPN};this.setTemporaryCache(z.CCS_CREDENTIAL,JSON.stringify(u),!0)}},t.prototype.resetRequestCache=function(e){var r=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),S.isEmpty(e)||this.getKeys().forEach(function(i){i.indexOf(e)!==-1&&r.removeItem(i)}),e&&(this.removeItem(this.generateStateKey(e)),this.removeItem(this.generateNonceKey(e)),this.removeItem(this.generateAuthorityKey(e))),this.removeItem(this.generateCacheKey(z.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(z.ORIGIN_URI)),this.removeItem(this.generateCacheKey(z.URL_HASH)),this.removeItem(this.generateCacheKey(z.CORRELATION_ID)),this.removeItem(this.generateCacheKey(z.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(z.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},t.prototype.cleanRequestByState=function(e){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),e){var r=this.generateStateKey(e),i=this.temporaryCacheStorage.getItem(r);this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+i),this.resetRequestCache(i||f.EMPTY_STRING)}this.clearMsalCookies()},t.prototype.cleanRequestByInteractionType=function(e){var r=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(function(i){if(i.indexOf(z.REQUEST_STATE)!==-1){var o=r.temporaryCacheStorage.getItem(i);if(o){var s=gn.extractBrowserRequestState(r.cryptoImpl,o);s&&s.interactionType===e&&(r.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+o),r.resetRequestCache(o))}}}),this.clearMsalCookies(),this.setInteractionInProgress(!1)},t.prototype.cacheCodeRequest=function(e,r){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var i=r.base64Encode(JSON.stringify(e));this.setTemporaryCache(z.REQUEST_PARAMS,i,!0)},t.prototype.getCachedRequest=function(e,r){this.logger.trace("BrowserCacheManager.getCachedRequest called");var i=this.getTemporaryCache(z.REQUEST_PARAMS,!0);if(!i)throw I.createNoTokenRequestCacheError();var o=this.validateAndParseJson(r.base64Decode(i));if(!o)throw I.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(z.REQUEST_PARAMS)),S.isEmpty(o.authority)){var s=this.generateAuthorityKey(e),c=this.getTemporaryCache(s);if(!c)throw I.createNoCachedAuthorityError();o.authority=c}return o},t.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var e=this.getTemporaryCache(z.NATIVE_REQUEST,!0);if(!e)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;var r=this.validateAndParseJson(e);return r||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)},t.prototype.isInteractionInProgress=function(e){var r=this.getInteractionInProgress();return e?r===this.clientId:!!r},t.prototype.getInteractionInProgress=function(){var e=f.CACHE_PREFIX+"."+z.INTERACTION_STATUS_KEY;return this.getTemporaryCache(e,!1)},t.prototype.setInteractionInProgress=function(e){var r=f.CACHE_PREFIX+"."+z.INTERACTION_STATUS_KEY;if(e){if(this.getInteractionInProgress())throw I.createInteractionInProgressError();this.setTemporaryCache(r,this.clientId,!1)}else!e&&this.getInteractionInProgress()===this.clientId&&this.removeItem(r)},t.prototype.getLegacyLoginHint=function(){var e=this.getTemporaryCache(re.ADAL_ID_TOKEN);e&&(this.browserStorage.removeItem(re.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var r=this.getTemporaryCache(re.ID_TOKEN,!0);r&&(this.removeItem(this.generateCacheKey(re.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var i=r||e;if(i){var o=new Re(i,this.cryptoImpl);if(o.claims&&o.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"),o.claims.preferred_username;if(o.claims&&o.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),o.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},t.prototype.updateCredentialCacheKey=function(e,r){var i=r.generateCredentialKey();if(e!==i){var o=this.getItem(e);if(o)return this.removeItem(e),this.setItem(i,o),this.logger.verbose("Updated an outdated "+r.credentialType+" cache key"),i;this.logger.error("Attempted to update an outdated "+r.credentialType+" cache key but no item matching the outdated key was found in storage")}return e},t.prototype.getRedirectRequestContext=function(){return this.getTemporaryCache(z.REDIRECT_CONTEXT,!0)},t.prototype.setRedirectRequestContext=function(e){this.setTemporaryCache(z.REDIRECT_CONTEXT,e,!0)},t}(me),Lo=function(n,t){var e={cacheLocation:ee.MemoryStorage,temporaryCacheLocation:ee.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};return new _r(n,e,Kt,t)};/*! @azure/msal-browser v2.38.3 2023-10-27 */var Tr="@azure/msal-browser",Mt="2.38.3";/*! @azure/msal-browser v2.38.3 2023-10-27 */var xo=function(){function n(){}return n.prototype.sendGetRequestAsync=function(t,e){return y(this,void 0,void 0,function(){var r,i,o;return C(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,fetch(t,{method:Ne.GET,headers:this.getFetchHeaders(e)})];case 1:return r=s.sent(),[3,3];case 2:throw i=s.sent(),window.navigator.onLine?I.createGetRequestFailedError(i,t):I.createNoNetworkConnectivityError();case 3:return s.trys.push([3,5,,6]),o={headers:this.getHeaderDict(r.headers)},[4,r.json()];case 4:return[2,(o.body=s.sent(),o.status=r.status,o)];case 5:throw s.sent(),I.createFailedToParseNetworkResponseError(t);case 6:return[2]}})})},n.prototype.sendPostRequestAsync=function(t,e){return y(this,void 0,void 0,function(){var r,i,o,s;return C(this,function(c){switch(c.label){case 0:r=e&&e.body||f.EMPTY_STRING,c.label=1;case 1:return c.trys.push([1,3,,4]),[4,fetch(t,{method:Ne.POST,headers:this.getFetchHeaders(e),body:r})];case 2:return i=c.sent(),[3,4];case 3:throw o=c.sent(),window.navigator.onLine?I.createPostRequestFailedError(o,t):I.createNoNetworkConnectivityError();case 4:return c.trys.push([4,6,,7]),s={headers:this.getHeaderDict(i.headers)},[4,i.json()];case 5:return[2,(s.body=c.sent(),s.status=i.status,s)];case 6:throw c.sent(),I.createFailedToParseNetworkResponseError(t);case 7:return[2]}})})},n.prototype.getFetchHeaders=function(t){var e=new Headers;if(!(t&&t.headers))return e;var r=t.headers;return Object.keys(r).forEach(function(i){e.append(i,r[i])}),e},n.prototype.getHeaderDict=function(t){var e={};return t.forEach(function(r,i){e[i]=r}),e},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Fo=function(){function n(){}return n.prototype.sendGetRequestAsync=function(t,e){return y(this,void 0,void 0,function(){return C(this,function(r){return[2,this.sendRequestAsync(t,Ne.GET,e)]})})},n.prototype.sendPostRequestAsync=function(t,e){return y(this,void 0,void 0,function(){return C(this,function(r){return[2,this.sendRequestAsync(t,Ne.POST,e)]})})},n.prototype.sendRequestAsync=function(t,e,r){var i=this;return new Promise(function(o,s){var c=new XMLHttpRequest;if(c.open(e,t,!0),i.setXhrHeaders(c,r),c.onload=function(){(c.status<200||c.status>=300)&&(e===Ne.POST?s(I.createPostRequestFailedError("Failed with status "+c.status,t)):s(I.createGetRequestFailedError("Failed with status "+c.status,t)));try{var l=JSON.parse(c.responseText),a={headers:i.getHeaderDict(c),body:l,status:c.status};o(a)}catch{s(I.createFailedToParseNetworkResponseError(t))}},c.onerror=function(){window.navigator.onLine?e===Ne.POST?s(I.createPostRequestFailedError("Failed with status "+c.status,t)):s(I.createGetRequestFailedError("Failed with status "+c.status,t)):s(I.createNoNetworkConnectivityError())},e===Ne.POST&&r&&r.body)c.send(r.body);else if(e===Ne.GET)c.send();else throw I.createHttpMethodNotImplementedError(e)})},n.prototype.setXhrHeaders=function(t,e){if(e&&e.headers){var r=e.headers;Object.keys(r).forEach(function(i){t.setRequestHeader(i,r[i])})}},n.prototype.getHeaderDict=function(t){var e=t.getAllResponseHeaders(),r=e.trim().split(/[\r\n]+/),i={};return r.forEach(function(o){var s=o.split(": "),c=s.shift(),l=s.join(": ");c&&l&&(i[c]=l)}),i},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var $=function(){function n(){}return n.clearHash=function(t){t.location.hash=f.EMPTY_STRING,typeof t.history.replaceState=="function"&&t.history.replaceState(null,f.EMPTY_STRING,""+t.location.origin+t.location.pathname+t.location.search)},n.replaceHash=function(t){var e=t.split("#");e.shift(),window.location.hash=e.length>0?e.join("#"):f.EMPTY_STRING},n.isInIframe=function(){return window.parent!==window},n.isInPopup=function(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf(ke.POPUP_NAME_PREFIX+".")===0},n.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},n.getHomepage=function(){var t=new q(window.location.href),e=t.getUrlComponents();return e.Protocol+"//"+e.HostNameAndPort+"/"},n.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new xo:new Fo},n.blockReloadInHiddenIframes=function(){var t=q.hashContainsKnownProperties(window.location.hash);if(t&&n.isInIframe())throw I.createBlockReloadInHiddenIframeError()},n.blockRedirectInIframe=function(t,e){var r=n.isInIframe();if(t===k.Redirect&&r&&!e)throw I.createRedirectInIframeError(r)},n.blockAcquireTokenInPopups=function(){if(n.isInPopup())throw I.createBlockAcquireTokenInPopupsError()},n.blockNonBrowserEnvironment=function(t){if(!t)throw I.createNonBrowserEnvironmentError()},n.blockNativeBrokerCalledBeforeInitialized=function(t,e){if(t&&!e)throw I.createNativeBrokerCalledBeforeInitialize()},n.detectIEOrEdge=function(){var t=window.navigator.userAgent,e=t.indexOf("MSIE "),r=t.indexOf("Trident/"),i=t.indexOf("Edge/"),o=e>0||r>0,s=i>0;return o||s},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var mn=function(){function n(t,e,r,i,o,s,c,l,a){this.config=t,this.browserStorage=e,this.browserCrypto=r,this.networkClient=this.config.system.networkClient,this.eventHandler=o,this.navigationClient=s,this.nativeMessageHandler=l,this.correlationId=a||this.browserCrypto.createNewGuid(),this.logger=i.clone(ke.MSAL_SKU,Mt,this.correlationId),this.performanceClient=c}return n.prototype.clearCacheOnLogout=function(t){return y(this,void 0,void 0,function(){return C(this,function(e){switch(e.label){case 0:if(!t)return[3,5];se.accountInfoIsEqual(t,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null)),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.browserStorage.removeAccount(se.generateAccountCacheKey(t))];case 2:return e.sent(),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."),[3,4];case 3:return e.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 e.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 e.sent(),[4,this.browserCrypto.clearKeystore()];case 7:return e.sent(),[3,9];case 8:return e.sent(),this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged."),[3,9];case 9:return[2]}})})},n.prototype.initializeBaseRequest=function(t,e){return y(this,void 0,void 0,function(){var r,i,o,s;return C(this,function(c){switch(c.label){case 0:return this.performanceClient.addQueueMeasurement(m.InitializeBaseRequest,t.correlationId),this.logger.verbose("Initializing BaseAuthRequest"),r=t.authority||this.config.auth.authority,e?[4,this.validateRequestAuthority(r,e)]:[3,2];case 1:c.sent(),c.label=2;case 2:if(i=cr(t&&t.scopes||[]),o=R(R({},t),{correlationId:this.correlationId,authority:r,scopes:i}),!o.authenticationScheme)o.authenticationScheme=V.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(o.authenticationScheme===V.SSH){if(!t.sshJwk)throw J.createMissingSshJwkError();if(!t.sshKid)throw J.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+o.authenticationScheme+'" as configured in Auth request')}return this.config.cache.claimsBasedCachingEnabled&&t.claims&&!S.isEmptyObj(t.claims)?(s=o,[4,this.browserCrypto.hashString(t.claims)]):[3,4];case 3:s.requestedClaimsHash=c.sent(),c.label=4;case 4:return[2,o]}})})},n.prototype.getRedirectUri=function(t){this.logger.verbose("getRedirectUri called");var e=t||this.config.auth.redirectUri||$.getCurrentUri();return q.getAbsoluteUrl(e,$.getCurrentUri())},n.prototype.validateRequestAuthority=function(t,e){return y(this,void 0,void 0,function(){var r;return C(this,function(i){switch(i.label){case 0:return[4,this.getDiscoveredAuthority(t)];case 1:if(r=i.sent(),!r.isAlias(e.environment))throw J.createAuthorityMismatchError();return[2]}})})},n.prototype.initializeServerTelemetryManager=function(t,e){this.logger.verbose("initializeServerTelemetryManager called");var r={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:t,forceRefresh:e||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new Oo(r,this.browserStorage)},n.prototype.getDiscoveredAuthority=function(t){return y(this,void 0,void 0,function(){var e;return C(this,function(r){switch(r.label){case 0:return this.logger.verbose("getDiscoveredAuthority called"),e={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},t?(this.logger.verbose("Creating discovered authority with request authority"),[4,Qt.createDiscoveredInstance(t,this.config.system.networkClient,this.browserStorage,e,this.logger)]):[3,2];case 1:return[2,r.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,Qt.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,e,this.logger)];case 3:return[2,r.sent()]}})})},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var dt=function(n){ie(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.initializeAuthorizationCodeRequest=function(e){return y(this,void 0,void 0,function(){var r,i;return C(this,function(o){switch(o.label){case 0:return this.performanceClient.addQueueMeasurement(m.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),this.logger.verbose("initializeAuthorizationRequest called",e.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return r=o.sent(),i=R(R({},e),{redirectUri:e.redirectUri,code:f.EMPTY_STRING,codeVerifier:r.verifier}),e.codeChallenge=r.challenge,e.codeChallengeMethod=f.S256_CODE_CHALLENGE_METHOD,[2,i]}})})},t.prototype.initializeLogoutRequest=function(e){this.logger.verbose("initializeLogoutRequest called",e==null?void 0:e.correlationId);var r=R({correlationId:this.correlationId||this.browserCrypto.createNewGuid()},e);if(e)if(e.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(e.account){var i=this.getLogoutHintFromIdTokenClaims(e.account);i&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),r.logoutHint=i)}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!e||e.postLogoutRedirectUri!==null?e&&e.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",r.correlationId),r.postLogoutRedirectUri=q.getAbsoluteUrl(e.postLogoutRedirectUri,$.getCurrentUri())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",r.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",r.correlationId),r.postLogoutRedirectUri=q.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,$.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",r.correlationId),r.postLogoutRedirectUri=q.getAbsoluteUrl($.getCurrentUri(),$.getCurrentUri())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",r.correlationId),r},t.prototype.getLogoutHintFromIdTokenClaims=function(e){var r=e.idTokenClaims;if(r){if(r.login_hint)return r.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},t.prototype.createAuthCodeClient=function(e,r,i){return y(this,void 0,void 0,function(){var o;return C(this,function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(m.StandardInteractionClientCreateAuthCodeClient,this.correlationId),this.performanceClient.setPreQueueTime(m.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,r,i)];case 1:return o=s.sent(),[2,new tn(o,this.performanceClient)]}})})},t.prototype.getClientConfiguration=function(e,r,i){return y(this,void 0,void 0,function(){var o,s;return C(this,function(c){switch(c.label){case 0:return this.performanceClient.addQueueMeasurement(m.StandardInteractionClientGetClientConfiguration,this.correlationId),this.logger.verbose("getClientConfiguration called",this.correlationId),this.performanceClient.setPreQueueTime(m.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),[4,this.getDiscoveredAuthority(r,i)];case 1:return o=c.sent(),s=this.config.system.loggerOptions,[2,{authOptions:{clientId:this.config.auth.clientId,authority:o,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:s.loggerCallback,piiLoggingEnabled:s.piiLoggingEnabled,logLevel:s.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:e,libraryInfo:{sku:ke.MSAL_SKU,version:Mt,cpu:f.EMPTY_STRING,os:f.EMPTY_STRING},telemetry:this.config.telemetry}]}})})},t.prototype.validateAndExtractStateFromHash=function(e,r,i){if(this.logger.verbose("validateAndExtractStateFromHash called",i),!e.state)throw I.createHashDoesNotContainStateError();var o=gn.extractBrowserRequestState(this.browserCrypto,e.state);if(!o)throw I.createUnableToParseStateError();if(o.interactionType!==r)throw I.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",i),e.state},t.prototype.getDiscoveredAuthority=function(e,r){var i;return y(this,void 0,void 0,function(){var o,s,c,l;return C(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(m.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),this.logger.verbose("getDiscoveredAuthority called",this.correlationId),o=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(m.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),s={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},c=e||this.config.auth.authority,l=Nt.generateAuthority(c,r||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),this.performanceClient.setPreQueueTime(m.AuthorityFactoryCreateDiscoveredInstance,this.correlationId),[4,Qt.createDiscoveredInstance(l,this.config.system.networkClient,this.browserStorage,s,this.logger,this.performanceClient,this.correlationId).then(function(u){return o.endMeasurement({success:!0}),u}).catch(function(u){throw o.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})];case 1:return[2,a.sent()]}})})},t.prototype.initializeAuthorizationRequest=function(e,r){return y(this,void 0,void 0,function(){var i,o,s,c,l,a,u;return C(this,function(d){switch(d.label){case 0:return this.performanceClient.addQueueMeasurement(m.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId),this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),i=this.getRedirectUri(e.redirectUri),o={interactionType:r},s=De.setRequestState(this.browserCrypto,e&&e.state||f.EMPTY_STRING,o),this.performanceClient.setPreQueueTime(m.InitializeBaseRequest,this.correlationId),l=[{}],[4,this.initializeBaseRequest(e)];case 1:return c=R.apply(void 0,[R.apply(void 0,l.concat([d.sent()])),{redirectUri:i,state:s,nonce:e.nonce||this.browserCrypto.createNewGuid(),responseMode:Lt.FRAGMENT}]),a=e.account||this.browserStorage.getActiveAccount(),a&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+a.homeAccountId,this.correlationId),c.account=a),S.isEmpty(c.loginHint)&&!a&&(u=this.browserStorage.getLegacyLoginHint(),u&&(c.loginHint=u)),[2,c]}})})},t}(mn);/*! @azure/msal-browser v2.38.3 2023-10-27 */var wr=function(){function n(t,e,r,i,o){this.authModule=t,this.browserStorage=e,this.authCodeRequest=r,this.logger=i,this.performanceClient=o}return n.prototype.handleCodeResponseFromHash=function(t,e,r,i){return y(this,void 0,void 0,function(){var o,s,c;return C(this,function(l){if(this.performanceClient.addQueueMeasurement(m.HandleCodeResponseFromHash,this.authCodeRequest.correlationId),this.logger.verbose("InteractionHandler.handleCodeResponse called"),S.isEmpty(t))throw I.createEmptyHashError(t);if(o=this.browserStorage.generateStateKey(e),s=this.browserStorage.getTemporaryCache(o),!s)throw b.createStateNotFoundError("Cached State");try{c=this.authModule.handleFragmentResponse(t,s)}catch(a){throw a instanceof Ve&&a.subError===_.userCancelledError.code?I.createUserCancelledError():a}return this.performanceClient.setPreQueueTime(m.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),[2,this.handleCodeResponseFromServer(c,e,r,i)]})})},n.prototype.handleCodeResponseFromServer=function(t,e,r,i,o){return o===void 0&&(o=!0),y(this,void 0,void 0,function(){var s,c,l,a,u,d;return C(this,function(p){switch(p.label){case 0:if(this.performanceClient.addQueueMeasurement(m.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),s=this.browserStorage.generateStateKey(e),c=this.browserStorage.getTemporaryCache(s),!c)throw b.createStateNotFoundError("Cached State");return l=this.browserStorage.generateNonceKey(c),a=this.browserStorage.getTemporaryCache(l),this.authCodeRequest.code=t.code,t.cloud_instance_host_name?(this.performanceClient.setPreQueueTime(m.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),[4,this.updateTokenEndpointAuthority(t.cloud_instance_host_name,r,i)]):[3,2];case 1:p.sent(),p.label=2;case 2:return o&&(t.nonce=a||void 0),t.state=c,t.client_info?this.authCodeRequest.clientInfo=t.client_info:(u=this.checkCcsCredentials(),u&&(this.authCodeRequest.ccsCredential=u)),this.performanceClient.setPreQueueTime(m.AuthClientAcquireToken,this.authCodeRequest.correlationId),[4,this.authModule.acquireToken(this.authCodeRequest,t)];case 3:return d=p.sent(),this.browserStorage.cleanRequestByState(e),[2,d]}})})},n.prototype.updateTokenEndpointAuthority=function(t,e,r){return y(this,void 0,void 0,function(){var i,o;return C(this,function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(m.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),i="https://"+t+"/"+e.tenant+"/",[4,Qt.createDiscoveredInstance(i,r,this.browserStorage,e.options,this.logger,this.performanceClient,this.authCodeRequest.correlationId)];case 1:return o=s.sent(),this.authModule.updateAuthority(o),[2]}})})},n.prototype.checkCcsCredentials=function(){var t=this.browserStorage.getTemporaryCache(z.CCS_CREDENTIAL,!0);if(t)try{return JSON.parse(t)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+t)}return null},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var vn=function(n){ie(t,n);function t(e,r,i,o,s,c){var l=n.call(this,e,r,i,o,c)||this;return l.browserCrypto=s,l}return t.prototype.initiateAuthRequest=function(e,r){return y(this,void 0,void 0,function(){var i,o;return C(this,function(s){switch(s.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),S.isEmpty(e)?[3,7]:(r.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(z.ORIGIN_URI,r.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(z.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+e),i={apiId:X.acquireTokenRedirect,timeout:r.redirectTimeout,noHistory:!1},typeof r.onRedirectNavigate!="function"?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),o=r.onRedirectNavigate(e),o===!1?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,r.navigationClient.navigateExternal(e,i)])));case 1:return s.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,r.navigationClient.navigateExternal(e,i)];case 5:return s.sent(),[2];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),I.createEmptyNavigationUriError();case 8:return[2]}})})},t.prototype.handleCodeResponseFromHash=function(e,r,i,o){return y(this,void 0,void 0,function(){var s,c,l,a,u,d,p;return C(this,function(g){switch(g.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),S.isEmpty(e))throw I.createEmptyHashError(e);if(this.browserStorage.setInteractionInProgress(!1),s=this.browserStorage.generateStateKey(r),c=this.browserStorage.getTemporaryCache(s),!c)throw b.createStateNotFoundError("Cached State");try{l=this.authModule.handleFragmentResponse(e,c)}catch(v){throw v instanceof Ve&&v.subError===_.userCancelledError.code?I.createUserCancelledError():v}return a=this.browserStorage.generateNonceKey(c),u=this.browserStorage.getTemporaryCache(a),this.authCodeRequest.code=l.code,l.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(l.cloud_instance_host_name,i,o)]:[3,2];case 1:g.sent(),g.label=2;case 2:return l.nonce=u||void 0,l.state=c,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 p=g.sent(),this.browserStorage.cleanRequestByState(r),[2,p]}})})},t}(wr);/*! @azure/msal-browser v2.38.3 2023-10-27 */var O;(function(n){n.INITIALIZE_START="msal:initializeStart",n.INITIALIZE_END="msal:initializeEnd",n.ACCOUNT_ADDED="msal:accountAdded",n.ACCOUNT_REMOVED="msal:accountRemoved",n.LOGIN_START="msal:loginStart",n.LOGIN_SUCCESS="msal:loginSuccess",n.LOGIN_FAILURE="msal:loginFailure",n.ACQUIRE_TOKEN_START="msal:acquireTokenStart",n.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",n.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",n.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",n.SSO_SILENT_START="msal:ssoSilentStart",n.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",n.SSO_SILENT_FAILURE="msal:ssoSilentFailure",n.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",n.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",n.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",n.HANDLE_REDIRECT_START="msal:handleRedirectStart",n.HANDLE_REDIRECT_END="msal:handleRedirectEnd",n.POPUP_OPENED="msal:popupOpened",n.LOGOUT_START="msal:logoutStart",n.LOGOUT_SUCCESS="msal:logoutSuccess",n.LOGOUT_FAILURE="msal:logoutFailure",n.LOGOUT_END="msal:logoutEnd",n.RESTORE_FROM_BFCACHE="msal:restoreFromBFCache"})(O||(O={}));/*! @azure/msal-browser v2.38.3 2023-10-27 */var Ge;(function(n){n.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",n.USER_CANCEL="USER_CANCEL",n.NO_NETWORK="NO_NETWORK",n.TRANSIENT_ERROR="TRANSIENT_ERROR",n.PERSISTENT_ERROR="PERSISTENT_ERROR",n.DISABLED="DISABLED",n.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"})(Ge||(Ge={}));var Ot={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"}},Me=function(n){ie(t,n);function t(e,r,i){var o=n.call(this,e,r)||this;return Object.setPrototypeOf(o,t.prototype),o.name="NativeAuthError",o.ext=i,o}return t.prototype.isFatal=function(){if(this.ext&&this.ext.status&&(this.ext.status===Ge.PERSISTENT_ERROR||this.ext.status===Ge.DISABLED))return!0;switch(this.errorCode){case Ot.extensionError.code:return!0;default:return!1}},t.createError=function(e,r,i){if(i&&i.status)switch(i.status){case Ge.ACCOUNT_UNAVAILABLE:return Se.createNativeAccountUnavailableError();case Ge.USER_INTERACTION_REQUIRED:return new Se(e,r);case Ge.USER_CANCEL:return I.createUserCancelledError();case Ge.NO_NETWORK:return I.createNoNetworkConnectivityError()}return new t(e,r,i)},t.createUserSwitchError=function(){return new t(Ot.userSwitch.code,Ot.userSwitch.desc)},t.createTokensNotFoundInCacheError=function(){return new t(Ot.tokensNotFoundInCache.code,Ot.tokensNotFoundInCache.desc)},t}(N);/*! @azure/msal-browser v2.38.3 2023-10-27 */var yn=function(n){ie(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.acquireToken=function(e){return y(this,void 0,void 0,function(){var r,i,o,s,c;return C(this,function(l){switch(l.label){case 0:return r=this.performanceClient.startMeasurement(m.SilentCacheClientAcquireToken,e.correlationId),i=this.initializeServerTelemetryManager(X.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(i,e.authority,e.azureCloudOptions)];case 1:o=l.sent(),this.logger.verbose("Silent auth client created"),l.label=2;case 2:return l.trys.push([2,4,,5]),[4,o.acquireCachedToken(e)];case 3:return s=l.sent(),r.endMeasurement({success:!0,fromCache:!0}),[2,s];case 4:throw c=l.sent(),c instanceof I&&c.errorCode===_.signingKeyNotFoundInStorage.code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),r.endMeasurement({errorCode:c instanceof N&&c.errorCode||void 0,subErrorCode:c instanceof N&&c.subError||void 0,success:!1}),c;case 5:return[2]}})})},t.prototype.logout=function(){return Promise.reject(I.createSilentLogoutUnsupportedError())},t.prototype.createSilentFlowClient=function(e,r,i){return y(this,void 0,void 0,function(){var o;return C(this,function(s){switch(s.label){case 0:return this.performanceClient.setPreQueueTime(m.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,r,i)];case 1:return o=s.sent(),[2,new Ao(o,this.performanceClient)]}})})},t.prototype.initializeSilentRequest=function(e,r){return y(this,void 0,void 0,function(){var i;return C(this,function(o){switch(o.label){case 0:return this.performanceClient.addQueueMeasurement(m.InitializeSilentRequest,this.correlationId),this.performanceClient.setPreQueueTime(m.InitializeBaseRequest,this.correlationId),i=[R({},e)],[4,this.initializeBaseRequest(e,r)];case 1:return[2,R.apply(void 0,[R.apply(void 0,i.concat([o.sent()])),{account:r,forceRefresh:e.forceRefresh||!1}])]}})})},t}(dt);/*! @azure/msal-browser v2.38.3 2023-10-27 */var ht=function(n){ie(t,n);function t(e,r,i,o,s,c,l,a,u,d,p,g){var v=n.call(this,e,r,i,o,s,c,a,u,g)||this;return v.apiId=l,v.accountId=d,v.nativeMessageHandler=u,v.nativeStorageManager=p,v.silentCacheClient=new yn(e,v.nativeStorageManager,i,o,s,c,a,u,g),v}return t.prototype.acquireToken=function(e){return y(this,void 0,void 0,function(){var r,i,o,s,c,l,a;return C(this,function(u){switch(u.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),r=this.performanceClient.startMeasurement(m.NativeInteractionClientAcquireToken,e.correlationId),i=Ie.nowSeconds(),[4,this.initializeNativeRequest(e)];case 1:o=u.sent(),u.label=2;case 2:return u.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,o)];case 3:return s=u.sent(),r.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,s];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 c={method:Le.GetToken,request:o},[4,this.nativeMessageHandler.sendMessage(c)];case 6:return l=u.sent(),a=this.validateNativeResponse(l),[2,this.handleNativeResponse(a,o,i).then(function(d){return r.endMeasurement({success:!0,isNativeBroker:!0,requestId:d.requestId}),d}).catch(function(d){throw r.endMeasurement({success:!1,errorCode:d.errorCode,subErrorCode:d.subError,isNativeBroker:!0}),d})]}})})},t.prototype.createSilentCacheRequest=function(e,r){return{authority:e.authority,correlationId:this.correlationId,scopes:le.fromString(e.scope).asArray(),account:r,forceRefresh:!1}},t.prototype.acquireTokensFromCache=function(e,r){return y(this,void 0,void 0,function(){var i,o,s,c;return C(this,function(l){switch(l.label){case 0:if(!e)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),b.createNoAccountFoundError();if(i=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:e}),!i)throw b.createNoAccountFoundError();l.label=1;case 1:return l.trys.push([1,3,,4]),o=this.createSilentCacheRequest(r,i),[4,this.silentCacheClient.acquireToken(o)];case 2:return s=l.sent(),[2,s];case 3:throw c=l.sent(),c;case 4:return[2]}})})},t.prototype.acquireTokenRedirect=function(e){return y(this,void 0,void 0,function(){var r,i,o,s,c,l;return C(this,function(a){switch(a.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(e)];case 1:r=a.sent(),i={method:Le.GetToken,request:r},a.label=2;case 2:return a.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(i)];case 3:return o=a.sent(),this.validateNativeResponse(o),[3,5];case 4:if(s=a.sent(),s instanceof Me&&s.isFatal())throw s;return[3,5];case 5:return this.browserStorage.setTemporaryCache(z.NATIVE_REQUEST,JSON.stringify(r),!0),c={apiId:X.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},l=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(e.redirectUri),[4,this.navigationClient.navigateExternal(l,c)];case 6:return a.sent(),[2]}})})},t.prototype.handleRedirectPromise=function(){return y(this,void 0,void 0,function(){var e,r,i,o,s,c,l,a;return C(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(e=this.browserStorage.getCachedNativeRequest(),!e)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];r=e.prompt,i=Vr(e,["prompt"]),r&&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(z.NATIVE_REQUEST)),o={method:Le.GetToken,request:i},s=Ie.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(o)];case 2:return c=u.sent(),this.validateNativeResponse(c),l=this.handleNativeResponse(c,i,s),this.browserStorage.setInteractionInProgress(!1),[2,l];case 3:throw a=u.sent(),this.browserStorage.setInteractionInProgress(!1),a;case 4:return[2]}})})},t.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},t.prototype.handleNativeResponse=function(e,r,i){return y(this,void 0,void 0,function(){var o,s,c,l,a,u;return C(this,function(d){switch(d.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),e.account.id!==r.accountId)throw Me.createUserSwitchError();return[4,this.getDiscoveredAuthority(r.authority)];case 1:return o=d.sent(),s=o.getPreferredCache(),c=this.createIdTokenObj(e),l=this.createHomeAccountIdentifier(e,c),a=this.createAccountEntity(e,l,c,s),[4,this.generateAuthenticationResult(e,r,c,a,o.canonicalAuthority,i)];case 2:return u=d.sent(),this.cacheAccount(a),this.cacheNativeTokens(e,r,l,a,c,u.accessToken,u.tenantId,i),[2,u]}})})},t.prototype.createIdTokenObj=function(e){return new Re(e.id_token||f.EMPTY_STRING,this.browserCrypto)},t.prototype.createHomeAccountIdentifier=function(e,r){var i=se.generateHomeAccountId(e.client_info||f.EMPTY_STRING,fe.Default,this.logger,this.browserCrypto,r);return i},t.prototype.createAccountEntity=function(e,r,i,o){return se.createAccount(e.client_info,r,i,void 0,void 0,void 0,o,e.account.id)},t.prototype.generateScopes=function(e,r){return e.scope?le.fromString(e.scope):le.fromString(r.scope)},t.prototype.generatePopAccessToken=function(e,r){return y(this,void 0,void 0,function(){var i,o;return C(this,function(s){switch(s.label){case 0:if(r.tokenType!==V.POP)return[3,2];if(e.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),[2,e.shr];if(i=new ct(this.browserCrypto),o={resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,shrNonce:r.shrNonce},!r.keyId)throw b.createKeyIdMissingError();return[4,i.signPopToken(e.access_token,r.keyId,o)];case 1:return[2,s.sent()];case 2:return[2,e.access_token]}})})},t.prototype.generateAuthenticationResult=function(e,r,i,o,s,c){return y(this,void 0,void 0,function(){var l,a,u,d,p,g,v,w;return C(this,function(B){switch(B.label){case 0:return l=this.addTelemetryFromNativeResponse(e),a=e.scope?le.fromString(e.scope):le.fromString(r.scope),u=e.account.properties||{},d=u.UID||i.claims.oid||i.claims.sub||f.EMPTY_STRING,p=u.TenantId||i.claims.tid||f.EMPTY_STRING,[4,this.generatePopAccessToken(e,r)];case 1:return g=B.sent(),v=r.tokenType===V.POP?V.POP:V.BEARER,w={authority:s,uniqueId:d,tenantId:p,scopes:a.asArray(),account:o.getAccountInfo(),idToken:e.id_token,idTokenClaims:i.claims,accessToken:g,fromCache:l?this.isResponseFromCache(l):!1,expiresOn:new Date(Number(c+e.expires_in)*1e3),tokenType:v,correlationId:this.correlationId,state:e.state,fromNativeBroker:!0},[2,w]}})})},t.prototype.cacheAccount=function(e){var r=this;this.browserStorage.setAccount(e),this.browserStorage.removeAccountContext(e).catch(function(i){r.logger.error("Error occurred while removing account context from browser storage. "+i)})},t.prototype.cacheNativeTokens=function(e,r,i,o,s,c,l,a){var u=Je.createIdTokenEntity(i,r.authority,e.id_token||f.EMPTY_STRING,r.clientId,s.claims.tid||f.EMPTY_STRING),d=r.tokenType===V.POP?f.SHR_NONCE_VALIDITY:(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,p=a+d,g=this.generateScopes(e,r),v=Xe.createAccessTokenEntity(i,r.authority,c,r.clientId,s?s.claims.tid||f.EMPTY_STRING:l,g.printScopes(),p,0,this.browserCrypto),w=new kt(o,u,v);this.nativeStorageManager.saveCacheRecord(w)},t.prototype.addTelemetryFromNativeResponse=function(e){var r=this.getMATSFromResponse(e);return r?(this.performanceClient.addStaticFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:r.broker_version,matsAccountJoinOnStart:r.account_join_on_start,matsAccountJoinOnEnd:r.account_join_on_end,matsDeviceJoin:r.device_join,matsPromptBehavior:r.prompt_behavior,matsApiErrorCode:r.api_error_code,matsUiVisible:r.ui_visible,matsSilentCode:r.silent_code,matsSilentBiSubCode:r.silent_bi_sub_code,matsSilentMessage:r.silent_message,matsSilentStatus:r.silent_status,matsHttpStatus:r.http_status,matsHttpEventCount:r.http_event_count},this.correlationId),r):null},t.prototype.validateNativeResponse=function(e){if(e.hasOwnProperty("access_token")&&e.hasOwnProperty("id_token")&&e.hasOwnProperty("client_info")&&e.hasOwnProperty("account")&&e.hasOwnProperty("scope")&&e.hasOwnProperty("expires_in"))return e;throw Me.createUnexpectedError("Response missing expected properties.")},t.prototype.getMATSFromResponse=function(e){if(e.properties.MATS)try{return JSON.parse(e.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},t.prototype.isResponseFromCache=function(e){return typeof e.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!e.is_cached},t.prototype.initializeNativeRequest=function(e){return y(this,void 0,void 0,function(){var r,i,o,s,c,l,a,u,d,p,g=this;return C(this,function(v){switch(v.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),r=e.authority||this.config.auth.authority,e.account?[4,this.validateRequestAuthority(r,e.account)]:[3,2];case 1:v.sent(),v.label=2;case 2:return i=new q(r),i.validateAsUri(),o=e.scopes,s=Vr(e,["scopes"]),c=new le(o||[]),c.appendScopes(Et),l=function(){switch(g.apiId){case X.ssoSilent:case X.acquireTokenSilent_silentFlow:return g.logger.trace("initializeNativeRequest: silent request sets prompt to none"),ue.NONE}if(!e.prompt){g.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(e.prompt){case ue.NONE:case ue.CONSENT:case ue.LOGIN:return g.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),e.prompt;default:throw g.logger.trace("initializeNativeRequest: prompt = "+e.prompt+" is not compatible with native flow"),I.createNativePromptParameterNotSupportedError()}},a=R(R({},s),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:i.urlString,scope:c.printScopes(),redirectUri:this.getRedirectUri(e.redirectUri),prompt:l(),correlationId:this.correlationId,tokenType:e.authenticationScheme,windowTitleSubstring:document.title,extraParameters:R(R(R({},e.extraQueryParameters),e.tokenQueryParameters),{telemetry:Pt.MATS_TELEMETRY}),extendedExpiryToken:!1}),e.authenticationScheme!==V.POP?[3,4]:(u={resourceRequestUri:e.resourceRequestUri,resourceRequestMethod:e.resourceRequestMethod,shrClaims:e.shrClaims,shrNonce:e.shrNonce},d=new ct(this.browserCrypto),[4,d.generateCnf(u)]);case 3:p=v.sent(),a.reqCnf=p.reqCnfString,a.keyId=p.kid,v.label=4;case 4:return[2,a]}})})},t}(mn);/*! @azure/msal-browser v2.38.3 2023-10-27 */var $e=function(){function n(t,e,r,i){this.logger=t,this.handshakeTimeoutMs=e,this.extensionId=i,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=r,this.handshakeEvent=r.startMeasurement(m.NativeMessageHandlerHandshake)}return n.prototype.sendMessage=function(t){return y(this,void 0,void 0,function(){var e,r=this;return C(this,function(i){return this.logger.trace("NativeMessageHandler - sendMessage called."),e={channel:Pt.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:t},this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii("NativeMessageHandler - Sending request to browser extension: "+JSON.stringify(e)),this.messageChannel.port1.postMessage(e),[2,new Promise(function(o,s){r.resolvers.set(e.responseId,{resolve:o,reject:s})})]})})},n.createProvider=function(t,e,r){return y(this,void 0,void 0,function(){var i,o;return C(this,function(s){switch(s.label){case 0:t.trace("NativeMessageHandler - createProvider called."),s.label=1;case 1:return s.trys.push([1,3,,5]),i=new n(t,e,r,Pt.PREFERRED_EXTENSION_ID),[4,i.sendHandshakeRequest()];case 2:return s.sent(),[2,i];case 3:return s.sent(),o=new n(t,e,r),[4,o.sendHandshakeRequest()];case 4:return s.sent(),[2,o];case 5:return[2]}})})},n.prototype.sendHandshakeRequest=function(){return y(this,void 0,void 0,function(){var t,e=this;return C(this,function(r){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),t={channel:Pt.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:Le.HandshakeRequest}},this.handshakeEvent.addStaticFields({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=function(i){e.onChannelMessage(i)},window.postMessage(t,window.origin,[this.messageChannel.port2]),[2,new Promise(function(i,o){e.handshakeResolvers.set(t.responseId,{resolve:i,reject:o}),e.timeoutId=window.setTimeout(function(){window.removeEventListener("message",e.windowListener,!1),e.messageChannel.port1.close(),e.messageChannel.port2.close(),e.handshakeEvent.endMeasurement({extensionHandshakeTimedOut:!0,success:!1}),o(I.createNativeHandshakeTimeoutError()),e.handshakeResolvers.delete(t.responseId)},e.handshakeTimeoutMs)})]})})},n.prototype.onWindowMessage=function(t){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),t.source===window){var e=t.data;if(!(!e.channel||e.channel!==Pt.CHANNEL_ID)&&!(e.extensionId&&e.extensionId!==this.extensionId)&&e.body.method===Le.HandshakeRequest){this.logger.verbose(e.extensionId?"Extension with id: "+e.extensionId+" not installed":"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1);var r=this.handshakeResolvers.get(e.responseId);r&&(this.handshakeEvent.endMeasurement({success:!1,extensionInstalled:!1}),r.reject(I.createNativeExtensionNotInstalledError()))}}},n.prototype.onChannelMessage=function(t){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var e=t.data,r=this.resolvers.get(e.responseId),i=this.handshakeResolvers.get(e.responseId);try{var o=e.body.method;if(o===Le.Response){if(!r)return;var s=e.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(s)),s.status!=="Success")r.reject(Me.createError(s.code,s.description,s.ext));else if(s.result)s.result.code&&s.result.description?r.reject(Me.createError(s.result.code,s.result.description,s.result.ext)):r.resolve(s.result);else throw N.createUnexpectedError("Event does not contain result.");this.resolvers.delete(e.responseId)}else if(o===Le.HandshakeResponse){if(!i)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=e.extensionId,this.extensionVersion=e.body.version,this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: "+this.extensionId),this.handshakeEvent.endMeasurement({extensionInstalled:!0,success:!0}),i.resolve(),this.handshakeResolvers.delete(e.responseId)}}catch(c){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+c.toString()),this.logger.errorPii("Unable to parse "+t),r?r.reject(c):i&&i.reject(c)}},n.prototype.getExtensionId=function(){return this.extensionId},n.prototype.getExtensionVersion=function(){return this.extensionVersion},n.isNativeAvailable=function(t,e,r,i){if(e.trace("isNativeAvailable called"),!t.system.allowNativeBroker)return e.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!r)return e.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(i)switch(i){case V.BEARER:case V.POP:return e.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return e.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Bo=function(n){ie(t,n);function t(e,r,i,o,s,c,l,a,u,d){var p=n.call(this,e,r,i,o,s,c,l,u,d)||this;return p.nativeStorage=a,p}return t.prototype.acquireToken=function(e){return y(this,void 0,void 0,function(){var r,i,o,s,c,l,a,u,d,p=this;return C(this,function(g){switch(g.label){case 0:return this.performanceClient.setPreQueueTime(m.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,k.Redirect)];case 1:r=g.sent(),this.browserStorage.updateCacheEntries(r.state,r.nonce,r.authority,r.loginHint||f.EMPTY_STRING,r.account||null),i=this.initializeServerTelemetryManager(X.acquireTokenRedirect),o=function(v){v.persisted&&(p.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),p.browserStorage.cleanRequestByState(r.state),p.eventHandler.emitEvent(O.RESTORE_FROM_BFCACHE,k.Redirect))},g.label=2;case 2:return g.trys.push([2,7,,8]),this.performanceClient.setPreQueueTime(m.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),[4,this.initializeAuthorizationCodeRequest(r)];case 3:return s=g.sent(),this.performanceClient.setPreQueueTime(m.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(i,r.authority,r.azureCloudOptions)];case 4:return c=g.sent(),this.logger.verbose("Auth code client created"),l=new vn(c,this.browserStorage,s,this.logger,this.browserCrypto,this.performanceClient),[4,c.getAuthCodeUrl(R(R({},r),{nativeBroker:$e.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme)}))];case 5:return a=g.sent(),u=this.getRedirectStartPage(e.redirectStartPage),this.logger.verbosePii("Redirect start page: "+u),window.addEventListener("pageshow",o),[4,l.initiateAuthRequest(a,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:u,onRedirectNavigate:e.onRedirectNavigate})];case 6:return[2,g.sent()];case 7:throw d=g.sent(),d instanceof N&&d.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",o),i.cacheFailedRequest(d),this.browserStorage.cleanRequestByState(r.state),d;case 8:return[2]}})})},t.prototype.handleRedirectPromise=function(e){return y(this,void 0,void 0,function(){var r,i,o,s,c,l,a,u,d,p,g,v;return C(this,function(w){switch(w.label){case 0:r=this.initializeServerTelemetryManager(X.handleRedirectPromise),w.label=1;case 1:if(w.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(i=this.getRedirectResponseHash(e||window.location.hash),!i)return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(k.Redirect),[2,null];o=void 0;try{s=q.getDeserializedHash(i),o=this.validateAndExtractStateFromHash(s,k.Redirect),this.logger.verbose("State extracted from hash")}catch(B){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+B),this.browserStorage.cleanRequestByInteractionType(k.Redirect),[2,null]}return c=this.browserStorage.getTemporaryCache(z.ORIGIN_URI,!0)||f.EMPTY_STRING,l=q.removeHashFromUrl(c),a=q.removeHashFromUrl(window.location.href),l===a&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(i,o,r)]):[3,3];case 2:return u=w.sent(),c.indexOf("#")>-1&&$.replaceHash(c),[2,u];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(i,o,r)]);case 4:return!$.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(z.URL_HASH,i,!0),d={apiId:X.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},p=!0,!c||c==="null"?(g=$.getHomepage(),this.browserStorage.setTemporaryCache(z.ORIGIN_URI,g,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(g,d)]):[3,6]):[3,9];case 5:return p=w.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+c),[4,this.navigationClient.navigateInternal(c,d)];case 7:p=w.sent(),w.label=8;case 8:if(!p)return[2,this.handleHash(i,o,r)];w.label=9;case 9:return[2,null];case 10:throw v=w.sent(),v instanceof N&&v.setCorrelationId(this.correlationId),r.cacheFailedRequest(v),this.browserStorage.cleanRequestByInteractionType(k.Redirect),v;case 11:return[2]}})})},t.prototype.getRedirectResponseHash=function(e){this.logger.verbose("getRedirectResponseHash called");var r=q.hashContainsKnownProperties(e);if(r)return $.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),e;var i=this.browserStorage.getTemporaryCache(z.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(z.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),i},t.prototype.handleHash=function(e,r,i){return y(this,void 0,void 0,function(){var o,s,c,l,a,u,d,p=this;return C(this,function(g){switch(g.label){case 0:if(o=this.browserStorage.getCachedRequest(r,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),s=q.getDeserializedHash(e),s.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw I.createNativeConnectionNotEstablishedError();return c=new ht(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,X.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,s.accountId,this.nativeStorage,o.correlationId),l=De.parseRequestState(this.browserCrypto,r).userRequestState,[2,c.acquireToken(R(R({},o),{state:l,prompt:void 0})).finally(function(){p.browserStorage.cleanRequestByState(r)})]}if(a=this.browserStorage.getCachedAuthority(r),!a)throw I.createNoCachedAuthorityError();return this.performanceClient.setPreQueueTime(m.StandardInteractionClientCreateAuthCodeClient,o.correlationId),[4,this.createAuthCodeClient(i,a)];case 1:return u=g.sent(),this.logger.verbose("Auth code client created"),Gt.removeThrottle(this.browserStorage,this.config.auth.clientId,o),d=new vn(u,this.browserStorage,o,this.logger,this.browserCrypto,this.performanceClient),[4,d.handleCodeResponseFromHash(e,r,u.authority,this.networkClient)];case 2:return[2,g.sent()]}})})},t.prototype.logout=function(e){return y(this,void 0,void 0,function(){var r,i,o,s,c,l,a;return C(this,function(u){switch(u.label){case 0:this.logger.verbose("logoutRedirect called"),r=this.initializeLogoutRequest(e),i=this.initializeServerTelemetryManager(X.logout),u.label=1;case 1:return u.trys.push([1,10,,11]),this.eventHandler.emitEvent(O.LOGOUT_START,k.Redirect,e),[4,this.clearCacheOnLogout(r.account)];case 2:return u.sent(),o={apiId:X.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},this.performanceClient.setPreQueueTime(m.StandardInteractionClientCreateAuthCodeClient,r.correlationId),[4,this.createAuthCodeClient(i,e&&e.authority)];case 3:return s=u.sent(),this.logger.verbose("Auth code client created"),c=s.getLogoutUri(r),this.eventHandler.emitEvent(O.LOGOUT_SUCCESS,k.Redirect,r),e&&typeof e.onRedirectNavigate=="function"?(l=e.onRedirectNavigate(c),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(c,o)])):[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(c,o)];case 8:return u.sent(),[2];case 9:return[3,11];case 10:throw a=u.sent(),a instanceof N&&a.setCorrelationId(this.correlationId),i.cacheFailedRequest(a),this.eventHandler.emitEvent(O.LOGOUT_FAILURE,k.Redirect,null,a),this.eventHandler.emitEvent(O.LOGOUT_END,k.Redirect),a;case 11:return this.eventHandler.emitEvent(O.LOGOUT_END,k.Redirect),[2]}})})},t.prototype.getRedirectStartPage=function(e){var r=e||window.location.href;return q.getAbsoluteUrl(r,$.getCurrentUri())},t}(dt);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Ko=function(n){ie(t,n);function t(e,r,i,o,s,c,l,a,u,d){var p=n.call(this,e,r,i,o,s,c,l,u,d)||this;return p.unloadWindow=p.unloadWindow.bind(p),p.nativeStorage=a,p}return t.prototype.acquireToken=function(e){try{var r=this.generatePopupName(e.scopes||Et,e.authority||this.config.auth.authority),i=e.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(e,r,i);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var o=this.openSizedPopup("about:blank",r,i);return this.acquireTokenPopupAsync(e,r,i,o)}catch(s){return Promise.reject(s)}},t.prototype.logout=function(e){try{this.logger.verbose("logoutPopup called");var r=this.initializeLogoutRequest(e),i=this.generateLogoutPopupName(r),o=e&&e.authority,s=e&&e.mainWindowRedirectUri,c=(e==null?void 0:e.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(r,i,c,o,void 0,s);this.logger.verbose("asyncPopup set to false, opening popup");var l=this.openSizedPopup("about:blank",i,c);return this.logoutPopupAsync(r,i,c,o,l,s)}catch(a){return Promise.reject(a)}},t.prototype.acquireTokenPopupAsync=function(e,r,i,o){return y(this,void 0,void 0,function(){var s,c,l,a,u,d,p,g,v,w,B,F,P,Y,Ae,_e,Oe,ft=this;return C(this,function(ce){switch(ce.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),s=this.initializeServerTelemetryManager(X.acquireTokenPopup),this.performanceClient.setPreQueueTime(m.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,k.Popup)];case 1:c=ce.sent(),this.browserStorage.updateCacheEntries(c.state,c.nonce,c.authority,c.loginHint||f.EMPTY_STRING,c.account||null),ce.label=2;case 2:return ce.trys.push([2,8,,9]),this.performanceClient.setPreQueueTime(m.StandardInteractionClientInitializeAuthorizationCodeRequest,e.correlationId),[4,this.initializeAuthorizationCodeRequest(c)];case 3:return l=ce.sent(),this.performanceClient.setPreQueueTime(m.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(s,c.authority,c.azureCloudOptions)];case 4:return a=ce.sent(),this.logger.verbose("Auth code client created"),u=$e.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,e.authenticationScheme),d=void 0,u&&(d=this.performanceClient.startMeasurement(m.FetchAccountIdWithNativeBroker,e.correlationId)),[4,a.getAuthCodeUrl(R(R({},c),{nativeBroker:u}))];case 5:return p=ce.sent(),g=new wr(a,this.browserStorage,l,this.logger,this.performanceClient),v={popup:o,popupName:r,popupWindowAttributes:i},w=this.initiateAuthRequest(p,v),this.eventHandler.emitEvent(O.POPUP_OPENED,k.Popup,{popupWindow:w},null),[4,this.monitorPopupForHash(w)];case 6:if(B=ce.sent(),F=q.getDeserializedHash(B),P=this.validateAndExtractStateFromHash(F,k.Popup,c.correlationId),Gt.removeThrottle(this.browserStorage,this.config.auth.clientId,l),F.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),d&&d.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw I.createNativeConnectionNotEstablishedError();return Y=new ht(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,X.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,F.accountId,this.nativeStorage,c.correlationId),Ae=De.parseRequestState(this.browserCrypto,P).userRequestState,[2,Y.acquireToken(R(R({},c),{state:Ae,prompt:void 0})).finally(function(){ft.browserStorage.cleanRequestByState(P)})]}return[4,g.handleCodeResponseFromHash(B,P,a.authority,this.networkClient)];case 7:return _e=ce.sent(),[2,_e];case 8:throw Oe=ce.sent(),o&&o.close(),Oe instanceof N&&Oe.setCorrelationId(this.correlationId),s.cacheFailedRequest(Oe),this.browserStorage.cleanRequestByState(c.state),Oe;case 9:return[2]}})})},t.prototype.logoutPopupAsync=function(e,r,i,o,s,c){return y(this,void 0,void 0,function(){var l,a,u,d,p,g,v;return C(this,function(w){switch(w.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(O.LOGOUT_START,k.Popup,e),l=this.initializeServerTelemetryManager(X.logoutPopup),w.label=1;case 1:return w.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(e.account)];case 2:return w.sent(),this.performanceClient.setPreQueueTime(m.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(l,o)];case 3:return a=w.sent(),this.logger.verbose("Auth code client created"),u=a.getLogoutUri(e),this.eventHandler.emitEvent(O.LOGOUT_SUCCESS,k.Popup,e),d=this.openPopup(u,{popupName:r,popupWindowAttributes:i,popup:s}),this.eventHandler.emitEvent(O.POPUP_OPENED,k.Popup,{popupWindow:d},null),[4,this.waitForLogoutPopup(d)];case 4:return w.sent(),c?(p={apiId:X.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},g=q.getAbsoluteUrl(c,$.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+g),this.navigationClient.navigateInternal(g,p)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw v=w.sent(),s&&s.close(),v instanceof N&&v.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(O.LOGOUT_FAILURE,k.Popup,null,v),this.eventHandler.emitEvent(O.LOGOUT_END,k.Popup),l.cacheFailedRequest(v),v;case 6:return this.eventHandler.emitEvent(O.LOGOUT_END,k.Popup),[2]}})})},t.prototype.initiateAuthRequest=function(e,r){if(S.isEmpty(e))throw this.logger.error("Navigate url is empty"),I.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+e),this.openPopup(e,r)},t.prototype.monitorPopupForHash=function(e){var r=this;return new Promise(function(i,o){var s=r.config.system.windowHashTimeout/r.config.system.pollIntervalMilliseconds,c=0;r.logger.verbose("PopupHandler.monitorPopupForHash - polling started");var l=setInterval(function(){if(e.closed){r.logger.error("PopupHandler.monitorPopupForHash - window closed"),r.cleanPopup(),clearInterval(l),o(I.createUserCancelledError());return}var a=f.EMPTY_STRING,u=f.EMPTY_STRING;try{a=e.location.href,u=e.location.hash}catch{}S.isEmpty(a)||a==="about:blank"||(r.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),c++,u?(r.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(l),r.cleanPopup(e),q.hashContainsKnownProperties(u)?(r.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),i(u)):(r.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."),r.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: "+u),o(I.createHashDoesNotContainKnownPropertiesError()))):c>s&&(r.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(l),o(I.createMonitorPopupTimeoutError())))},r.config.system.pollIntervalMilliseconds)})},t.prototype.waitForLogoutPopup=function(e){var r=this;return new Promise(function(i){r.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var o=setInterval(function(){e.closed&&(r.logger.error("PopupHandler.waitForLogoutPopup - window closed"),r.cleanPopup(),clearInterval(o),i());var s=f.EMPTY_STRING;try{s=e.location.href}catch{}S.isEmpty(s)||s==="about:blank"||(r.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(o),r.cleanPopup(e),i())},r.config.system.pollIntervalMilliseconds)})},t.prototype.openPopup=function(e,r){try{var i=void 0;if(r.popup?(i=r.popup,this.logger.verbosePii("Navigating popup window to: "+e),i.location.assign(e)):typeof r.popup>"u"&&(this.logger.verbosePii("Opening popup window to: "+e),i=this.openSizedPopup(e,r.popupName,r.popupWindowAttributes)),!i)throw I.createEmptyWindowCreatedError();return i.focus&&i.focus(),this.currentWindow=i,window.addEventListener("beforeunload",this.unloadWindow),i}catch(o){throw this.logger.error("error opening popup "+o.message),this.browserStorage.setInteractionInProgress(!1),I.createPopupWindowError(o.toString())}},t.prototype.openSizedPopup=function(e,r,i){var o,s,c,l,a=window.screenLeft?window.screenLeft:window.screenX,u=window.screenTop?window.screenTop:window.screenY,d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,p=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,g=(o=i.popupSize)===null||o===void 0?void 0:o.width,v=(s=i.popupSize)===null||s===void 0?void 0:s.height,w=(c=i.popupPosition)===null||c===void 0?void 0:c.top,B=(l=i.popupPosition)===null||l===void 0?void 0:l.left;return(!g||g<0||g>d)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),g=ke.POPUP_WIDTH),(!v||v<0||v>p)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),v=ke.POPUP_HEIGHT),(!w||w<0||w>p)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),w=Math.max(0,p/2-ke.POPUP_HEIGHT/2+u)),(!B||B<0||B>d)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),B=Math.max(0,d/2-ke.POPUP_WIDTH/2+a)),window.open(e,r,"width="+g+", height="+v+", top="+w+", left="+B+", scrollbars=yes")},t.prototype.unloadWindow=function(e){this.browserStorage.cleanRequestByInteractionType(k.Popup),this.currentWindow&&this.currentWindow.close(),e.preventDefault()},t.prototype.cleanPopup=function(e){e&&e.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},t.prototype.generatePopupName=function(e,r){return ke.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+e.join("-")+"."+r+"."+this.correlationId},t.prototype.generateLogoutPopupName=function(e){var r=e.account&&e.account.homeAccountId;return ke.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+r+"."+this.correlationId},t}(dt);/*! @azure/msal-browser v2.38.3 2023-10-27 */var qo=function(){function n(){}return n.prototype.navigateInternal=function(t,e){return n.defaultNavigateWindow(t,e)},n.prototype.navigateExternal=function(t,e){return n.defaultNavigateWindow(t,e)},n.defaultNavigateWindow=function(t,e){return e.noHistory?window.location.replace(t):window.location.assign(t),new Promise(function(r){setTimeout(function(){r(!0)},e.timeout)})},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Go=6e4,Ir=6e3,zo=3e4,Yo=2e3;function Qo(n,t){var e=n.auth,r=n.cache,i=n.system,o=n.telemetry,s={clientId:f.EMPTY_STRING,authority:""+f.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:f.EMPTY_STRING,authorityMetadata:f.EMPTY_STRING,redirectUri:f.EMPTY_STRING,postLogoutRedirectUri:f.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:Rt.AAD,azureCloudOptions:{azureCloudInstance:At.None,tenant:f.EMPTY_STRING},skipAuthorityMetadataCache:!1},c={cacheLocation:ee.SessionStorage,temporaryCacheLocation:ee.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(r&&r.cacheLocation===ee.LocalStorage),claimsBasedCachingEnabled:!0},l={loggerCallback:function(){},logLevel:oe.Info,piiLoggingEnabled:!1},a=R(R({},Zr),{loggerOptions:l,networkClient:t?$.getBrowserNetworkClient():Po,navigationClient:new qo,loadFrameTimeout:0,windowHashTimeout:(i==null?void 0:i.loadFrameTimeout)||Go,iframeHashTimeout:(i==null?void 0:i.loadFrameTimeout)||Ir,navigateFrameWait:t&&$.detectIEOrEdge()?500:0,redirectNavigationTimeout:zo,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(i==null?void 0:i.nativeBrokerHandshakeTimeout)||Yo,pollIntervalMilliseconds:ke.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),u=R(R({},i),{loggerOptions:(i==null?void 0:i.loggerOptions)||l}),d={application:{appName:f.EMPTY_STRING,appVersion:f.EMPTY_STRING}},p={auth:R(R({},s),e),cache:R(R({},c),r),system:R(R({},a),u),telemetry:R(R({},d),o)};return p}/*! @azure/msal-browser v2.38.3 2023-10-27 */var Cn=function(n){ie(t,n);function t(e,r,i,o,s,c){var l=n.call(this,e,r,i,o,c)||this;return l.navigateFrameWait=s.navigateFrameWait,l.pollIntervalMilliseconds=s.pollIntervalMilliseconds,l}return t.prototype.initiateAuthRequest=function(e){return y(this,void 0,void 0,function(){return C(this,function(r){switch(r.label){case 0:if(this.performanceClient.addQueueMeasurement(m.SilentHandlerInitiateAuthRequest,this.authCodeRequest.correlationId),S.isEmpty(e))throw this.logger.info("Navigate url is empty"),I.createEmptyNavigationUriError();return this.navigateFrameWait?(this.performanceClient.setPreQueueTime(m.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),[4,this.loadFrame(e)]):[3,2];case 1:return[2,r.sent()];case 2:return[2,this.loadFrameSync(e)]}})})},t.prototype.monitorIframeForHash=function(e,r){var i=this;return this.performanceClient.addQueueMeasurement(m.SilentHandlerMonitorIframeForHash,this.authCodeRequest.correlationId),new Promise(function(o,s){r<Ir&&i.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+r+"ms) than the default ("+Ir+"ms). This may result in timeouts.");var c=window.performance.now(),l=c+r,a=setInterval(function(){if(window.performance.now()>l){i.removeHiddenIframe(e),clearInterval(a),s(I.createMonitorIframeTimeoutError());return}var u=f.EMPTY_STRING,d=e.contentWindow;try{u=d?d.location.href:f.EMPTY_STRING}catch{}if(!S.isEmpty(u)){var p=d?d.location.hash:f.EMPTY_STRING;if(q.hashContainsKnownProperties(p)){i.removeHiddenIframe(e),clearInterval(a),o(p);return}}},i.pollIntervalMilliseconds)})},t.prototype.loadFrame=function(e){var r=this;return this.performanceClient.addQueueMeasurement(m.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),new Promise(function(i,o){var s=r.createHiddenIframe();setTimeout(function(){if(!s){o("Unable to load iframe");return}s.src=e,i(s)},r.navigateFrameWait)})},t.prototype.loadFrameSync=function(e){var r=this.createHiddenIframe();return r.src=e,r},t.prototype.createHiddenIframe=function(){var e=document.createElement("iframe");return e.style.visibility="hidden",e.style.position="absolute",e.style.width=e.style.height="0",e.style.border="0",e.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(e),e},t.prototype.removeHiddenIframe=function(e){document.body===e.parentNode&&document.body.removeChild(e)},t}(wr);/*! @azure/msal-browser v2.38.3 2023-10-27 */var jo=function(n){ie(t,n);function t(e,r,i,o,s,c,l,a,u,d,p){var g=n.call(this,e,r,i,o,s,c,a,d,p)||this;return g.apiId=l,g.nativeStorage=u,g}return t.prototype.acquireToken=function(e){return y(this,void 0,void 0,function(){var r,i,o,s,c;return C(this,function(l){switch(l.label){case 0:if(this.performanceClient.addQueueMeasurement(m.SilentIframeClientAcquireToken,e.correlationId),this.logger.verbose("acquireTokenByIframe called"),r=this.performanceClient.startMeasurement(m.SilentIframeClientAcquireToken,e.correlationId),S.isEmpty(e.loginHint)&&S.isEmpty(e.sid)&&(!e.account||S.isEmpty(e.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),e.prompt&&e.prompt!==ue.NONE&&e.prompt!==ue.NO_SESSION)throw r.endMeasurement({success:!1}),I.createSilentPromptValueError(e.prompt);return this.performanceClient.setPreQueueTime(m.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(R(R({},e),{prompt:e.prompt||ue.NONE}),k.Silent)];case 1:i=l.sent(),this.browserStorage.updateCacheEntries(i.state,i.nonce,i.authority,i.loginHint||f.EMPTY_STRING,i.account||null),o=this.initializeServerTelemetryManager(this.apiId),l.label=2;case 2:return l.trys.push([2,5,,6]),this.performanceClient.setPreQueueTime(m.StandardInteractionClientCreateAuthCodeClient,e.correlationId),[4,this.createAuthCodeClient(o,i.authority,i.azureCloudOptions)];case 3:return s=l.sent(),this.logger.verbose("Auth code client created"),this.performanceClient.setPreQueueTime(m.SilentIframeClientTokenHelper,e.correlationId),[4,this.silentTokenHelper(s,i).then(function(a){return r.endMeasurement({success:!0,fromCache:!1,requestId:a.requestId}),a})];case 4:return[2,l.sent()];case 5:throw c=l.sent(),c instanceof N&&c.setCorrelationId(this.correlationId),o.cacheFailedRequest(c),this.browserStorage.cleanRequestByState(i.state),r.endMeasurement({errorCode:c instanceof N&&c.errorCode||void 0,subErrorCode:c instanceof N&&c.subError||void 0,success:!1}),c;case 6:return[2]}})})},t.prototype.logout=function(){return Promise.reject(I.createSilentLogoutUnsupportedError())},t.prototype.silentTokenHelper=function(e,r){return y(this,void 0,void 0,function(){var i,o,s,c,l,a,u,d,p,g=this;return C(this,function(v){switch(v.label){case 0:return this.performanceClient.addQueueMeasurement(m.SilentIframeClientTokenHelper,r.correlationId),this.performanceClient.setPreQueueTime(m.StandardInteractionClientInitializeAuthorizationCodeRequest,r.correlationId),[4,this.initializeAuthorizationCodeRequest(r)];case 1:return i=v.sent(),this.performanceClient.setPreQueueTime(m.GetAuthCodeUrl,r.correlationId),[4,e.getAuthCodeUrl(R(R({},r),{nativeBroker:$e.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme)}))];case 2:return o=v.sent(),s=new Cn(e,this.browserStorage,i,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(m.SilentHandlerInitiateAuthRequest,r.correlationId),[4,s.initiateAuthRequest(o)];case 3:return c=v.sent(),this.performanceClient.setPreQueueTime(m.SilentHandlerMonitorIframeForHash,r.correlationId),[4,s.monitorIframeForHash(c,this.config.system.iframeHashTimeout)];case 4:if(l=v.sent(),a=q.getDeserializedHash(l),u=this.validateAndExtractStateFromHash(a,k.Silent,i.correlationId),a.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw I.createNativeConnectionNotEstablishedError();return d=new ht(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,a.accountId,this.browserStorage,this.correlationId),p=De.parseRequestState(this.browserCrypto,u).userRequestState,[2,d.acquireToken(R(R({},r),{state:p,prompt:r.prompt||ue.NONE})).finally(function(){g.browserStorage.cleanRequestByState(u)})]}return this.performanceClient.setPreQueueTime(m.HandleCodeResponseFromHash,r.correlationId),[2,s.handleCodeResponseFromHash(l,u,e.authority,this.networkClient)]}})})},t}(dt);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Vo=function(n){ie(t,n);function t(){return n!==null&&n.apply(this,arguments)||this}return t.prototype.acquireToken=function(e){return y(this,void 0,void 0,function(){var r,i,o,s,c,l=this;return C(this,function(a){switch(a.label){case 0:return this.performanceClient.addQueueMeasurement(m.SilentRefreshClientAcquireToken,e.correlationId),this.performanceClient.setPreQueueTime(m.InitializeBaseRequest,e.correlationId),i=[R({},e)],[4,this.initializeBaseRequest(e,e.account)];case 1:return r=R.apply(void 0,i.concat([a.sent()])),o=this.performanceClient.startMeasurement(m.SilentRefreshClientAcquireToken,r.correlationId),s=this.initializeServerTelemetryManager(X.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(s,r.authority,r.azureCloudOptions)];case 2:return c=a.sent(),this.logger.verbose("Refresh token client created"),this.performanceClient.setPreQueueTime(m.RefreshTokenClientAcquireTokenByRefreshToken,e.correlationId),[2,c.acquireTokenByRefreshToken(r).then(function(u){return o.endMeasurement({success:!0,fromCache:u.fromCache,requestId:u.requestId}),u}).catch(function(u){throw u instanceof N&&u.setCorrelationId(l.correlationId),s.cacheFailedRequest(u),o.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})]}})})},t.prototype.logout=function(){return Promise.reject(I.createSilentLogoutUnsupportedError())},t.prototype.createRefreshTokenClient=function(e,r,i){return y(this,void 0,void 0,function(){var o;return C(this,function(s){switch(s.label){case 0:return this.performanceClient.setPreQueueTime(m.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(e,r,i)];case 1:return o=s.sent(),[2,new rn(o,this.performanceClient)]}})})},t}(dt);/*! @azure/msal-browser v2.38.3 2023-10-27 */var Wo=function(){function n(t,e){this.eventCallbacks=new Map,this.logger=t,this.browserCrypto=e,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return n.prototype.addEventCallback=function(t){if(typeof window<"u"){var e=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(e,t),this.logger.verbose("Event callback registered with id: "+e),e}return null},n.prototype.removeEventCallback=function(t){this.eventCallbacks.delete(t),this.logger.verbose("Event callback "+t+" removed.")},n.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)))},n.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."))},n.prototype.emitEvent=function(t,e,r,i){var o=this;if(typeof window<"u"){var s={eventType:t,interactionType:e||null,payload:r||null,error:i||null,timestamp:Date.now()};this.logger.info("Emitting event: "+t),this.eventCallbacks.forEach(function(c,l){o.logger.verbose("Emitting event to callback "+l+": "+t),c.apply(null,[s])})}},n.prototype.handleAccountCacheChange=function(t){try{var e=t.newValue||t.oldValue;if(!e)return;var r=JSON.parse(e);if(typeof r!="object"||!se.isAccountEntity(r))return;var i=me.toObject(new se,r),o=i.getAccountInfo();!t.oldValue&&t.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(O.ACCOUNT_ADDED,void 0,o)):!t.newValue&&t.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(O.ACCOUNT_REMOVED,void 0,o))}catch{return}},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var de=function(){function n(){}return n.decimalToHex=function(t){for(var e=t.toString(16);e.length<2;)e="0"+e;return e},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var En=function(){function n(t){this.cryptoObj=t}return n.prototype.generateGuid=function(){try{var t=new Uint8Array(16);return this.cryptoObj.getRandomValues(t),t[6]|=64,t[6]&=79,t[8]|=128,t[8]&=191,de.decimalToHex(t[0])+de.decimalToHex(t[1])+de.decimalToHex(t[2])+de.decimalToHex(t[3])+"-"+de.decimalToHex(t[4])+de.decimalToHex(t[5])+"-"+de.decimalToHex(t[6])+de.decimalToHex(t[7])+"-"+de.decimalToHex(t[8])+de.decimalToHex(t[9])+"-"+de.decimalToHex(t[10])+de.decimalToHex(t[11])+de.decimalToHex(t[12])+de.decimalToHex(t[13])+de.decimalToHex(t[14])+de.decimalToHex(t[15])}catch{for(var e="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",r="0123456789abcdef",i=0,o=f.EMPTY_STRING,s=0;s<36;s++)e[s]!=="-"&&e[s]!=="4"&&(i=Math.random()*16|0),e[s]==="x"?o+=r[i]:e[s]==="y"?(i&=3,i|=8,o+=r[i]):o+=e[s];return o}},n.prototype.isGuid=function(t){var e=/^[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 e.test(t)},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var xe=function(){function n(){}return n.stringToUtf8Arr=function(t){for(var e,r=0,i=t.length,o=0;o<i;o++)e=t.charCodeAt(o),r+=e<128?1:e<2048?2:e<65536?3:e<2097152?4:e<67108864?5:6;for(var s=new Uint8Array(r),c=0,l=0;c<r;l++)e=t.charCodeAt(l),e<128?s[c++]=e:e<2048?(s[c++]=192+(e>>>6),s[c++]=128+(e&63)):e<65536?(s[c++]=224+(e>>>12),s[c++]=128+(e>>>6&63),s[c++]=128+(e&63)):e<2097152?(s[c++]=240+(e>>>18),s[c++]=128+(e>>>12&63),s[c++]=128+(e>>>6&63),s[c++]=128+(e&63)):e<67108864?(s[c++]=248+(e>>>24),s[c++]=128+(e>>>18&63),s[c++]=128+(e>>>12&63),s[c++]=128+(e>>>6&63),s[c++]=128+(e&63)):(s[c++]=252+(e>>>30),s[c++]=128+(e>>>24&63),s[c++]=128+(e>>>18&63),s[c++]=128+(e>>>12&63),s[c++]=128+(e>>>6&63),s[c++]=128+(e&63));return s},n.stringToArrayBuffer=function(t){for(var e=new ArrayBuffer(t.length),r=new Uint8Array(e),i=0;i<t.length;i++)r[i]=t.charCodeAt(i);return e},n.utf8ArrToString=function(t){for(var e=f.EMPTY_STRING,r=void 0,i=t.length,o=0;o<i;o++)r=t[o],e+=String.fromCharCode(r>251&&r<254&&o+5<i?(r-252)*1073741824+(t[++o]-128<<24)+(t[++o]-128<<18)+(t[++o]-128<<12)+(t[++o]-128<<6)+t[++o]-128:r>247&&r<252&&o+4<i?(r-248<<24)+(t[++o]-128<<18)+(t[++o]-128<<12)+(t[++o]-128<<6)+t[++o]-128:r>239&&r<248&&o+3<i?(r-240<<18)+(t[++o]-128<<12)+(t[++o]-128<<6)+t[++o]-128:r>223&&r<240&&o+2<i?(r-224<<12)+(t[++o]-128<<6)+t[++o]-128:r>191&&r<224&&o+1<i?(r-192<<6)+t[++o]-128:r);return e},n.getSortedObjectString=function(t){return JSON.stringify(t,Object.keys(t).sort())},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var _n=function(){function n(){}return n.prototype.urlEncode=function(t){return encodeURIComponent(this.encode(t).replace(/=/g,f.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},n.prototype.urlEncodeArr=function(t){return this.base64EncArr(t).replace(/=/g,f.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},n.prototype.encode=function(t){var e=xe.stringToUtf8Arr(t);return this.base64EncArr(e)},n.prototype.base64EncArr=function(t){for(var e=(3-t.length%3)%3,r=f.EMPTY_STRING,i=void 0,o=t.length,s=0,c=0;c<o;c++)i=c%3,s|=t[c]<<(16>>>i&24),(i===2||t.length-c===1)&&(r+=String.fromCharCode(this.uint6ToB64(s>>>18&63),this.uint6ToB64(s>>>12&63),this.uint6ToB64(s>>>6&63),this.uint6ToB64(s&63)),s=0);return e===0?r:r.substring(0,r.length-e)+(e===1?"=":"==")},n.prototype.uint6ToB64=function(t){return t<26?t+65:t<52?t+71:t<62?t-4:t===62?43:t===63?47:65},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Jo=function(){function n(){}return n.prototype.decode=function(t){var e=t.replace(/-/g,"+").replace(/_/g,"/");switch(e.length%4){case 0:break;case 2:e+="==";break;case 3:e+="=";break;default:throw new Error("Invalid base64 string")}var r=this.base64DecToArr(e);return xe.utf8ArrToString(r)},n.prototype.base64DecToArr=function(t,e){for(var r=t.replace(/[^A-Za-z0-9\+\/]/g,f.EMPTY_STRING),i=r.length,o=e?Math.ceil((i*3+1>>>2)/e)*e:i*3+1>>>2,s=new Uint8Array(o),c=void 0,l=void 0,a=0,u=0,d=0;d<i;d++)if(l=d&3,a|=this.b64ToUint6(r.charCodeAt(d))<<18-6*l,l===3||i-d===1){for(c=0;c<3&&u<o;c++,u++)s[u]=a>>>(16>>>c&24)&255;a=0}return s},n.prototype.b64ToUint6=function(t){return t>64&&t<91?t-65:t>96&&t<123?t-71:t>47&&t<58?t+4:t===43?62:t===47?63:0},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Xo=32,$o=function(){function n(t){this.base64Encode=new _n,this.cryptoObj=t}return n.prototype.generateCodes=function(){return y(this,void 0,void 0,function(){var t,e;return C(this,function(r){switch(r.label){case 0:return t=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(t)];case 1:return e=r.sent(),[2,{verifier:t,challenge:e}]}})})},n.prototype.generateCodeVerifier=function(){try{var t=new Uint8Array(Xo);this.cryptoObj.getRandomValues(t);var e=this.base64Encode.urlEncodeArr(t);return e}catch(r){throw I.createPkceNotGeneratedError(r)}},n.prototype.generateCodeChallengeFromVerifier=function(t){return y(this,void 0,void 0,function(){var e,r;return C(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(t)];case 1:return e=i.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(e))];case 2:throw r=i.sent(),I.createPkceNotGeneratedError(r);case 3:return[2]}})})},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Zo=function(){function n(){}return n.prototype.getRandomValues=function(t){return window.crypto.getRandomValues(t)},n.prototype.generateKey=function(t,e,r){return y(this,void 0,void 0,function(){return C(this,function(i){return[2,window.crypto.subtle.generateKey(t,e,r)]})})},n.prototype.exportKey=function(t){return y(this,void 0,void 0,function(){return C(this,function(e){return[2,window.crypto.subtle.exportKey(lt,t)]})})},n.prototype.importKey=function(t,e,r,i){return y(this,void 0,void 0,function(){return C(this,function(o){return[2,window.crypto.subtle.importKey(lt,t,e,r,i)]})})},n.prototype.sign=function(t,e,r){return y(this,void 0,void 0,function(){return C(this,function(i){return[2,window.crypto.subtle.sign(t,e,r)]})})},n.prototype.digest=function(t,e){return y(this,void 0,void 0,function(){return C(this,function(r){return[2,window.crypto.subtle.digest(t,e)]})})},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var ei=function(){function n(){}return n.prototype.initPrng=function(t){return window.msrCrypto.initPrng(cr(t))},n.prototype.getRandomValues=function(t){return window.msrCrypto.getRandomValues(t)},n.prototype.generateKey=function(t,e,r){return y(this,void 0,void 0,function(){return C(this,function(i){return[2,window.msrCrypto.subtle.generateKey(t,e,r)]})})},n.prototype.exportKey=function(t){return y(this,void 0,void 0,function(){return C(this,function(e){return[2,window.msrCrypto.subtle.exportKey(lt,t)]})})},n.prototype.importKey=function(t,e,r,i){return y(this,void 0,void 0,function(){return C(this,function(o){return[2,window.msrCrypto.subtle.importKey(lt,t,e,r,i)]})})},n.prototype.sign=function(t,e,r){return y(this,void 0,void 0,function(){return C(this,function(i){return[2,window.msrCrypto.subtle.sign(t,e,r)]})})},n.prototype.digest=function(t,e){return y(this,void 0,void 0,function(){return C(this,function(r){return[2,window.msrCrypto.subtle.digest(t,e)]})})},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var ti=function(){function n(){}return n.prototype.getRandomValues=function(t){return window.msCrypto.getRandomValues(t)},n.prototype.generateKey=function(t,e,r){return y(this,void 0,void 0,function(){return C(this,function(i){return[2,new Promise(function(o,s){var c=window.msCrypto.subtle.generateKey(t,e,r);c.addEventListener("complete",function(l){o(l.target.result)}),c.addEventListener("error",function(l){s(l)})})]})})},n.prototype.exportKey=function(t){return y(this,void 0,void 0,function(){return C(this,function(e){return[2,new Promise(function(r,i){var o=window.msCrypto.subtle.exportKey(lt,t);o.addEventListener("complete",function(s){var c=s.target.result,l=xe.utf8ArrToString(new Uint8Array(c)).replace(/\r/g,f.EMPTY_STRING).replace(/\n/g,f.EMPTY_STRING).replace(/\t/g,f.EMPTY_STRING).split(" ").join(f.EMPTY_STRING).replace("\0",f.EMPTY_STRING);try{r(JSON.parse(l))}catch(a){i(a)}}),o.addEventListener("error",function(s){i(s)})})]})})},n.prototype.importKey=function(t,e,r,i){return y(this,void 0,void 0,function(){var o,s;return C(this,function(c){return o=xe.getSortedObjectString(t),s=xe.stringToArrayBuffer(o),[2,new Promise(function(l,a){var u=window.msCrypto.subtle.importKey(lt,s,e,r,i);u.addEventListener("complete",function(d){l(d.target.result)}),u.addEventListener("error",function(d){a(d)})})]})})},n.prototype.sign=function(t,e,r){return y(this,void 0,void 0,function(){return C(this,function(i){return[2,new Promise(function(o,s){var c=window.msCrypto.subtle.sign(t,e,r);c.addEventListener("complete",function(l){o(l.target.result)}),c.addEventListener("error",function(l){s(l)})})]})})},n.prototype.digest=function(t,e){return y(this,void 0,void 0,function(){return C(this,function(r){return[2,new Promise(function(i,o){var s=window.msCrypto.subtle.digest(t,e.buffer);s.addEventListener("complete",function(c){i(c.target.result)}),s.addEventListener("error",function(c){o(c)})})]})})},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var ri="RSASSA-PKCS1-v1_5",Tn="SHA-256",ni=2048,oi=new Uint8Array([1,0,1]),wn=function(){function n(t,e){var r,i;if(this.logger=t,this.cryptoOptions=e,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new Zo;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new ti;else if(this.hasMsrCrypto()&&(!((r=this.cryptoOptions)===null||r===void 0)&&r.useMsrCrypto))this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new ei;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."),I.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");if(this.subtleCrypto.initPrng){if(this.logger.verbose("BrowserCrypto: Interface requires entropy"),!(!((i=this.cryptoOptions)===null||i===void 0)&&i.entropy))throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."),Wt.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:ri,hash:Tn,modulusLength:ni,publicExponent:oi}}return n.prototype.hasIECrypto=function(){return"msCrypto"in window},n.prototype.hasBrowserCrypto=function(){return"crypto"in window},n.prototype.hasMsrCrypto=function(){return"msrCrypto"in window},n.prototype.sha256Digest=function(t){return y(this,void 0,void 0,function(){var e;return C(this,function(r){return e=xe.stringToUtf8Arr(t),[2,this.subtleCrypto.digest({name:Tn},e)]})})},n.prototype.getRandomValues=function(t){return this.subtleCrypto.getRandomValues(t)},n.prototype.generateKeyPair=function(t,e){return y(this,void 0,void 0,function(){return C(this,function(r){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,t,e)]})})},n.prototype.exportJwk=function(t){return y(this,void 0,void 0,function(){return C(this,function(e){return[2,this.subtleCrypto.exportKey(t)]})})},n.prototype.importJwk=function(t,e,r){return y(this,void 0,void 0,function(){return C(this,function(i){return[2,this.subtleCrypto.importKey(t,this.keygenAlgorithmOptions,e,r)]})})},n.prototype.sign=function(t,e){return y(this,void 0,void 0,function(){return C(this,function(r){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,t,e)]})})},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var ii=function(){function n(){this.dbName=Cr,this.version=Ho,this.tableName=Do,this.dbOpen=!1}return n.prototype.open=function(){return y(this,void 0,void 0,function(){var t=this;return C(this,function(e){return[2,new Promise(function(r,i){var o=window.indexedDB.open(t.dbName,t.version);o.addEventListener("upgradeneeded",function(s){var c=s;c.target.result.createObjectStore(t.tableName)}),o.addEventListener("success",function(s){var c=s;t.db=c.target.result,t.dbOpen=!0,r()}),o.addEventListener("error",function(){return i(I.createDatabaseUnavailableError())})})]})})},n.prototype.closeConnection=function(){var t=this.db;t&&this.dbOpen&&(t.close(),this.dbOpen=!1)},n.prototype.validateDbIsOpen=function(){return y(this,void 0,void 0,function(){return C(this,function(t){switch(t.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,t.sent()];case 2:return[2]}})})},n.prototype.getItem=function(t){return y(this,void 0,void 0,function(){var e=this;return C(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(i,o){if(!e.db)return o(I.createDatabaseNotOpenError());var s=e.db.transaction([e.tableName],"readonly"),c=s.objectStore(e.tableName),l=c.get(t);l.addEventListener("success",function(a){var u=a;e.closeConnection(),i(u.target.result)}),l.addEventListener("error",function(a){e.closeConnection(),o(a)})})]}})})},n.prototype.setItem=function(t,e){return y(this,void 0,void 0,function(){var r=this;return C(this,function(i){switch(i.label){case 0:return[4,this.validateDbIsOpen()];case 1:return i.sent(),[2,new Promise(function(o,s){if(!r.db)return s(I.createDatabaseNotOpenError());var c=r.db.transaction([r.tableName],"readwrite"),l=c.objectStore(r.tableName),a=l.put(e,t);a.addEventListener("success",function(){r.closeConnection(),o()}),a.addEventListener("error",function(u){r.closeConnection(),s(u)})})]}})})},n.prototype.removeItem=function(t){return y(this,void 0,void 0,function(){var e=this;return C(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(i,o){if(!e.db)return o(I.createDatabaseNotOpenError());var s=e.db.transaction([e.tableName],"readwrite"),c=s.objectStore(e.tableName),l=c.delete(t);l.addEventListener("success",function(){e.closeConnection(),i()}),l.addEventListener("error",function(a){e.closeConnection(),o(a)})})]}})})},n.prototype.getKeys=function(){return y(this,void 0,void 0,function(){var t=this;return C(this,function(e){switch(e.label){case 0:return[4,this.validateDbIsOpen()];case 1:return e.sent(),[2,new Promise(function(r,i){if(!t.db)return i(I.createDatabaseNotOpenError());var o=t.db.transaction([t.tableName],"readonly"),s=o.objectStore(t.tableName),c=s.getAllKeys();c.addEventListener("success",function(l){var a=l;t.closeConnection(),r(a.target.result)}),c.addEventListener("error",function(l){t.closeConnection(),i(l)})})]}})})},n.prototype.containsKey=function(t){return y(this,void 0,void 0,function(){var e=this;return C(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(i,o){if(!e.db)return o(I.createDatabaseNotOpenError());var s=e.db.transaction([e.tableName],"readonly"),c=s.objectStore(e.tableName),l=c.count(t);l.addEventListener("success",function(a){var u=a;e.closeConnection(),i(u.target.result===1)}),l.addEventListener("error",function(a){e.closeConnection(),o(a)})})]}})})},n.prototype.deleteDatabase=function(){return y(this,void 0,void 0,function(){return C(this,function(t){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(e,r){var i=window.indexedDB.deleteDatabase(Cr);i.addEventListener("success",function(){return e(!0)}),i.addEventListener("blocked",function(){return e(!0)}),i.addEventListener("error",function(){return r(!1)})})]})})},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var In=function(){function n(t,e){this.inMemoryCache=new Er,this.indexedDBCache=new ii,this.logger=t,this.storeName=e}return n.prototype.handleDatabaseAccessError=function(t){if(t instanceof I&&t.errorCode===_.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 t},n.prototype.getItem=function(t){return y(this,void 0,void 0,function(){var e,r;return C(this,function(i){switch(i.label){case 0:if(e=this.inMemoryCache.getItem(t),e)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(t)];case 2:return[2,i.sent()];case 3:return r=i.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2,e]}})})},n.prototype.setItem=function(t,e){return y(this,void 0,void 0,function(){var r;return C(this,function(i){switch(i.label){case 0:this.inMemoryCache.setItem(t,e),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(t,e)];case 2:return i.sent(),[3,4];case 3:return r=i.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2]}})})},n.prototype.removeItem=function(t){return y(this,void 0,void 0,function(){var e;return C(this,function(r){switch(r.label){case 0:this.inMemoryCache.removeItem(t),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(t)];case 2:return r.sent(),[3,4];case 3:return e=r.sent(),this.handleDatabaseAccessError(e),[3,4];case 4:return[2]}})})},n.prototype.getKeys=function(){return y(this,void 0,void 0,function(){var t,e;return C(this,function(r){switch(r.label){case 0:if(t=this.inMemoryCache.getKeys(),t.length!==0)return[3,4];r.label=1;case 1:return r.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,r.sent()];case 3:return e=r.sent(),this.handleDatabaseAccessError(e),[3,4];case 4:return[2,t]}})})},n.prototype.containsKey=function(t){return y(this,void 0,void 0,function(){var e,r;return C(this,function(i){switch(i.label){case 0:if(e=this.inMemoryCache.containsKey(t),e)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(t)];case 2:return[2,i.sent()];case 3:return r=i.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2,e]}})})},n.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},n.prototype.clearPersistent=function(){return y(this,void 0,void 0,function(){var t,e;return C(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),this.logger.verbose("Deleting persistent keystore"),[4,this.indexedDBCache.deleteDatabase()];case 1:return t=r.sent(),t&&this.logger.verbose("Persistent keystore deleted"),[2,t];case 2:return e=r.sent(),this.handleDatabaseAccessError(e),[2,!1];case 3:return[2]}})})},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Jt;(function(n){n.asymmetricKeys="asymmetricKeys",n.symmetricKeys="symmetricKeys"})(Jt||(Jt={}));var ai=function(){function n(t){this.logger=t,this.asymmetricKeys=new In(this.logger,Jt.asymmetricKeys),this.symmetricKeys=new In(this.logger,Jt.symmetricKeys)}return n.prototype.clear=function(){return y(this,void 0,void 0,function(){var t;return C(this,function(e){switch(e.label){case 0:this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory(),e.label=1;case 1:return e.trys.push([1,3,,4]),[4,this.asymmetricKeys.clearPersistent()];case 2:return e.sent(),[2,!0];case 3:return t=e.sent(),t instanceof Error?this.logger.error("Clearing keystore failed with error: "+t.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}})})},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var si=function(){function n(t,e,r){this.logger=t,this.browserCrypto=new wn(this.logger,r),this.b64Encode=new _n,this.b64Decode=new Jo,this.guidGenerator=new En(this.browserCrypto),this.pkceGenerator=new $o(this.browserCrypto),this.cache=new ai(this.logger),this.performanceClient=e}return n.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},n.prototype.base64Encode=function(t){return this.b64Encode.encode(t)},n.prototype.base64Decode=function(t){return this.b64Decode.decode(t)},n.prototype.generatePkceCodes=function(){return y(this,void 0,void 0,function(){return C(this,function(t){return[2,this.pkceGenerator.generateCodes()]})})},n.prototype.getPublicKeyThumbprint=function(t){var e;return y(this,void 0,void 0,function(){var r,i,o,s,c,l,a,u;return C(this,function(d){switch(d.label){case 0:return r=(e=this.performanceClient)===null||e===void 0?void 0:e.startMeasurement(m.CryptoOptsGetPublicKeyThumbprint,t.correlationId),[4,this.browserCrypto.generateKeyPair(n.EXTRACTABLE,n.POP_KEY_USAGES)];case 1:return i=d.sent(),[4,this.browserCrypto.exportJwk(i.publicKey)];case 2:return o=d.sent(),s={e:o.e,kty:o.kty,n:o.n},c=xe.getSortedObjectString(s),[4,this.hashString(c)];case 3:return l=d.sent(),[4,this.browserCrypto.exportJwk(i.privateKey)];case 4:return a=d.sent(),[4,this.browserCrypto.importJwk(a,!1,["sign"])];case 5:return u=d.sent(),[4,this.cache.asymmetricKeys.setItem(l,{privateKey:u,publicKey:i.publicKey,requestMethod:t.resourceRequestMethod,requestUri:t.resourceRequestUri})];case 6:return d.sent(),r&&r.endMeasurement({success:!0}),[2,l]}})})},n.prototype.removeTokenBindingKey=function(t){return y(this,void 0,void 0,function(){var e;return C(this,function(r){switch(r.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(t)];case 1:return r.sent(),[4,this.cache.asymmetricKeys.containsKey(t)];case 2:return e=r.sent(),[2,!e]}})})},n.prototype.clearKeystore=function(){return y(this,void 0,void 0,function(){return C(this,function(t){switch(t.label){case 0:return[4,this.cache.clear()];case 1:return[2,t.sent()]}})})},n.prototype.signJwt=function(t,e,r){var i;return y(this,void 0,void 0,function(){var o,s,c,l,a,u,d,p,g,v,w,B,F;return C(this,function(P){switch(P.label){case 0:return o=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(m.CryptoOptsSignJwt,r),[4,this.cache.asymmetricKeys.getItem(e)];case 1:if(s=P.sent(),!s)throw I.createSigningKeyNotFoundInStorageError(e);return[4,this.browserCrypto.exportJwk(s.publicKey)];case 2:return c=P.sent(),l=xe.getSortedObjectString(c),a=this.b64Encode.urlEncode(JSON.stringify({kid:e})),u=Mo.getShrHeaderString({kid:a,alg:c.alg}),d=this.b64Encode.urlEncode(u),t.cnf={jwk:JSON.parse(l)},p=this.b64Encode.urlEncode(JSON.stringify(t)),g=d+"."+p,v=xe.stringToArrayBuffer(g),[4,this.browserCrypto.sign(s.privateKey,v)];case 3:return w=P.sent(),B=this.b64Encode.urlEncodeArr(new Uint8Array(w)),F=g+"."+B,o&&o.endMeasurement({success:!0}),[2,F]}})})},n.prototype.hashString=function(t){return y(this,void 0,void 0,function(){var e,r;return C(this,function(i){switch(i.label){case 0:return[4,this.browserCrypto.sha256Digest(t)];case 1:return e=i.sent(),r=new Uint8Array(e),[2,this.b64Encode.urlEncodeArr(r)]}})})},n.POP_KEY_USAGES=["sign","verify"],n.EXTRACTABLE=!0,n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var Sn=function(){function n(t,e){this.correlationId=e,this.measureName=n.makeMeasureName(t,e),this.startMark=n.makeStartMark(t,e),this.endMark=n.makeEndMark(t,e)}return n.makeMeasureName=function(t,e){return"msal.measure."+t+"."+e},n.makeStartMark=function(t,e){return"msal.start."+t+"."+e},n.makeEndMark=function(t,e){return"msal.end."+t+"."+e},n.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"},n.flushMeasurements=function(t,e){if(n.supportsBrowserPerformance())try{e.forEach(function(r){var i=n.makeMeasureName(r.name,t),o=window.performance.getEntriesByName(i,"measure");o.length>0&&(window.performance.clearMeasures(i),window.performance.clearMarks(n.makeStartMark(i,t)),window.performance.clearMarks(n.makeEndMark(i,t)))})}catch{}},n.prototype.startMeasurement=function(){if(n.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch{}},n.prototype.endMeasurement=function(){if(n.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch{}},n.prototype.flushMeasurement=function(){if(n.supportsBrowserPerformance())try{var t=window.performance.getEntriesByName(this.measureName,"measure");if(t.length>0){var e=t[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),e}}catch{}return null},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var ci=function(n){ie(t,n);function t(e,r,i,o,s,c,l){var a=n.call(this,e,r,i,o,s,c)||this;return a.browserCrypto=new wn(a.logger,l),a.guidGenerator=new En(a.browserCrypto),a}return t.prototype.startPerformanceMeasuremeant=function(e,r){return new Sn(e,r)},t.prototype.generateId=function(){return this.guidGenerator.generateGuid()},t.prototype.getPageVisibility=function(){var e;return((e=document.visibilityState)===null||e===void 0?void 0:e.toString())||null},t.prototype.deleteIncompleteSubMeasurements=function(e){var r=this.eventsByCorrelationId.get(e.event.correlationId),i=r&&r.eventId===e.event.eventId,o=[];i&&(r!=null&&r.incompleteSubMeasurements)&&r.incompleteSubMeasurements.forEach(function(s){o.push(R({},s))}),o.length>0&&Sn.flushMeasurements(e.event.correlationId,o)},t.prototype.supportsBrowserPerformanceNow=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.now=="function"},t.prototype.startMeasurement=function(e,r){var i=this,o=this.getPageVisibility(),s=n.prototype.startMeasurement.call(this,e,r);return R(R({},s),{endMeasurement:function(c){var l=s.endMeasurement(R({startPageVisibility:o,endPageVisibility:i.getPageVisibility()},c));return i.deleteIncompleteSubMeasurements(s),l},discardMeasurement:function(){s.discardMeasurement(),i.deleteIncompleteSubMeasurements(s),s.measurement.flushMeasurement()}})},t.prototype.setPreQueueTime=function(e,r){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to set telemetry queue time for "+e);return}if(!r){this.logger.trace("BrowserPerformanceClient: correlationId for "+e+" not provided, unable to set telemetry queue time");return}var i=this.preQueueTimeByCorrelationId.get(r);i&&(this.logger.trace("BrowserPerformanceClient: Incomplete pre-queue "+i.name+" found",r),this.addQueueMeasurement(i.name,r,void 0,!0)),this.preQueueTimeByCorrelationId.set(r,{name:e,time:window.performance.now()})},t.prototype.addQueueMeasurement=function(e,r,i,o){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to add queue measurement for "+e);return}if(!r){this.logger.trace("BrowserPerformanceClient: correlationId for "+e+" not provided, unable to add queue measurement");return}var s=n.prototype.getPreQueueTime.call(this,e,r);if(s){var c=window.performance.now(),l=i||n.prototype.calculateQueuedTime.call(this,s,c);return n.prototype.addQueueMeasurement.call(this,e,r,l,o)}},t}(un);/*! @azure/msal-browser v2.38.3 2023-10-27 */var ui=function(){function n(t,e,r,i){this.isBrowserEnvironment=typeof window<"u",this.config=t,this.storage=e,this.logger=r,this.cryptoObj=i}return n.prototype.loadExternalTokens=function(t,e,r){if(this.logger.info("TokenCache - loadExternalTokens called"),!e.id_token)throw I.createUnableToLoadTokenError("Please ensure server response includes id token.");var i=new Re(e.id_token,this.cryptoObj),o,s;if(t.account){var c=this.loadAccount(i,t.account.environment,void 0,void 0,t.account.homeAccountId);o=new kt(c,this.loadIdToken(i,c.homeAccountId,t.account.environment,t.account.tenantId),this.loadAccessToken(t,e,c.homeAccountId,t.account.environment,t.account.tenantId,r),this.loadRefreshToken(t,e,c.homeAccountId,t.account.environment))}else if(t.authority){var l=Nt.generateAuthority(t.authority,t.azureCloudOptions),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};if(s=new Nt(l,this.config.system.networkClient,this.storage,a,this.logger),r.clientInfo){this.logger.trace("TokenCache - homeAccountId from options");var c=this.loadAccount(i,s.hostnameAndPort,r.clientInfo,s.authorityType);o=new kt(c,this.loadIdToken(i,c.homeAccountId,s.hostnameAndPort,s.tenant),this.loadAccessToken(t,e,c.homeAccountId,s.hostnameAndPort,s.tenant,r),this.loadRefreshToken(t,e,c.homeAccountId,s.hostnameAndPort))}else if(e.client_info){this.logger.trace("TokenCache - homeAccountId from response");var c=this.loadAccount(i,s.hostnameAndPort,e.client_info,s.authorityType);o=new kt(c,this.loadIdToken(i,c.homeAccountId,s.hostnameAndPort,s.tenant),this.loadAccessToken(t,e,c.homeAccountId,s.hostnameAndPort,s.tenant,r),this.loadRefreshToken(t,e,c.homeAccountId,s.hostnameAndPort))}else throw I.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw I.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");return this.generateAuthenticationResult(t,i,o,s)},n.prototype.loadAccount=function(t,e,r,i,o){var s;if(o?s=o:i!==void 0&&r&&(s=se.generateHomeAccountId(r,i,this.logger,this.cryptoObj,t)),!s)throw I.createUnableToLoadTokenError("Unexpected missing homeAccountId");var c=r?se.createAccount(r,s,t,void 0,void 0,void 0,e):se.createGenericAccount(s,t,void 0,void 0,void 0,e);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(c),c;throw I.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},n.prototype.loadIdToken=function(t,e,r,i){var o=Je.createIdTokenEntity(e,r,t.rawToken,this.config.auth.clientId,i);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(o),o;throw I.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},n.prototype.loadAccessToken=function(t,e,r,i,o,s){if(!e.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!e.expires_in)throw I.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!s.extendedExpiresOn)throw I.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var c=new le(t.scopes).printScopes(),l=s.expiresOn||e.expires_in+new Date().getTime()/1e3,a=s.extendedExpiresOn,u=Xe.createAccessTokenEntity(r,i,e.access_token,this.config.auth.clientId,o,c,l,a,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(u),u;throw I.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},n.prototype.loadRefreshToken=function(t,e,r,i){if(!e.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;var o=at.createRefreshTokenEntity(r,i,e.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(o),o;throw I.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},n.prototype.generateAuthenticationResult=function(t,e,r,i){var o,s,c,l=f.EMPTY_STRING,a=[],u=null,d;r!=null&&r.accessToken&&(l=r.accessToken.secret,a=le.fromString(r.accessToken.target).asArray(),u=new Date(Number(r.accessToken.expiresOn)*1e3),d=new Date(Number(r.accessToken.extendedExpiresOn)*1e3));var p=(e==null?void 0:e.claims.oid)||(e==null?void 0:e.claims.sub)||f.EMPTY_STRING,g=(e==null?void 0:e.claims.tid)||f.EMPTY_STRING;return{authority:i?i.canonicalAuthority:f.EMPTY_STRING,uniqueId:p,tenantId:g,scopes:a,account:r!=null&&r.account?r.account.getAccountInfo():null,idToken:e?e.rawToken:f.EMPTY_STRING,idTokenClaims:e?e.claims:{},accessToken:l,fromCache:!0,expiresOn:u,correlationId:t.correlationId||f.EMPTY_STRING,requestId:f.EMPTY_STRING,extExpiresOn:d,familyId:f.EMPTY_STRING,tokenType:((o=r==null?void 0:r.accessToken)===null||o===void 0?void 0:o.tokenType)||f.EMPTY_STRING,state:f.EMPTY_STRING,cloudGraphHostName:((s=r==null?void 0:r.account)===null||s===void 0?void 0:s.cloudGraphHostName)||f.EMPTY_STRING,msGraphHost:((c=r==null?void 0:r.account)===null||c===void 0?void 0:c.msGraphHost)||f.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var li=function(n){ie(t,n);function t(e){var r=n.call(this,e)||this;return r.includeRedirectUri=!1,r}return t}(tn);/*! @azure/msal-browser v2.38.3 2023-10-27 */var di=function(n){ie(t,n);function t(e,r,i,o,s,c,l,a,u,d){var p=n.call(this,e,r,i,o,s,c,a,u,d)||this;return p.apiId=l,p}return t.prototype.acquireToken=function(e){return y(this,void 0,void 0,function(){var r,i,o,s,c,l,a;return C(this,function(u){switch(u.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!e.code)throw I.createAuthCodeRequiredError();return this.performanceClient.setPreQueueTime(m.StandardInteractionClientInitializeAuthorizationRequest,e.correlationId),[4,this.initializeAuthorizationRequest(e,k.Silent)];case 1:r=u.sent(),this.browserStorage.updateCacheEntries(r.state,r.nonce,r.authority,r.loginHint||f.EMPTY_STRING,r.account||null),i=this.initializeServerTelemetryManager(this.apiId),u.label=2;case 2:return u.trys.push([2,4,,5]),o=R(R({},r),{code:e.code}),this.performanceClient.setPreQueueTime(m.StandardInteractionClientGetClientConfiguration,e.correlationId),[4,this.getClientConfiguration(i,r.authority)];case 3:return s=u.sent(),c=new li(s),this.logger.verbose("Auth code client created"),l=new Cn(c,this.browserStorage,o,this.logger,this.config.system,this.performanceClient),[2,l.handleCodeResponseFromServer({code:e.code,msgraph_host:e.msGraphHost,cloud_graph_host_name:e.cloudGraphHostName,cloud_instance_host_name:e.cloudInstanceHostName},r.state,c.authority,this.networkClient,!1)];case 4:throw a=u.sent(),a instanceof N&&a.setCorrelationId(this.correlationId),i.cacheFailedRequest(a),this.browserStorage.cleanRequestByState(r.state),a;case 5:return[2]}})})},t.prototype.logout=function(){return Promise.reject(I.createSilentLogoutUnsupportedError())},t}(dt);/*! @azure/msal-browser v2.38.3 2023-10-27 */var hi=function(){function n(t){this.isBrowserEnvironment=typeof window<"u",this.config=Qo(t,this.isBrowserEnvironment),this.initialized=!1,this.logger=new hr(this.config.system.loggerOptions,Tr,Mt),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 ci(this.config.auth.clientId,this.config.auth.authority,this.logger,Tr,Mt,this.config.telemetry.application,this.config.system.cryptoOptions):new Uo(this.config.auth.clientId,this.config.auth.authority,this.logger,Tr,Mt,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new si(this.logger,this.performanceClient,this.config.system.cryptoOptions):Kt,this.eventHandler=new Wo(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new _r(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):Lo(this.config.auth.clientId,this.logger);var e={cacheLocation:ee.MemoryStorage,temporaryCacheLocation:ee.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};this.nativeInternalStorage=new _r(this.config.auth.clientId,e,this.browserCrypto,this.logger),this.tokenCache=new ui(this.config,this.browserStorage,this.logger,this.browserCrypto),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}return n.prototype.initialize=function(){return y(this,void 0,void 0,function(){var t,e,r,i,o;return C(this,function(s){switch(s.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(t=this.config.system.allowNativeBroker,e=this.performanceClient.startMeasurement(m.InitializeClientApplication),this.eventHandler.emitEvent(O.INITIALIZE_START),!t)return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),r=this,[4,$e.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)];case 2:return r.nativeExtensionProvider=s.sent(),[3,4];case 3:return i=s.sent(),this.logger.verbose(i),[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"),o=this.performanceClient.startMeasurement(m.ClearTokensAndKeysWithClaims),[4,this.browserStorage.clearTokensAndKeysWithClaims()]);case 5:s.sent(),o.endMeasurement({success:!0}),s.label=6;case 6:return this.initialized=!0,this.eventHandler.emitEvent(O.INITIALIZE_END),e.endMeasurement({allowNativeBroker:t,success:!0}),[2]}})})},n.prototype.handleRedirectPromise=function(t){return y(this,void 0,void 0,function(){var e,r,i,o,s,c,l,a,u=this;return C(this,function(d){return this.logger.verbose("handleRedirectPromise called"),$.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e=this.getAllAccounts(),this.isBrowserEnvironment?(r=t||f.EMPTY_STRING,i=this.redirectResponse.get(r),typeof i>"u"?(this.eventHandler.emitEvent(O.HANDLE_REDIRECT_START,k.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),o=this.browserStorage.getCachedNativeRequest(),s=void 0,o&&$e.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!t?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),c=new ht(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,X.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,o.accountId,this.nativeInternalStorage,o.correlationId),s=c.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),l=this.browserStorage.getTemporaryCache(z.CORRELATION_ID,!0)||f.EMPTY_STRING,a=this.createRedirectClient(l),s=a.handleRedirectPromise(t)),i=s.then(function(p){if(p){var g=e.length<u.getAllAccounts().length;g?(u.eventHandler.emitEvent(O.LOGIN_SUCCESS,k.Redirect,p),u.logger.verbose("handleRedirectResponse returned result, login success")):(u.eventHandler.emitEvent(O.ACQUIRE_TOKEN_SUCCESS,k.Redirect,p),u.logger.verbose("handleRedirectResponse returned result, acquire token success"))}return u.eventHandler.emitEvent(O.HANDLE_REDIRECT_END,k.Redirect),p}).catch(function(p){throw e.length>0?u.eventHandler.emitEvent(O.ACQUIRE_TOKEN_FAILURE,k.Redirect,null,p):u.eventHandler.emitEvent(O.LOGIN_FAILURE,k.Redirect,null,p),u.eventHandler.emitEvent(O.HANDLE_REDIRECT_END,k.Redirect),p}),this.redirectResponse.set(r,i)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,i]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},n.prototype.acquireTokenRedirect=function(t){return y(this,void 0,void 0,function(){var e,r,i,o,s,c=this;return C(this,function(l){return e=this.getRequestCorrelationId(t),this.logger.verbose("acquireTokenRedirect called",e),this.preflightBrowserEnvironmentCheck(k.Redirect),r=this.getAllAccounts().length>0,r?this.eventHandler.emitEvent(O.ACQUIRE_TOKEN_START,k.Redirect,t):this.eventHandler.emitEvent(O.LOGIN_START,k.Redirect,t),this.nativeExtensionProvider&&this.canUseNative(t)?(o=new ht(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,X.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(t),this.nativeInternalStorage,t.correlationId),i=o.acquireTokenRedirect(t).catch(function(a){if(a instanceof Me&&a.isFatal()){c.nativeExtensionProvider=void 0;var u=c.createRedirectClient(t.correlationId);return u.acquireToken(t)}else if(a instanceof Se){c.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");var u=c.createRedirectClient(t.correlationId);return u.acquireToken(t)}throw c.browserStorage.setInteractionInProgress(!1),a})):(s=this.createRedirectClient(t.correlationId),i=s.acquireToken(t)),[2,i.catch(function(a){throw r?c.eventHandler.emitEvent(O.ACQUIRE_TOKEN_FAILURE,k.Redirect,null,a):c.eventHandler.emitEvent(O.LOGIN_FAILURE,k.Redirect,null,a),a})]})})},n.prototype.acquireTokenPopup=function(t){var e=this,r=this.getRequestCorrelationId(t),i=this.performanceClient.startMeasurement(m.AcquireTokenPopup,r);try{this.logger.verbose("acquireTokenPopup called",r),this.preflightBrowserEnvironmentCheck(k.Popup)}catch(l){return Promise.reject(l)}var o=this.getAllAccounts();o.length>0?this.eventHandler.emitEvent(O.ACQUIRE_TOKEN_START,k.Popup,t):this.eventHandler.emitEvent(O.LOGIN_START,k.Popup,t);var s;if(this.canUseNative(t))s=this.acquireTokenNative(t,X.acquireTokenPopup).then(function(l){return e.browserStorage.setInteractionInProgress(!1),i.endMeasurement({success:!0,isNativeBroker:!0,requestId:l.requestId}),l}).catch(function(l){if(l instanceof Me&&l.isFatal()){e.nativeExtensionProvider=void 0;var a=e.createPopupClient(t.correlationId);return a.acquireToken(t)}else if(l instanceof Se){e.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");var a=e.createPopupClient(t.correlationId);return a.acquireToken(t)}throw e.browserStorage.setInteractionInProgress(!1),l});else{var c=this.createPopupClient(t.correlationId);s=c.acquireToken(t)}return s.then(function(l){var a=o.length<e.getAllAccounts().length;return a?e.eventHandler.emitEvent(O.LOGIN_SUCCESS,k.Popup,l):e.eventHandler.emitEvent(O.ACQUIRE_TOKEN_SUCCESS,k.Popup,l),i.addStaticFields({accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),i.endMeasurement({success:!0,requestId:l.requestId}),l}).catch(function(l){return o.length>0?e.eventHandler.emitEvent(O.ACQUIRE_TOKEN_FAILURE,k.Popup,null,l):e.eventHandler.emitEvent(O.LOGIN_FAILURE,k.Popup,null,l),i.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),Promise.reject(l)})},n.prototype.trackPageVisibilityWithMeasurement=function(){var t=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;t&&(this.logger.info("Perf: Visibility change detected in ",t.event.name),t.increment({visibilityChangeCount:1}))},n.prototype.ssoSilent=function(t){var e;return y(this,void 0,void 0,function(){var r,i,o,s,c=this;return C(this,function(l){return r=this.getRequestCorrelationId(t),i=R(R({},t),{prompt:t.prompt,correlationId:r}),this.preflightBrowserEnvironmentCheck(k.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(m.SsoSilent,r),(e=this.ssoSilentMeasurement)===null||e===void 0||e.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",r),this.eventHandler.emitEvent(O.SSO_SILENT_START,k.Silent,i),this.canUseNative(i)?o=this.acquireTokenNative(i,X.ssoSilent).catch(function(a){if(a instanceof Me&&a.isFatal()){c.nativeExtensionProvider=void 0;var u=c.createSilentIframeClient(i.correlationId);return u.acquireToken(i)}throw a}):(s=this.createSilentIframeClient(i.correlationId),o=s.acquireToken(i)),[2,o.then(function(a){var u,d;return c.eventHandler.emitEvent(O.SSO_SILENT_SUCCESS,k.Silent,a),(u=c.ssoSilentMeasurement)===null||u===void 0||u.addStaticFields({accessTokenSize:a.accessToken.length,idTokenSize:a.idToken.length}),(d=c.ssoSilentMeasurement)===null||d===void 0||d.endMeasurement({success:!0,isNativeBroker:a.fromNativeBroker,requestId:a.requestId}),a}).catch(function(a){var u;throw c.eventHandler.emitEvent(O.SSO_SILENT_FAILURE,k.Silent,null,a),(u=c.ssoSilentMeasurement)===null||u===void 0||u.endMeasurement({errorCode:a.errorCode,subErrorCode:a.subError,success:!1}),a}).finally(function(){document.removeEventListener("visibilitychange",c.trackPageVisibilityWithMeasurement)})]})})},n.prototype.acquireTokenByCode=function(t){return y(this,void 0,void 0,function(){var e,r,i,o,s=this;return C(this,function(c){e=this.getRequestCorrelationId(t),this.preflightBrowserEnvironmentCheck(k.Silent),this.logger.trace("acquireTokenByCode called",e),this.eventHandler.emitEvent(O.ACQUIRE_TOKEN_BY_CODE_START,k.Silent,t),r=this.performanceClient.startMeasurement(m.AcquireTokenByCode,t.correlationId);try{if(t.code&&t.nativeAccountId)throw I.createSpaCodeAndNativeAccountIdPresentError();if(t.code)return i=t.code,o=this.hybridAuthCodeResponses.get(i),o?(this.logger.verbose("Existing acquireTokenByCode request found",t.correlationId),r.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",e),o=this.acquireTokenByCodeAsync(R(R({},t),{correlationId:e})).then(function(l){return s.eventHandler.emitEvent(O.ACQUIRE_TOKEN_BY_CODE_SUCCESS,k.Silent,l),s.hybridAuthCodeResponses.delete(i),r.addStaticFields({accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),r.endMeasurement({success:!0,isNativeBroker:l.fromNativeBroker,requestId:l.requestId}),l}).catch(function(l){throw s.hybridAuthCodeResponses.delete(i),s.eventHandler.emitEvent(O.ACQUIRE_TOKEN_BY_CODE_FAILURE,k.Silent,null,l),r.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),l}),this.hybridAuthCodeResponses.set(i,o)),[2,o];if(t.nativeAccountId){if(this.canUseNative(t,t.nativeAccountId))return[2,this.acquireTokenNative(t,X.acquireTokenByCode,t.nativeAccountId).catch(function(l){throw l instanceof Me&&l.isFatal()&&(s.nativeExtensionProvider=void 0),l})];throw I.createUnableToAcquireTokenFromNativePlatformError()}else throw I.createAuthCodeOrNativeAccountIdRequiredError()}catch(l){throw this.eventHandler.emitEvent(O.ACQUIRE_TOKEN_BY_CODE_FAILURE,k.Silent,null,l),r.endMeasurement({errorCode:l instanceof N&&l.errorCode||void 0,subErrorCode:l instanceof N&&l.subError||void 0,success:!1}),l}return[2]})})},n.prototype.acquireTokenByCodeAsync=function(t){var e;return y(this,void 0,void 0,function(){var r,i,o=this;return C(this,function(s){switch(s.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",t.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(m.AcquireTokenByCodeAsync,t.correlationId),(e=this.acquireTokenByCodeAsyncMeasurement)===null||e===void 0||e.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),r=this.createSilentAuthCodeClient(t.correlationId),[4,r.acquireToken(t).then(function(c){var l;return(l=o.acquireTokenByCodeAsyncMeasurement)===null||l===void 0||l.endMeasurement({success:!0,fromCache:c.fromCache,isNativeBroker:c.fromNativeBroker,requestId:c.requestId}),c}).catch(function(c){var l;throw(l=o.acquireTokenByCodeAsyncMeasurement)===null||l===void 0||l.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),c}).finally(function(){document.removeEventListener("visibilitychange",o.trackPageVisibilityWithMeasurement)})];case 1:return i=s.sent(),[2,i]}})})},n.prototype.acquireTokenFromCache=function(t,e,r){return y(this,void 0,void 0,function(){return C(this,function(i){switch(this.performanceClient.addQueueMeasurement(m.AcquireTokenFromCache,e.correlationId),r.cacheLookupPolicy){case ve.Default:case ve.AccessToken:case ve.AccessTokenAndRefreshToken:return[2,t.acquireToken(e)];default:throw b.createRefreshRequiredError()}return[2]})})},n.prototype.acquireTokenByRefreshToken=function(t,e){return y(this,void 0,void 0,function(){var r;return C(this,function(i){switch(this.performanceClient.addQueueMeasurement(m.AcquireTokenByRefreshToken,t.correlationId),e.cacheLookupPolicy){case ve.Default:case ve.AccessTokenAndRefreshToken:case ve.RefreshToken:case ve.RefreshTokenAndNetwork:return r=this.createSilentRefreshClient(t.correlationId),this.performanceClient.setPreQueueTime(m.SilentRefreshClientAcquireToken,t.correlationId),[2,r.acquireToken(t)];default:throw b.createRefreshRequiredError()}return[2]})})},n.prototype.acquireTokenBySilentIframe=function(t){return y(this,void 0,void 0,function(){var e;return C(this,function(r){return this.performanceClient.addQueueMeasurement(m.AcquireTokenBySilentIframe,t.correlationId),e=this.createSilentIframeClient(t.correlationId),this.performanceClient.setPreQueueTime(m.SilentIframeClientAcquireToken,t.correlationId),[2,e.acquireToken(t)]})})},n.prototype.logout=function(t){return y(this,void 0,void 0,function(){var e;return C(this,function(r){return e=this.getRequestCorrelationId(t),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",e),[2,this.logoutRedirect(R({correlationId:e},t))]})})},n.prototype.logoutRedirect=function(t){return y(this,void 0,void 0,function(){var e,r;return C(this,function(i){return e=this.getRequestCorrelationId(t),this.preflightBrowserEnvironmentCheck(k.Redirect),r=this.createRedirectClient(e),[2,r.logout(t)]})})},n.prototype.logoutPopup=function(t){try{var e=this.getRequestCorrelationId(t);this.preflightBrowserEnvironmentCheck(k.Popup);var r=this.createPopupClient(e);return r.logout(t)}catch(i){return Promise.reject(i)}},n.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},n.prototype.getAccountByUsername=function(t){if(this.logger.trace("getAccountByUsername called"),!t)return this.logger.warning("getAccountByUsername: No username provided"),null;var e=this.browserStorage.getAccountInfoFilteredBy({username:t});return e?(this.logger.verbose("getAccountByUsername: Account matching username found, returning"),this.logger.verbosePii("getAccountByUsername: Returning signed-in accounts matching username: "+t),e):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},n.prototype.getAccountByHomeId=function(t){if(this.logger.trace("getAccountByHomeId called"),!t)return this.logger.warning("getAccountByHomeId: No homeAccountId provided"),null;var e=this.browserStorage.getAccountInfoFilteredBy({homeAccountId:t});return e?(this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),this.logger.verbosePii("getAccountByHomeId: Returning signed-in accounts matching homeAccountId: "+t),e):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},n.prototype.getAccountByLocalId=function(t){if(this.logger.trace("getAccountByLocalId called"),!t)return this.logger.warning("getAccountByLocalId: No localAccountId provided"),null;var e=this.browserStorage.getAccountInfoFilteredBy({localAccountId:t});return e?(this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),this.logger.verbosePii("getAccountByLocalId: Returning signed-in accounts matching localAccountId: "+t),e):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},n.prototype.setActiveAccount=function(t){this.browserStorage.setActiveAccount(t)},n.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},n.prototype.preflightBrowserEnvironmentCheck=function(t,e){if(e===void 0&&(e=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),$.blockNonBrowserEnvironment(this.isBrowserEnvironment),$.blockRedirectInIframe(t,this.config.system.allowRedirectInIframe),$.blockReloadInHiddenIframes(),$.blockAcquireTokenInPopups(),$.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t===k.Redirect&&this.config.cache.cacheLocation===ee.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw Wt.createInMemoryRedirectUnavailableError();(t===k.Redirect||t===k.Popup)&&this.preflightInteractiveRequest(e)},n.prototype.preflightInteractiveRequest=function(t){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),$.blockReloadInHiddenIframes(),t&&this.browserStorage.setInteractionInProgress(!0)},n.prototype.acquireTokenNative=function(t,e,r){return y(this,void 0,void 0,function(){var i;return C(this,function(o){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw I.createNativeConnectionNotEstablishedError();return i=new ht(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,e,this.performanceClient,this.nativeExtensionProvider,r||this.getNativeAccountId(t),this.nativeInternalStorage,t.correlationId),[2,i.acquireToken(t)]})})},n.prototype.canUseNative=function(t,e){if(this.logger.trace("canUseNative called"),!$e.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,t.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(t.prompt)switch(t.prompt){case ue.NONE:case ue.CONSENT:case ue.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+t.prompt+" is not compatible with native flow, returning false"),!1}return!e&&!this.getNativeAccountId(t)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0},n.prototype.getNativeAccountId=function(t){var e=t.account||this.browserStorage.getAccountInfoByHints(t.loginHint,t.sid)||this.getActiveAccount();return e&&e.nativeAccountId||""},n.prototype.createPopupClient=function(t){return new Ko(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},n.prototype.createRedirectClient=function(t){return new Bo(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},n.prototype.createSilentIframeClient=function(t){return new jo(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,X.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,t)},n.prototype.createSilentCacheClient=function(t){return new yn(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,t)},n.prototype.createSilentRefreshClient=function(t){return new Vo(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,t)},n.prototype.createSilentAuthCodeClient=function(t){return new di(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,X.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,t)},n.prototype.addEventCallback=function(t){return this.eventHandler.addEventCallback(t)},n.prototype.removeEventCallback=function(t){this.eventHandler.removeEventCallback(t)},n.prototype.addPerformanceCallback=function(t){return this.performanceClient.addPerformanceCallback(t)},n.prototype.removePerformanceCallback=function(t){return this.performanceClient.removePerformanceCallback(t)},n.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},n.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},n.prototype.getTokenCache=function(){return this.tokenCache},n.prototype.getLogger=function(){return this.logger},n.prototype.setLogger=function(t){this.logger=t},n.prototype.initializeWrapperLibrary=function(t,e){this.browserStorage.setWrapperMetadata(t,e)},n.prototype.setNavigationClient=function(t){this.navigationClient=t},n.prototype.getConfiguration=function(){return this.config},n.prototype.getRequestCorrelationId=function(t){return t!=null&&t.correlationId?t.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():f.EMPTY_STRING},n}();/*! @azure/msal-browser v2.38.3 2023-10-27 */var fi=function(n){ie(t,n);function t(e){var r=n.call(this,e)||this;return r.astsAsyncMeasurement=void 0,r.activeSilentTokenRequests=new Map,r.trackPageVisibility=r.trackPageVisibility.bind(r),r}return t.prototype.loginRedirect=function(e){return y(this,void 0,void 0,function(){var r;return C(this,function(i){return r=this.getRequestCorrelationId(e),this.logger.verbose("loginRedirect called",r),[2,this.acquireTokenRedirect(R({correlationId:r},e||hn))]})})},t.prototype.loginPopup=function(e){var r=this.getRequestCorrelationId(e);return this.logger.verbose("loginPopup called",r),this.acquireTokenPopup(R({correlationId:r},e||hn))},t.prototype.acquireTokenSilent=function(e){return y(this,void 0,void 0,function(){var r,i,o,s,c,l,a,u=this;return C(this,function(d){if(r=this.getRequestCorrelationId(e),i=this.performanceClient.startMeasurement(m.AcquireTokenSilent,r),i.addStaticFields({cacheLookupPolicy:e.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(k.Silent),this.logger.verbose("acquireTokenSilent called",r),o=e.account||this.getActiveAccount(),!o)throw I.createNoAccountError();return s={clientId:this.config.auth.clientId,authority:e.authority||f.EMPTY_STRING,scopes:e.scopes,homeAccountIdentifier:o.homeAccountId,claims:e.claims,authenticationScheme:e.authenticationScheme,resourceRequestMethod:e.resourceRequestMethod,resourceRequestUri:e.resourceRequestUri,shrClaims:e.shrClaims,sshKid:e.sshKid},c=JSON.stringify(s),l=this.activeSilentTokenRequests.get(c),typeof l>"u"?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",r),this.performanceClient.setPreQueueTime(m.AcquireTokenSilentAsync,r),a=this.acquireTokenSilentAsync(R(R({},e),{correlationId:r}),o).then(function(p){return u.activeSilentTokenRequests.delete(c),i.addStaticFields({accessTokenSize:p.accessToken.length,idTokenSize:p.idToken.length}),i.endMeasurement({success:!0,fromCache:p.fromCache,isNativeBroker:p.fromNativeBroker,cacheLookupPolicy:e.cacheLookupPolicy,requestId:p.requestId}),p}).catch(function(p){throw u.activeSilentTokenRequests.delete(c),i.endMeasurement({errorCode:p.errorCode,subErrorCode:p.subError,success:!1}),p}),this.activeSilentTokenRequests.set(c,a),[2,a]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",r),i.discardMeasurement(),[2,l])})})},t.prototype.trackPageVisibility=function(){this.astsAsyncMeasurement&&(this.logger.info("Perf: Visibility change detected"),this.astsAsyncMeasurement.increment({visibilityChangeCount:1}))},t.prototype.acquireTokenSilentAsync=function(e,r){var i;return y(this,void 0,void 0,function(){var o,s,c,l,a,u=this;return C(this,function(d){switch(d.label){case 0:return this.performanceClient.addQueueMeasurement(m.AcquireTokenSilentAsync,e.correlationId),this.eventHandler.emitEvent(O.ACQUIRE_TOKEN_START,k.Silent,e),this.astsAsyncMeasurement=this.performanceClient.startMeasurement(m.AcquireTokenSilentAsync,e.correlationId),(i=this.astsAsyncMeasurement)===null||i===void 0||i.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility),$e.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme)&&r.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),s=R(R({},e),{account:r}),o=this.acquireTokenNative(s,X.acquireTokenSilent_silentFlow).catch(function(p){return y(u,void 0,void 0,function(){var g;return C(this,function(v){if(p instanceof Me&&p.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,g=this.createSilentIframeClient(e.correlationId),[2,g.acquireToken(e)];throw p})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),c=this.createSilentCacheClient(e.correlationId),this.performanceClient.setPreQueueTime(m.InitializeSilentRequest,e.correlationId),[4,c.initializeSilentRequest(e,r)];case 2:l=d.sent(),a=R(R({},e),{cacheLookupPolicy:e.cacheLookupPolicy||ve.Default}),this.performanceClient.setPreQueueTime(m.AcquireTokenFromCache,l.correlationId),o=this.acquireTokenFromCache(c,l,a).catch(function(p){if(a.cacheLookupPolicy===ve.AccessToken)throw p;return $.blockReloadInHiddenIframes(),u.eventHandler.emitEvent(O.ACQUIRE_TOKEN_NETWORK_START,k.Silent,l),u.performanceClient.setPreQueueTime(m.AcquireTokenByRefreshToken,l.correlationId),u.acquireTokenByRefreshToken(l,a).catch(function(g){var v=g instanceof Ve,w=g instanceof Se,B=g.errorCode===st.noTokensFoundError.code,F=g.errorCode===ke.INVALID_GRANT_ERROR;if((!v||!F||w||a.cacheLookupPolicy===ve.AccessTokenAndRefreshToken||a.cacheLookupPolicy===ve.RefreshToken)&&a.cacheLookupPolicy!==ve.Skip&&!B)throw g;return u.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",e.correlationId),u.performanceClient.setPreQueueTime(m.AcquireTokenBySilentIframe,l.correlationId),u.acquireTokenBySilentIframe(l)})}),d.label=3;case 3:return[2,o.then(function(p){var g;return u.eventHandler.emitEvent(O.ACQUIRE_TOKEN_SUCCESS,k.Silent,p),(g=u.astsAsyncMeasurement)===null||g===void 0||g.endMeasurement({success:!0,fromCache:p.fromCache,isNativeBroker:p.fromNativeBroker,requestId:p.requestId}),p}).catch(function(p){var g;throw u.eventHandler.emitEvent(O.ACQUIRE_TOKEN_FAILURE,k.Silent,null,p),(g=u.astsAsyncMeasurement)===null||g===void 0||g.endMeasurement({errorCode:p.errorCode,subErrorCode:p.subError,success:!1}),p}).finally(function(){document.removeEventListener("visibilitychange",u.trackPageVisibility)})]}})})},t}(hi),An=function(n,t,e,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,e):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(n,t,e,r);else for(var c=n.length-1;c>=0;c--)(s=n[c])&&(o=(i<3?s(o):i>3?s(t,e,o):s(t,e))||o);return i>3&&o&&Object.defineProperty(t,e,o),o},pi=function(n,t,e,r){function i(o){return o instanceof e?o:new e(function(s){s(o)})}return new(e||(e=Promise))(function(o,s){function c(u){try{a(r.next(u))}catch(d){s(d)}}function l(u){try{a(r.throw(u))}catch(d){s(d)}}function a(u){u.done?o(u.value):i(u.value).then(c,l)}a((r=r.apply(n,t||[])).next())})},gi=function(n,t){var e={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(a){return function(u){return l([a,u])}}function l(a){if(r)throw new TypeError("Generator is already executing.");for(;e;)try{if(r=1,i&&(o=a[0]&2?i.return:a[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,a[1])).done)return o;switch(i=0,o&&(a=[a[0]&2,o.value]),a[0]){case 0:case 1:o=a;break;case 4:return e.label++,{value:a[1],done:!1};case 5:e.label++,i=a[1],a=[0];continue;case 7:a=e.ops.pop(),e.trys.pop();continue;default:if(o=e.trys,!(o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){e=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){e.label=a[1];break}if(a[0]===6&&e.label<o[1]){e.label=o[1],o=a;break}if(o&&e.label<o[2]){e.label=o[2],e.ops.push(a);break}o[2]&&e.ops.pop(),e.trys.pop();continue}a=t.call(n,e)}catch(u){a=[6,u],i=0}finally{r=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}},mi=function(){function n(t,e){e===void 0&&(e=!0);var r=this;this.config=t,this.usePopup=e,this.resourceTokenMap=new Map,this.resourceScopeMap=new Map,this.handleResponse=function(i){if(i){var o=i.scopes||[],s=new URL(o[0]).origin;sessionStorage.setItem("msal.".concat(r.config.clientId,".").concat(s,".idtoken"),i.accessToken),r.resourceTokenMap.set(s,i.accessToken),window.history&&window.history.replaceState&&window.history.replaceState({},document.title,window.location.pathname)}},this.config.tenantId=t.tenantId||"common",this.config.redirectUri=t.redirectUri||window.location.origin,this.msalObj=new fi({auth:{clientId:t.clientId,authority:"https://login.microsoftonline.com/".concat(t.tenantId),redirectUri:t.redirectUri},cache:{cacheLocation:"sessionStorage"}}),this.usePopup||this.msalObj.handleRedirectPromise().then(this.handleResponse)}return n.prototype.login=function(t){var e,r=this.config.scopes||["".concat(t,"/.default")];if(this.resourceScopeMap.has(t)&&(r=((e=this.resourceScopeMap.get(t))===null||e===void 0?void 0:e.map(function(i){return"".concat(t,"/").concat(i)}))||r),this.usePopup)return this.msalObj.loginPopup({scopes:r});this.msalObj.loginRedirect({scopes:["".concat(t,"/.default")]})},n.prototype.getAccessToken=function(t){return pi(this,void 0,void 0,function(){var e,r,i;return gi(this,function(o){switch(o.label){case 0:if(e=this.resourceTokenMap.get(t),e||(e=sessionStorage.getItem("msal.".concat(this.config.clientId,".").concat(t,".idtoken"))),e&&to.isTokenValid(e))return[2,e];o.label=1;case 1:return o.trys.push([1,3,,6]),[4,this.msalObj.ssoSilent({scopes:["".concat(t,"/.default")]})];case 2:return r=o.sent(),[3,6];case 3:return i=o.sent(),i instanceof Se?[4,this.login(t)]:[3,5];case 4:r=o.sent(),o.label=5;case 5:return[3,6];case 6:return e=(r==null?void 0:r.accessToken)||"",sessionStorage.setItem("msal.".concat(this.config.clientId,".").concat(t,".idtoken"),e),this.resourceTokenMap.set(t,e),[2,e]}})})},An([Br("msalLogin-{0}")],n.prototype,"login",null),An([Br("access-token-{0}")],n.prototype,"getAccessToken",null),n}();const Sr=Te.createContext(void 0),Ar=()=>Te.useContext(Sr),vi=n=>{const[t,e]=Te.useState(void 0);return Te.useEffect(()=>{n.authProvider?e(n.authProvider):n.authProviderFactory?n.authProviderFactory().then(r=>{e(r)}):n.msalAuthConfig&&e(new mi(n.msalAuthConfig))},[n.authProvider,n.authProviderFactory,n.msalAuthConfig]),nr.jsx(Sr.Provider,{value:{authProvider:t},children:n.children})},br=Te.createContext(void 0),yi=()=>Te.useContext(br),Ci=n=>{const{authProvider:t}=Ar(),[e,r]=Te.useState(void 0);return Te.useEffect(()=>{n.graphClient?r(n.graphClient):t&&r(new io(new zr(t,new Yr)))},[n.graphClient,t]),nr.jsx(br.Provider,{value:{graphClient:e},children:n.children})},kr=Te.createContext(void 0),Ei=()=>Te.useContext(kr),_i=n=>{const{authProvider:t}=Ar(),[e,r]=Te.useState(void 0);return Te.useEffect(()=>{if(n.spClient)r(n.spClient);else{var i=new zr(t,new Yr);i.resourceUri=new URL(n.siteUrl).origin,r(i)}},[n.spClient,t]),nr.jsx(kr.Provider,{value:{siteUrl:n.siteUrl,spClient:e},children:n.children})};he.AuthenticationContext=Sr,he.AuthenticationContextProvider=vi,he.GraphContext=br,he.GraphContextProvider=Ci,he.SPContext=kr,he.SPContextProvider=_i,he.useAuthentication=Ar,he.useGraph=yi,he.useSP=Ei,Object.defineProperty(he,Symbol.toStringTag,{value:"Module"})});
|
|
63
|
+
If this happened in a slot of Fluent UI component, you might be facing package resolution issues.
|
|
64
|
+
Please make sure you don't have multiple versions of "@fluentui/react-utilities" installed in your dependencies or sub-dependencies.
|
|
65
|
+
You can check this by searching up for matching entries in a lockfile produced by your package manager (yarn.lock, pnpm-lock.yaml or package-lock.json).`)}function ka(e,t){return function(o,i,n,s,l){return en(i)?t(Sd(o,i),null,n,s,l):en(o)?t(o,i,n,s,l):(Nd(o),e(o,i,n,s,l))}}function xa(e){const{as:t,[Kt]:r,[da]:o,...i}=e,n=i,s=typeof r=="string"?t??r:r;return typeof s!="string"&&t&&(n.as=t),{elementType:s,props:n,renderFunction:o}}const Ft=cc,Ed=(e,t,r)=>{const{elementType:o,renderFunction:i,props:n}=xa(e),s={...n,...t};return i?Ft.jsx(p.Fragment,{children:i(o,s)},r):Ft.jsx(o,s,r)},jd=(e,t,r)=>{const{elementType:o,renderFunction:i,props:n}=xa(e),s={...n,...t};return i?Ft.jsx(p.Fragment,{children:i(o,{...s,children:Ft.jsxs(p.Fragment,{children:s.children},void 0)})},r):Ft.jsxs(o,s,r)},$=ka(Ft.jsx,Ed),Ae=ka(Ft.jsxs,jd),Ba=p.createContext(void 0),Rd="";Ba.Provider;function Fd(){var e;return(e=p.useContext(Ba))!==null&&e!==void 0?e:Rd}const _a=p.createContext(void 0),qd={targetDocument:typeof document=="object"?document:void 0,dir:"ltr"};_a.Provider;function mt(){var e;return(e=p.useContext(_a))!==null&&e!==void 0?e:qd}const Pa=p.createContext(void 0);Pa.Provider;function Ad(){var e;return(e=p.useContext(Pa))!==null&&e!==void 0?e:{}}const Sa=p.createContext(void 0),Dd=()=>{};Sa.Provider;const Ye=e=>{var t,r;return(r=(t=p.useContext(Sa))===null||t===void 0?void 0:t[e])!==null&&r!==void 0?r:Dd},Ca=p.createContext(void 0);Ca.Provider;function Od(){return p.useContext(Ca)}const on=p.createContext(void 0),Id={};on.Provider;const Md=()=>p.useContext(on)?p.useContext(on):Id,Ld=U({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;}}"]}),Hd=(e,t)=>{const{title:r,primaryFill:o="currentColor",...i}=e,n={...i,title:void 0,fill:o},s=Ld(),l=Md();return n.className=A(s.root,(t==null?void 0:t.flipInRtl)&&(l==null?void 0:l.textDirection)==="rtl"&&s.rtl,n.className),r&&(n["aria-label"]=r),!n["aria-label"]&&!n["aria-labelledby"]?n["aria-hidden"]=!0:n.role="img",n},H=(e,t,r,o)=>{const i=t==="1em"?"20":t,n=p.forwardRef((s,l)=>{const u={...Hd(s,{flipInRtl:o==null?void 0:o.flipInRtl}),ref:l,width:t,height:t,viewBox:`0 0 ${i} ${i}`,xmlns:"http://www.w3.org/2000/svg"};return p.createElement("svg",u,...r.map(a=>p.createElement("path",{d:a,fill:u.fill})))});return n.displayName=e,n},Vd=H("CheckmarkFilled","1em",["M7.03 13.9 3.56 10a.75.75 0 0 0-1.12 1l4 4.5c.29.32.79.34 1.09.03l10.5-10.5a.75.75 0 0 0-1.06-1.06l-9.94 9.94Z"]),$d=H("ChevronDownRegular","1em",["M15.85 7.65c.2.2.2.5 0 .7l-5.46 5.49a.55.55 0 0 1-.78 0L4.15 8.35a.5.5 0 1 1 .7-.7L10 12.8l5.15-5.16c.2-.2.5-.2.7 0Z"]),Wd=H("PersonRegular","1em",["M10 2a4 4 0 1 0 0 8 4 4 0 0 0 0-8ZM7 6a3 3 0 1 1 6 0 3 3 0 0 1-6 0Zm-2 5a2 2 0 0 0-2 2c0 1.7.83 2.97 2.13 3.8A9.14 9.14 0 0 0 10 18c1.85 0 3.58-.39 4.87-1.2A4.35 4.35 0 0 0 17 13a2 2 0 0 0-2-2H5Zm-1 2a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1c0 1.3-.62 2.28-1.67 2.95A8.16 8.16 0 0 1 10 17a8.16 8.16 0 0 1-4.33-1.05A3.36 3.36 0 0 1 4 13Z"]),Ud=H("Checkmark12Filled","12",["M9.76 3.2c.3.29.32.76.04 1.06l-4.25 4.5a.75.75 0 0 1-1.08.02L2.22 6.53a.75.75 0 0 1 1.06-1.06l1.7 1.7L8.7 3.24a.75.75 0 0 1 1.06-.04Z"]),Gd=H("CheckmarkCircle12Filled","12",["M1 6a5 5 0 1 1 10 0A5 5 0 0 1 1 6Zm7.35-.9a.5.5 0 1 0-.7-.7L5.5 6.54 4.35 5.4a.5.5 0 1 0-.7.7l1.5 1.5c.2.2.5.2.7 0l2.5-2.5Z"]),Xd=H("ErrorCircle12Filled","12",["M6 11A5 5 0 1 0 6 1a5 5 0 0 0 0 10Zm-.75-2.75a.75.75 0 1 1 1.5 0 .75.75 0 0 1-1.5 0Zm.26-4.84a.5.5 0 0 1 .98 0l.01.09v2.59a.5.5 0 0 1-1 0V3.41Z"]),za=H("PresenceAvailable10Filled","10",["M5 10A5 5 0 1 0 5 0a5 5 0 0 0 0 10Zm2.1-5.9L4.85 6.35a.5.5 0 0 1-.7 0l-1-1a.5.5 0 0 1 .7-.7l.65.64 1.9-1.9a.5.5 0 0 1 .7.71Z"]),Ta=H("PresenceAvailable10Regular","10",["M5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0ZM1 5a4 4 0 1 1 8 0 4 4 0 0 1-8 0Zm6.1-1.6c.2.2.2.5 0 .7L4.85 6.35a.5.5 0 0 1-.7 0l-1-1a.5.5 0 1 1 .7-.7l.65.64 1.9-1.9c.2-.19.5-.19.7 0Z"]),Kd=H("PresenceAvailable12Filled","12",["M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12Zm2.53-6.72L5.78 8.03c-.3.3-.77.3-1.06 0l-1-1a.75.75 0 0 1 1.06-1.06l.47.47 2.22-2.22a.75.75 0 0 1 1.06 1.06Z"]),Zd=H("PresenceAvailable12Regular","12",["M6 0a6 6 0 1 0 0 12A6 6 0 0 0 6 0ZM1.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0Zm7.03-1.78c.3.3.3.77 0 1.06L5.78 8.03c-.3.3-.77.3-1.06 0l-1-1a.75.75 0 0 1 1.06-1.06l.47.47 2.22-2.22c.3-.3.77-.3 1.06 0Z"]),Yd=H("PresenceAvailable16Filled","16",["M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Zm3.7-9.3-4 4a1 1 0 0 1-1.41 0l-2-2a1 1 0 1 1 1.42-1.4L7 8.58l3.3-3.3a1 1 0 0 1 1.4 1.42Z"]),Qd=H("PresenceAvailable16Regular","16",["M11.7 6.7a1 1 0 0 0-1.4-1.4L7 8.58l-1.3-1.3a1 1 0 0 0-1.4 1.42l2 2a1 1 0 0 0 1.4 0l4-4ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z"]),Na=H("PresenceAvailable20Filled","20",["M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20Zm4.2-11.8-4.5 4.5a1 1 0 0 1-1.4 0l-2-2a1 1 0 1 1 1.4-1.4L9 10.58l3.8-3.8a1 1 0 1 1 1.4 1.42Z"]),Ea=H("PresenceAvailable20Regular","20",["M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20ZM2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm12.2-3.2a1 1 0 0 1 0 1.4l-4.5 4.5a1 1 0 0 1-1.4 0l-2-2a1 1 0 0 1 1.4-1.4L9 10.58l3.8-3.8a1 1 0 0 1 1.4 0Z"]),ja=H("PresenceAway10Filled","10",["M5 10A5 5 0 1 0 5 0a5 5 0 0 0 0 10Zm0-7v1.8l1.35 1.35a.5.5 0 1 1-.7.7l-1.5-1.5A.5.5 0 0 1 4 5V3a.5.5 0 0 1 1 0Z"]),Jd=H("PresenceAway12Filled","12",["M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12Zm.5-8.75v2.4l1.49 1.28A.75.75 0 1 1 7 8.07l-1.75-1.5A.75.75 0 0 1 5 6V3.25a.75.75 0 0 1 1.5 0Z"]),eh=H("PresenceAway16Filled","16",["M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16Zm.5-11.5v3.02l2.12 1.7a1 1 0 1 1-1.24 1.56l-2.5-2A1 1 0 0 1 6.5 8V4.5a1 1 0 0 1 2 0Z"]),Ra=H("PresenceAway20Filled","20",["M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20Zm0-14V9.6l2.7 2.7a1 1 0 0 1-1.4 1.42l-3-3A1 1 0 0 1 8 10V6a1 1 0 1 1 2 0Z"]),Fa=H("PresenceBlocked10Regular","10",["M10 5A5 5 0 1 0 0 5a5 5 0 0 0 10 0ZM9 5a4 4 0 0 1-6.45 3.16l5.61-5.61C8.69 3.22 9 4.08 9 5ZM7.45 1.84 1.84 7.45a4 4 0 0 1 5.61-5.61Z"]),th=H("PresenceBlocked12Regular","12",["M12 6A6 6 0 1 1 0 6a6 6 0 0 1 12 0Zm-1.5 0c0-.97-.3-1.87-.83-2.6L3.39 9.66A4.5 4.5 0 0 0 10.5 6ZM8.6 2.33a4.5 4.5 0 0 0-6.28 6.28l6.29-6.28Z"]),rh=H("PresenceBlocked16Regular","16",["M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-2 0c0-1.3-.41-2.5-1.1-3.48L4.51 12.9A6 6 0 0 0 14 8Zm-2.52-4.9a6 6 0 0 0-8.37 8.37l8.37-8.36Z"]),qa=H("PresenceBlocked20Regular","20",["M20 10a10 10 0 1 0-20 0 10 10 0 0 0 20 0Zm-2 0a8 8 0 0 1-12.9 6.32L16.31 5.09A7.97 7.97 0 0 1 18 10Zm-3.1-6.32L3.69 14.91A8 8 0 0 1 14.91 3.68Z"]),Aa=H("PresenceBusy10Filled","10",["M10 5A5 5 0 1 1 0 5a5 5 0 0 1 10 0Z"]),oh=H("PresenceBusy12Filled","12",["M12 6A6 6 0 1 1 0 6a6 6 0 0 1 12 0Z"]),nh=H("PresenceBusy16Filled","16",["M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Z"]),Da=H("PresenceBusy20Filled","20",["M20 10a10 10 0 1 1-20 0 10 10 0 0 1 20 0Z"]),Oa=H("PresenceDnd10Filled","10",["M5 10A5 5 0 1 0 5 0a5 5 0 0 0 0 10ZM3.5 4.5h3a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1Z"]),Ia=H("PresenceDnd10Regular","10",["M5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0ZM1 5a4 4 0 1 1 8 0 4 4 0 0 1-8 0Zm2 0c0-.28.22-.5.5-.5h3a.5.5 0 0 1 0 1h-3A.5.5 0 0 1 3 5Z"]),ih=H("PresenceDnd12Filled","12",["M6 12A6 6 0 1 0 6 0a6 6 0 0 0 0 12ZM3.75 5.25h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5Z"]),ah=H("PresenceDnd12Regular","12",["M6 0a6 6 0 1 0 0 12A6 6 0 0 0 6 0ZM1.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0ZM3 6c0-.41.34-.75.75-.75h4.5a.75.75 0 0 1 0 1.5h-4.5A.75.75 0 0 1 3 6Z"]),sh=H("PresenceDnd16Filled","16",["M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16ZM5.25 7h5.5a1 1 0 1 1 0 2h-5.5a1 1 0 1 1 0-2Z"]),lh=H("PresenceDnd16Regular","16",["M5.25 7a1 1 0 0 0 0 2h5.5a1 1 0 1 0 0-2h-5.5ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z"]),Ma=H("PresenceDnd20Filled","20",["M10 20a10 10 0 1 0 0-20 10 10 0 0 0 0 20ZM7 9h6a1 1 0 1 1 0 2H7a1 1 0 1 1 0-2Z"]),La=H("PresenceDnd20Regular","20",["M10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20ZM2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Zm4 0a1 1 0 0 1 1-1h6a1 1 0 1 1 0 2H7a1 1 0 0 1-1-1Z"]),Ha=H("PresenceOffline10Regular","10",["M6.85 3.15c.2.2.2.5 0 .7L5.71 5l1.14 1.15a.5.5 0 1 1-.7.7L5 5.71 3.85 6.85a.5.5 0 1 1-.7-.7L4.29 5 3.15 3.85a.5.5 0 1 1 .7-.7L5 4.29l1.15-1.14c.2-.2.5-.2.7 0ZM0 5a5 5 0 1 1 10 0A5 5 0 0 1 0 5Zm5-4a4 4 0 1 0 0 8 4 4 0 0 0 0-8Z"]),ch=H("PresenceOffline12Regular","12",["M8.03 3.97c.3.3.3.77 0 1.06L7.06 6l.97.97a.75.75 0 0 1-1.06 1.06L6 7.06l-.97.97a.75.75 0 0 1-1.06-1.06L4.94 6l-.97-.97a.75.75 0 0 1 1.06-1.06l.97.97.97-.97c.3-.3.77-.3 1.06 0ZM0 6a6 6 0 1 1 12 0A6 6 0 0 1 0 6Zm6-4.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z"]),uh=H("PresenceOffline16Regular","16",["M10.7 5.3a1 1 0 0 1 0 1.4L9.42 8l1.3 1.3a1 1 0 0 1-1.42 1.4L8 9.42l-1.3 1.3a1 1 0 0 1-1.4-1.42L6.58 8l-1.3-1.3a1 1 0 0 1 1.42-1.4L8 6.58l1.3-1.3a1 1 0 0 1 1.4 0ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6a6 6 0 1 0 0 12A6 6 0 0 0 8 2Z"]),Va=H("PresenceOffline20Regular","20",["M13.7 6.3a1 1 0 0 1 0 1.4L11.42 10l2.3 2.3a1 1 0 0 1-1.42 1.4L10 11.42l-2.3 2.3a1 1 0 0 1-1.4-1.42L8.58 10l-2.3-2.3a1 1 0 0 1 1.42-1.4L10 8.58l2.3-2.3a1 1 0 0 1 1.4 0ZM0 10a10 10 0 1 1 20 0 10 10 0 0 1-20 0Zm10-8a8 8 0 1 0 0 16 8 8 0 0 0 0-16Z"]),$a=H("PresenceOof10Regular","10",["M5.35 3.85a.5.5 0 1 0-.7-.7l-1.5 1.5a.5.5 0 0 0 0 .7l1.5 1.5a.5.5 0 1 0 .7-.7L4.7 5.5h1.8a.5.5 0 1 0 0-1H4.7l.65-.65ZM5 0a5 5 0 1 0 0 10A5 5 0 0 0 5 0ZM1 5a4 4 0 1 1 8 0 4 4 0 0 1-8 0Z"]),fh=H("PresenceOof12Regular","12",["M6.28 4.53a.75.75 0 0 0-1.06-1.06l-2 2c-.3.3-.3.77 0 1.06l2 2a.75.75 0 0 0 1.06-1.06l-.72-.72h2.69a.75.75 0 1 0 0-1.5h-2.7l.73-.72ZM6 0a6 6 0 1 0 0 12A6 6 0 0 0 6 0ZM1.5 6a4.5 4.5 0 1 1 9 0 4.5 4.5 0 0 1-9 0Z"]),dh=H("PresenceOof16Regular","16",["M8.2 6.2a1 1 0 1 0-1.4-1.4L4.3 7.3a1 1 0 0 0 0 1.4l2.5 2.5a1 1 0 0 0 1.4-1.4L7.42 9H11a1 1 0 1 0 0-2H7.41l.8-.8ZM8 0a8 8 0 1 0 0 16A8 8 0 0 0 8 0ZM2 8a6 6 0 1 1 12 0A6 6 0 0 1 2 8Z"]),Wa=H("PresenceOof20Regular","20",["M10.7 7.7A1 1 0 1 0 9.28 6.3l-3 3a1 1 0 0 0 0 1.41l3 3a1 1 0 1 0 1.42-1.41l-1.3-1.3H13a1 1 0 1 0 0-2H9.4l1.3-1.29ZM10 0a10 10 0 1 0 0 20 10 10 0 0 0 0-20ZM2 10a8 8 0 1 1 16 0 8 8 0 0 1-16 0Z"]),Ua=H("PresenceUnknown10Regular","10",["M5 1a4 4 0 1 0 0 8 4 4 0 0 0 0-8ZM0 5a5 5 0 1 1 10 0A5 5 0 0 1 0 5Z"]),hh=H("PresenceUnknown12Regular","12",["M6 1.5a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9ZM0 6a6 6 0 1 1 12 0A6 6 0 0 1 0 6Z"]),vh=H("PresenceUnknown16Regular","16",["M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Z"]),Ga=H("PresenceUnknown20Regular","20",["M10 2a8 8 0 1 0 0 16 8 8 0 0 0 0-16ZM0 10a10 10 0 1 1 20 0 10 10 0 0 1-20 0Z"]),gh=H("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"]),ph=H("Warning12Filled","12",["M5.21 1.46a.9.9 0 0 1 1.58 0l4.09 7.17a.92.92 0 0 1-.79 1.37H1.91a.92.92 0 0 1-.79-1.37l4.1-7.17ZM5.5 4.5v1a.5.5 0 0 0 1 0v-1a.5.5 0 0 0-1 0ZM6 6.75a.75.75 0 1 0 0 1.5.75.75 0 0 0 0-1.5Z"]);/*!
|
|
66
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
67
|
+
* Licensed under the MIT License.
|
|
68
|
+
*/const mh=typeof WeakRef<"u";class Xa{constructor(t){mh&&typeof t=="object"?this._weakRef=new WeakRef(t):this._instance=t}deref(){var t,r,o;let i;return this._weakRef?(i=(t=this._weakRef)===null||t===void 0?void 0:t.deref(),i||delete this._weakRef):(i=this._instance,!((o=(r=i)===null||r===void 0?void 0:r.isDisposed)===null||o===void 0)&&o.call(r)&&delete this._instance),i}}/*!
|
|
69
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
70
|
+
* Licensed under the MIT License.
|
|
71
|
+
*/const at="keyborg:focusin";function bh(e){const t=e.HTMLElement,r=t.prototype.focus;let o=!1;return t.prototype.focus=function(){o=!0},e.document.createElement("button").focus(),t.prototype.focus=r,o}let nn=!1;function qt(e){const t=e.focus;t.__keyborgNativeFocus?t.__keyborgNativeFocus.call(e):e.focus()}function yh(e){const t=e;nn||(nn=bh(t));const r=t.HTMLElement.prototype.focus;if(r.__keyborgNativeFocus)return;t.HTMLElement.prototype.focus=i;const o=t.__keyborgData={focusInHandler:n=>{var s;const l=n.target;if(!l)return;const u=document.createEvent("HTMLEvents");u.initEvent(at,!0,!0);const a={relatedTarget:n.relatedTarget||void 0};(nn||o.lastFocusedProgrammatically)&&(a.isFocusedProgrammatically=l===((s=o.lastFocusedProgrammatically)===null||s===void 0?void 0:s.deref()),o.lastFocusedProgrammatically=void 0),u.details=a,l.dispatchEvent(u)}};t.document.addEventListener("focusin",t.__keyborgData.focusInHandler,!0);function i(){const n=t.__keyborgData;return n&&(n.lastFocusedProgrammatically=new Xa(this)),r.apply(this,arguments)}i.__keyborgNativeFocus=r}function wh(e){const t=e,r=t.HTMLElement.prototype,o=r.focus.__keyborgNativeFocus,i=t.__keyborgData;i&&(t.document.removeEventListener("focusin",i.focusInHandler,!0),delete t.__keyborgData),o&&(r.focus=o)}/*!
|
|
72
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
73
|
+
* Licensed under the MIT License.
|
|
74
|
+
*/const kh=500;let Ka=0;class xh{constructor(){this.__keyborgCoreRefs={},this._isNavigatingWithKeyboard=!1}add(t){const r=t.id;r in this.__keyborgCoreRefs||(this.__keyborgCoreRefs[r]=new Xa(t))}remove(t){delete this.__keyborgCoreRefs[t],Object.keys(this.__keyborgCoreRefs).length===0&&(this._isNavigatingWithKeyboard=!1)}setVal(t){if(this._isNavigatingWithKeyboard!==t){this._isNavigatingWithKeyboard=t;for(const r of Object.keys(this.__keyborgCoreRefs)){const i=this.__keyborgCoreRefs[r].deref();i?i.update(t):this.remove(r)}}}getVal(){return this._isNavigatingWithKeyboard}}const ot=new xh;class Bh{constructor(t,r){this._onFocusIn=i=>{if(this._isMouseUsedTimer||ot.getVal())return;const n=i.details;n.relatedTarget&&(n.isFocusedProgrammatically||n.isFocusedProgrammatically===void 0||ot.setVal(!0))},this._onMouseDown=i=>{if(i.buttons===0||i.clientX===0&&i.clientY===0&&i.screenX===0&&i.screenY===0)return;const n=this._win;n&&(this._isMouseUsedTimer&&n.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=n.setTimeout(()=>{delete this._isMouseUsedTimer},1e3)),ot.setVal(!1)},this._onKeyDown=i=>{var n,s;const l=ot.getVal(),u=i.keyCode,a=this._triggerKeys;if(!l&&(!a||a.has(u))){const c=(n=this._win)===null||n===void 0?void 0:n.document.activeElement;if(c&&(c.tagName==="INPUT"||c.tagName==="TEXTAREA"||c.contentEditable==="true"))return;ot.setVal(!0)}else l&&(!((s=this._dismissKeys)===null||s===void 0)&&s.has(u))&&this._scheduleDismiss()},this.id="c"+ ++Ka,this._win=t;const o=t.document;if(r){const i=r.triggerKeys,n=r.dismissKeys;i!=null&&i.length&&(this._triggerKeys=new Set(i)),n!=null&&n.length&&(this._dismissKeys=new Set(n))}o.addEventListener(at,this._onFocusIn,!0),o.addEventListener("mousedown",this._onMouseDown,!0),t.addEventListener("keydown",this._onKeyDown,!0),yh(t),ot.add(this)}dispose(){const t=this._win;if(t){this._isMouseUsedTimer&&(t.clearTimeout(this._isMouseUsedTimer),this._isMouseUsedTimer=void 0),this._dismissTimer&&(t.clearTimeout(this._dismissTimer),this._dismissTimer=void 0),wh(t);const r=t.document;r.removeEventListener(at,this._onFocusIn,!0),r.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("keydown",this._onKeyDown,!0),delete this._win,ot.remove(this.id)}}isDisposed(){return!!this._win}update(t){var r,o;const i=(o=(r=this._win)===null||r===void 0?void 0:r.__keyborg)===null||o===void 0?void 0:o.refs;if(i)for(const n of Object.keys(i))Br.update(i[n],t)}_scheduleDismiss(){const t=this._win;if(t){this._dismissTimer&&(t.clearTimeout(this._dismissTimer),this._dismissTimer=void 0);const r=t.document.activeElement;this._dismissTimer=t.setTimeout(()=>{this._dismissTimer=void 0;const o=t.document.activeElement;r&&o&&r===o&&ot.setVal(!1)},kh)}}}class Br{constructor(t,r){this._cb=[],this._id="k"+ ++Ka,this._win=t;const o=t.__keyborg;o?(this._core=o.core,o.refs[this._id]=this):(this._core=new Bh(t,r),t.__keyborg={core:this._core,refs:{[this._id]:this}})}static create(t,r){return new Br(t,r)}static dispose(t){t.dispose()}static update(t,r){t._cb.forEach(o=>o(r))}dispose(){var t;const r=(t=this._win)===null||t===void 0?void 0:t.__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)):process.env.NODE_ENV==="development"&&console.error("Keyborg instance "+this._id+" is being disposed incorrectly."),this._cb=[],delete this._core,delete this._win}isNavigatingWithKeyboard(){return ot.getVal()}subscribe(t){this._cb.push(t)}unsubscribe(t){const r=this._cb.indexOf(t);r>=0&&this._cb.splice(r,1)}setVal(t){ot.setVal(t)}}function an(e,t){return Br.create(e,t)}function sn(e){Br.dispose(e)}/*!
|
|
75
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
76
|
+
* Licensed under the MIT License.
|
|
77
|
+
*/const st="data-tabster",ln="data-tabster-dummy",_h="tabster:deloser",Ph="tabster:modalizer:active",Sh="tabster:modalizer:inactive",Ch="tabster:modalizer:focusin",zh="tabster:modalizer:focusout",Th="tabster:modalizer:beforefocusout",Nh="tabster:mover",Za="tabster:focusin",Ya="tabster:focusout",cn=["a[href]","button:not([disabled])","input:not([disabled])","select:not([disabled])","textarea:not([disabled])","*[tabindex]","*[contenteditable]"].join(", "),Eh={Any:0,Accessible:1,Focusable:2},jh={History:0,DeloserDefault:1,RootDefault:2,DeloserFirst:3,RootFirst:4},Rh={Invisible:0,PartiallyVisible:1,Visible:2},Fh={Source:0,Target:1},qh={Both:0,Vertical:1,Horizontal:2,Grid:3,GridLinear:4},Qa={Unlimited:0,Limited:1,LimitedTrapFocus:2},Ja={Auto:0,Inside:1,Outside:2};var un=Object.freeze({__proto__:null,TabsterAttributeName:st,TabsterDummyInputAttributeName:ln,DeloserEventName:_h,ModalizerActiveEventName:Ph,ModalizerInactiveEventName:Sh,ModalizerFocusInEventName:Ch,ModalizerFocusOutEventName:zh,ModalizerBeforeFocusOutEventName:Th,MoverEventName:Nh,FocusInEventName:Za,FocusOutEventName:Ya,FocusableSelector:cn,ObservedElementAccesibilities:Eh,RestoreFocusOrders:jh,Visibilities:Rh,RestorerTypes:Fh,MoverDirections:qh,GroupperTabbabilities:Qa,SysDummyInputsPositions:Ja});/*!
|
|
78
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
79
|
+
* Licensed under the MIT License.
|
|
80
|
+
*/function lt(e,t){var r;return(r=e.storageEntry(t))===null||r===void 0?void 0:r.tabster}function es(e,t,r){var o,i;const n=r||e._noop?void 0:t.getAttribute(st);let s=e.storageEntry(t),l;if(n)if(n!==((o=s==null?void 0:s.attr)===null||o===void 0?void 0:o.string))try{const f=JSON.parse(n);if(typeof f!="object")throw new Error(`Value is not a JSON object, got '${n}'.`);l={string:n,object:f}}catch(f){process.env.NODE_ENV==="development"&&console.error(`data-tabster attribute error: ${f}`,t)}else return;else if(!s)return;s||(s=e.storageEntry(t,!0)),s.tabster||(s.tabster={});const u=s.tabster||{},a=((i=s.attr)===null||i===void 0?void 0:i.object)||{},c=(l==null?void 0:l.object)||{};for(const f of Object.keys(a))if(!c[f]){if(f==="root"){const v=u[f];v&&e.root.onRoot(v,!0)}switch(f){case"deloser":case"root":case"groupper":case"modalizer":case"restorer":case"mover":const v=u[f];v&&(v.dispose(),delete u[f]);break;case"observed":delete u[f],e.observedElement&&e.observedElement.onObservedElementUpdate(t);break;case"focusable":case"outline":case"uncontrolled":case"sys":delete u[f];break}}for(const f of Object.keys(c)){const v=c.sys;switch(f){case"deloser":u.deloser?u.deloser.setProps(c.deloser):e.deloser?u.deloser=e.deloser.createDeloser(t,c.deloser):process.env.NODE_ENV==="development"&&console.error("Deloser API used before initialization, please call `getDeloser()`");break;case"root":u.root?u.root.setProps(c.root):u.root=e.root.createRoot(t,c.root,v),e.root.onRoot(u.root);break;case"modalizer":u.modalizer?u.modalizer.setProps(c.modalizer):e.modalizer?u.modalizer=e.modalizer.createModalizer(t,c.modalizer,v):process.env.NODE_ENV==="development"&&console.error("Modalizer API used before initialization, please call `getModalizer()`");break;case"restorer":u.restorer?u.restorer.setProps(c.restorer):e.restorer?c.restorer&&(u.restorer=e.restorer.createRestorer(t,c.restorer)):process.env.NODE_ENV==="development"&&console.error("Restorer API used before initialization, please call `getRestorer()`");break;case"focusable":u.focusable=c.focusable;break;case"groupper":u.groupper?u.groupper.setProps(c.groupper):e.groupper?u.groupper=e.groupper.createGroupper(t,c.groupper,v):process.env.NODE_ENV==="development"&&console.error("Groupper API used before initialization, please call `getGroupper()`");break;case"mover":u.mover?u.mover.setProps(c.mover):e.mover?u.mover=e.mover.createMover(t,c.mover,v):process.env.NODE_ENV==="development"&&console.error("Mover API used before initialization, please call `getMover()`");break;case"observed":e.observedElement?(u.observed=c.observed,e.observedElement.onObservedElementUpdate(t)):process.env.NODE_ENV==="development"&&console.error("ObservedElement API used before initialization, please call `getObservedElement()`");break;case"uncontrolled":u.uncontrolled=c.uncontrolled;break;case"outline":e.outline?u.outline=c.outline:process.env.NODE_ENV==="development"&&console.error("Outline API used before initialization, please call `getOutline()`");break;case"sys":u.sys=c.sys;break;default:console.error(`Unknown key '${f}' in data-tabster attribute value.`)}}l?s.attr=l:(Object.keys(u).length===0&&(delete s.tabster,delete s.attr),e.storageEntry(t,!1))}/*!
|
|
81
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
82
|
+
* Licensed under the MIT License.
|
|
83
|
+
*/function Ah(e){const t=e();try{if(t.EventTarget)return new t.EventTarget}catch(r){if(!(r instanceof TypeError))throw r}return t.document.createElement("div")}/*!
|
|
84
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
85
|
+
* Licensed under the MIT License.
|
|
86
|
+
*/let fn,Dh=0;try{document.createTreeWalker(document,NodeFilter.SHOW_ELEMENT),fn=!1}catch{fn=!0}const dn=100;function At(e){const t=e();let r=t.__tabsterInstanceContext;return r||(r={elementByUId:{},basics:{Promise:t.Promise||void 0,WeakRef:t.WeakRef||void 0},containerBoundingRectCache:{},lastContainerBoundingRectCacheId:0,fakeWeakRefs:[],fakeWeakRefsStarted:!1},t.__tabsterInstanceContext=r),r}function Oh(e){const t=e.__tabsterInstanceContext;t&&(t.elementByUId={},delete t.WeakRef,t.containerBoundingRectCache={},t.containerBoundingRectCacheTimer&&e.clearTimeout(t.containerBoundingRectCacheTimer),t.fakeWeakRefsTimer&&e.clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefs=[],delete e.__tabsterInstanceContext)}function Ih(e){const t=e.__tabsterInstanceContext;return new((t==null?void 0:t.basics.WeakMap)||WeakMap)}function Mh(e){return!!e.querySelector(cn)}class ts{constructor(t){this._target=t}deref(){return this._target}static cleanup(t,r){return t._target?r||!hn(t._target.ownerDocument,t._target)?(delete t._target,!0):!1:!0}}class ct{constructor(t,r,o){const i=At(t);let n;i.WeakRef?n=new i.WeakRef(r):(n=new ts(r),i.fakeWeakRefs.push(n)),this._ref=n,this._data=o}get(){const t=this._ref;let r;return t&&(r=t.deref(),r||delete this._ref),r}getData(){return this._data}}function rs(e,t){const r=At(e);r.fakeWeakRefs=r.fakeWeakRefs.filter(o=>!ts.cleanup(o,t))}function os(e){const t=At(e);t.fakeWeakRefsStarted||(t.fakeWeakRefsStarted=!0,t.WeakRef=Uh(t)),t.fakeWeakRefsTimer||(t.fakeWeakRefsTimer=e().setTimeout(()=>{t.fakeWeakRefsTimer=void 0,rs(e),os(e)},2*60*1e3))}function Lh(e){const t=At(e);t.fakeWeakRefsStarted=!1,t.fakeWeakRefsTimer&&(e().clearTimeout(t.fakeWeakRefsTimer),t.fakeWeakRefsTimer=void 0,t.fakeWeakRefs=[])}function ns(e,t,r){if(t.nodeType!==Node.ELEMENT_NODE)return;const o=fn?r:{acceptNode:r};return e.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,o,!1)}function Hh(e){e.__shouldIgnoreFocus=!0}function is(e){return!!e.__shouldIgnoreFocus}function Vh(e){const t=new Uint32Array(4);if(e.crypto&&e.crypto.getRandomValues)e.crypto.getRandomValues(t);else if(e.msCrypto&&e.msCrypto.getRandomValues)e.msCrypto.getRandomValues(t);else for(let o=0;o<t.length;o++)t[o]=4294967295*Math.random();const r=[];for(let o=0;o<t.length;o++)r.push(t[o].toString(36));return r.push("|"),r.push((++Dh).toString(36)),r.push("|"),r.push(Date.now().toString(36)),r.join("")}function $h(e,t){const r=At(e);let o=t.__tabsterElementUID;return o||(o=t.__tabsterElementUID=Vh(e())),!r.elementByUId[o]&&hn(t.ownerDocument,t)&&(r.elementByUId[o]=new ct(e,t)),o}function as(e,t){const r=At(e);for(const o of Object.keys(r.elementByUId)){const i=r.elementByUId[o],n=i&&i.get();n&&t&&!t.contains(n)||delete r.elementByUId[o]}}function hn(e,t){var r;return!!(!((r=e==null?void 0:e.body)===null||r===void 0)&&r.contains(t))}function Wh(e,t){const r=e.matches||e.matchesSelector||e.msMatchesSelector||e.webkitMatchesSelector;return r&&r.call(e,t)}function Uh(e){return e.basics.WeakRef}let Gh=0;class ss{constructor(t,r,o){const i=t.getWindow;this._tabster=t,this._element=new ct(i,r),this._props={...o},this.id="i"+ ++Gh}getElement(){return this._element.get()}getProps(){return this._props}setProps(t){this._props={...t}}}class ro{constructor(t,r,o,i,n){var s;this._focusIn=c=>{if(this._fixedTarget){const v=this._fixedTarget.get();v&&qt(v);return}const f=this.input;if(this.onFocusIn&&f){const v=c.relatedTarget;this.onFocusIn(this,this._isBackward(!0,f,v),v)}},this._focusOut=c=>{if(this._fixedTarget)return;this.useDefaultAction=!1;const f=this.input;if(this.onFocusOut&&f){const v=c.relatedTarget;this.onFocusOut(this,this._isBackward(!1,f,v),v)}};const l=t(),u=l.document.createElement("i");u.tabIndex=0,u.setAttribute("role","none"),u.setAttribute(ln,""),u.setAttribute("aria-hidden","true");const a=u.style;a.position="fixed",a.width=a.height="1px",a.opacity="0.001",a.zIndex="-1",a.setProperty("content-visibility","hidden"),Hh(u),this.input=u,this.isFirst=o.isFirst,this.isOutside=r,this._isPhantom=(s=o.isPhantom)!==null&&s!==void 0?s:!1,this._fixedTarget=n,u.addEventListener("focusin",this._focusIn),u.addEventListener("focusout",this._focusOut),u.__tabsterDummyContainer=i,this._isPhantom&&(this._disposeTimer=l.setTimeout(()=>{delete this._disposeTimer,this.dispose()},0),this._clearDisposeTimeout=()=>{this._disposeTimer&&(l.clearTimeout(this._disposeTimer),delete this._disposeTimer),delete this._clearDisposeTimeout})}dispose(){var t;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,(t=r.parentElement)===null||t===void 0||t.removeChild(r))}setTopLeft(t,r){var o;const i=(o=this.input)===null||o===void 0?void 0:o.style;i&&(i.top=`${t}px`,i.left=`${r}px`)}_isBackward(t,r,o){return t&&!o?!this.isFirst:!!(o&&r.compareDocumentPosition(o)&Node.DOCUMENT_POSITION_FOLLOWING)}}const ls={Root:1,Modalizer:2,Mover:3,Groupper:4};class oo{constructor(t,r,o,i,n,s){this._element=r,this._instance=new Kh(t,r,this,o,i,n,s)}_setHandlers(t,r){this._onFocusIn=t,this._onFocusOut=r}moveOut(t){var r;(r=this._instance)===null||r===void 0||r.moveOut(t)}moveOutWithDefaultAction(t){var r;(r=this._instance)===null||r===void 0||r.moveOutWithDefaultAction(t)}getHandler(t){return t?this._onFocusIn:this._onFocusOut}setTabbable(t){var r;(r=this._instance)===null||r===void 0||r.setTabbable(this,t)}dispose(){this._instance&&(this._instance.dispose(this),delete this._instance),delete this._onFocusIn,delete this._onFocusOut}static moveWithPhantomDummy(t,r,o,i){var n;const l=new ro(t.getWindow,!0,{isPhantom:!0,isFirst:!0}).input;if(l){let u,a;if(r.tagName==="BODY")u=r,a=o&&i||!o&&!i?r.firstElementChild:null;else{o&&(!i||i&&!t.focusable.isFocusable(r,!1,!0,!0))?(u=r,a=i?r.firstElementChild:null):(u=r.parentElement,a=o&&i||!o&&!i?r:r.nextElementSibling);let c,f;do c=o&&i||!o&&!i?a==null?void 0:a.previousElementSibling:a,f=(n=c==null?void 0:c.__tabsterDummyContainer)===null||n===void 0?void 0:n.get(),f===r?a=o&&i||!o&&!i?c:c==null?void 0:c.nextElementSibling:f=void 0;while(f)}u&&(u.insertBefore(l,a),qt(l))}}static addPhantomDummyWithTarget(t,r,o,i){const s=new ro(t.getWindow,!0,{isPhantom:!0,isFirst:!0},void 0,new ct(t.getWindow,i)).input;if(s){let l,u;Mh(r)&&!o?(l=r,u=r.firstElementChild):(l=r.parentElement,u=o?r:r.nextElementSibling),l==null||l.insertBefore(s,u)}}}function bt(e,t){var r;const o={1:"Root",2:"Modalizer",3:"Mover",4:"Groupper"};(r=e.input)===null||r===void 0||r.setAttribute(ln,[`isFirst=${e.isFirst}`,`isOutside=${e.isOutside}`,...t.map(i=>`(${o[i.priority]}, tabbable=${i.tabbable})`)].join(", "))}class Xh{constructor(t){this._updateQueue=new Set,this._lastUpdateQueueTime=0,this._changedParents=new WeakSet,this._dummyElements=[],this._dummyCallbacks=new WeakMap,this._domChanged=r=>{var o;this._changedParents.has(r)||(this._changedParents.add(r),!this._updateDummyInputsTimer&&(this._updateDummyInputsTimer=(o=this._win)===null||o===void 0?void 0:o.call(this).setTimeout(()=>{delete this._updateDummyInputsTimer;for(const i of this._dummyElements){const n=i.get();if(n){const s=this._dummyCallbacks.get(n);if(s){const l=n.parentElement;(!l||this._changedParents.has(l))&&s()}}}this._changedParents=new WeakSet},dn)))},this._win=t}add(t,r){!this._dummyCallbacks.has(t)&&this._win&&(this._dummyElements.push(new ct(this._win,t)),this._dummyCallbacks.set(t,r),this.domChanged=this._domChanged)}remove(t){this._dummyElements=this._dummyElements.filter(r=>{const o=r.get();return o&&o!==t}),this._dummyCallbacks.delete(t),this._dummyElements.length===0&&delete this.domChanged}dispose(){var t;const r=(t=this._win)===null||t===void 0?void 0:t.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(t){this._win&&(this._updateQueue.add(t),this._lastUpdateQueueTime=Date.now(),this._scheduledUpdatePositions())}_scheduledUpdatePositions(){var t;this._updateTimer||(this._updateTimer=(t=this._win)===null||t===void 0?void 0:t.call(this).setTimeout(()=>{if(delete this._updateTimer,this._lastUpdateQueueTime+dn<=Date.now()){const r=new Map,o=[];for(const i of this._updateQueue)o.push(i(r));this._updateQueue.clear();for(const i of o)i();r.clear()}else this._scheduledUpdatePositions()},dn))}}class Kh{constructor(t,r,o,i,n,s,l){this._wrappers=[],this._isOutside=!1,this._transformElements=new Set,this._onFocusIn=(d,h,m)=>{this._onFocus(!0,d,h,m)},this._onFocusOut=(d,h,m)=>{this._onFocus(!1,d,h,m)},this.moveOut=d=>{var h;const m=this._firstDummy,k=this._lastDummy;if(m&&k){this._ensurePosition();const b=m.input,y=k.input,P=(h=this._element)===null||h===void 0?void 0:h.get();if(b&&y&&P){let x;d?(b.tabIndex=0,x=b):(y.tabIndex=0,x=y),x&&qt(x)}}},this.moveOutWithDefaultAction=d=>{var h;const m=this._firstDummy,k=this._lastDummy;if(m&&k){this._ensurePosition();const b=m.input,y=k.input,P=(h=this._element)===null||h===void 0?void 0:h.get();if(b&&y&&P){let x;d?!m.isOutside&&this._tabster.focusable.isFocusable(P,!0,!0,!0)?x=P:(m.useDefaultAction=!0,b.tabIndex=0,x=b):(k.useDefaultAction=!0,y.tabIndex=0,x=y),x&&qt(x)}}},this.setTabbable=(d,h)=>{var m,k;for(const y of this._wrappers)if(y.manager===d){y.tabbable=h;break}const b=this._getCurrent();if(b){const y=b.tabbable?0:-1;let P=(m=this._firstDummy)===null||m===void 0?void 0:m.input;P&&(P.tabIndex=y),P=(k=this._lastDummy)===null||k===void 0?void 0:k.input,P&&(P.tabIndex=y)}process.env.NODE_ENV==="development"&&(this._firstDummy&&bt(this._firstDummy,this._wrappers),this._lastDummy&&bt(this._lastDummy,this._wrappers))},this._addDummyInputs=()=>{this._addTimer||(this._addTimer=this._getWindow().setTimeout(()=>{delete this._addTimer,this._ensurePosition(),process.env.NODE_ENV==="development"&&(this._firstDummy&&bt(this._firstDummy,this._wrappers),this._lastDummy&&bt(this._lastDummy,this._wrappers)),this._addTransformOffsets()},0))},this._addTransformOffsets=()=>{this._tabster._dummyObserver.updatePositions(this._computeTransformOffsets)},this._computeTransformOffsets=d=>{var h,m;const k=((h=this._firstDummy)===null||h===void 0?void 0:h.input)||((m=this._lastDummy)===null||m===void 0?void 0:m.input),b=this._transformElements,y=new Set;let P=0,x=0;const S=this._getWindow();for(let w=k;w&&w.nodeType===Node.ELEMENT_NODE;w=w.parentElement){let _=d.get(w);if(_===void 0){const F=S.getComputedStyle(w).transform;F&&F!=="none"&&(_={scrollTop:w.scrollTop,scrollLeft:w.scrollLeft}),d.set(w,_||null)}_&&(y.add(w),b.has(w)||w.addEventListener("scroll",this._addTransformOffsets),P+=_.scrollTop,x+=_.scrollLeft)}for(const w of b)y.has(w)||w.removeEventListener("scroll",this._addTransformOffsets);return this._transformElements=y,()=>{var w,_;(w=this._firstDummy)===null||w===void 0||w.setTopLeft(P,x),(_=this._lastDummy)===null||_===void 0||_.setTopLeft(P,x)}};const u=r.get();if(!u)throw new Error("No element");this._tabster=t,this._getWindow=t.getWindow,this._callForDefaultAction=l;const a=u.__tabsterDummy;if((a||this)._wrappers.push({manager:o,priority:i,tabbable:!0}),a)return process.env.NODE_ENV==="development"&&(this._firstDummy&&bt(this._firstDummy,a._wrappers),this._lastDummy&&bt(this._lastDummy,a._wrappers)),a;u.__tabsterDummy=this;const c=n==null?void 0:n.dummyInputsPosition,f=u.tagName;this._isOutside=c?c===Ja.Outside:(s||f==="UL"||f==="OL"||f==="TABLE")&&!(f==="LI"||f==="TD"||f==="TH"),this._firstDummy=new ro(this._getWindow,this._isOutside,{isFirst:!0},r),this._lastDummy=new ro(this._getWindow,this._isOutside,{isFirst:!1},r);const v=this._firstDummy.input;v&&t._dummyObserver.add(v,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(t,r){var o,i,n,s;const l=this._wrappers=this._wrappers.filter(u=>u.manager!==t&&!r);if(process.env.NODE_ENV==="development"&&(this._firstDummy&&bt(this._firstDummy,l),this._lastDummy&&bt(this._lastDummy,l)),l.length===0){delete((o=this._element)===null||o===void 0?void 0:o.get()).__tabsterDummy;for(const c of this._transformElements)c.removeEventListener("scroll",this._addTransformOffsets);this._transformElements.clear();const u=this._getWindow();this._addTimer&&(u.clearTimeout(this._addTimer),delete this._addTimer);const a=(i=this._firstDummy)===null||i===void 0?void 0:i.input;a&&this._tabster._dummyObserver.remove(a),(n=this._firstDummy)===null||n===void 0||n.dispose(),(s=this._lastDummy)===null||s===void 0||s.dispose()}}_onFocus(t,r,o,i){var n;const s=this._getCurrent();s&&(!r.useDefaultAction||this._callForDefaultAction)&&((n=s.manager.getHandler(t))===null||n===void 0||n(r,o,i))}_getCurrent(){return this._wrappers.sort((t,r)=>t.tabbable!==r.tabbable?t.tabbable?-1:1:t.priority-r.priority),this._wrappers[0]}_ensurePosition(){var t,r,o;const i=(t=this._element)===null||t===void 0?void 0:t.get(),n=(r=this._firstDummy)===null||r===void 0?void 0:r.input,s=(o=this._lastDummy)===null||o===void 0?void 0:o.input;if(!(!i||!n||!s))if(this._isOutside){const l=i.parentElement;if(l){const u=i.nextElementSibling;u!==s&&l.insertBefore(s,u),i.previousElementSibling!==n&&l.insertBefore(n,i)}}else{i.lastElementChild!==s&&i.appendChild(s);const l=i.firstElementChild;l&&l!==n&&i.insertBefore(n,l)}}}function cs(e){let t=null;for(let r=e.lastElementChild;r;r=r.lastElementChild)t=r;return t||void 0}function Zh(e,t){let r=e,o=null;for(;r&&!o;)o=t?r.previousElementSibling:r.nextElementSibling,r=r.parentElement;return o||void 0}function no(e,t,r){const o=document.createEvent("HTMLEvents");return o.initEvent(t,!0,!0),o.details=r,e.dispatchEvent(o),!o.defaultPrevented}/*!
|
|
87
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
88
|
+
* Licensed under the MIT License.
|
|
89
|
+
*/function us(e,t){const r=JSON.stringify(e);return t===!0?r:{[st]:r}}function Yh(e,t){for(const r of Object.keys(t)){const o=t[r];o?e[r]=o:delete e[r]}}function Qh(e,t,r){let o;if(r){const i=e.getAttribute(st);if(i)try{o=JSON.parse(i)}catch(n){process.env.NODE_ENV==="development"&&console.error(`data-tabster attribute error: ${n}`,e)}}o||(o={}),Yh(o,t),Object.keys(o).length>0?e.setAttribute(st,us(o,!0)):e.removeAttribute(st)}/*!
|
|
90
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
91
|
+
* Licensed under the MIT License.
|
|
92
|
+
*/function fs(e,t,r){if(process.env.NODE_ENV==="development"){const o=e.get();o&&(t?o.style.removeProperty("--tabster-root"):o.style.setProperty("--tabster-root",r+","))}}class ds extends oo{constructor(t,r,o,i){super(t,r,ls.Root,i,void 0,!0),this._onDummyInputFocus=n=>{var s;if(n.useDefaultAction)this._setFocused(!1);else{this._tabster.keyboardNavigation.setNavigatingWithKeyboard(!0);const l=this._element.get();if(l){this._setFocused(!0);const u=this._tabster.focusedElement.getFirstOrLastTabbable(n.isFirst,{container:l,ignoreAccessibility:!0});if(u){qt(u);return}}(s=n.input)===null||s===void 0||s.blur()}},this._setHandlers(this._onDummyInputFocus),this._tabster=t,this._setFocused=o}}class Jh extends ss{constructor(t,r,o,i,n){super(t,r,i),this._isFocused=!1,this._setFocused=u=>{var a;if(this._setFocusedTimer&&(this._tabster.getWindow().clearTimeout(this._setFocusedTimer),delete this._setFocusedTimer),this._isFocused===u)return;const c=this._element.get();c&&(u?(this._isFocused=!0,(a=this._dummyManager)===null||a===void 0||a.setTabbable(!1),no(this._tabster.root.eventTarget,"focus",{element:c})):this._setFocusedTimer=this._tabster.getWindow().setTimeout(()=>{var f;delete this._setFocusedTimer,this._isFocused=!1,(f=this._dummyManager)===null||f===void 0||f.setTabbable(!0),no(this._tabster.root.eventTarget,"blur",{element:c})},0))},this._onFocusIn=u=>{const a=this._tabster.getParent,c=this._element.get();let f=u.target;do{if(f===c){this._setFocused(!0);return}f=f&&a(f)}while(f)},this._onFocusOut=()=>{this._setFocused(!1)},this._onDispose=o;const s=t.getWindow;this.uid=$h(s,r),this._sys=n,(t.controlTab||t.rootDummyInputs)&&this.addDummyInputs();const l=s();l.document.addEventListener("focusin",this._onFocusIn),l.document.addEventListener("focusout",this._onFocusOut),this._add()}addDummyInputs(){this._dummyManager||(this._dummyManager=new ds(this._tabster,this._element,this._setFocused,this._sys))}dispose(){var t;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),(t=this._dummyManager)===null||t===void 0||t.dispose(),this._remove()}moveOutWithDefaultAction(t){const r=this._dummyManager;if(r)r.moveOutWithDefaultAction(t);else{const o=this.getElement();o&&ds.moveWithPhantomDummy(this._tabster,o,!0,t)}}_add(){process.env.NODE_ENV==="development"&&fs(this._element,!1,this.uid)}_remove(){process.env.NODE_ENV==="development"&&fs(this._element,!0)}}class Ie{constructor(t,r){this._autoRootWaiting=!1,this._roots={},this._forceDummy=!1,this.rootById={},this._autoRootCreate=()=>{var o;const i=this._win().document,n=i.body;if(n){this._autoRootUnwait(i);const s=this._autoRoot;if(s)return Qh(n,{root:s},!0),es(this._tabster,n),(o=lt(this._tabster,n))===null||o===void 0?void 0:o.root}else this._autoRootWaiting||(this._autoRootWaiting=!0,i.addEventListener("readystatechange",this._autoRootCreate))},this._onRootDispose=o=>{delete this._roots[o.id]},this._tabster=t,this._win=t.getWindow,this._autoRoot=r,this.eventTarget=Ah(this._win),t.queueInit(()=>{this._autoRoot&&this._autoRootCreate()})}_autoRootUnwait(t){t.removeEventListener("readystatechange",this._autoRootCreate),this._autoRootWaiting=!1}dispose(){const t=this._win();this._autoRootUnwait(t.document),delete this._autoRoot,Object.keys(this._roots).forEach(r=>{this._roots[r]&&(this._roots[r].dispose(),delete this._roots[r])}),this.rootById={}}createRoot(t,r,o){process.env.NODE_ENV;const i=new Jh(this._tabster,t,this._onRootDispose,r,o);return this._roots[i.id]=i,this._forceDummy&&i.addDummyInputs(),i}addDummyInputs(){this._forceDummy=!0;const t=this._roots;for(const r of Object.keys(t))t[r].addDummyInputs()}static getRootByUId(t,r){const o=t().__tabsterInstance;return o&&o.root.rootById[r]}static getTabsterContext(t,r,o){o===void 0&&(o={});var i,n,s,l;if(!r.ownerDocument)return;const{checkRtl:u,referenceElement:a}=o,c=t.getParent;t.drainInitQueue();let f,v,d,h,m=!1,k,b,y,P,x=a||r;const S={};for(;x&&(!f||u);){const _=lt(t,x);if(u&&y===void 0){const O=x.dir;O&&(y=O.toLowerCase()==="rtl")}if(!_){x=c(x);continue}const F=x.tagName;(_.uncontrolled||F==="IFRAME"||F==="WEBVIEW")&&(P=x),!h&&(!((i=_.focusable)===null||i===void 0)&&i.excludeFromMover)&&!d&&(m=!0);const R=_.modalizer,V=_.groupper,G=_.mover;!v&&R&&(v=R),!d&&V&&(!v||R)&&(v?(!V.isActive()&&V.getProps().tabbability&&v.userId!==((n=t.modalizer)===null||n===void 0?void 0:n.activeId)&&(v=void 0,d=V),b=V):d=V),!h&&G&&(!v||R)&&(!V||x!==r)&&(h=G,k=!!d&&d!==V),_.root&&(f=_.root),!((s=_.focusable)===null||s===void 0)&&s.ignoreKeydown&&Object.assign(S,_.focusable.ignoreKeydown),x=c(x)}if(!f){const _=t.root;_._autoRoot&&!((l=r.ownerDocument)===null||l===void 0)&&l.body&&(f=_._autoRootCreate())}return d&&!h&&(k=!0),process.env.NODE_ENV==="development"&&!f&&(v||d||h)&&console.error("Tabster Root is required for Mover, Groupper and Modalizer to work."),f?{root:f,modalizer:v,groupper:d,mover:h,groupperBeforeMover:k,modalizerInGroupper:b,rtl:u?!!y:void 0,uncontrolled:P,excludedFromMover:m,ignoreKeydown:_=>!!S[_.key]}:void 0}static getRoot(t,r){var o;const i=t.getParent;for(let n=r;n;n=i(n)){const s=(o=lt(t,n))===null||o===void 0?void 0:o.root;if(s)return s}}onRoot(t,r){r?delete this.rootById[t.uid]:this.rootById[t.uid]=t}}/*!
|
|
93
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
94
|
+
* Licensed under the MIT License.
|
|
95
|
+
*/class hs{constructor(){this._callbacks=[]}dispose(){this._callbacks=[],delete this._val}subscribe(t){const r=this._callbacks;r.indexOf(t)<0&&r.push(t)}subscribeFirst(t){const r=this._callbacks,o=r.indexOf(t);o>=0&&r.splice(o,1),r.unshift(t)}unsubscribe(t){const r=this._callbacks.indexOf(t);r>=0&&this._callbacks.splice(r,1)}setVal(t,r){this._val!==t&&(this._val=t,this._callCallbacks(t,r))}getVal(){return this._val}trigger(t,r){this._callCallbacks(t,r)}_callCallbacks(t,r){this._callbacks.forEach(o=>o(t,r))}}/*!
|
|
96
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
97
|
+
* Licensed under the MIT License.
|
|
98
|
+
*/class ev{constructor(t){this._tabster=t}dispose(){}getProps(t){const r=lt(this._tabster,t);return r&&r.focusable||{}}isFocusable(t,r,o,i){return Wh(t,cn)&&(r||t.tabIndex!==-1)?(o||this.isVisible(t))&&(i||this.isAccessible(t)):!1}isVisible(t){if(!t.ownerDocument||t.nodeType!==Node.ELEMENT_NODE||t.offsetParent===null&&t.ownerDocument.body!==t)return!1;const r=t.ownerDocument.defaultView;if(!r)return!1;const o=t.ownerDocument.body.getBoundingClientRect();return!(o.width===0&&o.height===0||r.getComputedStyle(t).visibility==="hidden")}isAccessible(t){var r;for(let o=t;o;o=o.parentElement){const i=lt(this._tabster,o);if(this._isHidden(o)||!((r=i==null?void 0:i.focusable)===null||r===void 0?void 0:r.ignoreAriaDisabled)&&this._isDisabled(o))return!1}return!0}_isDisabled(t){return t.hasAttribute("disabled")}_isHidden(t){var r;const o=t.getAttribute("aria-hidden");return!!(o&&o.toLowerCase()==="true"&&!(!((r=this._tabster.modalizer)===null||r===void 0)&&r.isAugmented(t)))}findFirst(t,r){return this.findElement({...t},r)}findLast(t,r){return this.findElement({isBackward:!0,...t},r)}findNext(t,r){return this.findElement({...t},r)}findPrev(t,r){return this.findElement({...t,isBackward:!0},r)}findDefault(t,r){return this.findElement({...t,acceptCondition:o=>this.isFocusable(o,t.includeProgrammaticallyFocusable)&&!!this.getProps(o).isDefault},r)||null}findAll(t){return this._findElements(!0,t)||[]}findElement(t,r){const o=this._findElements(!1,t,r);return o&&o[0]}_findElements(t,r,o){var i,n,s;const{container:l,currentElement:u=null,includeProgrammaticallyFocusable:a,useActiveModalizer:c,ignoreAccessibility:f,modalizerId:v,isBackward:d,onElement:h}=r;o||(o={});const m=[];let{acceptCondition:k}=r;const b=!!k;if(!l)return null;k||(k=S=>this.isFocusable(S,a,!1,f));const y={container:l,modalizerUserId:v===void 0&&c?(i=this._tabster.modalizer)===null||i===void 0?void 0:i.activeId:v||((s=(n=Ie.getTabsterContext(this._tabster,l))===null||n===void 0?void 0:n.modalizer)===null||s===void 0?void 0:s.userId),from:u||l,isBackward:d,acceptCondition:k,hasCustomCondition:b,includeProgrammaticallyFocusable:a,ignoreAccessibility:f,cachedGrouppers:{}},P=ns(l.ownerDocument,l,S=>this._acceptElement(S,y));if(!P)return null;const x=S=>{var w,_;const F=(w=y.foundElement)!==null&&w!==void 0?w:y.foundBackward;return F&&m.push(F),t?F&&(y.found=!1,delete y.foundElement,delete y.foundBackward,delete y.fromCtx,y.from=F,h&&!h(F))?!1:!!(F||S):(F&&o&&(o.uncontrolled=(_=Ie.getTabsterContext(this._tabster,F))===null||_===void 0?void 0:_.uncontrolled),!!(S&&!F))};if(u||(o.outOfDOMOrder=!0),u)P.currentNode=u;else if(d){const S=cs(l);if(!S)return null;if(this._acceptElement(S,y)===NodeFilter.FILTER_ACCEPT&&!x(!0))return y.skippedFocusable&&(o.outOfDOMOrder=!0),m;P.currentNode=S}do d?P.previousNode():P.nextNode();while(x());return y.skippedFocusable&&(o.outOfDOMOrder=!0),m.length?m:null}_acceptElement(t,r){var o,i,n,s;if(r.found)return NodeFilter.FILTER_ACCEPT;const l=r.foundBackward;if(l&&(t===l||!l.contains(t)))return r.found=!0,r.foundElement=l,NodeFilter.FILTER_ACCEPT;const u=r.container;if(t===u)return NodeFilter.FILTER_SKIP;if(!u.contains(t)||t.__tabsterDummyContainer||!((o=r.rejectElementsFrom)===null||o===void 0)&&o.contains(t))return NodeFilter.FILTER_REJECT;const a=r.currentCtx=Ie.getTabsterContext(this._tabster,t);if(!a)return NodeFilter.FILTER_SKIP;if(is(t))return this.isFocusable(t,void 0,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_SKIP;if(!r.hasCustomCondition&&(t.tagName==="IFRAME"||t.tagName==="WEBVIEW"))return((i=a.modalizer)===null||i===void 0?void 0:i.userId)===((n=this._tabster.modalizer)===null||n===void 0?void 0:n.activeId)?(r.found=!0,r.rejectElementsFrom=r.foundElement=t,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT;if(!r.ignoreAccessibility&&!this.isAccessible(t))return this.isFocusable(t,!1,!0,!0)&&(r.skippedFocusable=!0),NodeFilter.FILTER_REJECT;let c,f=r.fromCtx;f||(f=r.fromCtx=Ie.getTabsterContext(this._tabster,r.from));const v=f==null?void 0:f.mover;let d=a.groupper,h=a.mover;if(c=(s=this._tabster.modalizer)===null||s===void 0?void 0:s.acceptElement(t,r),c!==void 0&&(r.skippedFocusable=!0),c===void 0&&(d||h||v)){const m=d==null?void 0:d.getElement(),k=v==null?void 0:v.getElement();let b=h==null?void 0:h.getElement();b&&(k!=null&&k.contains(b))&&u.contains(k)&&(!m||!h||k.contains(m))&&(h=v,b=k),m&&(m===u||!u.contains(m))&&(d=void 0),b&&!u.contains(b)&&(h=void 0),d&&h&&(b&&m&&!m.contains(b)?h=void 0:d=void 0),d&&(c=d.acceptElement(t,r)),h&&(c=h.acceptElement(t,r))}return c===void 0&&(c=r.acceptCondition(t)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP,c===NodeFilter.FILTER_SKIP&&this.isFocusable(t,!1,!0,!0)&&(r.skippedFocusable=!0)),c===NodeFilter.FILTER_ACCEPT&&!r.found&&(r.isBackward?(r.foundBackward=t,c=NodeFilter.FILTER_SKIP):(r.found=!0,r.foundElement=t)),c}}/*!
|
|
99
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
100
|
+
* Licensed under the MIT License.
|
|
101
|
+
*/const _r={Tab:9,Enter:13,Esc:27,Space:32,PageUp:33,PageDown:34,End:35,Home:36,Left:37,Up:38,Right:39,Down:40};/*!
|
|
102
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
103
|
+
* Licensed under the MIT License.
|
|
104
|
+
*/function tv(e,t){var r;const o=e.getParent;let i=t;do{const n=(r=lt(e,i))===null||r===void 0?void 0:r.uncontrolled;if(n&&e.uncontrolled.isUncontrolledCompletely(i,!!n.completely))return i;i=o(i)}while(i)}class Be extends hs{constructor(t,r){super(),this._init=()=>{const o=this._win(),i=o.document;i.addEventListener(at,this._onFocusIn,!0),i.addEventListener("focusout",this._onFocusOut,!0),o.addEventListener("keydown",this._onKeyDown,!0);const n=i.activeElement;n&&n!==i.body&&this._setFocusedElement(n),this.subscribe(this._onChanged)},this._onFocusIn=o=>{this._setFocusedElement(o.target,o.details.relatedTarget,o.details.isFocusedProgrammatically)},this._onFocusOut=o=>{this._setFocusedElement(void 0,o.relatedTarget)},this._validateFocusedElement=o=>{},this._onKeyDown=o=>{if(o.keyCode!==_r.Tab||o.ctrlKey)return;const i=this.getVal();if(!i||!i.ownerDocument||i.contentEditable==="true")return;const n=this._tabster,s=n.controlTab,l=Ie.getTabsterContext(n,i);if(!l||l.ignoreKeydown(o))return;const u=o.shiftKey,a=Be.findNextTabbable(n,l,void 0,i,void 0,u,!0),c=a==null?void 0:a.element,f=tv(n,i);if(c){const v=a.uncontrolled;if(l.uncontrolled||v!=null&&v.contains(i)){if(!a.outOfDOMOrder&&v===l.uncontrolled||f&&!f.contains(c))return;oo.addPhantomDummyWithTarget(n,i,u,c);return}if(v||c.tagName==="IFRAME"){oo.moveWithPhantomDummy(this._tabster,v??c,!1,u);return}(s||a!=null&&a.outOfDOMOrder)&&(o.preventDefault(),o.stopImmediatePropagation(),qt(c))}else f||l.root.moveOutWithDefaultAction(u)},this._onChanged=(o,i)=>{var n,s;if(o)no(o,Za,i);else{const l=(n=this._lastVal)===null||n===void 0?void 0:n.get();if(l){const u={...i},a=Ie.getTabsterContext(this._tabster,l),c=(s=a==null?void 0:a.modalizer)===null||s===void 0?void 0:s.userId;c&&(u.modalizerId=c),no(l,Ya,u)}}},this._tabster=t,this._win=r,t.queueInit(this._init)}dispose(){super.dispose();const t=this._win();t.document.removeEventListener(at,this._onFocusIn,!0),t.document.removeEventListener("focusout",this._onFocusOut,!0),t.removeEventListener("keydown",this._onKeyDown,!0),this.unsubscribe(this._onChanged),delete Be._lastResetElement,delete this._nextVal,delete this._lastVal}static forgetMemorized(t,r){var o,i;let n=Be._lastResetElement,s=n&&n.get();s&&r.contains(s)&&delete Be._lastResetElement,s=(i=(o=t._nextVal)===null||o===void 0?void 0:o.element)===null||i===void 0?void 0:i.get(),s&&r.contains(s)&&delete t._nextVal,n=t._lastVal,s=n&&n.get(),s&&r.contains(s)&&delete t._lastVal}getFocusedElement(){return this.getVal()}getLastFocusedElement(){var t;let r=(t=this._lastVal)===null||t===void 0?void 0:t.get();return(!r||r&&!hn(r.ownerDocument,r))&&(this._lastVal=r=void 0),r}focus(t,r,o){return this._tabster.focusable.isFocusable(t,r,!1,o)?(t.focus(),!0):!1}focusDefault(t){const r=this._tabster.focusable.findDefault({container:t});return r?(this._tabster.focusedElement.focus(r),!0):!1}getFirstOrLastTabbable(t,r){var o;const{container:i,ignoreAccessibility:n}=r;let s;if(i){const l=Ie.getTabsterContext(this._tabster,i);l&&(s=(o=Be.findNextTabbable(this._tabster,l,i,void 0,void 0,!t,n))===null||o===void 0?void 0:o.element)}return s&&!(i!=null&&i.contains(s))&&(s=void 0),s||void 0}_focusFirstOrLast(t,r){const o=this.getFirstOrLastTabbable(t,r);return o?(this.focus(o,!1,!0),!0):!1}focusFirst(t){return this._focusFirstOrLast(!0,t)}focusLast(t){return this._focusFirstOrLast(!1,t)}resetFocus(t){if(!this._tabster.focusable.isVisible(t))return!1;if(this._tabster.focusable.isFocusable(t,!0,!0,!0))this.focus(t);else{const r=t.getAttribute("tabindex"),o=t.getAttribute("aria-hidden");t.tabIndex=-1,t.setAttribute("aria-hidden","true"),Be._lastResetElement=new ct(this._win,t),this.focus(t,!0,!0),this._setOrRemoveAttribute(t,"tabindex",r),this._setOrRemoveAttribute(t,"aria-hidden",o)}return!0}_setOrRemoveAttribute(t,r,o){o===null?t.removeAttribute(r):t.setAttribute(r,o)}_setFocusedElement(t,r,o){var i,n;if(this._tabster._noop)return;const s={relatedTarget:r};if(t){const u=(i=Be._lastResetElement)===null||i===void 0?void 0:i.get();if(Be._lastResetElement=void 0,u===t||is(t))return;s.isFocusedProgrammatically=o;const a=Ie.getTabsterContext(this._tabster,t),c=(n=a==null?void 0:a.modalizer)===null||n===void 0?void 0:n.userId;c&&(s.modalizerId=c)}const l=this._nextVal={element:t?new ct(this._win,t):void 0,details:s};t&&t!==this._val&&this._validateFocusedElement(t),this._nextVal===l&&this.setVal(t,s),this._nextVal=void 0}setVal(t,r){super.setVal(t,r),t&&(this._lastVal=new ct(this._win,t))}static findNextTabbable(t,r,o,i,n,s,l){const u=o||r.root.getElement();if(!u)return null;let a=null;const c=Be._isTabbingTimer,f=t.getWindow();c&&f.clearTimeout(c),Be.isTabbing=!0,Be._isTabbingTimer=f.setTimeout(()=>{delete Be._isTabbingTimer,Be.isTabbing=!1},0);const v=r.modalizer,d=r.groupper,h=r.mover,m=k=>{var b;if(a=k.findNextTabbable(i,n,s,l),i&&!(a!=null&&a.element)){const y=k!==v&&((b=k.getElement())===null||b===void 0?void 0:b.parentElement);if(y){const P=Ie.getTabsterContext(t,i,{referenceElement:y});if(P){const x=k.getElement(),S=s?x:x&&cs(x)||x;S&&(a=Be.findNextTabbable(t,P,o,S,y,s,l),a&&(a.outOfDOMOrder=!0))}}}};if(d&&h)m(r.groupperBeforeMover?d:h);else if(d)m(d);else if(h)m(h);else if(v)m(v);else{const k={container:u,currentElement:i,referenceElement:n,ignoreAccessibility:l,useActiveModalizer:!0},b={};a={element:t.focusable[s?"findPrev":"findNext"](k,b),outOfDOMOrder:b.outOfDOMOrder,uncontrolled:b.uncontrolled}}return a}}Be.isTabbing=!1;/*!
|
|
105
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
106
|
+
* Licensed under the MIT License.
|
|
107
|
+
*/class rv extends oo{constructor(t,r,o,i){super(o,t,ls.Groupper,i,!0),this._setHandlers((n,s,l)=>{var u,a;const c=t.get(),f=n.input;if(c&&f){const v=Ie.getTabsterContext(o,f);if(v){let d;d=(u=r.findNextTabbable(l||void 0,void 0,s,!0))===null||u===void 0?void 0:u.element,d||(d=(a=Be.findNextTabbable(o,v,void 0,n.isOutside?f:Zh(c,!s),void 0,s,!0))===null||a===void 0?void 0:a.element),d&&qt(d)}}})}}class ov extends ss{constructor(t,r,o,i,n){super(t,r,i),this._shouldTabInside=!1,this.makeTabbable(!1),this._onDispose=o,t.controlTab||(this.dummyManager=new rv(this._element,this,t,n))}dispose(){var t;this._onDispose(this);const r=this._element.get();(t=this.dummyManager)===null||t===void 0||t.dispose(),delete this.dummyManager,r&&process.env.NODE_ENV==="development"&&vs(this._element,!0),delete this._first}findNextTabbable(t,r,o,i){var n;const s=this.getElement();if(!s)return null;const l=((n=t==null?void 0:t.__tabsterDummyContainer)===null||n===void 0?void 0:n.get())===s;if(!this._shouldTabInside&&t&&s.contains(t)&&!l)return{element:void 0,outOfDOMOrder:!0};const u=this.getFirst(!0);if(!t||!s.contains(t)||l)return{element:u,outOfDOMOrder:!0};const a=this._tabster;let c=null,f=!1,v;if(this._shouldTabInside&&u){const d={container:s,currentElement:t,referenceElement:r,ignoreAccessibility:i,useActiveModalizer:!0},h={};c=a.focusable[o?"findPrev":"findNext"](d,h),f=!!h.outOfDOMOrder,!c&&this._props.tabbability===Qa.LimitedTrapFocus&&(c=a.focusable[o?"findLast":"findFirst"]({container:s,ignoreAccessibility:i,useActiveModalizer:!0},h),f=!0),v=h.uncontrolled}return{element:c,uncontrolled:v,outOfDOMOrder:f}}makeTabbable(t){this._shouldTabInside=t||!this._props.tabbability,process.env.NODE_ENV==="development"&&vs(this._element,!this._shouldTabInside)}isActive(t){var r;const o=this.getElement()||null;let i=!0;for(let s=o==null?void 0:o.parentElement;s;s=s.parentElement){const l=(r=lt(this._tabster,s))===null||r===void 0?void 0:r.groupper;l&&(l._shouldTabInside||(i=!1))}let n=i?this._props.tabbability?this._shouldTabInside:!1:void 0;if(n&&t){const s=this._tabster.focusedElement.getFocusedElement();s&&(n=s!==this.getFirst(!0))}return n}getFirst(t){var r;const o=this.getElement();let i;if(o){if(t&&this._tabster.focusable.isFocusable(o))return o;i=(r=this._first)===null||r===void 0?void 0:r.get(),i||(i=this._tabster.focusable.findFirst({container:o,useActiveModalizer:!0})||void 0,i&&this.setFirst(i))}return i}setFirst(t){t?this._first=new ct(this._tabster.getWindow,t):delete this._first}acceptElement(t,r){var o;const i=r.cachedGrouppers,n=(o=this.getElement())===null||o===void 0?void 0:o.parentElement,s=n&&Ie.getTabsterContext(this._tabster,n),l=s==null?void 0:s.groupper,u=s!=null&&s.groupperBeforeMover?l:void 0;let a;const c=d=>{let h=i[d.id],m;return h?m=h.isActive:(m=this.isActive(!0),h=i[d.id]={isActive:m}),m};if(u&&(a=u.getElement(),!c(u)&&a&&r.container!==a&&r.container.contains(a)))return r.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const f=c(this),v=this.getElement();if(v&&f!==!0){if(v===t&&l&&(a||(a=l.getElement()),a&&!c(l)&&r.container.contains(a)&&a!==r.container)||v!==t&&v.contains(t))return r.skippedFocusable=!0,NodeFilter.FILTER_REJECT;const d=i[this.id];let h;if("first"in d?h=d.first:h=d.first=this.getFirst(!0),h&&r.acceptCondition(h))return r.rejectElementsFrom=v,r.skippedFocusable=!0,h!==r.from?(r.found=!0,r.foundElement=h,NodeFilter.FILTER_ACCEPT):NodeFilter.FILTER_REJECT}}}class nv{constructor(t,r){this._current={},this._grouppers={},this._init=()=>{const o=this._win();this._tabster.focusedElement.subscribeFirst(this._onFocus),o.document.addEventListener("mousedown",this._onMouseDown,!0),o.addEventListener("keydown",this._onKeyDown,!0)},this._onGroupperDispose=o=>{delete this._grouppers[o.id]},this._onFocus=o=>{o&&this._updateCurrent(o,!0,!0)},this._onMouseDown=o=>{o.target&&this._updateCurrent(o.target,!0)},this._onKeyDown=o=>{if(o.keyCode!==_r.Enter&&o.keyCode!==_r.Esc||o.ctrlKey||o.altKey||o.shiftKey||o.metaKey)return;const i=this._tabster.focusedElement.getFocusedElement();i&&this.handleKeyPress(i,o)},this._tabster=t,this._win=r,t.queueInit(this._init)}dispose(){const t=this._win();this._current={},this._updateTimer&&(t.clearTimeout(this._updateTimer),delete this._updateTimer),this._tabster.focusedElement.unsubscribe(this._onFocus),t.document.removeEventListener("mousedown",this._onMouseDown,!0),t.removeEventListener("keydown",this._onKeyDown,!0),Object.keys(this._grouppers).forEach(r=>{this._grouppers[r]&&(this._grouppers[r].dispose(),delete this._grouppers[r])})}createGroupper(t,r,o){process.env.NODE_ENV;const i=new ov(this._tabster,t,this._onGroupperDispose,r,o);this._grouppers[i.id]=i;const n=this._tabster.focusedElement.getFocusedElement();return n&&t.contains(n)&&!this._updateTimer&&(this._updateTimer=this._win().setTimeout(()=>{delete this._updateTimer,n===this._tabster.focusedElement.getFocusedElement()&&this._updateCurrent(n,!0,!0)},0)),i}forgetCurrentGrouppers(){this._current={}}_updateCurrent(t,r,o){var i;this._updateTimer&&(this._win().clearTimeout(this._updateTimer),delete this._updateTimer);const n={};let s=!0;for(let l=t;l;l=l.parentElement){const u=(i=lt(this._tabster,l))===null||i===void 0?void 0:i.groupper;if(u){if(n[u.id]=!0,s&&o&&l!==t&&(s=!1),r||!s){this._current[u.id]=u;const a=u.isActive()||t!==l&&(!u.getProps().delegated||u.getFirst(!1)!==t);u.makeTabbable(a)}s=!1}}for(const l of Object.keys(this._current)){const u=this._current[l];u.id in n||(u.makeTabbable(!1),u.setFirst(void 0),delete this._current[l])}}handleKeyPress(t,r,o){var i;const n=this._tabster,s=Ie.getTabsterContext(n,t),l=s==null?void 0:s.modalizerInGroupper;let u=(s==null?void 0:s.groupper)||l;if(s&&u){if(s.ignoreKeydown(r))return;let a;const c=u.getElement();if(r.keyCode===_r.Enter)c&&(t===c||u.getProps().delegated&&t===u.getFirst(!1))&&(a=n.focusable.findNext({container:c,currentElement:t,useActiveModalizer:!0}));else if(r.keyCode===_r.Esc){if(c&&c.contains(t))if(t!==c||o)a=u.getFirst(!0);else{const f=c.parentElement,v=f?Ie.getTabsterContext(n,f):void 0;u=v==null?void 0:v.groupper,a=u==null?void 0:u.getFirst(!0)}u&&(u.makeTabbable(!1),l&&((i=n.modalizer)===null||i===void 0||i.setActive(void 0)))}a&&(r.preventDefault(),r.stopImmediatePropagation(),a.focus())}}}function vs(e,t){if(process.env.NODE_ENV==="development"){const r=e.get();r&&(t?r.style.removeProperty("--tabster-groupper"):r.style.setProperty("--tabster-groupper","unlimited"))}}/*!
|
|
108
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
109
|
+
* Licensed under the MIT License.
|
|
110
|
+
*/class iv extends hs{constructor(t){super(),this._onChange=r=>{this.setVal(r,void 0)},this._keyborg=an(t()),this._keyborg.subscribe(this._onChange)}dispose(){super.dispose(),this._keyborg&&(this._keyborg.unsubscribe(this._onChange),sn(this._keyborg),delete this._keyborg)}setNavigatingWithKeyboard(t){var r;(r=this._keyborg)===null||r===void 0||r.setVal(t)}isNavigatingWithKeyboard(){var t;return!!(!((t=this._keyborg)===null||t===void 0)&&t.isNavigatingWithKeyboard())}}/*!
|
|
111
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
112
|
+
* Licensed under the MIT License.
|
|
113
|
+
*/function av(e,t,r,o){if(typeof MutationObserver>"u")return()=>{};const i=t.getWindow;let n;const s=c=>{var f,v,d,h,m;for(const k of c){const b=k.target,y=k.removedNodes,P=k.addedNodes;if(k.type==="attributes")k.attributeName===st&&r(t,b);else{for(let x=0;x<y.length;x++)l(y[x],!0),(v=(f=t._dummyObserver).domChanged)===null||v===void 0||v.call(f,b);for(let x=0;x<P.length;x++)l(P[x]),(h=(d=t._dummyObserver).domChanged)===null||h===void 0||h.call(d,b)}}(m=t.modalizer)===null||m===void 0||m.hiddenUpdate()};function l(c,f){n||(n=At(i).elementByUId),u(c,f);const v=ns(e,c,d=>u(d,f));if(v)for(;v.nextNode(););}function u(c,f){var v;if(!c.getAttribute)return NodeFilter.FILTER_SKIP;const d=c.__tabsterElementUID;return d&&n&&(f?delete n[d]:(v=n[d])!==null&&v!==void 0||(n[d]=new ct(i,c))),(lt(t,c)||c.hasAttribute(st))&&r(t,c,f),NodeFilter.FILTER_SKIP}const a=new MutationObserver(s);return o&&l(i().document.body),a.observe(e,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[st]}),()=>{a.disconnect()}}/*!
|
|
114
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
115
|
+
* Licensed under the MIT License.
|
|
116
|
+
*/class sv{constructor(t){this._isUncontrolledCompletely=t}isUncontrolledCompletely(t,r){var o;const i=(o=this._isUncontrolledCompletely)===null||o===void 0?void 0:o.call(this,t,r);return i===void 0?r:i}}/*!
|
|
117
|
+
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
118
|
+
* Licensed under the MIT License.
|
|
119
|
+
*/class lv{constructor(t){this.keyboardNavigation=t.keyboardNavigation,this.focusedElement=t.focusedElement,this.focusable=t.focusable,this.root=t.root,this.uncontrolled=t.uncontrolled,this.core=t}}class cv{constructor(t,r){var o,i;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=Ih(t),this._win=t;const n=this.getWindow;this.keyboardNavigation=new iv(n),this.focusedElement=new Be(this,n),this.focusable=new ev(this),this.root=new Ie(this,r==null?void 0:r.autoRoot),this.uncontrolled=new sv((r==null?void 0:r.checkUncontrolledCompletely)||(r==null?void 0:r.checkUncontrolledTrappingFocus)),this.controlTab=(o=r==null?void 0:r.controlTab)!==null&&o!==void 0?o:!0,this.rootDummyInputs=!!(r!=null&&r.rootDummyInputs),this._dummyObserver=new Xh(n),this.getParent=(i=r==null?void 0:r.getParent)!==null&&i!==void 0?i:s=>s.parentElement,this.internal={stopObserver:()=>{this._unobserve&&(this._unobserve(),delete this._unobserve)},resumeObserver:s=>{if(!this._unobserve){const l=n().document;this._unobserve=av(l,this,es,s)}}},os(n),this.queueInit(()=>{this.internal.resumeObserver(!0)})}_mergeProps(t){var r;t&&(this.getParent=(r=t.getParent)!==null&&r!==void 0?r:this.getParent)}createTabster(t,r){const o=new lv(this);return t||this._wrappers.add(o),this._mergeProps(r),o}disposeTabster(t,r){r?this._wrappers.clear():this._wrappers.delete(t),this._wrappers.size===0&&this.dispose()}dispose(){var t,r,o,i,n,s,l,u;this.internal.stopObserver();const a=this._win;a==null||a.clearTimeout(this._initTimer),delete this._initTimer,this._initQueue=[],this._forgetMemorizedElements=[],a&&this._forgetMemorizedTimer&&(a.clearTimeout(this._forgetMemorizedTimer),delete this._forgetMemorizedTimer),(t=this.outline)===null||t===void 0||t.dispose(),(r=this.crossOrigin)===null||r===void 0||r.dispose(),(o=this.deloser)===null||o===void 0||o.dispose(),(i=this.groupper)===null||i===void 0||i.dispose(),(n=this.mover)===null||n===void 0||n.dispose(),(s=this.modalizer)===null||s===void 0||s.dispose(),(l=this.observedElement)===null||l===void 0||l.dispose(),(u=this.restorer)===null||u===void 0||u.dispose(),this.keyboardNavigation.dispose(),this.focusable.dispose(),this.focusedElement.dispose(),this.root.dispose(),this._dummyObserver.dispose(),Lh(this.getWindow),as(this.getWindow),this._storage=new WeakMap,this._wrappers.clear(),a&&(Oh(a),delete a.__tabsterInstance,delete this._win)}storageEntry(t,r){const o=this._storage;let i=o.get(t);return i?r===!1&&Object.keys(i).length===0&&o.delete(t):r===!0&&(i={},o.set(t,i)),i}forceCleanup(){this._win&&(this._forgetMemorizedElements.push(this._win.document.body),!this._forgetMemorizedTimer&&(this._forgetMemorizedTimer=this._win.setTimeout(()=>{delete this._forgetMemorizedTimer;for(let t=this._forgetMemorizedElements.shift();t;t=this._forgetMemorizedElements.shift())as(this.getWindow,t),Be.forgetMemorized(this.focusedElement,t)},0),rs(this.getWindow,!0)))}queueInit(t){var r;this._win&&(this._initQueue.push(t),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 t=this._initQueue;this._initQueue=[],t.forEach(r=>r())}}function uv(e,t){let r=hv(e);return r?r.createTabster(!1,t):(r=new cv(e,t),e.__tabsterInstance=r,r.createTabster())}function fv(e){const t=e.core;return t.groupper||(t.groupper=new nv(t,t.getWindow)),t.groupper}function dv(e,t){e.core.disposeTabster(e,t)}function hv(e){return e.__tabsterInstance}const vn=()=>{const{targetDocument:e}=mt(),t=(e==null?void 0:e.defaultView)||void 0,r=p.useMemo(()=>t?uv(t,{autoRoot:{},controlTab:!1,getParent:Pd,checkUncontrolledTrappingFocus:o=>{var i;return!!(!((i=o.firstElementChild)===null||i===void 0)&&i.hasAttribute("data-is-focus-trap-zone-bumper"))}}):null,[t]);return Et(()=>()=>{r&&dv(r)},[r]),r},vv=e=>(vn(),us(e)),gv=e=>{const t=vn();return t&&fv(t),vv({groupper:{tabbability:pv(e==null?void 0:e.tabBehavior)},focusable:{ignoreKeydown:e==null?void 0:e.ignoreDefaultKeydown}})},pv=e=>{switch(e){case"unlimited":return un.GroupperTabbabilities.Unlimited;case"limited":return un.GroupperTabbabilities.Limited;case"limited-trap-focus":return un.GroupperTabbabilities.LimitedTrapFocus;default:return}},mv=()=>{const e=vn(),{targetDocument:t}=mt(),r=p.useCallback((l,u)=>(e==null?void 0:e.focusable.findAll({container:l,acceptCondition:u}))||[],[e]),o=p.useCallback(l=>e==null?void 0:e.focusable.findFirst({container:l}),[e]),i=p.useCallback(l=>e==null?void 0:e.focusable.findLast({container:l}),[e]),n=p.useCallback((l,u={})=>{if(!e||!t)return null;const{container:a=t.body}=u;return e.focusable.findNext({currentElement:l,container:a})},[e,t]),s=p.useCallback((l,u={})=>{if(!e||!t)return null;const{container:a=t.body}=u;return e.focusable.findPrev({currentElement:l,container:a})},[e,t]);return{findAllFocusable:r,findFirstFocusable:o,findLastFocusable:i,findNextFocusable:n,findPrevFocusable:s}},gs="data-fui-focus-visible",ps="data-fui-focus-within";function bv(e,t){if(ms(e))return()=>{};const r={current:void 0},o=an(t);function i(u){o.isNavigatingWithKeyboard()&&Rt(u)&&(r.current=u,u.setAttribute(gs,""))}function n(){r.current&&(r.current.removeAttribute(gs),r.current=void 0)}o.subscribe(u=>{u||n()});const s=u=>{n(),i(u.target)},l=u=>{(!u.relatedTarget||Rt(u.relatedTarget)&&!e.contains(u.relatedTarget))&&n()};return e.addEventListener(at,s),e.addEventListener("focusout",l),e.focusVisible=!0,i(t.document.activeElement),()=>{n(),e.removeEventListener(at,s),e.removeEventListener("focusout",l),delete e.focusVisible,sn(o)}}function ms(e){return e?e.focusVisible?!0:ms(e==null?void 0:e.parentElement):!1}function yv(e={}){const t=mt(),r=p.useRef(null);var o;const i=(o=e.targetDocument)!==null&&o!==void 0?o:t.targetDocument;return p.useEffect(()=>{if(i!=null&&i.defaultView&&r.current)return bv(r.current,i.defaultView)},[r,i]),r}function wv(e,t){const r=an(t);r.subscribe(n=>{n||bs(e)});const o=n=>{r.isNavigatingWithKeyboard()&&ys(n.target)&&kv(e)},i=n=>{(!n.relatedTarget||ys(n.relatedTarget)&&!e.contains(n.relatedTarget))&&bs(e)};return e.addEventListener(at,o),e.addEventListener("focusout",i),()=>{e.removeEventListener(at,o),e.removeEventListener("focusout",i),sn(r)}}function kv(e){e.setAttribute(ps,"")}function bs(e){e.removeAttribute(ps)}function ys(e){return e?!!(e&&typeof e=="object"&&"classList"in e&&"contains"in e):!1}function xv(){const{targetDocument:e}=mt(),t=p.useRef(null);return p.useEffect(()=>{if(e!=null&&e.defaultView&&t.current)return wv(t.current,e.defaultView)},[t,e]),t}const gn={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)"};var pn={exports:{}},mn={};/** @license React v0.20.2
|
|
120
|
+
* scheduler.development.js
|
|
121
|
+
*
|
|
122
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
123
|
+
*
|
|
124
|
+
* This source code is licensed under the MIT license found in the
|
|
125
|
+
* LICENSE file in the root directory of this source tree.
|
|
126
|
+
*/var ws;function Bv(){return ws||(ws=1,function(e){process.env.NODE_ENV!=="production"&&function(){var t=!1,r=!1,o,i,n,s,l=typeof performance=="object"&&typeof performance.now=="function";if(l){var u=performance;e.unstable_now=function(){return u.now()}}else{var a=Date,c=a.now();e.unstable_now=function(){return a.now()-c}}if(typeof window>"u"||typeof MessageChannel!="function"){var f=null,v=null,d=function(){if(f!==null)try{var E=e.unstable_now(),D=!0;f(D,E),f=null}catch(K){throw setTimeout(d,0),K}};o=function(E){f!==null?setTimeout(o,0,E):(f=E,setTimeout(d,0))},i=function(E,D){v=setTimeout(E,D)},n=function(){clearTimeout(v)},e.unstable_shouldYield=function(){return!1},s=e.unstable_forceFrameRate=function(){}}else{var h=window.setTimeout,m=window.clearTimeout;if(typeof console<"u"){var k=window.requestAnimationFrame,b=window.cancelAnimationFrame;typeof k!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof b!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var y=!1,P=null,x=-1,S=5,w=0;e.unstable_shouldYield=function(){return e.unstable_now()>=w},s=function(){},e.unstable_forceFrameRate=function(E){if(E<0||E>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}E>0?S=Math.floor(1e3/E):S=5};var _=function(){if(P!==null){var E=e.unstable_now();w=E+S;var D=!0;try{var K=P(D,E);K?R.postMessage(null):(y=!1,P=null)}catch(fe){throw R.postMessage(null),fe}}else y=!1},F=new MessageChannel,R=F.port2;F.port1.onmessage=_,o=function(E){P=E,y||(y=!0,R.postMessage(null))},i=function(E,D){x=h(function(){E(e.unstable_now())},D)},n=function(){m(x),x=-1}}function V(E,D){var K=E.length;E.push(D),B(E,D,K)}function G(E){var D=E[0];return D===void 0?null:D}function O(E){var D=E[0];if(D!==void 0){var K=E.pop();return K!==D&&(E[0]=K,L(E,K,0)),D}else return null}function B(E,D,K){for(var fe=K;;){var Pe=fe-1>>>1,ze=E[Pe];if(ze!==void 0&&Y(ze,D)>0)E[Pe]=D,E[fe]=ze,fe=Pe;else return}}function L(E,D,K){for(var fe=K,Pe=E.length;fe<Pe;){var ze=(fe+1)*2-1,Ee=E[ze],it=ze+1,Te=E[it];if(Ee!==void 0&&Y(Ee,D)<0)Te!==void 0&&Y(Te,Ee)<0?(E[fe]=Te,E[it]=D,fe=it):(E[fe]=Ee,E[ze]=D,fe=ze);else if(Te!==void 0&&Y(Te,D)<0)E[fe]=Te,E[it]=D,fe=it;else return}}function Y(E,D){var K=E.sortIndex-D.sortIndex;return K!==0?K:E.id-D.id}var te=1,ne=2,ae=3,de=4,Le=5;function N(E,D){}var I=1073741823,q=-1,re=250,he=5e3,Se=1e4,Ce=I,ve=[],ge=[],Q=1,T=null,ie=ae,_e=!1,Ne=!1,He=!1;function Xe(E){for(var D=G(ge);D!==null;){if(D.callback===null)O(ge);else if(D.startTime<=E)O(ge),D.sortIndex=D.expirationTime,V(ve,D);else return;D=G(ge)}}function Bt(E){if(He=!1,Xe(E),!Ne)if(G(ve)!==null)Ne=!0,o(ir);else{var D=G(ge);D!==null&&i(Bt,D.startTime-E)}}function ir(E,D){Ne=!1,He&&(He=!1,n()),_e=!0;var K=ie;try{var fe;if(!r)return ar(E,D)}finally{T=null,ie=K,_e=!1}}function ar(E,D){var K=D;for(Xe(K),T=G(ve);T!==null&&!t&&!(T.expirationTime>K&&(!E||e.unstable_shouldYield()));){var fe=T.callback;if(typeof fe=="function"){T.callback=null,ie=T.priorityLevel;var Pe=T.expirationTime<=K,ze=fe(Pe);K=e.unstable_now(),typeof ze=="function"?T.callback=ze:T===G(ve)&&O(ve),Xe(K)}else O(ve);T=G(ve)}if(T!==null)return!0;var Ee=G(ge);return Ee!==null&&i(Bt,Ee.startTime-K),!1}function Wn(E,D){switch(E){case te:case ne:case ae:case de:case Le:break;default:E=ae}var K=ie;ie=E;try{return D()}finally{ie=K}}function Un(E){var D;switch(ie){case te:case ne:case ae:D=ae;break;default:D=ie;break}var K=ie;ie=D;try{return E()}finally{ie=K}}function Rr(E){var D=ie;return function(){var K=ie;ie=D;try{return E.apply(this,arguments)}finally{ie=K}}}function Gn(E,D,K){var fe=e.unstable_now(),Pe;if(typeof K=="object"&&K!==null){var ze=K.delay;typeof ze=="number"&&ze>0?Pe=fe+ze:Pe=fe}else Pe=fe;var Ee;switch(E){case te:Ee=q;break;case ne:Ee=re;break;case Le:Ee=Ce;break;case de:Ee=Se;break;case ae:default:Ee=he;break}var it=Pe+Ee,Te={id:Q++,callback:D,priorityLevel:E,startTime:Pe,expirationTime:it,sortIndex:-1};return Pe>fe?(Te.sortIndex=Pe,V(ge,Te),G(ve)===null&&Te===G(ge)&&(He?n():He=!0,i(Bt,Pe-fe))):(Te.sortIndex=it,V(ve,Te),!Ne&&!_e&&(Ne=!0,o(ir))),Te}function Xn(){}function yo(){!Ne&&!_e&&(Ne=!0,o(ir))}function wo(){return G(ve)}function Mt(E){E.callback=null}function Kn(){return ie}var ko=s,xo=null;e.unstable_IdlePriority=Le,e.unstable_ImmediatePriority=te,e.unstable_LowPriority=de,e.unstable_NormalPriority=ae,e.unstable_Profiling=xo,e.unstable_UserBlockingPriority=ne,e.unstable_cancelCallback=Mt,e.unstable_continueExecution=yo,e.unstable_getCurrentPriorityLevel=Kn,e.unstable_getFirstCallbackNode=wo,e.unstable_next=Un,e.unstable_pauseExecution=Xn,e.unstable_requestPaint=ko,e.unstable_runWithPriority=Wn,e.unstable_scheduleCallback=Gn,e.unstable_wrapCallback=Rr}()}(mn)),mn}var bn={};/** @license React v0.20.2
|
|
127
|
+
* scheduler.production.min.js
|
|
128
|
+
*
|
|
129
|
+
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
130
|
+
*
|
|
131
|
+
* This source code is licensed under the MIT license found in the
|
|
132
|
+
* LICENSE file in the root directory of this source tree.
|
|
133
|
+
*/var ks;function _v(){return ks||(ks=1,function(e){var t,r,o,i;if(typeof performance=="object"&&typeof performance.now=="function"){var n=performance;e.unstable_now=function(){return n.now()}}else{var s=Date,l=s.now();e.unstable_now=function(){return s.now()-l}}if(typeof window>"u"||typeof MessageChannel!="function"){var u=null,a=null,c=function(){if(u!==null)try{var N=e.unstable_now();u(!0,N),u=null}catch(I){throw setTimeout(c,0),I}};t=function(N){u!==null?setTimeout(t,0,N):(u=N,setTimeout(c,0))},r=function(N,I){a=setTimeout(N,I)},o=function(){clearTimeout(a)},e.unstable_shouldYield=function(){return!1},i=e.unstable_forceFrameRate=function(){}}else{var f=window.setTimeout,v=window.clearTimeout;if(typeof console<"u"){var d=window.cancelAnimationFrame;typeof window.requestAnimationFrame!="function"&&console.error("This browser doesn't support requestAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),typeof d!="function"&&console.error("This browser doesn't support cancelAnimationFrame. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills")}var h=!1,m=null,k=-1,b=5,y=0;e.unstable_shouldYield=function(){return e.unstable_now()>=y},i=function(){},e.unstable_forceFrameRate=function(N){0>N||125<N?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):b=0<N?Math.floor(1e3/N):5};var P=new MessageChannel,x=P.port2;P.port1.onmessage=function(){if(m!==null){var N=e.unstable_now();y=N+b;try{m(!0,N)?x.postMessage(null):(h=!1,m=null)}catch(I){throw x.postMessage(null),I}}else h=!1},t=function(N){m=N,h||(h=!0,x.postMessage(null))},r=function(N,I){k=f(function(){N(e.unstable_now())},I)},o=function(){v(k),k=-1}}function S(N,I){var q=N.length;N.push(I);e:for(;;){var re=q-1>>>1,he=N[re];if(he!==void 0&&0<F(he,I))N[re]=I,N[q]=he,q=re;else break e}}function w(N){return N=N[0],N===void 0?null:N}function _(N){var I=N[0];if(I!==void 0){var q=N.pop();if(q!==I){N[0]=q;e:for(var re=0,he=N.length;re<he;){var Se=2*(re+1)-1,Ce=N[Se],ve=Se+1,ge=N[ve];if(Ce!==void 0&&0>F(Ce,q))ge!==void 0&&0>F(ge,Ce)?(N[re]=ge,N[ve]=q,re=ve):(N[re]=Ce,N[Se]=q,re=Se);else if(ge!==void 0&&0>F(ge,q))N[re]=ge,N[ve]=q,re=ve;else break e}}return I}return null}function F(N,I){var q=N.sortIndex-I.sortIndex;return q!==0?q:N.id-I.id}var R=[],V=[],G=1,O=null,B=3,L=!1,Y=!1,te=!1;function ne(N){for(var I=w(V);I!==null;){if(I.callback===null)_(V);else if(I.startTime<=N)_(V),I.sortIndex=I.expirationTime,S(R,I);else break;I=w(V)}}function ae(N){if(te=!1,ne(N),!Y)if(w(R)!==null)Y=!0,t(de);else{var I=w(V);I!==null&&r(ae,I.startTime-N)}}function de(N,I){Y=!1,te&&(te=!1,o()),L=!0;var q=B;try{for(ne(I),O=w(R);O!==null&&(!(O.expirationTime>I)||N&&!e.unstable_shouldYield());){var re=O.callback;if(typeof re=="function"){O.callback=null,B=O.priorityLevel;var he=re(O.expirationTime<=I);I=e.unstable_now(),typeof he=="function"?O.callback=he:O===w(R)&&_(R),ne(I)}else _(R);O=w(R)}if(O!==null)var Se=!0;else{var Ce=w(V);Ce!==null&&r(ae,Ce.startTime-I),Se=!1}return Se}finally{O=null,B=q,L=!1}}var Le=i;e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(N){N.callback=null},e.unstable_continueExecution=function(){Y||L||(Y=!0,t(de))},e.unstable_getCurrentPriorityLevel=function(){return B},e.unstable_getFirstCallbackNode=function(){return w(R)},e.unstable_next=function(N){switch(B){case 1:case 2:case 3:var I=3;break;default:I=B}var q=B;B=I;try{return N()}finally{B=q}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=Le,e.unstable_runWithPriority=function(N,I){switch(N){case 1:case 2:case 3:case 4:case 5:break;default:N=3}var q=B;B=N;try{return I()}finally{B=q}},e.unstable_scheduleCallback=function(N,I,q){var re=e.unstable_now();switch(typeof q=="object"&&q!==null?(q=q.delay,q=typeof q=="number"&&0<q?re+q:re):q=re,N){case 1:var he=-1;break;case 2:he=250;break;case 5:he=1073741823;break;case 4:he=1e4;break;default:he=5e3}return he=q+he,N={id:G++,callback:I,priorityLevel:N,startTime:q,expirationTime:he,sortIndex:-1},q>re?(N.sortIndex=q,S(V,N),w(R)===null&&N===w(V)&&(te?o():te=!0,r(ae,q-re))):(N.sortIndex=he,S(R,N),Y||L||(Y=!0,t(de))),N},e.unstable_wrapCallback=function(N){var I=B;return function(){var q=B;B=I;try{return N.apply(this,arguments)}finally{B=q}}}}(bn)),bn}process.env.NODE_ENV==="production"?pn.exports=_v():pn.exports=Bv();var xs=pn.exports;const Pv=e=>{const t=r=>{const o=p.useRef(r.value),i=p.useRef(0),n=p.useRef();return n.current||(n.current={value:o,version:i,listeners:[]}),Et(()=>{o.current=r.value,i.current+=1,xs.unstable_runWithPriority(xs.unstable_NormalPriority,()=>{n.current.listeners.forEach(s=>{s([i.current,r.value])})})},[r.value]),p.createElement(e,{value:n.current},r.children)};return process.env.NODE_ENV!=="production"&&(t.displayName="ContextSelector.Provider"),t},Bs=e=>{const t=p.createContext({value:{current:e},version:{current:-1},listeners:[]});return t.Provider=Pv(t.Provider),delete t.Consumer,t},Me=(e,t)=>{const r=p.useContext(e),{value:{current:o},version:{current:i},listeners:n}=r,s=t(o),[l,u]=p.useReducer((a,c)=>{if(!c)return[o,s];if(c[0]<=i)return io(a[1],s)?a:[o,s];try{if(io(a[0],c[1]))return a;const f=t(c[1]);return io(a[1],f)?a:[c[1],f]}catch{}return[a[0],a[1]]},[o,s]);return io(l[1],s)||u(void 0),Et(()=>(n.push(u),()=>{const a=n.indexOf(u);n.splice(a,1)}),[n]),l[1]};function Sv(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}const io=typeof Object.is=="function"?Object.is:Sv;function _s(e){const t=p.useContext(e);return t.version?t.version.current!==-1:!1}const Yt="Enter",yt=" ",Cv="Tab",Ps="ArrowDown",zv="ArrowLeft",Tv="ArrowRight",yn="ArrowUp",Nv="End",Ev="Home",jv="PageDown",Rv="PageUp",Fv="Escape";function qv(e,t){const{disabled:r,disabledFocusable:o=!1,["aria-disabled"]:i,onClick:n,onKeyDown:s,onKeyUp:l,...u}=t??{},a=typeof i=="string"?i==="true":i,c=r||o||a,f=qe(h=>{c?(h.preventDefault(),h.stopPropagation()):n==null||n(h)}),v=qe(h=>{if(s==null||s(h),h.isDefaultPrevented())return;const m=h.key;if(c&&(m===Yt||m===yt)){h.preventDefault(),h.stopPropagation();return}if(m===yt){h.preventDefault();return}else m===Yt&&(h.preventDefault(),h.currentTarget.click())}),d=qe(h=>{if(l==null||l(h),h.isDefaultPrevented())return;const m=h.key;if(c&&(m===Yt||m===yt)){h.preventDefault(),h.stopPropagation();return}m===yt&&(h.preventDefault(),h.currentTarget.click())});if(e==="button"||e===void 0)return{...u,disabled:r&&!o,"aria-disabled":o?!0:a,onClick:o?void 0:f,onKeyUp:o?void 0:l,onKeyDown:o?void 0:s};{const h={role:"button",tabIndex:r&&!o?void 0:0,...u,onClick:f,onKeyUp:d,onKeyDown:v,"aria-disabled":r||o||a};return e==="a"&&c&&(h.href=void 0),h}}const Av=(e,t)=>{const r=Mf(e,t);var o;const i=qv((o=r==null?void 0:r.as)!==null&&o!==void 0?o:"button",r);return r&&i},Dv=e=>(ke(e),Ae(e.root,{children:[e.initials&&$(e.initials,{}),e.icon&&$(e.icon,{}),e.image&&$(e.image,{}),e.badge&&$(e.badge,{}),e.activeAriaLabelElement]})),Ov=/[\(\[\{][^\)\]\}]*[\)\]\}]/g,Iv=/[\0-\u001F\!-/:-@\[-`\{-\u00BF\u0250-\u036F\uD800-\uFFFF]/g,Mv=/^\d+[\d\s]*(:?ext|x|)\s*\d+$/i,Lv=/\s+/g,Hv=/[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\u1100-\u11FF\u3130-\u318F\uA960-\uA97F\uAC00-\uD7AF\uD7B0-\uD7FF\u3040-\u309F\u30A0-\u30FF\u3400-\u4DBF\u4E00-\u9FFF\uF900-\uFAFF]|[\uD840-\uD869][\uDC00-\uDED6]/;function Vv(e,t,r){let o="";const i=e.split(" ");return i.length!==0&&(o+=i[0].charAt(0).toUpperCase()),r||(i.length===2?o+=i[1].charAt(0).toUpperCase():i.length===3&&(o+=i[2].charAt(0).toUpperCase())),t&&o.length>1?o.charAt(1)+o.charAt(0):o}function $v(e){return e=e.replace(Ov,""),e=e.replace(Iv,""),e=e.replace(Lv," "),e=e.trim(),e}function Wv(e,t,r){return!e||(e=$v(e),Hv.test(e)||!(r!=null&&r.allowPhoneInitials)&&Mv.test(e))?"":Vv(e,t,r==null?void 0:r.firstInitialOnly)}const Uv=(e,t)=>{const{shape:r="circular",size:o="medium",iconPosition:i="before",appearance:n="filled",color:s="brand"}=e;return{shape:r,size:o,iconPosition:i,appearance:n,color:s,components:{root:"div",icon:"span"},root:me(Fe("div",{ref:t,...e}),{elementType:"div"}),icon:J(e.icon,{elementType:"span"})}},Gv=e=>(ke(e),Ae(e.root,{children:[e.iconPosition==="before"&&e.icon&&$(e.icon,{}),e.root.children,e.iconPosition==="after"&&e.icon&&$(e.icon,{})]})),Xv={tiny:ja,"extra-small":ja,small:Jd,medium:eh,large:Ra,"extra-large":Ra},Kv={tiny:Ta,"extra-small":Ta,small:Zd,medium:Qd,large:Ea,"extra-large":Ea},Zv={tiny:za,"extra-small":za,small:Kd,medium:Yd,large:Na,"extra-large":Na},Yv={tiny:Fa,"extra-small":Fa,small:th,medium:rh,large:qa,"extra-large":qa},Qv={tiny:Aa,"extra-small":Aa,small:oh,medium:nh,large:Da,"extra-large":Da},Jv={tiny:Oa,"extra-small":Oa,small:ih,medium:sh,large:Ma,"extra-large":Ma},eg={tiny:Ia,"extra-small":Ia,small:ah,medium:lh,large:La,"extra-large":La},wn={tiny:$a,"extra-small":$a,small:fh,medium:dh,large:Wa,"extra-large":Wa},tg={tiny:Ha,"extra-small":Ha,small:ch,medium:uh,large:Va,"extra-large":Va},Ss={tiny:Ua,"extra-small":Ua,small:hh,medium:vh,large:Ga,"extra-large":Ga},rg=(e,t,r)=>{switch(e){case"available":return t?Kv[r]:Zv[r];case"away":return t?wn[r]:Xv[r];case"blocked":return Yv[r];case"busy":return t?Ss[r]:Qv[r];case"do-not-disturb":return t?eg[r]:Jv[r];case"offline":return t?wn[r]:tg[r];case"out-of-office":return wn[r];case"unknown":return Ss[r]}},Cs={busy:"busy","out-of-office":"out of office",away:"away",available:"available",offline:"offline","do-not-disturb":"do not disturb",unknown:"unknown",blocked:"blocked"},og=(e,t)=>{const{size:r="medium",status:o="available",outOfOffice:i=!1}=e,n=Cs[o],s=e.outOfOffice&&e.status!=="out-of-office"?` ${Cs["out-of-office"]}`:"",l=rg(o,i,r);return{...Uv({"aria-label":n+s,role:"img",...e,size:r,icon:J(e.icon,{defaultProps:{children:l?p.createElement(l,null):null},renderByDefault:!0,elementType:"span"})},t),status:o,outOfOffice:i}},zs={root:"fui-PresenceBadge",icon:"fui-PresenceBadge__icon"},ng=e=>e==="busy"||e==="do-not-disturb"||e==="blocked",ig=Re("r832ydo",null,[".r832ydo{display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;border-radius:var(--borderRadiusCircular);background-color:var(--colorNeutralBackground1);padding:1px;background-clip:content-box;}"]),ag=Re("r11ag4qr",null,[".r11ag4qr{display:flex;margin:-1px;}"]),sg=U({statusBusy:{sj55zd:"fvi85wt"},statusAway:{sj55zd:"f14k8a89"},statusAvailable:{sj55zd:"fqa5hgp"},statusOffline:{sj55zd:"f11d4kpn"},statusOutOfOffice:{sj55zd:"fdce8r3"},statusUnknown:{sj55zd:"f11d4kpn"},outOfOffice:{sj55zd:"fr0bkrk"},outOfOfficeAvailable:{sj55zd:"fqa5hgp"},outOfOfficeBusy:{sj55zd:"fvi85wt"},outOfOfficeUnknown:{sj55zd:"f11d4kpn"},tiny:{Bubjx69:"f9ikmtg",a9b677:"f16dn6v3",B2eet1l:"f1w2irj7",B5pe6w7:"fab5kbq",p4uzdd:"f1ms1d91"},large:{Bubjx69:"f9ikmtg",a9b677:"f64fuq3",B5pe6w7:"f1vfi1yj",p4uzdd:"f15s34gz"},extraLarge:{Bubjx69:"f9ikmtg",a9b677:"f1w9dchk",B5pe6w7:"f14efy9b",p4uzdd:"fhipgdu"}},{d:[".fvi85wt{color:var(--colorPaletteRedBackground3);}",".f14k8a89{color:var(--colorPaletteMarigoldBackground3);}",".fqa5hgp{color:var(--colorPaletteLightGreenForeground3);}",".f11d4kpn{color:var(--colorNeutralForeground3);}",".fdce8r3{color:var(--colorPaletteBerryForeground3);}",".fr0bkrk{color:var(--colorNeutralBackground1);}",".f9ikmtg{aspect-ratio:1;}",".f16dn6v3{width:6px;}",".f1w2irj7{background-clip:unset;}",".fab5kbq svg{width:6px!important;}",".f1ms1d91 svg{height:6px!important;}",".f64fuq3{width:20px;}",".f1vfi1yj svg{width:20px!important;}",".f15s34gz svg{height:20px!important;}",".f1w9dchk{width:28px;}",".f14efy9b svg{width:28px!important;}",".fhipgdu svg{height:28px!important;}"]}),lg=e=>{const t=ig(),r=ag(),o=sg(),i=ng(e.status);return e.root.className=A(zs.root,t,i&&o.statusBusy,e.status==="away"&&o.statusAway,e.status==="available"&&o.statusAvailable,e.status==="offline"&&o.statusOffline,e.status==="out-of-office"&&o.statusOutOfOffice,e.status==="unknown"&&o.statusUnknown,e.outOfOffice&&o.outOfOffice,e.outOfOffice&&e.status==="available"&&o.outOfOfficeAvailable,e.outOfOffice&&i&&o.outOfOfficeBusy,e.outOfOffice&&(e.status==="out-of-office"||e.status==="away"||e.status==="offline")&&o.statusOutOfOffice,e.outOfOffice&&e.status==="unknown"&&o.outOfOfficeUnknown,e.size==="tiny"&&o.tiny,e.size==="large"&&o.large,e.size==="extra-large"&&o.extraLarge,e.root.className),e.icon&&(e.icon.className=A(zs.icon,r,e.icon.className)),e},Pr=p.forwardRef((e,t)=>{const r=og(e,t);return lg(r),Ye("usePresenceBadgeStyles_unstable")(r),Gv(r)});Pr.displayName="PresenceBadge";const Ts=p.createContext(void 0),cg={};Ts.Provider;const ug=()=>{var e;return(e=p.useContext(Ts))!==null&&e!==void 0?e:cg},fg={active:"active",inactive:"inactive"},dg=(e,t)=>{const{dir:r}=mt(),{shape:o,size:i}=ug(),{name:n,size:s=i??32,shape:l=o??"circular",active:u="unset",activeAppearance:a="ring",idForColor:c}=e;let{color:f="neutral"}=e;if(f==="colorful"){var v;f=Ns[vg((v=c??n)!==null&&v!==void 0?v:"")%Ns.length]}const d=jt("avatar-"),h=me(Fe("span",{role:"img",id:d,...e,ref:t},["name"]),{elementType:"span"}),[m,k]=p.useState(void 0);let b=J(e.image,{defaultProps:{alt:"",role:"presentation","aria-hidden":!0,hidden:m},elementType:"img"});b!=null&&b.src||(b=void 0),b&&(b.onError=xe(b.onError,()=>k(!0)),b.onLoad=xe(b.onLoad,()=>k(void 0)));let y=J(e.initials,{renderByDefault:!0,defaultProps:{children:Wv(n,r==="rtl",{firstInitialOnly:s<=16}),id:d+"__initials"},elementType:"span"});y!=null&&y.children||(y=void 0);let P;!y&&(!b||m)&&(P=J(e.icon,{renderByDefault:!0,defaultProps:{children:p.createElement(Wd,null),"aria-hidden":!0},elementType:"span"}));const x=J(e.badge,{defaultProps:{size:hg(s),id:d+"__badge"},elementType:Pr});let S;if(!h["aria-label"]&&!h["aria-labelledby"]&&(n?(h["aria-label"]=n,x&&(h["aria-labelledby"]=h.id+" "+x.id)):y&&(h["aria-labelledby"]=y.id+(x?" "+x.id:"")),u==="active"||u==="inactive")){const w=fg[u];if(h["aria-labelledby"]){const _=d+"__active";h["aria-labelledby"]+=" "+_,S=p.createElement("span",{hidden:!0,id:_},w)}else h["aria-label"]&&(h["aria-label"]+=" "+w)}return{size:s,shape:l,active:u,activeAppearance:a,activeAriaLabelElement:S,color:f,components:{root:"span",initials:"span",icon:"span",image:"img",badge:Pr},root:h,initials:y,icon:P,image:b,badge:x}},hg=e=>e>=96?"extra-large":e>=64?"large":e>=56?"medium":e>=40?"small":e>=28?"extra-small":"tiny",Ns=["dark-red","cranberry","red","pumpkin","peach","marigold","gold","brass","brown","forest","seafoam","dark-green","light-teal","teal","steel","blue","royal-blue","cornflower","navy","lavender","purple","grape","lilac","pink","magenta","plum","beige","mink","platinum","anchor"],vg=e=>{let t=0;for(let r=e.length-1;r>=0;r--){const o=e.charCodeAt(r),i=r%8;t^=(o<<i)+(o>>8-i)}return t},Sr={root:"fui-Avatar",image:"fui-Avatar__image",initials:"fui-Avatar__initials",icon:"fui-Avatar__icon",badge:"fui-Avatar__badge"},gg=Re("r81b29z","r1aatmv",{r:[".r81b29z{display:inline-block;flex-shrink:0;position:relative;vertical-align:middle;border-radius:var(--borderRadiusCircular);font-family:var(--fontFamilyBase);font-weight:var(--fontWeightSemibold);font-size:var(--fontSizeBase300);width:32px;height:32px;}",".r81b29z::before,.r81b29z::after{position:absolute;top:0;left:0;bottom:0;right:0;z-index:-1;margin:calc(-2 * var(--fui-Avatar-ringWidth, 0px));border-radius:inherit;transition-property:margin,opacity;transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);transition-duration:var(--durationUltraSlow),var(--durationSlower);}",".r81b29z::before{border-style:solid;border-width:var(--fui-Avatar-ringWidth);}",".r1aatmv{display:inline-block;flex-shrink:0;position:relative;vertical-align:middle;border-radius:var(--borderRadiusCircular);font-family:var(--fontFamilyBase);font-weight:var(--fontWeightSemibold);font-size:var(--fontSizeBase300);width:32px;height:32px;}",".r1aatmv::before,.r1aatmv::after{position:absolute;top:0;right:0;bottom:0;left:0;z-index:-1;margin:calc(-2 * var(--fui-Avatar-ringWidth, 0px));border-radius:inherit;transition-property:margin,opacity;transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);transition-duration:var(--durationUltraSlow),var(--durationSlower);}",".r1aatmv::before{border-style:solid;border-width:var(--fui-Avatar-ringWidth);}"],s:["@media screen and (prefers-reduced-motion: reduce){.r81b29z::before,.r81b29z::after{transition-duration:0.01ms;}}","@media screen and (prefers-reduced-motion: reduce){.r1aatmv::before,.r1aatmv::after{transition-duration:0.01ms;}}"]}),pg=Re("r136dc0n","rjly0nl",[".r136dc0n{position:absolute;top:0;left:0;width:100%;height:100%;border-radius:inherit;object-fit:cover;vertical-align:top;}",".rjly0nl{position:absolute;top:0;right:0;width:100%;height:100%;border-radius:inherit;object-fit:cover;vertical-align:top;}"]),mg=Re("rip04v","r31uzil",[".rip04v{position:absolute;box-sizing:border-box;top:0;left:0;width:100%;height:100%;line-height:1;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);display:flex;align-items:center;justify-content:center;vertical-align:center;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:inherit;}",".r31uzil{position:absolute;box-sizing:border-box;top:0;right:0;width:100%;height:100%;line-height:1;border:var(--strokeWidthThin) solid var(--colorTransparentStroke);display:flex;align-items:center;justify-content:center;vertical-align:center;text-align:center;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-radius:inherit;}"]),bg=U({textCaption2Strong:{Be2twd7:"f13mqy1h"},textCaption1Strong:{Be2twd7:"fy9rknc"},textSubtitle2:{Be2twd7:"fod5ikn"},textSubtitle1:{Be2twd7:"f1pp30po"},textTitle3:{Be2twd7:"f1x0m3f5"},squareSmall:{Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"]},squareMedium:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},squareLarge:{Bbmb7ep:["f1ldthgs","frrelxk"],Beyfa6y:["frrelxk","f1ldthgs"],B7oj6ja:["fobrfso","ffisxpw"],Btl43ni:["ffisxpw","fobrfso"]},squareXLarge:{Bbmb7ep:["fnivh3a","fc7yr5o"],Beyfa6y:["fc7yr5o","fnivh3a"],B7oj6ja:["f1el4m67","f8yange"],Btl43ni:["f8yange","f1el4m67"]},activeOrInactive:{Bz10aip:"ftfx35i",Bmy1vo4:"fv0atk9",B3o57yi:"f1iry5bo",Bkqvd7p:"f15n41j8",Hwfdqs:"f1onx1g3"},ring:{Ftih45:"f1wl9k8s"},ringBadgeCutout:{f4a502:"fp2gujx"},ringThick:{of393c:"fq1w1vq"},ringThicker:{of393c:"fzg6ace"},ringThickest:{of393c:"f1nu8p71"},shadow:{Bsft5z2:"f13zj6fq"},shadow4:{Be6vj1x:"fcjn15l"},shadow8:{Be6vj1x:"f1tm8t9f"},shadow16:{Be6vj1x:"f1a1aohj"},shadow28:{Be6vj1x:"fond6v5"},inactive:{abs64n:"fp25eh",Bz10aip:"f1clczzi",Bkqvd7p:"f1l3s34x",Bucmhp4:"f1f5ar78",b2tv09:["fqxtap0","fhjukvy"],Bfgortx:"f1qj1nzo",Bnvr3x9:["fhjukvy","fqxtap0"],b6ubon:"fw457kn",Bqinb2h:"f1wmllxl"},badge:{qhf8xq:"f1euv43f",B5kzvoi:"f1yab3r1",j35jbq:["f1e31b4d","f1vgc2s3"]},badgeCutout:{btxmck:"f1eugkqs"},badgeAlign:{Dnlfbu:["f1tlnv9o","f1y9kyih"]},tiny:{Bdjeniz:"f1uwoubl",niu6jh:"fid048z"},"extra-small":{Bdjeniz:"f13ar0e0",niu6jh:"fid048z"},small:{Bdjeniz:"fwwuruf",niu6jh:"fid048z"},medium:{Bdjeniz:"f1af27q5",niu6jh:"fid048z"},large:{Bdjeniz:"f18yy57a",niu6jh:"f924bxt"},"extra-large":{Bdjeniz:"f2jg042",niu6jh:"f924bxt"},icon12:{Be2twd7:"f1ugzwwg"},icon16:{Be2twd7:"f4ybsrx"},icon20:{Be2twd7:"fe5j1ua"},icon24:{Be2twd7:"f1rt2boy"},icon28:{Be2twd7:"f24l1pt"},icon32:{Be2twd7:"ffl51b"},icon48:{Be2twd7:"f18m8u13"}},{d:[".f13mqy1h{font-size:var(--fontSizeBase100);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f1pp30po{font-size:var(--fontSizeBase500);}",".f1x0m3f5{font-size:var(--fontSizeBase600);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".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);}",".f1ldthgs{border-bottom-right-radius:var(--borderRadiusLarge);}",".frrelxk{border-bottom-left-radius:var(--borderRadiusLarge);}",".fobrfso{border-top-right-radius:var(--borderRadiusLarge);}",".ffisxpw{border-top-left-radius:var(--borderRadiusLarge);}",".fnivh3a{border-bottom-right-radius:var(--borderRadiusXLarge);}",".fc7yr5o{border-bottom-left-radius:var(--borderRadiusXLarge);}",".f1el4m67{border-top-right-radius:var(--borderRadiusXLarge);}",".f8yange{border-top-left-radius:var(--borderRadiusXLarge);}",".ftfx35i{transform:perspective(1px);}",".fv0atk9{transition-property:transform,opacity;}",".f1iry5bo{transition-duration:var(--durationUltraSlow),var(--durationFaster);}",".f15n41j8{transition-timing-function:var(--curveEasyEaseMax),var(--curveLinear);}",'.f1wl9k8s::before{content:"";}',".fp2gujx::before{-webkit-mask-image:radial-gradient(circle at bottom calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)) var(--fui-Avatar-badgeAlign) calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));mask-image:radial-gradient(circle at bottom calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)) var(--fui-Avatar-badgeAlign) calc(var(--fui-Avatar-badgeRadius) + 2 * var(--fui-Avatar-ringWidth)), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));}",".fq1w1vq{--fui-Avatar-ringWidth:var(--strokeWidthThick);}",".fzg6ace{--fui-Avatar-ringWidth:var(--strokeWidthThicker);}",".f1nu8p71{--fui-Avatar-ringWidth:var(--strokeWidthThickest);}",'.f13zj6fq::after{content:"";}',".fcjn15l::after{box-shadow:var(--shadow4);}",".f1tm8t9f::after{box-shadow:var(--shadow8);}",".f1a1aohj::after{box-shadow:var(--shadow16);}",".fond6v5::after{box-shadow:var(--shadow28);}",".fp25eh{opacity:0.8;}",".f1clczzi{transform:scale(0.875);}",".f1l3s34x{transition-timing-function:var(--curveDecelerateMin),var(--curveLinear);}",".f1f5ar78::before,.f1f5ar78::after{margin-top:0;}",".fqxtap0::before,.fqxtap0::after{margin-right:0;}",".fhjukvy::before,.fhjukvy::after{margin-left:0;}",".f1qj1nzo::before,.f1qj1nzo::after{margin-bottom:0;}",".fw457kn::before,.fw457kn::after{opacity:0;}",".f1wmllxl::before,.f1wmllxl::after{transition-timing-function:var(--curveDecelerateMin),var(--curveLinear);}",".f1euv43f{position:absolute;}",".f1yab3r1{bottom:0;}",".f1e31b4d{right:0;}",".f1vgc2s3{left:0;}",".f1eugkqs{-webkit-mask-image:radial-gradient(circle at bottom var(--fui-Avatar-badgeRadius) var(--fui-Avatar-badgeAlign) var(--fui-Avatar-badgeRadius), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));mask-image:radial-gradient(circle at bottom var(--fui-Avatar-badgeRadius) var(--fui-Avatar-badgeAlign) var(--fui-Avatar-badgeRadius), transparent calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) - 0.25px), white calc(var(--fui-Avatar-badgeRadius) + var(--fui-Avatar-badgeGap) + 0.25px));}",".f1tlnv9o{--fui-Avatar-badgeAlign:right;}",".f1y9kyih{--fui-Avatar-badgeAlign:left;}",".f1uwoubl{--fui-Avatar-badgeRadius:3px;}",".fid048z{--fui-Avatar-badgeGap:var(--strokeWidthThin);}",".f13ar0e0{--fui-Avatar-badgeRadius:5px;}",".fwwuruf{--fui-Avatar-badgeRadius:6px;}",".f1af27q5{--fui-Avatar-badgeRadius:8px;}",".f18yy57a{--fui-Avatar-badgeRadius:10px;}",".f924bxt{--fui-Avatar-badgeGap:var(--strokeWidthThick);}",".f2jg042{--fui-Avatar-badgeRadius:14px;}",".f1ugzwwg{font-size:12px;}",".f4ybsrx{font-size:16px;}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f24l1pt{font-size:28px;}",".ffl51b{font-size:32px;}",".f18m8u13{font-size:48px;}"],m:[["@media screen and (prefers-reduced-motion: reduce){.f1onx1g3{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]]}),yg=U({16:{a9b677:"fjw5fx7",Bqenvij:"fd461yt"},20:{a9b677:"f64fuq3",Bqenvij:"fjamq6b"},24:{a9b677:"fq4mcun",Bqenvij:"frvgh55"},28:{a9b677:"f1w9dchk",Bqenvij:"fxldao9"},32:{a9b677:"f1szoe96",Bqenvij:"f1d2rq10"},36:{a9b677:"fpdz1er",Bqenvij:"f8ljn23"},40:{a9b677:"feqmc2u",Bqenvij:"fbhnoac"},48:{a9b677:"f124akge",Bqenvij:"ff2sm71"},56:{a9b677:"f1u66zr1",Bqenvij:"fzki0ko"},64:{a9b677:"fa9ln6p",Bqenvij:"f16k9i2m"},72:{a9b677:"fhcae8x",Bqenvij:"f1shusfg"},96:{a9b677:"f1kyr2gn",Bqenvij:"fypu0ge"},120:{a9b677:"fwfqyga",Bqenvij:"fjr5b71"},128:{a9b677:"f1iksgmy",Bqenvij:"fele2au"}},{d:[".fjw5fx7{width:16px;}",".fd461yt{height:16px;}",".f64fuq3{width:20px;}",".fjamq6b{height:20px;}",".fq4mcun{width:24px;}",".frvgh55{height:24px;}",".f1w9dchk{width:28px;}",".fxldao9{height:28px;}",".f1szoe96{width:32px;}",".f1d2rq10{height:32px;}",".fpdz1er{width:36px;}",".f8ljn23{height:36px;}",".feqmc2u{width:40px;}",".fbhnoac{height:40px;}",".f124akge{width:48px;}",".ff2sm71{height:48px;}",".f1u66zr1{width:56px;}",".fzki0ko{height:56px;}",".fa9ln6p{width:64px;}",".f16k9i2m{height:64px;}",".fhcae8x{width:72px;}",".f1shusfg{height:72px;}",".f1kyr2gn{width:96px;}",".fypu0ge{height:96px;}",".fwfqyga{width:120px;}",".fjr5b71{height:120px;}",".f1iksgmy{width:128px;}",".fele2au{height:128px;}"]}),wg=U({neutral:{sj55zd:"f11d4kpn",De3pzq:"f18f03hv"},brand:{sj55zd:"fonrgv7",De3pzq:"f1blnnmj"},"dark-red":{sj55zd:"fqjd1y1",De3pzq:"f1vq2oo4"},cranberry:{sj55zd:"fg9gses",De3pzq:"f1lwxszt"},red:{sj55zd:"f23f7i0",De3pzq:"f1q9qhfq"},pumpkin:{sj55zd:"fjnan08",De3pzq:"fz91bi3"},peach:{sj55zd:"fknu15p",De3pzq:"f1b9nr51"},marigold:{sj55zd:"f9603vw",De3pzq:"f3z4w6d"},gold:{sj55zd:"fmq0uwp",De3pzq:"fg50kya"},brass:{sj55zd:"f28g5vo",De3pzq:"f4w2gd0"},brown:{sj55zd:"ftl572b",De3pzq:"f14wu1f4"},forest:{sj55zd:"f1gymlvd",De3pzq:"f19ut4y6"},seafoam:{sj55zd:"fnnb6wn",De3pzq:"f1n057jc"},"dark-green":{sj55zd:"ff58qw8",De3pzq:"f11t05wk"},"light-teal":{sj55zd:"f1up9qbj",De3pzq:"f42feg1"},teal:{sj55zd:"f135dsb4",De3pzq:"f6hvv1p"},steel:{sj55zd:"f151dlcp",De3pzq:"f1lnp8zf"},blue:{sj55zd:"f1rjv50u",De3pzq:"f1ggcpy6"},"royal-blue":{sj55zd:"f1emykk5",De3pzq:"f12rj61f"},cornflower:{sj55zd:"fqsigj7",De3pzq:"f8k7hur"},navy:{sj55zd:"f1nj97xi",De3pzq:"f19gw0ux"},lavender:{sj55zd:"fwctg0i",De3pzq:"ff379vm"},purple:{sj55zd:"fjrsgpu",De3pzq:"f1mzf1e1"},grape:{sj55zd:"f1fiiydq",De3pzq:"f1o4k8oy"},lilac:{sj55zd:"f1res9jt",De3pzq:"f1x6mz1o"},pink:{sj55zd:"fv3fbbi",De3pzq:"fydlv6t"},magenta:{sj55zd:"f1f1fwnz",De3pzq:"f4xb6j5"},plum:{sj55zd:"f8ptl6j",De3pzq:"fqo8e26"},beige:{sj55zd:"f1ntv3ld",De3pzq:"f101elhj"},mink:{sj55zd:"f1fscmp",De3pzq:"f13g8o5c"},platinum:{sj55zd:"f1dr00v2",De3pzq:"fkh7blw"},anchor:{sj55zd:"f1f3ti53",De3pzq:"fu4yj0j"}},{d:[".f11d4kpn{color:var(--colorNeutralForeground3);}",".f18f03hv{background-color:var(--colorNeutralBackground6);}",".fonrgv7{color:var(--colorNeutralForegroundStaticInverted);}",".f1blnnmj{background-color:var(--colorBrandBackgroundStatic);}",".fqjd1y1{color:var(--colorPaletteDarkRedForeground2);}",".f1vq2oo4{background-color:var(--colorPaletteDarkRedBackground2);}",".fg9gses{color:var(--colorPaletteCranberryForeground2);}",".f1lwxszt{background-color:var(--colorPaletteCranberryBackground2);}",".f23f7i0{color:var(--colorPaletteRedForeground2);}",".f1q9qhfq{background-color:var(--colorPaletteRedBackground2);}",".fjnan08{color:var(--colorPalettePumpkinForeground2);}",".fz91bi3{background-color:var(--colorPalettePumpkinBackground2);}",".fknu15p{color:var(--colorPalettePeachForeground2);}",".f1b9nr51{background-color:var(--colorPalettePeachBackground2);}",".f9603vw{color:var(--colorPaletteMarigoldForeground2);}",".f3z4w6d{background-color:var(--colorPaletteMarigoldBackground2);}",".fmq0uwp{color:var(--colorPaletteGoldForeground2);}",".fg50kya{background-color:var(--colorPaletteGoldBackground2);}",".f28g5vo{color:var(--colorPaletteBrassForeground2);}",".f4w2gd0{background-color:var(--colorPaletteBrassBackground2);}",".ftl572b{color:var(--colorPaletteBrownForeground2);}",".f14wu1f4{background-color:var(--colorPaletteBrownBackground2);}",".f1gymlvd{color:var(--colorPaletteForestForeground2);}",".f19ut4y6{background-color:var(--colorPaletteForestBackground2);}",".fnnb6wn{color:var(--colorPaletteSeafoamForeground2);}",".f1n057jc{background-color:var(--colorPaletteSeafoamBackground2);}",".ff58qw8{color:var(--colorPaletteDarkGreenForeground2);}",".f11t05wk{background-color:var(--colorPaletteDarkGreenBackground2);}",".f1up9qbj{color:var(--colorPaletteLightTealForeground2);}",".f42feg1{background-color:var(--colorPaletteLightTealBackground2);}",".f135dsb4{color:var(--colorPaletteTealForeground2);}",".f6hvv1p{background-color:var(--colorPaletteTealBackground2);}",".f151dlcp{color:var(--colorPaletteSteelForeground2);}",".f1lnp8zf{background-color:var(--colorPaletteSteelBackground2);}",".f1rjv50u{color:var(--colorPaletteBlueForeground2);}",".f1ggcpy6{background-color:var(--colorPaletteBlueBackground2);}",".f1emykk5{color:var(--colorPaletteRoyalBlueForeground2);}",".f12rj61f{background-color:var(--colorPaletteRoyalBlueBackground2);}",".fqsigj7{color:var(--colorPaletteCornflowerForeground2);}",".f8k7hur{background-color:var(--colorPaletteCornflowerBackground2);}",".f1nj97xi{color:var(--colorPaletteNavyForeground2);}",".f19gw0ux{background-color:var(--colorPaletteNavyBackground2);}",".fwctg0i{color:var(--colorPaletteLavenderForeground2);}",".ff379vm{background-color:var(--colorPaletteLavenderBackground2);}",".fjrsgpu{color:var(--colorPalettePurpleForeground2);}",".f1mzf1e1{background-color:var(--colorPalettePurpleBackground2);}",".f1fiiydq{color:var(--colorPaletteGrapeForeground2);}",".f1o4k8oy{background-color:var(--colorPaletteGrapeBackground2);}",".f1res9jt{color:var(--colorPaletteLilacForeground2);}",".f1x6mz1o{background-color:var(--colorPaletteLilacBackground2);}",".fv3fbbi{color:var(--colorPalettePinkForeground2);}",".fydlv6t{background-color:var(--colorPalettePinkBackground2);}",".f1f1fwnz{color:var(--colorPaletteMagentaForeground2);}",".f4xb6j5{background-color:var(--colorPaletteMagentaBackground2);}",".f8ptl6j{color:var(--colorPalettePlumForeground2);}",".fqo8e26{background-color:var(--colorPalettePlumBackground2);}",".f1ntv3ld{color:var(--colorPaletteBeigeForeground2);}",".f101elhj{background-color:var(--colorPaletteBeigeBackground2);}",".f1fscmp{color:var(--colorPaletteMinkForeground2);}",".f13g8o5c{background-color:var(--colorPaletteMinkBackground2);}",".f1dr00v2{color:var(--colorPalettePlatinumForeground2);}",".fkh7blw{background-color:var(--colorPalettePlatinumBackground2);}",".f1f3ti53{color:var(--colorPaletteAnchorForeground2);}",".fu4yj0j{background-color:var(--colorPaletteAnchorBackground2);}"]}),kg=U({neutral:{Bic5iru:"f1uuiafn"},brand:{Bic5iru:"f1uuiafn"},"dark-red":{Bic5iru:"f1t2x9on"},cranberry:{Bic5iru:"f1pvshc9"},red:{Bic5iru:"f1ectbk9"},pumpkin:{Bic5iru:"fvzpl0b"},peach:{Bic5iru:"fwj2kd7"},marigold:{Bic5iru:"fr120vy"},gold:{Bic5iru:"f8xmmar"},brass:{Bic5iru:"f1hbety2"},brown:{Bic5iru:"f1vg3s4g"},forest:{Bic5iru:"f1m3olm5"},seafoam:{Bic5iru:"f17xiqtr"},"dark-green":{Bic5iru:"fx32vyh"},"light-teal":{Bic5iru:"f1mkihwv"},teal:{Bic5iru:"fecnooh"},steel:{Bic5iru:"f15hfgzm"},blue:{Bic5iru:"fqproka"},"royal-blue":{Bic5iru:"f17v2w59"},cornflower:{Bic5iru:"fp0q1mo"},navy:{Bic5iru:"f1nlym55"},lavender:{Bic5iru:"f62vk8h"},purple:{Bic5iru:"f15zl69q"},grape:{Bic5iru:"f53w4j7"},lilac:{Bic5iru:"fu2771t"},pink:{Bic5iru:"fzflscs"},magenta:{Bic5iru:"fb6rmqc"},plum:{Bic5iru:"f1a4gm5b"},beige:{Bic5iru:"f1qpf9z1"},mink:{Bic5iru:"f1l7or83"},platinum:{Bic5iru:"fzrj0iu"},anchor:{Bic5iru:"f8oz6wf"}},{d:[".f1uuiafn::before{color:var(--colorBrandStroke1);}",".f1t2x9on::before{color:var(--colorPaletteDarkRedBorderActive);}",".f1pvshc9::before{color:var(--colorPaletteCranberryBorderActive);}",".f1ectbk9::before{color:var(--colorPaletteRedBorderActive);}",".fvzpl0b::before{color:var(--colorPalettePumpkinBorderActive);}",".fwj2kd7::before{color:var(--colorPalettePeachBorderActive);}",".fr120vy::before{color:var(--colorPaletteMarigoldBorderActive);}",".f8xmmar::before{color:var(--colorPaletteGoldBorderActive);}",".f1hbety2::before{color:var(--colorPaletteBrassBorderActive);}",".f1vg3s4g::before{color:var(--colorPaletteBrownBorderActive);}",".f1m3olm5::before{color:var(--colorPaletteForestBorderActive);}",".f17xiqtr::before{color:var(--colorPaletteSeafoamBorderActive);}",".fx32vyh::before{color:var(--colorPaletteDarkGreenBorderActive);}",".f1mkihwv::before{color:var(--colorPaletteLightTealBorderActive);}",".fecnooh::before{color:var(--colorPaletteTealBorderActive);}",".f15hfgzm::before{color:var(--colorPaletteSteelBorderActive);}",".fqproka::before{color:var(--colorPaletteBlueBorderActive);}",".f17v2w59::before{color:var(--colorPaletteRoyalBlueBorderActive);}",".fp0q1mo::before{color:var(--colorPaletteCornflowerBorderActive);}",".f1nlym55::before{color:var(--colorPaletteNavyBorderActive);}",".f62vk8h::before{color:var(--colorPaletteLavenderBorderActive);}",".f15zl69q::before{color:var(--colorPalettePurpleBorderActive);}",".f53w4j7::before{color:var(--colorPaletteGrapeBorderActive);}",".fu2771t::before{color:var(--colorPaletteLilacBorderActive);}",".fzflscs::before{color:var(--colorPalettePinkBorderActive);}",".fb6rmqc::before{color:var(--colorPaletteMagentaBorderActive);}",".f1a4gm5b::before{color:var(--colorPalettePlumBorderActive);}",".f1qpf9z1::before{color:var(--colorPaletteBeigeBorderActive);}",".f1l7or83::before{color:var(--colorPaletteMinkBorderActive);}",".fzrj0iu::before{color:var(--colorPalettePlatinumBorderActive);}",".f8oz6wf::before{color:var(--colorPaletteAnchorBorderActive);}"]}),xg=e=>{const{size:t,shape:r,active:o,activeAppearance:i,color:n}=e,s=gg(),l=pg(),u=mg(),a=bg(),c=yg(),f=wg(),v=kg(),d=[s,t!==32&&c[t]];if(e.badge&&d.push(a.badgeAlign,a[e.badge.size||"medium"]),t<=24?d.push(a.textCaption2Strong):t<=28?d.push(a.textCaption1Strong):t<=40||(t<=56?d.push(a.textSubtitle2):t<=96?d.push(a.textSubtitle1):d.push(a.textTitle3)),r==="square"&&(t<=24?d.push(a.squareSmall):t<=48?d.push(a.squareMedium):t<=72?d.push(a.squareLarge):d.push(a.squareXLarge)),(o==="active"||o==="inactive")&&(d.push(a.activeOrInactive),(i==="ring"||i==="ring-shadow")&&(d.push(a.ring,v[n]),e.badge&&d.push(a.ringBadgeCutout),t<=48?d.push(a.ringThick):t<=64?d.push(a.ringThicker):d.push(a.ringThickest)),(i==="shadow"||i==="ring-shadow")&&(d.push(a.shadow),t<=28?d.push(a.shadow4):t<=48?d.push(a.shadow8):t<=64?d.push(a.shadow16):d.push(a.shadow28)),o==="inactive"&&d.push(a.inactive)),e.root.className=A(Sr.root,...d,e.root.className),e.badge&&(e.badge.className=A(Sr.badge,a.badge,e.badge.className)),e.image&&(e.image.className=A(Sr.image,l,f[n],e.badge&&a.badgeCutout,e.image.className)),e.initials&&(e.initials.className=A(Sr.initials,u,f[n],e.badge&&a.badgeCutout,e.initials.className)),e.icon){let h;t<=16?h=a.icon12:t<=24?h=a.icon16:t<=40?h=a.icon20:t<=48?h=a.icon24:t<=56?h=a.icon28:t<=72?h=a.icon32:h=a.icon48,e.icon.className=A(Sr.icon,u,h,f[n],e.badge&&a.badgeCutout,e.icon.className)}return e},kn=p.forwardRef((e,t)=>{const r=dg(e,t);return xg(r),Ye("useAvatarStyles_unstable")(r),Dv(r)});kn.displayName="Avatar";const Es="data-popper-is-intersecting",js="data-popper-escaped",Rs="data-popper-reference-hidden",Bg="data-popper-placement",_g=["top","right","bottom","left"],Dt=Math.min,Ue=Math.max,ao=Math.round,wt=e=>({x:e,y:e}),Pg={left:"right",right:"left",bottom:"top",top:"bottom"},Sg={start:"end",end:"start"};function xn(e,t,r){return Ue(e,Dt(t,r))}function ut(e,t){return typeof e=="function"?e(t):e}function ft(e){return e.split("-")[0]}function Qt(e){return e.split("-")[1]}function Bn(e){return e==="x"?"y":"x"}function _n(e){return e==="y"?"height":"width"}function Jt(e){return["top","bottom"].includes(ft(e))?"y":"x"}function Pn(e){return Bn(Jt(e))}function Cg(e,t,r){r===void 0&&(r=!1);const o=Qt(e),i=Pn(e),n=_n(i);let s=i==="x"?o===(r?"end":"start")?"right":"left":o==="start"?"bottom":"top";return t.reference[n]>t.floating[n]&&(s=so(s)),[s,so(s)]}function zg(e){const t=so(e);return[Sn(e),t,Sn(t)]}function Sn(e){return e.replace(/start|end/g,t=>Sg[t])}function Tg(e,t,r){const o=["left","right"],i=["right","left"],n=["top","bottom"],s=["bottom","top"];switch(e){case"top":case"bottom":return r?t?i:o:t?o:i;case"left":case"right":return t?n:s;default:return[]}}function Ng(e,t,r,o){const i=Qt(e);let n=Tg(ft(e),r==="start",o);return i&&(n=n.map(s=>s+"-"+i),t&&(n=n.concat(n.map(Sn)))),n}function so(e){return e.replace(/left|right|bottom|top/g,t=>Pg[t])}function Eg(e){return{top:0,right:0,bottom:0,left:0,...e}}function Fs(e){return typeof e!="number"?Eg(e):{top:e,right:e,bottom:e,left:e}}function lo(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function qs(e,t,r){let{reference:o,floating:i}=e;const n=Jt(t),s=Pn(t),l=_n(s),u=ft(t),a=n==="y",c=o.x+o.width/2-i.width/2,f=o.y+o.height/2-i.height/2,v=o[l]/2-i[l]/2;let d;switch(u){case"top":d={x:c,y:o.y-i.height};break;case"bottom":d={x:c,y:o.y+o.height};break;case"right":d={x:o.x+o.width,y:f};break;case"left":d={x:o.x-i.width,y:f};break;default:d={x:o.x,y:o.y}}switch(Qt(t)){case"start":d[s]-=v*(r&&a?-1:1);break;case"end":d[s]+=v*(r&&a?-1:1);break}return d}const jg=async(e,t,r)=>{const{placement:o="bottom",strategy:i="absolute",middleware:n=[],platform:s}=r,l=n.filter(Boolean),u=await(s.isRTL==null?void 0:s.isRTL(t));let a=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:c,y:f}=qs(a,o,u),v=o,d={},h=0;for(let m=0;m<l.length;m++){const{name:k,fn:b}=l[m],{x:y,y:P,data:x,reset:S}=await b({x:c,y:f,initialPlacement:o,placement:v,strategy:i,middlewareData:d,rects:a,platform:s,elements:{reference:e,floating:t}});if(c=y??c,f=P??f,d={...d,[k]:{...d[k],...x}},S&&h<=50){h++,typeof S=="object"&&(S.placement&&(v=S.placement),S.rects&&(a=S.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):S.rects),{x:c,y:f}=qs(a,v,u)),m=-1;continue}}return{x:c,y:f,placement:v,strategy:i,middlewareData:d}};async function er(e,t){var r;t===void 0&&(t={});const{x:o,y:i,platform:n,rects:s,elements:l,strategy:u}=e,{boundary:a="clippingAncestors",rootBoundary:c="viewport",elementContext:f="floating",altBoundary:v=!1,padding:d=0}=ut(t,e),h=Fs(d),k=l[v?f==="floating"?"reference":"floating":f],b=lo(await n.getClippingRect({element:(r=await(n.isElement==null?void 0:n.isElement(k)))==null||r?k:k.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(l.floating)),boundary:a,rootBoundary:c,strategy:u})),y=f==="floating"?{...s.floating,x:o,y:i}:s.reference,P=await(n.getOffsetParent==null?void 0:n.getOffsetParent(l.floating)),x=await(n.isElement==null?void 0:n.isElement(P))?await(n.getScale==null?void 0:n.getScale(P))||{x:1,y:1}:{x:1,y:1},S=lo(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:P,strategy:u}):y);return{top:(b.top-S.top+h.top)/x.y,bottom:(S.bottom-b.bottom+h.bottom)/x.y,left:(b.left-S.left+h.left)/x.x,right:(S.right-b.right+h.right)/x.x}}const Rg=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:o,placement:i,rects:n,platform:s,elements:l,middlewareData:u}=t,{element:a,padding:c=0}=ut(e,t)||{};if(a==null)return{};const f=Fs(c),v={x:r,y:o},d=Pn(i),h=_n(d),m=await s.getDimensions(a),k=d==="y",b=k?"top":"left",y=k?"bottom":"right",P=k?"clientHeight":"clientWidth",x=n.reference[h]+n.reference[d]-v[d]-n.floating[h],S=v[d]-n.reference[d],w=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a));let _=w?w[P]:0;(!_||!await(s.isElement==null?void 0:s.isElement(w)))&&(_=l.floating[P]||n.floating[h]);const F=x/2-S/2,R=_/2-m[h]/2-1,V=Dt(f[b],R),G=Dt(f[y],R),O=V,B=_-m[h]-G,L=_/2-m[h]/2+F,Y=xn(O,L,B),te=!u.arrow&&Qt(i)!=null&&L!=Y&&n.reference[h]/2-(L<O?V:G)-m[h]/2<0,ne=te?L<O?L-O:L-B:0;return{[d]:v[d]+ne,data:{[d]:Y,centerOffset:L-Y-ne,...te&&{alignmentOffset:ne}},reset:te}}}),Fg=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,o;const{placement:i,middlewareData:n,rects:s,initialPlacement:l,platform:u,elements:a}=t,{mainAxis:c=!0,crossAxis:f=!0,fallbackPlacements:v,fallbackStrategy:d="bestFit",fallbackAxisSideDirection:h="none",flipAlignment:m=!0,...k}=ut(e,t);if((r=n.arrow)!=null&&r.alignmentOffset)return{};const b=ft(i),y=ft(l)===l,P=await(u.isRTL==null?void 0:u.isRTL(a.floating)),x=v||(y||!m?[so(l)]:zg(l));!v&&h!=="none"&&x.push(...Ng(l,m,h,P));const S=[l,...x],w=await er(t,k),_=[];let F=((o=n.flip)==null?void 0:o.overflows)||[];if(c&&_.push(w[b]),f){const O=Cg(i,s,P);_.push(w[O[0]],w[O[1]])}if(F=[...F,{placement:i,overflows:_}],!_.every(O=>O<=0)){var R,V;const O=(((R=n.flip)==null?void 0:R.index)||0)+1,B=S[O];if(B)return{data:{index:O,overflows:F},reset:{placement:B}};let L=(V=F.filter(Y=>Y.overflows[0]<=0).sort((Y,te)=>Y.overflows[1]-te.overflows[1])[0])==null?void 0:V.placement;if(!L)switch(d){case"bestFit":{var G;const Y=(G=F.map(te=>[te.placement,te.overflows.filter(ne=>ne>0).reduce((ne,ae)=>ne+ae,0)]).sort((te,ne)=>te[1]-ne[1])[0])==null?void 0:G[0];Y&&(L=Y);break}case"initialPlacement":L=l;break}if(i!==L)return{reset:{placement:L}}}return{}}}};function As(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function Ds(e){return _g.some(t=>e[t]>=0)}const Os=function(e){return e===void 0&&(e={}),{name:"hide",options:e,async fn(t){const{rects:r}=t,{strategy:o="referenceHidden",...i}=ut(e,t);switch(o){case"referenceHidden":{const n=await er(t,{...i,elementContext:"reference"}),s=As(n,r.reference);return{data:{referenceHiddenOffsets:s,referenceHidden:Ds(s)}}}case"escaped":{const n=await er(t,{...i,altBoundary:!0}),s=As(n,r.floating);return{data:{escapedOffsets:s,escaped:Ds(s)}}}default:return{}}}}};async function qg(e,t){const{placement:r,platform:o,elements:i}=e,n=await(o.isRTL==null?void 0:o.isRTL(i.floating)),s=ft(r),l=Qt(r),u=Jt(r)==="y",a=["left","top"].includes(s)?-1:1,c=n&&u?-1:1,f=ut(t,e);let{mainAxis:v,crossAxis:d,alignmentAxis:h}=typeof f=="number"?{mainAxis:f,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...f};return l&&typeof h=="number"&&(d=l==="end"?h*-1:h),u?{x:d*c,y:v*a}:{x:v*a,y:d*c}}const Ag=function(e){return e===void 0&&(e=0),{name:"offset",options:e,async fn(t){var r,o;const{x:i,y:n,placement:s,middlewareData:l}=t,u=await qg(t,e);return s===((r=l.offset)==null?void 0:r.placement)&&(o=l.arrow)!=null&&o.alignmentOffset?{}:{x:i+u.x,y:n+u.y,data:{...u,placement:s}}}}},Dg=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:o,placement:i}=t,{mainAxis:n=!0,crossAxis:s=!1,limiter:l={fn:k=>{let{x:b,y}=k;return{x:b,y}}},...u}=ut(e,t),a={x:r,y:o},c=await er(t,u),f=Jt(ft(i)),v=Bn(f);let d=a[v],h=a[f];if(n){const k=v==="y"?"top":"left",b=v==="y"?"bottom":"right",y=d+c[k],P=d-c[b];d=xn(y,d,P)}if(s){const k=f==="y"?"top":"left",b=f==="y"?"bottom":"right",y=h+c[k],P=h-c[b];h=xn(y,h,P)}const m=l.fn({...t,[v]:d,[f]:h});return{...m,data:{x:m.x-r,y:m.y-o}}}}},Og=function(e){return e===void 0&&(e={}),{options:e,fn(t){const{x:r,y:o,placement:i,rects:n,middlewareData:s}=t,{offset:l=0,mainAxis:u=!0,crossAxis:a=!0}=ut(e,t),c={x:r,y:o},f=Jt(i),v=Bn(f);let d=c[v],h=c[f];const m=ut(l,t),k=typeof m=="number"?{mainAxis:m,crossAxis:0}:{mainAxis:0,crossAxis:0,...m};if(u){const P=v==="y"?"height":"width",x=n.reference[v]-n.floating[P]+k.mainAxis,S=n.reference[v]+n.reference[P]-k.mainAxis;d<x?d=x:d>S&&(d=S)}if(a){var b,y;const P=v==="y"?"width":"height",x=["top","left"].includes(ft(i)),S=n.reference[f]-n.floating[P]+(x&&((b=s.offset)==null?void 0:b[f])||0)+(x?0:k.crossAxis),w=n.reference[f]+n.reference[P]+(x?0:((y=s.offset)==null?void 0:y[f])||0)-(x?k.crossAxis:0);h<S?h=S:h>w&&(h=w)}return{[v]:d,[f]:h}}}},Ig=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){const{placement:r,rects:o,platform:i,elements:n}=t,{apply:s=()=>{},...l}=ut(e,t),u=await er(t,l),a=ft(r),c=Qt(r),f=Jt(r)==="y",{width:v,height:d}=o.floating;let h,m;a==="top"||a==="bottom"?(h=a,m=c===(await(i.isRTL==null?void 0:i.isRTL(n.floating))?"start":"end")?"left":"right"):(m=a,h=c==="end"?"top":"bottom");const k=d-u[h],b=v-u[m],y=!t.middlewareData.shift;let P=k,x=b;if(f){const w=v-u.left-u.right;x=c||y?Dt(b,w):w}else{const w=d-u.top-u.bottom;P=c||y?Dt(k,w):w}if(y&&!c){const w=Ue(u.left,0),_=Ue(u.right,0),F=Ue(u.top,0),R=Ue(u.bottom,0);f?x=v-2*(w!==0||_!==0?w+_:Ue(u.left,u.right)):P=d-2*(F!==0||R!==0?F+R:Ue(u.top,u.bottom))}await s({...t,availableWidth:x,availableHeight:P});const S=await i.getDimensions(n.floating);return v!==S.width||d!==S.height?{reset:{rects:!0}}:{}}}};function kt(e){return Is(e)?(e.nodeName||"").toLowerCase():"#document"}function $e(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xt(e){var t;return(t=(Is(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Is(e){return e instanceof Node||e instanceof $e(e).Node}function dt(e){return e instanceof Element||e instanceof $e(e).Element}function nt(e){return e instanceof HTMLElement||e instanceof $e(e).HTMLElement}function Ms(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof $e(e).ShadowRoot}function Cr(e){const{overflow:t,overflowX:r,overflowY:o,display:i}=Ge(e);return/auto|scroll|overlay|hidden|clip/.test(t+o+r)&&!["inline","contents"].includes(i)}function Mg(e){return["table","td","th"].includes(kt(e))}function Cn(e){const t=zn(),r=Ge(e);return r.transform!=="none"||r.perspective!=="none"||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||["transform","perspective","filter"].some(o=>(r.willChange||"").includes(o))||["paint","layout","strict","content"].some(o=>(r.contain||"").includes(o))}function Lg(e){let t=tr(e);for(;nt(t)&&!co(t);){if(Cn(t))return t;t=tr(t)}return null}function zn(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function co(e){return["html","body","#document"].includes(kt(e))}function Ge(e){return $e(e).getComputedStyle(e)}function uo(e){return dt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function tr(e){if(kt(e)==="html")return e;const t=e.assignedSlot||e.parentNode||Ms(e)&&e.host||xt(e);return Ms(t)?t.host:t}function Ls(e){const t=tr(e);return co(t)?e.ownerDocument?e.ownerDocument.body:e.body:nt(t)&&Cr(t)?t:Ls(t)}function Tn(e,t,r){var o;t===void 0&&(t=[]),r===void 0&&(r=!0);const i=Ls(e),n=i===((o=e.ownerDocument)==null?void 0:o.body),s=$e(i);return n?t.concat(s,s.visualViewport||[],Cr(i)?i:[],s.frameElement&&r?Tn(s.frameElement):[]):t.concat(i,Tn(i,[],r))}function Hs(e){const t=Ge(e);let r=parseFloat(t.width)||0,o=parseFloat(t.height)||0;const i=nt(e),n=i?e.offsetWidth:r,s=i?e.offsetHeight:o,l=ao(r)!==n||ao(o)!==s;return l&&(r=n,o=s),{width:r,height:o,$:l}}function Vs(e){return dt(e)?e:e.contextElement}function rr(e){const t=Vs(e);if(!nt(t))return wt(1);const r=t.getBoundingClientRect(),{width:o,height:i,$:n}=Hs(t);let s=(n?ao(r.width):r.width)/o,l=(n?ao(r.height):r.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!l||!Number.isFinite(l))&&(l=1),{x:s,y:l}}const Hg=wt(0);function $s(e){const t=$e(e);return!zn()||!t.visualViewport?Hg:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function Vg(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==$e(e)?!1:t}function zr(e,t,r,o){t===void 0&&(t=!1),r===void 0&&(r=!1);const i=e.getBoundingClientRect(),n=Vs(e);let s=wt(1);t&&(o?dt(o)&&(s=rr(o)):s=rr(e));const l=Vg(n,r,o)?$s(n):wt(0);let u=(i.left+l.x)/s.x,a=(i.top+l.y)/s.y,c=i.width/s.x,f=i.height/s.y;if(n){const v=$e(n),d=o&&dt(o)?$e(o):o;let h=v.frameElement;for(;h&&o&&d!==v;){const m=rr(h),k=h.getBoundingClientRect(),b=Ge(h),y=k.left+(h.clientLeft+parseFloat(b.paddingLeft))*m.x,P=k.top+(h.clientTop+parseFloat(b.paddingTop))*m.y;u*=m.x,a*=m.y,c*=m.x,f*=m.y,u+=y,a+=P,h=$e(h).frameElement}}return lo({width:c,height:f,x:u,y:a})}function $g(e){let{rect:t,offsetParent:r,strategy:o}=e;const i=nt(r),n=xt(r);if(r===n)return t;let s={scrollLeft:0,scrollTop:0},l=wt(1);const u=wt(0);if((i||!i&&o!=="fixed")&&((kt(r)!=="body"||Cr(n))&&(s=uo(r)),nt(r))){const a=zr(r);l=rr(r),u.x=a.x+r.clientLeft,u.y=a.y+r.clientTop}return{width:t.width*l.x,height:t.height*l.y,x:t.x*l.x-s.scrollLeft*l.x+u.x,y:t.y*l.y-s.scrollTop*l.y+u.y}}function Wg(e){return Array.from(e.getClientRects())}function Ws(e){return zr(xt(e)).left+uo(e).scrollLeft}function Ug(e){const t=xt(e),r=uo(e),o=e.ownerDocument.body,i=Ue(t.scrollWidth,t.clientWidth,o.scrollWidth,o.clientWidth),n=Ue(t.scrollHeight,t.clientHeight,o.scrollHeight,o.clientHeight);let s=-r.scrollLeft+Ws(e);const l=-r.scrollTop;return Ge(o).direction==="rtl"&&(s+=Ue(t.clientWidth,o.clientWidth)-i),{width:i,height:n,x:s,y:l}}function Gg(e,t){const r=$e(e),o=xt(e),i=r.visualViewport;let n=o.clientWidth,s=o.clientHeight,l=0,u=0;if(i){n=i.width,s=i.height;const a=zn();(!a||a&&t==="fixed")&&(l=i.offsetLeft,u=i.offsetTop)}return{width:n,height:s,x:l,y:u}}function Xg(e,t){const r=zr(e,!0,t==="fixed"),o=r.top+e.clientTop,i=r.left+e.clientLeft,n=nt(e)?rr(e):wt(1),s=e.clientWidth*n.x,l=e.clientHeight*n.y,u=i*n.x,a=o*n.y;return{width:s,height:l,x:u,y:a}}function Us(e,t,r){let o;if(t==="viewport")o=Gg(e,r);else if(t==="document")o=Ug(xt(e));else if(dt(t))o=Xg(t,r);else{const i=$s(e);o={...t,x:t.x-i.x,y:t.y-i.y}}return lo(o)}function Gs(e,t){const r=tr(e);return r===t||!dt(r)||co(r)?!1:Ge(r).position==="fixed"||Gs(r,t)}function Kg(e,t){const r=t.get(e);if(r)return r;let o=Tn(e,[],!1).filter(l=>dt(l)&&kt(l)!=="body"),i=null;const n=Ge(e).position==="fixed";let s=n?tr(e):e;for(;dt(s)&&!co(s);){const l=Ge(s),u=Cn(s);!u&&l.position==="fixed"&&(i=null),(n?!u&&!i:!u&&l.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Cr(s)&&!u&&Gs(e,s))?o=o.filter(c=>c!==s):i=l,s=tr(s)}return t.set(e,o),o}function Zg(e){let{element:t,boundary:r,rootBoundary:o,strategy:i}=e;const s=[...r==="clippingAncestors"?Kg(t,this._c):[].concat(r),o],l=s[0],u=s.reduce((a,c)=>{const f=Us(t,c,i);return a.top=Ue(f.top,a.top),a.right=Dt(f.right,a.right),a.bottom=Dt(f.bottom,a.bottom),a.left=Ue(f.left,a.left),a},Us(t,l,i));return{width:u.right-u.left,height:u.bottom-u.top,x:u.left,y:u.top}}function Yg(e){return Hs(e)}function Qg(e,t,r){const o=nt(t),i=xt(t),n=r==="fixed",s=zr(e,!0,n,t);let l={scrollLeft:0,scrollTop:0};const u=wt(0);if(o||!o&&!n)if((kt(t)!=="body"||Cr(i))&&(l=uo(t)),o){const a=zr(t,!0,n,t);u.x=a.x+t.clientLeft,u.y=a.y+t.clientTop}else i&&(u.x=Ws(i));return{x:s.left+l.scrollLeft-u.x,y:s.top+l.scrollTop-u.y,width:s.width,height:s.height}}function Xs(e,t){return!nt(e)||Ge(e).position==="fixed"?null:t?t(e):e.offsetParent}function Ks(e,t){const r=$e(e);if(!nt(e))return r;let o=Xs(e,t);for(;o&&Mg(o)&&Ge(o).position==="static";)o=Xs(o,t);return o&&(kt(o)==="html"||kt(o)==="body"&&Ge(o).position==="static"&&!Cn(o))?r:o||Lg(e)||r}const Jg=async function(e){let{reference:t,floating:r,strategy:o}=e;const i=this.getOffsetParent||Ks,n=this.getDimensions;return{reference:Qg(t,await i(r),o),floating:{x:0,y:0,...await n(r)}}};function ep(e){return Ge(e).direction==="rtl"}const tp={convertOffsetParentRelativeRectToViewportRelativeRect:$g,getDocumentElement:xt,getClippingRect:Zg,getOffsetParent:Ks,getElementRects:Jg,getClientRects:Wg,getDimensions:Yg,getScale:rr,isElement:dt,isRTL:ep},rp=(e,t,r)=>{const o=new Map,i={platform:tp,...r},n={...i.platform,_c:o};return jg(e,t,{...i,platform:n})};function Zs(e){const t=e.split("-");return{side:t[0],alignment:t[1]}}const op=e=>e.nodeName==="HTML"?e:e.parentNode||e.host,np=e=>{var t;return e.nodeType!==1?{}:((t=e.ownerDocument)===null||t===void 0?void 0:t.defaultView).getComputedStyle(e,null)},fo=e=>{const t=e&&op(e);if(!t)return document.body;switch(t.nodeName){case"HTML":case"BODY":return t.ownerDocument.body;case"#document":return t.body}const{overflow:r,overflowX:o,overflowY:i}=np(t);return/(auto|scroll|overlay)/.test(r+i+o)?t:fo(t)},ip=e=>{var t;const r=fo(e);return r?r!==((t=r.ownerDocument)===null||t===void 0?void 0:t.body):!1};function Nn(e,t){if(t==="window")return e==null?void 0:e.ownerDocument.documentElement;if(t==="clippingParents")return"clippingAncestors";if(t==="scrollParent"){let r=fo(e);return r.nodeName==="BODY"&&(r=e==null?void 0:e.ownerDocument.documentElement),r}return t}var Ys;(function(e){e[e.FunctionComponent=0]="FunctionComponent",e[e.ClassComponent=1]="ClassComponent",e[e.IndeterminateComponent=2]="IndeterminateComponent",e[e.HostRoot=3]="HostRoot",e[e.HostPortal=4]="HostPortal",e[e.HostComponent=5]="HostComponent",e[e.HostText=6]="HostText",e[e.Fragment=7]="Fragment",e[e.Mode=8]="Mode",e[e.ContextConsumer=9]="ContextConsumer",e[e.ContextProvider=10]="ContextProvider",e[e.ForwardRef=11]="ForwardRef",e[e.Profiler=12]="Profiler",e[e.SuspenseComponent=13]="SuspenseComponent",e[e.MemoComponent=14]="MemoComponent",e[e.SimpleMemoComponent=15]="SimpleMemoComponent",e[e.LazyComponent=16]="LazyComponent",e[e.IncompleteClassComponent=17]="IncompleteClassComponent",e[e.DehydratedFragment=18]="DehydratedFragment",e[e.SuspenseListComponent=19]="SuspenseListComponent",e[e.FundamentalComponent=20]="FundamentalComponent",e[e.ScopeComponent=21]="ScopeComponent"})(Ys||(Ys={}));function ap(e){if(!e)return null;for(const t in e)if(t.indexOf("__reactInternalInstance$")===0||t.indexOf("__reactFiber$")===0)return e[t];throw new Error("getReactFiber(): Failed to find a React Fiber on a node")}function sp(e,t){if(typeof e=="number")return e;const{start:r,end:o,...i}=e,n=i,s=t?"end":"start",l=t?"start":"end";return e[s]&&(n.left=e[s]),e[l]&&(n.right=e[l]),n}const lp=e=>({above:"top",below:"bottom",before:e?"right":"left",after:e?"left":"right"}),cp=()=>({start:"start",end:"end",top:"start",bottom:"end",center:void 0}),up=(e,t)=>{const r=e==="above"||e==="below",o=t==="top"||t==="bottom";return r&&o||!r&&!o},Qs=(e,t,r)=>{const o=up(t,e)?"center":e,i=t&&lp(r)[t],n=o&&cp()[o];return i&&n?`${i}-${n}`:i},fp=()=>({top:"above",bottom:"below",right:"after",left:"before"}),dp=e=>e==="above"||e==="below"?{start:"start",end:"end"}:{start:"top",end:"bottom"},En=e=>{const{side:t,alignment:r}=Zs(e),o=fp()[t],i=r&&dp(o)[r];return{position:o,alignment:i}},hp={above:{position:"above",align:"center"},"above-start":{position:"above",align:"start"},"above-end":{position:"above",align:"end"},below:{position:"below",align:"center"},"below-start":{position:"below",align:"start"},"below-end":{position:"below",align:"end"},before:{position:"before",align:"center"},"before-top":{position:"before",align:"top"},"before-bottom":{position:"before",align:"bottom"},after:{position:"after",align:"center"},"after-top":{position:"after",align:"top"},"after-bottom":{position:"after",align:"bottom"}};function Js(e){return e==null?{}:typeof e=="string"?hp[e]:e}function jn(e,t,r){const o=p.useRef(!0),[i]=p.useState(()=>({value:e,callback:t,facade:{get current(){return i.value},set current(n){const s=i.value;if(s!==n){if(i.value=n,r&&o.current)return;i.callback(n,s)}}}}));return Et(()=>{o.current=!1},[]),i.callback=t,i.facade}function vp(e){let t;return()=>(t||(t=new Promise(r=>{Promise.resolve().then(()=>{t=void 0,r(e())})})),t)}function gp(e){if(e.nodeName==="BUTTON"||e.nodeName==="INPUT"||e.nodeName==="SELECT"||e.nodeName==="TEXTAREA"){var r;return!!(!((r=ap(e))===null||r===void 0)&&r.pendingProps.autoFocus)}return!1}function pp(e){return gp(e)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}function mp(e){const{arrow:t,middlewareData:r}=e;if(!r.arrow||!t)return;const{x:o,y:i}=r.arrow;Object.assign(t.style,{left:`${o}px`,top:`${i}px`})}function bp(e){var t,r,o;const{container:i,placement:n,middlewareData:s,strategy:l,lowPPI:u,coordinates:a,useTransform:c=!0}=e;if(!i)return;i.setAttribute(Bg,n),i.removeAttribute(Es),s.intersectionObserver.intersecting&&i.setAttribute(Es,""),i.removeAttribute(js),!((t=s.hide)===null||t===void 0)&&t.escaped&&i.setAttribute(js,""),i.removeAttribute(Rs),!((r=s.hide)===null||r===void 0)&&r.referenceHidden&&i.setAttribute(Rs,"");const f=((o=i.ownerDocument.defaultView)===null||o===void 0?void 0:o.devicePixelRatio)||1,v=Math.round(a.x*f)/f,d=Math.round(a.y*f)/f;if(Object.assign(i.style,{position:l}),c){Object.assign(i.style,{transform:u?`translate(${v}px, ${d}px)`:`translate3d(${v}px, ${d}px, 0)`});return}Object.assign(i.style,{left:`${v}px`,top:`${d}px`})}const yp=e=>{switch(e){case"always":case!0:return{applyMaxWidth:!0,applyMaxHeight:!0};case"width-always":case"width":return{applyMaxWidth:!0,applyMaxHeight:!1};case"height-always":case"height":return{applyMaxWidth:!1,applyMaxHeight:!0};default:return!1}};function wp(){return{name:"coverTarget",fn:e=>{const{placement:t,rects:r,x:o,y:i}=e,n=Zs(t).side,s={x:o,y:i};switch(n){case"bottom":s.y-=r.reference.height;break;case"top":s.y+=r.reference.height;break;case"left":s.x+=r.reference.width;break;case"right":s.x-=r.reference.width;break}return s}}}function kp(e){const{hasScrollableElement:t,flipBoundary:r,container:o,fallbackPositions:i=[],isRtl:n}=e,s=i.reduce((l,u)=>{const{position:a,align:c}=Js(u),f=Qs(c,a,n);return f&&l.push(f),l},[]);return Fg({...t&&{boundary:"clippingAncestors"},...r&&{altBoundary:!0,boundary:Nn(o,r)},fallbackStrategy:"bestFit",...s.length&&{fallbackPlacements:s}})}function xp(){return{name:"intersectionObserver",fn:async e=>{const t=e.rects.floating,r=await er(e,{altBoundary:!0}),o=r.top<t.height&&r.top>0,i=r.bottom<t.height&&r.bottom>0;return{data:{intersecting:o||i}}}}}const Bp=e=>({name:"resetMaxSize",fn({middlewareData:t,elements:r}){var o;if(!((o=t.resetMaxSize)===null||o===void 0)&&o.maxSizeAlreadyReset)return{};const{applyMaxWidth:i,applyMaxHeight:n}=e;return i&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-width"),r.floating.style.removeProperty("width")),n&&(r.floating.style.removeProperty("box-sizing"),r.floating.style.removeProperty("max-height"),r.floating.style.removeProperty("height")),{data:{maxSizeAlreadyReset:!0},reset:{rects:!0}}}});function _p(e,t){const{container:r,overflowBoundary:o}=t;return Ig({...o&&{altBoundary:!0,boundary:Nn(r,o)},apply({availableHeight:i,availableWidth:n,elements:s,rects:l}){const u=(f,v,d)=>{if(f&&(s.floating.style.setProperty("box-sizing","border-box"),s.floating.style.setProperty(`max-${v}`,`${d}px`),l.floating[v]>d)){s.floating.style.setProperty(v,`${d}px`);const h=v==="width"?"x":"y";s.floating.style.getPropertyValue(`overflow-${h}`)||s.floating.style.setProperty(`overflow-${h}`,"auto")}},{applyMaxWidth:a,applyMaxHeight:c}=e;u(a,"width",n),u(c,"height",i)}})}function Pp(e){return!e||typeof e=="number"||typeof e=="object"?e:({rects:{floating:t,reference:r},placement:o})=>{const{position:i,alignment:n}=En(o);return e({positionedRect:t,targetRect:r,position:i,alignment:n})}}function Sp(e){const t=Pp(e);return Ag(t)}function Cp(e){const{hasScrollableElement:t,disableTether:r,overflowBoundary:o,container:i,overflowBoundaryPadding:n,isRtl:s}=e;return Dg({...t&&{boundary:"clippingAncestors"},...r&&{crossAxis:r==="all",limiter:Og({crossAxis:r!=="all",mainAxis:!1})},...n&&{padding:sp(n,s)},...o&&{altBoundary:!0,boundary:Nn(i,o)}})}function zp(){return{name:"matchTargetSize",fn:async e=>{const{rects:{reference:t,floating:r},elements:{floating:o},middlewareData:{matchTargetSize:{matchTargetSizeAttempt:i=!1}={}}}=e;if(t.width===r.width||i)return{};const{width:n}=t;return o.style.width=`${n}px`,o.style.boxSizing="border-box",{data:{matchTargetSizeAttempt:!0},reset:{rects:!0}}}}}function ho(e){const t=[];let r=e;for(;r;){const o=fo(r);if(e.ownerDocument.body===o){t.push(o);break}t.push(o),r=o}return t}function Tp(e){const{container:t,target:r,arrow:o,strategy:i,middleware:n,placement:s,useTransform:l=!0}=e;let u=!1;if(!r||!t)return{updatePosition:()=>{},dispose:()=>{}};let a=!0;const c=new Set,f=t.ownerDocument.defaultView;Object.assign(t.style,{position:"fixed",left:0,top:0,margin:0});const v=()=>{u||(a&&(ho(t).forEach(m=>c.add(m)),Rt(r)&&ho(r).forEach(m=>c.add(m)),c.forEach(m=>{m.addEventListener("scroll",d,{passive:!0})}),a=!1),Object.assign(t.style,{position:i}),rp(r,t,{placement:s,middleware:n,strategy:i}).then(({x:m,y:k,middlewareData:b,placement:y})=>{u||(mp({arrow:o,middlewareData:b}),bp({container:t,middlewareData:b,placement:y,coordinates:{x:m,y:k},lowPPI:((f==null?void 0:f.devicePixelRatio)||1)<=1,strategy:i,useTransform:l}))}).catch(m=>{process.env.NODE_ENV==="development"&&console.error("[usePositioning]: Failed to calculate position",m)}))},d=vp(()=>v()),h=()=>{u=!0,f&&(f.removeEventListener("scroll",d),f.removeEventListener("resize",d)),c.forEach(m=>{m.removeEventListener("scroll",d)}),c.clear()};return f&&(f.addEventListener("scroll",d,{passive:!0}),f.addEventListener("resize",d)),d(),{updatePosition:d,dispose:h}}const el="__FUIDT_CONTROLLER__",Rn="__FUIDT_ELEMENT_METADATA__",Np="__FUIDT_HTML_ELEMENT_REFERENCE__",Ep=e=>!!(e&&Rn in e&&e.parentElement!==null),jp=()=>{let e=null;const t=new MutationObserver(o=>{if(e)for(const i of o)i.type==="childList"&&Array.from(i.removedNodes).includes(e)&&r.withdraw()}),r={get selectedElement(){return e},select:o=>(Ep(o)&&(e=o,t.observe(o.parentElement,{childList:!0,subtree:!1})),e&&o&&Fp(e,o)||r.withdraw(),e),withdraw:()=>{e=null,t.disconnect()}};return r},Rp=e=>{e.defaultView&&(e.defaultView[el]||(e.defaultView[el]=jp()))};function Fp(e,t){const r=e[Rn];switch(r.type){case"middleware":return r.references.has(t);default:return!1}}function qp(e,t){var r;const o=e;var i;return!!(!(o==null||(r=o.ownerDocument)===null||r===void 0)&&r.defaultView&&o instanceof o.ownerDocument.defaultView[(i=t==null?void 0:t.constructorName)!==null&&i!==void 0?i:"HTMLElement"])}function Ap(){return`${Np}:${crypto.randomUUID()}`}function Dp(){const e=new WeakSet,t=new Map;return{add(r){const o=Ap();return t.set(o,r),e.add(r),o},get(r){const o=t.get(r);if(o&&e.has(o))return o},has(r){return e.has(r)}}}const Op=e=>{const t=Dp();return[JSON.parse(JSON.stringify(e,(r,o)=>qp(o)?t.add(o):typeof o=="object"&&o&&Object.getPrototypeOf(o)!==Object.prototype&&Object.getPrototypeOf(o)!==Array.prototype?"toString"in o?o.toString():void 0:o)),t]},Ip=(e,t=Mp)=>({name:"floating-ui-devtools",fn:r=>{Rp(e);const[o,i]=Op(t(r));return Object.assign(r.elements.floating,{[Rn]:{references:i,serializedData:o,type:"middleware"}}),{}}}),Mp=e=>({...e,type:"FloatingUIMiddleware"}),Lp=e=>t=>{const{elements:{floating:r,reference:o}}=t,i=new Set;Rt(o)&&ho(o).forEach(l=>i.add(l)),ho(r).forEach(l=>i.add(l));const n=Array.isArray(e.flipBoundary)?e.flipBoundary:Rt(e.flipBoundary)?[e.flipBoundary]:[],s=Array.isArray(e.overflowBoundary)?e.overflowBoundary:Rt(e.overflowBoundary)?[e.overflowBoundary]:[];return{type:"FluentUIMiddleware",middlewareState:t,options:e,initialPlacement:En(t.initialPlacement),placement:En(t.placement),flipBoundaries:n,overflowBoundaries:s,scrollParents:Array.from(i)}};function Hp(e){const t=p.useRef(null),r=p.useRef(null),o=p.useRef(null),i=p.useRef(null),n=p.useRef(null),{enabled:s=!0}=e,l=Vp(e),u=p.useCallback(()=>{t.current&&t.current.dispose(),t.current=null;var d;const h=(d=o.current)!==null&&d!==void 0?d:r.current;s&&tn()&&h&&i.current&&(t.current=Tp({container:i.current,target:h,arrow:n.current,...l(i.current,n.current)}))},[s,l]),a=qe(d=>{o.current=d,u()});p.useImperativeHandle(e.positioningRef,()=>({updatePosition:()=>{var d;return(d=t.current)===null||d===void 0?void 0:d.updatePosition()},setTarget:d=>{if(e.target&&process.env.NODE_ENV!=="production"){const h=new Error;console.warn("Imperative setTarget should not be used at the same time as target option"),console.warn(h.stack)}a(d)}}),[e.target,a]),Et(()=>{var d;a((d=e.target)!==null&&d!==void 0?d:null)},[e.target,a]),Et(()=>{u()},[u]),process.env.NODE_ENV!=="production"&&p.useEffect(()=>{if(i.current){var d;const h=i.current,m=(d=h.ownerDocument)===null||d===void 0?void 0:d.createTreeWalker(h,NodeFilter.SHOW_ELEMENT,{acceptNode:pp});for(;m.nextNode();){const k=m.currentNode;console.warn("<Popper>:",k),console.warn(['<Popper>: ^ this node contains "autoFocus" prop on a React element. This can break the initial',"positioning of an element and cause a window jump effect. This issue occurs because React polyfills",'"autoFocus" behavior to solve inconsistencies between different browsers:',"https://github.com/facebook/react/issues/11851#issuecomment-351787078",`
|
|
134
|
+
`,'However, ".focus()" in this case occurs before any other React effects will be executed',"(React.useEffect(), componentDidMount(), etc.) and we can not prevent this behavior. If you really",'want to use "autoFocus" please add "position: fixed" to styles of the element that is wrapped by','"Popper".',`In general, it's not recommended to use "autoFocus" as it may break accessibility aspects:`,"https://github.com/jsx-eslint/eslint-plugin-jsx-a11y/blob/master/docs/rules/no-autofocus.md",`
|
|
135
|
+
`,'We suggest to use the "trapFocus" prop on Fluent components or a catch "ref" and then use','"ref.current.focus" in React.useEffect():',"https://reactjs.org/docs/refs-and-the-dom.html#adding-a-ref-to-a-dom-element"].join(" "))}}},[]);const c=jn(null,d=>{r.current!==d&&(r.current=d,u())}),f=jn(null,d=>{i.current!==d&&(i.current=d,u())}),v=jn(null,d=>{n.current!==d&&(n.current=d,u())});return{targetRef:c,containerRef:f,arrowRef:v}}function Vp(e){const{align:t,arrowPadding:r,autoSize:o,coverTarget:i,flipBoundary:n,offset:s,overflowBoundary:l,pinned:u,position:a,unstable_disableTether:c,positionFixed:f,strategy:v,overflowBoundaryPadding:d,fallbackPositions:h,useTransform:m,matchTargetSize:k}=e,{dir:b,targetDocument:y}=mt(),P=b==="rtl",x=v??f?"fixed":"absolute",S=yp(o);return p.useCallback((w,_)=>{const F=ip(w),R=[S&&Bp(S),k&&zp(),s&&Sp(s),i&&wp(),!u&&kp({container:w,flipBoundary:n,hasScrollableElement:F,isRtl:P,fallbackPositions:h}),Cp({container:w,hasScrollableElement:F,overflowBoundary:l,disableTether:c,overflowBoundaryPadding:d,isRtl:P}),S&&_p(S,{container:w,overflowBoundary:l}),xp(),_&&Rg({element:_,padding:r}),Os({strategy:"referenceHidden"}),Os({strategy:"escaped"}),process.env.NODE_ENV!=="production"&&y&&Ip(y,Lp(e))].filter(Boolean);return{placement:Qs(t,a,P),middleware:R,strategy:x,useTransform:m}},[t,r,S,i,c,n,P,s,l,u,a,x,d,h,m,k,y])}function $p(e){return Rt(e)?{element:e}:typeof e=="object"?e===null?{element:null}:e:{}}var Fn=()=>p.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner.current,tl=Symbol.for("react.strict_mode"),Wp=()=>{if(process.env.NODE_ENV==="production")return!1;const e=p.useRef(void 0),t=p.useMemo(()=>Number(p.version.split(".")[0]),[p.version]);if(isNaN(t)||t<18)return!1;if(e.current===void 0){let r=Fn();for(;r&&r.return;)r=r.return,(r.type===tl||r.elementType===tl)&&(e.current=!0)}return!!e.current},rl=new WeakSet;function Up(e,t){const r=Fn();p.useEffect(()=>{if(!rl.has(r)){rl.add(r),e();return}return e()},t)}var ol=new WeakSet;function Gp(e,t){return p.useMemo(()=>{const r=Fn();return ol.has(r)?e():(ol.add(r),null)},t)}function Xp(e,t){var r;const o=Wp()&&process.env.NODE_ENV!=="production",i=o?Gp:p.useMemo,n=o?Up:p.useEffect,[s,l]=(r=i(()=>e(),t))!=null?r:[null,()=>null];return n(()=>l,t),s}const Kp=U({root:{qhf8xq:"f1euv43f",Bhzewxz:"f15twtuk",oyh7mz:["f1vgc2s3","f1e31b4d"],j35jbq:["f1e31b4d","f1vgc2s3"],Bj3rh1h:"f494woh"}},{d:[".f1euv43f{position:absolute;}",".f15twtuk{top:0;}",".f1vgc2s3{left:0;}",".f1e31b4d{right:0;}",".f494woh{z-index:1000000;}"]}),nl=p.useInsertionEffect,Zp=e=>{const{targetDocument:t,dir:r}=mt(),o=Od(),i=yv(),n=Kp(),s=Fd(),l=A(s,n.root,e.className),u=o??(t==null?void 0:t.body),a=Xp(()=>{if(u===void 0||e.disabled)return[null,()=>null];const c=u.ownerDocument.createElement("div");return u.appendChild(c),[c,()=>c.remove()]},[u]);return nl?nl(()=>{if(!a)return;const c=l.split(" ").filter(Boolean);return a.classList.add(...c),a.setAttribute("dir",r),i.current=a,()=>{a.classList.remove(...c),a.removeAttribute("dir")}},[l,r,a,i]):p.useMemo(()=>{a&&(a.className=l,a.setAttribute("dir",r),i.current=a)},[l,r,a,i]),a},Yp=e=>{const{element:t,className:r}=$p(e.mountNode),o=p.useRef(null),i=Zp({disabled:!!t,className:r}),n={children:e.children,mountNode:t??i,virtualParentRootRef:o};return p.useEffect(()=>(n.virtualParentRootRef.current&&n.mountNode&&ba(n.mountNode,n.virtualParentRootRef.current),()=>{n.mountNode&&ba(n.mountNode,void 0)}),[n.virtualParentRootRef,n.mountNode]),n},Qp=e=>p.createElement("span",{hidden:!0,ref:e.virtualParentRootRef},e.mountNode&&ic.createPortal(e.children,e.mountNode)),il=e=>{const t=Yp(e);return Qp(t)};il.displayName="Portal";const Jp=e=>{ke(e);const{iconOnly:t,iconPosition:r}=e;return Ae(e.root,{children:[r!=="after"&&e.icon&&$(e.icon,{}),!t&&e.root.children,r==="after"&&e.icon&&$(e.icon,{})]})},al=p.createContext(void 0),em={};al.Provider;const tm=()=>{var e;return(e=p.useContext(al))!==null&&e!==void 0?e:em},rm=(e,t)=>{const{size:r}=tm(),{appearance:o="secondary",as:i="button",disabled:n=!1,disabledFocusable:s=!1,icon:l,iconPosition:u="before",shape:a="rounded",size:c=r??"medium"}=e,f=J(l,{elementType:"span"});return{appearance:o,disabled:n,disabledFocusable:s,iconPosition:u,shape:a,size:c,iconOnly:!!(f!=null&&f.children&&!e.children),components:{root:"button",icon:"span"},root:me(Fe(i,Av(e,{required:!0,defaultProps:{ref:t,type:"button"}})),{elementType:"button"}),icon:f}},sl={root:"fui-Button",icon:"fui-Button__icon"},om=Re("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;}}"]}),nm=Re("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);}"]),im=U({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)"}]]}),am=U({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)"}]]}),sm=U({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;}}"]}),lm=U({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;}"]}),cm=U({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);}"]}),um=e=>{const t=om(),r=nm(),o=im(),i=am(),n=sm(),s=lm(),l=cm(),{appearance:u,disabled:a,disabledFocusable:c,icon:f,iconOnly:v,iconPosition:d,shape:h,size:m}=e;return e.root.className=A(sl.root,t,u&&o[u],o[m],f&&m==="small"&&o.smallWithIcon,f&&m==="large"&&o.largeWithIcon,o[h],(a||c)&&i.base,(a||c)&&i.highContrast,u&&(a||c)&&i[u],u==="primary"&&n.primary,n[m],n[h],v&&s[m],e.root.className),e.icon&&(e.icon.className=A(sl.icon,r,!!e.root.children&&l[d],l[m],e.icon.className)),e},ll=p.forwardRef((e,t)=>{const r=rm(e,t);return um(r),Ye("useButtonStyles_unstable")(r),Jp(r)});ll.displayName="Button";const cl=p.createContext(void 0),fm=cl.Provider,ul=()=>p.useContext(cl),dm=e=>{var t,r,o,i;const{generatedControlId:n,orientation:s,required:l,size:u,validationState:a}=e,c=(t=e.label)===null||t===void 0?void 0:t.htmlFor,f=(r=e.label)===null||r===void 0?void 0:r.id,v=(o=e.validationMessage)===null||o===void 0?void 0:o.id,d=(i=e.hint)===null||i===void 0?void 0:i.id;return{field:p.useMemo(()=>({generatedControlId:n,hintId:d,labelFor:c,labelId:f,orientation:s,required:l,size:u,validationMessageId:v,validationState:a}),[n,d,c,f,s,l,u,v,a])}};function fl(e,t){return dl(ul(),e,t)}function dl(e,t,r){if(!e)return t;t={...t};const{generatedControlId:o,hintId:i,labelFor:n,labelId:s,required:l,validationMessageId:u,validationState:a}=e;if(o){var c,f;(f=(c=t).id)!==null&&f!==void 0||(c.id=o)}if(s&&(!(r!=null&&r.supportsLabelFor)||n!==t.id)){var v,d,h;(h=(v=t)[d="aria-labelledby"])!==null&&h!==void 0||(v[d]=s)}if((u||i)&&(t["aria-describedby"]=[u,i,t==null?void 0:t["aria-describedby"]].filter(Boolean).join(" ")),a==="error"){var m,k,b;(b=(m=t)[k="aria-invalid"])!==null&&b!==void 0||(m[k]=!0)}if(l)if(r!=null&&r.supportsRequired){var y,P;(P=(y=t).required)!==null&&P!==void 0||(y.required=!0)}else{var x,S,w;(w=(x=t)[S="aria-required"])!==null&&w!==void 0||(x[S]=!0)}if(r!=null&&r.supportsSize){var _,F;(F=(_=t).size)!==null&&F!==void 0||(_.size=e.size)}return t}const hm=(e,t)=>{ke(e);let{children:r}=e;return typeof r=="function"&&(r=r(dl(t.field)||{})),$(fm,{value:t==null?void 0:t.field,children:Ae(e.root,{children:[e.label&&$(e.label,{}),r,e.validationMessage&&Ae(e.validationMessage,{children:[e.validationMessageIcon&&$(e.validationMessageIcon,{}),e.validationMessage.children]}),e.hint&&$(e.hint,{})]})})},vm=(e,t)=>{const{disabled:r=!1,required:o=!1,weight:i="regular",size:n="medium"}=e;return{disabled:r,required:J(o===!0?"*":o||void 0,{defaultProps:{"aria-hidden":"true"},elementType:"span"}),weight:i,size:n,components:{root:"label",required:"span"},root:me(Fe("label",{ref:t,...e}),{elementType:"label"})}},gm=e=>(ke(e),Ae(e.root,{children:[e.root.children,e.required&&$(e.required,{})]})),hl={root:"fui-Label",required:"fui-Label__required"},pm=U({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);}"]}),mm=e=>{const t=pm();return e.root.className=A(hl.root,t.root,e.disabled&&t.disabled,t[e.size],e.weight==="semibold"&&t.semibold,e.root.className),e.required&&(e.required.className=A(hl.required,t.required,e.disabled&&t.requiredDisabled,e.required.className)),e},Tr=p.forwardRef((e,t)=>{const r=vm(e,t);return mm(r),Ye("useLabelStyles_unstable")(r),gm(r)});Tr.displayName="Label";const bm={error:p.createElement(Xd,null),warning:p.createElement(ph,null),success:p.createElement(Gd,null),none:void 0},ym=(e,t)=>{const{children:r,orientation:o="vertical",required:i=!1,validationState:n=e.validationMessage?"error":"none",size:s="medium"}=e,l=jt("field-"),u=l+"__control",a=me(Fe("div",{...e,ref:t},["children"]),{elementType:"div"}),c=J(e.label,{defaultProps:{htmlFor:u,id:l+"__label",required:i,size:s},elementType:Tr}),f=J(e.validationMessage,{defaultProps:{id:l+"__validationMessage",role:n==="error"?"alert":void 0},elementType:"div"}),v=J(e.hint,{defaultProps:{id:l+"__hint"},elementType:"div"}),d=bm[n],h=J(e.validationMessageIcon,{renderByDefault:!!d,defaultProps:{children:d},elementType:"span"});return{children:r,generatedControlId:u,orientation:o,required:i,size:s,validationState:n,components:{root:"div",label:Tr,validationMessage:"div",validationMessageIcon:"span",hint:"div"},root:a,label:c,validationMessageIcon:h,validationMessage:f,hint:v}},Nr={root:"fui-Field",label:"fui-Field__label",validationMessage:"fui-Field__validationMessage",validationMessageIcon:"fui-Field__validationMessageIcon",hint:"fui-Field__hint"},wm=U({base:{mc9l5x:"f13qh94s"},horizontal:{Budl1dq:"f2wwaib",wkccdc:"f1645dqt"},horizontalNoLabel:{uwmqm3:["f15jqgz8","fggqkej"],Budl1dq:"f1c2z91y"}},{d:[".f13qh94s{display:grid;}",".f2wwaib{grid-template-columns:33% 1fr;}",".f1645dqt{grid-template-rows:auto auto auto 1fr;}",".f15jqgz8{padding-left:33%;}",".fggqkej{padding-right:33%;}",".f1c2z91y{grid-template-columns:1fr;}"]}),km=U({base:{z8tnut:"fclwglc",Byoj8tv:"fywfov9"},large:{z8tnut:"f1sl3k7w",Byoj8tv:"f1brlhvm"},vertical:{jrapky:"fyacil5"},verticalLarge:{jrapky:"f8l5zjj"},horizontal:{t21cq0:["fkujibs","f199hnxi"],Ijaq50:"f16hsg94",nk6f5a:"f1nzqi2z"}},{d:[".fclwglc{padding-top:var(--spacingVerticalXXS);}",".fywfov9{padding-bottom:var(--spacingVerticalXXS);}",".f1sl3k7w{padding-top:1px;}",".f1brlhvm{padding-bottom:1px;}",".fyacil5{margin-bottom:var(--spacingVerticalXXS);}",".f8l5zjj{margin-bottom:var(--spacingVerticalXS);}",".fkujibs{margin-right:var(--spacingHorizontalM);}",".f199hnxi{margin-left:var(--spacingHorizontalM);}",".f16hsg94{grid-row-start:1;}",".f1nzqi2z{grid-row-end:-1;}"]}),xm=Re("r5c4z9l",null,[".r5c4z9l{margin-top:var(--spacingVerticalXXS);color:var(--colorNeutralForeground3);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]),Bm=U({error:{sj55zd:"f1hcrxcs"},withIcon:{uwmqm3:["frawy03","fg4c52"]}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".frawy03{padding-left:calc(12px + var(--spacingHorizontalXS));}",".fg4c52{padding-right:calc(12px + var(--spacingHorizontalXS));}"]}),_m=Re("ra7h1uk","r1rh6bd7",[".ra7h1uk{display:inline-block;font-size:12px;margin-left:calc(-12px - var(--spacingHorizontalXS));margin-right:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}",".r1rh6bd7{display:inline-block;font-size:12px;margin-right:calc(-12px - var(--spacingHorizontalXS));margin-left:var(--spacingHorizontalXS);line-height:0;vertical-align:-1px;}"]),Pm=U({error:{sj55zd:"f1hcrxcs"},warning:{sj55zd:"f1k5f75o"},success:{sj55zd:"ffmvakt"}},{d:[".f1hcrxcs{color:var(--colorPaletteRedForeground1);}",".f1k5f75o{color:var(--colorPaletteDarkOrangeForeground1);}",".ffmvakt{color:var(--colorPaletteGreenForeground1);}"]}),Sm=e=>{const{validationState:t}=e,r=e.orientation==="horizontal",o=wm();e.root.className=A(Nr.root,o.base,r&&o.horizontal,r&&!e.label&&o.horizontalNoLabel,e.root.className);const i=km();e.label&&(e.label.className=A(Nr.label,i.base,r&&i.horizontal,!r&&i.vertical,e.label.size==="large"&&i.large,!r&&e.label.size==="large"&&i.verticalLarge,e.label.className));const n=_m(),s=Pm();e.validationMessageIcon&&(e.validationMessageIcon.className=A(Nr.validationMessageIcon,n,t!=="none"&&s[t],e.validationMessageIcon.className));const l=xm(),u=Bm();e.validationMessage&&(e.validationMessage.className=A(Nr.validationMessage,l,t==="error"&&u.error,!!e.validationMessageIcon&&u.withIcon,e.validationMessage.className)),e.hint&&(e.hint.className=A(Nr.hint,l,e.hint.className))},vl=p.forwardRef((e,t)=>{const r=ym(e,t);Sm(r);const o=dm(r);return hm(r,o)});vl.displayName="Field";const Qe=Bs({activeOption:void 0,appearance:"outline",focusVisible:!1,open:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){},setOpen(){},size:"medium"});Qe.Provider;const ht=Bs({activeOption:void 0,focusVisible:!1,multiselect:!1,registerOption(){return()=>{}},selectedOptions:[],selectOption(){},setActiveOption(){}});ht.Provider;function Cm(e){const{activeOption:t,appearance:r,focusVisible:o,open:i,registerOption:n,selectedOptions:s,selectOption:l,setActiveOption:u,setOpen:a,size:c}=e;return{combobox:{activeOption:t,appearance:r,focusVisible:o,open:i,registerOption:n,selectedOptions:s,selectOption:l,setActiveOption:u,setOpen:a,size:c}}}function zm(e){const t=_s(Qe),{activeOption:r,focusVisible:o,multiselect:i,registerOption:n,selectedOptions:s,selectOption:l,setActiveOption:u}=e,a=Me(Qe,v=>v.registerOption);return{listbox:{activeOption:r,focusVisible:o,multiselect:i,registerOption:t?a:n,selectedOptions:s,selectOption:l,setActiveOption:u}}}function vo(e,t={}){const{open:r=!0,multiselect:o=!1}=t,i=e.key,{altKey:n,ctrlKey:s,key:l,metaKey:u}=e;return l.length===1&&i!==yt&&!n&&!s&&!u?"Type":r?i===yn&&n||i===Yt||!o&&i===yt?"CloseSelect":o&&i===yt?"Select":i===Fv?"Close":i===Ps?"Next":i===yn?"Previous":i===Ev?"First":i===Nv?"Last":i===Rv?"PageUp":i===jv?"PageDown":i===Cv?"Tab":"None":i===Ps||i===yn||i===Yt||i===yt?"Open":"None"}function gl(e,t,r){switch(e){case"Next":return Math.min(r,t+1);case"Previous":return Math.max(0,t-1);case"First":return 0;case"Last":return r;case"PageDown":return Math.min(r,t+10);case"PageUp":return Math.max(0,t-10);default:return t}}const pl=()=>{const e=p.useRef([]),t=p.useMemo(()=>({getCount:()=>e.current.length,getOptionAtIndex:a=>{var c;return(c=e.current[a])===null||c===void 0?void 0:c.option},getIndexOfId:a=>e.current.findIndex(c=>c.option.id===a),getOptionById:a=>{const c=e.current.find(f=>f.option.id===a);return c==null?void 0:c.option},getOptionsMatchingText:a=>e.current.filter(c=>a(c.option.text)).map(c=>c.option),getOptionsMatchingValue:a=>e.current.filter(c=>a(c.option.value)).map(c=>c.option)}),[]),r=p.useCallback((o,i)=>{var n;const s=e.current.findIndex(l=>!l.element||!i?!1:l.option.id===o.id?!0:l.element.compareDocumentPosition(i)&Node.DOCUMENT_POSITION_PRECEDING);if(((n=e.current[s])===null||n===void 0?void 0:n.option.id)!==o.id){const l={element:i,option:o};s===-1?e.current=[...e.current,l]:e.current.splice(s,0,l)}return()=>{e.current=e.current.filter(l=>l.option.id!==o.id)}},[]);return{...t,options:e.current.map(o=>o.option),registerOption:r}};function Tm(e){const{activeOption:t}=e,r=p.useRef(null);return p.useEffect(()=>{if(r.current&&t&&tn()){const o=r.current.querySelector(`#${t.id}`);if(!o)return;const{offsetHeight:i,offsetTop:n}=o,{offsetHeight:s,scrollTop:l}=r.current,u=n<l,a=n+i>l+s,c=2;u?r.current.scrollTo(0,n-c):a&&r.current.scrollTo(0,n-s+i+c)}},[t]),r}const ml=e=>{const{defaultSelectedOptions:t,multiselect:r,onOptionSelect:o}=e,[i,n]=Zt({state:e.selectedOptions,defaultState:t,initialState:[]}),s=gt.useCallback((u,a)=>{if(a.disabled)return;let c=[a.value];if(r){const f=i.findIndex(v=>v===a.value);f>-1?c=[...i.slice(0,f),...i.slice(f+1)]:c=[...i,a.value]}n(c),o==null||o(u,{optionValue:a.value,optionText:a.text,selectedOptions:c})},[o,r,i,n]);return{clearSelection:u=>{n([]),o==null||o(u,{optionValue:void 0,optionText:void 0,selectedOptions:[]})},selectOption:s,selectedOptions:i}},Nm=(e,t)=>{const{multiselect:r}=e,o=pl(),{getCount:i,getOptionAtIndex:n,getIndexOfId:s}=o,{clearSelection:l,selectedOptions:u,selectOption:a}=ml(e),[c,f]=p.useState(),[v,d]=p.useState(!1),h=R=>{const V=vo(R,{open:!0}),G=i()-1,O=c?s(c.id):-1;let B=O;switch(V){case"Select":case"CloseSelect":c&&a(R,c);break;default:B=gl(V,O,G)}B!==O&&(R.preventDefault(),f(n(B)),d(!0))},m=R=>{d(!1)},k=_s(Qe),b=Me(Qe,R=>R.activeOption),y=Me(Qe,R=>R.focusVisible),P=Me(Qe,R=>R.selectedOptions),x=Me(Qe,R=>R.selectOption),S=Me(Qe,R=>R.setActiveOption),w=k?{activeOption:b,focusVisible:y,selectedOptions:P,selectOption:x,setActiveOption:S}:{activeOption:c,focusVisible:v,selectedOptions:u,selectOption:a,setActiveOption:f},_={components:{root:"div"},root:me(Fe("div",{ref:t,role:r?"menu":"listbox","aria-activedescendant":k||c==null?void 0:c.id,"aria-multiselectable":r,tabIndex:0,...e}),{elementType:"div"}),multiselect:r,clearSelection:l,...o,...w},F=Tm(_);return _.root.ref=rt(_.root.ref,F),_.root.onKeyDown=qe(xe(_.root.onKeyDown,h)),_.root.onMouseOver=qe(xe(_.root.onMouseOver,m)),_},Em=(e,t)=>(ke(e),$(ht.Provider,{value:t.listbox,children:$(e.root,{})})),jm={root:"fui-Listbox"},Rm=U({root:{De3pzq:"fxugw4r",B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Beiy3e4:"f1vx9l62",Bf4jedk:"f3hsy1e",Bmxbyg5:"f5zp4f",Bpd4iqm:"fpvhumw",oeaueh:"f1yog68k",Bw0xxkn:"f13sgyd8",z8tnut:"f1x4af0m",z189sj:["f7x41pl","fruq291"],Byoj8tv:"fd55psn",uwmqm3:["fruq291","f7x41pl"],Belr9w4:"fiut8dr"}},{d:[".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f1ewtqcl{box-sizing:border-box;}",".f22iagw{display:flex;}",".f1vx9l62{flex-direction:column;}",".f3hsy1e{min-width:160px;}",".f5zp4f{overflow-y:auto;}",".fpvhumw{outline-width:1px;}",".f1yog68k{outline-style:solid;}",".f13sgyd8{outline-color:var(--colorTransparentStroke);}",".f1x4af0m{padding-top:var(--spacingHorizontalXS);}",".f7x41pl{padding-right:var(--spacingHorizontalXS);}",".fruq291{padding-left:var(--spacingHorizontalXS);}",".fd55psn{padding-bottom:var(--spacingHorizontalXS);}",".fiut8dr{row-gap:var(--spacingHorizontalXXS);}"]}),Fm=e=>{const t=Rm();return e.root.className=A(jm.root,t.root,e.root.className),e},qn=p.forwardRef((e,t)=>{const r=Nm(e,t),o=zm(r);return Fm(r),Ye("useListboxStyles_unstable")(r),Em(r,o)});qn.displayName="Listbox";function qm(e,t){if(e!==void 0)return e;let r="",o=!1;return p.Children.forEach(t,i=>{typeof i=="string"?r+=i:o=!0}),o&&console.warn("Provide a `text` prop to Option components when they contain non-string children."),r}const Am=(e,t)=>{const{children:r,disabled:o,text:i,value:n}=e,s=p.useRef(null),l=qm(i,r),u=n??l,a=jt("fluent-option",e.id),c=p.useMemo(()=>({id:a,disabled:o,text:l,value:u}),[a,o,l,u]),f=Me(ht,w=>w.focusVisible),v=Me(ht,w=>w.multiselect),d=Me(ht,w=>w.registerOption),h=Me(ht,w=>{const _=w.selectedOptions;return!!u&&!!_.find(F=>F===u)}),m=Me(ht,w=>w.selectOption),k=Me(ht,w=>w.setActiveOption),b=Me(Qe,w=>w.setOpen),y=Me(ht,w=>{var _,F;return((_=w.activeOption)===null||_===void 0?void 0:_.id)!==void 0&&((F=w.activeOption)===null||F===void 0?void 0:F.id)===a});let P=p.createElement(Vd,null);v&&(P=h?p.createElement(Ud,null):"");const x=w=>{var _;if(o){w.preventDefault();return}k(c),v||b==null||b(w,!1),m(w,c),(_=e.onClick)===null||_===void 0||_.call(e,w)};p.useEffect(()=>{if(a&&s.current)return d(c,s.current)},[a,c,d]);const S=v?{role:"menuitemcheckbox","aria-checked":h}:{role:"option","aria-selected":h};return{components:{root:"div",checkIcon:"span"},root:me(Fe("div",{ref:rt(t,s),"aria-disabled":o?"true":void 0,id:a,...S,...e,onClick:x}),{elementType:"div"}),checkIcon:J(e.checkIcon,{renderByDefault:!0,defaultProps:{"aria-hidden":"true",children:P},elementType:"span"}),active:y,disabled:o,focusVisible:f,multiselect:v,selected:h}},Dm=e=>(ke(e),Ae(e.root,{children:[e.checkIcon&&$(e.checkIcon,{}),e.root.children]})),bl={root:"fui-Option",checkIcon:"fui-Option__checkIcon"},Om=U({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],sj55zd:"f19n0e5",i8kkvl:"f1ufnopg",Bceei9c:"f1k6fduh",mc9l5x:"f22iagw",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bg96gwp:"f1i3iumi",z8tnut:"fp2oml8",z189sj:["f1vdfbxk","f1f5gg8d"],Byoj8tv:"f1tdddsa",uwmqm3:["f1f5gg8d","f1vdfbxk"],qhf8xq:"f10pi13n",Jwef8y:"f1knas48",ecr2s2:"fb40n2d"},active:{Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",B80jsxd:"f1nwj1ja",t2ki1e:"ffmd2fr",Bm2nyyq:"f8rth92",Barhvk9:["flthirb","ftkbnf5"],Bw17bha:"f1lh990p",vfts7:["ftkbnf5","flthirb"],xrcqlc:"fc9v8v1",Ihftqj:["f1mwfetb","f18mat8f"],Bcgy8vk:"f1cb6c3",Bhxzhr1:["f18mat8f","f1mwfetb"],B3778ie:["f1ibwz09","f1kp91vd"],d9w3h3:["f1kp91vd","f1ibwz09"],Bl18szs:["f1pix4dl","f13nd1z4"],B4j8arr:["f13nd1z4","f1pix4dl"],B0n5ga8:"f1qw5sz7",s924m2:["f19va7ni","f1a9v3mw"],B1q35kw:"fkkziue",Gp14am:["f1a9v3mw","f19va7ni"],bn5sak:"f1a97anr",By385i5:"f5226zp",Eqx8gd:["fa2bdqt","fei6g0k"],B1piin3:["fei6g0k","fa2bdqt"]},disabled:{sj55zd:"f1s2aq7o",Jwef8y:"f9ql6rf",ecr2s2:"fgj9um3",Bbusuzp:"f1dcs8yz"},selected:{},checkIcon:{Be2twd7:"fod5ikn",Frg6f3:["f18b9hdq","fn6qj8t"],t21cq0:["f1xk557c","f1h9en5y"],Bcdw1i0:"fd7fpy0",Bo70h7d:"fvc9v3g"},selectedCheck:{Bcdw1i0:"f1022m68"},multiselectCheck:{B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fq0vr37",h3c5rm:["f1byw159","f11cr0be"],B9xav0g:"f1c1zstj",zhjwy3:["f11cr0be","f1byw159"],Bbmb7ep:["f1g3puop","fi2rrw2"],Beyfa6y:["fi2rrw2","f1g3puop"],B7oj6ja:["f1rstyi9","f1s4nn1u"],Btl43ni:["f1s4nn1u","f1rstyi9"],B7ck84d:"f1ewtqcl",mc9l5x:"f22iagw",Bt984gj:"f122n59",Brf1p80:"f4d9j23",Bkfmm31:"f1w9h62z",Be2twd7:"f1ugzwwg",Bqenvij:"fd461yt",a9b677:"fjw5fx7",Bcdw1i0:"f1022m68"},selectedMultiselectCheck:{De3pzq:"ftywsgz",sj55zd:"fqpbvvt",g2u3we:"f3xi7mh",h3c5rm:["ftovhe4","f1wczvin"],B9xav0g:"f68vbr6",zhjwy3:["f1wczvin","ftovhe4"]},checkDisabled:{sj55zd:"f1s2aq7o",Bbusuzp:"f1dcs8yz"}},{d:[".f122n59{align-items:center;}",".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);}",".f19n0e5{color:var(--colorNeutralForeground1);}",".f1ufnopg{column-gap:var(--spacingHorizontalXS);}",".f1k6fduh{cursor:pointer;}",".f22iagw{display:flex;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fp2oml8{padding-top:var(--spacingVerticalSNudge);}",".f1vdfbxk{padding-right:var(--spacingHorizontalS);}",".f1f5gg8d{padding-left:var(--spacingHorizontalS);}",".f1tdddsa{padding-bottom:var(--spacingVerticalSNudge);}",".f10pi13n{position:relative;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1nwj1ja::after{pointer-events:none;}",".ffmd2fr::after{z-index:1;}",".f8rth92::after{border-top-style:solid;}",".flthirb::after{border-right-style:solid;}",".ftkbnf5::after{border-left-style:solid;}",".f1lh990p::after{border-bottom-style:solid;}",".fc9v8v1::after{border-top-width:2px;}",".f1mwfetb::after{border-right-width:2px;}",".f18mat8f::after{border-left-width:2px;}",".f1cb6c3::after{border-bottom-width:2px;}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1pix4dl::after{border-top-right-radius:var(--borderRadiusMedium);}",".f13nd1z4::after{border-top-left-radius:var(--borderRadiusMedium);}",".f1qw5sz7::after{border-top-color:var(--colorStrokeFocus2);}",".f19va7ni::after{border-right-color:var(--colorStrokeFocus2);}",".f1a9v3mw::after{border-left-color:var(--colorStrokeFocus2);}",".fkkziue::after{border-bottom-color:var(--colorStrokeFocus2);}",".f1a97anr::after{top:-2px;}",".f5226zp::after{bottom:-2px;}",".fa2bdqt::after{left:-2px;}",".fei6g0k::after{right:-2px;}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".f18b9hdq{margin-left:calc(var(--spacingHorizontalXXS) * -1);}",".fn6qj8t{margin-right:calc(var(--spacingHorizontalXXS) * -1);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".fd7fpy0{visibility:hidden;}",".fvc9v3g svg{display:block;}",".f1022m68{visibility:visible;}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fq0vr37{border-top-color:var(--colorNeutralStrokeAccessible);}",".f1byw159{border-right-color:var(--colorNeutralStrokeAccessible);}",".f11cr0be{border-left-color:var(--colorNeutralStrokeAccessible);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".f1g3puop{border-bottom-right-radius:var(--borderRadiusSmall);}",".fi2rrw2{border-bottom-left-radius:var(--borderRadiusSmall);}",".f1rstyi9{border-top-right-radius:var(--borderRadiusSmall);}",".f1s4nn1u{border-top-left-radius:var(--borderRadiusSmall);}",".f1ewtqcl{box-sizing:border-box;}",".f4d9j23{justify-content:center;}",".f1w9h62z{fill:currentColor;}",".f1ugzwwg{font-size:12px;}",".fd461yt{height:16px;}",".fjw5fx7{width:16px;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fqpbvvt{color:var(--colorNeutralForegroundInverted);}",".f3xi7mh{border-top-color:var(--colorCompoundBrandBackground);}",".ftovhe4{border-right-color:var(--colorCompoundBrandBackground);}",".f1wczvin{border-left-color:var(--colorCompoundBrandBackground);}",".f68vbr6{border-bottom-color:var(--colorCompoundBrandBackground);}"],h:[".f1knas48:hover{background-color:var(--colorNeutralBackground1Hover);}",".f9ql6rf:hover{background-color:var(--colorTransparentBackground);}"],a:[".fb40n2d:active{background-color:var(--colorNeutralBackground1Pressed);}",".fgj9um3:active{background-color:var(--colorTransparentBackground);}"],m:[["@media (forced-colors: active){.f1dcs8yz{color:GrayText;}}",{m:"(forced-colors: active)"}]]}),Im=e=>{const{active:t,disabled:r,focusVisible:o,multiselect:i,selected:n}=e,s=Om();return e.root.className=A(bl.root,s.root,t&&o&&s.active,r&&s.disabled,n&&s.selected,e.root.className),e.checkIcon&&(e.checkIcon.className=A(bl.checkIcon,s.checkIcon,i&&s.multiselectCheck,n&&s.selectedCheck,n&&i&&s.selectedMultiselectCheck,r&&s.checkDisabled,e.checkIcon.className)),e},yl=p.forwardRef((e,t)=>{const r=Am(e,t);return Im(r),Ye("useOptionStyles_unstable")(r),Dm(r)});yl.displayName="Option";const Mm=e=>{const{appearance:t="outline",children:r,editable:o=!1,inlinePopup:i=!1,mountNode:n=void 0,multiselect:s,onOpenChange:l,size:u="medium"}=e,a=pl(),{getOptionAtIndex:c,getOptionsMatchingValue:f}=a,[v,d]=p.useState(),[h,m]=p.useState(!1),[k,b]=p.useState(!1),y=p.useRef(!1),P=ml(e),{selectedOptions:x}=P,S=wd(),[w,_]=Zt({state:e.value,initialState:void 0}),F=p.useMemo(()=>{if(w!==void 0)return w;if(S&&e.defaultValue!==void 0)return e.defaultValue;const O=f(B=>x.includes(B)).map(B=>B.text);return s?o?"":O.join(", "):O[0]},[w,o,f,s,e.defaultValue,x]),[R,V]=Zt({state:e.open,defaultState:e.defaultOpen,initialState:!1}),G=p.useCallback((O,B)=>{l==null||l(O,{open:B}),V(B)},[l,V]);return p.useEffect(()=>{if(R&&!v)if(!s&&x.length>0){const O=f(B=>B===x[0]).pop();O&&d(O)}else d(c(0));else R||d(void 0)},[R,r]),{...a,...P,activeOption:v,appearance:t,focusVisible:h,hasFocus:k,ignoreNextBlur:y,inlinePopup:i,mountNode:n,open:R,setActiveOption:d,setFocusVisible:m,setHasFocus:b,setOpen:G,setValue:_,size:u,value:F}};function Lm(e){const{positioning:t}=e,o={position:"below",align:"start",offset:{crossAxis:0,mainAxis:2},fallbackPositions:["above","after","after-top","before","before-top"],matchTargetSize:"width",...Js(t)},{targetRef:i,containerRef:n}=Hp(o);return[n,i]}function Hm(e,t,r,o,i){const{multiselect:n}=e,{activeOption:s,getCount:l,getIndexOfId:u,getOptionAtIndex:a,ignoreNextBlur:c,open:f,selectOption:v,setActiveOption:d,setFocusVisible:h,setHasFocus:m,setOpen:k}=t,b=p.useRef(null),y=p.useRef(null),P=jt("fluent-listbox",i==null?void 0:i.id),x=rt(i==null?void 0:i.ref,y),S=i&&{id:P,multiselect:n,tabIndex:void 0,...i,ref:x},w={"aria-expanded":f,"aria-activedescendant":f?s==null?void 0:s.id:void 0,role:"combobox",...o,ref:rt(r,o==null?void 0:o.ref,b)},_=qe(xe(B=>{var L;(L=b.current)===null||L===void 0||L.focus()},S==null?void 0:S.onClick)),F=qe(xe(B=>{h(!1)},S==null?void 0:S.onMouseOver)),{targetDocument:R}=mt(),V=qe(B=>{var L;!((L=y.current)===null||L===void 0)&&L.contains(B.target)||k(B,!1),R==null||R.removeEventListener("mouseup",V)}),G=qe(xe(B=>{c.current=!0,R==null||R.addEventListener("mouseup",V)},S==null?void 0:S.onMouseDown)),O=qe(xe(B=>{c.current=!1},S==null?void 0:S.onMouseUp));return S&&(S.onClick=_,S.onMouseOver=F,S.onMouseDown=G,S.onMouseUp=O),w.onBlur=xe(B=>{c.current||k(B,!1),c.current=!1,m(!1)},w.onBlur),w.onClick=xe(B=>{k(B,!f)},w.onClick),w.onFocus=xe(B=>{m(!0)},w.onFocus),w.onKeyDown=xe(B=>{const L=vo(B,{open:f,multiselect:n}),Y=l()-1,te=s?u(s.id):-1;let ne=te;switch(L){case"Open":B.preventDefault(),h(!0),k(B,!0);break;case"Close":B.stopPropagation(),B.preventDefault(),k(B,!1);break;case"CloseSelect":!n&&!(s!=null&&s.disabled)&&k(B,!1);case"Select":s&&v(B,s),B.preventDefault();break;case"Tab":!n&&s&&v(B,s);break;default:ne=gl(L,te,Y)}ne!==te&&(B.preventDefault(),d(a(ne)),h(!0))},w.onKeyDown),w.onMouseOver=xe(B=>{h(!1)},w.onMouseOver),[w,S]}const Vm=(e,t)=>{var r;e=fl(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const o=Mm({...e,editable:!0}),{activeOption:i,clearSelection:n,getIndexOfId:s,getOptionsMatchingText:l,hasFocus:u,open:a,selectOption:c,selectedOptions:f,setActiveOption:v,setFocusVisible:d,setOpen:h,setValue:m,value:k}=o,[b,y]=Lm(e),{disabled:P,freeform:x,inlinePopup:S,multiselect:w}=e,_=jt("combobox-"),{primary:F,root:R}=pa({props:e,primarySlotTagName:"input",excludedPropNames:["children","size"]}),V=p.useRef(null),G=p.useRef(null),[O,B]=p.useState(!1),L=p.useRef(!1),Y=Q=>{const T=Q==null?void 0:Q.trim().toLowerCase();if(!T||T.length===0)return;const _e=l(He=>He.toLowerCase().indexOf(T)===0);if(_e.length>1&&i){const He=s(i.id),Xe=_e.find(Bt=>s(Bt.id)>=He);return Xe??_e[0]}var Ne;return(Ne=_e[0])!==null&&Ne!==void 0?Ne:void 0};o.selectOption=(Q,T)=>{m(void 0),c(Q,T)};const te=Q=>{!o.open&&!x&&(k&&i&&k.trim().toLowerCase()===(i==null?void 0:i.text.toLowerCase())&&o.selectOption(Q,i),m(void 0))};o.setOpen=(Q,T)=>{P||(!T&&!x&&m(void 0),h(Q,T))};const ne=Q=>{const T=Q.target.value;o.setValue(T);const ie=Y(T);v(ie),d(!0),!w&&f.length===1&&(T.length<1||!ie)&&n(Q)};let ae,de;ae=me(e.input,{defaultProps:{ref:rt((r=e.input)===null||r===void 0?void 0:r.ref,G),type:"text",value:k??"",...F},elementType:"input"});const Le=ae.onKeyDown;ae.onChange=xe(ae.onChange,ne),ae.onBlur=xe(ae.onBlur,te),de=a||u?J(e.listbox,{renderByDefault:!0,defaultProps:{children:e.children},elementType:qn}):void 0,[ae,de]=Hm(e,o,t,ae,de);const N=rt(de==null?void 0:de.ref,b);O&&(ae["aria-activedescendant"]=void 0),de&&(de.ref=N);const I=me(e.root,{defaultProps:{"aria-owns":S||de==null?void 0:de.id,...R},elementType:"div"});I.ref=rt(I.ref,y);const q={components:{root:"div",input:"input",expandIcon:"span",listbox:qn},root:I,input:ae,listbox:de,expandIcon:J(e.expandIcon,{renderByDefault:!0,defaultProps:{"aria-expanded":a,children:p.createElement($d,null),role:"button"},elementType:"span"}),...o};q.root.ref=rt(q.root.ref,V);const re=q.input.onKeyDown;q.input.onKeyDown=qe(Q=>{!a&&vo(Q)==="Type"&&o.setOpen(Q,!0),Q.key===zv||Q.key===Tv?B(!0):B(!1);const T=vo(Q,{open:a,multiselect:w});if(T==="Type"?L.current=!0:(T==="Open"&&Q.key!==" "||T==="Next"||T==="Previous"||T==="First"||T==="Last"||T==="PageUp"||T==="PageDown")&&(L.current=!1),x&&(L.current||!a)&&Q.key===" "){Le==null||Le(Q);return}re==null||re(Q)});const{onMouseDown:he,onClick:Se}=q.expandIcon||{},Ce=qe(xe(he,()=>{a&&(o.ignoreNextBlur.current=!0)})),ve=qe(xe(Se,Q=>{var T;q.setOpen(Q,!q.open),(T=G.current)===null||T===void 0||T.focus(),d(!1)}));if(q.expandIcon){q.expandIcon.onMouseDown=Ce,q.expandIcon.onClick=ve;const Q=q.expandIcon["aria-label"]||q.expandIcon["aria-labelledby"],T="Open";if(!Q)if(e["aria-labelledby"]){var ge;const ie=(ge=q.expandIcon.id)!==null&&ge!==void 0?ge:`${_}-chevron`,_e=`${ie} ${q.input["aria-labelledby"]}`;q.expandIcon["aria-label"]=T,q.expandIcon.id=ie,q.expandIcon["aria-labelledby"]=_e}else e["aria-label"]?q.expandIcon["aria-label"]=`${T} ${e["aria-label"]}`:q.expandIcon["aria-label"]=T}return q},$m=(e,t)=>(ke(e),$(e.root,{children:Ae(Qe.Provider,{value:t.combobox,children:[$(e.input,{}),e.expandIcon&&$(e.expandIcon,{}),e.listbox&&(e.inlinePopup?$(e.listbox,{}):$(il,{mountNode:e.mountNode,children:$(e.listbox,{})}))]})})),go={root:"fui-Combobox",input:"fui-Combobox__input",expandIcon:"fui-Combobox__expandIcon",listbox:"fui-Combobox__listbox"},Wm=U({root:{Bt984gj:"f122n59",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],B7ck84d:"f1ewtqcl",i8kkvl:"f14mj54c",mc9l5x:"fwk3njj",Budl1dq:"fz17x9o",Brf1p80:"f1869bpl",Bf4jedk:"f1exfvgq",qhf8xq:"f10pi13n",Bbr2w1p:"f14a1fxs",Bduesf4:"f3e99gv",Bpq79vn:"fhljsf7",li1rpt:"f1gw3sf2",Bsft5z2:"f13zj6fq",E3zdtr:"f1mdlcz9",Eqx8gd:["f1a7op3","f1cjjd47"],By385i5:"f1gboi2j",B1piin3:["f1cjjd47","f1a7op3"],Dlnsje:"f145g4dw",d9w3h3:["f1kp91vd","f1ibwz09"],B3778ie:["f1ibwz09","f1kp91vd"],Bcgy8vk:"f14pi962",Bw17bha:"f1lh990p",B1q35kw:"f1jc6hxc",Gjdm7m:"f13evtba",b1kco5:"f1yk9hq",Ba2ppi3:"fhwpy7i",F2fol1:"f14ee0xe",lck23g:"f1xhbsuh",df92cz:"fv8e3ye",I188md:"ftb5wc6",umuwi5:"fjw5xc1",Blcqepd:"f1xdyd5c",nplu4u:"fatpbeo",Bioka5o:"fb7uyps",H713fs:"f1cmft4k",B9ooomg:"f1x58t8o",Bercvud:"f1ibeo51"},listbox:{E5pizo:"f1hg901r",Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"],Bxyxcbc:"fmmk62d"},listboxCollapsed:{mc9l5x:"fjseox"},small:{z189sj:["fdw0yi8","fk8j09s"]},medium:{z189sj:["f11gcy0p","f1ng84yb"]},large:{i8kkvl:"f1rjii52",z189sj:["fw5db7e","f1uw59to"]},outline:{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fj3muxo",h3c5rm:["f1akhkt","f1lxtadh"],B9xav0g:"f1c1zstj",zhjwy3:["f1lxtadh","f1akhkt"]},outlineInteractive:{Bgoe8wy:"fvcxoqz",Bwzppfd:["f1ub3y4t","f1m52nbi"],oetu4i:"flmw63s",gg5e9n:["f1m52nbi","f1ub3y4t"],B6oc9vd:"fvs00aa",ak43y8:["f1assf6x","f4ruux4"],wmxk5l:"fqhmt4z",B50zh58:["f4ruux4","f1assf6x"]},underline:{De3pzq:"f1c21dwh",Bn0qgzm:"f1vxd6vx",oivjwe:"fg706s2",B9xav0g:"f1c1zstj",Bbmb7ep:["f1krrbdw","f1deotkl"],Beyfa6y:["f1deotkl","f1krrbdw"],B7oj6ja:["f10ostut","f1ozlkrg"],Btl43ni:["f1ozlkrg","f10ostut"]},"filled-lighter":{De3pzq:"fxugw4r",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},"filled-darker":{De3pzq:"f16xq7d1",B4j52fo:"f192inf7",Bekrc4i:["f5tn483","f1ojsxk5"],Bn0qgzm:"f1vxd6vx",ibv6hh:["f1ojsxk5","f5tn483"],icvyot:"fzkkow9",vrafjx:["fcdblym","fjik90z"],oivjwe:"fg706s2",wvpqe5:["fjik90z","fcdblym"],g2u3we:"fghlq4f",h3c5rm:["f1gn591s","fjscplz"],B9xav0g:"fb073pr",zhjwy3:["fjscplz","f1gn591s"]},invalid:{tvckwq:"fs4k3qj",gk2u95:["fcee079","fmyw78r"],hhx65j:"f1fgmyf4",Bxowmz0:["fmyw78r","fcee079"]},invalidUnderline:{hhx65j:"f1fgmyf4"},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"]}},{d:[".f122n59{align-items:center;}",".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);}",".f1ewtqcl{box-sizing:border-box;}",".f14mj54c{column-gap:var(--spacingHorizontalXXS);}",".fwk3njj{display:inline-grid;}",".fz17x9o{grid-template-columns:1fr auto;}",".f1869bpl{justify-content:space-between;}",".f1exfvgq{min-width:250px;}",".f10pi13n{position:relative;}",".f1gw3sf2::after{box-sizing:border-box;}",'.f13zj6fq::after{content:"";}',".f1mdlcz9::after{position:absolute;}",".f1a7op3::after{left:-1px;}",".f1cjjd47::after{right:-1px;}",".f1gboi2j::after{bottom:-1px;}",".f145g4dw::after{height:max(2px, var(--borderRadiusMedium));}",".f1kp91vd::after{border-bottom-left-radius:var(--borderRadiusMedium);}",".f1ibwz09::after{border-bottom-right-radius:var(--borderRadiusMedium);}",".f14pi962::after{border-bottom-width:var(--strokeWidthThick);}",".f1lh990p::after{border-bottom-style:solid;}",".f1jc6hxc::after{border-bottom-color:var(--colorCompoundBrandStroke);}",".f13evtba::after{clip-path:inset(calc(100% - 2px) 0 0 0);}",".f1yk9hq::after{transform:scaleX(0);}",".fhwpy7i::after{transition-property:transform;}",".f14ee0xe::after{transition-duration:var(--durationUltraFast);}",".f1xhbsuh::after{transition-delay:var(--curveAccelerateMid);}",".f1hg901r{box-shadow:var(--shadow16);}",".fmmk62d{max-height:80vh;}",".fjseox{display:none;}",".fdw0yi8{padding-right:var(--spacingHorizontalSNudge);}",".fk8j09s{padding-left:var(--spacingHorizontalSNudge);}",".f11gcy0p{padding-right:var(--spacingHorizontalMNudge);}",".f1ng84yb{padding-left:var(--spacingHorizontalMNudge);}",".f1rjii52{column-gap:var(--spacingHorizontalSNudge);}",".fw5db7e{padding-right:var(--spacingHorizontalM);}",".f1uw59to{padding-left:var(--spacingHorizontalM);}",".fxugw4r{background-color:var(--colorNeutralBackground1);}",".f192inf7{border-top-width:var(--strokeWidthThin);}",".f5tn483{border-right-width:var(--strokeWidthThin);}",".f1ojsxk5{border-left-width:var(--strokeWidthThin);}",".f1vxd6vx{border-bottom-width:var(--strokeWidthThin);}",".fzkkow9{border-top-style:solid;}",".fcdblym{border-right-style:solid;}",".fjik90z{border-left-style:solid;}",".fg706s2{border-bottom-style:solid;}",".fj3muxo{border-top-color:var(--colorNeutralStroke1);}",".f1akhkt{border-right-color:var(--colorNeutralStroke1);}",".f1lxtadh{border-left-color:var(--colorNeutralStroke1);}",".f1c1zstj{border-bottom-color:var(--colorNeutralStrokeAccessible);}",".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;}",".fghlq4f{border-top-color:var(--colorTransparentStroke);}",".f1gn591s{border-right-color:var(--colorTransparentStroke);}",".fjscplz{border-left-color:var(--colorTransparentStroke);}",".fb073pr{border-bottom-color:var(--colorTransparentStroke);}",".f16xq7d1{background-color:var(--colorNeutralBackground3);}",".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);}",".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);}"],w:[".f14a1fxs:focus-within{outline-width:2px;}",".f3e99gv:focus-within{outline-style:solid;}",".fhljsf7:focus-within{outline-color:transparent;}",".fjw5xc1:focus-within::after{transform:scaleX(1);}",".f1xdyd5c:focus-within::after{transition-property:transform;}",".fatpbeo:focus-within::after{transition-duration:var(--durationNormal);}",".fb7uyps:focus-within::after{transition-delay:var(--curveDecelerateMid);}",".f1ibeo51:focus-within:active::after{border-bottom-color:var(--colorCompoundBrandStrokePressed);}"],m:[["@media screen and (prefers-reduced-motion: reduce){.fv8e3ye::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.ftb5wc6::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1cmft4k:focus-within::after{transition-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f1x58t8o:focus-within::after{transition-delay:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@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)"}]],h:[".fvcxoqz:hover{border-top-color:var(--colorNeutralStroke1Hover);}",".f1ub3y4t:hover{border-right-color:var(--colorNeutralStroke1Hover);}",".f1m52nbi:hover{border-left-color:var(--colorNeutralStroke1Hover);}",".flmw63s:hover{border-bottom-color:var(--colorNeutralStrokeAccessible);}"],a:[".fvs00aa:active{border-top-color:var(--colorNeutralStroke1Pressed);}",".f1assf6x:active{border-right-color:var(--colorNeutralStroke1Pressed);}",".f4ruux4:active{border-left-color:var(--colorNeutralStroke1Pressed);}",".fqhmt4z:active{border-bottom-color:var(--colorNeutralStrokeAccessible);}"]}),Um=U({input:{De3pzq:"f1c21dwh",B4j52fo:"fre7gi1",Bekrc4i:["f1358rze","f1rvrf73"],Bn0qgzm:"fqdk4by",ibv6hh:["f1rvrf73","f1358rze"],sj55zd:"f19n0e5",Bahqtrf:"fk6fouc",Brovlpu:"ftqa4ok",yvdlaj:"fwyc1cq",B3o7kgh:"f13ta7ih"},small:{Bqenvij:"f50nw0v",Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1xile11","fqznh8f"]},medium:{Bqenvij:"f1tvdnth",Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["f1e60jzv","f135dnwl"]},large:{Bqenvij:"f1ihhdec",Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"figsok6",Bg96gwp:"faaz57k",z8tnut:"f1g0x7ka",z189sj:["fhxju0i","f1cnd47f"],Byoj8tv:"f1qch9an",uwmqm3:["fnphzt9","flt1dlf"]},disabled:{sj55zd:"f1s2aq7o",De3pzq:"f1c21dwh",Bceei9c:"fdrzuqr",yvdlaj:"fahhnxm"}},{d:[".f1c21dwh{background-color:var(--colorTransparentBackground);}",".fre7gi1{border-top-width:0;}",".f1358rze{border-right-width:0;}",".f1rvrf73{border-left-width:0;}",".fqdk4by{border-bottom-width:0;}",".f19n0e5{color:var(--colorNeutralForeground1);}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fwyc1cq::-webkit-input-placeholder{color:var(--colorNeutralForeground4);}",".fwyc1cq::-moz-placeholder{color:var(--colorNeutralForeground4);}",".f13ta7ih::-webkit-input-placeholder{opacity:1;}",".f13ta7ih::-moz-placeholder{opacity:1;}",".f50nw0v{height:22px;}",".fy9rknc{font-size:var(--fontSizeBase200);}",".figsok6{font-weight:var(--fontWeightRegular);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".f1g0x7ka{padding-top:0;}",".fhxju0i{padding-right:0;}",".f1cnd47f{padding-left:0;}",".f1qch9an{padding-bottom:0;}",".f1xile11{padding-left:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".fqznh8f{padding-right:calc(var(--spacingHorizontalSNudge) + var(--spacingHorizontalXXS));}",".f1tvdnth{height:30px;}",".fkhj508{font-size:var(--fontSizeBase300);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".f1e60jzv{padding-left:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f135dnwl{padding-right:calc(var(--spacingHorizontalMNudge) + var(--spacingHorizontalXXS));}",".f1ihhdec{height:38px;}",".fod5ikn{font-size:var(--fontSizeBase400);}",".faaz57k{line-height:var(--lineHeightBase400);}",".fnphzt9{padding-left:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".flt1dlf{padding-right:calc(var(--spacingHorizontalM) + var(--spacingHorizontalSNudge));}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}",".fahhnxm::-webkit-input-placeholder{color:var(--colorNeutralForegroundDisabled);}",".fahhnxm::-moz-placeholder{color:var(--colorNeutralForegroundDisabled);}"],f:[".ftqa4ok:focus{outline-style:none;}"]}),Gm=U({icon:{B7ck84d:"f1ewtqcl",sj55zd:"fxkbij4",Bceei9c:"f1k6fduh",mc9l5x:"ftgm304",Be2twd7:"f1pp30po",Bo70h7d:"fvc9v3g"},small:{Be2twd7:"f4ybsrx",Frg6f3:["f1h9en5y","f1xk557c"]},medium:{Be2twd7:"fe5j1ua",Frg6f3:["f1h9en5y","f1xk557c"]},large:{Be2twd7:"f1rt2boy",Frg6f3:["f1t5qyk5","f1ikr372"]},disabled:{sj55zd:"f1s2aq7o",Bceei9c:"fdrzuqr"}},{d:[".f1ewtqcl{box-sizing:border-box;}",".fxkbij4{color:var(--colorNeutralStrokeAccessible);}",".f1k6fduh{cursor:pointer;}",".ftgm304{display:block;}",".f1pp30po{font-size:var(--fontSizeBase500);}",".fvc9v3g svg{display:block;}",".f4ybsrx{font-size:16px;}",".f1h9en5y{margin-left:var(--spacingHorizontalXXS);}",".f1xk557c{margin-right:var(--spacingHorizontalXXS);}",".fe5j1ua{font-size:20px;}",".f1rt2boy{font-size:24px;}",".f1t5qyk5{margin-left:var(--spacingHorizontalSNudge);}",".f1ikr372{margin-right:var(--spacingHorizontalSNudge);}",".f1s2aq7o{color:var(--colorNeutralForegroundDisabled);}",".fdrzuqr{cursor:not-allowed;}"]}),Xm=e=>{const{appearance:t,open:r,size:o}=e,i=`${e.input["aria-invalid"]}`=="true",n=e.input.disabled,s=Wm(),l=Gm(),u=Um();return e.root.className=A(go.root,s.root,s[t],s[o],!n&&t==="outline"&&s.outlineInteractive,i&&t!=="underline"&&s.invalid,i&&t==="underline"&&s.invalidUnderline,n&&s.disabled,e.root.className),e.input.className=A(go.input,u.input,u[o],n&&u.disabled,e.input.className),e.listbox&&(e.listbox.className=A(go.listbox,s.listbox,!r&&s.listboxCollapsed,e.listbox.className)),e.expandIcon&&(e.expandIcon.className=A(go.expandIcon,l.icon,l[o],n&&l.disabled,e.expandIcon.className)),e},wl=p.forwardRef((e,t)=>{const r=Vm(e,t),o=Cm(r);return Xm(r),Ye("useComboboxStyles_unstable")(r),$m(r,o)});wl.displayName="Combobox";const Km=(e,t)=>{e=fl(e,{supportsLabelFor:!0,supportsRequired:!0,supportsSize:!0});const r=Ad();var o;const{size:i="medium",appearance:n=(o=r.inputDefaultAppearance)!==null&&o!==void 0?o:"outline",onChange:s}=e;process.env.NODE_ENV!=="production"&&(n==="filled-darker-shadow"||n==="filled-lighter-shadow")&&console.error("The 'filled-darker-shadow' and 'filled-lighter-shadow' appearances are deprecated and will be removed in the future.");const[l,u]=Zt({state:e.value,defaultState:e.defaultValue,initialState:""}),a=pa({props:e,primarySlotTagName:"input",excludedPropNames:["size","onChange","value","defaultValue"]}),c={size:i,appearance:n,components:{root:"span",input:"input",contentBefore:"span",contentAfter:"span"},input:me(e.input,{defaultProps:{type:"text",ref:t,...a.primary},elementType:"input"}),contentAfter:J(e.contentAfter,{elementType:"span"}),contentBefore:J(e.contentBefore,{elementType:"span"}),root:me(e.root,{defaultProps:a.root,elementType:"span"})};return c.input.value=l,c.input.onChange=qe(f=>{const v=f.target.value;s==null||s(f,{value:v}),u(v)}),c},Zm=e=>(ke(e),Ae(e.root,{children:[e.contentBefore&&$(e.contentBefore,{}),$(e.input,{}),e.contentAfter&&$(e.contentAfter,{})]})),po={root:"fui-Input",input:"fui-Input__input",contentBefore:"fui-Input__contentBefore",contentAfter:"fui-Input__contentAfter"},Ym=Re("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;}}"]}),Qm=U({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;}"]}),Jm=Re("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;}"]),eb=U({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);}"]}),tb=Re("r1572tok",null,[".r1572tok{box-sizing:border-box;color:var(--colorNeutralForeground3);display:flex;}",".r1572tok>svg{font-size:20px;}"]),rb=U({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;}"]}),ob=e=>{const{size:t,appearance:r}=e,o=e.input.disabled,i=`${e.input["aria-invalid"]}`=="true",n=r.startsWith("filled"),s=Qm(),l=eb(),u=rb();e.root.className=A(po.root,Ym(),s[t],s[r],!o&&r==="outline"&&s.outlineInteractive,!o&&r==="underline"&&s.underlineInteractive,!o&&n&&s.filledInteractive,n&&s.filled,!o&&i&&s.invalid,o&&s.disabled,e.root.className),e.input.className=A(po.input,Jm(),t==="large"&&l.large,o&&l.disabled,e.input.className);const a=[tb(),o&&u.disabled,u[t]];return e.contentBefore&&(e.contentBefore.className=A(po.contentBefore,...a,e.contentBefore.className)),e.contentAfter&&(e.contentAfter.className=A(po.contentAfter,...a,e.contentAfter.className)),e},kl=p.forwardRef((e,t)=>{const r=Km(e,t);return ob(r),Ye("useInputStyles_unstable")(r),Zm(r)});kl.displayName="Input";const nb=e=>{const{presenceOnly:t,textPosition:r}=e;ke(e);const o=t?e.presence&&$(e.presence,{}):e.avatar&&$(e.avatar,{});return Ae(e.root,{children:[(r==="after"||r==="below")&&o,e.primaryText&&$(e.primaryText,{}),e.secondaryText&&$(e.secondaryText,{}),e.tertiaryText&&$(e.tertiaryText,{}),e.quaternaryText&&$(e.quaternaryText,{}),r==="before"&&o]})},ib=(e,t)=>{const{name:r,presenceOnly:o=!1,size:i="medium",textAlignment:n="start",textPosition:s="after"}=e,l=J(e.primaryText,{renderByDefault:!0,defaultProps:{children:r},elementType:"span"}),u=J(e.secondaryText,{elementType:"span"}),a=J(e.tertiaryText,{elementType:"span"}),c=J(e.quaternaryText,{elementType:"span"});return{numTextLines:[l,u,a,c].filter(Boolean).length,presenceOnly:o,size:i,textAlignment:n,textPosition:s,components:{root:"div",avatar:kn,presence:Pr,primaryText:"span",secondaryText:"span",tertiaryText:"span",quaternaryText:"span"},root:me(Fe("div",{...e,ref:t},["name"]),{elementType:"div"}),avatar:o?void 0:J(e.avatar,{renderByDefault:!0,defaultProps:{name:r,badge:e.presence,size:sb[i]},elementType:kn}),presence:o?J(e.presence,{defaultProps:{size:ab[i]},elementType:Pr}):void 0,primaryText:l,secondaryText:u,tertiaryText:a,quaternaryText:c}},ab={"extra-small":"tiny",small:"extra-small",medium:"small",large:"medium","extra-large":"large",huge:"large"},sb={"extra-small":20,small:28,medium:32,large:36,"extra-large":40,huge:56},Ot={root:"fui-Persona",avatar:"fui-Persona__avatar",presence:"fui-Persona__presence",primaryText:"fui-Persona__primaryText",secondaryText:"fui-Persona__secondaryText",tertiaryText:"fui-Persona__tertiaryText",quaternaryText:"fui-Persona__quaternaryText"},lb=Re("rlroi9i",null,[".rlroi9i{display:inline-grid;grid-auto-rows:max-content;grid-auto-flow:column;justify-items:start;grid-template-columns:max-content [middle] auto;}"]),cb=U({beforeAfterCenter:{wkccdc:"f1iantul"},after:{},before:{B7hvi0a:"f1tll2w5",Budl1dq:"ffvkwdr"},below:{Bxotwcr:"f1nkeedh",B7hvi0a:"f1oiokrs",Budl1dq:"f1emgwh2"},media:{Ijaq50:"f1hek2iy"},mediaBeforeAfterCenter:{Ijaq50:"fa4dipu"},start:{qb2dma:"f9h729m"},center:{qb2dma:"f7nlbp4"},afterAlignToPrimary:{qb2dma:"f7nlbp4",Ijaq50:"f1rnkkuc",Bw0ie65:"f1warjpf"},beforeAlignToPrimary:{qb2dma:"f7nlbp4",Ijaq50:"f1rnkkuc",Br312pm:"fwu52yu"},secondLineSpacing:{B6of3ja:"f1ryq6si"},primary:{Ijaq50:"f1q3ipgb"},secondary:{Ijaq50:"f3drtdk"},tertiary:{Ijaq50:"fa1o6s1"},quaternary:{Ijaq50:"f1tuwaia"}},{d:[".f1iantul{grid-template-rows:1fr [primary] max-content [secondary] max-content [tertiary] max-content [quaternary] max-content 1fr;}",".f1tll2w5{justify-items:end;}",".ffvkwdr{grid-template-columns:auto [middle] max-content;}",".f1nkeedh{grid-auto-flow:unset;}",".f1oiokrs{justify-items:center;}",".f1emgwh2{grid-template-columns:unset;}",".f1hek2iy{grid-row-start:span 5;}",".fa4dipu{grid-row-start:span 6;}",".f9h729m{align-self:start;}",".f7nlbp4{align-self:center;}",".f1rnkkuc{grid-row-start:unset;}",".f1warjpf{grid-column-end:middle;}",".fwu52yu{grid-column-start:middle;}",".f1ryq6si{margin-top:-2px;}",".f1q3ipgb{grid-row-start:primary;}",".f3drtdk{grid-row-start:secondary;}",".fa1o6s1{grid-row-start:tertiary;}",".f1tuwaia{grid-row-start:quaternary;}"]}),ub=U({"extra-small":{Bs1gm4r:"f1e48tse"},small:{Bs1gm4r:"f18q9vkd"},medium:{Bs1gm4r:"f18q9vkd"},large:{Bs1gm4r:"fx34bi6"},"extra-large":{Bs1gm4r:"fx34bi6"},huge:{Bs1gm4r:"f1o96qtm"},after:{t21cq0:["f103ycu4","f1tao51"]},below:{jrapky:"fbo7acy"},before:{Frg6f3:["f1tao51","f103ycu4"]}},{d:[".f1e48tse{--fui-Persona__avatar--spacing:var(--spacingHorizontalSNudge);}",".f18q9vkd{--fui-Persona__avatar--spacing:var(--spacingHorizontalS);}",".fx34bi6{--fui-Persona__avatar--spacing:var(--spacingHorizontalMNudge);}",".f1o96qtm{--fui-Persona__avatar--spacing:var(--spacingHorizontalM);}",".f103ycu4{margin-right:var(--fui-Persona__avatar--spacing);}",".f1tao51{margin-left:var(--fui-Persona__avatar--spacing);}",".fbo7acy{margin-bottom:var(--fui-Persona__avatar--spacing);}"]}),fb=U({small:{Bs1gm4r:"f1e48tse"}},{d:[".f1e48tse{--fui-Persona__avatar--spacing:var(--spacingHorizontalSNudge);}"]}),db=e=>{const{presenceOnly:t,size:r,textAlignment:o,textPosition:i}=e,n=t&&o==="start"&&r!=="extra-large"&&r!=="huge",s=i!=="below"&&o==="center",{primaryTextClassName:l,optionalTextClassName:u}=pb(e,n),a=lb(),c=cb(),f=ub(),v={...f,...fb()};return e.root.className=A(Ot.root,a,s&&c.beforeAfterCenter,c[i],e.root.className),e.avatar&&(e.avatar.className=A(Ot.avatar,i!=="below"&&c.media,s&&c.mediaBeforeAfterCenter,c[o],f[r],f[i],e.avatar.className)),e.presence&&(e.presence.className=A(Ot.presence,i!=="below"&&c.media,s&&c.mediaBeforeAfterCenter,c[o],v[r],v[i],i==="after"&&n&&c.afterAlignToPrimary,i==="before"&&n&&c.beforeAlignToPrimary,e.presence.className)),e.primaryText&&(e.primaryText.className=A(Ot.primaryText,s&&c.primary,l,e.primaryText.className)),e.secondaryText&&(e.secondaryText.className=A(Ot.secondaryText,s&&c.secondary,u,c.secondLineSpacing,e.secondaryText.className)),e.tertiaryText&&(e.tertiaryText.className=A(Ot.tertiaryText,s&&c.tertiary,u,e.tertiaryText.className)),e.quaternaryText&&(e.quaternaryText.className=A(Ot.quaternaryText,s&&c.quaternary,u,e.quaternaryText.className)),e},hb=Re("rvj41k9",null,[".rvj41k9{display:block;color:var(--colorNeutralForeground1);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase300);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase300);}"]),vb=Re("rp1pf9e",null,[".rp1pf9e{display:block;color:var(--colorNeutralForeground2);font-family:var(--fontFamilyBase);font-size:var(--fontSizeBase200);font-weight:var(--fontWeightRegular);line-height:var(--lineHeightBase200);}"]),gb=U({beforeAlignToPrimary:{Bw0ie65:"f1warjpf"},afterAlignToPrimary:{Br312pm:"fwu52yu"},body1:{Bahqtrf:"fk6fouc",Be2twd7:"fkhj508",Bhrd7zp:"figsok6",Bg96gwp:"f1i3iumi"},caption1:{Bahqtrf:"fk6fouc",Be2twd7:"fy9rknc",Bhrd7zp:"figsok6",Bg96gwp:"fwrc4pm"},subtitle2:{Bahqtrf:"fk6fouc",Be2twd7:"fod5ikn",Bhrd7zp:"fl43uef",Bg96gwp:"faaz57k"}},{d:[".f1warjpf{grid-column-end:middle;}",".fwu52yu{grid-column-start:middle;}",".fk6fouc{font-family:var(--fontFamilyBase);}",".fkhj508{font-size:var(--fontSizeBase300);}",".figsok6{font-weight:var(--fontWeightRegular);}",".f1i3iumi{line-height:var(--lineHeightBase300);}",".fy9rknc{font-size:var(--fontSizeBase200);}",".fwrc4pm{line-height:var(--lineHeightBase200);}",".fod5ikn{font-size:var(--fontSizeBase400);}",".fl43uef{font-weight:var(--fontWeightSemibold);}",".faaz57k{line-height:var(--lineHeightBase400);}"]}),pb=(e,t)=>{const{presenceOnly:r,size:o,textPosition:i}=e,n=hb(),s=vb(),l=gb();let u,a;return r?(o==="extra-small"?u=e.numTextLines<=1&&l.caption1:(o==="extra-large"||o==="huge")&&(u=l.subtitle2),t&&(i==="before"?a=l.beforeAlignToPrimary:i==="after"&&(a=l.afterAlignToPrimary))):(o==="huge"||o==="extra-large")&&(u=l.subtitle2),{primaryTextClassName:A(n,u,a),optionalTextClassName:A(s,!r&&o==="huge"&&l.body1,a)}},xl=p.forwardRef((e,t)=>{const r=ib(e,t);return db(r),Ye("usePersonaStyles_unstable")(r),nb(r)});xl.displayName="Persona";const mb=()=>p.createElement("svg",{className:"fui-Spinner__Progressbar"},p.createElement("circle",{className:"fui-Spinner__Track"}),p.createElement("circle",{className:"fui-Spinner__Tail"})),Bl=p.createContext(void 0),bb={};Bl.Provider;const yb=()=>{var e;return(e=p.useContext(Bl))!==null&&e!==void 0?e:bb},wb=(e,t)=>{const{size:r}=yb(),{appearance:o="primary",labelPosition:i="after",size:n=r??"medium",delay:s=0}=e,l=jt("spinner"),{role:u="progressbar",tabIndex:a,...c}=e,f=me(Fe("div",{ref:t,role:u,...c},["size"]),{elementType:"div"}),[v,d]=p.useState(!0),[h,m]=xd();p.useEffect(()=>{if(!(s<=0))return d(!1),h(()=>{d(!0)},s),()=>{m()}},[h,m,s]);const k=J(e.label,{defaultProps:{id:l},renderByDefault:!1,elementType:Tr}),b=J(e.spinner,{renderByDefault:!0,defaultProps:{children:p.createElement(mb,null),tabIndex:a},elementType:"span"});return k&&f&&!f["aria-labelledby"]&&(f["aria-labelledby"]=k.id),{appearance:o,delay:s,labelPosition:i,size:n,shouldRenderSpinner:v,components:{root:"div",spinner:"span",label:Tr},root:f,spinner:b,label:k}},kb=e=>{ke(e);const{labelPosition:t,shouldRenderSpinner:r}=e;return Ae(e.root,{children:[e.label&&r&&(t==="above"||t==="before")&&$(e.label,{}),e.spinner&&r&&$(e.spinner,{}),e.label&&r&&(t==="below"||t==="after")&&$(e.label,{})]})},An={root:"fui-Spinner",spinner:"fui-Spinner__spinner",label:"fui-Spinner__label"},xb=U({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;}"]}),Bb=U({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)"}]]}),_b=U({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)"}]]}),Pb=U({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);}"]}),Sb=e=>{const{labelPosition:t,size:r,appearance:o="primary"}=e,i=xb(),n=Bb(),s=Pb(),l=_b();return e.root.className=A(An.root,i.root,(t==="above"||t==="below")&&i.vertical,(t==="before"||t==="after")&&i.horizontal,e.root.className),e.spinner&&(e.spinner.className=A(An.spinner,n.spinnerSVG,n[r],l[o],e.spinner.className)),e.label&&(e.label.className=A(An.label,s[r],s[o],e.label.className)),e},Dn=p.forwardRef((e,t)=>{const r=wb(e,t);return Sb(r),Ye("useSpinnerStyles_unstable")(r),kb(r)});Dn.displayName="Spinner";const Cb=(e,t)=>{const{wrap:r,truncate:o,block:i,italic:n,underline:s,strikethrough:l,size:u,font:a,weight:c,align:f}=e;return{align:f??"start",block:i??!1,font:a??"base",italic:n??!1,size:u??300,strikethrough:l??!1,truncate:o??!1,underline:s??!1,weight:c??"regular",wrap:r??!0,components:{root:"span"},root:me(Fe("span",{ref:t,...e}),{elementType:"span"})}},zb=e=>(ke(e),$(e.root,{})),Tb={root:"fui-Text"},Nb=U({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;}"]}),Eb=e=>{const t=Nb();return e.root.className=A(Tb.root,t.root,e.wrap===!1&&t.nowrap,e.truncate&&t.truncate,e.block&&t.block,e.italic&&t.italic,e.underline&&t.underline,e.strikethrough&&t.strikethrough,e.underline&&e.strikethrough&&t.strikethroughUnderline,e.size===100&&t.base100,e.size===200&&t.base200,e.size===400&&t.base400,e.size===500&&t.base500,e.size===600&&t.base600,e.size===700&&t.hero700,e.size===800&&t.hero800,e.size===900&&t.hero900,e.size===1e3&&t.hero1000,e.font==="monospace"&&t.monospace,e.font==="numeric"&&t.numeric,e.weight==="medium"&&t.weightMedium,e.weight==="semibold"&&t.weightSemibold,e.weight==="bold"&&t.weightBold,e.align==="center"&&t.alignCenter,e.align==="end"&&t.alignEnd,e.align==="justify"&&t.alignJustify,e.root.className),e};function _l(e){const{useStyles:t,className:r,displayName:o}=e,i=p.forwardRef((n,s)=>{const l=t(),u=Cb(n,s);return Eb(u),u.root.className=A(r,u.root.className,l.root,n.className),zb(u)});return i.displayName=o,i}const jb=_l({useStyles:U({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);}"]}),className:{root:"fui-Body1"}.root,displayName:"Body1"}),Rb=_l({useStyles:U({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);}"]}),className:{root:"fui-Caption1"}.root,displayName:"Caption1"}),Fb=e=>{const t=e<=0?1:e;return process.env.NODE_ENV!=="production"&&e<=0&&console.error(`The prop 'max' must be greater than 0. Received max: ${e}`),t},qb=(e,t)=>{if(e===void 0)return e;const r=e<0?0:e>t?t:e;return process.env.NODE_ENV!=="production"&&(e<0&&console.error(`The prop 'value' must be greater than or equal to zero. Received value: ${e}`),e>t&&console.error(`The prop 'value' must be less than or equal to 'max'. Received value: ${e}, max: ${t}`)),r},Ab=(e,t)=>{const r=ul(),o=r==null?void 0:r.validationState,{color:i=o==="error"||o==="warning"||o==="success"?o:"brand",shape:n="rounded",thickness:s="medium"}=e;var l;const u=Fb((l=e.max)!==null&&l!==void 0?l:1),a=qb(e.value,u),c=me(Fe("div",{ref:t,role:"progressbar","aria-valuemin":a!==void 0?0:void 0,"aria-valuemax":a!==void 0?u:void 0,"aria-valuenow":a,"aria-labelledby":r==null?void 0:r.labelId,...e}),{elementType:"div"});r&&(r.validationMessageId||r.hintId)&&(c["aria-describedby"]=[r==null?void 0:r.validationMessageId,r==null?void 0:r.hintId,c["aria-describedby"]].filter(Boolean).join(" "));const f=me(e.bar,{elementType:"div"});return{color:i,max:u,shape:n,thickness:s,value:a,components:{root:"div",bar:"div"},root:c,bar:f}},Db=e=>(ke(e),$(e.root,{children:e.bar&&$(e.bar,{})})),Pl={root:"fui-ProgressBar",bar:"fui-ProgressBar__bar"},Ob=.01,Ib=U({root:{mc9l5x:"ftgm304",De3pzq:"f18f03hv",a9b677:"fly5x3f",B68tc82:"f1p9o1ba",Bmxbyg5:"f1sil6mw",Bpep1pd:"fu42dvn"},rounded:{Bbmb7ep:["f1aa9q02","f16jpd5f"],Beyfa6y:["f16jpd5f","f1aa9q02"],B7oj6ja:["f1jar5jt","fyu767a"],Btl43ni:["fyu767a","f1jar5jt"]},square:{Bbmb7ep:["fzi6hpg","fyowgf4"],Beyfa6y:["fyowgf4","fzi6hpg"],B7oj6ja:["f3fg2lr","f13av6d4"],Btl43ni:["f13av6d4","f3fg2lr"]},medium:{Bqenvij:"f4t8t6x"},large:{Bqenvij:"f6ywr7j"}},{d:[".ftgm304{display:block;}",".f18f03hv{background-color:var(--colorNeutralBackground6);}",".fly5x3f{width:100%;}",".f1p9o1ba{overflow-x:hidden;}",".f1sil6mw{overflow-y:hidden;}",".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);}",".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);}",".f4t8t6x{height:2px;}",".f6ywr7j{height:4px;}"],m:[["@media screen and (forced-colors: active){.fu42dvn{background-color:CanvasText;}}",{m:"screen and (forced-colors: active)"}]]}),Mb=U({base:{Bpep1pd:"f1neahkh",Bbmb7ep:["f1d9uwra","fzibvwi"],Beyfa6y:["fzibvwi","f1d9uwra"],B7oj6ja:["fuoumxm","f1vtqnvc"],Btl43ni:["f1vtqnvc","fuoumxm"],Bqenvij:"f1l02sjl"},nonZeroDeterminate:{Bmy1vo4:"fjt6zfz",B3o57yi:"f1wofebd",Bkqvd7p:"fv71qf3"},indeterminate:{B2u0y6b:"fa0wk36",qhf8xq:"f10pi13n",Bcmaq0h:["fpo0yib","f1u5hf6c"],Bv12yb3:["fwd2bol","f14gig94"],vin17d:"f1a27w2r",Ezkn3b:"f452v7t",w3vfg9:"f1cpbl36",Gqtpxc:"f4akx1t",B3vm3ge:"f18p5put"},brand:{De3pzq:"ftywsgz"},error:{De3pzq:"fdl5y0r"},warning:{De3pzq:"f1s438gw"},success:{De3pzq:"flxk52p"}},{m:[["@media screen and (forced-colors: active){.f1neahkh{background-color:Highlight;}}",{m:"screen and (forced-colors: active)"}],["@media screen and (prefers-reduced-motion: reduce){.f4akx1t{animation-duration:0.01ms;}}",{m:"screen and (prefers-reduced-motion: reduce)"}],["@media screen and (prefers-reduced-motion: reduce){.f18p5put{animation-iteration-count:1;}}",{m:"screen and (prefers-reduced-motion: reduce)"}]],d:[".f1d9uwra{border-bottom-right-radius:inherit;}",".fzibvwi{border-bottom-left-radius:inherit;}",".fuoumxm{border-top-right-radius:inherit;}",".f1vtqnvc{border-top-left-radius:inherit;}",".f1l02sjl{height:100%;}",".fjt6zfz{transition-property:width;}",".f1wofebd{transition-duration:0.3s;}",".fv71qf3{transition-timing-function:ease;}",".fa0wk36{max-width:33%;}",".f10pi13n{position:relative;}",`.fpo0yib{background-image:linear-gradient(
|
|
136
|
+
to right,
|
|
137
|
+
var(--colorNeutralBackground6) 0%,
|
|
138
|
+
var(--colorTransparentBackground) 50%,
|
|
139
|
+
var(--colorNeutralBackground6) 100%
|
|
140
|
+
);}`,`.f1u5hf6c{background-image:linear-gradient(
|
|
141
|
+
to left,
|
|
142
|
+
var(--colorNeutralBackground6) 0%,
|
|
143
|
+
var(--colorTransparentBackground) 50%,
|
|
144
|
+
var(--colorNeutralBackground6) 100%
|
|
145
|
+
);}`,".fwd2bol{animation-name:f1keuaan;}",".f14gig94{animation-name:f10x8f8u;}",".f1a27w2r{animation-duration:3s;}",".f452v7t{animation-timing-function:linear;}",".f1cpbl36{animation-iteration-count:infinite;}",".ftywsgz{background-color:var(--colorCompoundBrandBackground);}",".fdl5y0r{background-color:var(--colorPaletteRedBackground3);}",".f1s438gw{background-color:var(--colorPaletteDarkOrangeBackground3);}",".flxk52p{background-color:var(--colorPaletteGreenBackground3);}"],k:["@keyframes f1keuaan{0%{left:-33%;}100%{left:100%;}}","@keyframes f10x8f8u{0%{right:-33%;}100%{right:100%;}}"]}),Lb=e=>{const{color:t,max:r,shape:o,thickness:i,value:n}=e,s=Ib(),l=Mb();return e.root.className=A(Pl.root,s.root,s[o],s[i],e.root.className),e.bar&&(e.bar.className=A(Pl.bar,l.base,l.brand,n===void 0&&l.indeterminate,n!==void 0&&n>Ob&&l.nonZeroDeterminate,t&&n!==void 0&&l[t],e.bar.className)),e.bar&&n!==void 0&&(e.bar.style={width:Math.min(100,Math.max(0,n/r*100))+"%",...e.bar.style}),e},Sl=p.forwardRef((e,t)=>{const r=Ab(e,t);return Lb(r),Ye("useProgressBarStyles_unstable")(r),Db(r)});Sl.displayName="ProgressBar";const Hb=(e,{referenceLabel:t,referenceId:r},o)=>{const{checkbox:i={},onSelectionChange:n,floatingAction:s,onClick:l,onKeyDown:u}=e,{findAllFocusable:a}=mv(),c=p.useRef(null),[f,v]=Zt({state:e.selected,defaultState:e.defaultSelected,initialState:!1}),d=[e.selected,e.defaultSelected,n].some(w=>typeof w<"u"),[h,m]=p.useState(!1),k=p.useCallback(w=>{if(!o.current)return!1;const _=a(o.current),F=w.target,R=_.some(G=>G.contains(F)),V=(c==null?void 0:c.current)===F;return R&&!V},[o,a]),b=p.useCallback(w=>{if(k(w))return;const _=!f;v(_),n&&n(w,{selected:_})},[n,f,v,k]),y=p.useCallback(w=>{[Yt].includes(w.key)&&(w.preventDefault(),b(w))},[b]),P=p.useMemo(()=>{if(!d||s)return;const w={};return r?w["aria-labelledby"]=r:t&&(w["aria-label"]=t),J(i,{defaultProps:{ref:c,type:"checkbox",checked:f,onChange:_=>b(_),onFocus:()=>m(!0),onBlur:()=>m(!1),...w},elementType:"input"})},[i,s,f,d,b,r,t]),x=p.useMemo(()=>{if(s)return J(s,{defaultProps:{ref:c},elementType:"div"})},[s]),S=p.useMemo(()=>d?{onClick:xe(l,b),onKeyDown:xe(u,y)}:null,[d,b,l,u,y]);return{selected:f,selectable:d,selectFocused:h,selectableCardProps:S,checkboxSlot:P,floatingActionSlot:x}},Cl=p.createContext(void 0),On={selectableA11yProps:{referenceId:void 0,setReferenceId(){},referenceLabel:void 0,setReferenceLabel(){}}},Vb=Cl.Provider,zl=()=>{var e;return(e=p.useContext(Cl))!==null&&e!==void 0?e:On},$b={off:void 0,"no-tab":"limited-trap-focus","tab-exit":"limited","tab-only":"unlimited"},Wb=({focusMode:e="off",...t})=>{const r=["onClick","onDoubleClick","onMouseUp","onMouseDown","onPointerUp","onPointerDown","onTouchStart","onTouchEnd","onDragStart","onDragEnd"].some(n=>t[n]),i={...gv({tabBehavior:$b[r?"no-tab":e]}),tabIndex:0};return{interactive:r,focusAttributes:e==="off"?null:i}},Ub=(e,t)=>{const{appearance:r="filled",orientation:o="vertical",size:i="medium"}=e,[n,s]=p.useState(On.selectableA11yProps.referenceId),[l,u]=p.useState(On.selectableA11yProps.referenceId),a=xv(),{selectable:c,selected:f,selectableCardProps:v,selectFocused:d,checkboxSlot:h,floatingActionSlot:m}=Hb(e,{referenceId:n,referenceLabel:l},a),k=rt(a,t),{interactive:b,focusAttributes:y}=Wb(e);return{appearance:r,orientation:o,size:i,interactive:b,selectable:c,selectFocused:d,selected:f,selectableA11yProps:{setReferenceId:s,referenceId:n,referenceLabel:l,setReferenceLabel:u},components:{root:"div",floatingAction:"div",checkbox:"input"},root:me(Fe("div",{ref:k,role:"group",...y,...e,...v}),{elementType:"div"}),floatingAction:m,checkbox:h}},Gb=(e,t)=>(ke(e),$(e.root,{children:Ae(Vb,{value:t,children:[e.checkbox?$(e.checkbox,{}):null,e.floatingAction?$(e.floatingAction,{}):null,e.root.children]})})),In={root:"fui-CardPreview",logo:"fui-CardPreview__logo"},Xb=U({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;}"]}),Kb=e=>{const t=Xb();return e.root.className=A(In.root,t.root,e.root.className),e.logo&&(e.logo.className=A(In.logo,t.logo,e.logo.className)),e},or={root:"fui-CardHeader",image:"fui-CardHeader__image",header:"fui-CardHeader__header",description:"fui-CardHeader__description",action:"fui-CardHeader__action"},Zb=U({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;}"]}),Yb=e=>{const t=Zb();return e.root.className=A(or.root,t.root,e.root.className),e.image&&(e.image.className=A(or.image,t.image,e.image.className)),e.header&&(e.header.className=A(or.header,t.header,e.header.className)),e.description&&(e.description.className=A(or.description,t.description,e.description.className)),e.action&&(e.action.className=A(or.action,t.action,e.action.className)),e},Tl={root:"fui-CardFooter",action:"fui-CardFooter__action"},Qb=U({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;}"]}),Jb=e=>{const t=Qb();return e.root.className=A(Tl.root,t.root,e.root.className),e.action&&(e.action.className=A(Tl.action,t.action,e.action.className)),e},Mn={root:"fui-Card",floatingAction:"fui-Card__floatingAction",checkbox:"fui-Card__checkbox"},e1=U({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)"}]]}),t1=e=>{const t=e1(),r={horizontal:t.orientationHorizontal,vertical:t.orientationVertical},o={small:t.sizeSmall,medium:t.sizeMedium,large:t.sizeLarge},i={filled:t.filled,"filled-alternative":t.filledAlternative,outline:t.outline,subtle:t.subtle},n={filled:t.filledInteractiveSelected,"filled-alternative":t.filledAlternativeInteractiveSelected,outline:t.outlineInteractiveSelected,subtle:t.subtleInteractiveSelected},s={filled:t.filledInteractive,"filled-alternative":t.filledAlternativeInteractive,outline:t.outlineInteractive,subtle:t.subtleInteractive},l=e.interactive||e.selectable,u=p.useMemo(()=>e.selectable?e.selectFocused?t.selectableFocused:"":t.focused,[e.selectFocused,e.selectable,t.focused,t.selectableFocused]);return e.root.className=A(Mn.root,t.root,r[e.orientation],o[e.size],i[e.appearance],l&&s[e.appearance],e.selected&&n[e.appearance],u,l&&t.highContrastInteractive,e.selected&&t.highContrastSelected,e.root.className),e.floatingAction&&(e.floatingAction.className=A(Mn.floatingAction,t.select,e.floatingAction.className)),e.checkbox&&(e.checkbox.className=A(Mn.checkbox,t.hiddenCheckbox,e.checkbox.className)),e};function r1({selectableA11yProps:e}){return{selectableA11yProps:e}}const Nl=p.forwardRef((e,t)=>{const r=Ub(e,t),o=r1(r);return t1(r),Gb(r,o)});Nl.displayName="Card";const o1=(e,t)=>{const{action:r}=e;return{components:{root:"div",action:"div"},root:me(Fe("div",{ref:t,...e}),{elementType:"div"}),action:J(r,{elementType:"div"})}},n1=e=>(ke(e),Ae(e.root,{children:[e.root.children,e.action&&$(e.action,{})]})),El=p.forwardRef((e,t)=>{const r=o1(e,t);return Jb(r),n1(r)});El.displayName="CardFooter";function i1(e){function t(r){return p.isValidElement(r)&&!!r.props.id}return p.Children.toArray(e).find(t)}function a1(e,t,r){return e||(t!=null&&t.props.id?t.props.id:r)}const s1=(e,t)=>{const{image:r,header:o,description:i,action:n}=e,{selectableA11yProps:{referenceId:s,setReferenceId:l}}=zl(),u=p.useRef(null),a=p.useRef(!1),c=jt(or.header,s),f=J(o,{renderByDefault:!0,defaultProps:{ref:u,id:a.current?void 0:s},elementType:"div"});return p.useEffect(()=>{var v;const d=a.current||(v=u.current)===null||v===void 0?void 0:v.id,h=i1(f==null?void 0:f.children);a.current=!!h,l(a1(d,h,c))},[c,o,f,l]),{components:{root:"div",image:"div",header:"div",description:"div",action:"div"},root:me(Fe("div",{ref:t,...e}),{elementType:"div"}),image:J(r,{elementType:"div"}),header:f,description:J(i,{elementType:"div"}),action:J(n,{elementType:"div"})}},l1=e=>(ke(e),Ae(e.root,{children:[e.image&&$(e.image,{}),$(e.header,{}),e.description&&$(e.description,{}),e.action&&$(e.action,{})]})),jl=p.forwardRef((e,t)=>{const r=s1(e,t);return Yb(r),l1(r)});jl.displayName="CardHeader";const c1=(e,t)=>{const{logo:r}=e,{selectableA11yProps:{referenceLabel:o,referenceId:i,setReferenceLabel:n,setReferenceId:s}}=zl(),l=rt(t,p.useRef(null));return p.useEffect(()=>{if(!(o&&i)&&l.current&&l.current.parentNode){const u=l.current.parentNode.querySelector(`.${In.root} > img`);if(u){const a=u.getAttribute("aria-label"),c=u.getAttribute("aria-describedby");c?s(c):u.alt?n(u.alt):a&&n(a)}}},[n,o,l,i,s]),{components:{root:"div",logo:"div"},root:me(Fe("div",{ref:l,...e}),{elementType:"div"}),logo:J(r,{elementType:"div"})}},u1=e=>(ke(e),Ae(e.root,{children:[e.root.children,e.logo&&$(e.logo,{})]})),Rl=p.forwardRef((e,t)=>{const r=c1(e,t);return Kb(r),u1(r)});Rl.displayName="CardPreview";const Fl=["Title","Path","Description","ListItemId","IdentityListItemId","IdentityListId","IdentitySiteCollectionId","IdentityWebId","LastModifiedTime","ViewsLifeTime","ViewsRecent","owstaxidmetadataalltagsinfo","DriveId","Author","AuthorOwsUser"],ql="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/xlsx.png",Al="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/docx.png",Dl="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/pptx.png",Ol="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/mpp.png",Er="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/photo.png",f1="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/pdf.png",d1="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/txt.png",Il="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/email.png",h1="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/csv.png",v1="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/pub.png",g1="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/accdb.png",Ln="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/zip.png",Hn="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/genericfile.png",Ml="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/code.png",p1="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/html.png",m1="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/xml.png",b1="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/spo.png",jr="https://static2.sharepointonline.com/files/fabric/assets/item-types/32/video.png",bo=class bo{static getFileImageUrl(t){if(!t)return Hn;let r=Hn;const o=t.split("."),i=o[o.length-1];if(!i)return r;switch(i.toLowerCase()){case"xlsx":r=ql;break;case"xls":r=ql;break;case"docx":r=Al;break;case"doc":r=Al;break;case"pptx":r=Dl;break;case"ppt":r=Dl;break;case"mppx":r=Ol;break;case"mpp":r=Ol;break;case"csv":r=h1;break;case"pdf":r=f1;break;case"txt":r=d1;break;case"jpg":r=Er;break;case"msg":r=Il;break;case"jpeg":r=Er;break;case"png":r=Er;break;case"ico":r=Er;break;case"tiff":r=Er;break;case"eml":r=Il;break;case"pub":r=v1;break;case"accdb":r=g1;break;case"zip":r=Ln;break;case"7z":r=Ln;break;case"tar":r=Ln;break;case"js":r=Ml;break;case"json":r=Ml;break;case"html":r=p1;break;case"xml":r=m1;break;case"aspx":r=b1;break;case"mp4":r=jr;break;case"mov":r=jr;break;case"wmv":r=jr;break;case"ogg":r=jr;break;case"webm":r=jr;break;default:r=Hn;break}return r}};bo.getShortName=t=>{if(!t)return"";const r=t.split("."),o=r[0].substring(0,25),i=r[r.length-1];return`${o}...${i}`},bo.isOndrive=async t=>t?t.indexOf("my.sharepoint.com")>-1:!1;let mo=bo;const It=class It{};It.getThumbnailUrl=(t,r="medium")=>`https://graph.microsoft.com/v1.0/sites/${t.identitySiteCollectionId}/sites/${t.identityWebId}/lists/${t.identityListId}/items/${t.listItemId}/microsoft.graph.listitem/driveItem/thumbnails/0/${r}/content`,It.getThumbnailImageFromGraphApiCall=async(t,r)=>{const o=await t.get(r);if(o.headers["content-type"]==="application/json")return"data:image/png;base64,"+(await o.text()).replace('"',"").replace('"',"");if(o.status===302)return o.headers.Location;if(o.status===404)return"";const i=await o.arrayBuffer();return`data:image/jpeg;base64,${Buffer.from(new Uint8Array(i).reduce((s,l)=>s+String.fromCharCode(l),"")).toString("base64")}`},It.getThumbnailImageFromGraph=async(t,r,o="medium")=>{const i=It.getThumbnailUrl(t,o);return await It.getThumbnailImageFromGraphApiCall(r,i)};let Vn=It;const y1=fa({title:{...eo.margin(0,0,"12px")},description:{...eo.margin(0,0,"12px")},card:{width:"20rem",maxWidth:"100%",height:"fit-content"},image:{width:"20rem",height:"7rem"},text:{...eo.margin(0)},imageIconWrapper:{width:"20rem!important",height:"7rem!important",display:"flex!important",justifyContent:"center",alignItems:"center",backgroundColor:gn.colorNeutralBackground3}}),w1=e=>{const{graphClient:t}=Je(),r=y1(),[o,i]=p.useState(void 0);return p.useEffect(()=>{Vn.getThumbnailImageFromGraph(e.document.fields,t).then(n=>{i(n)}).catch(n=>{console.error(n)})},[]),M.jsxs(Nl,{className:r.card,children:[M.jsx(Rl,{children:o?M.jsx("img",{src:o,alt:e.document.fields.title,className:r.image}):M.jsx("div",{className:r.imageIconWrapper,children:M.jsx("div",{children:M.jsx("img",{src:mo.getFileImageUrl(e.document.fields.path),width:"32px",height:"32px",alt:e.document.fields.title})})})}),M.jsx(jl,{image:M.jsx("img",{src:mo.getFileImageUrl(e.document.fields.path),width:"32px",height:"32px",alt:e.document.fields.title}),header:M.jsx(jb,{children:M.jsx("b",{children:e.document.fields.title})}),description:M.jsx(Rb,{children:e.document.fields.author}),action:M.jsx(ll,{appearance:"transparent","aria-label":"More options"})}),M.jsx("p",{className:r.text,children:e.document.fields.description}),M.jsx(El,{})]})},k1=fa({wrapper:{},searchInput:{},searchResults:{display:"flex",flexWrap:"wrap",flexDirection:"row",...eo.gap(gn.spacingHorizontalL,gn.spacingVerticalL)}}),x1=e=>{var d;const{graphClient:t}=Je(),r=k1(),o=p.useMemo(()=>{var m,k,b,y,P,x;var h=new ui(t,[((m=e.dataProviderProps)==null?void 0:m.entityType)??"listItem"],((k=e.dataProviderProps)==null?void 0:k.selectFields)||Fl);return h.queryTemplate=(b=e.dataProviderProps)==null?void 0:b.queryTemplate,h.pageSize=(y=e.dataProviderProps)==null?void 0:y.pageSize,h.setRefiners((P=e.dataProviderProps)==null?void 0:P.aggregations),h.setQuery(((x=e.dataProviderProps)==null?void 0:x.initialQuery)??""),h},[t,e.dataProviderProps]),[i,n]=p.useState(!0),[s,l]=p.useState(((d=e.dataProviderProps)==null?void 0:d.initialQuery)??""),[u,a]=p.useState([]),[c,f]=p.useState(void 0);p.useEffect(()=>{o.setQuery(s),n(!0),o.getData().then(h=>{a(h),f(void 0)}).catch(h=>{f(h.message)}).finally(()=>{n(!1)})},[s]);const v=()=>e!=null&&e.searchInputComponent?M.jsx(e.searchInputComponent,{onSearch:h=>{l(h)}}):M.jsx(kl,{contentBefore:M.jsx(gh,{}),placeholder:"Search",value:s,onChange:h=>{l(h.target.value)}});return M.jsxs("div",{children:[M.jsx("div",{children:v()}),M.jsxs("div",{children:[i&&M.jsx(Dn,{label:"Loading..."}),!i&&c&&M.jsxs("div",{children:["Error: ",c]})]}),M.jsx("div",{className:r.searchResults,children:u.map((h,m)=>M.jsx("div",{children:e!=null&&e.onResultRendering?e.onResultRendering(h):M.jsx(w1,{document:h})},m))})]})};var B1=Object.defineProperty,_1=Object.getOwnPropertyDescriptor,P1=(e,t,r,o)=>{for(var i=o>1?void 0:o?_1(t,r):t,n=e.length-1,s;n>=0;n--)(s=e[n])&&(i=(o?s(t,r,i):s(i))||i);return o&&i&&B1(t,r,i),i};class Ll{constructor(t,r){this.graphClient=t,this.updatePresence=r,this.key="persona-cache-",this.cacheExpiration=1e3*60*60*4,this.storageService=new ri}async getUser(t,r="48x48"){let o=t;if(t&&t.indexOf("@")>-1){const l=`/users/${t}?$select=id`,u=await this.graphClient.get(l);if(u.status===404)return null;o=(await u.json()).id}let i=this.storageService.get(this.key+t),n=i==null?void 0:i.data;const s=o?`/users/${o}`:"/me";if(!n||i.expiration<new Date().getTime()){const[l,u,a]=await Promise.all([this.graphClient.get(s+"?$select=id,displayName,mail,jobTitle,department,officeLocation,mobilePhone,businessPhones,userPrincipalName,usageLocation"),this.graphClient.get(s+`/photos/${r}/$value`),this.graphClient.get(s+"/presence")]),[c,f,v]=await Promise.all([l.json(),u.text(),a.json()]);n={...c,photo:`data:image/png;base64,${f.replace('"',"").replace('"',"")}`,presence:v},this.storageService.set(this.key+t,{data:n,expiration:new Date().getTime()+this.cacheExpiration})}else if(this.updatePresence){const u=await(await this.graphClient.get(s+"/presence")).json();n={...n,presence:u},this.storageService.set(this.key+t,{data:n,expiration:new Date().getTime()+this.cacheExpiration})}return n}}P1([oi("getUser-{0}")],Ll.prototype,"getUser",1);function $n(e){var f,v,d,h,m;const{id:t}=e;let r=e.graphClient;const o=k=>{switch(k){case"":return"offline";case"Available":return"available";case"Busy":return"busy";case"Away":return"away";case"DoNotDisturb":return"do-not-disturb";case"Offline":return"offline";case"PresenceUnknown":return"unknown";case"OutOfOffice":return"out-of-office";case"Blocked":return"blocked";case"BeRightBack":return"away";case"BusyIdle":return"busy";case"AvailableIdle":return"available";default:return k==null?void 0:k.toLowerCase()}},i=p.useRef(new Ll(r,e.showPresence)),[n,s]=p.useState(!e.user),[l,u]=p.useState(e.user),a=async()=>{const k=await i.current.getUser(t);u({...e.user,...k}),s(!1)};if(p.useEffect(()=>{e.user||a()},[t]),n)return M.jsx(Dn,{});const c=(l==null?void 0:l.displayName)||e.name||e.title||e.id;return M.jsx(xl,{primaryText:c,secondaryText:l==null?void 0:l.jobTitle,avatar:{image:{src:l==null?void 0:l.photo},initials:((f=l==null?void 0:l.displayName)==null?void 0:f.split(" ").map(k=>k[0]).join(""))||((v=e.name)==null?void 0:v.split(" ").map(k=>k[0]).join(""))},presence:e.showPresence?{status:o((d=l==null?void 0:l.presence)==null?void 0:d.availability),outOfOffice:(m=(h=l==null?void 0:l.presence)==null?void 0:h.outOfOfficeSettings)==null?void 0:m.isOutOfOffice}:void 0,...e})}function S1(e){const{graphClient:t}=Je();return M.jsx($n,{...e,graphClient:t})}function nr(e){const[t,r]=p.useState(e.value||[]),[o,i]=p.useState(!1),[n,s]=p.useState(""),[l,u]=p.useState(e.value||[]),a=c=>dc.debounce(`entityPicker-${e.additionalKey}`,async()=>{i(!0);try{const f=await e.onDataRequested(c);r([...f,...l].reduce((v,d)=>v.find(m=>m.id===d.id)?v:v.concat([d]),[])),i(!1)}catch(f){console.error(f),i(!1)}},500);return p.useEffect(()=>{a(n)},[n]),e.renderOverride?e.renderOverride(t,o,a):M.jsxs(vl,{label:e.label,hint:e.description,children:[M.jsx(wl,{value:n,multiselect:e.multiSelect,freeform:!0,onChange:c=>{s(c.target.value)},size:e.size,disabled:e.disabled,onOptionSelect:(c,f)=>{let v=[];const d=t.find(h=>h.id===f.optionValue);l.some(h=>h.id===f.optionValue)?v=l.filter(h=>h.id!==f.optionValue):e.multiSelect?v=[...l,d]:v=[d],v=v.filter(h=>!!h),e.onEntitySelected&&e.onEntitySelected(v),u(v),s(v.map(h=>h.displayName).join(", "))},defaultSelectedOptions:l.map(c=>c.id),children:t.map(c=>M.jsx(yl,{text:c.displayName,value:c.id,children:e.onSuggestionRendering?e.onSuggestionRendering(c):c.displayName},encodeURIComponent(c.id)))}),o&&M.jsx(Sl,{})]})}function C1(e){const{graphClient:t}=Je();return M.jsx(Hl,{...e,graphClient:t})}function Hl(e){const t=async()=>(await(await e.graphClient.get(`/teams/${e.teamId}/channels?$select=id,displayName`)).json()).value;p.useEffect(()=>{t()},[e.teamId]);const r=async o=>await t();return M.jsx(nr,{additionalKey:`team-${e.teamId}-channels`,...e,onDataRequested:r})}function z1(e){const{graphClient:t}=Je();return M.jsx(Vl,{...e,graphClient:t,siteId:e.siteId})}function Vl(e){const t=async r=>{let o=e.siteId?`/sites/${e.siteId}/drives?$select=id,name`:"/me/drives?$select=id,name";return r&&(o+=`&$filter=startswith(name, '${r}')`),(await(await e.graphClient.get(o)).json()).value.map(s=>({id:s.id,displayName:s.name}))};return M.jsx(nr,{additionalKey:`drive-picker-${e.siteId}`,...e,onDataRequested:t})}function T1(e){const{graphClient:t}=Je();return M.jsx($l,{...e,graphClient:t})}function $l(e){const t=async r=>{let o="/teams?$select=id,displayName&$top=8";return r&&(o+=`&$filter=startswith(displayName, '${r}')`),(await(await e.graphClient.get(o)).json()).value};return M.jsx(nr,{additionalKey:"team-site-picker",...e,onDataRequested:t})}function N1(e){const{graphClient:t}=Je();return M.jsx(Wl,{...e,graphClient:t})}function Wl(e){const t=new wc(e.graphClient,!0,!0),r=async o=>(t.setQuery(o),await t.getData());return M.jsx(nr,{...e,additionalKey:"people-picker",onDataRequested:r,onSuggestionRendering:o=>(o.photo&&(o.photo=`data:image/png;base64,${o.photo.replace('"',"").replace('"',"")}`),M.jsx($n,{showPresence:!0,user:o,graphClient:e.graphClient}))})}function E1(e){const{graphClient:t}=Je();return M.jsx(Ul,{...e,graphClient:t})}function Ul(e){const t=p.useRef(new ui(e.graphClient,["site"],["id","displayName"])),r=async o=>(t.current.setQuery(o||"*"),await t.current.getData());return M.jsx(nr,{...e,onDataRequested:r})}function Gl(e){const[t,r]=p.useState(e.initialRender),[o,i]=p.useState(!0);return p.useEffect(()=>{e.permissionCheck().then(n=>{r(n)}).finally(()=>i(!1))},[]),o&&e.placeholder?e.placeholder:t?e.children:M.jsx(M.Fragment,{})}function j1(e){const{spClient:t,siteUrl:r}=fi();return M.jsx(Xl,{...e,siteUrl:r,spClient:t})}function Xl(e){return M.jsx(Gl,{placeholder:e.placeholder,permissionCheck:async()=>{var t=`${e.siteUrl}/_api/web/EffectiveBasePermissions`,r=await e.spClient.get(t,{headers:{accept:"application/json"}}),o=await r.json(),i=[];for(var n in Dr){var s=_c.hasPermission(o,Dr[n]);s&&i.push(n)}return i.indexOf(e.role)>=0},children:e.children},`${e.role}-${e.siteUrl}`)}function Kl(e){return M.jsx(Gl,{placeholder:e.placeholder,permissionCheck:async()=>{const t=`/me/transitiveMemberOf/${e.groupId}?$select=id`;return(await e.graphClient.get(t)).ok},children:e.children},e.groupId)}function R1(e){const{graphClient:t}=Je();return M.jsx(Kl,{...e,graphClient:t})}X.AbstractGraphEntityPicker=nr,X.AuthenticationContext=_o,X.AuthenticationContextProvider=uc,X.ChannelPicker=C1,X.ChannelPickerStandalone=Hl,X.DataverseContext=Ro,X.DataverseContextProvider=zc,X.DrivePicker=z1,X.DrivePickerStandalone=Vl,X.GraphContext=Eo,X.GraphContextProvider=Pc,X.GraphGroupMembershipTrimmedComponent=R1,X.GraphGroupMembershipTrimmedComponentStandalone=Kl,X.GraphPersona=S1,X.GraphPersonaStandalone=$n,X.M365Search=x1,X.PeoplePicker=N1,X.PeoplePickerStandalone=Wl,X.SPContext=jo,X.SPContextProvider=Sc,X.SPPermissionTrimmedComponent=j1,X.SPPermissionTrimmedComponentStandalone=Xl,X.SitePicker=E1,X.SitePickerStandalone=Ul,X.TeamPicker=T1,X.TeamPickerStandalone=$l,X.defaultSelectFields=Fl,X.useAuthentication=Fr,X.useDataverse=Cc,X.useGraph=Je,X.useSP=fi,Object.defineProperty(X,Symbol.toStringTag,{value:"Module"})});
|