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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,427 @@
1
+ (function(zr){typeof define=="function"&&define.amd?define(zr):zr()})(function(){var Rp,_f,zm,BH,qm,Ef,Gm,jH,xp,zH,Vm,Km,nl,bf,rl,Ao,i_,Ap,Wm,RR,Bl,Gd,qH,Bu,GH,ju,o_,Ms,Ym,zu,Ih,VH,il,a_,kp,KH,ro,Cf,wf,Qm,Xm,Sf,Jm,Zm,WH;"use strict";var UN=(zr,Ji,Fo)=>{if(!Ji.has(zr))throw TypeError("Cannot "+Fo)};var Ae=(zr,Ji,Fo)=>(UN(zr,Ji,"read from private field"),Fo?Fo.call(zr):Ji.get(zr)),Pn=(zr,Ji,Fo)=>{if(Ji.has(zr))throw TypeError("Cannot add the same private member more than once");Ji instanceof WeakSet?Ji.add(zr):Ji.set(zr,Fo)},Xt=(zr,Ji,Fo,Vd)=>(UN(zr,Ji,"write to private field"),Vd?Vd.call(zr,Fo):Ji.set(zr,Fo),Fo),TR=(zr,Ji,Fo,Vd)=>({set _(Oh){Xt(zr,Ji,Oh,Fo)},get _(){return Ae(zr,Ji,Vd)}}),Eo=(zr,Ji,Fo)=>(UN(zr,Ji,"access private method"),Fo);var zr=typeof document<"u"?document.currentScript:null;function Ji(n,e){for(var t=0;t<e.length;t++){const r=e[t];if(typeof r!="string"&&!Array.isArray(r)){for(const o in r)if(o!=="default"&&!(o in n)){const s=Object.getOwnPropertyDescriptor(r,o);s&&Object.defineProperty(n,o,s.get?s:{enumerable:!0,get:()=>r[o]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}function Fo(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}var Vd={exports:{}},Oh={},xR={exports:{}},wn={};/**
2
+ * @license React
3
+ * react.production.min.js
4
+ *
5
+ * Copyright (c) Facebook, Inc. and its affiliates.
6
+ *
7
+ * This source code is licensed under the MIT license found in the
8
+ * LICENSE file in the root directory of this source tree.
9
+ */var FN;function kB(){if(FN)return wn;FN=1;var n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.provider"),u=Symbol.for("react.context"),f=Symbol.for("react.forward_ref"),p=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),E=Symbol.iterator;function w(B){return B===null||typeof B!="object"?null:(B=E&&B[E]||B["@@iterator"],typeof B=="function"?B:null)}var S={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},A=Object.assign,k={};function M(B,ne,ke){this.props=B,this.context=ne,this.refs=k,this.updater=ke||S}M.prototype.isReactComponent={},M.prototype.setState=function(B,ne){if(typeof B!="object"&&typeof B!="function"&&B!=null)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,B,ne,"setState")},M.prototype.forceUpdate=function(B){this.updater.enqueueForceUpdate(this,B,"forceUpdate")};function P(){}P.prototype=M.prototype;function L(B,ne,ke){this.props=B,this.context=ne,this.refs=k,this.updater=ke||S}var j=L.prototype=new P;j.constructor=L,A(j,M.prototype),j.isPureReactComponent=!0;var U=Array.isArray,H=Object.prototype.hasOwnProperty,W={current:null},Q={key:!0,ref:!0,__self:!0,__source:!0};function Te(B,ne,ke){var ut,De={},At=null,Lt=null;if(ne!=null)for(ut in ne.ref!==void 0&&(Lt=ne.ref),ne.key!==void 0&&(At=""+ne.key),ne)H.call(ne,ut)&&!Q.hasOwnProperty(ut)&&(De[ut]=ne[ut]);var zt=arguments.length-2;if(zt===1)De.children=ke;else if(1<zt){for(var _t=Array(zt),gn=0;gn<zt;gn++)_t[gn]=arguments[gn+2];De.children=_t}if(B&&B.defaultProps)for(ut in zt=B.defaultProps,zt)De[ut]===void 0&&(De[ut]=zt[ut]);return{$$typeof:n,type:B,key:At,ref:Lt,props:De,_owner:W.current}}function Ve(B,ne){return{$$typeof:n,type:B.type,key:ne,ref:B.ref,props:B.props,_owner:B._owner}}function ot(B){return typeof B=="object"&&B!==null&&B.$$typeof===n}function Me(B){var ne={"=":"=0",":":"=2"};return"$"+B.replace(/[=:]/g,function(ke){return ne[ke]})}var je=/\/+/g;function te(B,ne){return typeof B=="object"&&B!==null&&B.key!=null?Me(""+B.key):ne.toString(36)}function ee(B,ne,ke,ut,De){var At=typeof B;(At==="undefined"||At==="boolean")&&(B=null);var Lt=!1;if(B===null)Lt=!0;else switch(At){case"string":case"number":Lt=!0;break;case"object":switch(B.$$typeof){case n:case e:Lt=!0}}if(Lt)return Lt=B,De=De(Lt),B=ut===""?"."+te(Lt,0):ut,U(De)?(ke="",B!=null&&(ke=B.replace(je,"$&/")+"/"),ee(De,ne,ke,"",function(gn){return gn})):De!=null&&(ot(De)&&(De=Ve(De,ke+(!De.key||Lt&&Lt.key===De.key?"":(""+De.key).replace(je,"$&/")+"/")+B)),ne.push(De)),1;if(Lt=0,ut=ut===""?".":ut+":",U(B))for(var zt=0;zt<B.length;zt++){At=B[zt];var _t=ut+te(At,zt);Lt+=ee(At,ne,ke,_t,De)}else if(_t=w(B),typeof _t=="function")for(B=_t.call(B),zt=0;!(At=B.next()).done;)At=At.value,_t=ut+te(At,zt++),Lt+=ee(At,ne,ke,_t,De);else if(At==="object")throw ne=String(B),Error("Objects are not valid as a React child (found: "+(ne==="[object Object]"?"object with keys {"+Object.keys(B).join(", ")+"}":ne)+"). If you meant to render a collection of children, use an array instead.");return Lt}function ye(B,ne,ke){if(B==null)return B;var ut=[],De=0;return ee(B,ut,"","",function(At){return ne.call(ke,At,De++)}),ut}function ve(B){if(B._status===-1){var ne=B._result;ne=ne(),ne.then(function(ke){(B._status===0||B._status===-1)&&(B._status=1,B._result=ke)},function(ke){(B._status===0||B._status===-1)&&(B._status=2,B._result=ke)}),B._status===-1&&(B._status=0,B._result=ne)}if(B._status===1)return B._result.default;throw B._result}var pe={current:null},K={transition:null},ge={ReactCurrentDispatcher:pe,ReactCurrentBatchConfig:K,ReactCurrentOwner:W};return wn.Children={map:ye,forEach:function(B,ne,ke){ye(B,function(){ne.apply(this,arguments)},ke)},count:function(B){var ne=0;return ye(B,function(){ne++}),ne},toArray:function(B){return ye(B,function(ne){return ne})||[]},only:function(B){if(!ot(B))throw Error("React.Children.only expected to receive a single React element child.");return B}},wn.Component=M,wn.Fragment=t,wn.Profiler=o,wn.PureComponent=L,wn.StrictMode=r,wn.Suspense=p,wn.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ge,wn.cloneElement=function(B,ne,ke){if(B==null)throw Error("React.cloneElement(...): The argument must be a React element, but you passed "+B+".");var ut=A({},B.props),De=B.key,At=B.ref,Lt=B._owner;if(ne!=null){if(ne.ref!==void 0&&(At=ne.ref,Lt=W.current),ne.key!==void 0&&(De=""+ne.key),B.type&&B.type.defaultProps)var zt=B.type.defaultProps;for(_t in ne)H.call(ne,_t)&&!Q.hasOwnProperty(_t)&&(ut[_t]=ne[_t]===void 0&&zt!==void 0?zt[_t]:ne[_t])}var _t=arguments.length-2;if(_t===1)ut.children=ke;else if(1<_t){zt=Array(_t);for(var gn=0;gn<_t;gn++)zt[gn]=arguments[gn+2];ut.children=zt}return{$$typeof:n,type:B.type,key:De,ref:At,props:ut,_owner:Lt}},wn.createContext=function(B){return B={$$typeof:u,_currentValue:B,_currentValue2:B,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},B.Provider={$$typeof:s,_context:B},B.Consumer=B},wn.createElement=Te,wn.createFactory=function(B){var ne=Te.bind(null,B);return ne.type=B,ne},wn.createRef=function(){return{current:null}},wn.forwardRef=function(B){return{$$typeof:f,render:B}},wn.isValidElement=ot,wn.lazy=function(B){return{$$typeof:g,_payload:{_status:-1,_result:B},_init:ve}},wn.memo=function(B,ne){return{$$typeof:v,type:B,compare:ne===void 0?null:ne}},wn.startTransition=function(B){var ne=K.transition;K.transition={};try{B()}finally{K.transition=ne}},wn.unstable_act=function(){throw Error("act(...) is not supported in production builds of React.")},wn.useCallback=function(B,ne){return pe.current.useCallback(B,ne)},wn.useContext=function(B){return pe.current.useContext(B)},wn.useDebugValue=function(){},wn.useDeferredValue=function(B){return pe.current.useDeferredValue(B)},wn.useEffect=function(B,ne){return pe.current.useEffect(B,ne)},wn.useId=function(){return pe.current.useId()},wn.useImperativeHandle=function(B,ne,ke){return pe.current.useImperativeHandle(B,ne,ke)},wn.useInsertionEffect=function(B,ne){return pe.current.useInsertionEffect(B,ne)},wn.useLayoutEffect=function(B,ne){return pe.current.useLayoutEffect(B,ne)},wn.useMemo=function(B,ne){return pe.current.useMemo(B,ne)},wn.useReducer=function(B,ne,ke){return pe.current.useReducer(B,ne,ke)},wn.useRef=function(B){return pe.current.useRef(B)},wn.useState=function(B){return pe.current.useState(B)},wn.useSyncExternalStore=function(B,ne,ke){return pe.current.useSyncExternalStore(B,ne,ke)},wn.useTransition=function(){return pe.current.useTransition()},wn.version="18.2.0",wn}var $y={exports:{}};/**
10
+ * @license React
11
+ * react.development.js
12
+ *
13
+ * Copyright (c) Facebook, Inc. and its affiliates.
14
+ *
15
+ * This source code is licensed under the MIT license found in the
16
+ * LICENSE file in the root directory of this source tree.
17
+ */$y.exports;var HN;function IB(){return HN||(HN=1,function(n,e){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var t="18.2.0",r=Symbol.for("react.element"),o=Symbol.for("react.portal"),s=Symbol.for("react.fragment"),u=Symbol.for("react.strict_mode"),f=Symbol.for("react.profiler"),p=Symbol.for("react.provider"),v=Symbol.for("react.context"),g=Symbol.for("react.forward_ref"),E=Symbol.for("react.suspense"),w=Symbol.for("react.suspense_list"),S=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),k=Symbol.for("react.offscreen"),M=Symbol.iterator,P="@@iterator";function L(O){if(O===null||typeof O!="object")return null;var G=M&&O[M]||O[P];return typeof G=="function"?G:null}var j={current:null},U={transition:null},H={current:null,isBatchingLegacy:!1,didScheduleLegacyUpdate:!1},W={current:null},Q={},Te=null;function Ve(O){Te=O}Q.setExtraStackFrame=function(O){Te=O},Q.getCurrentStack=null,Q.getStackAddendum=function(){var O="";Te&&(O+=Te);var G=Q.getCurrentStack;return G&&(O+=G()||""),O};var ot=!1,Me=!1,je=!1,te=!1,ee=!1,ye={ReactCurrentDispatcher:j,ReactCurrentBatchConfig:U,ReactCurrentOwner:W};ye.ReactDebugCurrentFrame=Q,ye.ReactCurrentActQueue=H;function ve(O){{for(var G=arguments.length,de=new Array(G>1?G-1:0),_e=1;_e<G;_e++)de[_e-1]=arguments[_e];K("warn",O,de)}}function pe(O){{for(var G=arguments.length,de=new Array(G>1?G-1:0),_e=1;_e<G;_e++)de[_e-1]=arguments[_e];K("error",O,de)}}function K(O,G,de){{var _e=ye.ReactDebugCurrentFrame,Be=_e.getStackAddendum();Be!==""&&(G+="%s",de=de.concat([Be]));var Ut=de.map(function(et){return String(et)});Ut.unshift("Warning: "+G),Function.prototype.apply.call(console[O],console,Ut)}}var ge={};function B(O,G){{var de=O.constructor,_e=de&&(de.displayName||de.name)||"ReactClass",Be=_e+"."+G;if(ge[Be])return;pe("Can't call %s on a component that is not yet mounted. This is a no-op, but it might indicate a bug in your application. Instead, assign to `this.state` directly or define a `state = {};` class property with the desired state in the %s component.",G,_e),ge[Be]=!0}}var ne={isMounted:function(O){return!1},enqueueForceUpdate:function(O,G,de){B(O,"forceUpdate")},enqueueReplaceState:function(O,G,de,_e){B(O,"replaceState")},enqueueSetState:function(O,G,de,_e){B(O,"setState")}},ke=Object.assign,ut={};Object.freeze(ut);function De(O,G,de){this.props=O,this.context=G,this.refs=ut,this.updater=de||ne}De.prototype.isReactComponent={},De.prototype.setState=function(O,G){if(typeof O!="object"&&typeof O!="function"&&O!=null)throw new Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,O,G,"setState")},De.prototype.forceUpdate=function(O){this.updater.enqueueForceUpdate(this,O,"forceUpdate")};{var At={isMounted:["isMounted","Instead, make sure to clean up subscriptions and pending requests in componentWillUnmount to prevent memory leaks."],replaceState:["replaceState","Refactor your code to use setState instead (see https://github.com/facebook/react/issues/3236)."]},Lt=function(O,G){Object.defineProperty(De.prototype,O,{get:function(){ve("%s(...) is deprecated in plain JavaScript React classes. %s",G[0],G[1])}})};for(var zt in At)At.hasOwnProperty(zt)&&Lt(zt,At[zt])}function _t(){}_t.prototype=De.prototype;function gn(O,G,de){this.props=O,this.context=G,this.refs=ut,this.updater=de||ne}var Lr=gn.prototype=new _t;Lr.constructor=gn,ke(Lr,De.prototype),Lr.isPureReactComponent=!0;function jn(){var O={current:null};return Object.seal(O),O}var at=Array.isArray;function Xn(O){return at(O)}function yr(O){{var G=typeof Symbol=="function"&&Symbol.toStringTag,de=G&&O[Symbol.toStringTag]||O.constructor.name||"Object";return de}}function or(O){try{return Qr(O),!1}catch{return!0}}function Qr(O){return""+O}function _r(O){if(or(O))return pe("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",yr(O)),Qr(O)}function Ai(O,G,de){var _e=O.displayName;if(_e)return _e;var Be=G.displayName||G.name||"";return Be!==""?de+"("+Be+")":de}function zi(O){return O.displayName||"Context"}function lr(O){if(O==null)return null;if(typeof O.tag=="number"&&pe("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof O=="function")return O.displayName||O.name||null;if(typeof O=="string")return O;switch(O){case s:return"Fragment";case o:return"Portal";case f:return"Profiler";case u:return"StrictMode";case E:return"Suspense";case w:return"SuspenseList"}if(typeof O=="object")switch(O.$$typeof){case v:var G=O;return zi(G)+".Consumer";case p:var de=O;return zi(de._context)+".Provider";case g:return Ai(O,O.render,"ForwardRef");case S:var _e=O.displayName||null;return _e!==null?_e:lr(O.type)||"Memo";case A:{var Be=O,Ut=Be._payload,et=Be._init;try{return lr(et(Ut))}catch{return null}}}return null}var ki=Object.prototype.hasOwnProperty,io={key:!0,ref:!0,__self:!0,__source:!0},Ii,Go,gi;gi={};function Oi(O){if(ki.call(O,"ref")){var G=Object.getOwnPropertyDescriptor(O,"ref").get;if(G&&G.isReactWarning)return!1}return O.ref!==void 0}function hr(O){if(ki.call(O,"key")){var G=Object.getOwnPropertyDescriptor(O,"key").get;if(G&&G.isReactWarning)return!1}return O.key!==void 0}function Ni(O,G){var de=function(){Ii||(Ii=!0,pe("%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)",G))};de.isReactWarning=!0,Object.defineProperty(O,"key",{get:de,configurable:!0})}function rs(O,G){var de=function(){Go||(Go=!0,pe("%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)",G))};de.isReactWarning=!0,Object.defineProperty(O,"ref",{get:de,configurable:!0})}function ko(O){if(typeof O.ref=="string"&&W.current&&O.__self&&W.current.stateNode!==O.__self){var G=lr(W.current.type);gi[G]||(pe('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',G,O.ref),gi[G]=!0)}}var Ke=function(O,G,de,_e,Be,Ut,et){var Mt={$$typeof:r,type:O,key:G,ref:de,props:et,_owner:Ut};return Mt._store={},Object.defineProperty(Mt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Mt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:_e}),Object.defineProperty(Mt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:Be}),Object.freeze&&(Object.freeze(Mt.props),Object.freeze(Mt)),Mt};function Et(O,G,de){var _e,Be={},Ut=null,et=null,Mt=null,fn=null;if(G!=null){Oi(G)&&(et=G.ref,ko(G)),hr(G)&&(_r(G.key),Ut=""+G.key),Mt=G.__self===void 0?null:G.__self,fn=G.__source===void 0?null:G.__source;for(_e in G)ki.call(G,_e)&&!io.hasOwnProperty(_e)&&(Be[_e]=G[_e])}var In=arguments.length-2;if(In===1)Be.children=de;else if(In>1){for(var ur=Array(In),Zn=0;Zn<In;Zn++)ur[Zn]=arguments[Zn+2];Object.freeze&&Object.freeze(ur),Be.children=ur}if(O&&O.defaultProps){var cr=O.defaultProps;for(_e in cr)Be[_e]===void 0&&(Be[_e]=cr[_e])}if(Ut||et){var mr=typeof O=="function"?O.displayName||O.name||"Unknown":O;Ut&&Ni(Be,mr),et&&rs(Be,mr)}return Ke(O,Ut,et,Mt,fn,W.current,Be)}function tn(O,G){var de=Ke(O.type,G,O.ref,O._self,O._source,O._owner,O.props);return de}function re(O,G,de){if(O==null)throw new Error("React.cloneElement(...): The argument must be a React element, but you passed "+O+".");var _e,Be=ke({},O.props),Ut=O.key,et=O.ref,Mt=O._self,fn=O._source,In=O._owner;if(G!=null){Oi(G)&&(et=G.ref,In=W.current),hr(G)&&(_r(G.key),Ut=""+G.key);var ur;O.type&&O.type.defaultProps&&(ur=O.type.defaultProps);for(_e in G)ki.call(G,_e)&&!io.hasOwnProperty(_e)&&(G[_e]===void 0&&ur!==void 0?Be[_e]=ur[_e]:Be[_e]=G[_e])}var Zn=arguments.length-2;if(Zn===1)Be.children=de;else if(Zn>1){for(var cr=Array(Zn),mr=0;mr<Zn;mr++)cr[mr]=arguments[mr+2];Be.children=cr}return Ke(O.type,Ut,et,Mt,fn,In,Be)}function le(O){return typeof O=="object"&&O!==null&&O.$$typeof===r}var Re=".",Ge=":";function bt(O){var G=/[=:]/g,de={"=":"=0",":":"=2"},_e=O.replace(G,function(Be){return de[Be]});return"$"+_e}var tt=!1,Ct=/\/+/g;function We(O){return O.replace(Ct,"$&/")}function qe(O,G){return typeof O=="object"&&O!==null&&O.key!=null?(_r(O.key),bt(""+O.key)):G.toString(36)}function cn(O,G,de,_e,Be){var Ut=typeof O;(Ut==="undefined"||Ut==="boolean")&&(O=null);var et=!1;if(O===null)et=!0;else switch(Ut){case"string":case"number":et=!0;break;case"object":switch(O.$$typeof){case r:case o:et=!0}}if(et){var Mt=O,fn=Be(Mt),In=_e===""?Re+qe(Mt,0):_e;if(Xn(fn)){var ur="";In!=null&&(ur=We(In)+"/"),cn(fn,G,ur,"",function(c_){return c_})}else fn!=null&&(le(fn)&&(fn.key&&(!Mt||Mt.key!==fn.key)&&_r(fn.key),fn=tn(fn,de+(fn.key&&(!Mt||Mt.key!==fn.key)?We(""+fn.key)+"/":"")+In)),G.push(fn));return 1}var Zn,cr,mr=0,Cn=_e===""?Re:_e+Ge;if(Xn(O))for(var ql=0;ql<O.length;ql++)Zn=O[ql],cr=Cn+qe(Zn,ql),mr+=cn(Zn,G,de,cr,Be);else{var Lf=L(O);if(typeof Lf=="function"){var Pp=O;Lf===Pp.entries&&(tt||ve("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),tt=!0);for(var u_=Lf.call(Pp),Us,Dp=0;!(Us=u_.next()).done;)Zn=Us.value,cr=Cn+qe(Zn,Dp++),mr+=cn(Zn,G,de,cr,Be)}else if(Ut==="object"){var Lp=String(O);throw new Error("Objects are not valid as a React child (found: "+(Lp==="[object Object]"?"object with keys {"+Object.keys(O).join(", ")+"}":Lp)+"). If you meant to render a collection of children, use an array instead.")}}return mr}function zn(O,G,de){if(O==null)return O;var _e=[],Be=0;return cn(O,_e,"","",function(Ut){return G.call(de,Ut,Be++)}),_e}function _n(O){var G=0;return zn(O,function(){G++}),G}function Jn(O,G,de){zn(O,function(){G.apply(this,arguments)},de)}function Er(O){return zn(O,function(G){return G})||[]}function oo(O){if(!le(O))throw new Error("React.Children.only expected to receive a single React element child.");return O}function Io(O){var G={$$typeof:v,_currentValue:O,_currentValue2:O,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null};G.Provider={$$typeof:p,_context:G};var de=!1,_e=!1,Be=!1;{var Ut={$$typeof:v,_context:G};Object.defineProperties(Ut,{Provider:{get:function(){return _e||(_e=!0,pe("Rendering <Context.Consumer.Provider> is not supported and will be removed in a future major release. Did you mean to render <Context.Provider> instead?")),G.Provider},set:function(et){G.Provider=et}},_currentValue:{get:function(){return G._currentValue},set:function(et){G._currentValue=et}},_currentValue2:{get:function(){return G._currentValue2},set:function(et){G._currentValue2=et}},_threadCount:{get:function(){return G._threadCount},set:function(et){G._threadCount=et}},Consumer:{get:function(){return de||(de=!0,pe("Rendering <Context.Consumer.Consumer> is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?")),G.Consumer}},displayName:{get:function(){return G.displayName},set:function(et){Be||(ve("Setting `displayName` on Context.Consumer has no effect. You should set it directly on the context with Context.displayName = '%s'.",et),Be=!0)}}}),G.Consumer=Ut}return G._currentRenderer=null,G._currentRenderer2=null,G}var Mi=-1,fa=0,Ur=1,yi=2;function _i(O){if(O._status===Mi){var G=O._result,de=G();if(de.then(function(Ut){if(O._status===fa||O._status===Mi){var et=O;et._status=Ur,et._result=Ut}},function(Ut){if(O._status===fa||O._status===Mi){var et=O;et._status=yi,et._result=Ut}}),O._status===Mi){var _e=O;_e._status=fa,_e._result=de}}if(O._status===Ur){var Be=O._result;return Be===void 0&&pe(`lazy: Expected the result of a dynamic import() call. Instead received: %s
18
+
19
+ Your code should look like:
20
+ const MyComponent = lazy(() => import('./MyComponent'))
21
+
22
+ Did you accidentally put curly braces around the import?`,Be),"default"in Be||pe(`lazy: Expected the result of a dynamic import() call. Instead received: %s
23
+
24
+ Your code should look like:
25
+ const MyComponent = lazy(() => import('./MyComponent'))`,Be),Be.default}else throw O._result}function ao(O){var G={_status:Mi,_result:O},de={$$typeof:A,_payload:G,_init:_i};{var _e,Be;Object.defineProperties(de,{defaultProps:{configurable:!0,get:function(){return _e},set:function(Ut){pe("React.lazy(...): It is not supported to assign `defaultProps` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),_e=Ut,Object.defineProperty(de,"defaultProps",{enumerable:!0})}},propTypes:{configurable:!0,get:function(){return Be},set:function(Ut){pe("React.lazy(...): It is not supported to assign `propTypes` to a lazy component import. Either specify them where the component is defined, or create a wrapping component around it."),Be=Ut,Object.defineProperty(de,"propTypes",{enumerable:!0})}}})}return de}function ha(O){O!=null&&O.$$typeof===S?pe("forwardRef requires a render function but received a `memo` component. Instead of forwardRef(memo(...)), use memo(forwardRef(...))."):typeof O!="function"?pe("forwardRef requires a render function but was given %s.",O===null?"null":typeof O):O.length!==0&&O.length!==2&&pe("forwardRef render functions accept exactly two parameters: props and ref. %s",O.length===1?"Did you forget to use the ref parameter?":"Any additional parameter will be undefined."),O!=null&&(O.defaultProps!=null||O.propTypes!=null)&&pe("forwardRef render functions do not support propTypes or defaultProps. Did you accidentally pass a React component?");var G={$$typeof:g,render:O};{var de;Object.defineProperty(G,"displayName",{enumerable:!1,configurable:!0,get:function(){return de},set:function(_e){de=_e,!O.name&&!O.displayName&&(O.displayName=_e)}})}return G}var q;q=Symbol.for("react.module.reference");function Ee(O){return!!(typeof O=="string"||typeof O=="function"||O===s||O===f||ee||O===u||O===E||O===w||te||O===k||ot||Me||je||typeof O=="object"&&O!==null&&(O.$$typeof===A||O.$$typeof===S||O.$$typeof===p||O.$$typeof===v||O.$$typeof===g||O.$$typeof===q||O.getModuleId!==void 0))}function $e(O,G){Ee(O)||pe("memo: The first argument must be a component. Instead received: %s",O===null?"null":typeof O);var de={$$typeof:S,type:O,compare:G===void 0?null:G};{var _e;Object.defineProperty(de,"displayName",{enumerable:!1,configurable:!0,get:function(){return _e},set:function(Be){_e=Be,!O.name&&!O.displayName&&(O.displayName=Be)}})}return de}function Xe(){var O=j.current;return O===null&&pe(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
26
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
27
+ 2. You might be breaking the Rules of Hooks
28
+ 3. You might have more than one copy of React in the same app
29
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`),O}function qt(O){var G=Xe();if(O._context!==void 0){var de=O._context;de.Consumer===O?pe("Calling useContext(Context.Consumer) is not supported, may cause bugs, and will be removed in a future major release. Did you mean to call useContext(Context) instead?"):de.Provider===O&&pe("Calling useContext(Context.Provider) is not supported. Did you mean to call useContext(Context) instead?")}return G.useContext(O)}function kt(O){var G=Xe();return G.useState(O)}function Bt(O,G,de){var _e=Xe();return _e.useReducer(O,G,de)}function Rt(O){var G=Xe();return G.useRef(O)}function Xr(O,G){var de=Xe();return de.useEffect(O,G)}function pr(O,G){var de=Xe();return de.useInsertionEffect(O,G)}function vr(O,G){var de=Xe();return de.useLayoutEffect(O,G)}function so(O,G){var de=Xe();return de.useCallback(O,G)}function ol(O,G){var de=Xe();return de.useMemo(O,G)}function Tf(O,G,de){var _e=Xe();return _e.useImperativeHandle(O,G,de)}function An(O,G){{var de=Xe();return de.useDebugValue(O,G)}}function s_(){var O=Xe();return O.useTransition()}function Ps(O){var G=Xe();return G.useDeferredValue(O)}function dn(){var O=Xe();return O.useId()}function al(O,G,de){var _e=Xe();return _e.useSyncExternalStore(O,G,de)}var qu=0,Rf,Gu,pa,Ip,Vo,Op,Np;function eg(){}eg.__reactDisabledLog=!0;function xf(){{if(qu===0){Rf=console.log,Gu=console.info,pa=console.warn,Ip=console.error,Vo=console.group,Op=console.groupCollapsed,Np=console.groupEnd;var O={configurable:!0,enumerable:!0,value:eg,writable:!0};Object.defineProperties(console,{info:O,log:O,warn:O,error:O,group:O,groupCollapsed:O,groupEnd:O})}qu++}}function Vu(){{if(qu--,qu===0){var O={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ke({},O,{value:Rf}),info:ke({},O,{value:Gu}),warn:ke({},O,{value:pa}),error:ke({},O,{value:Ip}),group:ke({},O,{value:Vo}),groupCollapsed:ke({},O,{value:Op}),groupEnd:ke({},O,{value:Np})})}qu<0&&pe("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Ds=ye.ReactCurrentDispatcher,Ko;function Ku(O,G,de){{if(Ko===void 0)try{throw Error()}catch(Be){var _e=Be.stack.trim().match(/\n( *(at )?)/);Ko=_e&&_e[1]||""}return`
30
+ `+Ko+O}}var Wu=!1,Yu;{var Af=typeof WeakMap=="function"?WeakMap:Map;Yu=new Af}function kf(O,G){if(!O||Wu)return"";{var de=Yu.get(O);if(de!==void 0)return de}var _e;Wu=!0;var Be=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var Ut;Ut=Ds.current,Ds.current=null,xf();try{if(G){var et=function(){throw Error()};if(Object.defineProperty(et.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(et,[])}catch(Cn){_e=Cn}Reflect.construct(O,[],et)}else{try{et.call()}catch(Cn){_e=Cn}O.call(et.prototype)}}else{try{throw Error()}catch(Cn){_e=Cn}O()}}catch(Cn){if(Cn&&_e&&typeof Cn.stack=="string"){for(var Mt=Cn.stack.split(`
31
+ `),fn=_e.stack.split(`
32
+ `),In=Mt.length-1,ur=fn.length-1;In>=1&&ur>=0&&Mt[In]!==fn[ur];)ur--;for(;In>=1&&ur>=0;In--,ur--)if(Mt[In]!==fn[ur]){if(In!==1||ur!==1)do if(In--,ur--,ur<0||Mt[In]!==fn[ur]){var Zn=`
33
+ `+Mt[In].replace(" at new "," at ");return O.displayName&&Zn.includes("<anonymous>")&&(Zn=Zn.replace("<anonymous>",O.displayName)),typeof O=="function"&&Yu.set(O,Zn),Zn}while(In>=1&&ur>=0);break}}}finally{Wu=!1,Ds.current=Ut,Vu(),Error.prepareStackTrace=Be}var cr=O?O.displayName||O.name:"",mr=cr?Ku(cr):"";return typeof O=="function"&&Yu.set(O,mr),mr}function jl(O,G,de){return kf(O,!1)}function l_(O){var G=O.prototype;return!!(G&&G.isReactComponent)}function sl(O,G,de){if(O==null)return"";if(typeof O=="function")return kf(O,l_(O));if(typeof O=="string")return Ku(O);switch(O){case E:return Ku("Suspense");case w:return Ku("SuspenseList")}if(typeof O=="object")switch(O.$$typeof){case g:return jl(O.render);case S:return sl(O.type,G,de);case A:{var _e=O,Be=_e._payload,Ut=_e._init;try{return sl(Ut(Be),G,de)}catch{}}}return""}var Ln={},If=ye.ReactDebugCurrentFrame;function nd(O){if(O){var G=O._owner,de=sl(O.type,O._source,G?G.type:null);If.setExtraStackFrame(de)}else If.setExtraStackFrame(null)}function Of(O,G,de,_e,Be){{var Ut=Function.call.bind(ki);for(var et in O)if(Ut(O,et)){var Mt=void 0;try{if(typeof O[et]!="function"){var fn=Error((_e||"React class")+": "+de+" type `"+et+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof O[et]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw fn.name="Invariant Violation",fn}Mt=O[et](G,et,_e,de,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(In){Mt=In}Mt&&!(Mt instanceof Error)&&(nd(Be),pe("%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).",_e||"React class",de,et,typeof Mt),nd(null)),Mt instanceof Error&&!(Mt.message in Ln)&&(Ln[Mt.message]=!0,nd(Be),pe("Failed %s type: %s",de,Mt.message),nd(null))}}}function kn(O){if(O){var G=O._owner,de=sl(O.type,O._source,G?G.type:null);Ve(de)}else Ve(null)}var Nf;Nf=!1;function Mf(){if(W.current){var O=lr(W.current.type);if(O)return`
34
+
35
+ Check the render method of \``+O+"`."}return""}function Kt(O){if(O!==void 0){var G=O.fileName.replace(/^.*[\\\/]/,""),de=O.lineNumber;return`
36
+
37
+ Check your code at `+G+":"+de+"."}return""}function rd(O){return O!=null?Kt(O.__source):""}var Fr={};function va(O){var G=Mf();if(!G){var de=typeof O=="string"?O:O.displayName||O.name;de&&(G=`
38
+
39
+ Check the top-level render call using <`+de+">.")}return G}function Wo(O,G){if(!(!O._store||O._store.validated||O.key!=null)){O._store.validated=!0;var de=va(G);if(!Fr[de]){Fr[de]=!0;var _e="";O&&O._owner&&O._owner!==W.current&&(_e=" It was passed a child from "+lr(O._owner.type)+"."),kn(O),pe('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',de,_e),kn(null)}}}function Qu(O,G){if(typeof O=="object"){if(Xn(O))for(var de=0;de<O.length;de++){var _e=O[de];le(_e)&&Wo(_e,G)}else if(le(O))O._store&&(O._store.validated=!0);else if(O){var Be=L(O);if(typeof Be=="function"&&Be!==O.entries)for(var Ut=Be.call(O),et;!(et=Ut.next()).done;)le(et.value)&&Wo(et.value,G)}}}function Jr(O){{var G=O.type;if(G==null||typeof G=="string")return;var de;if(typeof G=="function")de=G.propTypes;else if(typeof G=="object"&&(G.$$typeof===g||G.$$typeof===S))de=G.propTypes;else return;if(de){var _e=lr(G);Of(de,O.props,"prop",_e,O)}else if(G.PropTypes!==void 0&&!Nf){Nf=!0;var Be=lr(G);pe("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",Be||"Unknown")}typeof G.getDefaultProps=="function"&&!G.getDefaultProps.isReactClassApproved&&pe("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function qn(O){{for(var G=Object.keys(O.props),de=0;de<G.length;de++){var _e=G[de];if(_e!=="children"&&_e!=="key"){kn(O),pe("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",_e),kn(null);break}}O.ref!==null&&(kn(O),pe("Invalid attribute `ref` supplied to `React.Fragment`."),kn(null))}}function tg(O,G,de){var _e=Ee(O);if(!_e){var Be="";(O===void 0||typeof O=="object"&&O!==null&&Object.keys(O).length===0)&&(Be+=" 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 Ut=rd(G);Ut?Be+=Ut:Be+=Mf();var et;O===null?et="null":Xn(O)?et="array":O!==void 0&&O.$$typeof===r?(et="<"+(lr(O.type)||"Unknown")+" />",Be=" Did you accidentally export a JSX literal instead of a component?"):et=typeof O,pe("React.createElement: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",et,Be)}var Mt=Et.apply(this,arguments);if(Mt==null)return Mt;if(_e)for(var fn=2;fn<arguments.length;fn++)Qu(arguments[fn],O);return O===s?qn(Mt):Jr(Mt),Mt}var ma=!1;function qi(O){var G=tg.bind(null,O);return G.type=O,ma||(ma=!0,ve("React.createFactory() is deprecated and will be removed in a future major release. Consider using JSX or use React.createElement() directly instead.")),Object.defineProperty(G,"type",{enumerable:!1,get:function(){return ve("Factory.type is deprecated. Access the class directly before passing it to createFactory."),Object.defineProperty(this,"type",{value:O}),O}}),G}function ll(O,G,de){for(var _e=re.apply(this,arguments),Be=2;Be<arguments.length;Be++)Qu(arguments[Be],_e.type);return Jr(_e),_e}function ng(O,G){var de=U.transition;U.transition={};var _e=U.transition;U.transition._updatedFibers=new Set;try{O()}finally{if(U.transition=de,de===null&&_e._updatedFibers){var Be=_e._updatedFibers.size;Be>10&&ve("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),_e._updatedFibers.clear()}}}var zl=!1,Xu=null;function rg(O){if(Xu===null)try{var G=("require"+Math.random()).slice(0,7),de=n&&n[G];Xu=de.call(n,"timers").setImmediate}catch{Xu=function(Be){zl===!1&&(zl=!0,typeof MessageChannel>"u"&&pe("This browser does not have a MessageChannel implementation, so enqueuing tasks via await act(async () => ...) will fail. Please file an issue at https://github.com/facebook/react/issues if you encounter this warning."));var Ut=new MessageChannel;Ut.port1.onmessage=Be,Ut.port2.postMessage(void 0)}}return Xu(O)}var is=0,Ju=!1;function Zu(O){{var G=is;is++,H.current===null&&(H.current=[]);var de=H.isBatchingLegacy,_e;try{if(H.isBatchingLegacy=!0,_e=O(),!de&&H.didScheduleLegacyUpdate){var Be=H.current;Be!==null&&(H.didScheduleLegacyUpdate=!1,tc(Be))}}catch(cr){throw os(G),cr}finally{H.isBatchingLegacy=de}if(_e!==null&&typeof _e=="object"&&typeof _e.then=="function"){var Ut=_e,et=!1,Mt={then:function(cr,mr){et=!0,Ut.then(function(Cn){os(G),is===0?Pf(Cn,cr,mr):cr(Cn)},function(Cn){os(G),mr(Cn)})}};return!Ju&&typeof Promise<"u"&&Promise.resolve().then(function(){}).then(function(){et||(Ju=!0,pe("You called act(async () => ...) without await. This could lead to unexpected testing behaviour, interleaving multiple act calls and mixing their scopes. You should - await act(async () => ...);"))}),Mt}else{var fn=_e;if(os(G),is===0){var In=H.current;In!==null&&(tc(In),H.current=null);var ur={then:function(cr,mr){H.current===null?(H.current=[],Pf(fn,cr,mr)):cr(fn)}};return ur}else{var Zn={then:function(cr,mr){cr(fn)}};return Zn}}}}function os(O){O!==is-1&&pe("You seem to have overlapping act() calls, this is not supported. Be sure to await previous act() calls before making a new one. "),is=O}function Pf(O,G,de){{var _e=H.current;if(_e!==null)try{tc(_e),rg(function(){_e.length===0?(H.current=null,G(O)):Pf(O,G,de)})}catch(Be){de(Be)}else G(O)}}var ec=!1;function tc(O){if(!ec){ec=!0;var G=0;try{for(;G<O.length;G++){var de=O[G];do de=de(!0);while(de!==null)}O.length=0}catch(_e){throw O=O.slice(G+1),_e}finally{ec=!1}}}var id=tg,Df=ll,Mp=qi,Ls={map:zn,forEach:Jn,count:_n,toArray:Er,only:oo};e.Children=Ls,e.Component=De,e.Fragment=s,e.Profiler=f,e.PureComponent=gn,e.StrictMode=u,e.Suspense=E,e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ye,e.cloneElement=Df,e.createContext=Io,e.createElement=id,e.createFactory=Mp,e.createRef=jn,e.forwardRef=ha,e.isValidElement=le,e.lazy=ao,e.memo=$e,e.startTransition=ng,e.unstable_act=Zu,e.useCallback=so,e.useContext=qt,e.useDebugValue=An,e.useDeferredValue=Ps,e.useEffect=Xr,e.useId=dn,e.useImperativeHandle=Tf,e.useInsertionEffect=pr,e.useLayoutEffect=vr,e.useMemo=ol,e.useReducer=Bt,e.useRef=Rt,e.useState=kt,e.useSyncExternalStore=al,e.useTransition=s_,e.version=t,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}($y,$y.exports)),$y.exports}process.env.NODE_ENV==="production"?xR.exports=kB():xR.exports=IB();var F=xR.exports;const Mc=Fo(F),AR=Ji({__proto__:null,default:Mc},[F]);/**
40
+ * @license React
41
+ * react-jsx-runtime.production.min.js
42
+ *
43
+ * Copyright (c) Facebook, Inc. and its affiliates.
44
+ *
45
+ * This source code is licensed under the MIT license found in the
46
+ * LICENSE file in the root directory of this source tree.
47
+ */var $N;function OB(){if($N)return Oh;$N=1;var n=F,e=Symbol.for("react.element"),t=Symbol.for("react.fragment"),r=Object.prototype.hasOwnProperty,o=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function u(f,p,v){var g,E={},w=null,S=null;v!==void 0&&(w=""+v),p.key!==void 0&&(w=""+p.key),p.ref!==void 0&&(S=p.ref);for(g in p)r.call(p,g)&&!s.hasOwnProperty(g)&&(E[g]=p[g]);if(f&&f.defaultProps)for(g in p=f.defaultProps,p)E[g]===void 0&&(E[g]=p[g]);return{$$typeof:e,type:f,key:w,ref:S,props:E,_owner:o.current}}return Oh.Fragment=t,Oh.jsx=u,Oh.jsxs=u,Oh}var By={};/**
48
+ * @license React
49
+ * react-jsx-runtime.development.js
50
+ *
51
+ * Copyright (c) Facebook, Inc. and its affiliates.
52
+ *
53
+ * This source code is licensed under the MIT license found in the
54
+ * LICENSE file in the root directory of this source tree.
55
+ */var BN;function NB(){return BN||(BN=1,process.env.NODE_ENV!=="production"&&function(){var n=F,e=Symbol.for("react.element"),t=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),o=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.provider"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),v=Symbol.for("react.suspense"),g=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),S=Symbol.for("react.offscreen"),A=Symbol.iterator,k="@@iterator";function M(q){if(q===null||typeof q!="object")return null;var Ee=A&&q[A]||q[k];return typeof Ee=="function"?Ee:null}var P=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;function L(q){{for(var Ee=arguments.length,$e=new Array(Ee>1?Ee-1:0),Xe=1;Xe<Ee;Xe++)$e[Xe-1]=arguments[Xe];j("error",q,$e)}}function j(q,Ee,$e){{var Xe=P.ReactDebugCurrentFrame,qt=Xe.getStackAddendum();qt!==""&&(Ee+="%s",$e=$e.concat([qt]));var kt=$e.map(function(Bt){return String(Bt)});kt.unshift("Warning: "+Ee),Function.prototype.apply.call(console[q],console,kt)}}var U=!1,H=!1,W=!1,Q=!1,Te=!1,Ve;Ve=Symbol.for("react.module.reference");function ot(q){return!!(typeof q=="string"||typeof q=="function"||q===r||q===s||Te||q===o||q===v||q===g||Q||q===S||U||H||W||typeof q=="object"&&q!==null&&(q.$$typeof===w||q.$$typeof===E||q.$$typeof===u||q.$$typeof===f||q.$$typeof===p||q.$$typeof===Ve||q.getModuleId!==void 0))}function Me(q,Ee,$e){var Xe=q.displayName;if(Xe)return Xe;var qt=Ee.displayName||Ee.name||"";return qt!==""?$e+"("+qt+")":$e}function je(q){return q.displayName||"Context"}function te(q){if(q==null)return null;if(typeof q.tag=="number"&&L("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof q=="function")return q.displayName||q.name||null;if(typeof q=="string")return q;switch(q){case r:return"Fragment";case t:return"Portal";case s:return"Profiler";case o:return"StrictMode";case v:return"Suspense";case g:return"SuspenseList"}if(typeof q=="object")switch(q.$$typeof){case f:var Ee=q;return je(Ee)+".Consumer";case u:var $e=q;return je($e._context)+".Provider";case p:return Me(q,q.render,"ForwardRef");case E:var Xe=q.displayName||null;return Xe!==null?Xe:te(q.type)||"Memo";case w:{var qt=q,kt=qt._payload,Bt=qt._init;try{return te(Bt(kt))}catch{return null}}}return null}var ee=Object.assign,ye=0,ve,pe,K,ge,B,ne,ke;function ut(){}ut.__reactDisabledLog=!0;function De(){{if(ye===0){ve=console.log,pe=console.info,K=console.warn,ge=console.error,B=console.group,ne=console.groupCollapsed,ke=console.groupEnd;var q={configurable:!0,enumerable:!0,value:ut,writable:!0};Object.defineProperties(console,{info:q,log:q,warn:q,error:q,group:q,groupCollapsed:q,groupEnd:q})}ye++}}function At(){{if(ye--,ye===0){var q={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:ee({},q,{value:ve}),info:ee({},q,{value:pe}),warn:ee({},q,{value:K}),error:ee({},q,{value:ge}),group:ee({},q,{value:B}),groupCollapsed:ee({},q,{value:ne}),groupEnd:ee({},q,{value:ke})})}ye<0&&L("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Lt=P.ReactCurrentDispatcher,zt;function _t(q,Ee,$e){{if(zt===void 0)try{throw Error()}catch(qt){var Xe=qt.stack.trim().match(/\n( *(at )?)/);zt=Xe&&Xe[1]||""}return`
56
+ `+zt+q}}var gn=!1,Lr;{var jn=typeof WeakMap=="function"?WeakMap:Map;Lr=new jn}function at(q,Ee){if(!q||gn)return"";{var $e=Lr.get(q);if($e!==void 0)return $e}var Xe;gn=!0;var qt=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var kt;kt=Lt.current,Lt.current=null,De();try{if(Ee){var Bt=function(){throw Error()};if(Object.defineProperty(Bt.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Bt,[])}catch(An){Xe=An}Reflect.construct(q,[],Bt)}else{try{Bt.call()}catch(An){Xe=An}q.call(Bt.prototype)}}else{try{throw Error()}catch(An){Xe=An}q()}}catch(An){if(An&&Xe&&typeof An.stack=="string"){for(var Rt=An.stack.split(`
57
+ `),Xr=Xe.stack.split(`
58
+ `),pr=Rt.length-1,vr=Xr.length-1;pr>=1&&vr>=0&&Rt[pr]!==Xr[vr];)vr--;for(;pr>=1&&vr>=0;pr--,vr--)if(Rt[pr]!==Xr[vr]){if(pr!==1||vr!==1)do if(pr--,vr--,vr<0||Rt[pr]!==Xr[vr]){var so=`
59
+ `+Rt[pr].replace(" at new "," at ");return q.displayName&&so.includes("<anonymous>")&&(so=so.replace("<anonymous>",q.displayName)),typeof q=="function"&&Lr.set(q,so),so}while(pr>=1&&vr>=0);break}}}finally{gn=!1,Lt.current=kt,At(),Error.prepareStackTrace=qt}var ol=q?q.displayName||q.name:"",Tf=ol?_t(ol):"";return typeof q=="function"&&Lr.set(q,Tf),Tf}function Xn(q,Ee,$e){return at(q,!1)}function yr(q){var Ee=q.prototype;return!!(Ee&&Ee.isReactComponent)}function or(q,Ee,$e){if(q==null)return"";if(typeof q=="function")return at(q,yr(q));if(typeof q=="string")return _t(q);switch(q){case v:return _t("Suspense");case g:return _t("SuspenseList")}if(typeof q=="object")switch(q.$$typeof){case p:return Xn(q.render);case E:return or(q.type,Ee,$e);case w:{var Xe=q,qt=Xe._payload,kt=Xe._init;try{return or(kt(qt),Ee,$e)}catch{}}}return""}var Qr=Object.prototype.hasOwnProperty,_r={},Ai=P.ReactDebugCurrentFrame;function zi(q){if(q){var Ee=q._owner,$e=or(q.type,q._source,Ee?Ee.type:null);Ai.setExtraStackFrame($e)}else Ai.setExtraStackFrame(null)}function lr(q,Ee,$e,Xe,qt){{var kt=Function.call.bind(Qr);for(var Bt in q)if(kt(q,Bt)){var Rt=void 0;try{if(typeof q[Bt]!="function"){var Xr=Error((Xe||"React class")+": "+$e+" type `"+Bt+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof q[Bt]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw Xr.name="Invariant Violation",Xr}Rt=q[Bt](Ee,Bt,Xe,$e,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(pr){Rt=pr}Rt&&!(Rt instanceof Error)&&(zi(qt),L("%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).",Xe||"React class",$e,Bt,typeof Rt),zi(null)),Rt instanceof Error&&!(Rt.message in _r)&&(_r[Rt.message]=!0,zi(qt),L("Failed %s type: %s",$e,Rt.message),zi(null))}}}var ki=Array.isArray;function io(q){return ki(q)}function Ii(q){{var Ee=typeof Symbol=="function"&&Symbol.toStringTag,$e=Ee&&q[Symbol.toStringTag]||q.constructor.name||"Object";return $e}}function Go(q){try{return gi(q),!1}catch{return!0}}function gi(q){return""+q}function Oi(q){if(Go(q))return L("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",Ii(q)),gi(q)}var hr=P.ReactCurrentOwner,Ni={key:!0,ref:!0,__self:!0,__source:!0},rs,ko,Ke;Ke={};function Et(q){if(Qr.call(q,"ref")){var Ee=Object.getOwnPropertyDescriptor(q,"ref").get;if(Ee&&Ee.isReactWarning)return!1}return q.ref!==void 0}function tn(q){if(Qr.call(q,"key")){var Ee=Object.getOwnPropertyDescriptor(q,"key").get;if(Ee&&Ee.isReactWarning)return!1}return q.key!==void 0}function re(q,Ee){if(typeof q.ref=="string"&&hr.current&&Ee&&hr.current.stateNode!==Ee){var $e=te(hr.current.type);Ke[$e]||(L('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',te(hr.current.type),q.ref),Ke[$e]=!0)}}function le(q,Ee){{var $e=function(){rs||(rs=!0,L("%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)",Ee))};$e.isReactWarning=!0,Object.defineProperty(q,"key",{get:$e,configurable:!0})}}function Re(q,Ee){{var $e=function(){ko||(ko=!0,L("%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)",Ee))};$e.isReactWarning=!0,Object.defineProperty(q,"ref",{get:$e,configurable:!0})}}var Ge=function(q,Ee,$e,Xe,qt,kt,Bt){var Rt={$$typeof:e,type:q,key:Ee,ref:$e,props:Bt,_owner:kt};return Rt._store={},Object.defineProperty(Rt._store,"validated",{configurable:!1,enumerable:!1,writable:!0,value:!1}),Object.defineProperty(Rt,"_self",{configurable:!1,enumerable:!1,writable:!1,value:Xe}),Object.defineProperty(Rt,"_source",{configurable:!1,enumerable:!1,writable:!1,value:qt}),Object.freeze&&(Object.freeze(Rt.props),Object.freeze(Rt)),Rt};function bt(q,Ee,$e,Xe,qt){{var kt,Bt={},Rt=null,Xr=null;$e!==void 0&&(Oi($e),Rt=""+$e),tn(Ee)&&(Oi(Ee.key),Rt=""+Ee.key),Et(Ee)&&(Xr=Ee.ref,re(Ee,qt));for(kt in Ee)Qr.call(Ee,kt)&&!Ni.hasOwnProperty(kt)&&(Bt[kt]=Ee[kt]);if(q&&q.defaultProps){var pr=q.defaultProps;for(kt in pr)Bt[kt]===void 0&&(Bt[kt]=pr[kt])}if(Rt||Xr){var vr=typeof q=="function"?q.displayName||q.name||"Unknown":q;Rt&&le(Bt,vr),Xr&&Re(Bt,vr)}return Ge(q,Rt,Xr,qt,Xe,hr.current,Bt)}}var tt=P.ReactCurrentOwner,Ct=P.ReactDebugCurrentFrame;function We(q){if(q){var Ee=q._owner,$e=or(q.type,q._source,Ee?Ee.type:null);Ct.setExtraStackFrame($e)}else Ct.setExtraStackFrame(null)}var qe;qe=!1;function cn(q){return typeof q=="object"&&q!==null&&q.$$typeof===e}function zn(){{if(tt.current){var q=te(tt.current.type);if(q)return`
60
+
61
+ Check the render method of \``+q+"`."}return""}}function _n(q){{if(q!==void 0){var Ee=q.fileName.replace(/^.*[\\\/]/,""),$e=q.lineNumber;return`
62
+
63
+ Check your code at `+Ee+":"+$e+"."}return""}}var Jn={};function Er(q){{var Ee=zn();if(!Ee){var $e=typeof q=="string"?q:q.displayName||q.name;$e&&(Ee=`
64
+
65
+ Check the top-level render call using <`+$e+">.")}return Ee}}function oo(q,Ee){{if(!q._store||q._store.validated||q.key!=null)return;q._store.validated=!0;var $e=Er(Ee);if(Jn[$e])return;Jn[$e]=!0;var Xe="";q&&q._owner&&q._owner!==tt.current&&(Xe=" It was passed a child from "+te(q._owner.type)+"."),We(q),L('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.',$e,Xe),We(null)}}function Io(q,Ee){{if(typeof q!="object")return;if(io(q))for(var $e=0;$e<q.length;$e++){var Xe=q[$e];cn(Xe)&&oo(Xe,Ee)}else if(cn(q))q._store&&(q._store.validated=!0);else if(q){var qt=M(q);if(typeof qt=="function"&&qt!==q.entries)for(var kt=qt.call(q),Bt;!(Bt=kt.next()).done;)cn(Bt.value)&&oo(Bt.value,Ee)}}}function Mi(q){{var Ee=q.type;if(Ee==null||typeof Ee=="string")return;var $e;if(typeof Ee=="function")$e=Ee.propTypes;else if(typeof Ee=="object"&&(Ee.$$typeof===p||Ee.$$typeof===E))$e=Ee.propTypes;else return;if($e){var Xe=te(Ee);lr($e,q.props,"prop",Xe,q)}else if(Ee.PropTypes!==void 0&&!qe){qe=!0;var qt=te(Ee);L("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?",qt||"Unknown")}typeof Ee.getDefaultProps=="function"&&!Ee.getDefaultProps.isReactClassApproved&&L("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.")}}function fa(q){{for(var Ee=Object.keys(q.props),$e=0;$e<Ee.length;$e++){var Xe=Ee[$e];if(Xe!=="children"&&Xe!=="key"){We(q),L("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.",Xe),We(null);break}}q.ref!==null&&(We(q),L("Invalid attribute `ref` supplied to `React.Fragment`."),We(null))}}function Ur(q,Ee,$e,Xe,qt,kt){{var Bt=ot(q);if(!Bt){var Rt="";(q===void 0||typeof q=="object"&&q!==null&&Object.keys(q).length===0)&&(Rt+=" 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 Xr=_n(qt);Xr?Rt+=Xr:Rt+=zn();var pr;q===null?pr="null":io(q)?pr="array":q!==void 0&&q.$$typeof===e?(pr="<"+(te(q.type)||"Unknown")+" />",Rt=" Did you accidentally export a JSX literal instead of a component?"):pr=typeof q,L("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s",pr,Rt)}var vr=bt(q,Ee,$e,qt,kt);if(vr==null)return vr;if(Bt){var so=Ee.children;if(so!==void 0)if(Xe)if(io(so)){for(var ol=0;ol<so.length;ol++)Io(so[ol],q);Object.freeze&&Object.freeze(so)}else L("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 Io(so,q)}return q===r?fa(vr):Mi(vr),vr}}function yi(q,Ee,$e){return Ur(q,Ee,$e,!0)}function _i(q,Ee,$e){return Ur(q,Ee,$e,!1)}var ao=_i,ha=yi;By.Fragment=r,By.jsx=ao,By.jsxs=ha}()),By}process.env.NODE_ENV==="production"?Vd.exports=OB():Vd.exports=NB();var se=Vd.exports,jy={},kR={exports:{}},Ka={},mb={exports:{}},IR={};/**
66
+ * @license React
67
+ * scheduler.production.min.js
68
+ *
69
+ * Copyright (c) Facebook, Inc. and its affiliates.
70
+ *
71
+ * This source code is licensed under the MIT license found in the
72
+ * LICENSE file in the root directory of this source tree.
73
+ */var jN;function MB(){return jN||(jN=1,function(n){function e(K,ge){var B=K.length;K.push(ge);e:for(;0<B;){var ne=B-1>>>1,ke=K[ne];if(0<o(ke,ge))K[ne]=ge,K[B]=ke,B=ne;else break e}}function t(K){return K.length===0?null:K[0]}function r(K){if(K.length===0)return null;var ge=K[0],B=K.pop();if(B!==ge){K[0]=B;e:for(var ne=0,ke=K.length,ut=ke>>>1;ne<ut;){var De=2*(ne+1)-1,At=K[De],Lt=De+1,zt=K[Lt];if(0>o(At,B))Lt<ke&&0>o(zt,At)?(K[ne]=zt,K[Lt]=B,ne=Lt):(K[ne]=At,K[De]=B,ne=De);else if(Lt<ke&&0>o(zt,B))K[ne]=zt,K[Lt]=B,ne=Lt;else break e}}return ge}function o(K,ge){var B=K.sortIndex-ge.sortIndex;return B!==0?B:K.id-ge.id}if(typeof performance=="object"&&typeof performance.now=="function"){var s=performance;n.unstable_now=function(){return s.now()}}else{var u=Date,f=u.now();n.unstable_now=function(){return u.now()-f}}var p=[],v=[],g=1,E=null,w=3,S=!1,A=!1,k=!1,M=typeof setTimeout=="function"?setTimeout:null,P=typeof clearTimeout=="function"?clearTimeout:null,L=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function j(K){for(var ge=t(v);ge!==null;){if(ge.callback===null)r(v);else if(ge.startTime<=K)r(v),ge.sortIndex=ge.expirationTime,e(p,ge);else break;ge=t(v)}}function U(K){if(k=!1,j(K),!A)if(t(p)!==null)A=!0,ve(H);else{var ge=t(v);ge!==null&&pe(U,ge.startTime-K)}}function H(K,ge){A=!1,k&&(k=!1,P(Te),Te=-1),S=!0;var B=w;try{for(j(ge),E=t(p);E!==null&&(!(E.expirationTime>ge)||K&&!Me());){var ne=E.callback;if(typeof ne=="function"){E.callback=null,w=E.priorityLevel;var ke=ne(E.expirationTime<=ge);ge=n.unstable_now(),typeof ke=="function"?E.callback=ke:E===t(p)&&r(p),j(ge)}else r(p);E=t(p)}if(E!==null)var ut=!0;else{var De=t(v);De!==null&&pe(U,De.startTime-ge),ut=!1}return ut}finally{E=null,w=B,S=!1}}var W=!1,Q=null,Te=-1,Ve=5,ot=-1;function Me(){return!(n.unstable_now()-ot<Ve)}function je(){if(Q!==null){var K=n.unstable_now();ot=K;var ge=!0;try{ge=Q(!0,K)}finally{ge?te():(W=!1,Q=null)}}else W=!1}var te;if(typeof L=="function")te=function(){L(je)};else if(typeof MessageChannel<"u"){var ee=new MessageChannel,ye=ee.port2;ee.port1.onmessage=je,te=function(){ye.postMessage(null)}}else te=function(){M(je,0)};function ve(K){Q=K,W||(W=!0,te())}function pe(K,ge){Te=M(function(){K(n.unstable_now())},ge)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(K){K.callback=null},n.unstable_continueExecution=function(){A||S||(A=!0,ve(H))},n.unstable_forceFrameRate=function(K){0>K||125<K?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Ve=0<K?Math.floor(1e3/K):5},n.unstable_getCurrentPriorityLevel=function(){return w},n.unstable_getFirstCallbackNode=function(){return t(p)},n.unstable_next=function(K){switch(w){case 1:case 2:case 3:var ge=3;break;default:ge=w}var B=w;w=ge;try{return K()}finally{w=B}},n.unstable_pauseExecution=function(){},n.unstable_requestPaint=function(){},n.unstable_runWithPriority=function(K,ge){switch(K){case 1:case 2:case 3:case 4:case 5:break;default:K=3}var B=w;w=K;try{return ge()}finally{w=B}},n.unstable_scheduleCallback=function(K,ge,B){var ne=n.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?ne+B:ne):B=ne,K){case 1:var ke=-1;break;case 2:ke=250;break;case 5:ke=1073741823;break;case 4:ke=1e4;break;default:ke=5e3}return ke=B+ke,K={id:g++,callback:ge,priorityLevel:K,startTime:B,expirationTime:ke,sortIndex:-1},B>ne?(K.sortIndex=B,e(v,K),t(p)===null&&K===t(v)&&(k?(P(Te),Te=-1):k=!0,pe(U,B-ne))):(K.sortIndex=ke,e(p,K),A||S||(A=!0,ve(H))),K},n.unstable_shouldYield=Me,n.unstable_wrapCallback=function(K){var ge=w;return function(){var B=w;w=ge;try{return K.apply(this,arguments)}finally{w=B}}}}(IR)),IR}var OR={};/**
74
+ * @license React
75
+ * scheduler.development.js
76
+ *
77
+ * Copyright (c) Facebook, Inc. and its affiliates.
78
+ *
79
+ * This source code is licensed under the MIT license found in the
80
+ * LICENSE file in the root directory of this source tree.
81
+ */var zN;function PB(){return zN||(zN=1,function(n){process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var e=!1,t=!1,r=5;function o(Ke,Et){var tn=Ke.length;Ke.push(Et),f(Ke,Et,tn)}function s(Ke){return Ke.length===0?null:Ke[0]}function u(Ke){if(Ke.length===0)return null;var Et=Ke[0],tn=Ke.pop();return tn!==Et&&(Ke[0]=tn,p(Ke,tn,0)),Et}function f(Ke,Et,tn){for(var re=tn;re>0;){var le=re-1>>>1,Re=Ke[le];if(v(Re,Et)>0)Ke[le]=Et,Ke[re]=Re,re=le;else return}}function p(Ke,Et,tn){for(var re=tn,le=Ke.length,Re=le>>>1;re<Re;){var Ge=(re+1)*2-1,bt=Ke[Ge],tt=Ge+1,Ct=Ke[tt];if(v(bt,Et)<0)tt<le&&v(Ct,bt)<0?(Ke[re]=Ct,Ke[tt]=Et,re=tt):(Ke[re]=bt,Ke[Ge]=Et,re=Ge);else if(tt<le&&v(Ct,Et)<0)Ke[re]=Ct,Ke[tt]=Et,re=tt;else return}}function v(Ke,Et){var tn=Ke.sortIndex-Et.sortIndex;return tn!==0?tn:Ke.id-Et.id}var g=1,E=2,w=3,S=4,A=5;function k(Ke,Et){}var M=typeof performance=="object"&&typeof performance.now=="function";if(M){var P=performance;n.unstable_now=function(){return P.now()}}else{var L=Date,j=L.now();n.unstable_now=function(){return L.now()-j}}var U=1073741823,H=-1,W=250,Q=5e3,Te=1e4,Ve=U,ot=[],Me=[],je=1,te=null,ee=w,ye=!1,ve=!1,pe=!1,K=typeof setTimeout=="function"?setTimeout:null,ge=typeof clearTimeout=="function"?clearTimeout:null,B=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function ne(Ke){for(var Et=s(Me);Et!==null;){if(Et.callback===null)u(Me);else if(Et.startTime<=Ke)u(Me),Et.sortIndex=Et.expirationTime,o(ot,Et);else return;Et=s(Me)}}function ke(Ke){if(pe=!1,ne(Ke),!ve)if(s(ot)!==null)ve=!0,Oi(ut);else{var Et=s(Me);Et!==null&&hr(ke,Et.startTime-Ke)}}function ut(Ke,Et){ve=!1,pe&&(pe=!1,Ni()),ye=!0;var tn=ee;try{var re;if(!t)return De(Ke,Et)}finally{te=null,ee=tn,ye=!1}}function De(Ke,Et){var tn=Et;for(ne(tn),te=s(ot);te!==null&&!e&&!(te.expirationTime>tn&&(!Ke||zi()));){var re=te.callback;if(typeof re=="function"){te.callback=null,ee=te.priorityLevel;var le=te.expirationTime<=tn,Re=re(le);tn=n.unstable_now(),typeof Re=="function"?te.callback=Re:te===s(ot)&&u(ot),ne(tn)}else u(ot);te=s(ot)}if(te!==null)return!0;var Ge=s(Me);return Ge!==null&&hr(ke,Ge.startTime-tn),!1}function At(Ke,Et){switch(Ke){case g:case E:case w:case S:case A:break;default:Ke=w}var tn=ee;ee=Ke;try{return Et()}finally{ee=tn}}function Lt(Ke){var Et;switch(ee){case g:case E:case w:Et=w;break;default:Et=ee;break}var tn=ee;ee=Et;try{return Ke()}finally{ee=tn}}function zt(Ke){var Et=ee;return function(){var tn=ee;ee=Et;try{return Ke.apply(this,arguments)}finally{ee=tn}}}function _t(Ke,Et,tn){var re=n.unstable_now(),le;if(typeof tn=="object"&&tn!==null){var Re=tn.delay;typeof Re=="number"&&Re>0?le=re+Re:le=re}else le=re;var Ge;switch(Ke){case g:Ge=H;break;case E:Ge=W;break;case A:Ge=Ve;break;case S:Ge=Te;break;case w:default:Ge=Q;break}var bt=le+Ge,tt={id:je++,callback:Et,priorityLevel:Ke,startTime:le,expirationTime:bt,sortIndex:-1};return le>re?(tt.sortIndex=le,o(Me,tt),s(ot)===null&&tt===s(Me)&&(pe?Ni():pe=!0,hr(ke,le-re))):(tt.sortIndex=bt,o(ot,tt),!ve&&!ye&&(ve=!0,Oi(ut))),tt}function gn(){}function Lr(){!ve&&!ye&&(ve=!0,Oi(ut))}function jn(){return s(ot)}function at(Ke){Ke.callback=null}function Xn(){return ee}var yr=!1,or=null,Qr=-1,_r=r,Ai=-1;function zi(){var Ke=n.unstable_now()-Ai;return!(Ke<_r)}function lr(){}function ki(Ke){if(Ke<0||Ke>125){console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported");return}Ke>0?_r=Math.floor(1e3/Ke):_r=r}var io=function(){if(or!==null){var Ke=n.unstable_now();Ai=Ke;var Et=!0,tn=!0;try{tn=or(Et,Ke)}finally{tn?Ii():(yr=!1,or=null)}}else yr=!1},Ii;if(typeof B=="function")Ii=function(){B(io)};else if(typeof MessageChannel<"u"){var Go=new MessageChannel,gi=Go.port2;Go.port1.onmessage=io,Ii=function(){gi.postMessage(null)}}else Ii=function(){K(io,0)};function Oi(Ke){or=Ke,yr||(yr=!0,Ii())}function hr(Ke,Et){Qr=K(function(){Ke(n.unstable_now())},Et)}function Ni(){ge(Qr),Qr=-1}var rs=lr,ko=null;n.unstable_IdlePriority=A,n.unstable_ImmediatePriority=g,n.unstable_LowPriority=S,n.unstable_NormalPriority=w,n.unstable_Profiling=ko,n.unstable_UserBlockingPriority=E,n.unstable_cancelCallback=at,n.unstable_continueExecution=Lr,n.unstable_forceFrameRate=ki,n.unstable_getCurrentPriorityLevel=Xn,n.unstable_getFirstCallbackNode=jn,n.unstable_next=Lt,n.unstable_pauseExecution=gn,n.unstable_requestPaint=rs,n.unstable_runWithPriority=At,n.unstable_scheduleCallback=_t,n.unstable_shouldYield=zi,n.unstable_wrapCallback=zt,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()}(OR)),OR}var qN;function GN(){return qN||(qN=1,process.env.NODE_ENV==="production"?mb.exports=MB():mb.exports=PB()),mb.exports}/**
82
+ * @license React
83
+ * react-dom.production.min.js
84
+ *
85
+ * Copyright (c) Facebook, Inc. and its affiliates.
86
+ *
87
+ * This source code is licensed under the MIT license found in the
88
+ * LICENSE file in the root directory of this source tree.
89
+ */var VN;function DB(){if(VN)return Ka;VN=1;var n=F,e=GN();function t(l){for(var c="https://reactjs.org/docs/error-decoder.html?invariant="+l,m=1;m<arguments.length;m++)c+="&args[]="+encodeURIComponent(arguments[m]);return"Minified React error #"+l+"; visit "+c+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=new Set,o={};function s(l,c){u(l,c),u(l+"Capture",c)}function u(l,c){for(o[l]=c,l=0;l<c.length;l++)r.add(c[l])}var f=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),p=Object.prototype.hasOwnProperty,v=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,g={},E={};function w(l){return p.call(E,l)?!0:p.call(g,l)?!1:v.test(l)?E[l]=!0:(g[l]=!0,!1)}function S(l,c,m,_){if(m!==null&&m.type===0)return!1;switch(typeof c){case"function":case"symbol":return!0;case"boolean":return _?!1:m!==null?!m.acceptsBooleans:(l=l.toLowerCase().slice(0,5),l!=="data-"&&l!=="aria-");default:return!1}}function A(l,c,m,_){if(c===null||typeof c>"u"||S(l,c,m,_))return!0;if(_)return!1;if(m!==null)switch(m.type){case 3:return!c;case 4:return c===!1;case 5:return isNaN(c);case 6:return isNaN(c)||1>c}return!1}function k(l,c,m,_,C,R,N){this.acceptsBooleans=c===2||c===3||c===4,this.attributeName=_,this.attributeNamespace=C,this.mustUseProperty=m,this.propertyName=l,this.type=c,this.sanitizeURL=R,this.removeEmptyString=N}var M={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(l){M[l]=new k(l,0,!1,l,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(l){var c=l[0];M[c]=new k(c,1,!1,l[1],null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(l){M[l]=new k(l,2,!1,l.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(l){M[l]=new k(l,2,!1,l,null,!1,!1)}),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(l){M[l]=new k(l,3,!1,l.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(l){M[l]=new k(l,3,!0,l,null,!1,!1)}),["capture","download"].forEach(function(l){M[l]=new k(l,4,!1,l,null,!1,!1)}),["cols","rows","size","span"].forEach(function(l){M[l]=new k(l,6,!1,l,null,!1,!1)}),["rowSpan","start"].forEach(function(l){M[l]=new k(l,5,!1,l.toLowerCase(),null,!1,!1)});var P=/[\-:]([a-z])/g;function L(l){return l[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach(function(l){var c=l.replace(P,L);M[c]=new k(c,1,!1,l,null,!1,!1)}),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(l){var c=l.replace(P,L);M[c]=new k(c,1,!1,l,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(l){var c=l.replace(P,L);M[c]=new k(c,1,!1,l,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(l){M[l]=new k(l,1,!1,l.toLowerCase(),null,!1,!1)}),M.xlinkHref=new k("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(l){M[l]=new k(l,1,!1,l.toLowerCase(),null,!0,!0)});function j(l,c,m,_){var C=M.hasOwnProperty(c)?M[c]:null;(C!==null?C.type!==0:_||!(2<c.length)||c[0]!=="o"&&c[0]!=="O"||c[1]!=="n"&&c[1]!=="N")&&(A(c,m,C,_)&&(m=null),_||C===null?w(c)&&(m===null?l.removeAttribute(c):l.setAttribute(c,""+m)):C.mustUseProperty?l[C.propertyName]=m===null?C.type===3?!1:"":m:(c=C.attributeName,_=C.attributeNamespace,m===null?l.removeAttribute(c):(C=C.type,m=C===3||C===4&&m===!0?"":""+m,_?l.setAttributeNS(_,c,m):l.setAttribute(c,m))))}var U=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,H=Symbol.for("react.element"),W=Symbol.for("react.portal"),Q=Symbol.for("react.fragment"),Te=Symbol.for("react.strict_mode"),Ve=Symbol.for("react.profiler"),ot=Symbol.for("react.provider"),Me=Symbol.for("react.context"),je=Symbol.for("react.forward_ref"),te=Symbol.for("react.suspense"),ee=Symbol.for("react.suspense_list"),ye=Symbol.for("react.memo"),ve=Symbol.for("react.lazy"),pe=Symbol.for("react.offscreen"),K=Symbol.iterator;function ge(l){return l===null||typeof l!="object"?null:(l=K&&l[K]||l["@@iterator"],typeof l=="function"?l:null)}var B=Object.assign,ne;function ke(l){if(ne===void 0)try{throw Error()}catch(m){var c=m.stack.trim().match(/\n( *(at )?)/);ne=c&&c[1]||""}return`
90
+ `+ne+l}var ut=!1;function De(l,c){if(!l||ut)return"";ut=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(c)if(c=function(){throw Error()},Object.defineProperty(c.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(c,[])}catch(me){var _=me}Reflect.construct(l,[],c)}else{try{c.call()}catch(me){_=me}l.call(c.prototype)}else{try{throw Error()}catch(me){_=me}l()}}catch(me){if(me&&_&&typeof me.stack=="string"){for(var C=me.stack.split(`
91
+ `),R=_.stack.split(`
92
+ `),N=C.length-1,z=R.length-1;1<=N&&0<=z&&C[N]!==R[z];)z--;for(;1<=N&&0<=z;N--,z--)if(C[N]!==R[z]){if(N!==1||z!==1)do if(N--,z--,0>z||C[N]!==R[z]){var V=`
93
+ `+C[N].replace(" at new "," at ");return l.displayName&&V.includes("<anonymous>")&&(V=V.replace("<anonymous>",l.displayName)),V}while(1<=N&&0<=z);break}}}finally{ut=!1,Error.prepareStackTrace=m}return(l=l?l.displayName||l.name:"")?ke(l):""}function At(l){switch(l.tag){case 5:return ke(l.type);case 16:return ke("Lazy");case 13:return ke("Suspense");case 19:return ke("SuspenseList");case 0:case 2:case 15:return l=De(l.type,!1),l;case 11:return l=De(l.type.render,!1),l;case 1:return l=De(l.type,!0),l;default:return""}}function Lt(l){if(l==null)return null;if(typeof l=="function")return l.displayName||l.name||null;if(typeof l=="string")return l;switch(l){case Q:return"Fragment";case W:return"Portal";case Ve:return"Profiler";case Te:return"StrictMode";case te:return"Suspense";case ee:return"SuspenseList"}if(typeof l=="object")switch(l.$$typeof){case Me:return(l.displayName||"Context")+".Consumer";case ot:return(l._context.displayName||"Context")+".Provider";case je:var c=l.render;return l=l.displayName,l||(l=c.displayName||c.name||"",l=l!==""?"ForwardRef("+l+")":"ForwardRef"),l;case ye:return c=l.displayName||null,c!==null?c:Lt(l.type)||"Memo";case ve:c=l._payload,l=l._init;try{return Lt(l(c))}catch{}}return null}function zt(l){var c=l.type;switch(l.tag){case 24:return"Cache";case 9:return(c.displayName||"Context")+".Consumer";case 10:return(c._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return l=c.render,l=l.displayName||l.name||"",c.displayName||(l!==""?"ForwardRef("+l+")":"ForwardRef");case 7:return"Fragment";case 5:return c;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return Lt(c);case 8:return c===Te?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof c=="function")return c.displayName||c.name||null;if(typeof c=="string")return c}return null}function _t(l){switch(typeof l){case"boolean":case"number":case"string":case"undefined":return l;case"object":return l;default:return""}}function gn(l){var c=l.type;return(l=l.nodeName)&&l.toLowerCase()==="input"&&(c==="checkbox"||c==="radio")}function Lr(l){var c=gn(l)?"checked":"value",m=Object.getOwnPropertyDescriptor(l.constructor.prototype,c),_=""+l[c];if(!l.hasOwnProperty(c)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var C=m.get,R=m.set;return Object.defineProperty(l,c,{configurable:!0,get:function(){return C.call(this)},set:function(N){_=""+N,R.call(this,N)}}),Object.defineProperty(l,c,{enumerable:m.enumerable}),{getValue:function(){return _},setValue:function(N){_=""+N},stopTracking:function(){l._valueTracker=null,delete l[c]}}}}function jn(l){l._valueTracker||(l._valueTracker=Lr(l))}function at(l){if(!l)return!1;var c=l._valueTracker;if(!c)return!0;var m=c.getValue(),_="";return l&&(_=gn(l)?l.checked?"true":"false":l.value),l=_,l!==m?(c.setValue(l),!0):!1}function Xn(l){if(l=l||(typeof document<"u"?document:void 0),typeof l>"u")return null;try{return l.activeElement||l.body}catch{return l.body}}function yr(l,c){var m=c.checked;return B({},c,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:m??l._wrapperState.initialChecked})}function or(l,c){var m=c.defaultValue==null?"":c.defaultValue,_=c.checked!=null?c.checked:c.defaultChecked;m=_t(c.value!=null?c.value:m),l._wrapperState={initialChecked:_,initialValue:m,controlled:c.type==="checkbox"||c.type==="radio"?c.checked!=null:c.value!=null}}function Qr(l,c){c=c.checked,c!=null&&j(l,"checked",c,!1)}function _r(l,c){Qr(l,c);var m=_t(c.value),_=c.type;if(m!=null)_==="number"?(m===0&&l.value===""||l.value!=m)&&(l.value=""+m):l.value!==""+m&&(l.value=""+m);else if(_==="submit"||_==="reset"){l.removeAttribute("value");return}c.hasOwnProperty("value")?zi(l,c.type,m):c.hasOwnProperty("defaultValue")&&zi(l,c.type,_t(c.defaultValue)),c.checked==null&&c.defaultChecked!=null&&(l.defaultChecked=!!c.defaultChecked)}function Ai(l,c,m){if(c.hasOwnProperty("value")||c.hasOwnProperty("defaultValue")){var _=c.type;if(!(_!=="submit"&&_!=="reset"||c.value!==void 0&&c.value!==null))return;c=""+l._wrapperState.initialValue,m||c===l.value||(l.value=c),l.defaultValue=c}m=l.name,m!==""&&(l.name=""),l.defaultChecked=!!l._wrapperState.initialChecked,m!==""&&(l.name=m)}function zi(l,c,m){(c!=="number"||Xn(l.ownerDocument)!==l)&&(m==null?l.defaultValue=""+l._wrapperState.initialValue:l.defaultValue!==""+m&&(l.defaultValue=""+m))}var lr=Array.isArray;function ki(l,c,m,_){if(l=l.options,c){c={};for(var C=0;C<m.length;C++)c["$"+m[C]]=!0;for(m=0;m<l.length;m++)C=c.hasOwnProperty("$"+l[m].value),l[m].selected!==C&&(l[m].selected=C),C&&_&&(l[m].defaultSelected=!0)}else{for(m=""+_t(m),c=null,C=0;C<l.length;C++){if(l[C].value===m){l[C].selected=!0,_&&(l[C].defaultSelected=!0);return}c!==null||l[C].disabled||(c=l[C])}c!==null&&(c.selected=!0)}}function io(l,c){if(c.dangerouslySetInnerHTML!=null)throw Error(t(91));return B({},c,{value:void 0,defaultValue:void 0,children:""+l._wrapperState.initialValue})}function Ii(l,c){var m=c.value;if(m==null){if(m=c.children,c=c.defaultValue,m!=null){if(c!=null)throw Error(t(92));if(lr(m)){if(1<m.length)throw Error(t(93));m=m[0]}c=m}c==null&&(c=""),m=c}l._wrapperState={initialValue:_t(m)}}function Go(l,c){var m=_t(c.value),_=_t(c.defaultValue);m!=null&&(m=""+m,m!==l.value&&(l.value=m),c.defaultValue==null&&l.defaultValue!==m&&(l.defaultValue=m)),_!=null&&(l.defaultValue=""+_)}function gi(l){var c=l.textContent;c===l._wrapperState.initialValue&&c!==""&&c!==null&&(l.value=c)}function Oi(l){switch(l){case"svg":return"http://www.w3.org/2000/svg";case"math":return"http://www.w3.org/1998/Math/MathML";default:return"http://www.w3.org/1999/xhtml"}}function hr(l,c){return l==null||l==="http://www.w3.org/1999/xhtml"?Oi(c):l==="http://www.w3.org/2000/svg"&&c==="foreignObject"?"http://www.w3.org/1999/xhtml":l}var Ni,rs=function(l){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(c,m,_,C){MSApp.execUnsafeLocalFunction(function(){return l(c,m,_,C)})}:l}(function(l,c){if(l.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in l)l.innerHTML=c;else{for(Ni=Ni||document.createElement("div"),Ni.innerHTML="<svg>"+c.valueOf().toString()+"</svg>",c=Ni.firstChild;l.firstChild;)l.removeChild(l.firstChild);for(;c.firstChild;)l.appendChild(c.firstChild)}});function ko(l,c){if(c){var m=l.firstChild;if(m&&m===l.lastChild&&m.nodeType===3){m.nodeValue=c;return}}l.textContent=c}var Ke={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Et=["Webkit","ms","Moz","O"];Object.keys(Ke).forEach(function(l){Et.forEach(function(c){c=c+l.charAt(0).toUpperCase()+l.substring(1),Ke[c]=Ke[l]})});function tn(l,c,m){return c==null||typeof c=="boolean"||c===""?"":m||typeof c!="number"||c===0||Ke.hasOwnProperty(l)&&Ke[l]?(""+c).trim():c+"px"}function re(l,c){l=l.style;for(var m in c)if(c.hasOwnProperty(m)){var _=m.indexOf("--")===0,C=tn(m,c[m],_);m==="float"&&(m="cssFloat"),_?l.setProperty(m,C):l[m]=C}}var le=B({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function Re(l,c){if(c){if(le[l]&&(c.children!=null||c.dangerouslySetInnerHTML!=null))throw Error(t(137,l));if(c.dangerouslySetInnerHTML!=null){if(c.children!=null)throw Error(t(60));if(typeof c.dangerouslySetInnerHTML!="object"||!("__html"in c.dangerouslySetInnerHTML))throw Error(t(61))}if(c.style!=null&&typeof c.style!="object")throw Error(t(62))}}function Ge(l,c){if(l.indexOf("-")===-1)return typeof c.is=="string";switch(l){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var bt=null;function tt(l){return l=l.target||l.srcElement||window,l.correspondingUseElement&&(l=l.correspondingUseElement),l.nodeType===3?l.parentNode:l}var Ct=null,We=null,qe=null;function cn(l){if(l=Kp(l)){if(typeof Ct!="function")throw Error(t(280));var c=l.stateNode;c&&(c=It(c),Ct(l.stateNode,l.type,c))}}function zn(l){We?qe?qe.push(l):qe=[l]:We=l}function _n(){if(We){var l=We,c=qe;if(qe=We=null,cn(l),c)for(l=0;l<c.length;l++)cn(c[l])}}function Jn(l,c){return l(c)}function Er(){}var oo=!1;function Io(l,c,m){if(oo)return l(c,m);oo=!0;try{return Jn(l,c,m)}finally{oo=!1,(We!==null||qe!==null)&&(Er(),_n())}}function Mi(l,c){var m=l.stateNode;if(m===null)return null;var _=It(m);if(_===null)return null;m=_[c];e:switch(c){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(_=!_.disabled)||(l=l.type,_=!(l==="button"||l==="input"||l==="select"||l==="textarea")),l=!_;break e;default:l=!1}if(l)return null;if(m&&typeof m!="function")throw Error(t(231,c,typeof m));return m}var fa=!1;if(f)try{var Ur={};Object.defineProperty(Ur,"passive",{get:function(){fa=!0}}),window.addEventListener("test",Ur,Ur),window.removeEventListener("test",Ur,Ur)}catch{fa=!1}function yi(l,c,m,_,C,R,N,z,V){var me=Array.prototype.slice.call(arguments,3);try{c.apply(m,me)}catch(Pe){this.onError(Pe)}}var _i=!1,ao=null,ha=!1,q=null,Ee={onError:function(l){_i=!0,ao=l}};function $e(l,c,m,_,C,R,N,z,V){_i=!1,ao=null,yi.apply(Ee,arguments)}function Xe(l,c,m,_,C,R,N,z,V){if($e.apply(this,arguments),_i){if(_i){var me=ao;_i=!1,ao=null}else throw Error(t(198));ha||(ha=!0,q=me)}}function qt(l){var c=l,m=l;if(l.alternate)for(;c.return;)c=c.return;else{l=c;do c=l,c.flags&4098&&(m=c.return),l=c.return;while(l)}return c.tag===3?m:null}function kt(l){if(l.tag===13){var c=l.memoizedState;if(c===null&&(l=l.alternate,l!==null&&(c=l.memoizedState)),c!==null)return c.dehydrated}return null}function Bt(l){if(qt(l)!==l)throw Error(t(188))}function Rt(l){var c=l.alternate;if(!c){if(c=qt(l),c===null)throw Error(t(188));return c!==l?null:l}for(var m=l,_=c;;){var C=m.return;if(C===null)break;var R=C.alternate;if(R===null){if(_=C.return,_!==null){m=_;continue}break}if(C.child===R.child){for(R=C.child;R;){if(R===m)return Bt(C),l;if(R===_)return Bt(C),c;R=R.sibling}throw Error(t(188))}if(m.return!==_.return)m=C,_=R;else{for(var N=!1,z=C.child;z;){if(z===m){N=!0,m=C,_=R;break}if(z===_){N=!0,_=C,m=R;break}z=z.sibling}if(!N){for(z=R.child;z;){if(z===m){N=!0,m=R,_=C;break}if(z===_){N=!0,_=R,m=C;break}z=z.sibling}if(!N)throw Error(t(189))}}if(m.alternate!==_)throw Error(t(190))}if(m.tag!==3)throw Error(t(188));return m.stateNode.current===m?l:c}function Xr(l){return l=Rt(l),l!==null?pr(l):null}function pr(l){if(l.tag===5||l.tag===6)return l;for(l=l.child;l!==null;){var c=pr(l);if(c!==null)return c;l=l.sibling}return null}var vr=e.unstable_scheduleCallback,so=e.unstable_cancelCallback,ol=e.unstable_shouldYield,Tf=e.unstable_requestPaint,An=e.unstable_now,s_=e.unstable_getCurrentPriorityLevel,Ps=e.unstable_ImmediatePriority,dn=e.unstable_UserBlockingPriority,al=e.unstable_NormalPriority,qu=e.unstable_LowPriority,Rf=e.unstable_IdlePriority,Gu=null,pa=null;function Ip(l){if(pa&&typeof pa.onCommitFiberRoot=="function")try{pa.onCommitFiberRoot(Gu,l,void 0,(l.current.flags&128)===128)}catch{}}var Vo=Math.clz32?Math.clz32:eg,Op=Math.log,Np=Math.LN2;function eg(l){return l>>>=0,l===0?32:31-(Op(l)/Np|0)|0}var xf=64,Vu=4194304;function Ds(l){switch(l&-l){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return l&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return l&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return l}}function Ko(l,c){var m=l.pendingLanes;if(m===0)return 0;var _=0,C=l.suspendedLanes,R=l.pingedLanes,N=m&268435455;if(N!==0){var z=N&~C;z!==0?_=Ds(z):(R&=N,R!==0&&(_=Ds(R)))}else N=m&~C,N!==0?_=Ds(N):R!==0&&(_=Ds(R));if(_===0)return 0;if(c!==0&&c!==_&&!(c&C)&&(C=_&-_,R=c&-c,C>=R||C===16&&(R&4194240)!==0))return c;if(_&4&&(_|=m&16),c=l.entangledLanes,c!==0)for(l=l.entanglements,c&=_;0<c;)m=31-Vo(c),C=1<<m,_|=l[m],c&=~C;return _}function Ku(l,c){switch(l){case 1:case 2:case 4:return c+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Wu(l,c){for(var m=l.suspendedLanes,_=l.pingedLanes,C=l.expirationTimes,R=l.pendingLanes;0<R;){var N=31-Vo(R),z=1<<N,V=C[N];V===-1?(!(z&m)||z&_)&&(C[N]=Ku(z,c)):V<=c&&(l.expiredLanes|=z),R&=~z}}function Yu(l){return l=l.pendingLanes&-1073741825,l!==0?l:l&1073741824?1073741824:0}function Af(){var l=xf;return xf<<=1,!(xf&4194240)&&(xf=64),l}function kf(l){for(var c=[],m=0;31>m;m++)c.push(l);return c}function jl(l,c,m){l.pendingLanes|=c,c!==536870912&&(l.suspendedLanes=0,l.pingedLanes=0),l=l.eventTimes,c=31-Vo(c),l[c]=m}function l_(l,c){var m=l.pendingLanes&~c;l.pendingLanes=c,l.suspendedLanes=0,l.pingedLanes=0,l.expiredLanes&=c,l.mutableReadLanes&=c,l.entangledLanes&=c,c=l.entanglements;var _=l.eventTimes;for(l=l.expirationTimes;0<m;){var C=31-Vo(m),R=1<<C;c[C]=0,_[C]=-1,l[C]=-1,m&=~R}}function sl(l,c){var m=l.entangledLanes|=c;for(l=l.entanglements;m;){var _=31-Vo(m),C=1<<_;C&c|l[_]&c&&(l[_]|=c),m&=~C}}var Ln=0;function If(l){return l&=-l,1<l?4<l?l&268435455?16:536870912:4:1}var nd,Of,kn,Nf,Mf,Kt=!1,rd=[],Fr=null,va=null,Wo=null,Qu=new Map,Jr=new Map,qn=[],tg="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function ma(l,c){switch(l){case"focusin":case"focusout":Fr=null;break;case"dragenter":case"dragleave":va=null;break;case"mouseover":case"mouseout":Wo=null;break;case"pointerover":case"pointerout":Qu.delete(c.pointerId);break;case"gotpointercapture":case"lostpointercapture":Jr.delete(c.pointerId)}}function qi(l,c,m,_,C,R){return l===null||l.nativeEvent!==R?(l={blockedOn:c,domEventName:m,eventSystemFlags:_,nativeEvent:R,targetContainers:[C]},c!==null&&(c=Kp(c),c!==null&&Of(c)),l):(l.eventSystemFlags|=_,c=l.targetContainers,C!==null&&c.indexOf(C)===-1&&c.push(C),l)}function ll(l,c,m,_,C){switch(c){case"focusin":return Fr=qi(Fr,l,c,m,_,C),!0;case"dragenter":return va=qi(va,l,c,m,_,C),!0;case"mouseover":return Wo=qi(Wo,l,c,m,_,C),!0;case"pointerover":var R=C.pointerId;return Qu.set(R,qi(Qu.get(R)||null,l,c,m,_,C)),!0;case"gotpointercapture":return R=C.pointerId,Jr.set(R,qi(Jr.get(R)||null,l,c,m,_,C)),!0}return!1}function ng(l){var c=ss(l.target);if(c!==null){var m=qt(c);if(m!==null){if(c=m.tag,c===13){if(c=kt(m),c!==null){l.blockedOn=c,Mf(l.priority,function(){kn(m)});return}}else if(c===3&&m.stateNode.current.memoizedState.isDehydrated){l.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}l.blockedOn=null}function zl(l){if(l.blockedOn!==null)return!1;for(var c=l.targetContainers;0<c.length;){var m=Df(l.domEventName,l.eventSystemFlags,c[0],l.nativeEvent);if(m===null){m=l.nativeEvent;var _=new m.constructor(m.type,m);bt=_,m.target.dispatchEvent(_),bt=null}else return c=Kp(m),c!==null&&Of(c),l.blockedOn=m,!1;c.shift()}return!0}function Xu(l,c,m){zl(l)&&m.delete(c)}function rg(){Kt=!1,Fr!==null&&zl(Fr)&&(Fr=null),va!==null&&zl(va)&&(va=null),Wo!==null&&zl(Wo)&&(Wo=null),Qu.forEach(Xu),Jr.forEach(Xu)}function is(l,c){l.blockedOn===c&&(l.blockedOn=null,Kt||(Kt=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,rg)))}function Ju(l){function c(C){return is(C,l)}if(0<rd.length){is(rd[0],l);for(var m=1;m<rd.length;m++){var _=rd[m];_.blockedOn===l&&(_.blockedOn=null)}}for(Fr!==null&&is(Fr,l),va!==null&&is(va,l),Wo!==null&&is(Wo,l),Qu.forEach(c),Jr.forEach(c),m=0;m<qn.length;m++)_=qn[m],_.blockedOn===l&&(_.blockedOn=null);for(;0<qn.length&&(m=qn[0],m.blockedOn===null);)ng(m),m.blockedOn===null&&qn.shift()}var Zu=U.ReactCurrentBatchConfig,os=!0;function Pf(l,c,m,_){var C=Ln,R=Zu.transition;Zu.transition=null;try{Ln=1,tc(l,c,m,_)}finally{Ln=C,Zu.transition=R}}function ec(l,c,m,_){var C=Ln,R=Zu.transition;Zu.transition=null;try{Ln=4,tc(l,c,m,_)}finally{Ln=C,Zu.transition=R}}function tc(l,c,m,_){if(os){var C=Df(l,c,m,_);if(C===null)fg(l,c,_,id,m),ma(l,_);else if(ll(C,l,c,m,_))_.stopPropagation();else if(ma(l,_),c&4&&-1<tg.indexOf(l)){for(;C!==null;){var R=Kp(C);if(R!==null&&nd(R),R=Df(l,c,m,_),R===null&&fg(l,c,_,id,m),R===C)break;C=R}C!==null&&_.stopPropagation()}else fg(l,c,_,null,m)}}var id=null;function Df(l,c,m,_){if(id=null,l=tt(_),l=ss(l),l!==null)if(c=qt(l),c===null)l=null;else if(m=c.tag,m===13){if(l=kt(c),l!==null)return l;l=null}else if(m===3){if(c.stateNode.current.memoizedState.isDehydrated)return c.tag===3?c.stateNode.containerInfo:null;l=null}else c!==l&&(l=null);return id=l,null}function Mp(l){switch(l){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 1;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 4;case"message":switch(s_()){case Ps:return 1;case dn:return 4;case al:case qu:return 16;case Rf:return 536870912;default:return 16}default:return 16}}var Ls=null,O=null,G=null;function de(){if(G)return G;var l,c=O,m=c.length,_,C="value"in Ls?Ls.value:Ls.textContent,R=C.length;for(l=0;l<m&&c[l]===C[l];l++);var N=m-l;for(_=1;_<=N&&c[m-_]===C[R-_];_++);return G=C.slice(l,1<_?1-_:void 0)}function _e(l){var c=l.keyCode;return"charCode"in l?(l=l.charCode,l===0&&c===13&&(l=13)):l=c,l===10&&(l=13),32<=l||l===13?l:0}function Be(){return!0}function Ut(){return!1}function et(l){function c(m,_,C,R,N){this._reactName=m,this._targetInst=C,this.type=_,this.nativeEvent=R,this.target=N,this.currentTarget=null;for(var z in l)l.hasOwnProperty(z)&&(m=l[z],this[z]=m?m(R):R[z]);return this.isDefaultPrevented=(R.defaultPrevented!=null?R.defaultPrevented:R.returnValue===!1)?Be:Ut,this.isPropagationStopped=Ut,this}return B(c.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=Be)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=Be)},persist:function(){},isPersistent:Be}),c}var Mt={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(l){return l.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},fn=et(Mt),In=B({},Mt,{view:0,detail:0}),ur=et(In),Zn,cr,mr,Cn=B({},In,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:h_,button:0,buttons:0,relatedTarget:function(l){return l.relatedTarget===void 0?l.fromElement===l.srcElement?l.toElement:l.fromElement:l.relatedTarget},movementX:function(l){return"movementX"in l?l.movementX:(l!==mr&&(mr&&l.type==="mousemove"?(Zn=l.screenX-mr.screenX,cr=l.screenY-mr.screenY):cr=Zn=0,mr=l),Zn)},movementY:function(l){return"movementY"in l?l.movementY:cr}}),ql=et(Cn),Lf=B({},Cn,{dataTransfer:0}),Pp=et(Lf),u_=B({},In,{relatedTarget:0}),Us=et(u_),Dp=B({},Mt,{animationName:0,elapsedTime:0,pseudoElement:0}),Lp=et(Dp),c_=B({},Mt,{clipboardData:function(l){return"clipboardData"in l?l.clipboardData:window.clipboardData}}),fk=et(c_),hk=B({},Mt,{data:0}),d_=et(hk),f_={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},$w={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},Bw={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function jw(l){var c=this.nativeEvent;return c.getModifierState?c.getModifierState(l):(l=Bw[l])?!!c[l]:!1}function h_(){return jw}var Gl=B({},In,{key:function(l){if(l.key){var c=f_[l.key]||l.key;if(c!=="Unidentified")return c}return l.type==="keypress"?(l=_e(l),l===13?"Enter":String.fromCharCode(l)):l.type==="keydown"||l.type==="keyup"?$w[l.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:h_,charCode:function(l){return l.type==="keypress"?_e(l):0},keyCode:function(l){return l.type==="keydown"||l.type==="keyup"?l.keyCode:0},which:function(l){return l.type==="keypress"?_e(l):l.type==="keydown"||l.type==="keyup"?l.keyCode:0}}),pk=et(Gl),p_=B({},Cn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ig=et(p_),v_=B({},In,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:h_}),vk=et(v_),og=B({},Mt,{propertyName:0,elapsedTime:0,pseudoElement:0}),zw=et(og),ga=B({},Cn,{deltaX:function(l){return"deltaX"in l?l.deltaX:"wheelDeltaX"in l?-l.wheelDeltaX:0},deltaY:function(l){return"deltaY"in l?l.deltaY:"wheelDeltaY"in l?-l.wheelDeltaY:"wheelDelta"in l?-l.wheelDelta:0},deltaZ:0,deltaMode:0}),Vl=et(ga),Ei=[9,13,27,32],Fs=f&&"CompositionEvent"in window,od=null;f&&"documentMode"in document&&(od=document.documentMode);var ag=f&&"TextEvent"in window&&!od,qw=f&&(!Fs||od&&8<od&&11>=od),Uf=String.fromCharCode(32),Gw=!1;function Vw(l,c){switch(l){case"keyup":return Ei.indexOf(c.keyCode)!==-1;case"keydown":return c.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function sg(l){return l=l.detail,typeof l=="object"&&"data"in l?l.data:null}var Ff=!1;function mk(l,c){switch(l){case"compositionend":return sg(c);case"keypress":return c.which!==32?null:(Gw=!0,Uf);case"textInput":return l=c.data,l===Uf&&Gw?null:l;default:return null}}function gk(l,c){if(Ff)return l==="compositionend"||!Fs&&Vw(l,c)?(l=de(),G=O=Ls=null,Ff=!1,l):null;switch(l){case"paste":return null;case"keypress":if(!(c.ctrlKey||c.altKey||c.metaKey)||c.ctrlKey&&c.altKey){if(c.char&&1<c.char.length)return c.char;if(c.which)return String.fromCharCode(c.which)}return null;case"compositionend":return qw&&c.locale!=="ko"?null:c.data;default:return null}}var Kw={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Ww(l){var c=l&&l.nodeName&&l.nodeName.toLowerCase();return c==="input"?!!Kw[l.type]:c==="textarea"}function Yw(l,c,m,_){zn(_),c=qp(c,"onChange"),0<c.length&&(m=new fn("onChange","change",null,m,_),l.push({event:m,listeners:c}))}var Up=null,Hf=null;function $f(l){dg(l,0)}function Bf(l){var c=zf(l);if(at(c))return l}function Qw(l,c){if(l==="change")return c}var m_=!1;if(f){var g_;if(f){var y_="oninput"in document;if(!y_){var Xw=document.createElement("div");Xw.setAttribute("oninput","return;"),y_=typeof Xw.oninput=="function"}g_=y_}else g_=!1;m_=g_&&(!document.documentMode||9<document.documentMode)}function Jw(){Up&&(Up.detachEvent("onpropertychange",Zw),Hf=Up=null)}function Zw(l){if(l.propertyName==="value"&&Bf(Hf)){var c=[];Yw(c,Hf,l,tt(l)),Io($f,c)}}function yk(l,c,m){l==="focusin"?(Jw(),Up=c,Hf=m,Up.attachEvent("onpropertychange",Zw)):l==="focusout"&&Jw()}function _k(l){if(l==="selectionchange"||l==="keyup"||l==="keydown")return Bf(Hf)}function Ek(l,c){if(l==="click")return Bf(c)}function eS(l,c){if(l==="input"||l==="change")return Bf(c)}function bk(l,c){return l===c&&(l!==0||1/l===1/c)||l!==l&&c!==c}var as=typeof Object.is=="function"?Object.is:bk;function Fp(l,c){if(as(l,c))return!0;if(typeof l!="object"||l===null||typeof c!="object"||c===null)return!1;var m=Object.keys(l),_=Object.keys(c);if(m.length!==_.length)return!1;for(_=0;_<m.length;_++){var C=m[_];if(!p.call(c,C)||!as(l[C],c[C]))return!1}return!0}function tS(l){for(;l&&l.firstChild;)l=l.firstChild;return l}function nS(l,c){var m=tS(l);l=0;for(var _;m;){if(m.nodeType===3){if(_=l+m.textContent.length,l<=c&&_>=c)return{node:m,offset:c-l};l=_}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=tS(m)}}function rS(l,c){return l&&c?l===c?!0:l&&l.nodeType===3?!1:c&&c.nodeType===3?rS(l,c.parentNode):"contains"in l?l.contains(c):l.compareDocumentPosition?!!(l.compareDocumentPosition(c)&16):!1:!1}function lg(){for(var l=window,c=Xn();c instanceof l.HTMLIFrameElement;){try{var m=typeof c.contentWindow.location.href=="string"}catch{m=!1}if(m)l=c.contentWindow;else break;c=Xn(l.document)}return c}function Kl(l){var c=l&&l.nodeName&&l.nodeName.toLowerCase();return c&&(c==="input"&&(l.type==="text"||l.type==="search"||l.type==="tel"||l.type==="url"||l.type==="password")||c==="textarea"||l.contentEditable==="true")}function ug(l){var c=lg(),m=l.focusedElem,_=l.selectionRange;if(c!==m&&m&&m.ownerDocument&&rS(m.ownerDocument.documentElement,m)){if(_!==null&&Kl(m)){if(c=_.start,l=_.end,l===void 0&&(l=c),"selectionStart"in m)m.selectionStart=c,m.selectionEnd=Math.min(l,m.value.length);else if(l=(c=m.ownerDocument||document)&&c.defaultView||window,l.getSelection){l=l.getSelection();var C=m.textContent.length,R=Math.min(_.start,C);_=_.end===void 0?R:Math.min(_.end,C),!l.extend&&R>_&&(C=_,_=R,R=C),C=nS(m,R);var N=nS(m,_);C&&N&&(l.rangeCount!==1||l.anchorNode!==C.node||l.anchorOffset!==C.offset||l.focusNode!==N.node||l.focusOffset!==N.offset)&&(c=c.createRange(),c.setStart(C.node,C.offset),l.removeAllRanges(),R>_?(l.addRange(c),l.extend(N.node,N.offset)):(c.setEnd(N.node,N.offset),l.addRange(c)))}}for(c=[],l=m;l=l.parentNode;)l.nodeType===1&&c.push({element:l,left:l.scrollLeft,top:l.scrollTop});for(typeof m.focus=="function"&&m.focus(),m=0;m<c.length;m++)l=c[m],l.element.scrollLeft=l.left,l.element.scrollTop=l.top}}var iS=f&&"documentMode"in document&&11>=document.documentMode,Hs=null,__=null,Hp=null,E_=!1;function oS(l,c,m){var _=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;E_||Hs==null||Hs!==Xn(_)||(_=Hs,"selectionStart"in _&&Kl(_)?_={start:_.selectionStart,end:_.selectionEnd}:(_=(_.ownerDocument&&_.ownerDocument.defaultView||window).getSelection(),_={anchorNode:_.anchorNode,anchorOffset:_.anchorOffset,focusNode:_.focusNode,focusOffset:_.focusOffset}),Hp&&Fp(Hp,_)||(Hp=_,_=qp(__,"onSelect"),0<_.length&&(c=new fn("onSelect","select",null,c,m),l.push({event:c,listeners:_}),c.target=Hs)))}function cg(l,c){var m={};return m[l.toLowerCase()]=c.toLowerCase(),m["Webkit"+l]="webkit"+c,m["Moz"+l]="moz"+c,m}var ad={animationend:cg("Animation","AnimationEnd"),animationiteration:cg("Animation","AnimationIteration"),animationstart:cg("Animation","AnimationStart"),transitionend:cg("Transition","TransitionEnd")},b_={},C_={};f&&(C_=document.createElement("div").style,"AnimationEvent"in window||(delete ad.animationend.animation,delete ad.animationiteration.animation,delete ad.animationstart.animation),"TransitionEvent"in window||delete ad.transitionend.transition);function Gi(l){if(b_[l])return b_[l];if(!ad[l])return l;var c=ad[l],m;for(m in c)if(c.hasOwnProperty(m)&&m in C_)return b_[l]=c[m];return l}var w_=Gi("animationend"),aS=Gi("animationiteration"),sS=Gi("animationstart"),lS=Gi("transitionend"),uS=new Map,cS="abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Wl(l,c){uS.set(l,c),s(c,[l])}for(var $p=0;$p<cS.length;$p++){var sd=cS[$p],Ck=sd.toLowerCase(),Bp=sd[0].toUpperCase()+sd.slice(1);Wl(Ck,"on"+Bp)}Wl(w_,"onAnimationEnd"),Wl(aS,"onAnimationIteration"),Wl(sS,"onAnimationStart"),Wl("dblclick","onDoubleClick"),Wl("focusin","onFocus"),Wl("focusout","onBlur"),Wl(lS,"onTransitionEnd"),u("onMouseEnter",["mouseout","mouseover"]),u("onMouseLeave",["mouseout","mouseover"]),u("onPointerEnter",["pointerout","pointerover"]),u("onPointerLeave",["pointerout","pointerover"]),s("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),s("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),s("onBeforeInput",["compositionend","keypress","textInput","paste"]),s("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),s("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var jp="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),wk=new Set("cancel close invalid load scroll toggle".split(" ").concat(jp));function dS(l,c,m){var _=l.type||"unknown-event";l.currentTarget=m,Xe(_,c,void 0,l),l.currentTarget=null}function dg(l,c){c=(c&4)!==0;for(var m=0;m<l.length;m++){var _=l[m],C=_.event;_=_.listeners;e:{var R=void 0;if(c)for(var N=_.length-1;0<=N;N--){var z=_[N],V=z.instance,me=z.currentTarget;if(z=z.listener,V!==R&&C.isPropagationStopped())break e;dS(C,z,me),R=V}else for(N=0;N<_.length;N++){if(z=_[N],V=z.instance,me=z.currentTarget,z=z.listener,V!==R&&C.isPropagationStopped())break e;dS(C,z,me),R=V}}}if(ha)throw l=q,ha=!1,q=null,l}function dr(l,c){var m=c[I_];m===void 0&&(m=c[I_]=new Set);var _=l+"__bubble";m.has(_)||(fS(c,l,2,!1),m.add(_))}function nc(l,c,m){var _=0;c&&(_|=4),fS(m,l,_,c)}var Yl="_reactListening"+Math.random().toString(36).slice(2);function jf(l){if(!l[Yl]){l[Yl]=!0,r.forEach(function(m){m!=="selectionchange"&&(wk.has(m)||nc(m,!1,l),nc(m,!0,l))});var c=l.nodeType===9?l:l.ownerDocument;c===null||c[Yl]||(c[Yl]=!0,nc("selectionchange",!1,c))}}function fS(l,c,m,_){switch(Mp(c)){case 1:var C=Pf;break;case 4:C=ec;break;default:C=tc}m=C.bind(null,c,m,l),C=void 0,!fa||c!=="touchstart"&&c!=="touchmove"&&c!=="wheel"||(C=!0),_?C!==void 0?l.addEventListener(c,m,{capture:!0,passive:C}):l.addEventListener(c,m,!0):C!==void 0?l.addEventListener(c,m,{passive:C}):l.addEventListener(c,m,!1)}function fg(l,c,m,_,C){var R=_;if(!(c&1)&&!(c&2)&&_!==null)e:for(;;){if(_===null)return;var N=_.tag;if(N===3||N===4){var z=_.stateNode.containerInfo;if(z===C||z.nodeType===8&&z.parentNode===C)break;if(N===4)for(N=_.return;N!==null;){var V=N.tag;if((V===3||V===4)&&(V=N.stateNode.containerInfo,V===C||V.nodeType===8&&V.parentNode===C))return;N=N.return}for(;z!==null;){if(N=ss(z),N===null)return;if(V=N.tag,V===5||V===6){_=R=N;continue e}z=z.parentNode}}_=_.return}Io(function(){var me=R,Pe=tt(m),Le=[];e:{var Ne=uS.get(l);if(Ne!==void 0){var st=fn,ht=l;switch(l){case"keypress":if(_e(m)===0)break e;case"keydown":case"keyup":st=pk;break;case"focusin":ht="focus",st=Us;break;case"focusout":ht="blur",st=Us;break;case"beforeblur":case"afterblur":st=Us;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":st=ql;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":st=Pp;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":st=vk;break;case w_:case aS:case sS:st=Lp;break;case lS:st=zw;break;case"scroll":st=ur;break;case"wheel":st=Vl;break;case"copy":case"cut":case"paste":st=fk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":st=ig}var yt=(c&4)!==0,li=!yt&&l==="scroll",ie=yt?Ne!==null?Ne+"Capture":null:Ne;yt=[];for(var J=me,ue;J!==null;){ue=J;var ze=ue.stateNode;if(ue.tag===5&&ze!==null&&(ue=ze,ie!==null&&(ze=Mi(J,ie),ze!=null&&yt.push(zp(J,ze,ue)))),li)break;J=J.return}0<yt.length&&(Ne=new st(Ne,ht,null,m,Pe),Le.push({event:Ne,listeners:yt}))}}if(!(c&7)){e:{if(Ne=l==="mouseover"||l==="pointerover",st=l==="mouseout"||l==="pointerout",Ne&&m!==bt&&(ht=m.relatedTarget||m.fromElement)&&(ss(ht)||ht[Ql]))break e;if((st||Ne)&&(Ne=Pe.window===Pe?Pe:(Ne=Pe.ownerDocument)?Ne.defaultView||Ne.parentWindow:window,st?(ht=m.relatedTarget||m.toElement,st=me,ht=ht?ss(ht):null,ht!==null&&(li=qt(ht),ht!==li||ht.tag!==5&&ht.tag!==6)&&(ht=null)):(st=null,ht=me),st!==ht)){if(yt=ql,ze="onMouseLeave",ie="onMouseEnter",J="mouse",(l==="pointerout"||l==="pointerover")&&(yt=ig,ze="onPointerLeave",ie="onPointerEnter",J="pointer"),li=st==null?Ne:zf(st),ue=ht==null?Ne:zf(ht),Ne=new yt(ze,J+"leave",st,m,Pe),Ne.target=li,Ne.relatedTarget=ue,ze=null,ss(Pe)===me&&(yt=new yt(ie,J+"enter",ht,m,Pe),yt.target=ue,yt.relatedTarget=li,ze=yt),li=ze,st&&ht)t:{for(yt=st,ie=ht,J=0,ue=yt;ue;ue=ld(ue))J++;for(ue=0,ze=ie;ze;ze=ld(ze))ue++;for(;0<J-ue;)yt=ld(yt),J--;for(;0<ue-J;)ie=ld(ie),ue--;for(;J--;){if(yt===ie||ie!==null&&yt===ie.alternate)break t;yt=ld(yt),ie=ld(ie)}yt=null}else yt=null;st!==null&&S_(Le,Ne,st,yt,!1),ht!==null&&li!==null&&S_(Le,li,ht,yt,!0)}}e:{if(Ne=me?zf(me):window,st=Ne.nodeName&&Ne.nodeName.toLowerCase(),st==="select"||st==="input"&&Ne.type==="file")var wt=Qw;else if(Ww(Ne))if(m_)wt=eS;else{wt=_k;var pt=yk}else(st=Ne.nodeName)&&st.toLowerCase()==="input"&&(Ne.type==="checkbox"||Ne.type==="radio")&&(wt=Ek);if(wt&&(wt=wt(l,me))){Yw(Le,wt,m,Pe);break e}pt&&pt(l,Ne,me),l==="focusout"&&(pt=Ne._wrapperState)&&pt.controlled&&Ne.type==="number"&&zi(Ne,"number",Ne.value)}switch(pt=me?zf(me):window,l){case"focusin":(Ww(pt)||pt.contentEditable==="true")&&(Hs=pt,__=me,Hp=null);break;case"focusout":Hp=__=Hs=null;break;case"mousedown":E_=!0;break;case"contextmenu":case"mouseup":case"dragend":E_=!1,oS(Le,m,Pe);break;case"selectionchange":if(iS)break;case"keydown":case"keyup":oS(Le,m,Pe)}var xt;if(Fs)e:{switch(l){case"compositionstart":var Vt="onCompositionStart";break e;case"compositionend":Vt="onCompositionEnd";break e;case"compositionupdate":Vt="onCompositionUpdate";break e}Vt=void 0}else Ff?Vw(l,m)&&(Vt="onCompositionEnd"):l==="keydown"&&m.keyCode===229&&(Vt="onCompositionStart");Vt&&(qw&&m.locale!=="ko"&&(Ff||Vt!=="onCompositionStart"?Vt==="onCompositionEnd"&&Ff&&(xt=de()):(Ls=Pe,O="value"in Ls?Ls.value:Ls.textContent,Ff=!0)),pt=qp(me,Vt),0<pt.length&&(Vt=new d_(Vt,l,null,m,Pe),Le.push({event:Vt,listeners:pt}),xt?Vt.data=xt:(xt=sg(m),xt!==null&&(Vt.data=xt)))),(xt=ag?mk(l,m):gk(l,m))&&(me=qp(me,"onBeforeInput"),0<me.length&&(Pe=new d_("onBeforeInput","beforeinput",null,m,Pe),Le.push({event:Pe,listeners:me}),Pe.data=xt))}dg(Le,c)})}function zp(l,c,m){return{instance:l,listener:c,currentTarget:m}}function qp(l,c){for(var m=c+"Capture",_=[];l!==null;){var C=l,R=C.stateNode;C.tag===5&&R!==null&&(C=R,R=Mi(l,m),R!=null&&_.unshift(zp(l,R,C)),R=Mi(l,c),R!=null&&_.push(zp(l,R,C))),l=l.return}return _}function ld(l){if(l===null)return null;do l=l.return;while(l&&l.tag!==5);return l||null}function S_(l,c,m,_,C){for(var R=c._reactName,N=[];m!==null&&m!==_;){var z=m,V=z.alternate,me=z.stateNode;if(V!==null&&V===_)break;z.tag===5&&me!==null&&(z=me,C?(V=Mi(m,R),V!=null&&N.unshift(zp(m,V,z))):C||(V=Mi(m,R),V!=null&&N.push(zp(m,V,z)))),m=m.return}N.length!==0&&l.push({event:c,listeners:N})}var T_=/\r\n?/g,Sk=/\u0000|\uFFFD/g;function R_(l){return(typeof l=="string"?l:""+l).replace(T_,`
94
+ `).replace(Sk,"")}function hg(l,c,m){if(c=R_(c),R_(l)!==c&&m)throw Error(t(425))}function pg(){}var x_=null,ud=null;function Gp(l,c){return l==="textarea"||l==="noscript"||typeof c.children=="string"||typeof c.children=="number"||typeof c.dangerouslySetInnerHTML=="object"&&c.dangerouslySetInnerHTML!==null&&c.dangerouslySetInnerHTML.__html!=null}var cd=typeof setTimeout=="function"?setTimeout:void 0,hS=typeof clearTimeout=="function"?clearTimeout:void 0,A_=typeof Promise=="function"?Promise:void 0,k_=typeof queueMicrotask=="function"?queueMicrotask:typeof A_<"u"?function(l){return A_.resolve(null).then(l).catch(Tk)}:cd;function Tk(l){setTimeout(function(){throw l})}function rc(l,c){var m=c,_=0;do{var C=m.nextSibling;if(l.removeChild(m),C&&C.nodeType===8)if(m=C.data,m==="/$"){if(_===0){l.removeChild(C),Ju(c);return}_--}else m!=="$"&&m!=="$?"&&m!=="$!"||_++;m=C}while(m);Ju(c)}function $s(l){for(;l!=null;l=l.nextSibling){var c=l.nodeType;if(c===1||c===3)break;if(c===8){if(c=l.data,c==="$"||c==="$!"||c==="$?")break;if(c==="/$")return null}}return l}function Vp(l){l=l.previousSibling;for(var c=0;l;){if(l.nodeType===8){var m=l.data;if(m==="$"||m==="$!"||m==="$?"){if(c===0)return l;c--}else m==="/$"&&c++}l=l.previousSibling}return null}var ic=Math.random().toString(36).slice(2),ul="__reactFiber$"+ic,dd="__reactProps$"+ic,Ql="__reactContainer$"+ic,I_="__reactEvents$"+ic,Rk="__reactListeners$"+ic,O_="__reactHandles$"+ic;function ss(l){var c=l[ul];if(c)return c;for(var m=l.parentNode;m;){if(c=m[Ql]||m[ul]){if(m=c.alternate,c.child!==null||m!==null&&m.child!==null)for(l=Vp(l);l!==null;){if(m=l[ul])return m;l=Vp(l)}return c}l=m,m=l.parentNode}return null}function Kp(l){return l=l[ul]||l[Ql],!l||l.tag!==5&&l.tag!==6&&l.tag!==13&&l.tag!==3?null:l}function zf(l){if(l.tag===5||l.tag===6)return l.stateNode;throw Error(t(33))}function It(l){return l[dd]||null}var oc=[],br=-1;function nn(l){return{current:l}}function $n(l){0>br||(l.current=oc[br],oc[br]=null,br--)}function Gn(l,c){br++,oc[br]=l.current,l.current=c}var cl={},Gt=nn(cl),Zr=nn(!1),ya=cl;function ls(l,c){var m=l.type.contextTypes;if(!m)return cl;var _=l.stateNode;if(_&&_.__reactInternalMemoizedUnmaskedChildContext===c)return _.__reactInternalMemoizedMaskedChildContext;var C={},R;for(R in m)C[R]=c[R];return _&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=c,l.__reactInternalMemoizedMaskedChildContext=C),C}function Or(l){return l=l.childContextTypes,l!=null}function us(){$n(Zr),$n(Gt)}function ac(l,c,m){if(Gt.current!==cl)throw Error(t(168));Gn(Gt,c),Gn(Zr,m)}function Wp(l,c,m){var _=l.stateNode;if(c=c.childContextTypes,typeof _.getChildContext!="function")return m;_=_.getChildContext();for(var C in _)if(!(C in c))throw Error(t(108,zt(l)||"Unknown",C));return B({},m,_)}function vg(l){return l=(l=l.stateNode)&&l.__reactInternalMemoizedMergedChildContext||cl,ya=Gt.current,Gn(Gt,l),Gn(Zr,Zr.current),!0}function pS(l,c,m){var _=l.stateNode;if(!_)throw Error(t(169));m?(l=Wp(l,c,ya),_.__reactInternalMemoizedMergedChildContext=l,$n(Zr),$n(Gt),Gn(Gt,l)):$n(Zr),Gn(Zr,m)}var La=null,Vi=!1,Yp=!1;function N_(l){La===null?La=[l]:La.push(l)}function M_(l){Vi=!0,N_(l)}function _a(){if(!Yp&&La!==null){Yp=!0;var l=0,c=Ln;try{var m=La;for(Ln=1;l<m.length;l++){var _=m[l];do _=_(!0);while(_!==null)}La=null,Vi=!1}catch(C){throw La!==null&&(La=La.slice(l+1)),vr(Ps,_a),C}finally{Ln=c,Yp=!1}}return null}var sc=[],Ea=0,fd=null,qf=0,ba=[],Oo=0,cs=null,lo=1,Xl="";function Ua(l,c){sc[Ea++]=qf,sc[Ea++]=fd,fd=l,qf=c}function P_(l,c,m){ba[Oo++]=lo,ba[Oo++]=Xl,ba[Oo++]=cs,cs=l;var _=lo;l=Xl;var C=32-Vo(_)-1;_&=~(1<<C),m+=1;var R=32-Vo(c)+C;if(30<R){var N=C-C%5;R=(_&(1<<N)-1).toString(32),_>>=N,C-=N,lo=1<<32-Vo(c)+C|m<<C|_,Xl=R+l}else lo=1<<R|m<<C|_,Xl=l}function mg(l){l.return!==null&&(Ua(l,1),P_(l,1,0))}function D_(l){for(;l===fd;)fd=sc[--Ea],sc[Ea]=null,qf=sc[--Ea],sc[Ea]=null;for(;l===cs;)cs=ba[--Oo],ba[Oo]=null,Xl=ba[--Oo],ba[Oo]=null,lo=ba[--Oo],ba[Oo]=null}var Fa=null,Ca=null,Cr=!1,ds=null;function L_(l,c){var m=gs(5,null,null,0);m.elementType="DELETED",m.stateNode=c,m.return=l,c=l.deletions,c===null?(l.deletions=[m],l.flags|=16):c.push(m)}function vS(l,c){switch(l.tag){case 5:var m=l.type;return c=c.nodeType!==1||m.toLowerCase()!==c.nodeName.toLowerCase()?null:c,c!==null?(l.stateNode=c,Fa=l,Ca=$s(c.firstChild),!0):!1;case 6:return c=l.pendingProps===""||c.nodeType!==3?null:c,c!==null?(l.stateNode=c,Fa=l,Ca=null,!0):!1;case 13:return c=c.nodeType!==8?null:c,c!==null?(m=cs!==null?{id:lo,overflow:Xl}:null,l.memoizedState={dehydrated:c,treeContext:m,retryLane:1073741824},m=gs(18,null,null,0),m.stateNode=c,m.return=l,l.child=m,Fa=l,Ca=null,!0):!1;default:return!1}}function gg(l){return(l.mode&1)!==0&&(l.flags&128)===0}function yg(l){if(Cr){var c=Ca;if(c){var m=c;if(!vS(l,c)){if(gg(l))throw Error(t(418));c=$s(m.nextSibling);var _=Fa;c&&vS(l,c)?L_(_,m):(l.flags=l.flags&-4097|2,Cr=!1,Fa=l)}}else{if(gg(l))throw Error(t(418));l.flags=l.flags&-4097|2,Cr=!1,Fa=l}}}function mS(l){for(l=l.return;l!==null&&l.tag!==5&&l.tag!==3&&l.tag!==13;)l=l.return;Fa=l}function _g(l){if(l!==Fa)return!1;if(!Cr)return mS(l),Cr=!0,!1;var c;if((c=l.tag!==3)&&!(c=l.tag!==5)&&(c=l.type,c=c!=="head"&&c!=="body"&&!Gp(l.type,l.memoizedProps)),c&&(c=Ca)){if(gg(l))throw gS(),Error(t(418));for(;c;)L_(l,c),c=$s(c.nextSibling)}if(mS(l),l.tag===13){if(l=l.memoizedState,l=l!==null?l.dehydrated:null,!l)throw Error(t(317));e:{for(l=l.nextSibling,c=0;l;){if(l.nodeType===8){var m=l.data;if(m==="/$"){if(c===0){Ca=$s(l.nextSibling);break e}c--}else m!=="$"&&m!=="$!"&&m!=="$?"||c++}l=l.nextSibling}Ca=null}}else Ca=Fa?$s(l.stateNode.nextSibling):null;return!0}function gS(){for(var l=Ca;l;)l=$s(l.nextSibling)}function Hr(){Ca=Fa=null,Cr=!1}function U_(l){ds===null?ds=[l]:ds.push(l)}var Eg=U.ReactCurrentBatchConfig;function Ha(l,c){if(l&&l.defaultProps){c=B({},c),l=l.defaultProps;for(var m in l)c[m]===void 0&&(c[m]=l[m]);return c}return c}var dl=nn(null),bg=null,lc=null,F_=null;function H_(){F_=lc=bg=null}function uc(l){var c=dl.current;$n(dl),l._currentValue=c}function Ki(l,c,m){for(;l!==null;){var _=l.alternate;if((l.childLanes&c)!==c?(l.childLanes|=c,_!==null&&(_.childLanes|=c)):_!==null&&(_.childLanes&c)!==c&&(_.childLanes|=c),l===m)break;l=l.return}}function Je(l,c){bg=l,F_=lc=null,l=l.dependencies,l!==null&&l.firstContext!==null&&(l.lanes&c&&(bi=!0),l.firstContext=null)}function si(l){var c=l._currentValue;if(F_!==l)if(l={context:l,memoizedValue:c,next:null},lc===null){if(bg===null)throw Error(t(308));lc=l,bg.dependencies={lanes:0,firstContext:l}}else lc=lc.next=l;return c}var uo=null;function $_(l){uo===null?uo=[l]:uo.push(l)}function yS(l,c,m,_){var C=c.interleaved;return C===null?(m.next=m,$_(c)):(m.next=C.next,C.next=m),c.interleaved=m,Jl(l,_)}function Jl(l,c){l.lanes|=c;var m=l.alternate;for(m!==null&&(m.lanes|=c),m=l,l=l.return;l!==null;)l.childLanes|=c,m=l.alternate,m!==null&&(m.childLanes|=c),m=l,l=l.return;return m.tag===3?m.stateNode:null}var cc=!1;function B_(l){l.updateQueue={baseState:l.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Pi(l,c){l=l.updateQueue,c.updateQueue===l&&(c.updateQueue={baseState:l.baseState,firstBaseUpdate:l.firstBaseUpdate,lastBaseUpdate:l.lastBaseUpdate,shared:l.shared,effects:l.effects})}function Zl(l,c){return{eventTime:l,lane:c,tag:0,payload:null,callback:null,next:null}}function dc(l,c,m){var _=l.updateQueue;if(_===null)return null;if(_=_.shared,En&2){var C=_.pending;return C===null?c.next=c:(c.next=C.next,C.next=c),_.pending=c,Jl(l,m)}return C=_.interleaved,C===null?(c.next=c,$_(_)):(c.next=C.next,C.next=c),_.interleaved=c,Jl(l,m)}function Cg(l,c,m){if(c=c.updateQueue,c!==null&&(c=c.shared,(m&4194240)!==0)){var _=c.lanes;_&=l.pendingLanes,m|=_,c.lanes=m,sl(l,m)}}function j_(l,c){var m=l.updateQueue,_=l.alternate;if(_!==null&&(_=_.updateQueue,m===_)){var C=null,R=null;if(m=m.firstBaseUpdate,m!==null){do{var N={eventTime:m.eventTime,lane:m.lane,tag:m.tag,payload:m.payload,callback:m.callback,next:null};R===null?C=R=N:R=R.next=N,m=m.next}while(m!==null);R===null?C=R=c:R=R.next=c}else C=R=c;m={baseState:_.baseState,firstBaseUpdate:C,lastBaseUpdate:R,shared:_.shared,effects:_.effects},l.updateQueue=m;return}l=m.lastBaseUpdate,l===null?m.firstBaseUpdate=c:l.next=c,m.lastBaseUpdate=c}function fc(l,c,m,_){var C=l.updateQueue;cc=!1;var R=C.firstBaseUpdate,N=C.lastBaseUpdate,z=C.shared.pending;if(z!==null){C.shared.pending=null;var V=z,me=V.next;V.next=null,N===null?R=me:N.next=me,N=V;var Pe=l.alternate;Pe!==null&&(Pe=Pe.updateQueue,z=Pe.lastBaseUpdate,z!==N&&(z===null?Pe.firstBaseUpdate=me:z.next=me,Pe.lastBaseUpdate=V))}if(R!==null){var Le=C.baseState;N=0,Pe=me=V=null,z=R;do{var Ne=z.lane,st=z.eventTime;if((_&Ne)===Ne){Pe!==null&&(Pe=Pe.next={eventTime:st,lane:0,tag:z.tag,payload:z.payload,callback:z.callback,next:null});e:{var ht=l,yt=z;switch(Ne=c,st=m,yt.tag){case 1:if(ht=yt.payload,typeof ht=="function"){Le=ht.call(st,Le,Ne);break e}Le=ht;break e;case 3:ht.flags=ht.flags&-65537|128;case 0:if(ht=yt.payload,Ne=typeof ht=="function"?ht.call(st,Le,Ne):ht,Ne==null)break e;Le=B({},Le,Ne);break e;case 2:cc=!0}}z.callback!==null&&z.lane!==0&&(l.flags|=64,Ne=C.effects,Ne===null?C.effects=[z]:Ne.push(z))}else st={eventTime:st,lane:Ne,tag:z.tag,payload:z.payload,callback:z.callback,next:null},Pe===null?(me=Pe=st,V=Le):Pe=Pe.next=st,N|=Ne;if(z=z.next,z===null){if(z=C.shared.pending,z===null)break;Ne=z,z=Ne.next,Ne.next=null,C.lastBaseUpdate=Ne,C.shared.pending=null}}while(1);if(Pe===null&&(V=Le),C.baseState=V,C.firstBaseUpdate=me,C.lastBaseUpdate=Pe,c=C.shared.interleaved,c!==null){C=c;do N|=C.lane,C=C.next;while(C!==c)}else R===null&&(C.shared.lanes=0);ru|=N,l.lanes=N,l.memoizedState=Le}}function hd(l,c,m){if(l=c.effects,c.effects=null,l!==null)for(c=0;c<l.length;c++){var _=l[c],C=_.callback;if(C!==null){if(_.callback=null,_=m,typeof C!="function")throw Error(t(191,C));C.call(_)}}}var _S=new n.Component().refs;function z_(l,c,m,_){c=l.memoizedState,m=m(_,c),m=m==null?c:B({},c,m),l.memoizedState=m,l.lanes===0&&(l.updateQueue.baseState=m)}var wg={isMounted:function(l){return(l=l._reactInternals)?qt(l)===l:!1},enqueueSetState:function(l,c,m){l=l._reactInternals;var _=Do(),C=Ci(l),R=Zl(_,C);R.payload=c,m!=null&&(R.callback=m),c=dc(l,R,C),c!==null&&(Lo(c,l,C,_),Cg(c,l,C))},enqueueReplaceState:function(l,c,m){l=l._reactInternals;var _=Do(),C=Ci(l),R=Zl(_,C);R.tag=1,R.payload=c,m!=null&&(R.callback=m),c=dc(l,R,C),c!==null&&(Lo(c,l,C,_),Cg(c,l,C))},enqueueForceUpdate:function(l,c){l=l._reactInternals;var m=Do(),_=Ci(l),C=Zl(m,_);C.tag=2,c!=null&&(C.callback=c),c=dc(l,C,_),c!==null&&(Lo(c,l,_,m),Cg(c,l,_))}};function ES(l,c,m,_,C,R,N){return l=l.stateNode,typeof l.shouldComponentUpdate=="function"?l.shouldComponentUpdate(_,R,N):c.prototype&&c.prototype.isPureReactComponent?!Fp(m,_)||!Fp(C,R):!0}function bS(l,c,m){var _=!1,C=cl,R=c.contextType;return typeof R=="object"&&R!==null?R=si(R):(C=Or(c)?ya:Gt.current,_=c.contextTypes,R=(_=_!=null)?ls(l,C):cl),c=new c(m,R),l.memoizedState=c.state!==null&&c.state!==void 0?c.state:null,c.updater=wg,l.stateNode=c,c._reactInternals=l,_&&(l=l.stateNode,l.__reactInternalMemoizedUnmaskedChildContext=C,l.__reactInternalMemoizedMaskedChildContext=R),c}function CS(l,c,m,_){l=c.state,typeof c.componentWillReceiveProps=="function"&&c.componentWillReceiveProps(m,_),typeof c.UNSAFE_componentWillReceiveProps=="function"&&c.UNSAFE_componentWillReceiveProps(m,_),c.state!==l&&wg.enqueueReplaceState(c,c.state,null)}function Sg(l,c,m,_){var C=l.stateNode;C.props=m,C.state=l.memoizedState,C.refs=_S,B_(l);var R=c.contextType;typeof R=="object"&&R!==null?C.context=si(R):(R=Or(c)?ya:Gt.current,C.context=ls(l,R)),C.state=l.memoizedState,R=c.getDerivedStateFromProps,typeof R=="function"&&(z_(l,c,R,m),C.state=l.memoizedState),typeof c.getDerivedStateFromProps=="function"||typeof C.getSnapshotBeforeUpdate=="function"||typeof C.UNSAFE_componentWillMount!="function"&&typeof C.componentWillMount!="function"||(c=C.state,typeof C.componentWillMount=="function"&&C.componentWillMount(),typeof C.UNSAFE_componentWillMount=="function"&&C.UNSAFE_componentWillMount(),c!==C.state&&wg.enqueueReplaceState(C,C.state,null),fc(l,m,C,_),C.state=l.memoizedState),typeof C.componentDidMount=="function"&&(l.flags|=4194308)}function Gf(l,c,m){if(l=m.ref,l!==null&&typeof l!="function"&&typeof l!="object"){if(m._owner){if(m=m._owner,m){if(m.tag!==1)throw Error(t(309));var _=m.stateNode}if(!_)throw Error(t(147,l));var C=_,R=""+l;return c!==null&&c.ref!==null&&typeof c.ref=="function"&&c.ref._stringRef===R?c.ref:(c=function(N){var z=C.refs;z===_S&&(z=C.refs={}),N===null?delete z[R]:z[R]=N},c._stringRef=R,c)}if(typeof l!="string")throw Error(t(284));if(!m._owner)throw Error(t(290,l))}return l}function Tg(l,c){throw l=Object.prototype.toString.call(c),Error(t(31,l==="[object Object]"?"object with keys {"+Object.keys(c).join(", ")+"}":l))}function wS(l){var c=l._init;return c(l._payload)}function SS(l){function c(ie,J){if(l){var ue=ie.deletions;ue===null?(ie.deletions=[J],ie.flags|=16):ue.push(J)}}function m(ie,J){if(!l)return null;for(;J!==null;)c(ie,J),J=J.sibling;return null}function _(ie,J){for(ie=new Map;J!==null;)J.key!==null?ie.set(J.key,J):ie.set(J.index,J),J=J.sibling;return ie}function C(ie,J){return ie=Ec(ie,J),ie.index=0,ie.sibling=null,ie}function R(ie,J,ue){return ie.index=ue,l?(ue=ie.alternate,ue!==null?(ue=ue.index,ue<J?(ie.flags|=2,J):ue):(ie.flags|=2,J)):(ie.flags|=1048576,J)}function N(ie){return l&&ie.alternate===null&&(ie.flags|=2),ie}function z(ie,J,ue,ze){return J===null||J.tag!==6?(J=pv(ue,ie.mode,ze),J.return=ie,J):(J=C(J,ue),J.return=ie,J)}function V(ie,J,ue,ze){var wt=ue.type;return wt===Q?Pe(ie,J,ue.props.children,ze,ue.key):J!==null&&(J.elementType===wt||typeof wt=="object"&&wt!==null&&wt.$$typeof===ve&&wS(wt)===J.type)?(ze=C(J,ue.props),ze.ref=Gf(ie,J,ue),ze.return=ie,ze):(ze=ry(ue.type,ue.key,ue.props,null,ie.mode,ze),ze.ref=Gf(ie,J,ue),ze.return=ie,ze)}function me(ie,J,ue,ze){return J===null||J.tag!==4||J.stateNode.containerInfo!==ue.containerInfo||J.stateNode.implementation!==ue.implementation?(J=Nd(ue,ie.mode,ze),J.return=ie,J):(J=C(J,ue.children||[]),J.return=ie,J)}function Pe(ie,J,ue,ze,wt){return J===null||J.tag!==7?(J=Od(ue,ie.mode,ze,wt),J.return=ie,J):(J=C(J,ue),J.return=ie,J)}function Le(ie,J,ue){if(typeof J=="string"&&J!==""||typeof J=="number")return J=pv(""+J,ie.mode,ue),J.return=ie,J;if(typeof J=="object"&&J!==null){switch(J.$$typeof){case H:return ue=ry(J.type,J.key,J.props,null,ie.mode,ue),ue.ref=Gf(ie,null,J),ue.return=ie,ue;case W:return J=Nd(J,ie.mode,ue),J.return=ie,J;case ve:var ze=J._init;return Le(ie,ze(J._payload),ue)}if(lr(J)||ge(J))return J=Od(J,ie.mode,ue,null),J.return=ie,J;Tg(ie,J)}return null}function Ne(ie,J,ue,ze){var wt=J!==null?J.key:null;if(typeof ue=="string"&&ue!==""||typeof ue=="number")return wt!==null?null:z(ie,J,""+ue,ze);if(typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case H:return ue.key===wt?V(ie,J,ue,ze):null;case W:return ue.key===wt?me(ie,J,ue,ze):null;case ve:return wt=ue._init,Ne(ie,J,wt(ue._payload),ze)}if(lr(ue)||ge(ue))return wt!==null?null:Pe(ie,J,ue,ze,null);Tg(ie,ue)}return null}function st(ie,J,ue,ze,wt){if(typeof ze=="string"&&ze!==""||typeof ze=="number")return ie=ie.get(ue)||null,z(J,ie,""+ze,wt);if(typeof ze=="object"&&ze!==null){switch(ze.$$typeof){case H:return ie=ie.get(ze.key===null?ue:ze.key)||null,V(J,ie,ze,wt);case W:return ie=ie.get(ze.key===null?ue:ze.key)||null,me(J,ie,ze,wt);case ve:var pt=ze._init;return st(ie,J,ue,pt(ze._payload),wt)}if(lr(ze)||ge(ze))return ie=ie.get(ue)||null,Pe(J,ie,ze,wt,null);Tg(J,ze)}return null}function ht(ie,J,ue,ze){for(var wt=null,pt=null,xt=J,Vt=J=0,Qi=null;xt!==null&&Vt<ue.length;Vt++){xt.index>Vt?(Qi=xt,xt=null):Qi=xt.sibling;var Mn=Ne(ie,xt,ue[Vt],ze);if(Mn===null){xt===null&&(xt=Qi);break}l&&xt&&Mn.alternate===null&&c(ie,xt),J=R(Mn,J,Vt),pt===null?wt=Mn:pt.sibling=Mn,pt=Mn,xt=Qi}if(Vt===ue.length)return m(ie,xt),Cr&&Ua(ie,Vt),wt;if(xt===null){for(;Vt<ue.length;Vt++)xt=Le(ie,ue[Vt],ze),xt!==null&&(J=R(xt,J,Vt),pt===null?wt=xt:pt.sibling=xt,pt=xt);return Cr&&Ua(ie,Vt),wt}for(xt=_(ie,xt);Vt<ue.length;Vt++)Qi=st(xt,ie,Vt,ue[Vt],ze),Qi!==null&&(l&&Qi.alternate!==null&&xt.delete(Qi.key===null?Vt:Qi.key),J=R(Qi,J,Vt),pt===null?wt=Qi:pt.sibling=Qi,pt=Qi);return l&&xt.forEach(function(bc){return c(ie,bc)}),Cr&&Ua(ie,Vt),wt}function yt(ie,J,ue,ze){var wt=ge(ue);if(typeof wt!="function")throw Error(t(150));if(ue=wt.call(ue),ue==null)throw Error(t(151));for(var pt=wt=null,xt=J,Vt=J=0,Qi=null,Mn=ue.next();xt!==null&&!Mn.done;Vt++,Mn=ue.next()){xt.index>Vt?(Qi=xt,xt=null):Qi=xt.sibling;var bc=Ne(ie,xt,Mn.value,ze);if(bc===null){xt===null&&(xt=Qi);break}l&&xt&&bc.alternate===null&&c(ie,xt),J=R(bc,J,Vt),pt===null?wt=bc:pt.sibling=bc,pt=bc,xt=Qi}if(Mn.done)return m(ie,xt),Cr&&Ua(ie,Vt),wt;if(xt===null){for(;!Mn.done;Vt++,Mn=ue.next())Mn=Le(ie,Mn.value,ze),Mn!==null&&(J=R(Mn,J,Vt),pt===null?wt=Mn:pt.sibling=Mn,pt=Mn);return Cr&&Ua(ie,Vt),wt}for(xt=_(ie,xt);!Mn.done;Vt++,Mn=ue.next())Mn=st(xt,ie,Vt,Mn.value,ze),Mn!==null&&(l&&Mn.alternate!==null&&xt.delete(Mn.key===null?Vt:Mn.key),J=R(Mn,J,Vt),pt===null?wt=Mn:pt.sibling=Mn,pt=Mn);return l&&xt.forEach(function(Vk){return c(ie,Vk)}),Cr&&Ua(ie,Vt),wt}function li(ie,J,ue,ze){if(typeof ue=="object"&&ue!==null&&ue.type===Q&&ue.key===null&&(ue=ue.props.children),typeof ue=="object"&&ue!==null){switch(ue.$$typeof){case H:e:{for(var wt=ue.key,pt=J;pt!==null;){if(pt.key===wt){if(wt=ue.type,wt===Q){if(pt.tag===7){m(ie,pt.sibling),J=C(pt,ue.props.children),J.return=ie,ie=J;break e}}else if(pt.elementType===wt||typeof wt=="object"&&wt!==null&&wt.$$typeof===ve&&wS(wt)===pt.type){m(ie,pt.sibling),J=C(pt,ue.props),J.ref=Gf(ie,pt,ue),J.return=ie,ie=J;break e}m(ie,pt);break}else c(ie,pt);pt=pt.sibling}ue.type===Q?(J=Od(ue.props.children,ie.mode,ze,ue.key),J.return=ie,ie=J):(ze=ry(ue.type,ue.key,ue.props,null,ie.mode,ze),ze.ref=Gf(ie,J,ue),ze.return=ie,ie=ze)}return N(ie);case W:e:{for(pt=ue.key;J!==null;){if(J.key===pt)if(J.tag===4&&J.stateNode.containerInfo===ue.containerInfo&&J.stateNode.implementation===ue.implementation){m(ie,J.sibling),J=C(J,ue.children||[]),J.return=ie,ie=J;break e}else{m(ie,J);break}else c(ie,J);J=J.sibling}J=Nd(ue,ie.mode,ze),J.return=ie,ie=J}return N(ie);case ve:return pt=ue._init,li(ie,J,pt(ue._payload),ze)}if(lr(ue))return ht(ie,J,ue,ze);if(ge(ue))return yt(ie,J,ue,ze);Tg(ie,ue)}return typeof ue=="string"&&ue!==""||typeof ue=="number"?(ue=""+ue,J!==null&&J.tag===6?(m(ie,J.sibling),J=C(J,ue),J.return=ie,ie=J):(m(ie,J),J=pv(ue,ie.mode,ze),J.return=ie,ie=J),N(ie)):m(ie,J)}return li}var Vf=SS(!0),TS=SS(!1),Qp={},Bs=nn(Qp),Xp=nn(Qp),Kf=nn(Qp);function pd(l){if(l===Qp)throw Error(t(174));return l}function q_(l,c){switch(Gn(Kf,c),Gn(Xp,l),Gn(Bs,Qp),l=c.nodeType,l){case 9:case 11:c=(c=c.documentElement)?c.namespaceURI:hr(null,"");break;default:l=l===8?c.parentNode:c,c=l.namespaceURI||null,l=l.tagName,c=hr(c,l)}$n(Bs),Gn(Bs,c)}function hc(){$n(Bs),$n(Xp),$n(Kf)}function Pt(l){pd(Kf.current);var c=pd(Bs.current),m=hr(c,l.type);c!==m&&(Gn(Xp,l),Gn(Bs,m))}function hn(l){Xp.current===l&&($n(Bs),$n(Xp))}var Ft=nn(0);function $r(l){for(var c=l;c!==null;){if(c.tag===13){var m=c.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||m.data==="$?"||m.data==="$!"))return c}else if(c.tag===19&&c.memoizedProps.revealOrder!==void 0){if(c.flags&128)return c}else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===l)break;for(;c.sibling===null;){if(c.return===null||c.return===l)return null;c=c.return}c.sibling.return=c.return,c=c.sibling}return null}var fs=[];function Rg(){for(var l=0;l<fs.length;l++)fs[l]._workInProgressVersionPrimary=null;fs.length=0}var xg=U.ReactCurrentDispatcher,G_=U.ReactCurrentBatchConfig,vd=0,wr=null,Se=null,Tn=null,Ht=!1,fl=!1,$a=0,md=0;function Sr(){throw Error(t(321))}function gd(l,c){if(c===null)return!1;for(var m=0;m<c.length&&m<l.length;m++)if(!as(l[m],c[m]))return!1;return!0}function pc(l,c,m,_,C,R){if(vd=R,wr=c,c.memoizedState=null,c.updateQueue=null,c.lanes=0,xg.current=l===null||l.memoizedState===null?Ak:kk,l=m(_,C),fl){R=0;do{if(fl=!1,$a=0,25<=R)throw Error(t(301));R+=1,Tn=Se=null,c.updateQueue=null,xg.current=K_,l=m(_,C)}while(fl)}if(xg.current=zg,c=Se!==null&&Se.next!==null,vd=0,Tn=Se=wr=null,Ht=!1,c)throw Error(t(300));return l}function yd(){var l=$a!==0;return $a=0,l}function hs(){var l={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tn===null?wr.memoizedState=Tn=l:Tn=Tn.next=l,Tn}function wa(){if(Se===null){var l=wr.alternate;l=l!==null?l.memoizedState:null}else l=Se.next;var c=Tn===null?wr.memoizedState:Tn.next;if(c!==null)Tn=c,Se=l;else{if(l===null)throw Error(t(310));Se=l,l={memoizedState:Se.memoizedState,baseState:Se.baseState,baseQueue:Se.baseQueue,queue:Se.queue,next:null},Tn===null?wr.memoizedState=Tn=l:Tn=Tn.next=l}return Tn}function _d(l,c){return typeof c=="function"?c(l):c}function Jp(l){var c=wa(),m=c.queue;if(m===null)throw Error(t(311));m.lastRenderedReducer=l;var _=Se,C=_.baseQueue,R=m.pending;if(R!==null){if(C!==null){var N=C.next;C.next=R.next,R.next=N}_.baseQueue=C=R,m.pending=null}if(C!==null){R=C.next,_=_.baseState;var z=N=null,V=null,me=R;do{var Pe=me.lane;if((vd&Pe)===Pe)V!==null&&(V=V.next={lane:0,action:me.action,hasEagerState:me.hasEagerState,eagerState:me.eagerState,next:null}),_=me.hasEagerState?me.eagerState:l(_,me.action);else{var Le={lane:Pe,action:me.action,hasEagerState:me.hasEagerState,eagerState:me.eagerState,next:null};V===null?(z=V=Le,N=_):V=V.next=Le,wr.lanes|=Pe,ru|=Pe}me=me.next}while(me!==null&&me!==R);V===null?N=_:V.next=z,as(_,c.memoizedState)||(bi=!0),c.memoizedState=_,c.baseState=N,c.baseQueue=V,m.lastRenderedState=_}if(l=m.interleaved,l!==null){C=l;do R=C.lane,wr.lanes|=R,ru|=R,C=C.next;while(C!==l)}else C===null&&(m.lanes=0);return[c.memoizedState,m.dispatch]}function Zp(l){var c=wa(),m=c.queue;if(m===null)throw Error(t(311));m.lastRenderedReducer=l;var _=m.dispatch,C=m.pending,R=c.memoizedState;if(C!==null){m.pending=null;var N=C=C.next;do R=l(R,N.action),N=N.next;while(N!==C);as(R,c.memoizedState)||(bi=!0),c.memoizedState=R,c.baseQueue===null&&(c.baseState=R),m.lastRenderedState=R}return[R,_]}function Ag(){}function kg(l,c){var m=wr,_=wa(),C=c(),R=!as(_.memoizedState,C);if(R&&(_.memoizedState=C,bi=!0),_=_.queue,ev(Ng.bind(null,m,_,l),[l]),_.getSnapshot!==c||R||Tn!==null&&Tn.memoizedState.tag&1){if(m.flags|=2048,Ed(9,Og.bind(null,m,_,C,c),void 0,null),Br===null)throw Error(t(349));vd&30||Ig(m,c,C)}return C}function Ig(l,c,m){l.flags|=16384,l={getSnapshot:c,value:m},c=wr.updateQueue,c===null?(c={lastEffect:null,stores:null},wr.updateQueue=c,c.stores=[l]):(m=c.stores,m===null?c.stores=[l]:m.push(l))}function Og(l,c,m,_){c.value=m,c.getSnapshot=_,Mg(c)&&Pg(l)}function Ng(l,c,m){return m(function(){Mg(c)&&Pg(l)})}function Mg(l){var c=l.getSnapshot;l=l.value;try{var m=c();return!as(l,m)}catch{return!0}}function Pg(l){var c=Jl(l,1);c!==null&&Lo(c,l,1,-1)}function Dg(l){var c=hs();return typeof l=="function"&&(l=l()),c.memoizedState=c.baseState=l,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:_d,lastRenderedState:l},c.queue=l,l=l.dispatch=jg.bind(null,wr,l),[c.memoizedState,l]}function Ed(l,c,m,_){return l={tag:l,create:c,destroy:m,deps:_,next:null},c=wr.updateQueue,c===null?(c={lastEffect:null,stores:null},wr.updateQueue=c,c.lastEffect=l.next=l):(m=c.lastEffect,m===null?c.lastEffect=l.next=l:(_=m.next,m.next=l,l.next=_,c.lastEffect=l)),l}function Lg(){return wa().memoizedState}function bd(l,c,m,_){var C=hs();wr.flags|=l,C.memoizedState=Ed(1|c,m,void 0,_===void 0?null:_)}function eu(l,c,m,_){var C=wa();_=_===void 0?null:_;var R=void 0;if(Se!==null){var N=Se.memoizedState;if(R=N.destroy,_!==null&&gd(_,N.deps)){C.memoizedState=Ed(c,m,R,_);return}}wr.flags|=l,C.memoizedState=Ed(1|c,m,R,_)}function Ug(l,c){return bd(8390656,8,l,c)}function ev(l,c){return eu(2048,8,l,c)}function Fg(l,c){return eu(4,2,l,c)}function Hg(l,c){return eu(4,4,l,c)}function V_(l,c){if(typeof c=="function")return l=l(),c(l),function(){c(null)};if(c!=null)return l=l(),c.current=l,function(){c.current=null}}function Wf(l,c,m){return m=m!=null?m.concat([l]):null,eu(4,4,V_.bind(null,c,l),m)}function $g(){}function Yf(l,c){var m=wa();c=c===void 0?null:c;var _=m.memoizedState;return _!==null&&c!==null&&gd(c,_[1])?_[0]:(m.memoizedState=[l,c],l)}function vc(l,c){var m=wa();c=c===void 0?null:c;var _=m.memoizedState;return _!==null&&c!==null&&gd(c,_[1])?_[0]:(l=l(),m.memoizedState=[l,c],l)}function Sa(l,c,m){return vd&21?(as(m,c)||(m=Af(),wr.lanes|=m,ru|=m,l.baseState=!0),c):(l.baseState&&(l.baseState=!1,bi=!0),l.memoizedState=m)}function xk(l,c){var m=Ln;Ln=m!==0&&4>m?m:4,l(!0);var _=G_.transition;G_.transition={};try{l(!1),c()}finally{Ln=m,G_.transition=_}}function fr(){return wa().memoizedState}function Bg(l,c,m){var _=Ci(l);if(m={lane:_,action:m,hasEagerState:!1,eagerState:null,next:null},Qf(l))tv(c,m);else if(m=yS(l,c,m,_),m!==null){var C=Do();Lo(m,l,_,C),RS(m,c,_)}}function jg(l,c,m){var _=Ci(l),C={lane:_,action:m,hasEagerState:!1,eagerState:null,next:null};if(Qf(l))tv(c,C);else{var R=l.alternate;if(l.lanes===0&&(R===null||R.lanes===0)&&(R=c.lastRenderedReducer,R!==null))try{var N=c.lastRenderedState,z=R(N,m);if(C.hasEagerState=!0,C.eagerState=z,as(z,N)){var V=c.interleaved;V===null?(C.next=C,$_(c)):(C.next=V.next,V.next=C),c.interleaved=C;return}}catch{}finally{}m=yS(l,c,C,_),m!==null&&(C=Do(),Lo(m,l,_,C),RS(m,c,_))}}function Qf(l){var c=l.alternate;return l===wr||c!==null&&c===wr}function tv(l,c){fl=Ht=!0;var m=l.pending;m===null?c.next=c:(c.next=m.next,m.next=c),l.pending=c}function RS(l,c,m){if(m&4194240){var _=c.lanes;_&=l.pendingLanes,m|=_,c.lanes=m,sl(l,m)}}var zg={readContext:si,useCallback:Sr,useContext:Sr,useEffect:Sr,useImperativeHandle:Sr,useInsertionEffect:Sr,useLayoutEffect:Sr,useMemo:Sr,useReducer:Sr,useRef:Sr,useState:Sr,useDebugValue:Sr,useDeferredValue:Sr,useTransition:Sr,useMutableSource:Sr,useSyncExternalStore:Sr,useId:Sr,unstable_isNewReconciler:!1},Ak={readContext:si,useCallback:function(l,c){return hs().memoizedState=[l,c===void 0?null:c],l},useContext:si,useEffect:Ug,useImperativeHandle:function(l,c,m){return m=m!=null?m.concat([l]):null,bd(4194308,4,V_.bind(null,c,l),m)},useLayoutEffect:function(l,c){return bd(4194308,4,l,c)},useInsertionEffect:function(l,c){return bd(4,2,l,c)},useMemo:function(l,c){var m=hs();return c=c===void 0?null:c,l=l(),m.memoizedState=[l,c],l},useReducer:function(l,c,m){var _=hs();return c=m!==void 0?m(c):c,_.memoizedState=_.baseState=c,l={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:l,lastRenderedState:c},_.queue=l,l=l.dispatch=Bg.bind(null,wr,l),[_.memoizedState,l]},useRef:function(l){var c=hs();return l={current:l},c.memoizedState=l},useState:Dg,useDebugValue:$g,useDeferredValue:function(l){return hs().memoizedState=l},useTransition:function(){var l=Dg(!1),c=l[0];return l=xk.bind(null,l[1]),hs().memoizedState=l,[c,l]},useMutableSource:function(){},useSyncExternalStore:function(l,c,m){var _=wr,C=hs();if(Cr){if(m===void 0)throw Error(t(407));m=m()}else{if(m=c(),Br===null)throw Error(t(349));vd&30||Ig(_,c,m)}C.memoizedState=m;var R={value:m,getSnapshot:c};return C.queue=R,Ug(Ng.bind(null,_,R,l),[l]),_.flags|=2048,Ed(9,Og.bind(null,_,R,m,c),void 0,null),m},useId:function(){var l=hs(),c=Br.identifierPrefix;if(Cr){var m=Xl,_=lo;m=(_&~(1<<32-Vo(_)-1)).toString(32)+m,c=":"+c+"R"+m,m=$a++,0<m&&(c+="H"+m.toString(32)),c+=":"}else m=md++,c=":"+c+"r"+m.toString(32)+":";return l.memoizedState=c},unstable_isNewReconciler:!1},kk={readContext:si,useCallback:Yf,useContext:si,useEffect:ev,useImperativeHandle:Wf,useInsertionEffect:Fg,useLayoutEffect:Hg,useMemo:vc,useReducer:Jp,useRef:Lg,useState:function(){return Jp(_d)},useDebugValue:$g,useDeferredValue:function(l){var c=wa();return Sa(c,Se.memoizedState,l)},useTransition:function(){var l=Jp(_d)[0],c=wa().memoizedState;return[l,c]},useMutableSource:Ag,useSyncExternalStore:kg,useId:fr,unstable_isNewReconciler:!1},K_={readContext:si,useCallback:Yf,useContext:si,useEffect:ev,useImperativeHandle:Wf,useInsertionEffect:Fg,useLayoutEffect:Hg,useMemo:vc,useReducer:Zp,useRef:Lg,useState:function(){return Zp(_d)},useDebugValue:$g,useDeferredValue:function(l){var c=wa();return Se===null?c.memoizedState=l:Sa(c,Se.memoizedState,l)},useTransition:function(){var l=Zp(_d)[0],c=wa().memoizedState;return[l,c]},useMutableSource:Ag,useSyncExternalStore:kg,useId:fr,unstable_isNewReconciler:!1};function Xf(l,c){try{var m="",_=c;do m+=At(_),_=_.return;while(_);var C=m}catch(R){C=`
95
+ Error generating stack: `+R.message+`
96
+ `+R.stack}return{value:l,source:c,stack:C,digest:null}}function nv(l,c,m){return{value:l,source:null,stack:m??null,digest:c??null}}function qg(l,c){try{console.error(c.value)}catch(m){setTimeout(function(){throw m})}}var Ik=typeof WeakMap=="function"?WeakMap:Map;function xS(l,c,m){m=Zl(-1,m),m.tag=3,m.payload={element:null};var _=c.value;return m.callback=function(){Xg||(Xg=!0,Rd=_),qg(l,c)},m}function rv(l,c,m){m=Zl(-1,m),m.tag=3;var _=l.type.getDerivedStateFromError;if(typeof _=="function"){var C=c.value;m.payload=function(){return _(C)},m.callback=function(){qg(l,c)}}var R=l.stateNode;return R!==null&&typeof R.componentDidCatch=="function"&&(m.callback=function(){qg(l,c),typeof _!="function"&&(vl===null?vl=new Set([this]):vl.add(this));var N=c.stack;this.componentDidCatch(c.value,{componentStack:N!==null?N:""})}),m}function AS(l,c,m){var _=l.pingCache;if(_===null){_=l.pingCache=new Ik;var C=new Set;_.set(c,C)}else C=_.get(c),C===void 0&&(C=new Set,_.set(c,C));C.has(m)||(C.add(m),l=Uk.bind(null,l,c,m),c.then(l,l))}function W_(l){do{var c;if((c=l.tag===13)&&(c=l.memoizedState,c=c!==null?c.dehydrated!==null:!0),c)return l;l=l.return}while(l!==null);return null}function Y_(l,c,m,_,C){return l.mode&1?(l.flags|=65536,l.lanes=C,l):(l===c?l.flags|=65536:(l.flags|=128,m.flags|=131072,m.flags&=-52805,m.tag===1&&(m.alternate===null?m.tag=17:(c=Zl(-1,1),c.tag=2,dc(m,c,1))),m.lanes|=1),l)}var Ok=U.ReactCurrentOwner,bi=!1;function Di(l,c,m,_){c.child=l===null?TS(c,null,m,_):Vf(c,l.child,m,_)}function mc(l,c,m,_,C){m=m.render;var R=c.ref;return Je(c,C),_=pc(l,c,m,_,R,C),m=yd(),l!==null&&!bi?(c.updateQueue=l.updateQueue,c.flags&=-2053,l.lanes&=~C,co(l,c,C)):(Cr&&m&&mg(c),c.flags|=1,Di(l,c,_,C),c.child)}function Gg(l,c,m,_,C){if(l===null){var R=m.type;return typeof R=="function"&&!pE(R)&&R.defaultProps===void 0&&m.compare===null&&m.defaultProps===void 0?(c.tag=15,c.type=R,Ta(l,c,R,_,C)):(l=ry(m.type,null,_,c,c.mode,C),l.ref=c.ref,l.return=c,c.child=l)}if(R=l.child,!(l.lanes&C)){var N=R.memoizedProps;if(m=m.compare,m=m!==null?m:Fp,m(N,_)&&l.ref===c.ref)return co(l,c,C)}return c.flags|=1,l=Ec(R,_),l.ref=c.ref,l.return=c,c.child=l}function Ta(l,c,m,_,C){if(l!==null){var R=l.memoizedProps;if(Fp(R,_)&&l.ref===c.ref)if(bi=!1,c.pendingProps=_=R,(l.lanes&C)!==0)l.flags&131072&&(bi=!0);else return c.lanes=l.lanes,co(l,c,C)}return Jf(l,c,m,_,C)}function Cd(l,c,m){var _=c.pendingProps,C=_.children,R=l!==null?l.memoizedState:null;if(_.mode==="hidden")if(!(c.mode&1))c.memoizedState={baseLanes:0,cachePool:null,transitions:null},Gn(ih,Ba),Ba|=m;else{if(!(m&1073741824))return l=R!==null?R.baseLanes|m:m,c.lanes=c.childLanes=1073741824,c.memoizedState={baseLanes:l,cachePool:null,transitions:null},c.updateQueue=null,Gn(ih,Ba),Ba|=l,null;c.memoizedState={baseLanes:0,cachePool:null,transitions:null},_=R!==null?R.baseLanes:m,Gn(ih,Ba),Ba|=_}else R!==null?(_=R.baseLanes|m,c.memoizedState=null):_=m,Gn(ih,Ba),Ba|=_;return Di(l,c,C,m),c.child}function rn(l,c){var m=c.ref;(l===null&&m!==null||l!==null&&l.ref!==m)&&(c.flags|=512,c.flags|=2097152)}function Jf(l,c,m,_,C){var R=Or(m)?ya:Gt.current;return R=ls(c,R),Je(c,C),m=pc(l,c,m,_,R,C),_=yd(),l!==null&&!bi?(c.updateQueue=l.updateQueue,c.flags&=-2053,l.lanes&=~C,co(l,c,C)):(Cr&&_&&mg(c),c.flags|=1,Di(l,c,m,C),c.child)}function Q_(l,c,m,_,C){if(Or(m)){var R=!0;vg(c)}else R=!1;if(Je(c,C),c.stateNode===null)No(l,c),bS(c,m,_),Sg(c,m,_,C),_=!0;else if(l===null){var N=c.stateNode,z=c.memoizedProps;N.props=z;var V=N.context,me=m.contextType;typeof me=="object"&&me!==null?me=si(me):(me=Or(m)?ya:Gt.current,me=ls(c,me));var Pe=m.getDerivedStateFromProps,Le=typeof Pe=="function"||typeof N.getSnapshotBeforeUpdate=="function";Le||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(z!==_||V!==me)&&CS(c,N,_,me),cc=!1;var Ne=c.memoizedState;N.state=Ne,fc(c,_,N,C),V=c.memoizedState,z!==_||Ne!==V||Zr.current||cc?(typeof Pe=="function"&&(z_(c,m,Pe,_),V=c.memoizedState),(z=cc||ES(c,m,z,_,Ne,V,me))?(Le||typeof N.UNSAFE_componentWillMount!="function"&&typeof N.componentWillMount!="function"||(typeof N.componentWillMount=="function"&&N.componentWillMount(),typeof N.UNSAFE_componentWillMount=="function"&&N.UNSAFE_componentWillMount()),typeof N.componentDidMount=="function"&&(c.flags|=4194308)):(typeof N.componentDidMount=="function"&&(c.flags|=4194308),c.memoizedProps=_,c.memoizedState=V),N.props=_,N.state=V,N.context=me,_=z):(typeof N.componentDidMount=="function"&&(c.flags|=4194308),_=!1)}else{N=c.stateNode,Pi(l,c),z=c.memoizedProps,me=c.type===c.elementType?z:Ha(c.type,z),N.props=me,Le=c.pendingProps,Ne=N.context,V=m.contextType,typeof V=="object"&&V!==null?V=si(V):(V=Or(m)?ya:Gt.current,V=ls(c,V));var st=m.getDerivedStateFromProps;(Pe=typeof st=="function"||typeof N.getSnapshotBeforeUpdate=="function")||typeof N.UNSAFE_componentWillReceiveProps!="function"&&typeof N.componentWillReceiveProps!="function"||(z!==Le||Ne!==V)&&CS(c,N,_,V),cc=!1,Ne=c.memoizedState,N.state=Ne,fc(c,_,N,C);var ht=c.memoizedState;z!==Le||Ne!==ht||Zr.current||cc?(typeof st=="function"&&(z_(c,m,st,_),ht=c.memoizedState),(me=cc||ES(c,m,me,_,Ne,ht,V)||!1)?(Pe||typeof N.UNSAFE_componentWillUpdate!="function"&&typeof N.componentWillUpdate!="function"||(typeof N.componentWillUpdate=="function"&&N.componentWillUpdate(_,ht,V),typeof N.UNSAFE_componentWillUpdate=="function"&&N.UNSAFE_componentWillUpdate(_,ht,V)),typeof N.componentDidUpdate=="function"&&(c.flags|=4),typeof N.getSnapshotBeforeUpdate=="function"&&(c.flags|=1024)):(typeof N.componentDidUpdate!="function"||z===l.memoizedProps&&Ne===l.memoizedState||(c.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||z===l.memoizedProps&&Ne===l.memoizedState||(c.flags|=1024),c.memoizedProps=_,c.memoizedState=ht),N.props=_,N.state=ht,N.context=V,_=me):(typeof N.componentDidUpdate!="function"||z===l.memoizedProps&&Ne===l.memoizedState||(c.flags|=4),typeof N.getSnapshotBeforeUpdate!="function"||z===l.memoizedProps&&Ne===l.memoizedState||(c.flags|=1024),_=!1)}return kS(l,c,m,_,R,C)}function kS(l,c,m,_,C,R){rn(l,c);var N=(c.flags&128)!==0;if(!_&&!N)return C&&pS(c,m,!1),co(l,c,R);_=c.stateNode,Ok.current=c;var z=N&&typeof m.getDerivedStateFromError!="function"?null:_.render();return c.flags|=1,l!==null&&N?(c.child=Vf(c,l.child,null,R),c.child=Vf(c,null,z,R)):Di(l,c,z,R),c.memoizedState=_.state,C&&pS(c,m,!0),c.child}function IS(l){var c=l.stateNode;c.pendingContext?ac(l,c.pendingContext,c.pendingContext!==c.context):c.context&&ac(l,c.context,!1),q_(l,c.containerInfo)}function Vg(l,c,m,_,C){return Hr(),U_(C),c.flags|=256,Di(l,c,m,_),c.child}var wd={dehydrated:null,treeContext:null,retryLane:0};function X_(l){return{baseLanes:l,cachePool:null,transitions:null}}function J_(l,c,m){var _=c.pendingProps,C=Ft.current,R=!1,N=(c.flags&128)!==0,z;if((z=N)||(z=l!==null&&l.memoizedState===null?!1:(C&2)!==0),z?(R=!0,c.flags&=-129):(l===null||l.memoizedState!==null)&&(C|=1),Gn(Ft,C&1),l===null)return yg(c),l=c.memoizedState,l!==null&&(l=l.dehydrated,l!==null)?(c.mode&1?l.data==="$!"?c.lanes=8:c.lanes=1073741824:c.lanes=1,null):(N=_.children,l=_.fallback,R?(_=c.mode,R=c.child,N={mode:"hidden",children:N},!(_&1)&&R!==null?(R.childLanes=0,R.pendingProps=N):R=hv(N,_,0,null),l=Od(l,_,m,null),R.return=c,l.return=c,R.sibling=l,c.child=R,c.child.memoizedState=X_(m),c.memoizedState=wd,l):Z_(c,N));if(C=l.memoizedState,C!==null&&(z=C.dehydrated,z!==null))return Nk(l,c,N,_,z,C,m);if(R){R=_.fallback,N=c.mode,C=l.child,z=C.sibling;var V={mode:"hidden",children:_.children};return!(N&1)&&c.child!==C?(_=c.child,_.childLanes=0,_.pendingProps=V,c.deletions=null):(_=Ec(C,V),_.subtreeFlags=C.subtreeFlags&14680064),z!==null?R=Ec(z,R):(R=Od(R,N,m,null),R.flags|=2),R.return=c,_.return=c,_.sibling=R,c.child=_,_=R,R=c.child,N=l.child.memoizedState,N=N===null?X_(m):{baseLanes:N.baseLanes|m,cachePool:null,transitions:N.transitions},R.memoizedState=N,R.childLanes=l.childLanes&~m,c.memoizedState=wd,_}return R=l.child,l=R.sibling,_=Ec(R,{mode:"visible",children:_.children}),!(c.mode&1)&&(_.lanes=m),_.return=c,_.sibling=null,l!==null&&(m=c.deletions,m===null?(c.deletions=[l],c.flags|=16):m.push(l)),c.child=_,c.memoizedState=null,_}function Z_(l,c){return c=hv({mode:"visible",children:c},l.mode,0,null),c.return=l,l.child=c}function Zf(l,c,m,_){return _!==null&&U_(_),Vf(c,l.child,null,m),l=Z_(c,c.pendingProps.children),l.flags|=2,c.memoizedState=null,l}function Nk(l,c,m,_,C,R,N){if(m)return c.flags&256?(c.flags&=-257,_=nv(Error(t(422))),Zf(l,c,N,_)):c.memoizedState!==null?(c.child=l.child,c.flags|=128,null):(R=_.fallback,C=c.mode,_=hv({mode:"visible",children:_.children},C,0,null),R=Od(R,C,N,null),R.flags|=2,_.return=c,R.return=c,_.sibling=R,c.child=_,c.mode&1&&Vf(c,l.child,null,N),c.child.memoizedState=X_(N),c.memoizedState=wd,R);if(!(c.mode&1))return Zf(l,c,N,null);if(C.data==="$!"){if(_=C.nextSibling&&C.nextSibling.dataset,_)var z=_.dgst;return _=z,R=Error(t(419)),_=nv(R,_,void 0),Zf(l,c,N,_)}if(z=(N&l.childLanes)!==0,bi||z){if(_=Br,_!==null){switch(N&-N){case 4:C=2;break;case 16:C=8;break;case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:C=32;break;case 536870912:C=268435456;break;default:C=0}C=C&(_.suspendedLanes|N)?0:C,C!==0&&C!==R.retryLane&&(R.retryLane=C,Jl(l,C),Lo(_,l,C,-1))}return dE(),_=nv(Error(t(421))),Zf(l,c,N,_)}return C.data==="$?"?(c.flags|=128,c.child=l.child,c=Fk.bind(null,l),C._reactRetry=c,null):(l=R.treeContext,Ca=$s(C.nextSibling),Fa=c,Cr=!0,ds=null,l!==null&&(ba[Oo++]=lo,ba[Oo++]=Xl,ba[Oo++]=cs,lo=l.id,Xl=l.overflow,cs=c),c=Z_(c,_.children),c.flags|=4096,c)}function eE(l,c,m){l.lanes|=c;var _=l.alternate;_!==null&&(_.lanes|=c),Ki(l.return,c,m)}function Kg(l,c,m,_,C){var R=l.memoizedState;R===null?l.memoizedState={isBackwards:c,rendering:null,renderingStartTime:0,last:_,tail:m,tailMode:C}:(R.isBackwards=c,R.rendering=null,R.renderingStartTime=0,R.last=_,R.tail=m,R.tailMode=C)}function tE(l,c,m){var _=c.pendingProps,C=_.revealOrder,R=_.tail;if(Di(l,c,_.children,m),_=Ft.current,_&2)_=_&1|2,c.flags|=128;else{if(l!==null&&l.flags&128)e:for(l=c.child;l!==null;){if(l.tag===13)l.memoizedState!==null&&eE(l,m,c);else if(l.tag===19)eE(l,m,c);else if(l.child!==null){l.child.return=l,l=l.child;continue}if(l===c)break e;for(;l.sibling===null;){if(l.return===null||l.return===c)break e;l=l.return}l.sibling.return=l.return,l=l.sibling}_&=1}if(Gn(Ft,_),!(c.mode&1))c.memoizedState=null;else switch(C){case"forwards":for(m=c.child,C=null;m!==null;)l=m.alternate,l!==null&&$r(l)===null&&(C=m),m=m.sibling;m=C,m===null?(C=c.child,c.child=null):(C=m.sibling,m.sibling=null),Kg(c,!1,C,m,R);break;case"backwards":for(m=null,C=c.child,c.child=null;C!==null;){if(l=C.alternate,l!==null&&$r(l)===null){c.child=C;break}l=C.sibling,C.sibling=m,m=C,C=l}Kg(c,!0,m,null,R);break;case"together":Kg(c,!1,null,null,void 0);break;default:c.memoizedState=null}return c.child}function No(l,c){!(c.mode&1)&&l!==null&&(l.alternate=null,c.alternate=null,c.flags|=2)}function co(l,c,m){if(l!==null&&(c.dependencies=l.dependencies),ru|=c.lanes,!(m&c.childLanes))return null;if(l!==null&&c.child!==l.child)throw Error(t(153));if(c.child!==null){for(l=c.child,m=Ec(l,l.pendingProps),c.child=m,m.return=c;l.sibling!==null;)l=l.sibling,m=m.sibling=Ec(l,l.pendingProps),m.return=c;m.sibling=null}return c.child}function tu(l,c,m){switch(c.tag){case 3:IS(c),Hr();break;case 5:Pt(c);break;case 1:Or(c.type)&&vg(c);break;case 4:q_(c,c.stateNode.containerInfo);break;case 10:var _=c.type._context,C=c.memoizedProps.value;Gn(dl,_._currentValue),_._currentValue=C;break;case 13:if(_=c.memoizedState,_!==null)return _.dehydrated!==null?(Gn(Ft,Ft.current&1),c.flags|=128,null):m&c.child.childLanes?J_(l,c,m):(Gn(Ft,Ft.current&1),l=co(l,c,m),l!==null?l.sibling:null);Gn(Ft,Ft.current&1);break;case 19:if(_=(m&c.childLanes)!==0,l.flags&128){if(_)return tE(l,c,m);c.flags|=128}if(C=c.memoizedState,C!==null&&(C.rendering=null,C.tail=null,C.lastEffect=null),Gn(Ft,Ft.current),_)break;return null;case 22:case 23:return c.lanes=0,Cd(l,c,m)}return co(l,c,m)}var iv,Sd,ps,Li;iv=function(l,c){for(var m=c.child;m!==null;){if(m.tag===5||m.tag===6)l.appendChild(m.stateNode);else if(m.tag!==4&&m.child!==null){m.child.return=m,m=m.child;continue}if(m===c)break;for(;m.sibling===null;){if(m.return===null||m.return===c)return;m=m.return}m.sibling.return=m.return,m=m.sibling}},Sd=function(){},ps=function(l,c,m,_){var C=l.memoizedProps;if(C!==_){l=c.stateNode,pd(Bs.current);var R=null;switch(m){case"input":C=yr(l,C),_=yr(l,_),R=[];break;case"select":C=B({},C,{value:void 0}),_=B({},_,{value:void 0}),R=[];break;case"textarea":C=io(l,C),_=io(l,_),R=[];break;default:typeof C.onClick!="function"&&typeof _.onClick=="function"&&(l.onclick=pg)}Re(m,_);var N;m=null;for(me in C)if(!_.hasOwnProperty(me)&&C.hasOwnProperty(me)&&C[me]!=null)if(me==="style"){var z=C[me];for(N in z)z.hasOwnProperty(N)&&(m||(m={}),m[N]="")}else me!=="dangerouslySetInnerHTML"&&me!=="children"&&me!=="suppressContentEditableWarning"&&me!=="suppressHydrationWarning"&&me!=="autoFocus"&&(o.hasOwnProperty(me)?R||(R=[]):(R=R||[]).push(me,null));for(me in _){var V=_[me];if(z=C!=null?C[me]:void 0,_.hasOwnProperty(me)&&V!==z&&(V!=null||z!=null))if(me==="style")if(z){for(N in z)!z.hasOwnProperty(N)||V&&V.hasOwnProperty(N)||(m||(m={}),m[N]="");for(N in V)V.hasOwnProperty(N)&&z[N]!==V[N]&&(m||(m={}),m[N]=V[N])}else m||(R||(R=[]),R.push(me,m)),m=V;else me==="dangerouslySetInnerHTML"?(V=V?V.__html:void 0,z=z?z.__html:void 0,V!=null&&z!==V&&(R=R||[]).push(me,V)):me==="children"?typeof V!="string"&&typeof V!="number"||(R=R||[]).push(me,""+V):me!=="suppressContentEditableWarning"&&me!=="suppressHydrationWarning"&&(o.hasOwnProperty(me)?(V!=null&&me==="onScroll"&&dr("scroll",l),R||z===V||(R=[])):(R=R||[]).push(me,V))}m&&(R=R||[]).push("style",m);var me=R;(c.updateQueue=me)&&(c.flags|=4)}},Li=function(l,c,m,_){m!==_&&(c.flags|=4)};function ov(l,c){if(!Cr)switch(l.tailMode){case"hidden":c=l.tail;for(var m=null;c!==null;)c.alternate!==null&&(m=c),c=c.sibling;m===null?l.tail=null:m.sibling=null;break;case"collapsed":m=l.tail;for(var _=null;m!==null;)m.alternate!==null&&(_=m),m=m.sibling;_===null?c||l.tail===null?l.tail=null:l.tail.sibling=null:_.sibling=null}}function Mo(l){var c=l.alternate!==null&&l.alternate.child===l.child,m=0,_=0;if(c)for(var C=l.child;C!==null;)m|=C.lanes|C.childLanes,_|=C.subtreeFlags&14680064,_|=C.flags&14680064,C.return=l,C=C.sibling;else for(C=l.child;C!==null;)m|=C.lanes|C.childLanes,_|=C.subtreeFlags,_|=C.flags,C.return=l,C=C.sibling;return l.subtreeFlags|=_,l.childLanes=m,c}function Mk(l,c,m){var _=c.pendingProps;switch(D_(c),c.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Mo(c),null;case 1:return Or(c.type)&&us(),Mo(c),null;case 3:return _=c.stateNode,hc(),$n(Zr),$n(Gt),Rg(),_.pendingContext&&(_.context=_.pendingContext,_.pendingContext=null),(l===null||l.child===null)&&(_g(c)?c.flags|=4:l===null||l.memoizedState.isDehydrated&&!(c.flags&256)||(c.flags|=1024,ds!==null&&(fv(ds),ds=null))),Sd(l,c),Mo(c),null;case 5:hn(c);var C=pd(Kf.current);if(m=c.type,l!==null&&c.stateNode!=null)ps(l,c,m,_,C),l.ref!==c.ref&&(c.flags|=512,c.flags|=2097152);else{if(!_){if(c.stateNode===null)throw Error(t(166));return Mo(c),null}if(l=pd(Bs.current),_g(c)){_=c.stateNode,m=c.type;var R=c.memoizedProps;switch(_[ul]=c,_[dd]=R,l=(c.mode&1)!==0,m){case"dialog":dr("cancel",_),dr("close",_);break;case"iframe":case"object":case"embed":dr("load",_);break;case"video":case"audio":for(C=0;C<jp.length;C++)dr(jp[C],_);break;case"source":dr("error",_);break;case"img":case"image":case"link":dr("error",_),dr("load",_);break;case"details":dr("toggle",_);break;case"input":or(_,R),dr("invalid",_);break;case"select":_._wrapperState={wasMultiple:!!R.multiple},dr("invalid",_);break;case"textarea":Ii(_,R),dr("invalid",_)}Re(m,R),C=null;for(var N in R)if(R.hasOwnProperty(N)){var z=R[N];N==="children"?typeof z=="string"?_.textContent!==z&&(R.suppressHydrationWarning!==!0&&hg(_.textContent,z,l),C=["children",z]):typeof z=="number"&&_.textContent!==""+z&&(R.suppressHydrationWarning!==!0&&hg(_.textContent,z,l),C=["children",""+z]):o.hasOwnProperty(N)&&z!=null&&N==="onScroll"&&dr("scroll",_)}switch(m){case"input":jn(_),Ai(_,R,!0);break;case"textarea":jn(_),gi(_);break;case"select":case"option":break;default:typeof R.onClick=="function"&&(_.onclick=pg)}_=C,c.updateQueue=_,_!==null&&(c.flags|=4)}else{N=C.nodeType===9?C:C.ownerDocument,l==="http://www.w3.org/1999/xhtml"&&(l=Oi(m)),l==="http://www.w3.org/1999/xhtml"?m==="script"?(l=N.createElement("div"),l.innerHTML="<script><\/script>",l=l.removeChild(l.firstChild)):typeof _.is=="string"?l=N.createElement(m,{is:_.is}):(l=N.createElement(m),m==="select"&&(N=l,_.multiple?N.multiple=!0:_.size&&(N.size=_.size))):l=N.createElementNS(l,m),l[ul]=c,l[dd]=_,iv(l,c,!1,!1),c.stateNode=l;e:{switch(N=Ge(m,_),m){case"dialog":dr("cancel",l),dr("close",l),C=_;break;case"iframe":case"object":case"embed":dr("load",l),C=_;break;case"video":case"audio":for(C=0;C<jp.length;C++)dr(jp[C],l);C=_;break;case"source":dr("error",l),C=_;break;case"img":case"image":case"link":dr("error",l),dr("load",l),C=_;break;case"details":dr("toggle",l),C=_;break;case"input":or(l,_),C=yr(l,_),dr("invalid",l);break;case"option":C=_;break;case"select":l._wrapperState={wasMultiple:!!_.multiple},C=B({},_,{value:void 0}),dr("invalid",l);break;case"textarea":Ii(l,_),C=io(l,_),dr("invalid",l);break;default:C=_}Re(m,C),z=C;for(R in z)if(z.hasOwnProperty(R)){var V=z[R];R==="style"?re(l,V):R==="dangerouslySetInnerHTML"?(V=V?V.__html:void 0,V!=null&&rs(l,V)):R==="children"?typeof V=="string"?(m!=="textarea"||V!=="")&&ko(l,V):typeof V=="number"&&ko(l,""+V):R!=="suppressContentEditableWarning"&&R!=="suppressHydrationWarning"&&R!=="autoFocus"&&(o.hasOwnProperty(R)?V!=null&&R==="onScroll"&&dr("scroll",l):V!=null&&j(l,R,V,N))}switch(m){case"input":jn(l),Ai(l,_,!1);break;case"textarea":jn(l),gi(l);break;case"option":_.value!=null&&l.setAttribute("value",""+_t(_.value));break;case"select":l.multiple=!!_.multiple,R=_.value,R!=null?ki(l,!!_.multiple,R,!1):_.defaultValue!=null&&ki(l,!!_.multiple,_.defaultValue,!0);break;default:typeof C.onClick=="function"&&(l.onclick=pg)}switch(m){case"button":case"input":case"select":case"textarea":_=!!_.autoFocus;break e;case"img":_=!0;break e;default:_=!1}}_&&(c.flags|=4)}c.ref!==null&&(c.flags|=512,c.flags|=2097152)}return Mo(c),null;case 6:if(l&&c.stateNode!=null)Li(l,c,l.memoizedProps,_);else{if(typeof _!="string"&&c.stateNode===null)throw Error(t(166));if(m=pd(Kf.current),pd(Bs.current),_g(c)){if(_=c.stateNode,m=c.memoizedProps,_[ul]=c,(R=_.nodeValue!==m)&&(l=Fa,l!==null))switch(l.tag){case 3:hg(_.nodeValue,m,(l.mode&1)!==0);break;case 5:l.memoizedProps.suppressHydrationWarning!==!0&&hg(_.nodeValue,m,(l.mode&1)!==0)}R&&(c.flags|=4)}else _=(m.nodeType===9?m:m.ownerDocument).createTextNode(_),_[ul]=c,c.stateNode=_}return Mo(c),null;case 13:if($n(Ft),_=c.memoizedState,l===null||l.memoizedState!==null&&l.memoizedState.dehydrated!==null){if(Cr&&Ca!==null&&c.mode&1&&!(c.flags&128))gS(),Hr(),c.flags|=98560,R=!1;else if(R=_g(c),_!==null&&_.dehydrated!==null){if(l===null){if(!R)throw Error(t(318));if(R=c.memoizedState,R=R!==null?R.dehydrated:null,!R)throw Error(t(317));R[ul]=c}else Hr(),!(c.flags&128)&&(c.memoizedState=null),c.flags|=4;Mo(c),R=!1}else ds!==null&&(fv(ds),ds=null),R=!0;if(!R)return c.flags&65536?c:null}return c.flags&128?(c.lanes=m,c):(_=_!==null,_!==(l!==null&&l.memoizedState!==null)&&_&&(c.child.flags|=8192,c.mode&1&&(l===null||Ft.current&1?Fi===0&&(Fi=3):dE())),c.updateQueue!==null&&(c.flags|=4),Mo(c),null);case 4:return hc(),Sd(l,c),l===null&&jf(c.stateNode.containerInfo),Mo(c),null;case 10:return uc(c.type._context),Mo(c),null;case 17:return Or(c.type)&&us(),Mo(c),null;case 19:if($n(Ft),R=c.memoizedState,R===null)return Mo(c),null;if(_=(c.flags&128)!==0,N=R.rendering,N===null)if(_)ov(R,!1);else{if(Fi!==0||l!==null&&l.flags&128)for(l=c.child;l!==null;){if(N=$r(l),N!==null){for(c.flags|=128,ov(R,!1),_=N.updateQueue,_!==null&&(c.updateQueue=_,c.flags|=4),c.subtreeFlags=0,_=m,m=c.child;m!==null;)R=m,l=_,R.flags&=14680066,N=R.alternate,N===null?(R.childLanes=0,R.lanes=l,R.child=null,R.subtreeFlags=0,R.memoizedProps=null,R.memoizedState=null,R.updateQueue=null,R.dependencies=null,R.stateNode=null):(R.childLanes=N.childLanes,R.lanes=N.lanes,R.child=N.child,R.subtreeFlags=0,R.deletions=null,R.memoizedProps=N.memoizedProps,R.memoizedState=N.memoizedState,R.updateQueue=N.updateQueue,R.type=N.type,l=N.dependencies,R.dependencies=l===null?null:{lanes:l.lanes,firstContext:l.firstContext}),m=m.sibling;return Gn(Ft,Ft.current&1|2),c.child}l=l.sibling}R.tail!==null&&An()>ah&&(c.flags|=128,_=!0,ov(R,!1),c.lanes=4194304)}else{if(!_)if(l=$r(N),l!==null){if(c.flags|=128,_=!0,m=l.updateQueue,m!==null&&(c.updateQueue=m,c.flags|=4),ov(R,!0),R.tail===null&&R.tailMode==="hidden"&&!N.alternate&&!Cr)return Mo(c),null}else 2*An()-R.renderingStartTime>ah&&m!==1073741824&&(c.flags|=128,_=!0,ov(R,!1),c.lanes=4194304);R.isBackwards?(N.sibling=c.child,c.child=N):(m=R.last,m!==null?m.sibling=N:c.child=N,R.last=N)}return R.tail!==null?(c=R.tail,R.rendering=c,R.tail=c.sibling,R.renderingStartTime=An(),c.sibling=null,m=Ft.current,Gn(Ft,_?m&1|2:m&1),c):(Mo(c),null);case 22:case 23:return cE(),_=c.memoizedState!==null,l!==null&&l.memoizedState!==null!==_&&(c.flags|=8192),_&&c.mode&1?Ba&1073741824&&(Mo(c),c.subtreeFlags&6&&(c.flags|=8192)):Mo(c),null;case 24:return null;case 25:return null}throw Error(t(156,c.tag))}function nE(l,c){switch(D_(c),c.tag){case 1:return Or(c.type)&&us(),l=c.flags,l&65536?(c.flags=l&-65537|128,c):null;case 3:return hc(),$n(Zr),$n(Gt),Rg(),l=c.flags,l&65536&&!(l&128)?(c.flags=l&-65537|128,c):null;case 5:return hn(c),null;case 13:if($n(Ft),l=c.memoizedState,l!==null&&l.dehydrated!==null){if(c.alternate===null)throw Error(t(340));Hr()}return l=c.flags,l&65536?(c.flags=l&-65537|128,c):null;case 19:return $n(Ft),null;case 4:return hc(),null;case 10:return uc(c.type._context),null;case 22:case 23:return cE(),null;case 24:return null;default:return null}}var av=!1,Ui=!1,OS=typeof WeakSet=="function"?WeakSet:Set,ft=null;function eh(l,c){var m=l.ref;if(m!==null)if(typeof m=="function")try{m(null)}catch(_){ti(l,c,_)}else m.current=null}function sv(l,c,m){try{m()}catch(_){ti(l,c,_)}}var NS=!1;function MS(l,c){if(x_=os,l=lg(),Kl(l)){if("selectionStart"in l)var m={start:l.selectionStart,end:l.selectionEnd};else e:{m=(m=l.ownerDocument)&&m.defaultView||window;var _=m.getSelection&&m.getSelection();if(_&&_.rangeCount!==0){m=_.anchorNode;var C=_.anchorOffset,R=_.focusNode;_=_.focusOffset;try{m.nodeType,R.nodeType}catch{m=null;break e}var N=0,z=-1,V=-1,me=0,Pe=0,Le=l,Ne=null;t:for(;;){for(var st;Le!==m||C!==0&&Le.nodeType!==3||(z=N+C),Le!==R||_!==0&&Le.nodeType!==3||(V=N+_),Le.nodeType===3&&(N+=Le.nodeValue.length),(st=Le.firstChild)!==null;)Ne=Le,Le=st;for(;;){if(Le===l)break t;if(Ne===m&&++me===C&&(z=N),Ne===R&&++Pe===_&&(V=N),(st=Le.nextSibling)!==null)break;Le=Ne,Ne=Le.parentNode}Le=st}m=z===-1||V===-1?null:{start:z,end:V}}else m=null}m=m||{start:0,end:0}}else m=null;for(ud={focusedElem:l,selectionRange:m},os=!1,ft=c;ft!==null;)if(c=ft,l=c.child,(c.subtreeFlags&1028)!==0&&l!==null)l.return=c,ft=l;else for(;ft!==null;){c=ft;try{var ht=c.alternate;if(c.flags&1024)switch(c.tag){case 0:case 11:case 15:break;case 1:if(ht!==null){var yt=ht.memoizedProps,li=ht.memoizedState,ie=c.stateNode,J=ie.getSnapshotBeforeUpdate(c.elementType===c.type?yt:Ha(c.type,yt),li);ie.__reactInternalSnapshotBeforeUpdate=J}break;case 3:var ue=c.stateNode.containerInfo;ue.nodeType===1?ue.textContent="":ue.nodeType===9&&ue.documentElement&&ue.removeChild(ue.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(t(163))}}catch(ze){ti(c,c.return,ze)}if(l=c.sibling,l!==null){l.return=c.return,ft=l;break}ft=c.return}return ht=NS,NS=!1,ht}function lv(l,c,m){var _=c.updateQueue;if(_=_!==null?_.lastEffect:null,_!==null){var C=_=_.next;do{if((C.tag&l)===l){var R=C.destroy;C.destroy=void 0,R!==void 0&&sv(c,m,R)}C=C.next}while(C!==_)}}function uv(l,c){if(c=c.updateQueue,c=c!==null?c.lastEffect:null,c!==null){var m=c=c.next;do{if((m.tag&l)===l){var _=m.create;m.destroy=_()}m=m.next}while(m!==c)}}function rE(l){var c=l.ref;if(c!==null){var m=l.stateNode;switch(l.tag){case 5:l=m;break;default:l=m}typeof c=="function"?c(l):c.current=l}}function iE(l){var c=l.alternate;c!==null&&(l.alternate=null,iE(c)),l.child=null,l.deletions=null,l.sibling=null,l.tag===5&&(c=l.stateNode,c!==null&&(delete c[ul],delete c[dd],delete c[I_],delete c[Rk],delete c[O_])),l.stateNode=null,l.return=null,l.dependencies=null,l.memoizedProps=null,l.memoizedState=null,l.pendingProps=null,l.stateNode=null,l.updateQueue=null}function PS(l){return l.tag===5||l.tag===3||l.tag===4}function Wg(l){e:for(;;){for(;l.sibling===null;){if(l.return===null||PS(l.return))return null;l=l.return}for(l.sibling.return=l.return,l=l.sibling;l.tag!==5&&l.tag!==6&&l.tag!==18;){if(l.flags&2||l.child===null||l.tag===4)continue e;l.child.return=l,l=l.child}if(!(l.flags&2))return l.stateNode}}function th(l,c,m){var _=l.tag;if(_===5||_===6)l=l.stateNode,c?m.nodeType===8?m.parentNode.insertBefore(l,c):m.insertBefore(l,c):(m.nodeType===8?(c=m.parentNode,c.insertBefore(l,m)):(c=m,c.appendChild(l)),m=m._reactRootContainer,m!=null||c.onclick!==null||(c.onclick=pg));else if(_!==4&&(l=l.child,l!==null))for(th(l,c,m),l=l.sibling;l!==null;)th(l,c,m),l=l.sibling}function hl(l,c,m){var _=l.tag;if(_===5||_===6)l=l.stateNode,c?m.insertBefore(l,c):m.appendChild(l);else if(_!==4&&(l=l.child,l!==null))for(hl(l,c,m),l=l.sibling;l!==null;)hl(l,c,m),l=l.sibling}var Nr=null,Wi=!1;function vs(l,c,m){for(m=m.child;m!==null;)nh(l,c,m),m=m.sibling}function nh(l,c,m){if(pa&&typeof pa.onCommitFiberUnmount=="function")try{pa.onCommitFiberUnmount(Gu,m)}catch{}switch(m.tag){case 5:Ui||eh(m,c);case 6:var _=Nr,C=Wi;Nr=null,vs(l,c,m),Nr=_,Wi=C,Nr!==null&&(Wi?(l=Nr,m=m.stateNode,l.nodeType===8?l.parentNode.removeChild(m):l.removeChild(m)):Nr.removeChild(m.stateNode));break;case 18:Nr!==null&&(Wi?(l=Nr,m=m.stateNode,l.nodeType===8?rc(l.parentNode,m):l.nodeType===1&&rc(l,m),Ju(l)):rc(Nr,m.stateNode));break;case 4:_=Nr,C=Wi,Nr=m.stateNode.containerInfo,Wi=!0,vs(l,c,m),Nr=_,Wi=C;break;case 0:case 11:case 14:case 15:if(!Ui&&(_=m.updateQueue,_!==null&&(_=_.lastEffect,_!==null))){C=_=_.next;do{var R=C,N=R.destroy;R=R.tag,N!==void 0&&(R&2||R&4)&&sv(m,c,N),C=C.next}while(C!==_)}vs(l,c,m);break;case 1:if(!Ui&&(eh(m,c),_=m.stateNode,typeof _.componentWillUnmount=="function"))try{_.props=m.memoizedProps,_.state=m.memoizedState,_.componentWillUnmount()}catch(z){ti(m,c,z)}vs(l,c,m);break;case 21:vs(l,c,m);break;case 22:m.mode&1?(Ui=(_=Ui)||m.memoizedState!==null,vs(l,c,m),Ui=_):vs(l,c,m);break;default:vs(l,c,m)}}function nu(l){var c=l.updateQueue;if(c!==null){l.updateQueue=null;var m=l.stateNode;m===null&&(m=l.stateNode=new OS),c.forEach(function(_){var C=Hk.bind(null,l,_);m.has(_)||(m.add(_),_.then(C,C))})}}function js(l,c){var m=c.deletions;if(m!==null)for(var _=0;_<m.length;_++){var C=m[_];try{var R=l,N=c,z=N;e:for(;z!==null;){switch(z.tag){case 5:Nr=z.stateNode,Wi=!1;break e;case 3:Nr=z.stateNode.containerInfo,Wi=!0;break e;case 4:Nr=z.stateNode.containerInfo,Wi=!0;break e}z=z.return}if(Nr===null)throw Error(t(160));nh(R,N,C),Nr=null,Wi=!1;var V=C.alternate;V!==null&&(V.return=null),C.return=null}catch(me){ti(C,c,me)}}if(c.subtreeFlags&12854)for(c=c.child;c!==null;)DS(c,l),c=c.sibling}function DS(l,c){var m=l.alternate,_=l.flags;switch(l.tag){case 0:case 11:case 14:case 15:if(js(c,l),pl(l),_&4){try{lv(3,l,l.return),uv(3,l)}catch(yt){ti(l,l.return,yt)}try{lv(5,l,l.return)}catch(yt){ti(l,l.return,yt)}}break;case 1:js(c,l),pl(l),_&512&&m!==null&&eh(m,m.return);break;case 5:if(js(c,l),pl(l),_&512&&m!==null&&eh(m,m.return),l.flags&32){var C=l.stateNode;try{ko(C,"")}catch(yt){ti(l,l.return,yt)}}if(_&4&&(C=l.stateNode,C!=null)){var R=l.memoizedProps,N=m!==null?m.memoizedProps:R,z=l.type,V=l.updateQueue;if(l.updateQueue=null,V!==null)try{z==="input"&&R.type==="radio"&&R.name!=null&&Qr(C,R),Ge(z,N);var me=Ge(z,R);for(N=0;N<V.length;N+=2){var Pe=V[N],Le=V[N+1];Pe==="style"?re(C,Le):Pe==="dangerouslySetInnerHTML"?rs(C,Le):Pe==="children"?ko(C,Le):j(C,Pe,Le,me)}switch(z){case"input":_r(C,R);break;case"textarea":Go(C,R);break;case"select":var Ne=C._wrapperState.wasMultiple;C._wrapperState.wasMultiple=!!R.multiple;var st=R.value;st!=null?ki(C,!!R.multiple,st,!1):Ne!==!!R.multiple&&(R.defaultValue!=null?ki(C,!!R.multiple,R.defaultValue,!0):ki(C,!!R.multiple,R.multiple?[]:"",!1))}C[dd]=R}catch(yt){ti(l,l.return,yt)}}break;case 6:if(js(c,l),pl(l),_&4){if(l.stateNode===null)throw Error(t(162));C=l.stateNode,R=l.memoizedProps;try{C.nodeValue=R}catch(yt){ti(l,l.return,yt)}}break;case 3:if(js(c,l),pl(l),_&4&&m!==null&&m.memoizedState.isDehydrated)try{Ju(c.containerInfo)}catch(yt){ti(l,l.return,yt)}break;case 4:js(c,l),pl(l);break;case 13:js(c,l),pl(l),C=l.child,C.flags&8192&&(R=C.memoizedState!==null,C.stateNode.isHidden=R,!R||C.alternate!==null&&C.alternate.memoizedState!==null||(sE=An())),_&4&&nu(l);break;case 22:if(Pe=m!==null&&m.memoizedState!==null,l.mode&1?(Ui=(me=Ui)||Pe,js(c,l),Ui=me):js(c,l),pl(l),_&8192){if(me=l.memoizedState!==null,(l.stateNode.isHidden=me)&&!Pe&&l.mode&1)for(ft=l,Pe=l.child;Pe!==null;){for(Le=ft=Pe;ft!==null;){switch(Ne=ft,st=Ne.child,Ne.tag){case 0:case 11:case 14:case 15:lv(4,Ne,Ne.return);break;case 1:eh(Ne,Ne.return);var ht=Ne.stateNode;if(typeof ht.componentWillUnmount=="function"){_=Ne,m=Ne.return;try{c=_,ht.props=c.memoizedProps,ht.state=c.memoizedState,ht.componentWillUnmount()}catch(yt){ti(_,m,yt)}}break;case 5:eh(Ne,Ne.return);break;case 22:if(Ne.memoizedState!==null){oE(Le);continue}}st!==null?(st.return=Ne,ft=st):oE(Le)}Pe=Pe.sibling}e:for(Pe=null,Le=l;;){if(Le.tag===5){if(Pe===null){Pe=Le;try{C=Le.stateNode,me?(R=C.style,typeof R.setProperty=="function"?R.setProperty("display","none","important"):R.display="none"):(z=Le.stateNode,V=Le.memoizedProps.style,N=V!=null&&V.hasOwnProperty("display")?V.display:null,z.style.display=tn("display",N))}catch(yt){ti(l,l.return,yt)}}}else if(Le.tag===6){if(Pe===null)try{Le.stateNode.nodeValue=me?"":Le.memoizedProps}catch(yt){ti(l,l.return,yt)}}else if((Le.tag!==22&&Le.tag!==23||Le.memoizedState===null||Le===l)&&Le.child!==null){Le.child.return=Le,Le=Le.child;continue}if(Le===l)break e;for(;Le.sibling===null;){if(Le.return===null||Le.return===l)break e;Pe===Le&&(Pe=null),Le=Le.return}Pe===Le&&(Pe=null),Le.sibling.return=Le.return,Le=Le.sibling}}break;case 19:js(c,l),pl(l),_&4&&nu(l);break;case 21:break;default:js(c,l),pl(l)}}function pl(l){var c=l.flags;if(c&2){try{e:{for(var m=l.return;m!==null;){if(PS(m)){var _=m;break e}m=m.return}throw Error(t(160))}switch(_.tag){case 5:var C=_.stateNode;_.flags&32&&(ko(C,""),_.flags&=-33);var R=Wg(l);hl(l,R,C);break;case 3:case 4:var N=_.stateNode.containerInfo,z=Wg(l);th(l,z,N);break;default:throw Error(t(161))}}catch(V){ti(l,l.return,V)}l.flags&=-3}c&4096&&(l.flags&=-4097)}function LS(l,c,m){ft=l,rh(l)}function rh(l,c,m){for(var _=(l.mode&1)!==0;ft!==null;){var C=ft,R=C.child;if(C.tag===22&&_){var N=C.memoizedState!==null||av;if(!N){var z=C.alternate,V=z!==null&&z.memoizedState!==null||Ui;z=av;var me=Ui;if(av=N,(Ui=V)&&!me)for(ft=C;ft!==null;)N=ft,V=N.child,N.tag===22&&N.memoizedState!==null?FS(C):V!==null?(V.return=N,ft=V):FS(C);for(;R!==null;)ft=R,rh(R),R=R.sibling;ft=C,av=z,Ui=me}US(l)}else C.subtreeFlags&8772&&R!==null?(R.return=C,ft=R):US(l)}}function US(l){for(;ft!==null;){var c=ft;if(c.flags&8772){var m=c.alternate;try{if(c.flags&8772)switch(c.tag){case 0:case 11:case 15:Ui||uv(5,c);break;case 1:var _=c.stateNode;if(c.flags&4&&!Ui)if(m===null)_.componentDidMount();else{var C=c.elementType===c.type?m.memoizedProps:Ha(c.type,m.memoizedProps);_.componentDidUpdate(C,m.memoizedState,_.__reactInternalSnapshotBeforeUpdate)}var R=c.updateQueue;R!==null&&hd(c,R,_);break;case 3:var N=c.updateQueue;if(N!==null){if(m=null,c.child!==null)switch(c.child.tag){case 5:m=c.child.stateNode;break;case 1:m=c.child.stateNode}hd(c,N,m)}break;case 5:var z=c.stateNode;if(m===null&&c.flags&4){m=z;var V=c.memoizedProps;switch(c.type){case"button":case"input":case"select":case"textarea":V.autoFocus&&m.focus();break;case"img":V.src&&(m.src=V.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(c.memoizedState===null){var me=c.alternate;if(me!==null){var Pe=me.memoizedState;if(Pe!==null){var Le=Pe.dehydrated;Le!==null&&Ju(Le)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(t(163))}Ui||c.flags&512&&rE(c)}catch(Ne){ti(c,c.return,Ne)}}if(c===l){ft=null;break}if(m=c.sibling,m!==null){m.return=c.return,ft=m;break}ft=c.return}}function oE(l){for(;ft!==null;){var c=ft;if(c===l){ft=null;break}var m=c.sibling;if(m!==null){m.return=c.return,ft=m;break}ft=c.return}}function FS(l){for(;ft!==null;){var c=ft;try{switch(c.tag){case 0:case 11:case 15:var m=c.return;try{uv(4,c)}catch(V){ti(c,m,V)}break;case 1:var _=c.stateNode;if(typeof _.componentDidMount=="function"){var C=c.return;try{_.componentDidMount()}catch(V){ti(c,C,V)}}var R=c.return;try{rE(c)}catch(V){ti(c,R,V)}break;case 5:var N=c.return;try{rE(c)}catch(V){ti(c,N,V)}}}catch(V){ti(c,c.return,V)}if(c===l){ft=null;break}var z=c.sibling;if(z!==null){z.return=c.return,ft=z;break}ft=c.return}}var Yg=Math.ceil,cv=U.ReactCurrentDispatcher,aE=U.ReactCurrentOwner,Po=U.ReactCurrentBatchConfig,En=0,Br=null,ei=null,Yi=0,Ba=0,ih=nn(0),Fi=0,dv=null,ru=0,Qg=0,oh=0,Td=null,Yo=null,sE=0,ah=1/0,iu=null,Xg=!1,Rd=null,vl=null,gc=!1,yc=null,Jg=0,sh=0,Zg=null,xd=-1,Ad=0;function Do(){return En&6?An():xd!==-1?xd:xd=An()}function Ci(l){return l.mode&1?En&2&&Yi!==0?Yi&-Yi:Eg.transition!==null?(Ad===0&&(Ad=Af()),Ad):(l=Ln,l!==0||(l=window.event,l=l===void 0?16:Mp(l.type)),l):1}function Lo(l,c,m,_){if(50<sh)throw sh=0,Zg=null,Error(t(185));jl(l,m,_),(!(En&2)||l!==Br)&&(l===Br&&(!(En&2)&&(Qg|=m),Fi===4&&ms(l,Yi)),Uo(l,_),m===1&&En===0&&!(c.mode&1)&&(ah=An()+500,Vi&&_a()))}function Uo(l,c){var m=l.callbackNode;Wu(l,c);var _=Ko(l,l===Br?Yi:0);if(_===0)m!==null&&so(m),l.callbackNode=null,l.callbackPriority=0;else if(c=_&-_,l.callbackPriority!==c){if(m!=null&&so(m),c===1)l.tag===0?M_(HS.bind(null,l)):N_(HS.bind(null,l)),k_(function(){!(En&6)&&_a()}),m=null;else{switch(If(_)){case 1:m=Ps;break;case 4:m=dn;break;case 16:m=al;break;case 536870912:m=Rf;break;default:m=al}m=hE(m,lh.bind(null,l))}l.callbackPriority=c,l.callbackNode=m}}function lh(l,c){if(xd=-1,Ad=0,En&6)throw Error(t(327));var m=l.callbackNode;if(ch()&&l.callbackNode!==m)return null;var _=Ko(l,l===Br?Yi:0);if(_===0)return null;if(_&30||_&l.expiredLanes||c)c=ty(l,_);else{c=_;var C=En;En|=2;var R=ey();(Br!==l||Yi!==c)&&(iu=null,ah=An()+500,kd(l,c));do try{Dk();break}catch(z){$S(l,z)}while(1);H_(),cv.current=R,En=C,ei!==null?c=0:(Br=null,Yi=0,c=Fi)}if(c!==0){if(c===2&&(C=Yu(l),C!==0&&(_=C,c=lE(l,C))),c===1)throw m=dv,kd(l,0),ms(l,_),Uo(l,An()),m;if(c===6)ms(l,_);else{if(C=l.current.alternate,!(_&30)&&!uE(C)&&(c=ty(l,_),c===2&&(R=Yu(l),R!==0&&(_=R,c=lE(l,R))),c===1))throw m=dv,kd(l,0),ms(l,_),Uo(l,An()),m;switch(l.finishedWork=C,l.finishedLanes=_,c){case 0:case 1:throw Error(t(345));case 2:Id(l,Yo,iu);break;case 3:if(ms(l,_),(_&130023424)===_&&(c=sE+500-An(),10<c)){if(Ko(l,0)!==0)break;if(C=l.suspendedLanes,(C&_)!==_){Do(),l.pingedLanes|=l.suspendedLanes&C;break}l.timeoutHandle=cd(Id.bind(null,l,Yo,iu),c);break}Id(l,Yo,iu);break;case 4:if(ms(l,_),(_&4194240)===_)break;for(c=l.eventTimes,C=-1;0<_;){var N=31-Vo(_);R=1<<N,N=c[N],N>C&&(C=N),_&=~R}if(_=C,_=An()-_,_=(120>_?120:480>_?480:1080>_?1080:1920>_?1920:3e3>_?3e3:4320>_?4320:1960*Yg(_/1960))-_,10<_){l.timeoutHandle=cd(Id.bind(null,l,Yo,iu),_);break}Id(l,Yo,iu);break;case 5:Id(l,Yo,iu);break;default:throw Error(t(329))}}}return Uo(l,An()),l.callbackNode===m?lh.bind(null,l):null}function lE(l,c){var m=Td;return l.current.memoizedState.isDehydrated&&(kd(l,c).flags|=256),l=ty(l,c),l!==2&&(c=Yo,Yo=m,c!==null&&fv(c)),l}function fv(l){Yo===null?Yo=l:Yo.push.apply(Yo,l)}function uE(l){for(var c=l;;){if(c.flags&16384){var m=c.updateQueue;if(m!==null&&(m=m.stores,m!==null))for(var _=0;_<m.length;_++){var C=m[_],R=C.getSnapshot;C=C.value;try{if(!as(R(),C))return!1}catch{return!1}}}if(m=c.child,c.subtreeFlags&16384&&m!==null)m.return=c,c=m;else{if(c===l)break;for(;c.sibling===null;){if(c.return===null||c.return===l)return!0;c=c.return}c.sibling.return=c.return,c=c.sibling}}return!0}function ms(l,c){for(c&=~oh,c&=~Qg,l.suspendedLanes|=c,l.pingedLanes&=~c,l=l.expirationTimes;0<c;){var m=31-Vo(c),_=1<<m;l[m]=-1,c&=~_}}function HS(l){if(En&6)throw Error(t(327));ch();var c=Ko(l,0);if(!(c&1))return Uo(l,An()),null;var m=ty(l,c);if(l.tag!==0&&m===2){var _=Yu(l);_!==0&&(c=_,m=lE(l,_))}if(m===1)throw m=dv,kd(l,0),ms(l,c),Uo(l,An()),m;if(m===6)throw Error(t(345));return l.finishedWork=l.current.alternate,l.finishedLanes=c,Id(l,Yo,iu),Uo(l,An()),null}function uh(l,c){var m=En;En|=1;try{return l(c)}finally{En=m,En===0&&(ah=An()+500,Vi&&_a())}}function _c(l){yc!==null&&yc.tag===0&&!(En&6)&&ch();var c=En;En|=1;var m=Po.transition,_=Ln;try{if(Po.transition=null,Ln=1,l)return l()}finally{Ln=_,Po.transition=m,En=c,!(En&6)&&_a()}}function cE(){Ba=ih.current,$n(ih)}function kd(l,c){l.finishedWork=null,l.finishedLanes=0;var m=l.timeoutHandle;if(m!==-1&&(l.timeoutHandle=-1,hS(m)),ei!==null)for(m=ei.return;m!==null;){var _=m;switch(D_(_),_.tag){case 1:_=_.type.childContextTypes,_!=null&&us();break;case 3:hc(),$n(Zr),$n(Gt),Rg();break;case 5:hn(_);break;case 4:hc();break;case 13:$n(Ft);break;case 19:$n(Ft);break;case 10:uc(_.type._context);break;case 22:case 23:cE()}m=m.return}if(Br=l,ei=l=Ec(l.current,null),Yi=Ba=c,Fi=0,dv=null,oh=Qg=ru=0,Yo=Td=null,uo!==null){for(c=0;c<uo.length;c++)if(m=uo[c],_=m.interleaved,_!==null){m.interleaved=null;var C=_.next,R=m.pending;if(R!==null){var N=R.next;R.next=C,_.next=N}m.pending=_}uo=null}return l}function $S(l,c){do{var m=ei;try{if(H_(),xg.current=zg,Ht){for(var _=wr.memoizedState;_!==null;){var C=_.queue;C!==null&&(C.pending=null),_=_.next}Ht=!1}if(vd=0,Tn=Se=wr=null,fl=!1,$a=0,aE.current=null,m===null||m.return===null){Fi=1,dv=c,ei=null;break}e:{var R=l,N=m.return,z=m,V=c;if(c=Yi,z.flags|=32768,V!==null&&typeof V=="object"&&typeof V.then=="function"){var me=V,Pe=z,Le=Pe.tag;if(!(Pe.mode&1)&&(Le===0||Le===11||Le===15)){var Ne=Pe.alternate;Ne?(Pe.updateQueue=Ne.updateQueue,Pe.memoizedState=Ne.memoizedState,Pe.lanes=Ne.lanes):(Pe.updateQueue=null,Pe.memoizedState=null)}var st=W_(N);if(st!==null){st.flags&=-257,Y_(st,N,z,R,c),st.mode&1&&AS(R,me,c),c=st,V=me;var ht=c.updateQueue;if(ht===null){var yt=new Set;yt.add(V),c.updateQueue=yt}else ht.add(V);break e}else{if(!(c&1)){AS(R,me,c),dE();break e}V=Error(t(426))}}else if(Cr&&z.mode&1){var li=W_(N);if(li!==null){!(li.flags&65536)&&(li.flags|=256),Y_(li,N,z,R,c),U_(Xf(V,z));break e}}R=V=Xf(V,z),Fi!==4&&(Fi=2),Td===null?Td=[R]:Td.push(R),R=N;do{switch(R.tag){case 3:R.flags|=65536,c&=-c,R.lanes|=c;var ie=xS(R,V,c);j_(R,ie);break e;case 1:z=V;var J=R.type,ue=R.stateNode;if(!(R.flags&128)&&(typeof J.getDerivedStateFromError=="function"||ue!==null&&typeof ue.componentDidCatch=="function"&&(vl===null||!vl.has(ue)))){R.flags|=65536,c&=-c,R.lanes|=c;var ze=rv(R,z,c);j_(R,ze);break e}}R=R.return}while(R!==null)}fE(m)}catch(wt){c=wt,ei===m&&m!==null&&(ei=m=m.return);continue}break}while(1)}function ey(){var l=cv.current;return cv.current=zg,l===null?zg:l}function dE(){(Fi===0||Fi===3||Fi===2)&&(Fi=4),Br===null||!(ru&268435455)&&!(Qg&268435455)||ms(Br,Yi)}function ty(l,c){var m=En;En|=2;var _=ey();(Br!==l||Yi!==c)&&(iu=null,kd(l,c));do try{Pk();break}catch(C){$S(l,C)}while(1);if(H_(),En=m,cv.current=_,ei!==null)throw Error(t(261));return Br=null,Yi=0,Fi}function Pk(){for(;ei!==null;)BS(ei)}function Dk(){for(;ei!==null&&!ol();)BS(ei)}function BS(l){var c=zS(l.alternate,l,Ba);l.memoizedProps=l.pendingProps,c===null?fE(l):ei=c,aE.current=null}function fE(l){var c=l;do{var m=c.alternate;if(l=c.return,c.flags&32768){if(m=nE(m,c),m!==null){m.flags&=32767,ei=m;return}if(l!==null)l.flags|=32768,l.subtreeFlags=0,l.deletions=null;else{Fi=6,ei=null;return}}else if(m=Mk(m,c,Ba),m!==null){ei=m;return}if(c=c.sibling,c!==null){ei=c;return}ei=c=l}while(c!==null);Fi===0&&(Fi=5)}function Id(l,c,m){var _=Ln,C=Po.transition;try{Po.transition=null,Ln=1,Lk(l,c,m,_)}finally{Po.transition=C,Ln=_}return null}function Lk(l,c,m,_){do ch();while(yc!==null);if(En&6)throw Error(t(327));m=l.finishedWork;var C=l.finishedLanes;if(m===null)return null;if(l.finishedWork=null,l.finishedLanes=0,m===l.current)throw Error(t(177));l.callbackNode=null,l.callbackPriority=0;var R=m.lanes|m.childLanes;if(l_(l,R),l===Br&&(ei=Br=null,Yi=0),!(m.subtreeFlags&2064)&&!(m.flags&2064)||gc||(gc=!0,hE(al,function(){return ch(),null})),R=(m.flags&15990)!==0,m.subtreeFlags&15990||R){R=Po.transition,Po.transition=null;var N=Ln;Ln=1;var z=En;En|=4,aE.current=null,MS(l,m),DS(m,l),ug(ud),os=!!x_,ud=x_=null,l.current=m,LS(m),Tf(),En=z,Ln=N,Po.transition=R}else l.current=m;if(gc&&(gc=!1,yc=l,Jg=C),R=l.pendingLanes,R===0&&(vl=null),Ip(m.stateNode),Uo(l,An()),c!==null)for(_=l.onRecoverableError,m=0;m<c.length;m++)C=c[m],_(C.value,{componentStack:C.stack,digest:C.digest});if(Xg)throw Xg=!1,l=Rd,Rd=null,l;return Jg&1&&l.tag!==0&&ch(),R=l.pendingLanes,R&1?l===Zg?sh++:(sh=0,Zg=l):sh=0,_a(),null}function ch(){if(yc!==null){var l=If(Jg),c=Po.transition,m=Ln;try{if(Po.transition=null,Ln=16>l?16:l,yc===null)var _=!1;else{if(l=yc,yc=null,Jg=0,En&6)throw Error(t(331));var C=En;for(En|=4,ft=l.current;ft!==null;){var R=ft,N=R.child;if(ft.flags&16){var z=R.deletions;if(z!==null){for(var V=0;V<z.length;V++){var me=z[V];for(ft=me;ft!==null;){var Pe=ft;switch(Pe.tag){case 0:case 11:case 15:lv(8,Pe,R)}var Le=Pe.child;if(Le!==null)Le.return=Pe,ft=Le;else for(;ft!==null;){Pe=ft;var Ne=Pe.sibling,st=Pe.return;if(iE(Pe),Pe===me){ft=null;break}if(Ne!==null){Ne.return=st,ft=Ne;break}ft=st}}}var ht=R.alternate;if(ht!==null){var yt=ht.child;if(yt!==null){ht.child=null;do{var li=yt.sibling;yt.sibling=null,yt=li}while(yt!==null)}}ft=R}}if(R.subtreeFlags&2064&&N!==null)N.return=R,ft=N;else e:for(;ft!==null;){if(R=ft,R.flags&2048)switch(R.tag){case 0:case 11:case 15:lv(9,R,R.return)}var ie=R.sibling;if(ie!==null){ie.return=R.return,ft=ie;break e}ft=R.return}}var J=l.current;for(ft=J;ft!==null;){N=ft;var ue=N.child;if(N.subtreeFlags&2064&&ue!==null)ue.return=N,ft=ue;else e:for(N=J;ft!==null;){if(z=ft,z.flags&2048)try{switch(z.tag){case 0:case 11:case 15:uv(9,z)}}catch(wt){ti(z,z.return,wt)}if(z===N){ft=null;break e}var ze=z.sibling;if(ze!==null){ze.return=z.return,ft=ze;break e}ft=z.return}}if(En=C,_a(),pa&&typeof pa.onPostCommitFiberRoot=="function")try{pa.onPostCommitFiberRoot(Gu,l)}catch{}_=!0}return _}finally{Ln=m,Po.transition=c}}return!1}function jS(l,c,m){c=Xf(m,c),c=xS(l,c,1),l=dc(l,c,1),c=Do(),l!==null&&(jl(l,1,c),Uo(l,c))}function ti(l,c,m){if(l.tag===3)jS(l,l,m);else for(;c!==null;){if(c.tag===3){jS(c,l,m);break}else if(c.tag===1){var _=c.stateNode;if(typeof c.type.getDerivedStateFromError=="function"||typeof _.componentDidCatch=="function"&&(vl===null||!vl.has(_))){l=Xf(m,l),l=rv(c,l,1),c=dc(c,l,1),l=Do(),c!==null&&(jl(c,1,l),Uo(c,l));break}}c=c.return}}function Uk(l,c,m){var _=l.pingCache;_!==null&&_.delete(c),c=Do(),l.pingedLanes|=l.suspendedLanes&m,Br===l&&(Yi&m)===m&&(Fi===4||Fi===3&&(Yi&130023424)===Yi&&500>An()-sE?kd(l,0):oh|=m),Uo(l,c)}function ny(l,c){c===0&&(l.mode&1?(c=Vu,Vu<<=1,!(Vu&130023424)&&(Vu=4194304)):c=1);var m=Do();l=Jl(l,c),l!==null&&(jl(l,c,m),Uo(l,m))}function Fk(l){var c=l.memoizedState,m=0;c!==null&&(m=c.retryLane),ny(l,m)}function Hk(l,c){var m=0;switch(l.tag){case 13:var _=l.stateNode,C=l.memoizedState;C!==null&&(m=C.retryLane);break;case 19:_=l.stateNode;break;default:throw Error(t(314))}_!==null&&_.delete(c),ny(l,m)}var zS;zS=function(l,c,m){if(l!==null)if(l.memoizedProps!==c.pendingProps||Zr.current)bi=!0;else{if(!(l.lanes&m)&&!(c.flags&128))return bi=!1,tu(l,c,m);bi=!!(l.flags&131072)}else bi=!1,Cr&&c.flags&1048576&&P_(c,qf,c.index);switch(c.lanes=0,c.tag){case 2:var _=c.type;No(l,c),l=c.pendingProps;var C=ls(c,Gt.current);Je(c,m),C=pc(null,c,_,l,C,m);var R=yd();return c.flags|=1,typeof C=="object"&&C!==null&&typeof C.render=="function"&&C.$$typeof===void 0?(c.tag=1,c.memoizedState=null,c.updateQueue=null,Or(_)?(R=!0,vg(c)):R=!1,c.memoizedState=C.state!==null&&C.state!==void 0?C.state:null,B_(c),C.updater=wg,c.stateNode=C,C._reactInternals=c,Sg(c,_,l,m),c=kS(null,c,_,!0,R,m)):(c.tag=0,Cr&&R&&mg(c),Di(null,c,C,m),c=c.child),c;case 16:_=c.elementType;e:{switch(No(l,c),l=c.pendingProps,C=_._init,_=C(_._payload),c.type=_,C=c.tag=Bk(_),l=Ha(_,l),C){case 0:c=Jf(null,c,_,l,m);break e;case 1:c=Q_(null,c,_,l,m);break e;case 11:c=mc(null,c,_,l,m);break e;case 14:c=Gg(null,c,_,Ha(_.type,l),m);break e}throw Error(t(306,_,""))}return c;case 0:return _=c.type,C=c.pendingProps,C=c.elementType===_?C:Ha(_,C),Jf(l,c,_,C,m);case 1:return _=c.type,C=c.pendingProps,C=c.elementType===_?C:Ha(_,C),Q_(l,c,_,C,m);case 3:e:{if(IS(c),l===null)throw Error(t(387));_=c.pendingProps,R=c.memoizedState,C=R.element,Pi(l,c),fc(c,_,null,m);var N=c.memoizedState;if(_=N.element,R.isDehydrated)if(R={element:_,isDehydrated:!1,cache:N.cache,pendingSuspenseBoundaries:N.pendingSuspenseBoundaries,transitions:N.transitions},c.updateQueue.baseState=R,c.memoizedState=R,c.flags&256){C=Xf(Error(t(423)),c),c=Vg(l,c,_,m,C);break e}else if(_!==C){C=Xf(Error(t(424)),c),c=Vg(l,c,_,m,C);break e}else for(Ca=$s(c.stateNode.containerInfo.firstChild),Fa=c,Cr=!0,ds=null,m=TS(c,null,_,m),c.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling;else{if(Hr(),_===C){c=co(l,c,m);break e}Di(l,c,_,m)}c=c.child}return c;case 5:return Pt(c),l===null&&yg(c),_=c.type,C=c.pendingProps,R=l!==null?l.memoizedProps:null,N=C.children,Gp(_,C)?N=null:R!==null&&Gp(_,R)&&(c.flags|=32),rn(l,c),Di(l,c,N,m),c.child;case 6:return l===null&&yg(c),null;case 13:return J_(l,c,m);case 4:return q_(c,c.stateNode.containerInfo),_=c.pendingProps,l===null?c.child=Vf(c,null,_,m):Di(l,c,_,m),c.child;case 11:return _=c.type,C=c.pendingProps,C=c.elementType===_?C:Ha(_,C),mc(l,c,_,C,m);case 7:return Di(l,c,c.pendingProps,m),c.child;case 8:return Di(l,c,c.pendingProps.children,m),c.child;case 12:return Di(l,c,c.pendingProps.children,m),c.child;case 10:e:{if(_=c.type._context,C=c.pendingProps,R=c.memoizedProps,N=C.value,Gn(dl,_._currentValue),_._currentValue=N,R!==null)if(as(R.value,N)){if(R.children===C.children&&!Zr.current){c=co(l,c,m);break e}}else for(R=c.child,R!==null&&(R.return=c);R!==null;){var z=R.dependencies;if(z!==null){N=R.child;for(var V=z.firstContext;V!==null;){if(V.context===_){if(R.tag===1){V=Zl(-1,m&-m),V.tag=2;var me=R.updateQueue;if(me!==null){me=me.shared;var Pe=me.pending;Pe===null?V.next=V:(V.next=Pe.next,Pe.next=V),me.pending=V}}R.lanes|=m,V=R.alternate,V!==null&&(V.lanes|=m),Ki(R.return,m,c),z.lanes|=m;break}V=V.next}}else if(R.tag===10)N=R.type===c.type?null:R.child;else if(R.tag===18){if(N=R.return,N===null)throw Error(t(341));N.lanes|=m,z=N.alternate,z!==null&&(z.lanes|=m),Ki(N,m,c),N=R.sibling}else N=R.child;if(N!==null)N.return=R;else for(N=R;N!==null;){if(N===c){N=null;break}if(R=N.sibling,R!==null){R.return=N.return,N=R;break}N=N.return}R=N}Di(l,c,C.children,m),c=c.child}return c;case 9:return C=c.type,_=c.pendingProps.children,Je(c,m),C=si(C),_=_(C),c.flags|=1,Di(l,c,_,m),c.child;case 14:return _=c.type,C=Ha(_,c.pendingProps),C=Ha(_.type,C),Gg(l,c,_,C,m);case 15:return Ta(l,c,c.type,c.pendingProps,m);case 17:return _=c.type,C=c.pendingProps,C=c.elementType===_?C:Ha(_,C),No(l,c),c.tag=1,Or(_)?(l=!0,vg(c)):l=!1,Je(c,m),bS(c,_,C),Sg(c,_,C,m),kS(null,c,_,!0,l,m);case 19:return tE(l,c,m);case 22:return Cd(l,c,m)}throw Error(t(156,c.tag))};function hE(l,c){return vr(l,c)}function $k(l,c,m,_){this.tag=l,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=c,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=_,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function gs(l,c,m,_){return new $k(l,c,m,_)}function pE(l){return l=l.prototype,!(!l||!l.isReactComponent)}function Bk(l){if(typeof l=="function")return pE(l)?1:0;if(l!=null){if(l=l.$$typeof,l===je)return 11;if(l===ye)return 14}return 2}function Ec(l,c){var m=l.alternate;return m===null?(m=gs(l.tag,c,l.key,l.mode),m.elementType=l.elementType,m.type=l.type,m.stateNode=l.stateNode,m.alternate=l,l.alternate=m):(m.pendingProps=c,m.type=l.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=l.flags&14680064,m.childLanes=l.childLanes,m.lanes=l.lanes,m.child=l.child,m.memoizedProps=l.memoizedProps,m.memoizedState=l.memoizedState,m.updateQueue=l.updateQueue,c=l.dependencies,m.dependencies=c===null?null:{lanes:c.lanes,firstContext:c.firstContext},m.sibling=l.sibling,m.index=l.index,m.ref=l.ref,m}function ry(l,c,m,_,C,R){var N=2;if(_=l,typeof l=="function")pE(l)&&(N=1);else if(typeof l=="string")N=5;else e:switch(l){case Q:return Od(m.children,C,R,c);case Te:N=8,C|=8;break;case Ve:return l=gs(12,m,c,C|2),l.elementType=Ve,l.lanes=R,l;case te:return l=gs(13,m,c,C),l.elementType=te,l.lanes=R,l;case ee:return l=gs(19,m,c,C),l.elementType=ee,l.lanes=R,l;case pe:return hv(m,C,R,c);default:if(typeof l=="object"&&l!==null)switch(l.$$typeof){case ot:N=10;break e;case Me:N=9;break e;case je:N=11;break e;case ye:N=14;break e;case ve:N=16,_=null;break e}throw Error(t(130,l==null?l:typeof l,""))}return c=gs(N,m,c,C),c.elementType=l,c.type=_,c.lanes=R,c}function Od(l,c,m,_){return l=gs(7,l,_,c),l.lanes=m,l}function hv(l,c,m,_){return l=gs(22,l,_,c),l.elementType=pe,l.lanes=m,l.stateNode={isHidden:!1},l}function pv(l,c,m){return l=gs(6,l,null,c),l.lanes=m,l}function Nd(l,c,m){return c=gs(4,l.children!==null?l.children:[],l.key,c),c.lanes=m,c.stateNode={containerInfo:l.containerInfo,pendingChildren:null,implementation:l.implementation},c}function jk(l,c,m,_,C){this.tag=c,this.containerInfo=l,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=kf(0),this.expirationTimes=kf(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=kf(0),this.identifierPrefix=_,this.onRecoverableError=C,this.mutableSourceEagerHydrationData=null}function iy(l,c,m,_,C,R,N,z,V){return l=new jk(l,c,m,z,V),c===1?(c=1,R===!0&&(c|=8)):c=0,R=gs(3,null,null,c),l.current=R,R.stateNode=l,R.memoizedState={element:_,isDehydrated:m,cache:null,transitions:null,pendingSuspenseBoundaries:null},B_(R),l}function qS(l,c,m){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:W,key:_==null?null:""+_,children:l,containerInfo:c,implementation:m}}function vE(l){if(!l)return cl;l=l._reactInternals;e:{if(qt(l)!==l||l.tag!==1)throw Error(t(170));var c=l;do{switch(c.tag){case 3:c=c.stateNode.context;break e;case 1:if(Or(c.type)){c=c.stateNode.__reactInternalMemoizedMergedChildContext;break e}}c=c.return}while(c!==null);throw Error(t(171))}if(l.tag===1){var m=l.type;if(Or(m))return Wp(l,m,c)}return c}function GS(l,c,m,_,C,R,N,z,V){return l=iy(m,_,!0,l,C,R,N,z,V),l.context=vE(null),m=l.current,_=Do(),C=Ci(m),R=Zl(_,C),R.callback=c??null,dc(m,R,C),l.current.lanes=C,jl(l,C,_),Uo(l,_),l}function vv(l,c,m,_){var C=c.current,R=Do(),N=Ci(C);return m=vE(m),c.context===null?c.context=m:c.pendingContext=m,c=Zl(R,N),c.payload={element:l},_=_===void 0?null:_,_!==null&&(c.callback=_),l=dc(C,c,N),l!==null&&(Lo(l,C,N,R),Cg(l,C,N)),N}function oy(l){if(l=l.current,!l.child)return null;switch(l.child.tag){case 5:return l.child.stateNode;default:return l.child.stateNode}}function VS(l,c){if(l=l.memoizedState,l!==null&&l.dehydrated!==null){var m=l.retryLane;l.retryLane=m!==0&&m<c?m:c}}function mE(l,c){VS(l,c),(l=l.alternate)&&VS(l,c)}function KS(){return null}var gE=typeof reportError=="function"?reportError:function(l){console.error(l)};function ay(l){this._internalRoot=l}ou.prototype.render=ay.prototype.render=function(l){var c=this._internalRoot;if(c===null)throw Error(t(409));vv(l,c,null,null)},ou.prototype.unmount=ay.prototype.unmount=function(){var l=this._internalRoot;if(l!==null){this._internalRoot=null;var c=l.containerInfo;_c(function(){vv(null,l,null,null)}),c[Ql]=null}};function ou(l){this._internalRoot=l}ou.prototype.unstable_scheduleHydration=function(l){if(l){var c=Nf();l={blockedOn:null,target:l,priority:c};for(var m=0;m<qn.length&&c!==0&&c<qn[m].priority;m++);qn.splice(m,0,l),m===0&&ng(l)}};function yE(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11)}function sy(l){return!(!l||l.nodeType!==1&&l.nodeType!==9&&l.nodeType!==11&&(l.nodeType!==8||l.nodeValue!==" react-mount-point-unstable "))}function WS(){}function zk(l,c,m,_,C){if(C){if(typeof _=="function"){var R=_;_=function(){var me=oy(N);R.call(me)}}var N=GS(c,_,l,0,null,!1,!1,"",WS);return l._reactRootContainer=N,l[Ql]=N.current,jf(l.nodeType===8?l.parentNode:l),_c(),N}for(;C=l.lastChild;)l.removeChild(C);if(typeof _=="function"){var z=_;_=function(){var me=oy(V);z.call(me)}}var V=iy(l,0,!1,null,null,!1,!1,"",WS);return l._reactRootContainer=V,l[Ql]=V.current,jf(l.nodeType===8?l.parentNode:l),_c(function(){vv(c,V,m,_)}),V}function ly(l,c,m,_,C){var R=m._reactRootContainer;if(R){var N=R;if(typeof C=="function"){var z=C;C=function(){var V=oy(N);z.call(V)}}vv(c,N,l,C)}else N=zk(m,c,l,C,_);return oy(N)}nd=function(l){switch(l.tag){case 3:var c=l.stateNode;if(c.current.memoizedState.isDehydrated){var m=Ds(c.pendingLanes);m!==0&&(sl(c,m|1),Uo(c,An()),!(En&6)&&(ah=An()+500,_a()))}break;case 13:_c(function(){var _=Jl(l,1);if(_!==null){var C=Do();Lo(_,l,1,C)}}),mE(l,1)}},Of=function(l){if(l.tag===13){var c=Jl(l,134217728);if(c!==null){var m=Do();Lo(c,l,134217728,m)}mE(l,134217728)}},kn=function(l){if(l.tag===13){var c=Ci(l),m=Jl(l,c);if(m!==null){var _=Do();Lo(m,l,c,_)}mE(l,c)}},Nf=function(){return Ln},Mf=function(l,c){var m=Ln;try{return Ln=l,c()}finally{Ln=m}},Ct=function(l,c,m){switch(c){case"input":if(_r(l,m),c=m.name,m.type==="radio"&&c!=null){for(m=l;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll("input[name="+JSON.stringify(""+c)+'][type="radio"]'),c=0;c<m.length;c++){var _=m[c];if(_!==l&&_.form===l.form){var C=It(_);if(!C)throw Error(t(90));at(_),_r(_,C)}}}break;case"textarea":Go(l,m);break;case"select":c=m.value,c!=null&&ki(l,!!m.multiple,c,!1)}},Jn=uh,Er=_c;var qk={usingClientEntryPoint:!1,Events:[Kp,zf,It,zn,_n,uh]},dh={findFiberByHostInstance:ss,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},Gk={bundleType:dh.bundleType,version:dh.version,rendererPackageName:dh.rendererPackageName,rendererConfig:dh.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:U.ReactCurrentDispatcher,findHostInstanceByFiber:function(l){return l=Xr(l),l===null?null:l.stateNode},findFiberByHostInstance:dh.findFiberByHostInstance||KS,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.2.0-next-9e3b772b8-20220608"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var uy=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!uy.isDisabled&&uy.supportsFiber)try{Gu=uy.inject(Gk),pa=uy}catch{}}return Ka.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=qk,Ka.createPortal=function(l,c){var m=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!yE(c))throw Error(t(200));return qS(l,c,null,m)},Ka.createRoot=function(l,c){if(!yE(l))throw Error(t(299));var m=!1,_="",C=gE;return c!=null&&(c.unstable_strictMode===!0&&(m=!0),c.identifierPrefix!==void 0&&(_=c.identifierPrefix),c.onRecoverableError!==void 0&&(C=c.onRecoverableError)),c=iy(l,1,!1,null,null,m,!1,_,C),l[Ql]=c.current,jf(l.nodeType===8?l.parentNode:l),new ay(c)},Ka.findDOMNode=function(l){if(l==null)return null;if(l.nodeType===1)return l;var c=l._reactInternals;if(c===void 0)throw typeof l.render=="function"?Error(t(188)):(l=Object.keys(l).join(","),Error(t(268,l)));return l=Xr(c),l=l===null?null:l.stateNode,l},Ka.flushSync=function(l){return _c(l)},Ka.hydrate=function(l,c,m){if(!sy(c))throw Error(t(200));return ly(null,l,c,!0,m)},Ka.hydrateRoot=function(l,c,m){if(!yE(l))throw Error(t(405));var _=m!=null&&m.hydratedSources||null,C=!1,R="",N=gE;if(m!=null&&(m.unstable_strictMode===!0&&(C=!0),m.identifierPrefix!==void 0&&(R=m.identifierPrefix),m.onRecoverableError!==void 0&&(N=m.onRecoverableError)),c=GS(c,null,l,1,m??null,C,!1,R,N),l[Ql]=c.current,jf(l),_)for(l=0;l<_.length;l++)m=_[l],C=m._getVersion,C=C(m._source),c.mutableSourceEagerHydrationData==null?c.mutableSourceEagerHydrationData=[m,C]:c.mutableSourceEagerHydrationData.push(m,C);return new ou(c)},Ka.render=function(l,c,m){if(!sy(c))throw Error(t(200));return ly(null,l,c,!1,m)},Ka.unmountComponentAtNode=function(l){if(!sy(l))throw Error(t(40));return l._reactRootContainer?(_c(function(){ly(null,null,l,!1,function(){l._reactRootContainer=null,l[Ql]=null})}),!0):!1},Ka.unstable_batchedUpdates=uh,Ka.unstable_renderSubtreeIntoContainer=function(l,c,m,_){if(!sy(m))throw Error(t(200));if(l==null||l._reactInternals===void 0)throw Error(t(38));return ly(l,c,m,!1,_)},Ka.version="18.2.0-next-9e3b772b8-20220608",Ka}var Wa={};/**
97
+ * @license React
98
+ * react-dom.development.js
99
+ *
100
+ * Copyright (c) Facebook, Inc. and its affiliates.
101
+ *
102
+ * This source code is licensed under the MIT license found in the
103
+ * LICENSE file in the root directory of this source tree.
104
+ */var KN;function LB(){return KN||(KN=1,process.env.NODE_ENV!=="production"&&function(){typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error);var n=F,e=GN(),t=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,r=!1;function o(i){r=i}function s(i){if(!r){for(var a=arguments.length,d=new Array(a>1?a-1:0),h=1;h<a;h++)d[h-1]=arguments[h];f("warn",i,d)}}function u(i){if(!r){for(var a=arguments.length,d=new Array(a>1?a-1:0),h=1;h<a;h++)d[h-1]=arguments[h];f("error",i,d)}}function f(i,a,d){{var h=t.ReactDebugCurrentFrame,y=h.getStackAddendum();y!==""&&(a+="%s",d=d.concat([y]));var b=d.map(function(T){return String(T)});b.unshift("Warning: "+a),Function.prototype.apply.call(console[i],console,b)}}var p=0,v=1,g=2,E=3,w=4,S=5,A=6,k=7,M=8,P=9,L=10,j=11,U=12,H=13,W=14,Q=15,Te=16,Ve=17,ot=18,Me=19,je=21,te=22,ee=23,ye=24,ve=25,pe=!0,K=!1,ge=!1,B=!1,ne=!1,ke=!0,ut=!1,De=!1,At=!0,Lt=!0,zt=!0,_t=new Set,gn={},Lr={};function jn(i,a){at(i,a),at(i+"Capture",a)}function at(i,a){gn[i]&&u("EventRegistry: More than one plugin attempted to publish the same registration name, `%s`.",i),gn[i]=a;{var d=i.toLowerCase();Lr[d]=i,i==="onDoubleClick"&&(Lr.ondblclick=i)}for(var h=0;h<a.length;h++)_t.add(a[h])}var Xn=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",yr=Object.prototype.hasOwnProperty;function or(i){{var a=typeof Symbol=="function"&&Symbol.toStringTag,d=a&&i[Symbol.toStringTag]||i.constructor.name||"Object";return d}}function Qr(i){try{return _r(i),!1}catch{return!0}}function _r(i){return""+i}function Ai(i,a){if(Qr(i))return u("The provided `%s` attribute is an unsupported type %s. This value must be coerced to a string before before using it here.",a,or(i)),_r(i)}function zi(i){if(Qr(i))return u("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.",or(i)),_r(i)}function lr(i,a){if(Qr(i))return u("The provided `%s` prop is an unsupported type %s. This value must be coerced to a string before before using it here.",a,or(i)),_r(i)}function ki(i,a){if(Qr(i))return u("The provided `%s` CSS property is an unsupported type %s. This value must be coerced to a string before before using it here.",a,or(i)),_r(i)}function io(i){if(Qr(i))return u("The provided HTML markup uses a value of unsupported type %s. This value must be coerced to a string before before using it here.",or(i)),_r(i)}function Ii(i){if(Qr(i))return u("Form field values (value, checked, defaultValue, or defaultChecked props) must be strings, not %s. This value must be coerced to a string before before using it here.",or(i)),_r(i)}var Go=0,gi=1,Oi=2,hr=3,Ni=4,rs=5,ko=6,Ke=":A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Et=Ke+"\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",tn=new RegExp("^["+Ke+"]["+Et+"]*$"),re={},le={};function Re(i){return yr.call(le,i)?!0:yr.call(re,i)?!1:tn.test(i)?(le[i]=!0,!0):(re[i]=!0,u("Invalid attribute name: `%s`",i),!1)}function Ge(i,a,d){return a!==null?a.type===Go:d?!1:i.length>2&&(i[0]==="o"||i[0]==="O")&&(i[1]==="n"||i[1]==="N")}function bt(i,a,d,h){if(d!==null&&d.type===Go)return!1;switch(typeof a){case"function":case"symbol":return!0;case"boolean":{if(h)return!1;if(d!==null)return!d.acceptsBooleans;var y=i.toLowerCase().slice(0,5);return y!=="data-"&&y!=="aria-"}default:return!1}}function tt(i,a,d,h){if(a===null||typeof a>"u"||bt(i,a,d,h))return!0;if(h)return!1;if(d!==null)switch(d.type){case hr:return!a;case Ni:return a===!1;case rs:return isNaN(a);case ko:return isNaN(a)||a<1}return!1}function Ct(i){return qe.hasOwnProperty(i)?qe[i]:null}function We(i,a,d,h,y,b,T){this.acceptsBooleans=a===Oi||a===hr||a===Ni,this.attributeName=h,this.attributeNamespace=y,this.mustUseProperty=d,this.propertyName=i,this.type=a,this.sanitizeURL=b,this.removeEmptyString=T}var qe={},cn=["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"];cn.forEach(function(i){qe[i]=new We(i,Go,!1,i,null,!1,!1)}),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(i){var a=i[0],d=i[1];qe[a]=new We(a,gi,!1,d,null,!1,!1)}),["contentEditable","draggable","spellCheck","value"].forEach(function(i){qe[i]=new We(i,Oi,!1,i.toLowerCase(),null,!1,!1)}),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(i){qe[i]=new We(i,Oi,!1,i,null,!1,!1)}),["allowFullScreen","async","autoFocus","autoPlay","controls","default","defer","disabled","disablePictureInPicture","disableRemotePlayback","formNoValidate","hidden","loop","noModule","noValidate","open","playsInline","readOnly","required","reversed","scoped","seamless","itemScope"].forEach(function(i){qe[i]=new We(i,hr,!1,i.toLowerCase(),null,!1,!1)}),["checked","multiple","muted","selected"].forEach(function(i){qe[i]=new We(i,hr,!0,i,null,!1,!1)}),["capture","download"].forEach(function(i){qe[i]=new We(i,Ni,!1,i,null,!1,!1)}),["cols","rows","size","span"].forEach(function(i){qe[i]=new We(i,ko,!1,i,null,!1,!1)}),["rowSpan","start"].forEach(function(i){qe[i]=new We(i,rs,!1,i.toLowerCase(),null,!1,!1)});var zn=/[\-\:]([a-z])/g,_n=function(i){return i[1].toUpperCase()};["accent-height","alignment-baseline","arabic-form","baseline-shift","cap-height","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","dominant-baseline","enable-background","fill-opacity","fill-rule","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","horiz-adv-x","horiz-origin-x","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","overline-position","overline-thickness","paint-order","panose-1","pointer-events","rendering-intent","shape-rendering","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-rendering","underline-position","underline-thickness","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","vector-effect","vert-adv-y","vert-origin-x","vert-origin-y","word-spacing","writing-mode","xmlns:xlink","x-height"].forEach(function(i){var a=i.replace(zn,_n);qe[a]=new We(a,gi,!1,i,null,!1,!1)}),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach(function(i){var a=i.replace(zn,_n);qe[a]=new We(a,gi,!1,i,"http://www.w3.org/1999/xlink",!1,!1)}),["xml:base","xml:lang","xml:space"].forEach(function(i){var a=i.replace(zn,_n);qe[a]=new We(a,gi,!1,i,"http://www.w3.org/XML/1998/namespace",!1,!1)}),["tabIndex","crossOrigin"].forEach(function(i){qe[i]=new We(i,gi,!1,i.toLowerCase(),null,!1,!1)});var Jn="xlinkHref";qe[Jn]=new We("xlinkHref",gi,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach(function(i){qe[i]=new We(i,gi,!1,i.toLowerCase(),null,!0,!0)});var Er=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*\:/i,oo=!1;function Io(i){!oo&&Er.test(i)&&(oo=!0,u("A future version of React will block javascript: URLs as a security precaution. Use event handlers instead if you can. If you need to generate unsafe HTML try using dangerouslySetInnerHTML instead. React was passed %s.",JSON.stringify(i)))}function Mi(i,a,d,h){if(h.mustUseProperty){var y=h.propertyName;return i[y]}else{Ai(d,a),h.sanitizeURL&&Io(""+d);var b=h.attributeName,T=null;if(h.type===Ni){if(i.hasAttribute(b)){var x=i.getAttribute(b);return x===""?!0:tt(a,d,h,!1)?x:x===""+d?d:x}}else if(i.hasAttribute(b)){if(tt(a,d,h,!1))return i.getAttribute(b);if(h.type===hr)return d;T=i.getAttribute(b)}return tt(a,d,h,!1)?T===null?d:T:T===""+d?d:T}}function fa(i,a,d,h){{if(!Re(a))return;if(!i.hasAttribute(a))return d===void 0?void 0:null;var y=i.getAttribute(a);return Ai(d,a),y===""+d?d:y}}function Ur(i,a,d,h){var y=Ct(a);if(!Ge(a,y,h)){if(tt(a,d,y,h)&&(d=null),h||y===null){if(Re(a)){var b=a;d===null?i.removeAttribute(b):(Ai(d,a),i.setAttribute(b,""+d))}return}var T=y.mustUseProperty;if(T){var x=y.propertyName;if(d===null){var I=y.type;i[x]=I===hr?!1:""}else i[x]=d;return}var D=y.attributeName,$=y.attributeNamespace;if(d===null)i.removeAttribute(D);else{var Z=y.type,X;Z===hr||Z===Ni&&d===!0?X="":(Ai(d,D),X=""+d,y.sanitizeURL&&Io(X.toString())),$?i.setAttributeNS($,D,X):i.setAttribute(D,X)}}}var yi=Symbol.for("react.element"),_i=Symbol.for("react.portal"),ao=Symbol.for("react.fragment"),ha=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),Ee=Symbol.for("react.provider"),$e=Symbol.for("react.context"),Xe=Symbol.for("react.forward_ref"),qt=Symbol.for("react.suspense"),kt=Symbol.for("react.suspense_list"),Bt=Symbol.for("react.memo"),Rt=Symbol.for("react.lazy"),Xr=Symbol.for("react.scope"),pr=Symbol.for("react.debug_trace_mode"),vr=Symbol.for("react.offscreen"),so=Symbol.for("react.legacy_hidden"),ol=Symbol.for("react.cache"),Tf=Symbol.for("react.tracing_marker"),An=Symbol.iterator,s_="@@iterator";function Ps(i){if(i===null||typeof i!="object")return null;var a=An&&i[An]||i[s_];return typeof a=="function"?a:null}var dn=Object.assign,al=0,qu,Rf,Gu,pa,Ip,Vo,Op;function Np(){}Np.__reactDisabledLog=!0;function eg(){{if(al===0){qu=console.log,Rf=console.info,Gu=console.warn,pa=console.error,Ip=console.group,Vo=console.groupCollapsed,Op=console.groupEnd;var i={configurable:!0,enumerable:!0,value:Np,writable:!0};Object.defineProperties(console,{info:i,log:i,warn:i,error:i,group:i,groupCollapsed:i,groupEnd:i})}al++}}function xf(){{if(al--,al===0){var i={configurable:!0,enumerable:!0,writable:!0};Object.defineProperties(console,{log:dn({},i,{value:qu}),info:dn({},i,{value:Rf}),warn:dn({},i,{value:Gu}),error:dn({},i,{value:pa}),group:dn({},i,{value:Ip}),groupCollapsed:dn({},i,{value:Vo}),groupEnd:dn({},i,{value:Op})})}al<0&&u("disabledDepth fell below zero. This is a bug in React. Please file an issue.")}}var Vu=t.ReactCurrentDispatcher,Ds;function Ko(i,a,d){{if(Ds===void 0)try{throw Error()}catch(y){var h=y.stack.trim().match(/\n( *(at )?)/);Ds=h&&h[1]||""}return`
105
+ `+Ds+i}}var Ku=!1,Wu;{var Yu=typeof WeakMap=="function"?WeakMap:Map;Wu=new Yu}function Af(i,a){if(!i||Ku)return"";{var d=Wu.get(i);if(d!==void 0)return d}var h;Ku=!0;var y=Error.prepareStackTrace;Error.prepareStackTrace=void 0;var b;b=Vu.current,Vu.current=null,eg();try{if(a){var T=function(){throw Error()};if(Object.defineProperty(T.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(T,[])}catch(fe){h=fe}Reflect.construct(i,[],T)}else{try{T.call()}catch(fe){h=fe}i.call(T.prototype)}}else{try{throw Error()}catch(fe){h=fe}i()}}catch(fe){if(fe&&h&&typeof fe.stack=="string"){for(var x=fe.stack.split(`
106
+ `),I=h.stack.split(`
107
+ `),D=x.length-1,$=I.length-1;D>=1&&$>=0&&x[D]!==I[$];)$--;for(;D>=1&&$>=0;D--,$--)if(x[D]!==I[$]){if(D!==1||$!==1)do if(D--,$--,$<0||x[D]!==I[$]){var Z=`
108
+ `+x[D].replace(" at new "," at ");return i.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",i.displayName)),typeof i=="function"&&Wu.set(i,Z),Z}while(D>=1&&$>=0);break}}}finally{Ku=!1,Vu.current=b,xf(),Error.prepareStackTrace=y}var X=i?i.displayName||i.name:"",ce=X?Ko(X):"";return typeof i=="function"&&Wu.set(i,ce),ce}function kf(i,a,d){return Af(i,!0)}function jl(i,a,d){return Af(i,!1)}function l_(i){var a=i.prototype;return!!(a&&a.isReactComponent)}function sl(i,a,d){if(i==null)return"";if(typeof i=="function")return Af(i,l_(i));if(typeof i=="string")return Ko(i);switch(i){case qt:return Ko("Suspense");case kt:return Ko("SuspenseList")}if(typeof i=="object")switch(i.$$typeof){case Xe:return jl(i.render);case Bt:return sl(i.type,a,d);case Rt:{var h=i,y=h._payload,b=h._init;try{return sl(b(y),a,d)}catch{}}}return""}function Ln(i){switch(i._debugOwner&&i._debugOwner.type,i._debugSource,i.tag){case S:return Ko(i.type);case Te:return Ko("Lazy");case H:return Ko("Suspense");case Me:return Ko("SuspenseList");case p:case g:case Q:return jl(i.type);case j:return jl(i.type.render);case v:return kf(i.type);default:return""}}function If(i){try{var a="",d=i;do a+=Ln(d),d=d.return;while(d);return a}catch(h){return`
109
+ Error generating stack: `+h.message+`
110
+ `+h.stack}}function nd(i,a,d){var h=i.displayName;if(h)return h;var y=a.displayName||a.name||"";return y!==""?d+"("+y+")":d}function Of(i){return i.displayName||"Context"}function kn(i){if(i==null)return null;if(typeof i.tag=="number"&&u("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."),typeof i=="function")return i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case ao:return"Fragment";case _i:return"Portal";case q:return"Profiler";case ha:return"StrictMode";case qt:return"Suspense";case kt:return"SuspenseList"}if(typeof i=="object")switch(i.$$typeof){case $e:var a=i;return Of(a)+".Consumer";case Ee:var d=i;return Of(d._context)+".Provider";case Xe:return nd(i,i.render,"ForwardRef");case Bt:var h=i.displayName||null;return h!==null?h:kn(i.type)||"Memo";case Rt:{var y=i,b=y._payload,T=y._init;try{return kn(T(b))}catch{return null}}}return null}function Nf(i,a,d){var h=a.displayName||a.name||"";return i.displayName||(h!==""?d+"("+h+")":d)}function Mf(i){return i.displayName||"Context"}function Kt(i){var a=i.tag,d=i.type;switch(a){case ye:return"Cache";case P:var h=d;return Mf(h)+".Consumer";case L:var y=d;return Mf(y._context)+".Provider";case ot:return"DehydratedFragment";case j:return Nf(d,d.render,"ForwardRef");case k:return"Fragment";case S:return d;case w:return"Portal";case E:return"Root";case A:return"Text";case Te:return kn(d);case M:return d===ha?"StrictMode":"Mode";case te:return"Offscreen";case U:return"Profiler";case je:return"Scope";case H:return"Suspense";case Me:return"SuspenseList";case ve:return"TracingMarker";case v:case p:case Ve:case g:case W:case Q:if(typeof d=="function")return d.displayName||d.name||null;if(typeof d=="string")return d;break}return null}var rd=t.ReactDebugCurrentFrame,Fr=null,va=!1;function Wo(){{if(Fr===null)return null;var i=Fr._debugOwner;if(i!==null&&typeof i<"u")return Kt(i)}return null}function Qu(){return Fr===null?"":If(Fr)}function Jr(){rd.getCurrentStack=null,Fr=null,va=!1}function qn(i){rd.getCurrentStack=i===null?null:Qu,Fr=i,va=!1}function tg(){return Fr}function ma(i){va=i}function qi(i){return""+i}function ll(i){switch(typeof i){case"boolean":case"number":case"string":case"undefined":return i;case"object":return Ii(i),i;default:return""}}var ng={button:!0,checkbox:!0,image:!0,hidden:!0,radio:!0,reset:!0,submit:!0};function zl(i,a){ng[a.type]||a.onChange||a.onInput||a.readOnly||a.disabled||a.value==null||u("You provided a `value` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultValue`. Otherwise, set either `onChange` or `readOnly`."),a.onChange||a.readOnly||a.disabled||a.checked==null||u("You provided a `checked` prop to a form field without an `onChange` handler. This will render a read-only field. If the field should be mutable use `defaultChecked`. Otherwise, set either `onChange` or `readOnly`.")}function Xu(i){var a=i.type,d=i.nodeName;return d&&d.toLowerCase()==="input"&&(a==="checkbox"||a==="radio")}function rg(i){return i._valueTracker}function is(i){i._valueTracker=null}function Ju(i){var a="";return i&&(Xu(i)?a=i.checked?"true":"false":a=i.value),a}function Zu(i){var a=Xu(i)?"checked":"value",d=Object.getOwnPropertyDescriptor(i.constructor.prototype,a);Ii(i[a]);var h=""+i[a];if(!(i.hasOwnProperty(a)||typeof d>"u"||typeof d.get!="function"||typeof d.set!="function")){var y=d.get,b=d.set;Object.defineProperty(i,a,{configurable:!0,get:function(){return y.call(this)},set:function(x){Ii(x),h=""+x,b.call(this,x)}}),Object.defineProperty(i,a,{enumerable:d.enumerable});var T={getValue:function(){return h},setValue:function(x){Ii(x),h=""+x},stopTracking:function(){is(i),delete i[a]}};return T}}function os(i){rg(i)||(i._valueTracker=Zu(i))}function Pf(i){if(!i)return!1;var a=rg(i);if(!a)return!0;var d=a.getValue(),h=Ju(i);return h!==d?(a.setValue(h),!0):!1}function ec(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var tc=!1,id=!1,Df=!1,Mp=!1;function Ls(i){var a=i.type==="checkbox"||i.type==="radio";return a?i.checked!=null:i.value!=null}function O(i,a){var d=i,h=a.checked,y=dn({},a,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:h??d._wrapperState.initialChecked});return y}function G(i,a){zl("input",a),a.checked!==void 0&&a.defaultChecked!==void 0&&!id&&(u("%s contains an input of type %s with both checked and defaultChecked props. Input elements must be either controlled or uncontrolled (specify either the checked prop, or the defaultChecked prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",Wo()||"A component",a.type),id=!0),a.value!==void 0&&a.defaultValue!==void 0&&!tc&&(u("%s contains an input of type %s with both value and defaultValue props. Input elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled input element and remove one of these props. More info: https://reactjs.org/link/controlled-components",Wo()||"A component",a.type),tc=!0);var d=i,h=a.defaultValue==null?"":a.defaultValue;d._wrapperState={initialChecked:a.checked!=null?a.checked:a.defaultChecked,initialValue:ll(a.value!=null?a.value:h),controlled:Ls(a)}}function de(i,a){var d=i,h=a.checked;h!=null&&Ur(d,"checked",h,!1)}function _e(i,a){var d=i;{var h=Ls(a);!d._wrapperState.controlled&&h&&!Mp&&(u("A component is changing an uncontrolled input to be controlled. This is likely caused by the value changing from undefined to a defined value, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Mp=!0),d._wrapperState.controlled&&!h&&!Df&&(u("A component is changing a controlled input to be uncontrolled. This is likely caused by the value changing from a defined to undefined, which should not happen. Decide between using a controlled or uncontrolled input element for the lifetime of the component. More info: https://reactjs.org/link/controlled-components"),Df=!0)}de(i,a);var y=ll(a.value),b=a.type;if(y!=null)b==="number"?(y===0&&d.value===""||d.value!=y)&&(d.value=qi(y)):d.value!==qi(y)&&(d.value=qi(y));else if(b==="submit"||b==="reset"){d.removeAttribute("value");return}a.hasOwnProperty("value")?Mt(d,a.type,y):a.hasOwnProperty("defaultValue")&&Mt(d,a.type,ll(a.defaultValue)),a.checked==null&&a.defaultChecked!=null&&(d.defaultChecked=!!a.defaultChecked)}function Be(i,a,d){var h=i;if(a.hasOwnProperty("value")||a.hasOwnProperty("defaultValue")){var y=a.type,b=y==="submit"||y==="reset";if(b&&(a.value===void 0||a.value===null))return;var T=qi(h._wrapperState.initialValue);d||T!==h.value&&(h.value=T),h.defaultValue=T}var x=h.name;x!==""&&(h.name=""),h.defaultChecked=!h.defaultChecked,h.defaultChecked=!!h._wrapperState.initialChecked,x!==""&&(h.name=x)}function Ut(i,a){var d=i;_e(d,a),et(d,a)}function et(i,a){var d=a.name;if(a.type==="radio"&&d!=null){for(var h=i;h.parentNode;)h=h.parentNode;Ai(d,"name");for(var y=h.querySelectorAll("input[name="+JSON.stringify(""+d)+'][type="radio"]'),b=0;b<y.length;b++){var T=y[b];if(!(T===i||T.form!==i.form)){var x=dT(T);if(!x)throw new Error("ReactDOMInput: Mixing React and non-React radio inputs with the same `name` is not supported.");Pf(T),_e(T,x)}}}}function Mt(i,a,d){(a!=="number"||ec(i.ownerDocument)!==i)&&(d==null?i.defaultValue=qi(i._wrapperState.initialValue):i.defaultValue!==qi(d)&&(i.defaultValue=qi(d)))}var fn=!1,In=!1,ur=!1;function Zn(i,a){a.value==null&&(typeof a.children=="object"&&a.children!==null?n.Children.forEach(a.children,function(d){d!=null&&(typeof d=="string"||typeof d=="number"||In||(In=!0,u("Cannot infer the option value of complex children. Pass a `value` prop or use a plain string as children to <option>.")))}):a.dangerouslySetInnerHTML!=null&&(ur||(ur=!0,u("Pass a `value` prop if you set dangerouslyInnerHTML so React knows which value should be selected.")))),a.selected!=null&&!fn&&(u("Use the `defaultValue` or `value` props on <select> instead of setting `selected` on <option>."),fn=!0)}function cr(i,a){a.value!=null&&i.setAttribute("value",qi(ll(a.value)))}var mr=Array.isArray;function Cn(i){return mr(i)}var ql;ql=!1;function Lf(){var i=Wo();return i?`
111
+
112
+ Check the render method of \``+i+"`.":""}var Pp=["value","defaultValue"];function u_(i){{zl("select",i);for(var a=0;a<Pp.length;a++){var d=Pp[a];if(i[d]!=null){var h=Cn(i[d]);i.multiple&&!h?u("The `%s` prop supplied to <select> must be an array if `multiple` is true.%s",d,Lf()):!i.multiple&&h&&u("The `%s` prop supplied to <select> must be a scalar value if `multiple` is false.%s",d,Lf())}}}}function Us(i,a,d,h){var y=i.options;if(a){for(var b=d,T={},x=0;x<b.length;x++)T["$"+b[x]]=!0;for(var I=0;I<y.length;I++){var D=T.hasOwnProperty("$"+y[I].value);y[I].selected!==D&&(y[I].selected=D),D&&h&&(y[I].defaultSelected=!0)}}else{for(var $=qi(ll(d)),Z=null,X=0;X<y.length;X++){if(y[X].value===$){y[X].selected=!0,h&&(y[X].defaultSelected=!0);return}Z===null&&!y[X].disabled&&(Z=y[X])}Z!==null&&(Z.selected=!0)}}function Dp(i,a){return dn({},a,{value:void 0})}function Lp(i,a){var d=i;u_(a),d._wrapperState={wasMultiple:!!a.multiple},a.value!==void 0&&a.defaultValue!==void 0&&!ql&&(u("Select elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled select element and remove one of these props. More info: https://reactjs.org/link/controlled-components"),ql=!0)}function c_(i,a){var d=i;d.multiple=!!a.multiple;var h=a.value;h!=null?Us(d,!!a.multiple,h,!1):a.defaultValue!=null&&Us(d,!!a.multiple,a.defaultValue,!0)}function fk(i,a){var d=i,h=d._wrapperState.wasMultiple;d._wrapperState.wasMultiple=!!a.multiple;var y=a.value;y!=null?Us(d,!!a.multiple,y,!1):h!==!!a.multiple&&(a.defaultValue!=null?Us(d,!!a.multiple,a.defaultValue,!0):Us(d,!!a.multiple,a.multiple?[]:"",!1))}function hk(i,a){var d=i,h=a.value;h!=null&&Us(d,!!a.multiple,h,!1)}var d_=!1;function f_(i,a){var d=i;if(a.dangerouslySetInnerHTML!=null)throw new Error("`dangerouslySetInnerHTML` does not make sense on <textarea>.");var h=dn({},a,{value:void 0,defaultValue:void 0,children:qi(d._wrapperState.initialValue)});return h}function $w(i,a){var d=i;zl("textarea",a),a.value!==void 0&&a.defaultValue!==void 0&&!d_&&(u("%s contains a textarea with both value and defaultValue props. Textarea elements must be either controlled or uncontrolled (specify either the value prop, or the defaultValue prop, but not both). Decide between using a controlled or uncontrolled textarea and remove one of these props. More info: https://reactjs.org/link/controlled-components",Wo()||"A component"),d_=!0);var h=a.value;if(h==null){var y=a.children,b=a.defaultValue;if(y!=null){u("Use the `defaultValue` or `value` props instead of setting children on <textarea>.");{if(b!=null)throw new Error("If you supply `defaultValue` on a <textarea>, do not pass children.");if(Cn(y)){if(y.length>1)throw new Error("<textarea> can only have at most one child.");y=y[0]}b=y}}b==null&&(b=""),h=b}d._wrapperState={initialValue:ll(h)}}function Bw(i,a){var d=i,h=ll(a.value),y=ll(a.defaultValue);if(h!=null){var b=qi(h);b!==d.value&&(d.value=b),a.defaultValue==null&&d.defaultValue!==b&&(d.defaultValue=b)}y!=null&&(d.defaultValue=qi(y))}function jw(i,a){var d=i,h=d.textContent;h===d._wrapperState.initialValue&&h!==""&&h!==null&&(d.value=h)}function h_(i,a){Bw(i,a)}var Gl="http://www.w3.org/1999/xhtml",pk="http://www.w3.org/1998/Math/MathML",p_="http://www.w3.org/2000/svg";function ig(i){switch(i){case"svg":return p_;case"math":return pk;default:return Gl}}function v_(i,a){return i==null||i===Gl?ig(a):i===p_&&a==="foreignObject"?Gl:i}var vk=function(i){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(a,d,h,y){MSApp.execUnsafeLocalFunction(function(){return i(a,d,h,y)})}:i},og,zw=vk(function(i,a){if(i.namespaceURI===p_&&!("innerHTML"in i)){og=og||document.createElement("div"),og.innerHTML="<svg>"+a.valueOf().toString()+"</svg>";for(var d=og.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;d.firstChild;)i.appendChild(d.firstChild);return}i.innerHTML=a}),ga=1,Vl=3,Ei=8,Fs=9,od=11,ag=function(i,a){if(a){var d=i.firstChild;if(d&&d===i.lastChild&&d.nodeType===Vl){d.nodeValue=a;return}}i.textContent=a},qw={animation:["animationDelay","animationDirection","animationDuration","animationFillMode","animationIterationCount","animationName","animationPlayState","animationTimingFunction"],background:["backgroundAttachment","backgroundClip","backgroundColor","backgroundImage","backgroundOrigin","backgroundPositionX","backgroundPositionY","backgroundRepeat","backgroundSize"],backgroundPosition:["backgroundPositionX","backgroundPositionY"],border:["borderBottomColor","borderBottomStyle","borderBottomWidth","borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth","borderLeftColor","borderLeftStyle","borderLeftWidth","borderRightColor","borderRightStyle","borderRightWidth","borderTopColor","borderTopStyle","borderTopWidth"],borderBlockEnd:["borderBlockEndColor","borderBlockEndStyle","borderBlockEndWidth"],borderBlockStart:["borderBlockStartColor","borderBlockStartStyle","borderBlockStartWidth"],borderBottom:["borderBottomColor","borderBottomStyle","borderBottomWidth"],borderColor:["borderBottomColor","borderLeftColor","borderRightColor","borderTopColor"],borderImage:["borderImageOutset","borderImageRepeat","borderImageSlice","borderImageSource","borderImageWidth"],borderInlineEnd:["borderInlineEndColor","borderInlineEndStyle","borderInlineEndWidth"],borderInlineStart:["borderInlineStartColor","borderInlineStartStyle","borderInlineStartWidth"],borderLeft:["borderLeftColor","borderLeftStyle","borderLeftWidth"],borderRadius:["borderBottomLeftRadius","borderBottomRightRadius","borderTopLeftRadius","borderTopRightRadius"],borderRight:["borderRightColor","borderRightStyle","borderRightWidth"],borderStyle:["borderBottomStyle","borderLeftStyle","borderRightStyle","borderTopStyle"],borderTop:["borderTopColor","borderTopStyle","borderTopWidth"],borderWidth:["borderBottomWidth","borderLeftWidth","borderRightWidth","borderTopWidth"],columnRule:["columnRuleColor","columnRuleStyle","columnRuleWidth"],columns:["columnCount","columnWidth"],flex:["flexBasis","flexGrow","flexShrink"],flexFlow:["flexDirection","flexWrap"],font:["fontFamily","fontFeatureSettings","fontKerning","fontLanguageOverride","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition","fontWeight","lineHeight"],fontVariant:["fontVariantAlternates","fontVariantCaps","fontVariantEastAsian","fontVariantLigatures","fontVariantNumeric","fontVariantPosition"],gap:["columnGap","rowGap"],grid:["gridAutoColumns","gridAutoFlow","gridAutoRows","gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],gridArea:["gridColumnEnd","gridColumnStart","gridRowEnd","gridRowStart"],gridColumn:["gridColumnEnd","gridColumnStart"],gridColumnGap:["columnGap"],gridGap:["columnGap","rowGap"],gridRow:["gridRowEnd","gridRowStart"],gridRowGap:["rowGap"],gridTemplate:["gridTemplateAreas","gridTemplateColumns","gridTemplateRows"],listStyle:["listStyleImage","listStylePosition","listStyleType"],margin:["marginBottom","marginLeft","marginRight","marginTop"],marker:["markerEnd","markerMid","markerStart"],mask:["maskClip","maskComposite","maskImage","maskMode","maskOrigin","maskPositionX","maskPositionY","maskRepeat","maskSize"],maskPosition:["maskPositionX","maskPositionY"],outline:["outlineColor","outlineStyle","outlineWidth"],overflow:["overflowX","overflowY"],padding:["paddingBottom","paddingLeft","paddingRight","paddingTop"],placeContent:["alignContent","justifyContent"],placeItems:["alignItems","justifyItems"],placeSelf:["alignSelf","justifySelf"],textDecoration:["textDecorationColor","textDecorationLine","textDecorationStyle"],textEmphasis:["textEmphasisColor","textEmphasisStyle"],transition:["transitionDelay","transitionDuration","transitionProperty","transitionTimingFunction"],wordWrap:["overflowWrap"]},Uf={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};function Gw(i,a){return i+a.charAt(0).toUpperCase()+a.substring(1)}var Vw=["Webkit","ms","Moz","O"];Object.keys(Uf).forEach(function(i){Vw.forEach(function(a){Uf[Gw(a,i)]=Uf[i]})});function sg(i,a,d){var h=a==null||typeof a=="boolean"||a==="";return h?"":!d&&typeof a=="number"&&a!==0&&!(Uf.hasOwnProperty(i)&&Uf[i])?a+"px":(ki(a,i),(""+a).trim())}var Ff=/([A-Z])/g,mk=/^ms-/;function gk(i){return i.replace(Ff,"-$1").toLowerCase().replace(mk,"-ms-")}var Kw=function(){};{var Ww=/^(?:webkit|moz|o)[A-Z]/,Yw=/^-ms-/,Up=/-(.)/g,Hf=/;\s*$/,$f={},Bf={},Qw=!1,m_=!1,g_=function(i){return i.replace(Up,function(a,d){return d.toUpperCase()})},y_=function(i){$f.hasOwnProperty(i)&&$f[i]||($f[i]=!0,u("Unsupported style property %s. Did you mean %s?",i,g_(i.replace(Yw,"ms-"))))},Xw=function(i){$f.hasOwnProperty(i)&&$f[i]||($f[i]=!0,u("Unsupported vendor-prefixed style property %s. Did you mean %s?",i,i.charAt(0).toUpperCase()+i.slice(1)))},Jw=function(i,a){Bf.hasOwnProperty(a)&&Bf[a]||(Bf[a]=!0,u(`Style property values shouldn't contain a semicolon. Try "%s: %s" instead.`,i,a.replace(Hf,"")))},Zw=function(i,a){Qw||(Qw=!0,u("`NaN` is an invalid value for the `%s` css style property.",i))},yk=function(i,a){m_||(m_=!0,u("`Infinity` is an invalid value for the `%s` css style property.",i))};Kw=function(i,a){i.indexOf("-")>-1?y_(i):Ww.test(i)?Xw(i):Hf.test(a)&&Jw(i,a),typeof a=="number"&&(isNaN(a)?Zw(i,a):isFinite(a)||yk(i,a))}}var _k=Kw;function Ek(i){{var a="",d="";for(var h in i)if(i.hasOwnProperty(h)){var y=i[h];if(y!=null){var b=h.indexOf("--")===0;a+=d+(b?h:gk(h))+":",a+=sg(h,y,b),d=";"}}return a||null}}function eS(i,a){var d=i.style;for(var h in a)if(a.hasOwnProperty(h)){var y=h.indexOf("--")===0;y||_k(h,a[h]);var b=sg(h,a[h],y);h==="float"&&(h="cssFloat"),y?d.setProperty(h,b):d[h]=b}}function bk(i){return i==null||typeof i=="boolean"||i===""}function as(i){var a={};for(var d in i)for(var h=qw[d]||[d],y=0;y<h.length;y++)a[h[y]]=d;return a}function Fp(i,a){{if(!a)return;var d=as(i),h=as(a),y={};for(var b in d){var T=d[b],x=h[b];if(x&&T!==x){var I=T+","+x;if(y[I])continue;y[I]=!0,u("%s a style property during rerender (%s) when a conflicting property is set (%s) can lead to styling bugs. To avoid this, don't mix shorthand and non-shorthand properties for the same value; instead, replace the shorthand with separate values.",bk(i[T])?"Removing":"Updating",T,x)}}}}var tS={area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0},nS=dn({menuitem:!0},tS),rS="__html";function lg(i,a){if(a){if(nS[i]&&(a.children!=null||a.dangerouslySetInnerHTML!=null))throw new Error(i+" is a void element tag and must neither have `children` nor use `dangerouslySetInnerHTML`.");if(a.dangerouslySetInnerHTML!=null){if(a.children!=null)throw new Error("Can only set one of `children` or `props.dangerouslySetInnerHTML`.");if(typeof a.dangerouslySetInnerHTML!="object"||!(rS in a.dangerouslySetInnerHTML))throw new Error("`props.dangerouslySetInnerHTML` must be in the form `{__html: ...}`. Please visit https://reactjs.org/link/dangerously-set-inner-html for more information.")}if(!a.suppressContentEditableWarning&&a.contentEditable&&a.children!=null&&u("A component is `contentEditable` and contains `children` managed by React. It is now your responsibility to guarantee that none of those nodes are unexpectedly modified or duplicated. This is probably not intentional."),a.style!=null&&typeof a.style!="object")throw new Error("The `style` prop expects a mapping from style properties to values, not a string. For example, style={{marginRight: spacing + 'em'}} when using JSX.")}}function Kl(i,a){if(i.indexOf("-")===-1)return typeof a.is=="string";switch(i){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var ug={accept:"accept",acceptcharset:"acceptCharset","accept-charset":"acceptCharset",accesskey:"accessKey",action:"action",allowfullscreen:"allowFullScreen",alt:"alt",as:"as",async:"async",autocapitalize:"autoCapitalize",autocomplete:"autoComplete",autocorrect:"autoCorrect",autofocus:"autoFocus",autoplay:"autoPlay",autosave:"autoSave",capture:"capture",cellpadding:"cellPadding",cellspacing:"cellSpacing",challenge:"challenge",charset:"charSet",checked:"checked",children:"children",cite:"cite",class:"className",classid:"classID",classname:"className",cols:"cols",colspan:"colSpan",content:"content",contenteditable:"contentEditable",contextmenu:"contextMenu",controls:"controls",controlslist:"controlsList",coords:"coords",crossorigin:"crossOrigin",dangerouslysetinnerhtml:"dangerouslySetInnerHTML",data:"data",datetime:"dateTime",default:"default",defaultchecked:"defaultChecked",defaultvalue:"defaultValue",defer:"defer",dir:"dir",disabled:"disabled",disablepictureinpicture:"disablePictureInPicture",disableremoteplayback:"disableRemotePlayback",download:"download",draggable:"draggable",enctype:"encType",enterkeyhint:"enterKeyHint",for:"htmlFor",form:"form",formmethod:"formMethod",formaction:"formAction",formenctype:"formEncType",formnovalidate:"formNoValidate",formtarget:"formTarget",frameborder:"frameBorder",headers:"headers",height:"height",hidden:"hidden",high:"high",href:"href",hreflang:"hrefLang",htmlfor:"htmlFor",httpequiv:"httpEquiv","http-equiv":"httpEquiv",icon:"icon",id:"id",imagesizes:"imageSizes",imagesrcset:"imageSrcSet",innerhtml:"innerHTML",inputmode:"inputMode",integrity:"integrity",is:"is",itemid:"itemID",itemprop:"itemProp",itemref:"itemRef",itemscope:"itemScope",itemtype:"itemType",keyparams:"keyParams",keytype:"keyType",kind:"kind",label:"label",lang:"lang",list:"list",loop:"loop",low:"low",manifest:"manifest",marginwidth:"marginWidth",marginheight:"marginHeight",max:"max",maxlength:"maxLength",media:"media",mediagroup:"mediaGroup",method:"method",min:"min",minlength:"minLength",multiple:"multiple",muted:"muted",name:"name",nomodule:"noModule",nonce:"nonce",novalidate:"noValidate",open:"open",optimum:"optimum",pattern:"pattern",placeholder:"placeholder",playsinline:"playsInline",poster:"poster",preload:"preload",profile:"profile",radiogroup:"radioGroup",readonly:"readOnly",referrerpolicy:"referrerPolicy",rel:"rel",required:"required",reversed:"reversed",role:"role",rows:"rows",rowspan:"rowSpan",sandbox:"sandbox",scope:"scope",scoped:"scoped",scrolling:"scrolling",seamless:"seamless",selected:"selected",shape:"shape",size:"size",sizes:"sizes",span:"span",spellcheck:"spellCheck",src:"src",srcdoc:"srcDoc",srclang:"srcLang",srcset:"srcSet",start:"start",step:"step",style:"style",summary:"summary",tabindex:"tabIndex",target:"target",title:"title",type:"type",usemap:"useMap",value:"value",width:"width",wmode:"wmode",wrap:"wrap",about:"about",accentheight:"accentHeight","accent-height":"accentHeight",accumulate:"accumulate",additive:"additive",alignmentbaseline:"alignmentBaseline","alignment-baseline":"alignmentBaseline",allowreorder:"allowReorder",alphabetic:"alphabetic",amplitude:"amplitude",arabicform:"arabicForm","arabic-form":"arabicForm",ascent:"ascent",attributename:"attributeName",attributetype:"attributeType",autoreverse:"autoReverse",azimuth:"azimuth",basefrequency:"baseFrequency",baselineshift:"baselineShift","baseline-shift":"baselineShift",baseprofile:"baseProfile",bbox:"bbox",begin:"begin",bias:"bias",by:"by",calcmode:"calcMode",capheight:"capHeight","cap-height":"capHeight",clip:"clip",clippath:"clipPath","clip-path":"clipPath",clippathunits:"clipPathUnits",cliprule:"clipRule","clip-rule":"clipRule",color:"color",colorinterpolation:"colorInterpolation","color-interpolation":"colorInterpolation",colorinterpolationfilters:"colorInterpolationFilters","color-interpolation-filters":"colorInterpolationFilters",colorprofile:"colorProfile","color-profile":"colorProfile",colorrendering:"colorRendering","color-rendering":"colorRendering",contentscripttype:"contentScriptType",contentstyletype:"contentStyleType",cursor:"cursor",cx:"cx",cy:"cy",d:"d",datatype:"datatype",decelerate:"decelerate",descent:"descent",diffuseconstant:"diffuseConstant",direction:"direction",display:"display",divisor:"divisor",dominantbaseline:"dominantBaseline","dominant-baseline":"dominantBaseline",dur:"dur",dx:"dx",dy:"dy",edgemode:"edgeMode",elevation:"elevation",enablebackground:"enableBackground","enable-background":"enableBackground",end:"end",exponent:"exponent",externalresourcesrequired:"externalResourcesRequired",fill:"fill",fillopacity:"fillOpacity","fill-opacity":"fillOpacity",fillrule:"fillRule","fill-rule":"fillRule",filter:"filter",filterres:"filterRes",filterunits:"filterUnits",floodopacity:"floodOpacity","flood-opacity":"floodOpacity",floodcolor:"floodColor","flood-color":"floodColor",focusable:"focusable",fontfamily:"fontFamily","font-family":"fontFamily",fontsize:"fontSize","font-size":"fontSize",fontsizeadjust:"fontSizeAdjust","font-size-adjust":"fontSizeAdjust",fontstretch:"fontStretch","font-stretch":"fontStretch",fontstyle:"fontStyle","font-style":"fontStyle",fontvariant:"fontVariant","font-variant":"fontVariant",fontweight:"fontWeight","font-weight":"fontWeight",format:"format",from:"from",fx:"fx",fy:"fy",g1:"g1",g2:"g2",glyphname:"glyphName","glyph-name":"glyphName",glyphorientationhorizontal:"glyphOrientationHorizontal","glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphorientationvertical:"glyphOrientationVertical","glyph-orientation-vertical":"glyphOrientationVertical",glyphref:"glyphRef",gradienttransform:"gradientTransform",gradientunits:"gradientUnits",hanging:"hanging",horizadvx:"horizAdvX","horiz-adv-x":"horizAdvX",horizoriginx:"horizOriginX","horiz-origin-x":"horizOriginX",ideographic:"ideographic",imagerendering:"imageRendering","image-rendering":"imageRendering",in2:"in2",in:"in",inlist:"inlist",intercept:"intercept",k1:"k1",k2:"k2",k3:"k3",k4:"k4",k:"k",kernelmatrix:"kernelMatrix",kernelunitlength:"kernelUnitLength",kerning:"kerning",keypoints:"keyPoints",keysplines:"keySplines",keytimes:"keyTimes",lengthadjust:"lengthAdjust",letterspacing:"letterSpacing","letter-spacing":"letterSpacing",lightingcolor:"lightingColor","lighting-color":"lightingColor",limitingconeangle:"limitingConeAngle",local:"local",markerend:"markerEnd","marker-end":"markerEnd",markerheight:"markerHeight",markermid:"markerMid","marker-mid":"markerMid",markerstart:"markerStart","marker-start":"markerStart",markerunits:"markerUnits",markerwidth:"markerWidth",mask:"mask",maskcontentunits:"maskContentUnits",maskunits:"maskUnits",mathematical:"mathematical",mode:"mode",numoctaves:"numOctaves",offset:"offset",opacity:"opacity",operator:"operator",order:"order",orient:"orient",orientation:"orientation",origin:"origin",overflow:"overflow",overlineposition:"overlinePosition","overline-position":"overlinePosition",overlinethickness:"overlineThickness","overline-thickness":"overlineThickness",paintorder:"paintOrder","paint-order":"paintOrder",panose1:"panose1","panose-1":"panose1",pathlength:"pathLength",patterncontentunits:"patternContentUnits",patterntransform:"patternTransform",patternunits:"patternUnits",pointerevents:"pointerEvents","pointer-events":"pointerEvents",points:"points",pointsatx:"pointsAtX",pointsaty:"pointsAtY",pointsatz:"pointsAtZ",prefix:"prefix",preservealpha:"preserveAlpha",preserveaspectratio:"preserveAspectRatio",primitiveunits:"primitiveUnits",property:"property",r:"r",radius:"radius",refx:"refX",refy:"refY",renderingintent:"renderingIntent","rendering-intent":"renderingIntent",repeatcount:"repeatCount",repeatdur:"repeatDur",requiredextensions:"requiredExtensions",requiredfeatures:"requiredFeatures",resource:"resource",restart:"restart",result:"result",results:"results",rotate:"rotate",rx:"rx",ry:"ry",scale:"scale",security:"security",seed:"seed",shaperendering:"shapeRendering","shape-rendering":"shapeRendering",slope:"slope",spacing:"spacing",specularconstant:"specularConstant",specularexponent:"specularExponent",speed:"speed",spreadmethod:"spreadMethod",startoffset:"startOffset",stddeviation:"stdDeviation",stemh:"stemh",stemv:"stemv",stitchtiles:"stitchTiles",stopcolor:"stopColor","stop-color":"stopColor",stopopacity:"stopOpacity","stop-opacity":"stopOpacity",strikethroughposition:"strikethroughPosition","strikethrough-position":"strikethroughPosition",strikethroughthickness:"strikethroughThickness","strikethrough-thickness":"strikethroughThickness",string:"string",stroke:"stroke",strokedasharray:"strokeDasharray","stroke-dasharray":"strokeDasharray",strokedashoffset:"strokeDashoffset","stroke-dashoffset":"strokeDashoffset",strokelinecap:"strokeLinecap","stroke-linecap":"strokeLinecap",strokelinejoin:"strokeLinejoin","stroke-linejoin":"strokeLinejoin",strokemiterlimit:"strokeMiterlimit","stroke-miterlimit":"strokeMiterlimit",strokewidth:"strokeWidth","stroke-width":"strokeWidth",strokeopacity:"strokeOpacity","stroke-opacity":"strokeOpacity",suppresscontenteditablewarning:"suppressContentEditableWarning",suppresshydrationwarning:"suppressHydrationWarning",surfacescale:"surfaceScale",systemlanguage:"systemLanguage",tablevalues:"tableValues",targetx:"targetX",targety:"targetY",textanchor:"textAnchor","text-anchor":"textAnchor",textdecoration:"textDecoration","text-decoration":"textDecoration",textlength:"textLength",textrendering:"textRendering","text-rendering":"textRendering",to:"to",transform:"transform",typeof:"typeof",u1:"u1",u2:"u2",underlineposition:"underlinePosition","underline-position":"underlinePosition",underlinethickness:"underlineThickness","underline-thickness":"underlineThickness",unicode:"unicode",unicodebidi:"unicodeBidi","unicode-bidi":"unicodeBidi",unicoderange:"unicodeRange","unicode-range":"unicodeRange",unitsperem:"unitsPerEm","units-per-em":"unitsPerEm",unselectable:"unselectable",valphabetic:"vAlphabetic","v-alphabetic":"vAlphabetic",values:"values",vectoreffect:"vectorEffect","vector-effect":"vectorEffect",version:"version",vertadvy:"vertAdvY","vert-adv-y":"vertAdvY",vertoriginx:"vertOriginX","vert-origin-x":"vertOriginX",vertoriginy:"vertOriginY","vert-origin-y":"vertOriginY",vhanging:"vHanging","v-hanging":"vHanging",videographic:"vIdeographic","v-ideographic":"vIdeographic",viewbox:"viewBox",viewtarget:"viewTarget",visibility:"visibility",vmathematical:"vMathematical","v-mathematical":"vMathematical",vocab:"vocab",widths:"widths",wordspacing:"wordSpacing","word-spacing":"wordSpacing",writingmode:"writingMode","writing-mode":"writingMode",x1:"x1",x2:"x2",x:"x",xchannelselector:"xChannelSelector",xheight:"xHeight","x-height":"xHeight",xlinkactuate:"xlinkActuate","xlink:actuate":"xlinkActuate",xlinkarcrole:"xlinkArcrole","xlink:arcrole":"xlinkArcrole",xlinkhref:"xlinkHref","xlink:href":"xlinkHref",xlinkrole:"xlinkRole","xlink:role":"xlinkRole",xlinkshow:"xlinkShow","xlink:show":"xlinkShow",xlinktitle:"xlinkTitle","xlink:title":"xlinkTitle",xlinktype:"xlinkType","xlink:type":"xlinkType",xmlbase:"xmlBase","xml:base":"xmlBase",xmllang:"xmlLang","xml:lang":"xmlLang",xmlns:"xmlns","xml:space":"xmlSpace",xmlnsxlink:"xmlnsXlink","xmlns:xlink":"xmlnsXlink",xmlspace:"xmlSpace",y1:"y1",y2:"y2",y:"y",ychannelselector:"yChannelSelector",z:"z",zoomandpan:"zoomAndPan"},iS={"aria-current":0,"aria-description":0,"aria-details":0,"aria-disabled":0,"aria-hidden":0,"aria-invalid":0,"aria-keyshortcuts":0,"aria-label":0,"aria-roledescription":0,"aria-autocomplete":0,"aria-checked":0,"aria-expanded":0,"aria-haspopup":0,"aria-level":0,"aria-modal":0,"aria-multiline":0,"aria-multiselectable":0,"aria-orientation":0,"aria-placeholder":0,"aria-pressed":0,"aria-readonly":0,"aria-required":0,"aria-selected":0,"aria-sort":0,"aria-valuemax":0,"aria-valuemin":0,"aria-valuenow":0,"aria-valuetext":0,"aria-atomic":0,"aria-busy":0,"aria-live":0,"aria-relevant":0,"aria-dropeffect":0,"aria-grabbed":0,"aria-activedescendant":0,"aria-colcount":0,"aria-colindex":0,"aria-colspan":0,"aria-controls":0,"aria-describedby":0,"aria-errormessage":0,"aria-flowto":0,"aria-labelledby":0,"aria-owns":0,"aria-posinset":0,"aria-rowcount":0,"aria-rowindex":0,"aria-rowspan":0,"aria-setsize":0},Hs={},__=new RegExp("^(aria)-["+Et+"]*$"),Hp=new RegExp("^(aria)[A-Z]["+Et+"]*$");function E_(i,a){{if(yr.call(Hs,a)&&Hs[a])return!0;if(Hp.test(a)){var d="aria-"+a.slice(4).toLowerCase(),h=iS.hasOwnProperty(d)?d:null;if(h==null)return u("Invalid ARIA attribute `%s`. ARIA attributes follow the pattern aria-* and must be lowercase.",a),Hs[a]=!0,!0;if(a!==h)return u("Invalid ARIA attribute `%s`. Did you mean `%s`?",a,h),Hs[a]=!0,!0}if(__.test(a)){var y=a.toLowerCase(),b=iS.hasOwnProperty(y)?y:null;if(b==null)return Hs[a]=!0,!1;if(a!==b)return u("Unknown ARIA attribute `%s`. Did you mean `%s`?",a,b),Hs[a]=!0,!0}}return!0}function oS(i,a){{var d=[];for(var h in a){var y=E_(i,h);y||d.push(h)}var b=d.map(function(T){return"`"+T+"`"}).join(", ");d.length===1?u("Invalid aria prop %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",b,i):d.length>1&&u("Invalid aria props %s on <%s> tag. For details, see https://reactjs.org/link/invalid-aria-props",b,i)}}function cg(i,a){Kl(i,a)||oS(i,a)}var ad=!1;function b_(i,a){{if(i!=="input"&&i!=="textarea"&&i!=="select")return;a!=null&&a.value===null&&!ad&&(ad=!0,i==="select"&&a.multiple?u("`value` prop on `%s` should not be null. Consider using an empty array when `multiple` is set to `true` to clear the component or `undefined` for uncontrolled components.",i):u("`value` prop on `%s` should not be null. Consider using an empty string to clear the component or `undefined` for uncontrolled components.",i))}}var C_=function(){};{var Gi={},w_=/^on./,aS=/^on[^A-Z]/,sS=new RegExp("^(aria)-["+Et+"]*$"),lS=new RegExp("^(aria)[A-Z]["+Et+"]*$");C_=function(i,a,d,h){if(yr.call(Gi,a)&&Gi[a])return!0;var y=a.toLowerCase();if(y==="onfocusin"||y==="onfocusout")return u("React uses onFocus and onBlur instead of onFocusIn and onFocusOut. All React events are normalized to bubble, so onFocusIn and onFocusOut are not needed/supported by React."),Gi[a]=!0,!0;if(h!=null){var b=h.registrationNameDependencies,T=h.possibleRegistrationNames;if(b.hasOwnProperty(a))return!0;var x=T.hasOwnProperty(y)?T[y]:null;if(x!=null)return u("Invalid event handler property `%s`. Did you mean `%s`?",a,x),Gi[a]=!0,!0;if(w_.test(a))return u("Unknown event handler property `%s`. It will be ignored.",a),Gi[a]=!0,!0}else if(w_.test(a))return aS.test(a)&&u("Invalid event handler property `%s`. React events use the camelCase naming convention, for example `onClick`.",a),Gi[a]=!0,!0;if(sS.test(a)||lS.test(a))return!0;if(y==="innerhtml")return u("Directly setting property `innerHTML` is not permitted. For more information, lookup documentation on `dangerouslySetInnerHTML`."),Gi[a]=!0,!0;if(y==="aria")return u("The `aria` attribute is reserved for future use in React. Pass individual `aria-` attributes instead."),Gi[a]=!0,!0;if(y==="is"&&d!==null&&d!==void 0&&typeof d!="string")return u("Received a `%s` for a string attribute `is`. If this is expected, cast the value to a string.",typeof d),Gi[a]=!0,!0;if(typeof d=="number"&&isNaN(d))return u("Received NaN for the `%s` attribute. If this is expected, cast the value to a string.",a),Gi[a]=!0,!0;var I=Ct(a),D=I!==null&&I.type===Go;if(ug.hasOwnProperty(y)){var $=ug[y];if($!==a)return u("Invalid DOM property `%s`. Did you mean `%s`?",a,$),Gi[a]=!0,!0}else if(!D&&a!==y)return u("React does not recognize the `%s` prop on a DOM element. If you intentionally want it to appear in the DOM as a custom attribute, spell it as lowercase `%s` instead. If you accidentally passed it from a parent component, remove it from the DOM element.",a,y),Gi[a]=!0,!0;return typeof d=="boolean"&&bt(a,d,I,!1)?(d?u('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.',d,a,a,d,a):u('Received `%s` for a non-boolean attribute `%s`.\n\nIf you want to write it to the DOM, pass a string instead: %s="%s" or %s={value.toString()}.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.',d,a,a,d,a,a,a),Gi[a]=!0,!0):D?!0:bt(a,d,I,!1)?(Gi[a]=!0,!1):((d==="false"||d==="true")&&I!==null&&I.type===hr&&(u("Received the string `%s` for the boolean attribute `%s`. %s Did you mean %s={%s}?",d,a,d==="false"?"The browser will interpret it as a truthy value.":'Although this works, it will not work as expected if you pass the string "false".',a,d),Gi[a]=!0),!0)}}var uS=function(i,a,d){{var h=[];for(var y in a){var b=C_(i,y,a[y],d);b||h.push(y)}var T=h.map(function(x){return"`"+x+"`"}).join(", ");h.length===1?u("Invalid value for prop %s on <%s> tag. Either remove it from the element, or pass a string or number value to keep it in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",T,i):h.length>1&&u("Invalid values for props %s on <%s> tag. Either remove them from the element, or pass a string or number value to keep them in the DOM. For details, see https://reactjs.org/link/attribute-behavior ",T,i)}};function cS(i,a,d){Kl(i,a)||uS(i,a,d)}var Wl=1,$p=2,sd=4,Ck=Wl|$p|sd,Bp=null;function jp(i){Bp!==null&&u("Expected currently replaying event to be null. This error is likely caused by a bug in React. Please file an issue."),Bp=i}function wk(){Bp===null&&u("Expected currently replaying event to not be null. This error is likely caused by a bug in React. Please file an issue."),Bp=null}function dS(i){return i===Bp}function dg(i){var a=i.target||i.srcElement||window;return a.correspondingUseElement&&(a=a.correspondingUseElement),a.nodeType===Vl?a.parentNode:a}var dr=null,nc=null,Yl=null;function jf(i){var a=ph(i);if(a){if(typeof dr!="function")throw new Error("setRestoreImplementation() needs to be called to handle a target for controlled events. This error is likely caused by a bug in React. Please file an issue.");var d=a.stateNode;if(d){var h=dT(d);dr(a.stateNode,a.type,h)}}}function fS(i){dr=i}function fg(i){nc?Yl?Yl.push(i):Yl=[i]:nc=i}function zp(){return nc!==null||Yl!==null}function qp(){if(nc){var i=nc,a=Yl;if(nc=null,Yl=null,jf(i),a)for(var d=0;d<a.length;d++)jf(a[d])}}var ld=function(i,a){return i(a)},S_=function(){},T_=!1;function Sk(){var i=zp();i&&(S_(),qp())}function R_(i,a,d){if(T_)return i(a,d);T_=!0;try{return ld(i,a,d)}finally{T_=!1,Sk()}}function hg(i,a,d){ld=i,S_=d}function pg(i){return i==="button"||i==="input"||i==="select"||i==="textarea"}function x_(i,a,d){switch(i){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":return!!(d.disabled&&pg(a));default:return!1}}function ud(i,a){var d=i.stateNode;if(d===null)return null;var h=dT(d);if(h===null)return null;var y=h[a];if(x_(a,i.type,h))return null;if(y&&typeof y!="function")throw new Error("Expected `"+a+"` listener to be a function, instead got a value of `"+typeof y+"` type.");return y}var Gp=!1;if(Xn)try{var cd={};Object.defineProperty(cd,"passive",{get:function(){Gp=!0}}),window.addEventListener("test",cd,cd),window.removeEventListener("test",cd,cd)}catch{Gp=!1}function hS(i,a,d,h,y,b,T,x,I){var D=Array.prototype.slice.call(arguments,3);try{a.apply(d,D)}catch($){this.onError($)}}var A_=hS;if(typeof window<"u"&&typeof window.dispatchEvent=="function"&&typeof document<"u"&&typeof document.createEvent=="function"){var k_=document.createElement("react");A_=function(a,d,h,y,b,T,x,I,D){if(typeof document>"u"||document===null)throw new Error("The `document` global was defined when React was initialized, but is not defined anymore. This can happen in a test environment if a component schedules an update from an asynchronous callback, but the test has already finished running. To solve this, you can either unmount the component at the end of your test (and ensure that any asynchronous operations get canceled in `componentWillUnmount`), or you can change the test itself to be asynchronous.");var $=document.createEvent("Event"),Z=!1,X=!0,ce=window.event,fe=Object.getOwnPropertyDescriptor(window,"event");function Ce(){k_.removeEventListener(we,Ot,!1),typeof window.event<"u"&&window.hasOwnProperty("event")&&(window.event=ce)}var ct=Array.prototype.slice.call(arguments,3);function Ot(){Z=!0,Ce(),d.apply(h,ct),X=!1}var Tt,xn=!1,bn=!1;function oe(ae){if(Tt=ae.error,xn=!0,Tt===null&&ae.colno===0&&ae.lineno===0&&(bn=!0),ae.defaultPrevented&&Tt!=null&&typeof Tt=="object")try{Tt._suppressLogging=!0}catch{}}var we="react-"+(a||"invokeguardedcallback");if(window.addEventListener("error",oe),k_.addEventListener(we,Ot,!1),$.initEvent(we,!1,!1),k_.dispatchEvent($),fe&&Object.defineProperty(window,"event",fe),Z&&X&&(xn?bn&&(Tt=new Error("A cross-origin error was thrown. React doesn't have access to the actual error object in development. See https://reactjs.org/link/crossorigin-error for more information.")):Tt=new Error(`An error was thrown inside one of your components, but React doesn't know what it was. This is likely due to browser flakiness. React does its best to preserve the "Pause on exceptions" behavior of the DevTools, which requires some DEV-mode only tricks. It's possible that these don't work in your browser. Try triggering the error in production mode, or switching to a modern browser. If you suspect that this is actually an issue with React, please file an issue.`),this.onError(Tt)),window.removeEventListener("error",oe),!Z)return Ce(),hS.apply(this,arguments)}}var Tk=A_,rc=!1,$s=null,Vp=!1,ic=null,ul={onError:function(i){rc=!0,$s=i}};function dd(i,a,d,h,y,b,T,x,I){rc=!1,$s=null,Tk.apply(ul,arguments)}function Ql(i,a,d,h,y,b,T,x,I){if(dd.apply(this,arguments),rc){var D=O_();Vp||(Vp=!0,ic=D)}}function I_(){if(Vp){var i=ic;throw Vp=!1,ic=null,i}}function Rk(){return rc}function O_(){if(rc){var i=$s;return rc=!1,$s=null,i}else throw new Error("clearCaughtError was called but no error was captured. This error is likely caused by a bug in React. Please file an issue.")}function ss(i){return i._reactInternals}function Kp(i){return i._reactInternals!==void 0}function zf(i,a){i._reactInternals=a}var It=0,oc=1,br=2,nn=4,$n=16,Gn=32,cl=64,Gt=128,Zr=256,ya=512,ls=1024,Or=2048,us=4096,ac=8192,Wp=16384,vg=Or|nn|cl|ya|ls|Wp,pS=32767,La=32768,Vi=65536,Yp=131072,N_=1048576,M_=2097152,_a=4194304,sc=8388608,Ea=16777216,fd=33554432,qf=nn|ls|0,ba=br|nn|$n|Gn|ya|us|ac,Oo=nn|cl|ya|ac,cs=Or|$n,lo=_a|sc|M_,Xl=t.ReactCurrentOwner;function Ua(i){var a=i,d=i;if(i.alternate)for(;a.return;)a=a.return;else{var h=a;do a=h,(a.flags&(br|us))!==It&&(d=a.return),h=a.return;while(h)}return a.tag===E?d:null}function P_(i){if(i.tag===H){var a=i.memoizedState;if(a===null){var d=i.alternate;d!==null&&(a=d.memoizedState)}if(a!==null)return a.dehydrated}return null}function mg(i){return i.tag===E?i.stateNode.containerInfo:null}function D_(i){return Ua(i)===i}function Fa(i){{var a=Xl.current;if(a!==null&&a.tag===v){var d=a,h=d.stateNode;h._warnedAboutRefsInRender||u("%s is accessing isMounted inside its render() function. render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",Kt(d)||"A component"),h._warnedAboutRefsInRender=!0}}var y=ss(i);return y?Ua(y)===y:!1}function Ca(i){if(Ua(i)!==i)throw new Error("Unable to find node on an unmounted component.")}function Cr(i){var a=i.alternate;if(!a){var d=Ua(i);if(d===null)throw new Error("Unable to find node on an unmounted component.");return d!==i?null:i}for(var h=i,y=a;;){var b=h.return;if(b===null)break;var T=b.alternate;if(T===null){var x=b.return;if(x!==null){h=y=x;continue}break}if(b.child===T.child){for(var I=b.child;I;){if(I===h)return Ca(b),i;if(I===y)return Ca(b),a;I=I.sibling}throw new Error("Unable to find node on an unmounted component.")}if(h.return!==y.return)h=b,y=T;else{for(var D=!1,$=b.child;$;){if($===h){D=!0,h=b,y=T;break}if($===y){D=!0,y=b,h=T;break}$=$.sibling}if(!D){for($=T.child;$;){if($===h){D=!0,h=T,y=b;break}if($===y){D=!0,y=T,h=b;break}$=$.sibling}if(!D)throw new Error("Child was not found in either parent set. This indicates a bug in React related to the return pointer. Please file an issue.")}}if(h.alternate!==y)throw new Error("Return fibers should always be each others' alternates. This error is likely caused by a bug in React. Please file an issue.")}if(h.tag!==E)throw new Error("Unable to find node on an unmounted component.");return h.stateNode.current===h?i:a}function ds(i){var a=Cr(i);return a!==null?L_(a):null}function L_(i){if(i.tag===S||i.tag===A)return i;for(var a=i.child;a!==null;){var d=L_(a);if(d!==null)return d;a=a.sibling}return null}function vS(i){var a=Cr(i);return a!==null?gg(a):null}function gg(i){if(i.tag===S||i.tag===A)return i;for(var a=i.child;a!==null;){if(a.tag!==w){var d=gg(a);if(d!==null)return d}a=a.sibling}return null}var yg=e.unstable_scheduleCallback,mS=e.unstable_cancelCallback,_g=e.unstable_shouldYield,gS=e.unstable_requestPaint,Hr=e.unstable_now,U_=e.unstable_getCurrentPriorityLevel,Eg=e.unstable_ImmediatePriority,Ha=e.unstable_UserBlockingPriority,dl=e.unstable_NormalPriority,bg=e.unstable_LowPriority,lc=e.unstable_IdlePriority,F_=e.unstable_yieldValue,H_=e.unstable_setDisableYieldValue,uc=null,Ki=null,Je=null,si=!1,uo=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u";function $_(i){if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u")return!1;var a=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(a.isDisabled)return!0;if(!a.supportsFiber)return u("The installed version of React DevTools is too old and will not work with the current version of React. Please update React DevTools. https://reactjs.org/link/react-devtools"),!0;try{At&&(i=dn({},i,{getLaneLabelMap:dc,injectProfilingHooks:Zl})),uc=a.inject(i),Ki=a}catch(d){u("React instrumentation encountered an error: %s.",d)}return!!a.checkDCE}function yS(i,a){if(Ki&&typeof Ki.onScheduleFiberRoot=="function")try{Ki.onScheduleFiberRoot(uc,i,a)}catch(d){si||(si=!0,u("React instrumentation encountered an error: %s",d))}}function Jl(i,a){if(Ki&&typeof Ki.onCommitFiberRoot=="function")try{var d=(i.current.flags&Gt)===Gt;if(Lt){var h;switch(a){case No:h=Eg;break;case co:h=Ha;break;case tu:h=dl;break;case iv:h=lc;break;default:h=dl;break}Ki.onCommitFiberRoot(uc,i,h,d)}}catch(y){si||(si=!0,u("React instrumentation encountered an error: %s",y))}}function cc(i){if(Ki&&typeof Ki.onPostCommitFiberRoot=="function")try{Ki.onPostCommitFiberRoot(uc,i)}catch(a){si||(si=!0,u("React instrumentation encountered an error: %s",a))}}function B_(i){if(Ki&&typeof Ki.onCommitFiberUnmount=="function")try{Ki.onCommitFiberUnmount(uc,i)}catch(a){si||(si=!0,u("React instrumentation encountered an error: %s",a))}}function Pi(i){if(typeof F_=="function"&&(H_(i),o(i)),Ki&&typeof Ki.setStrictMode=="function")try{Ki.setStrictMode(uc,i)}catch(a){si||(si=!0,u("React instrumentation encountered an error: %s",a))}}function Zl(i){Je=i}function dc(){{for(var i=new Map,a=1,d=0;d<wr;d++){var h=xk(a);i.set(a,h),a*=2}return i}}function Cg(i){Je!==null&&typeof Je.markCommitStarted=="function"&&Je.markCommitStarted(i)}function j_(){Je!==null&&typeof Je.markCommitStopped=="function"&&Je.markCommitStopped()}function fc(i){Je!==null&&typeof Je.markComponentRenderStarted=="function"&&Je.markComponentRenderStarted(i)}function hd(){Je!==null&&typeof Je.markComponentRenderStopped=="function"&&Je.markComponentRenderStopped()}function _S(i){Je!==null&&typeof Je.markComponentPassiveEffectMountStarted=="function"&&Je.markComponentPassiveEffectMountStarted(i)}function z_(){Je!==null&&typeof Je.markComponentPassiveEffectMountStopped=="function"&&Je.markComponentPassiveEffectMountStopped()}function wg(i){Je!==null&&typeof Je.markComponentPassiveEffectUnmountStarted=="function"&&Je.markComponentPassiveEffectUnmountStarted(i)}function ES(){Je!==null&&typeof Je.markComponentPassiveEffectUnmountStopped=="function"&&Je.markComponentPassiveEffectUnmountStopped()}function bS(i){Je!==null&&typeof Je.markComponentLayoutEffectMountStarted=="function"&&Je.markComponentLayoutEffectMountStarted(i)}function CS(){Je!==null&&typeof Je.markComponentLayoutEffectMountStopped=="function"&&Je.markComponentLayoutEffectMountStopped()}function Sg(i){Je!==null&&typeof Je.markComponentLayoutEffectUnmountStarted=="function"&&Je.markComponentLayoutEffectUnmountStarted(i)}function Gf(){Je!==null&&typeof Je.markComponentLayoutEffectUnmountStopped=="function"&&Je.markComponentLayoutEffectUnmountStopped()}function Tg(i,a,d){Je!==null&&typeof Je.markComponentErrored=="function"&&Je.markComponentErrored(i,a,d)}function wS(i,a,d){Je!==null&&typeof Je.markComponentSuspended=="function"&&Je.markComponentSuspended(i,a,d)}function SS(i){Je!==null&&typeof Je.markLayoutEffectsStarted=="function"&&Je.markLayoutEffectsStarted(i)}function Vf(){Je!==null&&typeof Je.markLayoutEffectsStopped=="function"&&Je.markLayoutEffectsStopped()}function TS(i){Je!==null&&typeof Je.markPassiveEffectsStarted=="function"&&Je.markPassiveEffectsStarted(i)}function Qp(){Je!==null&&typeof Je.markPassiveEffectsStopped=="function"&&Je.markPassiveEffectsStopped()}function Bs(i){Je!==null&&typeof Je.markRenderStarted=="function"&&Je.markRenderStarted(i)}function Xp(){Je!==null&&typeof Je.markRenderYielded=="function"&&Je.markRenderYielded()}function Kf(){Je!==null&&typeof Je.markRenderStopped=="function"&&Je.markRenderStopped()}function pd(i){Je!==null&&typeof Je.markRenderScheduled=="function"&&Je.markRenderScheduled(i)}function q_(i,a){Je!==null&&typeof Je.markForceUpdateScheduled=="function"&&Je.markForceUpdateScheduled(i,a)}function hc(i,a){Je!==null&&typeof Je.markStateUpdateScheduled=="function"&&Je.markStateUpdateScheduled(i,a)}var Pt=0,hn=1,Ft=2,$r=8,fs=16,Rg=Math.clz32?Math.clz32:vd,xg=Math.log,G_=Math.LN2;function vd(i){var a=i>>>0;return a===0?32:31-(xg(a)/G_|0)|0}var wr=31,Se=0,Tn=0,Ht=1,fl=2,$a=4,md=8,Sr=16,gd=32,pc=4194240,yd=64,hs=128,wa=256,_d=512,Jp=1024,Zp=2048,Ag=4096,kg=8192,Ig=16384,Og=32768,Ng=65536,Mg=131072,Pg=262144,Dg=524288,Ed=1048576,Lg=2097152,bd=130023424,eu=4194304,Ug=8388608,ev=16777216,Fg=33554432,Hg=67108864,V_=eu,Wf=134217728,$g=268435455,Yf=268435456,vc=536870912,Sa=1073741824;function xk(i){{if(i&Ht)return"Sync";if(i&fl)return"InputContinuousHydration";if(i&$a)return"InputContinuous";if(i&md)return"DefaultHydration";if(i&Sr)return"Default";if(i&gd)return"TransitionHydration";if(i&pc)return"Transition";if(i&bd)return"Retry";if(i&Wf)return"SelectiveHydration";if(i&Yf)return"IdleHydration";if(i&vc)return"Idle";if(i&Sa)return"Offscreen"}}var fr=-1,Bg=yd,jg=eu;function Qf(i){switch(bi(i)){case Ht:return Ht;case fl:return fl;case $a:return $a;case md:return md;case Sr:return Sr;case gd:return gd;case yd:case hs:case wa:case _d:case Jp:case Zp:case Ag:case kg:case Ig:case Og:case Ng:case Mg:case Pg:case Dg:case Ed:case Lg:return i&pc;case eu:case Ug:case ev:case Fg:case Hg:return i&bd;case Wf:return Wf;case Yf:return Yf;case vc:return vc;case Sa:return Sa;default:return u("Should have found matching lanes. This is a bug in React."),i}}function tv(i,a){var d=i.pendingLanes;if(d===Se)return Se;var h=Se,y=i.suspendedLanes,b=i.pingedLanes,T=d&$g;if(T!==Se){var x=T&~y;if(x!==Se)h=Qf(x);else{var I=T&b;I!==Se&&(h=Qf(I))}}else{var D=d&~y;D!==Se?h=Qf(D):b!==Se&&(h=Qf(b))}if(h===Se)return Se;if(a!==Se&&a!==h&&(a&y)===Se){var $=bi(h),Z=bi(a);if($>=Z||$===Sr&&(Z&pc)!==Se)return a}(h&$a)!==Se&&(h|=d&Sr);var X=i.entangledLanes;if(X!==Se)for(var ce=i.entanglements,fe=h&X;fe>0;){var Ce=mc(fe),ct=1<<Ce;h|=ce[Ce],fe&=~ct}return h}function RS(i,a){for(var d=i.eventTimes,h=fr;a>0;){var y=mc(a),b=1<<y,T=d[y];T>h&&(h=T),a&=~b}return h}function zg(i,a){switch(i){case Ht:case fl:case $a:return a+250;case md:case Sr:case gd:case yd:case hs:case wa:case _d:case Jp:case Zp:case Ag:case kg:case Ig:case Og:case Ng:case Mg:case Pg:case Dg:case Ed:case Lg:return a+5e3;case eu:case Ug:case ev:case Fg:case Hg:return fr;case Wf:case Yf:case vc:case Sa:return fr;default:return u("Should have found matching lanes. This is a bug in React."),fr}}function Ak(i,a){for(var d=i.pendingLanes,h=i.suspendedLanes,y=i.pingedLanes,b=i.expirationTimes,T=d;T>0;){var x=mc(T),I=1<<x,D=b[x];D===fr?((I&h)===Se||(I&y)!==Se)&&(b[x]=zg(I,a)):D<=a&&(i.expiredLanes|=I),T&=~I}}function kk(i){return Qf(i.pendingLanes)}function K_(i){var a=i.pendingLanes&~Sa;return a!==Se?a:a&Sa?Sa:Se}function Xf(i){return(i&Ht)!==Se}function nv(i){return(i&$g)!==Se}function qg(i){return(i&bd)===i}function Ik(i){var a=Ht|$a|Sr;return(i&a)===Se}function xS(i){return(i&pc)===i}function rv(i,a){var d=fl|$a|md|Sr;return(a&d)!==Se}function AS(i,a){return(a&i.expiredLanes)!==Se}function W_(i){return(i&pc)!==Se}function Y_(){var i=Bg;return Bg<<=1,(Bg&pc)===Se&&(Bg=yd),i}function Ok(){var i=jg;return jg<<=1,(jg&bd)===Se&&(jg=eu),i}function bi(i){return i&-i}function Di(i){return bi(i)}function mc(i){return 31-Rg(i)}function Gg(i){return mc(i)}function Ta(i,a){return(i&a)!==Se}function Cd(i,a){return(i&a)===a}function rn(i,a){return i|a}function Jf(i,a){return i&~a}function Q_(i,a){return i&a}function kS(i){return i}function IS(i,a){return i!==Tn&&i<a?i:a}function Vg(i){for(var a=[],d=0;d<wr;d++)a.push(i);return a}function wd(i,a,d){i.pendingLanes|=a,a!==vc&&(i.suspendedLanes=Se,i.pingedLanes=Se);var h=i.eventTimes,y=Gg(a);h[y]=d}function X_(i,a){i.suspendedLanes|=a,i.pingedLanes&=~a;for(var d=i.expirationTimes,h=a;h>0;){var y=mc(h),b=1<<y;d[y]=fr,h&=~b}}function J_(i,a,d){i.pingedLanes|=i.suspendedLanes&a}function Z_(i,a){var d=i.pendingLanes&~a;i.pendingLanes=a,i.suspendedLanes=Se,i.pingedLanes=Se,i.expiredLanes&=a,i.mutableReadLanes&=a,i.entangledLanes&=a;for(var h=i.entanglements,y=i.eventTimes,b=i.expirationTimes,T=d;T>0;){var x=mc(T),I=1<<x;h[x]=Se,y[x]=fr,b[x]=fr,T&=~I}}function Zf(i,a){for(var d=i.entangledLanes|=a,h=i.entanglements,y=d;y;){var b=mc(y),T=1<<b;T&a|h[b]&a&&(h[b]|=a),y&=~T}}function Nk(i,a){var d=bi(a),h;switch(d){case $a:h=fl;break;case Sr:h=md;break;case yd:case hs:case wa:case _d:case Jp:case Zp:case Ag:case kg:case Ig:case Og:case Ng:case Mg:case Pg:case Dg:case Ed:case Lg:case eu:case Ug:case ev:case Fg:case Hg:h=gd;break;case vc:h=Yf;break;default:h=Tn;break}return(h&(i.suspendedLanes|a))!==Tn?Tn:h}function eE(i,a,d){if(uo)for(var h=i.pendingUpdatersLaneMap;d>0;){var y=Gg(d),b=1<<y,T=h[y];T.add(a),d&=~b}}function Kg(i,a){if(uo)for(var d=i.pendingUpdatersLaneMap,h=i.memoizedUpdaters;a>0;){var y=Gg(a),b=1<<y,T=d[y];T.size>0&&(T.forEach(function(x){var I=x.alternate;(I===null||!h.has(I))&&h.add(x)}),T.clear()),a&=~b}}function tE(i,a){return null}var No=Ht,co=$a,tu=Sr,iv=vc,Sd=Tn;function ps(){return Sd}function Li(i){Sd=i}function ov(i,a){var d=Sd;try{return Sd=i,a()}finally{Sd=d}}function Mo(i,a){return i!==0&&i<a?i:a}function Mk(i,a){return i===0||i>a?i:a}function nE(i,a){return i!==0&&i<a}function av(i){var a=bi(i);return nE(No,a)?nE(co,a)?nv(a)?tu:iv:co:No}function Ui(i){var a=i.current.memoizedState;return a.isDehydrated}var OS;function ft(i){OS=i}function eh(i){OS(i)}var sv;function NS(i){sv=i}var MS;function lv(i){MS=i}var uv;function rE(i){uv=i}var iE;function PS(i){iE=i}var Wg=!1,th=[],hl=null,Nr=null,Wi=null,vs=new Map,nh=new Map,nu=[],js=["mousedown","mouseup","touchcancel","touchend","touchstart","auxclick","dblclick","pointercancel","pointerdown","pointerup","dragend","dragstart","drop","compositionend","compositionstart","keydown","keypress","keyup","input","textInput","copy","cut","paste","click","change","contextmenu","reset","submit"];function DS(i){return js.indexOf(i)>-1}function pl(i,a,d,h,y){return{blockedOn:i,domEventName:a,eventSystemFlags:d,nativeEvent:y,targetContainers:[h]}}function LS(i,a){switch(i){case"focusin":case"focusout":hl=null;break;case"dragenter":case"dragleave":Nr=null;break;case"mouseover":case"mouseout":Wi=null;break;case"pointerover":case"pointerout":{var d=a.pointerId;vs.delete(d);break}case"gotpointercapture":case"lostpointercapture":{var h=a.pointerId;nh.delete(h);break}}}function rh(i,a,d,h,y,b){if(i===null||i.nativeEvent!==b){var T=pl(a,d,h,y,b);if(a!==null){var x=ph(a);x!==null&&sv(x)}return T}i.eventSystemFlags|=h;var I=i.targetContainers;return y!==null&&I.indexOf(y)===-1&&I.push(y),i}function US(i,a,d,h,y){switch(a){case"focusin":{var b=y;return hl=rh(hl,i,a,d,h,b),!0}case"dragenter":{var T=y;return Nr=rh(Nr,i,a,d,h,T),!0}case"mouseover":{var x=y;return Wi=rh(Wi,i,a,d,h,x),!0}case"pointerover":{var I=y,D=I.pointerId;return vs.set(D,rh(vs.get(D)||null,i,a,d,h,I)),!0}case"gotpointercapture":{var $=y,Z=$.pointerId;return nh.set(Z,rh(nh.get(Z)||null,i,a,d,h,$)),!0}}return!1}function oE(i){var a=yv(i.target);if(a!==null){var d=Ua(a);if(d!==null){var h=d.tag;if(h===H){var y=P_(d);if(y!==null){i.blockedOn=y,iE(i.priority,function(){MS(d)});return}}else if(h===E){var b=d.stateNode;if(Ui(b)){i.blockedOn=mg(d);return}}}}i.blockedOn=null}function FS(i){for(var a=uv(),d={blockedOn:null,target:i,priority:a},h=0;h<nu.length&&nE(a,nu[h].priority);h++);nu.splice(h,0,d),h===0&&oE(d)}function Yg(i){if(i.blockedOn!==null)return!1;for(var a=i.targetContainers;a.length>0;){var d=a[0],h=Td(i.domEventName,i.eventSystemFlags,d,i.nativeEvent);if(h===null){var y=i.nativeEvent,b=new y.constructor(y.type,y);jp(b),y.target.dispatchEvent(b),wk()}else{var T=ph(h);return T!==null&&sv(T),i.blockedOn=h,!1}a.shift()}return!0}function cv(i,a,d){Yg(i)&&d.delete(a)}function aE(){Wg=!1,hl!==null&&Yg(hl)&&(hl=null),Nr!==null&&Yg(Nr)&&(Nr=null),Wi!==null&&Yg(Wi)&&(Wi=null),vs.forEach(cv),nh.forEach(cv)}function Po(i,a){i.blockedOn===a&&(i.blockedOn=null,Wg||(Wg=!0,e.unstable_scheduleCallback(e.unstable_NormalPriority,aE)))}function En(i){if(th.length>0){Po(th[0],i);for(var a=1;a<th.length;a++){var d=th[a];d.blockedOn===i&&(d.blockedOn=null)}}hl!==null&&Po(hl,i),Nr!==null&&Po(Nr,i),Wi!==null&&Po(Wi,i);var h=function(x){return Po(x,i)};vs.forEach(h),nh.forEach(h);for(var y=0;y<nu.length;y++){var b=nu[y];b.blockedOn===i&&(b.blockedOn=null)}for(;nu.length>0;){var T=nu[0];if(T.blockedOn!==null)break;oE(T),T.blockedOn===null&&nu.shift()}}var Br=t.ReactCurrentBatchConfig,ei=!0;function Yi(i){ei=!!i}function Ba(){return ei}function ih(i,a,d){var h=Yo(a),y;switch(h){case No:y=Fi;break;case co:y=dv;break;case tu:default:y=ru;break}return y.bind(null,a,d,i)}function Fi(i,a,d,h){var y=ps(),b=Br.transition;Br.transition=null;try{Li(No),ru(i,a,d,h)}finally{Li(y),Br.transition=b}}function dv(i,a,d,h){var y=ps(),b=Br.transition;Br.transition=null;try{Li(co),ru(i,a,d,h)}finally{Li(y),Br.transition=b}}function ru(i,a,d,h){ei&&Qg(i,a,d,h)}function Qg(i,a,d,h){var y=Td(i,a,d,h);if(y===null){Zk(i,a,h,oh,d),LS(i,h);return}if(US(y,i,a,d,h)){h.stopPropagation();return}if(LS(i,h),a&sd&&DS(i)){for(;y!==null;){var b=ph(y);b!==null&&eh(b);var T=Td(i,a,d,h);if(T===null&&Zk(i,a,h,oh,d),T===y)break;y=T}y!==null&&h.stopPropagation();return}Zk(i,a,h,null,d)}var oh=null;function Td(i,a,d,h){oh=null;var y=dg(h),b=yv(y);if(b!==null){var T=Ua(b);if(T===null)b=null;else{var x=T.tag;if(x===H){var I=P_(T);if(I!==null)return I;b=null}else if(x===E){var D=T.stateNode;if(Ui(D))return mg(T);b=null}else T!==b&&(b=null)}}return oh=b,null}function Yo(i){switch(i){case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return No;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"toggle":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return co;case"message":{var a=U_();switch(a){case Eg:return No;case Ha:return co;case dl:case bg:return tu;case lc:return iv;default:return tu}}default:return tu}}function sE(i,a,d){return i.addEventListener(a,d,!1),d}function ah(i,a,d){return i.addEventListener(a,d,!0),d}function iu(i,a,d,h){return i.addEventListener(a,d,{capture:!0,passive:h}),d}function Xg(i,a,d,h){return i.addEventListener(a,d,{passive:h}),d}var Rd=null,vl=null,gc=null;function yc(i){return Rd=i,vl=Zg(),!0}function Jg(){Rd=null,vl=null,gc=null}function sh(){if(gc)return gc;var i,a=vl,d=a.length,h,y=Zg(),b=y.length;for(i=0;i<d&&a[i]===y[i];i++);var T=d-i;for(h=1;h<=T&&a[d-h]===y[b-h];h++);var x=h>1?1-h:void 0;return gc=y.slice(i,x),gc}function Zg(){return"value"in Rd?Rd.value:Rd.textContent}function xd(i){var a,d=i.keyCode;return"charCode"in i?(a=i.charCode,a===0&&d===13&&(a=13)):a=d,a===10&&(a=13),a>=32||a===13?a:0}function Ad(){return!0}function Do(){return!1}function Ci(i){function a(d,h,y,b,T){this._reactName=d,this._targetInst=y,this.type=h,this.nativeEvent=b,this.target=T,this.currentTarget=null;for(var x in i)if(i.hasOwnProperty(x)){var I=i[x];I?this[x]=I(b):this[x]=b[x]}var D=b.defaultPrevented!=null?b.defaultPrevented:b.returnValue===!1;return D?this.isDefaultPrevented=Ad:this.isDefaultPrevented=Do,this.isPropagationStopped=Do,this}return dn(a.prototype,{preventDefault:function(){this.defaultPrevented=!0;var d=this.nativeEvent;d&&(d.preventDefault?d.preventDefault():typeof d.returnValue!="unknown"&&(d.returnValue=!1),this.isDefaultPrevented=Ad)},stopPropagation:function(){var d=this.nativeEvent;d&&(d.stopPropagation?d.stopPropagation():typeof d.cancelBubble!="unknown"&&(d.cancelBubble=!0),this.isPropagationStopped=Ad)},persist:function(){},isPersistent:Ad}),a}var Lo={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Uo=Ci(Lo),lh=dn({},Lo,{view:0,detail:0}),lE=Ci(lh),fv,uE,ms;function HS(i){i!==ms&&(ms&&i.type==="mousemove"?(fv=i.screenX-ms.screenX,uE=i.screenY-ms.screenY):(fv=0,uE=0),ms=i)}var uh=dn({},lh,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:ny,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(HS(i),fv)},movementY:function(i){return"movementY"in i?i.movementY:uE}}),_c=Ci(uh),cE=dn({},uh,{dataTransfer:0}),kd=Ci(cE),$S=dn({},lh,{relatedTarget:0}),ey=Ci($S),dE=dn({},Lo,{animationName:0,elapsedTime:0,pseudoElement:0}),ty=Ci(dE),Pk=dn({},Lo,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),Dk=Ci(Pk),BS=dn({},Lo,{data:0}),fE=Ci(BS),Id=fE,Lk={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},ch={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"};function jS(i){if(i.key){var a=Lk[i.key]||i.key;if(a!=="Unidentified")return a}if(i.type==="keypress"){var d=xd(i);return d===13?"Enter":String.fromCharCode(d)}return i.type==="keydown"||i.type==="keyup"?ch[i.keyCode]||"Unidentified":""}var ti={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Uk(i){var a=this,d=a.nativeEvent;if(d.getModifierState)return d.getModifierState(i);var h=ti[i];return h?!!d[h]:!1}function ny(i){return Uk}var Fk=dn({},lh,{key:jS,code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:ny,charCode:function(i){return i.type==="keypress"?xd(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?xd(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),Hk=Ci(Fk),zS=dn({},uh,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),hE=Ci(zS),$k=dn({},lh,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:ny}),gs=Ci($k),pE=dn({},Lo,{propertyName:0,elapsedTime:0,pseudoElement:0}),Bk=Ci(pE),Ec=dn({},uh,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),ry=Ci(Ec),Od=[9,13,27,32],hv=229,pv=Xn&&"CompositionEvent"in window,Nd=null;Xn&&"documentMode"in document&&(Nd=document.documentMode);var jk=Xn&&"TextEvent"in window&&!Nd,iy=Xn&&(!pv||Nd&&Nd>8&&Nd<=11),qS=32,vE=String.fromCharCode(qS);function GS(){jn("onBeforeInput",["compositionend","keypress","textInput","paste"]),jn("onCompositionEnd",["compositionend","focusout","keydown","keypress","keyup","mousedown"]),jn("onCompositionStart",["compositionstart","focusout","keydown","keypress","keyup","mousedown"]),jn("onCompositionUpdate",["compositionupdate","focusout","keydown","keypress","keyup","mousedown"])}var vv=!1;function oy(i){return(i.ctrlKey||i.altKey||i.metaKey)&&!(i.ctrlKey&&i.altKey)}function VS(i){switch(i){case"compositionstart":return"onCompositionStart";case"compositionend":return"onCompositionEnd";case"compositionupdate":return"onCompositionUpdate"}}function mE(i,a){return i==="keydown"&&a.keyCode===hv}function KS(i,a){switch(i){case"keyup":return Od.indexOf(a.keyCode)!==-1;case"keydown":return a.keyCode!==hv;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function gE(i){var a=i.detail;return typeof a=="object"&&"data"in a?a.data:null}function ay(i){return i.locale==="ko"}var ou=!1;function yE(i,a,d,h,y){var b,T;if(pv?b=VS(a):ou?KS(a,h)&&(b="onCompositionEnd"):mE(a,h)&&(b="onCompositionStart"),!b)return null;iy&&!ay(h)&&(!ou&&b==="onCompositionStart"?ou=yc(y):b==="onCompositionEnd"&&ou&&(T=sh()));var x=JS(d,b);if(x.length>0){var I=new fE(b,a,null,h,y);if(i.push({event:I,listeners:x}),T)I.data=T;else{var D=gE(h);D!==null&&(I.data=D)}}}function sy(i,a){switch(i){case"compositionend":return gE(a);case"keypress":var d=a.which;return d!==qS?null:(vv=!0,vE);case"textInput":var h=a.data;return h===vE&&vv?null:h;default:return null}}function WS(i,a){if(ou){if(i==="compositionend"||!pv&&KS(i,a)){var d=sh();return Jg(),ou=!1,d}return null}switch(i){case"paste":return null;case"keypress":if(!oy(a)){if(a.char&&a.char.length>1)return a.char;if(a.which)return String.fromCharCode(a.which)}return null;case"compositionend":return iy&&!ay(a)?null:a.data;default:return null}}function zk(i,a,d,h,y){var b;if(jk?b=sy(a,h):b=WS(a,h),!b)return null;var T=JS(d,"onBeforeInput");if(T.length>0){var x=new Id("onBeforeInput","beforeinput",null,h,y);i.push({event:x,listeners:T}),x.data=b}}function ly(i,a,d,h,y,b,T){yE(i,a,d,h,y),zk(i,a,d,h,y)}var qk={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function dh(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a==="input"?!!qk[i.type]:a==="textarea"}/**
113
+ * Checks if an event is supported in the current execution environment.
114
+ *
115
+ * NOTE: This will not work correctly for non-generic events such as `change`,
116
+ * `reset`, `load`, `error`, and `select`.
117
+ *
118
+ * Borrows from Modernizr.
119
+ *
120
+ * @param {string} eventNameSuffix Event name, e.g. "click".
121
+ * @return {boolean} True if the event is supported.
122
+ * @internal
123
+ * @license Modernizr 3.0.0pre (Custom Build) | MIT
124
+ */function Gk(i){if(!Xn)return!1;var a="on"+i,d=a in document;if(!d){var h=document.createElement("div");h.setAttribute(a,"return;"),d=typeof h[a]=="function"}return d}function uy(){jn("onChange",["change","click","focusin","focusout","input","keydown","keyup","selectionchange"])}function l(i,a,d,h){fg(h);var y=JS(a,"onChange");if(y.length>0){var b=new Uo("onChange","change",null,d,h);i.push({event:b,listeners:y})}}var c=null,m=null;function _(i){var a=i.nodeName&&i.nodeName.toLowerCase();return a==="select"||a==="input"&&i.type==="file"}function C(i){var a=[];l(a,m,i,dg(i)),R_(R,a)}function R(i){s$(i,0)}function N(i){var a=vy(i);if(Pf(a))return i}function z(i,a){if(i==="change")return a}var V=!1;Xn&&(V=Gk("input")&&(!document.documentMode||document.documentMode>9));function me(i,a){c=i,m=a,c.attachEvent("onpropertychange",Le)}function Pe(){c&&(c.detachEvent("onpropertychange",Le),c=null,m=null)}function Le(i){i.propertyName==="value"&&N(m)&&C(i)}function Ne(i,a,d){i==="focusin"?(Pe(),me(a,d)):i==="focusout"&&Pe()}function st(i,a){if(i==="selectionchange"||i==="keyup"||i==="keydown")return N(m)}function ht(i){var a=i.nodeName;return a&&a.toLowerCase()==="input"&&(i.type==="checkbox"||i.type==="radio")}function yt(i,a){if(i==="click")return N(a)}function li(i,a){if(i==="input"||i==="change")return N(a)}function ie(i){var a=i._wrapperState;!a||!a.controlled||i.type!=="number"||Mt(i,"number",i.value)}function J(i,a,d,h,y,b,T){var x=d?vy(d):window,I,D;if(_(x)?I=z:dh(x)?V?I=li:(I=st,D=Ne):ht(x)&&(I=yt),I){var $=I(a,d);if($){l(i,$,h,y);return}}D&&D(a,x,d),a==="focusout"&&ie(x)}function ue(){at("onMouseEnter",["mouseout","mouseover"]),at("onMouseLeave",["mouseout","mouseover"]),at("onPointerEnter",["pointerout","pointerover"]),at("onPointerLeave",["pointerout","pointerover"])}function ze(i,a,d,h,y,b,T){var x=a==="mouseover"||a==="pointerover",I=a==="mouseout"||a==="pointerout";if(x&&!dS(h)){var D=h.relatedTarget||h.fromElement;if(D&&(yv(D)||NE(D)))return}if(!(!I&&!x)){var $;if(y.window===y)$=y;else{var Z=y.ownerDocument;Z?$=Z.defaultView||Z.parentWindow:$=window}var X,ce;if(I){var fe=h.relatedTarget||h.toElement;if(X=d,ce=fe?yv(fe):null,ce!==null){var Ce=Ua(ce);(ce!==Ce||ce.tag!==S&&ce.tag!==A)&&(ce=null)}}else X=null,ce=d;if(X!==ce){var ct=_c,Ot="onMouseLeave",Tt="onMouseEnter",xn="mouse";(a==="pointerout"||a==="pointerover")&&(ct=hE,Ot="onPointerLeave",Tt="onPointerEnter",xn="pointer");var bn=X==null?$:vy(X),oe=ce==null?$:vy(ce),we=new ct(Ot,xn+"leave",X,h,y);we.target=bn,we.relatedTarget=oe;var ae=null,Ue=yv(y);if(Ue===d){var dt=new ct(Tt,xn+"enter",ce,h,y);dt.target=oe,dt.relatedTarget=bn,ae=dt}Zne(i,we,ae,X,ce)}}}function wt(i,a){return i===a&&(i!==0||1/i===1/a)||i!==i&&a!==a}var pt=typeof Object.is=="function"?Object.is:wt;function xt(i,a){if(pt(i,a))return!0;if(typeof i!="object"||i===null||typeof a!="object"||a===null)return!1;var d=Object.keys(i),h=Object.keys(a);if(d.length!==h.length)return!1;for(var y=0;y<d.length;y++){var b=d[y];if(!yr.call(a,b)||!pt(i[b],a[b]))return!1}return!0}function Vt(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function Qi(i){for(;i;){if(i.nextSibling)return i.nextSibling;i=i.parentNode}}function Mn(i,a){for(var d=Vt(i),h=0,y=0;d;){if(d.nodeType===Vl){if(y=h+d.textContent.length,h<=a&&y>=a)return{node:d,offset:a-h};h=y}d=Vt(Qi(d))}}function bc(i){var a=i.ownerDocument,d=a&&a.defaultView||window,h=d.getSelection&&d.getSelection();if(!h||h.rangeCount===0)return null;var y=h.anchorNode,b=h.anchorOffset,T=h.focusNode,x=h.focusOffset;try{y.nodeType,T.nodeType}catch{return null}return Vk(i,y,b,T,x)}function Vk(i,a,d,h,y){var b=0,T=-1,x=-1,I=0,D=0,$=i,Z=null;e:for(;;){for(var X=null;$===a&&(d===0||$.nodeType===Vl)&&(T=b+d),$===h&&(y===0||$.nodeType===Vl)&&(x=b+y),$.nodeType===Vl&&(b+=$.nodeValue.length),(X=$.firstChild)!==null;)Z=$,$=X;for(;;){if($===i)break e;if(Z===a&&++I===d&&(T=b),Z===h&&++D===y&&(x=b),(X=$.nextSibling)!==null)break;$=Z,Z=$.parentNode}$=X}return T===-1||x===-1?null:{start:T,end:x}}function Pne(i,a){var d=i.ownerDocument||document,h=d&&d.defaultView||window;if(h.getSelection){var y=h.getSelection(),b=i.textContent.length,T=Math.min(a.start,b),x=a.end===void 0?T:Math.min(a.end,b);if(!y.extend&&T>x){var I=x;x=T,T=I}var D=Mn(i,T),$=Mn(i,x);if(D&&$){if(y.rangeCount===1&&y.anchorNode===D.node&&y.anchorOffset===D.offset&&y.focusNode===$.node&&y.focusOffset===$.offset)return;var Z=d.createRange();Z.setStart(D.node,D.offset),y.removeAllRanges(),T>x?(y.addRange(Z),y.extend($.node,$.offset)):(Z.setEnd($.node,$.offset),y.addRange(Z))}}}function YH(i){return i&&i.nodeType===Vl}function QH(i,a){return!i||!a?!1:i===a?!0:YH(i)?!1:YH(a)?QH(i,a.parentNode):"contains"in i?i.contains(a):i.compareDocumentPosition?!!(i.compareDocumentPosition(a)&16):!1}function Dne(i){return i&&i.ownerDocument&&QH(i.ownerDocument.documentElement,i)}function Lne(i){try{return typeof i.contentWindow.location.href=="string"}catch{return!1}}function XH(){for(var i=window,a=ec();a instanceof i.HTMLIFrameElement;){if(Lne(a))i=a.contentWindow;else return a;a=ec(i.document)}return a}function Kk(i){var a=i&&i.nodeName&&i.nodeName.toLowerCase();return a&&(a==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||a==="textarea"||i.contentEditable==="true")}function Une(){var i=XH();return{focusedElem:i,selectionRange:Kk(i)?Hne(i):null}}function Fne(i){var a=XH(),d=i.focusedElem,h=i.selectionRange;if(a!==d&&Dne(d)){h!==null&&Kk(d)&&$ne(d,h);for(var y=[],b=d;b=b.parentNode;)b.nodeType===ga&&y.push({element:b,left:b.scrollLeft,top:b.scrollTop});typeof d.focus=="function"&&d.focus();for(var T=0;T<y.length;T++){var x=y[T];x.element.scrollLeft=x.left,x.element.scrollTop=x.top}}}function Hne(i){var a;return"selectionStart"in i?a={start:i.selectionStart,end:i.selectionEnd}:a=bc(i),a||{start:0,end:0}}function $ne(i,a){var d=a.start,h=a.end;h===void 0&&(h=d),"selectionStart"in i?(i.selectionStart=d,i.selectionEnd=Math.min(h,i.value.length)):Pne(i,a)}var Bne=Xn&&"documentMode"in document&&document.documentMode<=11;function jne(){jn("onSelect",["focusout","contextmenu","dragend","focusin","keydown","keyup","mousedown","mouseup","selectionchange"])}var cy=null,Wk=null,_E=null,Yk=!1;function zne(i){if("selectionStart"in i&&Kk(i))return{start:i.selectionStart,end:i.selectionEnd};var a=i.ownerDocument&&i.ownerDocument.defaultView||window,d=a.getSelection();return{anchorNode:d.anchorNode,anchorOffset:d.anchorOffset,focusNode:d.focusNode,focusOffset:d.focusOffset}}function qne(i){return i.window===i?i.document:i.nodeType===Fs?i:i.ownerDocument}function JH(i,a,d){var h=qne(d);if(!(Yk||cy==null||cy!==ec(h))){var y=zne(cy);if(!_E||!xt(_E,y)){_E=y;var b=JS(Wk,"onSelect");if(b.length>0){var T=new Uo("onSelect","select",null,a,d);i.push({event:T,listeners:b}),T.target=cy}}}}function Gne(i,a,d,h,y,b,T){var x=d?vy(d):window;switch(a){case"focusin":(dh(x)||x.contentEditable==="true")&&(cy=x,Wk=d,_E=null);break;case"focusout":cy=null,Wk=null,_E=null;break;case"mousedown":Yk=!0;break;case"contextmenu":case"mouseup":case"dragend":Yk=!1,JH(i,h,y);break;case"selectionchange":if(Bne)break;case"keydown":case"keyup":JH(i,h,y)}}function YS(i,a){var d={};return d[i.toLowerCase()]=a.toLowerCase(),d["Webkit"+i]="webkit"+a,d["Moz"+i]="moz"+a,d}var dy={animationend:YS("Animation","AnimationEnd"),animationiteration:YS("Animation","AnimationIteration"),animationstart:YS("Animation","AnimationStart"),transitionend:YS("Transition","TransitionEnd")},Qk={},ZH={};Xn&&(ZH=document.createElement("div").style,"AnimationEvent"in window||(delete dy.animationend.animation,delete dy.animationiteration.animation,delete dy.animationstart.animation),"TransitionEvent"in window||delete dy.transitionend.transition);function QS(i){if(Qk[i])return Qk[i];if(!dy[i])return i;var a=dy[i];for(var d in a)if(a.hasOwnProperty(d)&&d in ZH)return Qk[i]=a[d];return i}var e$=QS("animationend"),t$=QS("animationiteration"),n$=QS("animationstart"),r$=QS("transitionend"),i$=new Map,o$=["abort","auxClick","cancel","canPlay","canPlayThrough","click","close","contextMenu","copy","cut","drag","dragEnd","dragEnter","dragExit","dragLeave","dragOver","dragStart","drop","durationChange","emptied","encrypted","ended","error","gotPointerCapture","input","invalid","keyDown","keyPress","keyUp","load","loadedData","loadedMetadata","loadStart","lostPointerCapture","mouseDown","mouseMove","mouseOut","mouseOver","mouseUp","paste","pause","play","playing","pointerCancel","pointerDown","pointerMove","pointerOut","pointerOver","pointerUp","progress","rateChange","reset","resize","seeked","seeking","stalled","submit","suspend","timeUpdate","touchCancel","touchEnd","touchStart","volumeChange","scroll","toggle","touchMove","waiting","wheel"];function fh(i,a){i$.set(i,a),jn(a,[i])}function Vne(){for(var i=0;i<o$.length;i++){var a=o$[i],d=a.toLowerCase(),h=a[0].toUpperCase()+a.slice(1);fh(d,"on"+h)}fh(e$,"onAnimationEnd"),fh(t$,"onAnimationIteration"),fh(n$,"onAnimationStart"),fh("dblclick","onDoubleClick"),fh("focusin","onFocus"),fh("focusout","onBlur"),fh(r$,"onTransitionEnd")}function Kne(i,a,d,h,y,b,T){var x=i$.get(a);if(x!==void 0){var I=Uo,D=a;switch(a){case"keypress":if(xd(h)===0)return;case"keydown":case"keyup":I=Hk;break;case"focusin":D="focus",I=ey;break;case"focusout":D="blur",I=ey;break;case"beforeblur":case"afterblur":I=ey;break;case"click":if(h.button===2)return;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":I=_c;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":I=kd;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":I=gs;break;case e$:case t$:case n$:I=ty;break;case r$:I=Bk;break;case"scroll":I=lE;break;case"wheel":I=ry;break;case"copy":case"cut":case"paste":I=Dk;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":I=hE;break}var $=(b&sd)!==0;{var Z=!$&&a==="scroll",X=Xne(d,x,h.type,$,Z);if(X.length>0){var ce=new I(x,D,null,h,y);i.push({event:ce,listeners:X})}}}}Vne(),ue(),uy(),jne(),GS();function Wne(i,a,d,h,y,b,T){Kne(i,a,d,h,y,b);var x=(b&Ck)===0;x&&(ze(i,a,d,h,y),J(i,a,d,h,y),Gne(i,a,d,h,y),ly(i,a,d,h,y))}var EE=["abort","canplay","canplaythrough","durationchange","emptied","encrypted","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","resize","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],Xk=new Set(["cancel","close","invalid","load","scroll","toggle"].concat(EE));function a$(i,a,d){var h=i.type||"unknown-event";i.currentTarget=d,Ql(h,a,void 0,i),i.currentTarget=null}function Yne(i,a,d){var h;if(d)for(var y=a.length-1;y>=0;y--){var b=a[y],T=b.instance,x=b.currentTarget,I=b.listener;if(T!==h&&i.isPropagationStopped())return;a$(i,I,x),h=T}else for(var D=0;D<a.length;D++){var $=a[D],Z=$.instance,X=$.currentTarget,ce=$.listener;if(Z!==h&&i.isPropagationStopped())return;a$(i,ce,X),h=Z}}function s$(i,a){for(var d=(a&sd)!==0,h=0;h<i.length;h++){var y=i[h],b=y.event,T=y.listeners;Yne(b,T,d)}I_()}function Qne(i,a,d,h,y){var b=dg(d),T=[];Wne(T,i,h,d,b,a),s$(T,a)}function jr(i,a){Xk.has(i)||u('Did not expect a listenToNonDelegatedEvent() call for "%s". This is a bug in React. Please file an issue.',i);var d=!1,h=Rie(a),y=ere(i,d);h.has(y)||(l$(a,i,$p,d),h.add(y))}function Jk(i,a,d){Xk.has(i)&&!a&&u('Did not expect a listenToNativeEvent() call for "%s" in the bubble phase. This is a bug in React. Please file an issue.',i);var h=0;a&&(h|=sd),l$(d,i,h,a)}var XS="_reactListening"+Math.random().toString(36).slice(2);function bE(i){if(!i[XS]){i[XS]=!0,_t.forEach(function(d){d!=="selectionchange"&&(Xk.has(d)||Jk(d,!1,i),Jk(d,!0,i))});var a=i.nodeType===Fs?i:i.ownerDocument;a!==null&&(a[XS]||(a[XS]=!0,Jk("selectionchange",!1,a)))}}function l$(i,a,d,h,y){var b=ih(i,a,d),T=void 0;Gp&&(a==="touchstart"||a==="touchmove"||a==="wheel")&&(T=!0),i=i,h?T!==void 0?iu(i,a,b,T):ah(i,a,b):T!==void 0?Xg(i,a,b,T):sE(i,a,b)}function u$(i,a){return i===a||i.nodeType===Ei&&i.parentNode===a}function Zk(i,a,d,h,y){var b=h;if(!(a&Wl)&&!(a&$p)){var T=y;if(h!==null){var x=h;e:for(;;){if(x===null)return;var I=x.tag;if(I===E||I===w){var D=x.stateNode.containerInfo;if(u$(D,T))break;if(I===w)for(var $=x.return;$!==null;){var Z=$.tag;if(Z===E||Z===w){var X=$.stateNode.containerInfo;if(u$(X,T))return}$=$.return}for(;D!==null;){var ce=yv(D);if(ce===null)return;var fe=ce.tag;if(fe===S||fe===A){x=b=ce;continue e}D=D.parentNode}}x=x.return}}}R_(function(){return Qne(i,a,d,b)})}function CE(i,a,d){return{instance:i,listener:a,currentTarget:d}}function Xne(i,a,d,h,y,b){for(var T=a!==null?a+"Capture":null,x=h?T:a,I=[],D=i,$=null;D!==null;){var Z=D,X=Z.stateNode,ce=Z.tag;if(ce===S&&X!==null&&($=X,x!==null)){var fe=ud(D,x);fe!=null&&I.push(CE(D,fe,$))}if(y)break;D=D.return}return I}function JS(i,a){for(var d=a+"Capture",h=[],y=i;y!==null;){var b=y,T=b.stateNode,x=b.tag;if(x===S&&T!==null){var I=T,D=ud(y,d);D!=null&&h.unshift(CE(y,D,I));var $=ud(y,a);$!=null&&h.push(CE(y,$,I))}y=y.return}return h}function fy(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==S);return i||null}function Jne(i,a){for(var d=i,h=a,y=0,b=d;b;b=fy(b))y++;for(var T=0,x=h;x;x=fy(x))T++;for(;y-T>0;)d=fy(d),y--;for(;T-y>0;)h=fy(h),T--;for(var I=y;I--;){if(d===h||h!==null&&d===h.alternate)return d;d=fy(d),h=fy(h)}return null}function c$(i,a,d,h,y){for(var b=a._reactName,T=[],x=d;x!==null&&x!==h;){var I=x,D=I.alternate,$=I.stateNode,Z=I.tag;if(D!==null&&D===h)break;if(Z===S&&$!==null){var X=$;if(y){var ce=ud(x,b);ce!=null&&T.unshift(CE(x,ce,X))}else if(!y){var fe=ud(x,b);fe!=null&&T.push(CE(x,fe,X))}}x=x.return}T.length!==0&&i.push({event:a,listeners:T})}function Zne(i,a,d,h,y){var b=h&&y?Jne(h,y):null;h!==null&&c$(i,a,h,b,!1),y!==null&&d!==null&&c$(i,d,y,b,!0)}function ere(i,a){return i+"__"+(a?"capture":"bubble")}var ys=!1,wE="dangerouslySetInnerHTML",ZS="suppressContentEditableWarning",hh="suppressHydrationWarning",d$="autoFocus",mv="children",gv="style",eT="__html",eI,tT,SE,f$,nT,h$,p$;eI={dialog:!0,webview:!0},tT=function(i,a){cg(i,a),b_(i,a),cS(i,a,{registrationNameDependencies:gn,possibleRegistrationNames:Lr})},h$=Xn&&!document.documentMode,SE=function(i,a,d){if(!ys){var h=rT(d),y=rT(a);y!==h&&(ys=!0,u("Prop `%s` did not match. Server: %s Client: %s",i,JSON.stringify(y),JSON.stringify(h)))}},f$=function(i){if(!ys){ys=!0;var a=[];i.forEach(function(d){a.push(d)}),u("Extra attributes from the server: %s",a)}},nT=function(i,a){a===!1?u("Expected `%s` listener to be a function, instead got `false`.\n\nIf you used to conditionally omit it with %s={condition && value}, pass %s={condition ? value : undefined} instead.",i,i,i):u("Expected `%s` listener to be a function, instead got a value of `%s` type.",i,typeof a)},p$=function(i,a){var d=i.namespaceURI===Gl?i.ownerDocument.createElement(i.tagName):i.ownerDocument.createElementNS(i.namespaceURI,i.tagName);return d.innerHTML=a,d.innerHTML};var tre=/\r\n?/g,nre=/\u0000|\uFFFD/g;function rT(i){io(i);var a=typeof i=="string"?i:""+i;return a.replace(tre,`
125
+ `).replace(nre,"")}function iT(i,a,d,h){var y=rT(a),b=rT(i);if(b!==y&&(h&&(ys||(ys=!0,u('Text content did not match. Server: "%s" Client: "%s"',b,y))),d&&pe))throw new Error("Text content does not match server-rendered HTML.")}function v$(i){return i.nodeType===Fs?i:i.ownerDocument}function rre(){}function oT(i){i.onclick=rre}function ire(i,a,d,h,y){for(var b in h)if(h.hasOwnProperty(b)){var T=h[b];if(b===gv)T&&Object.freeze(T),eS(a,T);else if(b===wE){var x=T?T[eT]:void 0;x!=null&&zw(a,x)}else if(b===mv)if(typeof T=="string"){var I=i!=="textarea"||T!=="";I&&ag(a,T)}else typeof T=="number"&&ag(a,""+T);else b===ZS||b===hh||b===d$||(gn.hasOwnProperty(b)?T!=null&&(typeof T!="function"&&nT(b,T),b==="onScroll"&&jr("scroll",a)):T!=null&&Ur(a,b,T,y))}}function ore(i,a,d,h){for(var y=0;y<a.length;y+=2){var b=a[y],T=a[y+1];b===gv?eS(i,T):b===wE?zw(i,T):b===mv?ag(i,T):Ur(i,b,T,h)}}function are(i,a,d,h){var y,b=v$(d),T,x=h;if(x===Gl&&(x=ig(i)),x===Gl){if(y=Kl(i,a),!y&&i!==i.toLowerCase()&&u("<%s /> is using incorrect casing. Use PascalCase for React components, or lowercase for HTML elements.",i),i==="script"){var I=b.createElement("div");I.innerHTML="<script><\/script>";var D=I.firstChild;T=I.removeChild(D)}else if(typeof a.is=="string")T=b.createElement(i,{is:a.is});else if(T=b.createElement(i),i==="select"){var $=T;a.multiple?$.multiple=!0:a.size&&($.size=a.size)}}else T=b.createElementNS(x,i);return x===Gl&&!y&&Object.prototype.toString.call(T)==="[object HTMLUnknownElement]"&&!yr.call(eI,i)&&(eI[i]=!0,u("The tag <%s> is unrecognized in this browser. If you meant to render a React component, start its name with an uppercase letter.",i)),T}function sre(i,a){return v$(a).createTextNode(i)}function lre(i,a,d,h){var y=Kl(a,d);tT(a,d);var b;switch(a){case"dialog":jr("cancel",i),jr("close",i),b=d;break;case"iframe":case"object":case"embed":jr("load",i),b=d;break;case"video":case"audio":for(var T=0;T<EE.length;T++)jr(EE[T],i);b=d;break;case"source":jr("error",i),b=d;break;case"img":case"image":case"link":jr("error",i),jr("load",i),b=d;break;case"details":jr("toggle",i),b=d;break;case"input":G(i,d),b=O(i,d),jr("invalid",i);break;case"option":Zn(i,d),b=d;break;case"select":Lp(i,d),b=Dp(i,d),jr("invalid",i);break;case"textarea":$w(i,d),b=f_(i,d),jr("invalid",i);break;default:b=d}switch(lg(a,b),ire(a,i,h,b,y),a){case"input":os(i),Be(i,d,!1);break;case"textarea":os(i),jw(i);break;case"option":cr(i,d);break;case"select":c_(i,d);break;default:typeof b.onClick=="function"&&oT(i);break}}function ure(i,a,d,h,y){tT(a,h);var b=null,T,x;switch(a){case"input":T=O(i,d),x=O(i,h),b=[];break;case"select":T=Dp(i,d),x=Dp(i,h),b=[];break;case"textarea":T=f_(i,d),x=f_(i,h),b=[];break;default:T=d,x=h,typeof T.onClick!="function"&&typeof x.onClick=="function"&&oT(i);break}lg(a,x);var I,D,$=null;for(I in T)if(!(x.hasOwnProperty(I)||!T.hasOwnProperty(I)||T[I]==null))if(I===gv){var Z=T[I];for(D in Z)Z.hasOwnProperty(D)&&($||($={}),$[D]="")}else I===wE||I===mv||I===ZS||I===hh||I===d$||(gn.hasOwnProperty(I)?b||(b=[]):(b=b||[]).push(I,null));for(I in x){var X=x[I],ce=T!=null?T[I]:void 0;if(!(!x.hasOwnProperty(I)||X===ce||X==null&&ce==null))if(I===gv)if(X&&Object.freeze(X),ce){for(D in ce)ce.hasOwnProperty(D)&&(!X||!X.hasOwnProperty(D))&&($||($={}),$[D]="");for(D in X)X.hasOwnProperty(D)&&ce[D]!==X[D]&&($||($={}),$[D]=X[D])}else $||(b||(b=[]),b.push(I,$)),$=X;else if(I===wE){var fe=X?X[eT]:void 0,Ce=ce?ce[eT]:void 0;fe!=null&&Ce!==fe&&(b=b||[]).push(I,fe)}else I===mv?(typeof X=="string"||typeof X=="number")&&(b=b||[]).push(I,""+X):I===ZS||I===hh||(gn.hasOwnProperty(I)?(X!=null&&(typeof X!="function"&&nT(I,X),I==="onScroll"&&jr("scroll",i)),!b&&ce!==X&&(b=[])):(b=b||[]).push(I,X))}return $&&(Fp($,x[gv]),(b=b||[]).push(gv,$)),b}function cre(i,a,d,h,y){d==="input"&&y.type==="radio"&&y.name!=null&&de(i,y);var b=Kl(d,h),T=Kl(d,y);switch(ore(i,a,b,T),d){case"input":_e(i,y);break;case"textarea":Bw(i,y);break;case"select":fk(i,y);break}}function dre(i){{var a=i.toLowerCase();return ug.hasOwnProperty(a)&&ug[a]||null}}function fre(i,a,d,h,y,b,T){var x,I;switch(x=Kl(a,d),tT(a,d),a){case"dialog":jr("cancel",i),jr("close",i);break;case"iframe":case"object":case"embed":jr("load",i);break;case"video":case"audio":for(var D=0;D<EE.length;D++)jr(EE[D],i);break;case"source":jr("error",i);break;case"img":case"image":case"link":jr("error",i),jr("load",i);break;case"details":jr("toggle",i);break;case"input":G(i,d),jr("invalid",i);break;case"option":Zn(i,d);break;case"select":Lp(i,d),jr("invalid",i);break;case"textarea":$w(i,d),jr("invalid",i);break}lg(a,d);{I=new Set;for(var $=i.attributes,Z=0;Z<$.length;Z++){var X=$[Z].name.toLowerCase();switch(X){case"value":break;case"checked":break;case"selected":break;default:I.add($[Z].name)}}}var ce=null;for(var fe in d)if(d.hasOwnProperty(fe)){var Ce=d[fe];if(fe===mv)typeof Ce=="string"?i.textContent!==Ce&&(d[hh]!==!0&&iT(i.textContent,Ce,b,T),ce=[mv,Ce]):typeof Ce=="number"&&i.textContent!==""+Ce&&(d[hh]!==!0&&iT(i.textContent,Ce,b,T),ce=[mv,""+Ce]);else if(gn.hasOwnProperty(fe))Ce!=null&&(typeof Ce!="function"&&nT(fe,Ce),fe==="onScroll"&&jr("scroll",i));else if(T&&typeof x=="boolean"){var ct=void 0,Ot=x&&ut?null:Ct(fe);if(d[hh]!==!0){if(!(fe===ZS||fe===hh||fe==="value"||fe==="checked"||fe==="selected")){if(fe===wE){var Tt=i.innerHTML,xn=Ce?Ce[eT]:void 0;if(xn!=null){var bn=p$(i,xn);bn!==Tt&&SE(fe,Tt,bn)}}else if(fe===gv){if(I.delete(fe),h$){var oe=Ek(Ce);ct=i.getAttribute("style"),oe!==ct&&SE(fe,ct,oe)}}else if(x&&!ut)I.delete(fe.toLowerCase()),ct=fa(i,fe,Ce),Ce!==ct&&SE(fe,ct,Ce);else if(!Ge(fe,Ot,x)&&!tt(fe,Ce,Ot,x)){var we=!1;if(Ot!==null)I.delete(Ot.attributeName),ct=Mi(i,fe,Ce,Ot);else{var ae=h;if(ae===Gl&&(ae=ig(a)),ae===Gl)I.delete(fe.toLowerCase());else{var Ue=dre(fe);Ue!==null&&Ue!==fe&&(we=!0,I.delete(Ue)),I.delete(fe)}ct=fa(i,fe,Ce)}var dt=ut;!dt&&Ce!==ct&&!we&&SE(fe,ct,Ce)}}}}}switch(T&&I.size>0&&d[hh]!==!0&&f$(I),a){case"input":os(i),Be(i,d,!0);break;case"textarea":os(i),jw(i);break;case"select":case"option":break;default:typeof d.onClick=="function"&&oT(i);break}return ce}function hre(i,a,d){var h=i.nodeValue!==a;return h}function tI(i,a){{if(ys)return;ys=!0,u("Did not expect server HTML to contain a <%s> in <%s>.",a.nodeName.toLowerCase(),i.nodeName.toLowerCase())}}function nI(i,a){{if(ys)return;ys=!0,u('Did not expect server HTML to contain the text node "%s" in <%s>.',a.nodeValue,i.nodeName.toLowerCase())}}function rI(i,a,d){{if(ys)return;ys=!0,u("Expected server HTML to contain a matching <%s> in <%s>.",a,i.nodeName.toLowerCase())}}function iI(i,a){{if(a===""||ys)return;ys=!0,u('Expected server HTML to contain a matching text node for "%s" in <%s>.',a,i.nodeName.toLowerCase())}}function pre(i,a,d){switch(a){case"input":Ut(i,d);return;case"textarea":h_(i,d);return;case"select":hk(i,d);return}}var TE=function(){},RE=function(){};{var vre=["address","applet","area","article","aside","base","basefont","bgsound","blockquote","body","br","button","caption","center","col","colgroup","dd","details","dir","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","img","input","isindex","li","link","listing","main","marquee","menu","menuitem","meta","nav","noembed","noframes","noscript","object","ol","p","param","plaintext","pre","script","section","select","source","style","summary","table","tbody","td","template","textarea","tfoot","th","thead","title","tr","track","ul","wbr","xmp"],m$=["applet","caption","html","table","td","th","marquee","object","template","foreignObject","desc","title"],mre=m$.concat(["button"]),gre=["dd","dt","li","option","optgroup","p","rp","rt"],g$={current:null,formTag:null,aTagInScope:null,buttonTagInScope:null,nobrTagInScope:null,pTagInButtonScope:null,listItemTagAutoclosing:null,dlItemTagAutoclosing:null};RE=function(i,a){var d=dn({},i||g$),h={tag:a};return m$.indexOf(a)!==-1&&(d.aTagInScope=null,d.buttonTagInScope=null,d.nobrTagInScope=null),mre.indexOf(a)!==-1&&(d.pTagInButtonScope=null),vre.indexOf(a)!==-1&&a!=="address"&&a!=="div"&&a!=="p"&&(d.listItemTagAutoclosing=null,d.dlItemTagAutoclosing=null),d.current=h,a==="form"&&(d.formTag=h),a==="a"&&(d.aTagInScope=h),a==="button"&&(d.buttonTagInScope=h),a==="nobr"&&(d.nobrTagInScope=h),a==="p"&&(d.pTagInButtonScope=h),a==="li"&&(d.listItemTagAutoclosing=h),(a==="dd"||a==="dt")&&(d.dlItemTagAutoclosing=h),d};var yre=function(i,a){switch(a){case"select":return i==="option"||i==="optgroup"||i==="#text";case"optgroup":return i==="option"||i==="#text";case"option":return i==="#text";case"tr":return i==="th"||i==="td"||i==="style"||i==="script"||i==="template";case"tbody":case"thead":case"tfoot":return i==="tr"||i==="style"||i==="script"||i==="template";case"colgroup":return i==="col"||i==="template";case"table":return i==="caption"||i==="colgroup"||i==="tbody"||i==="tfoot"||i==="thead"||i==="style"||i==="script"||i==="template";case"head":return i==="base"||i==="basefont"||i==="bgsound"||i==="link"||i==="meta"||i==="title"||i==="noscript"||i==="noframes"||i==="style"||i==="script"||i==="template";case"html":return i==="head"||i==="body"||i==="frameset";case"frameset":return i==="frame";case"#document":return i==="html"}switch(i){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return a!=="h1"&&a!=="h2"&&a!=="h3"&&a!=="h4"&&a!=="h5"&&a!=="h6";case"rp":case"rt":return gre.indexOf(a)===-1;case"body":case"caption":case"col":case"colgroup":case"frameset":case"frame":case"head":case"html":case"tbody":case"td":case"tfoot":case"th":case"thead":case"tr":return a==null}return!0},_re=function(i,a){switch(i){case"address":case"article":case"aside":case"blockquote":case"center":case"details":case"dialog":case"dir":case"div":case"dl":case"fieldset":case"figcaption":case"figure":case"footer":case"header":case"hgroup":case"main":case"menu":case"nav":case"ol":case"p":case"section":case"summary":case"ul":case"pre":case"listing":case"table":case"hr":case"xmp":case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return a.pTagInButtonScope;case"form":return a.formTag||a.pTagInButtonScope;case"li":return a.listItemTagAutoclosing;case"dd":case"dt":return a.dlItemTagAutoclosing;case"button":return a.buttonTagInScope;case"a":return a.aTagInScope;case"nobr":return a.nobrTagInScope}return null},y$={};TE=function(i,a,d){d=d||g$;var h=d.current,y=h&&h.tag;a!=null&&(i!=null&&u("validateDOMNesting: when childText is passed, childTag should be null"),i="#text");var b=yre(i,y)?null:h,T=b?null:_re(i,d),x=b||T;if(x){var I=x.tag,D=!!b+"|"+i+"|"+I;if(!y$[D]){y$[D]=!0;var $=i,Z="";if(i==="#text"?/\S/.test(a)?$="Text nodes":($="Whitespace text nodes",Z=" Make sure you don't have any extra whitespace between tags on each line of your source code."):$="<"+i+">",b){var X="";I==="table"&&i==="tr"&&(X+=" Add a <tbody>, <thead> or <tfoot> to your code to match the DOM tree generated by the browser."),u("validateDOMNesting(...): %s cannot appear as a child of <%s>.%s%s",$,I,Z,X)}else u("validateDOMNesting(...): %s cannot appear as a descendant of <%s>.",$,I)}}}}var aT="suppressHydrationWarning",sT="$",lT="/$",xE="$?",AE="$!",Ere="style",oI=null,aI=null;function bre(i){var a,d,h=i.nodeType;switch(h){case Fs:case od:{a=h===Fs?"#document":"#fragment";var y=i.documentElement;d=y?y.namespaceURI:v_(null,"");break}default:{var b=h===Ei?i.parentNode:i,T=b.namespaceURI||null;a=b.tagName,d=v_(T,a);break}}{var x=a.toLowerCase(),I=RE(null,x);return{namespace:d,ancestorInfo:I}}}function Cre(i,a,d){{var h=i,y=v_(h.namespace,a),b=RE(h.ancestorInfo,a);return{namespace:y,ancestorInfo:b}}}function Hue(i){return i}function wre(i){oI=Ba(),aI=Une();var a=null;return Yi(!1),a}function Sre(i){Fne(aI),Yi(oI),oI=null,aI=null}function Tre(i,a,d,h,y){var b;{var T=h;if(TE(i,null,T.ancestorInfo),typeof a.children=="string"||typeof a.children=="number"){var x=""+a.children,I=RE(T.ancestorInfo,i);TE(null,x,I)}b=T.namespace}var D=are(i,a,d,b);return OE(y,D),pI(D,a),D}function Rre(i,a){i.appendChild(a)}function xre(i,a,d,h,y){switch(lre(i,a,d,h),a){case"button":case"input":case"select":case"textarea":return!!d.autoFocus;case"img":return!0;default:return!1}}function Are(i,a,d,h,y,b){{var T=b;if(typeof h.children!=typeof d.children&&(typeof h.children=="string"||typeof h.children=="number")){var x=""+h.children,I=RE(T.ancestorInfo,a);TE(null,x,I)}}return ure(i,a,d,h)}function sI(i,a){return i==="textarea"||i==="noscript"||typeof a.children=="string"||typeof a.children=="number"||typeof a.dangerouslySetInnerHTML=="object"&&a.dangerouslySetInnerHTML!==null&&a.dangerouslySetInnerHTML.__html!=null}function kre(i,a,d,h){{var y=d;TE(null,i,y.ancestorInfo)}var b=sre(i,a);return OE(h,b),b}function Ire(){var i=window.event;return i===void 0?tu:Yo(i.type)}var lI=typeof setTimeout=="function"?setTimeout:void 0,Ore=typeof clearTimeout=="function"?clearTimeout:void 0,uI=-1,_$=typeof Promise=="function"?Promise:void 0,Nre=typeof queueMicrotask=="function"?queueMicrotask:typeof _$<"u"?function(i){return _$.resolve(null).then(i).catch(Mre)}:lI;function Mre(i){setTimeout(function(){throw i})}function Pre(i,a,d,h){switch(a){case"button":case"input":case"select":case"textarea":d.autoFocus&&i.focus();return;case"img":{d.src&&(i.src=d.src);return}}}function Dre(i,a,d,h,y,b){cre(i,a,d,h,y),pI(i,y)}function E$(i){ag(i,"")}function Lre(i,a,d){i.nodeValue=d}function Ure(i,a){i.appendChild(a)}function Fre(i,a){var d;i.nodeType===Ei?(d=i.parentNode,d.insertBefore(a,i)):(d=i,d.appendChild(a));var h=i._reactRootContainer;h==null&&d.onclick===null&&oT(d)}function Hre(i,a,d){i.insertBefore(a,d)}function $re(i,a,d){i.nodeType===Ei?i.parentNode.insertBefore(a,d):i.insertBefore(a,d)}function Bre(i,a){i.removeChild(a)}function jre(i,a){i.nodeType===Ei?i.parentNode.removeChild(a):i.removeChild(a)}function cI(i,a){var d=a,h=0;do{var y=d.nextSibling;if(i.removeChild(d),y&&y.nodeType===Ei){var b=y.data;if(b===lT)if(h===0){i.removeChild(y),En(a);return}else h--;else(b===sT||b===xE||b===AE)&&h++}d=y}while(d);En(a)}function zre(i,a){i.nodeType===Ei?cI(i.parentNode,a):i.nodeType===ga&&cI(i,a),En(i)}function qre(i){i=i;var a=i.style;typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"}function Gre(i){i.nodeValue=""}function Vre(i,a){i=i;var d=a[Ere],h=d!=null&&d.hasOwnProperty("display")?d.display:null;i.style.display=sg("display",h)}function Kre(i,a){i.nodeValue=a}function Wre(i){i.nodeType===ga?i.textContent="":i.nodeType===Fs&&i.documentElement&&i.removeChild(i.documentElement)}function Yre(i,a,d){return i.nodeType!==ga||a.toLowerCase()!==i.nodeName.toLowerCase()?null:i}function Qre(i,a){return a===""||i.nodeType!==Vl?null:i}function Xre(i){return i.nodeType!==Ei?null:i}function b$(i){return i.data===xE}function dI(i){return i.data===AE}function Jre(i){var a=i.nextSibling&&i.nextSibling.dataset,d,h,y;return a&&(d=a.dgst,h=a.msg,y=a.stck),{message:h,digest:d,stack:y}}function Zre(i,a){i._reactRetry=a}function uT(i){for(;i!=null;i=i.nextSibling){var a=i.nodeType;if(a===ga||a===Vl)break;if(a===Ei){var d=i.data;if(d===sT||d===AE||d===xE)break;if(d===lT)return null}}return i}function kE(i){return uT(i.nextSibling)}function eie(i){return uT(i.firstChild)}function tie(i){return uT(i.firstChild)}function nie(i){return uT(i.nextSibling)}function rie(i,a,d,h,y,b,T){OE(b,i),pI(i,d);var x;{var I=y;x=I.namespace}var D=(b.mode&hn)!==Pt;return fre(i,a,d,x,h,D,T)}function iie(i,a,d,h){return OE(d,i),d.mode&hn,hre(i,a)}function oie(i,a){OE(a,i)}function aie(i){for(var a=i.nextSibling,d=0;a;){if(a.nodeType===Ei){var h=a.data;if(h===lT){if(d===0)return kE(a);d--}else(h===sT||h===AE||h===xE)&&d++}a=a.nextSibling}return null}function C$(i){for(var a=i.previousSibling,d=0;a;){if(a.nodeType===Ei){var h=a.data;if(h===sT||h===AE||h===xE){if(d===0)return a;d--}else h===lT&&d++}a=a.previousSibling}return null}function sie(i){En(i)}function lie(i){En(i)}function uie(i){return i!=="head"&&i!=="body"}function cie(i,a,d,h){var y=!0;iT(a.nodeValue,d,h,y)}function die(i,a,d,h,y,b){if(a[aT]!==!0){var T=!0;iT(h.nodeValue,y,b,T)}}function fie(i,a){a.nodeType===ga?tI(i,a):a.nodeType===Ei||nI(i,a)}function hie(i,a){{var d=i.parentNode;d!==null&&(a.nodeType===ga?tI(d,a):a.nodeType===Ei||nI(d,a))}}function pie(i,a,d,h,y){(y||a[aT]!==!0)&&(h.nodeType===ga?tI(d,h):h.nodeType===Ei||nI(d,h))}function vie(i,a,d){rI(i,a)}function mie(i,a){iI(i,a)}function gie(i,a,d){{var h=i.parentNode;h!==null&&rI(h,a)}}function yie(i,a){{var d=i.parentNode;d!==null&&iI(d,a)}}function _ie(i,a,d,h,y,b){(b||a[aT]!==!0)&&rI(d,h)}function Eie(i,a,d,h,y){(y||a[aT]!==!0)&&iI(d,h)}function bie(i){u("An error occurred during hydration. The server HTML was replaced with client content in <%s>.",i.nodeName.toLowerCase())}function Cie(i){bE(i)}var hy=Math.random().toString(36).slice(2),py="__reactFiber$"+hy,fI="__reactProps$"+hy,IE="__reactContainer$"+hy,hI="__reactEvents$"+hy,wie="__reactListeners$"+hy,Sie="__reactHandles$"+hy;function Tie(i){delete i[py],delete i[fI],delete i[hI],delete i[wie],delete i[Sie]}function OE(i,a){a[py]=i}function cT(i,a){a[IE]=i}function w$(i){i[IE]=null}function NE(i){return!!i[IE]}function yv(i){var a=i[py];if(a)return a;for(var d=i.parentNode;d;){if(a=d[IE]||d[py],a){var h=a.alternate;if(a.child!==null||h!==null&&h.child!==null)for(var y=C$(i);y!==null;){var b=y[py];if(b)return b;y=C$(y)}return a}i=d,d=i.parentNode}return null}function ph(i){var a=i[py]||i[IE];return a&&(a.tag===S||a.tag===A||a.tag===H||a.tag===E)?a:null}function vy(i){if(i.tag===S||i.tag===A)return i.stateNode;throw new Error("getNodeFromInstance: Invalid argument.")}function dT(i){return i[fI]||null}function pI(i,a){i[fI]=a}function Rie(i){var a=i[hI];return a===void 0&&(a=i[hI]=new Set),a}var S$={},T$=t.ReactDebugCurrentFrame;function fT(i){if(i){var a=i._owner,d=sl(i.type,i._source,a?a.type:null);T$.setExtraStackFrame(d)}else T$.setExtraStackFrame(null)}function au(i,a,d,h,y){{var b=Function.call.bind(yr);for(var T in i)if(b(i,T)){var x=void 0;try{if(typeof i[T]!="function"){var I=Error((h||"React class")+": "+d+" type `"+T+"` is invalid; it must be a function, usually from the `prop-types` package, but received `"+typeof i[T]+"`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`.");throw I.name="Invariant Violation",I}x=i[T](a,T,h,d,null,"SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED")}catch(D){x=D}x&&!(x instanceof Error)&&(fT(y),u("%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).",h||"React class",d,T,typeof x),fT(null)),x instanceof Error&&!(x.message in S$)&&(S$[x.message]=!0,fT(y),u("Failed %s type: %s",d,x.message),fT(null))}}}var vI=[],hT;hT=[];var Md=-1;function vh(i){return{current:i}}function Ra(i,a){if(Md<0){u("Unexpected pop.");return}a!==hT[Md]&&u("Unexpected Fiber popped."),i.current=vI[Md],vI[Md]=null,hT[Md]=null,Md--}function xa(i,a,d){Md++,vI[Md]=i.current,hT[Md]=d,i.current=a}var mI;mI={};var zs={};Object.freeze(zs);var Pd=vh(zs),Cc=vh(!1),gI=zs;function my(i,a,d){return d&&wc(a)?gI:Pd.current}function R$(i,a,d){{var h=i.stateNode;h.__reactInternalMemoizedUnmaskedChildContext=a,h.__reactInternalMemoizedMaskedChildContext=d}}function gy(i,a){{var d=i.type,h=d.contextTypes;if(!h)return zs;var y=i.stateNode;if(y&&y.__reactInternalMemoizedUnmaskedChildContext===a)return y.__reactInternalMemoizedMaskedChildContext;var b={};for(var T in h)b[T]=a[T];{var x=Kt(i)||"Unknown";au(h,b,"context",x)}return y&&R$(i,a,b),b}}function pT(){return Cc.current}function wc(i){{var a=i.childContextTypes;return a!=null}}function vT(i){Ra(Cc,i),Ra(Pd,i)}function yI(i){Ra(Cc,i),Ra(Pd,i)}function x$(i,a,d){{if(Pd.current!==zs)throw new Error("Unexpected context found on stack. This error is likely caused by a bug in React. Please file an issue.");xa(Pd,a,i),xa(Cc,d,i)}}function A$(i,a,d){{var h=i.stateNode,y=a.childContextTypes;if(typeof h.getChildContext!="function"){{var b=Kt(i)||"Unknown";mI[b]||(mI[b]=!0,u("%s.childContextTypes is specified but there is no getChildContext() method on the instance. You can either define getChildContext() on %s or remove childContextTypes from it.",b,b))}return d}var T=h.getChildContext();for(var x in T)if(!(x in y))throw new Error((Kt(i)||"Unknown")+'.getChildContext(): key "'+x+'" is not defined in childContextTypes.');{var I=Kt(i)||"Unknown";au(y,T,"child context",I)}return dn({},d,T)}}function mT(i){{var a=i.stateNode,d=a&&a.__reactInternalMemoizedMergedChildContext||zs;return gI=Pd.current,xa(Pd,d,i),xa(Cc,Cc.current,i),!0}}function k$(i,a,d){{var h=i.stateNode;if(!h)throw new Error("Expected to have an instance by this point. This error is likely caused by a bug in React. Please file an issue.");if(d){var y=A$(i,a,gI);h.__reactInternalMemoizedMergedChildContext=y,Ra(Cc,i),Ra(Pd,i),xa(Pd,y,i),xa(Cc,d,i)}else Ra(Cc,i),xa(Cc,d,i)}}function xie(i){{if(!D_(i)||i.tag!==v)throw new Error("Expected subtree parent to be a mounted class component. This error is likely caused by a bug in React. Please file an issue.");var a=i;do{switch(a.tag){case E:return a.stateNode.context;case v:{var d=a.type;if(wc(d))return a.stateNode.__reactInternalMemoizedMergedChildContext;break}}a=a.return}while(a!==null);throw new Error("Found unexpected detached subtree parent. This error is likely caused by a bug in React. Please file an issue.")}}var mh=0,gT=1,Dd=null,_I=!1,EI=!1;function I$(i){Dd===null?Dd=[i]:Dd.push(i)}function Aie(i){_I=!0,I$(i)}function O$(){_I&&gh()}function gh(){if(!EI&&Dd!==null){EI=!0;var i=0,a=ps();try{var d=!0,h=Dd;for(Li(No);i<h.length;i++){var y=h[i];do y=y(d);while(y!==null)}Dd=null,_I=!1}catch(b){throw Dd!==null&&(Dd=Dd.slice(i+1)),yg(Eg,gh),b}finally{Li(a),EI=!1}}return null}var yy=[],_y=0,yT=null,_T=0,ml=[],gl=0,_v=null,Ld=1,Ud="";function kie(i){return bv(),(i.flags&N_)!==It}function Iie(i){return bv(),_T}function Oie(){var i=Ud,a=Ld,d=a&~Nie(a);return d.toString(32)+i}function Ev(i,a){bv(),yy[_y++]=_T,yy[_y++]=yT,yT=i,_T=a}function N$(i,a,d){bv(),ml[gl++]=Ld,ml[gl++]=Ud,ml[gl++]=_v,_v=i;var h=Ld,y=Ud,b=ET(h)-1,T=h&~(1<<b),x=d+1,I=ET(a)+b;if(I>30){var D=b-b%5,$=(1<<D)-1,Z=(T&$).toString(32),X=T>>D,ce=b-D,fe=ET(a)+ce,Ce=x<<ce,ct=Ce|X,Ot=Z+y;Ld=1<<fe|ct,Ud=Ot}else{var Tt=x<<b,xn=Tt|T,bn=y;Ld=1<<I|xn,Ud=bn}}function bI(i){bv();var a=i.return;if(a!==null){var d=1,h=0;Ev(i,d),N$(i,d,h)}}function ET(i){return 32-Rg(i)}function Nie(i){return 1<<ET(i)-1}function CI(i){for(;i===yT;)yT=yy[--_y],yy[_y]=null,_T=yy[--_y],yy[_y]=null;for(;i===_v;)_v=ml[--gl],ml[gl]=null,Ud=ml[--gl],ml[gl]=null,Ld=ml[--gl],ml[gl]=null}function Mie(){return bv(),_v!==null?{id:Ld,overflow:Ud}:null}function Pie(i,a){bv(),ml[gl++]=Ld,ml[gl++]=Ud,ml[gl++]=_v,Ld=a.id,Ud=a.overflow,_v=i}function bv(){Xo()||u("Expected to be hydrating. This is a bug in React. Please file an issue.")}var Qo=null,yl=null,su=!1,Cv=!1,yh=null;function Die(){su&&u("We should not be hydrating here. This is a bug in React. Please file a bug.")}function M$(){Cv=!0}function Lie(){return Cv}function Uie(i){var a=i.stateNode.containerInfo;return yl=tie(a),Qo=i,su=!0,yh=null,Cv=!1,!0}function Fie(i,a,d){return yl=nie(a),Qo=i,su=!0,yh=null,Cv=!1,d!==null&&Pie(i,d),!0}function P$(i,a){switch(i.tag){case E:{fie(i.stateNode.containerInfo,a);break}case S:{var d=(i.mode&hn)!==Pt;pie(i.type,i.memoizedProps,i.stateNode,a,d);break}case H:{var h=i.memoizedState;h.dehydrated!==null&&hie(h.dehydrated,a);break}}}function D$(i,a){P$(i,a);var d=Bse();d.stateNode=a,d.return=i;var h=i.deletions;h===null?(i.deletions=[d],i.flags|=$n):h.push(d)}function wI(i,a){{if(Cv)return;switch(i.tag){case E:{var d=i.stateNode.containerInfo;switch(a.tag){case S:var h=a.type;a.pendingProps,vie(d,h);break;case A:var y=a.pendingProps;mie(d,y);break}break}case S:{var b=i.type,T=i.memoizedProps,x=i.stateNode;switch(a.tag){case S:{var I=a.type,D=a.pendingProps,$=(i.mode&hn)!==Pt;_ie(b,T,x,I,D,$);break}case A:{var Z=a.pendingProps,X=(i.mode&hn)!==Pt;Eie(b,T,x,Z,X);break}}break}case H:{var ce=i.memoizedState,fe=ce.dehydrated;if(fe!==null)switch(a.tag){case S:var Ce=a.type;a.pendingProps,gie(fe,Ce);break;case A:var ct=a.pendingProps;yie(fe,ct);break}break}default:return}}}function L$(i,a){a.flags=a.flags&~us|br,wI(i,a)}function U$(i,a){switch(i.tag){case S:{var d=i.type;i.pendingProps;var h=Yre(a,d);return h!==null?(i.stateNode=h,Qo=i,yl=eie(h),!0):!1}case A:{var y=i.pendingProps,b=Qre(a,y);return b!==null?(i.stateNode=b,Qo=i,yl=null,!0):!1}case H:{var T=Xre(a);if(T!==null){var x={dehydrated:T,treeContext:Mie(),retryLane:Sa};i.memoizedState=x;var I=jse(T);return I.return=i,i.child=I,Qo=i,yl=null,!0}return!1}default:return!1}}function SI(i){return(i.mode&hn)!==Pt&&(i.flags&Gt)===It}function TI(i){throw new Error("Hydration failed because the initial UI does not match what was rendered on the server.")}function RI(i){if(su){var a=yl;if(!a){SI(i)&&(wI(Qo,i),TI()),L$(Qo,i),su=!1,Qo=i;return}var d=a;if(!U$(i,a)){SI(i)&&(wI(Qo,i),TI()),a=kE(d);var h=Qo;if(!a||!U$(i,a)){L$(Qo,i),su=!1,Qo=i;return}D$(h,d)}}}function Hie(i,a,d){var h=i.stateNode,y=!Cv,b=rie(h,i.type,i.memoizedProps,a,d,i,y);return i.updateQueue=b,b!==null}function $ie(i){var a=i.stateNode,d=i.memoizedProps,h=iie(a,d,i);if(h){var y=Qo;if(y!==null)switch(y.tag){case E:{var b=y.stateNode.containerInfo,T=(y.mode&hn)!==Pt;cie(b,a,d,T);break}case S:{var x=y.type,I=y.memoizedProps,D=y.stateNode,$=(y.mode&hn)!==Pt;die(x,I,D,a,d,$);break}}}return h}function Bie(i){var a=i.memoizedState,d=a!==null?a.dehydrated:null;if(!d)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");oie(d,i)}function jie(i){var a=i.memoizedState,d=a!==null?a.dehydrated:null;if(!d)throw new Error("Expected to have a hydrated suspense instance. This error is likely caused by a bug in React. Please file an issue.");return aie(d)}function F$(i){for(var a=i.return;a!==null&&a.tag!==S&&a.tag!==E&&a.tag!==H;)a=a.return;Qo=a}function bT(i){if(i!==Qo)return!1;if(!su)return F$(i),su=!0,!1;if(i.tag!==E&&(i.tag!==S||uie(i.type)&&!sI(i.type,i.memoizedProps))){var a=yl;if(a)if(SI(i))H$(i),TI();else for(;a;)D$(i,a),a=kE(a)}return F$(i),i.tag===H?yl=jie(i):yl=Qo?kE(i.stateNode):null,!0}function zie(){return su&&yl!==null}function H$(i){for(var a=yl;a;)P$(i,a),a=kE(a)}function Ey(){Qo=null,yl=null,su=!1,Cv=!1}function $$(){yh!==null&&(P3(yh),yh=null)}function Xo(){return su}function xI(i){yh===null?yh=[i]:yh.push(i)}var qie=t.ReactCurrentBatchConfig,Gie=null;function Vie(){return qie.transition}var lu={recordUnsafeLifecycleWarnings:function(i,a){},flushPendingUnsafeLifecycleWarnings:function(){},recordLegacyContextWarning:function(i,a){},flushLegacyContextWarning:function(){},discardPendingWarnings:function(){}};{var Kie=function(i){for(var a=null,d=i;d!==null;)d.mode&$r&&(a=d),d=d.return;return a},wv=function(i){var a=[];return i.forEach(function(d){a.push(d)}),a.sort().join(", ")},ME=[],PE=[],DE=[],LE=[],UE=[],FE=[],Sv=new Set;lu.recordUnsafeLifecycleWarnings=function(i,a){Sv.has(i.type)||(typeof a.componentWillMount=="function"&&a.componentWillMount.__suppressDeprecationWarning!==!0&&ME.push(i),i.mode&$r&&typeof a.UNSAFE_componentWillMount=="function"&&PE.push(i),typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps.__suppressDeprecationWarning!==!0&&DE.push(i),i.mode&$r&&typeof a.UNSAFE_componentWillReceiveProps=="function"&&LE.push(i),typeof a.componentWillUpdate=="function"&&a.componentWillUpdate.__suppressDeprecationWarning!==!0&&UE.push(i),i.mode&$r&&typeof a.UNSAFE_componentWillUpdate=="function"&&FE.push(i))},lu.flushPendingUnsafeLifecycleWarnings=function(){var i=new Set;ME.length>0&&(ME.forEach(function(X){i.add(Kt(X)||"Component"),Sv.add(X.type)}),ME=[]);var a=new Set;PE.length>0&&(PE.forEach(function(X){a.add(Kt(X)||"Component"),Sv.add(X.type)}),PE=[]);var d=new Set;DE.length>0&&(DE.forEach(function(X){d.add(Kt(X)||"Component"),Sv.add(X.type)}),DE=[]);var h=new Set;LE.length>0&&(LE.forEach(function(X){h.add(Kt(X)||"Component"),Sv.add(X.type)}),LE=[]);var y=new Set;UE.length>0&&(UE.forEach(function(X){y.add(Kt(X)||"Component"),Sv.add(X.type)}),UE=[]);var b=new Set;if(FE.length>0&&(FE.forEach(function(X){b.add(Kt(X)||"Component"),Sv.add(X.type)}),FE=[]),a.size>0){var T=wv(a);u(`Using UNSAFE_componentWillMount in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
126
+
127
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
128
+
129
+ Please update the following components: %s`,T)}if(h.size>0){var x=wv(h);u(`Using UNSAFE_componentWillReceiveProps in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
130
+
131
+ * Move data fetching code or side effects to componentDidUpdate.
132
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
133
+
134
+ Please update the following components: %s`,x)}if(b.size>0){var I=wv(b);u(`Using UNSAFE_componentWillUpdate in strict mode is not recommended and may indicate bugs in your code. See https://reactjs.org/link/unsafe-component-lifecycles for details.
135
+
136
+ * Move data fetching code or side effects to componentDidUpdate.
137
+
138
+ Please update the following components: %s`,I)}if(i.size>0){var D=wv(i);s(`componentWillMount has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
139
+
140
+ * Move code with side effects to componentDidMount, and set initial state in the constructor.
141
+ * Rename componentWillMount to UNSAFE_componentWillMount to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
142
+
143
+ Please update the following components: %s`,D)}if(d.size>0){var $=wv(d);s(`componentWillReceiveProps has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
144
+
145
+ * Move data fetching code or side effects to componentDidUpdate.
146
+ * If you're updating state whenever props change, refactor your code to use memoization techniques or move it to static getDerivedStateFromProps. Learn more at: https://reactjs.org/link/derived-state
147
+ * Rename componentWillReceiveProps to UNSAFE_componentWillReceiveProps to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
148
+
149
+ Please update the following components: %s`,$)}if(y.size>0){var Z=wv(y);s(`componentWillUpdate has been renamed, and is not recommended for use. See https://reactjs.org/link/unsafe-component-lifecycles for details.
150
+
151
+ * Move data fetching code or side effects to componentDidUpdate.
152
+ * Rename componentWillUpdate to UNSAFE_componentWillUpdate to suppress this warning in non-strict mode. In React 18.x, only the UNSAFE_ name will work. To rename all deprecated lifecycles to their new names, you can run \`npx react-codemod rename-unsafe-lifecycles\` in your project source folder.
153
+
154
+ Please update the following components: %s`,Z)}};var CT=new Map,B$=new Set;lu.recordLegacyContextWarning=function(i,a){var d=Kie(i);if(d===null){u("Expected to find a StrictMode component in a strict mode tree. This error is likely caused by a bug in React. Please file an issue.");return}if(!B$.has(i.type)){var h=CT.get(d);(i.type.contextTypes!=null||i.type.childContextTypes!=null||a!==null&&typeof a.getChildContext=="function")&&(h===void 0&&(h=[],CT.set(d,h)),h.push(i))}},lu.flushLegacyContextWarning=function(){CT.forEach(function(i,a){if(i.length!==0){var d=i[0],h=new Set;i.forEach(function(b){h.add(Kt(b)||"Component"),B$.add(b.type)});var y=wv(h);try{qn(d),u(`Legacy context API has been detected within a strict-mode tree.
155
+
156
+ The old API will be supported in all 16.x releases, but applications using it should migrate to the new version.
157
+
158
+ Please update the following components: %s
159
+
160
+ Learn more about this warning here: https://reactjs.org/link/legacy-context`,y)}finally{Jr()}}})},lu.discardPendingWarnings=function(){ME=[],PE=[],DE=[],LE=[],UE=[],FE=[],CT=new Map}}function uu(i,a){if(i&&i.defaultProps){var d=dn({},a),h=i.defaultProps;for(var y in h)d[y]===void 0&&(d[y]=h[y]);return d}return a}var AI=vh(null),kI;kI={};var wT=null,by=null,II=null,ST=!1;function TT(){wT=null,by=null,II=null,ST=!1}function j$(){ST=!0}function z$(){ST=!1}function q$(i,a,d){xa(AI,a._currentValue,i),a._currentValue=d,a._currentRenderer!==void 0&&a._currentRenderer!==null&&a._currentRenderer!==kI&&u("Detected multiple renderers concurrently rendering the same context provider. This is currently unsupported."),a._currentRenderer=kI}function OI(i,a){var d=AI.current;Ra(AI,a),i._currentValue=d}function NI(i,a,d){for(var h=i;h!==null;){var y=h.alternate;if(Cd(h.childLanes,a)?y!==null&&!Cd(y.childLanes,a)&&(y.childLanes=rn(y.childLanes,a)):(h.childLanes=rn(h.childLanes,a),y!==null&&(y.childLanes=rn(y.childLanes,a))),h===d)break;h=h.return}h!==d&&u("Expected to find the propagation root when scheduling context work. This error is likely caused by a bug in React. Please file an issue.")}function Wie(i,a,d){Yie(i,a,d)}function Yie(i,a,d){var h=i.child;for(h!==null&&(h.return=i);h!==null;){var y=void 0,b=h.dependencies;if(b!==null){y=h.child;for(var T=b.firstContext;T!==null;){if(T.context===a){if(h.tag===v){var x=Di(d),I=Fd(fr,x);I.tag=xT;var D=h.updateQueue;if(D!==null){var $=D.shared,Z=$.pending;Z===null?I.next=I:(I.next=Z.next,Z.next=I),$.pending=I}}h.lanes=rn(h.lanes,d);var X=h.alternate;X!==null&&(X.lanes=rn(X.lanes,d)),NI(h.return,d,i),b.lanes=rn(b.lanes,d);break}T=T.next}}else if(h.tag===L)y=h.type===i.type?null:h.child;else if(h.tag===ot){var ce=h.return;if(ce===null)throw new Error("We just came from a parent so we must have had a parent. This is a bug in React.");ce.lanes=rn(ce.lanes,d);var fe=ce.alternate;fe!==null&&(fe.lanes=rn(fe.lanes,d)),NI(ce,d,i),y=h.sibling}else y=h.child;if(y!==null)y.return=h;else for(y=h;y!==null;){if(y===i){y=null;break}var Ce=y.sibling;if(Ce!==null){Ce.return=y.return,y=Ce;break}y=y.return}h=y}}function Cy(i,a){wT=i,by=null,II=null;var d=i.dependencies;if(d!==null){var h=d.firstContext;h!==null&&(Ta(d.lanes,a)&&JE(),d.firstContext=null)}}function Xi(i){ST&&u("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");var a=i._currentValue;if(II!==i){var d={context:i,memoizedValue:a,next:null};if(by===null){if(wT===null)throw new Error("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().");by=d,wT.dependencies={lanes:Se,firstContext:d}}else by=by.next=d}return a}var Tv=null;function MI(i){Tv===null?Tv=[i]:Tv.push(i)}function Qie(){if(Tv!==null){for(var i=0;i<Tv.length;i++){var a=Tv[i],d=a.interleaved;if(d!==null){a.interleaved=null;var h=d.next,y=a.pending;if(y!==null){var b=y.next;y.next=h,d.next=b}a.pending=d}}Tv=null}}function G$(i,a,d,h){var y=a.interleaved;return y===null?(d.next=d,MI(a)):(d.next=y.next,y.next=d),a.interleaved=d,RT(i,h)}function Xie(i,a,d,h){var y=a.interleaved;y===null?(d.next=d,MI(a)):(d.next=y.next,y.next=d),a.interleaved=d}function Jie(i,a,d,h){var y=a.interleaved;return y===null?(d.next=d,MI(a)):(d.next=y.next,y.next=d),a.interleaved=d,RT(i,h)}function _s(i,a){return RT(i,a)}var Zie=RT;function RT(i,a){i.lanes=rn(i.lanes,a);var d=i.alternate;d!==null&&(d.lanes=rn(d.lanes,a)),d===null&&(i.flags&(br|us))!==It&&V3(i);for(var h=i,y=i.return;y!==null;)y.childLanes=rn(y.childLanes,a),d=y.alternate,d!==null?d.childLanes=rn(d.childLanes,a):(y.flags&(br|us))!==It&&V3(i),h=y,y=y.return;if(h.tag===E){var b=h.stateNode;return b}else return null}var V$=0,K$=1,xT=2,PI=3,AT=!1,DI,kT;DI=!1,kT=null;function LI(i){var a={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:Se},effects:null};i.updateQueue=a}function W$(i,a){var d=a.updateQueue,h=i.updateQueue;if(d===h){var y={baseState:h.baseState,firstBaseUpdate:h.firstBaseUpdate,lastBaseUpdate:h.lastBaseUpdate,shared:h.shared,effects:h.effects};a.updateQueue=y}}function Fd(i,a){var d={eventTime:i,lane:a,tag:V$,payload:null,callback:null,next:null};return d}function _h(i,a,d){var h=i.updateQueue;if(h===null)return null;var y=h.shared;if(kT===y&&!DI&&(u("An update (setState, replaceState, or forceUpdate) was scheduled from inside an update function. Update functions should be pure, with zero side-effects. Consider using componentDidUpdate or a callback."),DI=!0),Zae()){var b=y.pending;return b===null?a.next=a:(a.next=b.next,b.next=a),y.pending=a,Zie(i,d)}else return Jie(i,y,a,d)}function IT(i,a,d){var h=a.updateQueue;if(h!==null){var y=h.shared;if(W_(d)){var b=y.lanes;b=Q_(b,i.pendingLanes);var T=rn(b,d);y.lanes=T,Zf(i,T)}}}function UI(i,a){var d=i.updateQueue,h=i.alternate;if(h!==null){var y=h.updateQueue;if(d===y){var b=null,T=null,x=d.firstBaseUpdate;if(x!==null){var I=x;do{var D={eventTime:I.eventTime,lane:I.lane,tag:I.tag,payload:I.payload,callback:I.callback,next:null};T===null?b=T=D:(T.next=D,T=D),I=I.next}while(I!==null);T===null?b=T=a:(T.next=a,T=a)}else b=T=a;d={baseState:y.baseState,firstBaseUpdate:b,lastBaseUpdate:T,shared:y.shared,effects:y.effects},i.updateQueue=d;return}}var $=d.lastBaseUpdate;$===null?d.firstBaseUpdate=a:$.next=a,d.lastBaseUpdate=a}function eoe(i,a,d,h,y,b){switch(d.tag){case K$:{var T=d.payload;if(typeof T=="function"){j$();var x=T.call(b,h,y);{if(i.mode&$r){Pi(!0);try{T.call(b,h,y)}finally{Pi(!1)}}z$()}return x}return T}case PI:i.flags=i.flags&~Vi|Gt;case V$:{var I=d.payload,D;if(typeof I=="function"){j$(),D=I.call(b,h,y);{if(i.mode&$r){Pi(!0);try{I.call(b,h,y)}finally{Pi(!1)}}z$()}}else D=I;return D==null?h:dn({},h,D)}case xT:return AT=!0,h}return h}function OT(i,a,d,h){var y=i.updateQueue;AT=!1,kT=y.shared;var b=y.firstBaseUpdate,T=y.lastBaseUpdate,x=y.shared.pending;if(x!==null){y.shared.pending=null;var I=x,D=I.next;I.next=null,T===null?b=D:T.next=D,T=I;var $=i.alternate;if($!==null){var Z=$.updateQueue,X=Z.lastBaseUpdate;X!==T&&(X===null?Z.firstBaseUpdate=D:X.next=D,Z.lastBaseUpdate=I)}}if(b!==null){var ce=y.baseState,fe=Se,Ce=null,ct=null,Ot=null,Tt=b;do{var xn=Tt.lane,bn=Tt.eventTime;if(Cd(h,xn)){if(Ot!==null){var we={eventTime:bn,lane:Tn,tag:Tt.tag,payload:Tt.payload,callback:Tt.callback,next:null};Ot=Ot.next=we}ce=eoe(i,y,Tt,ce,a,d);var ae=Tt.callback;if(ae!==null&&Tt.lane!==Tn){i.flags|=cl;var Ue=y.effects;Ue===null?y.effects=[Tt]:Ue.push(Tt)}}else{var oe={eventTime:bn,lane:xn,tag:Tt.tag,payload:Tt.payload,callback:Tt.callback,next:null};Ot===null?(ct=Ot=oe,Ce=ce):Ot=Ot.next=oe,fe=rn(fe,xn)}if(Tt=Tt.next,Tt===null){if(x=y.shared.pending,x===null)break;var dt=x,nt=dt.next;dt.next=null,Tt=nt,y.lastBaseUpdate=dt,y.shared.pending=null}}while(!0);Ot===null&&(Ce=ce),y.baseState=Ce,y.firstBaseUpdate=ct,y.lastBaseUpdate=Ot;var jt=y.shared.interleaved;if(jt!==null){var Qt=jt;do fe=rn(fe,Qt.lane),Qt=Qt.next;while(Qt!==jt)}else b===null&&(y.shared.lanes=Se);cb(fe),i.lanes=fe,i.memoizedState=ce}kT=null}function toe(i,a){if(typeof i!="function")throw new Error("Invalid argument passed as callback. Expected a function. Instead "+("received: "+i));i.call(a)}function Y$(){AT=!1}function NT(){return AT}function Q$(i,a,d){var h=a.effects;if(a.effects=null,h!==null)for(var y=0;y<h.length;y++){var b=h[y],T=b.callback;T!==null&&(b.callback=null,toe(T,d))}}var FI={},X$=new n.Component().refs,HI,$I,BI,jI,zI,J$,MT,qI,GI,VI;{HI=new Set,$I=new Set,BI=new Set,jI=new Set,qI=new Set,zI=new Set,GI=new Set,VI=new Set;var Z$=new Set;MT=function(i,a){if(!(i===null||typeof i=="function")){var d=a+"_"+i;Z$.has(d)||(Z$.add(d),u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,i))}},J$=function(i,a){if(a===void 0){var d=kn(i)||"Component";zI.has(d)||(zI.add(d),u("%s.getDerivedStateFromProps(): A valid state object (or null) must be returned. You have returned undefined.",d))}},Object.defineProperty(FI,"_processChildContext",{enumerable:!1,value:function(){throw new Error("_processChildContext is not available in React 16+. This likely means you have multiple copies of React and are attempting to nest a React 15 tree inside a React 16 tree using unstable_renderSubtreeIntoContainer, which isn't supported. Try to make sure you have only one copy of React (and ideally, switch to ReactDOM.createPortal).")}}),Object.freeze(FI)}function KI(i,a,d,h){var y=i.memoizedState,b=d(h,y);{if(i.mode&$r){Pi(!0);try{b=d(h,y)}finally{Pi(!1)}}J$(a,b)}var T=b==null?y:dn({},y,b);if(i.memoizedState=T,i.lanes===Se){var x=i.updateQueue;x.baseState=T}}var WI={isMounted:Fa,enqueueSetState:function(i,a,d){var h=ss(i),y=qa(),b=xh(h),T=Fd(y,b);T.payload=a,d!=null&&(MT(d,"setState"),T.callback=d);var x=_h(h,T,b);x!==null&&(_o(x,h,b,y),IT(x,h,b)),hc(h,b)},enqueueReplaceState:function(i,a,d){var h=ss(i),y=qa(),b=xh(h),T=Fd(y,b);T.tag=K$,T.payload=a,d!=null&&(MT(d,"replaceState"),T.callback=d);var x=_h(h,T,b);x!==null&&(_o(x,h,b,y),IT(x,h,b)),hc(h,b)},enqueueForceUpdate:function(i,a){var d=ss(i),h=qa(),y=xh(d),b=Fd(h,y);b.tag=xT,a!=null&&(MT(a,"forceUpdate"),b.callback=a);var T=_h(d,b,y);T!==null&&(_o(T,d,y,h),IT(T,d,y)),q_(d,y)}};function e4(i,a,d,h,y,b,T){var x=i.stateNode;if(typeof x.shouldComponentUpdate=="function"){var I=x.shouldComponentUpdate(h,b,T);{if(i.mode&$r){Pi(!0);try{I=x.shouldComponentUpdate(h,b,T)}finally{Pi(!1)}}I===void 0&&u("%s.shouldComponentUpdate(): Returned undefined instead of a boolean value. Make sure to return true or false.",kn(a)||"Component")}return I}return a.prototype&&a.prototype.isPureReactComponent?!xt(d,h)||!xt(y,b):!0}function noe(i,a,d){var h=i.stateNode;{var y=kn(a)||"Component",b=h.render;b||(a.prototype&&typeof a.prototype.render=="function"?u("%s(...): No `render` method found on the returned component instance: did you accidentally return an object from the constructor?",y):u("%s(...): No `render` method found on the returned component instance: you may have forgotten to define `render`.",y)),h.getInitialState&&!h.getInitialState.isReactClassApproved&&!h.state&&u("getInitialState was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Did you mean to define a state property instead?",y),h.getDefaultProps&&!h.getDefaultProps.isReactClassApproved&&u("getDefaultProps was defined on %s, a plain JavaScript class. This is only supported for classes created using React.createClass. Use a static property to define defaultProps instead.",y),h.propTypes&&u("propTypes was defined as an instance property on %s. Use a static property to define propTypes instead.",y),h.contextType&&u("contextType was defined as an instance property on %s. Use a static property to define contextType instead.",y),h.contextTypes&&u("contextTypes was defined as an instance property on %s. Use a static property to define contextTypes instead.",y),a.contextType&&a.contextTypes&&!GI.has(a)&&(GI.add(a),u("%s declares both contextTypes and contextType static properties. The legacy contextTypes property will be ignored.",y)),typeof h.componentShouldUpdate=="function"&&u("%s has a method called componentShouldUpdate(). Did you mean shouldComponentUpdate()? The name is phrased as a question because the function is expected to return a value.",y),a.prototype&&a.prototype.isPureReactComponent&&typeof h.shouldComponentUpdate<"u"&&u("%s has a method called shouldComponentUpdate(). shouldComponentUpdate should not be used when extending React.PureComponent. Please extend React.Component if shouldComponentUpdate is used.",kn(a)||"A pure component"),typeof h.componentDidUnmount=="function"&&u("%s has a method called componentDidUnmount(). But there is no such lifecycle method. Did you mean componentWillUnmount()?",y),typeof h.componentDidReceiveProps=="function"&&u("%s has a method called componentDidReceiveProps(). But there is no such lifecycle method. If you meant to update the state in response to changing props, use componentWillReceiveProps(). If you meant to fetch data or run side-effects or mutations after React has updated the UI, use componentDidUpdate().",y),typeof h.componentWillRecieveProps=="function"&&u("%s has a method called componentWillRecieveProps(). Did you mean componentWillReceiveProps()?",y),typeof h.UNSAFE_componentWillRecieveProps=="function"&&u("%s has a method called UNSAFE_componentWillRecieveProps(). Did you mean UNSAFE_componentWillReceiveProps()?",y);var T=h.props!==d;h.props!==void 0&&T&&u("%s(...): When calling super() in `%s`, make sure to pass up the same props that your component's constructor was passed.",y,y),h.defaultProps&&u("Setting defaultProps as an instance property on %s is not supported and will be ignored. Instead, define defaultProps as a static property on %s.",y,y),typeof h.getSnapshotBeforeUpdate=="function"&&typeof h.componentDidUpdate!="function"&&!BI.has(a)&&(BI.add(a),u("%s: getSnapshotBeforeUpdate() should be used with componentDidUpdate(). This component defines getSnapshotBeforeUpdate() only.",kn(a))),typeof h.getDerivedStateFromProps=="function"&&u("%s: getDerivedStateFromProps() is defined as an instance method and will be ignored. Instead, declare it as a static method.",y),typeof h.getDerivedStateFromError=="function"&&u("%s: getDerivedStateFromError() is defined as an instance method and will be ignored. Instead, declare it as a static method.",y),typeof a.getSnapshotBeforeUpdate=="function"&&u("%s: getSnapshotBeforeUpdate() is defined as a static method and will be ignored. Instead, declare it as an instance method.",y);var x=h.state;x&&(typeof x!="object"||Cn(x))&&u("%s.state: must be set to an object or null",y),typeof h.getChildContext=="function"&&typeof a.childContextTypes!="object"&&u("%s.getChildContext(): childContextTypes must be defined in order to use getChildContext().",y)}}function t4(i,a){a.updater=WI,i.stateNode=a,zf(a,i),a._reactInternalInstance=FI}function n4(i,a,d){var h=!1,y=zs,b=zs,T=a.contextType;if("contextType"in a){var x=T===null||T!==void 0&&T.$$typeof===$e&&T._context===void 0;if(!x&&!VI.has(a)){VI.add(a);var I="";T===void 0?I=" However, it is set to undefined. This can be caused by a typo or by mixing up named and default imports. This can also happen due to a circular dependency, so try moving the createContext() call to a separate file.":typeof T!="object"?I=" However, it is set to a "+typeof T+".":T.$$typeof===Ee?I=" Did you accidentally pass the Context.Provider instead?":T._context!==void 0?I=" Did you accidentally pass the Context.Consumer instead?":I=" However, it is set to an object with keys {"+Object.keys(T).join(", ")+"}.",u("%s defines an invalid contextType. contextType should point to the Context object returned by React.createContext().%s",kn(a)||"Component",I)}}if(typeof T=="object"&&T!==null)b=Xi(T);else{y=my(i,a,!0);var D=a.contextTypes;h=D!=null,b=h?gy(i,y):zs}var $=new a(d,b);if(i.mode&$r){Pi(!0);try{$=new a(d,b)}finally{Pi(!1)}}var Z=i.memoizedState=$.state!==null&&$.state!==void 0?$.state:null;t4(i,$);{if(typeof a.getDerivedStateFromProps=="function"&&Z===null){var X=kn(a)||"Component";$I.has(X)||($I.add(X),u("`%s` uses `getDerivedStateFromProps` but its initial state is %s. This is not recommended. Instead, define the initial state by assigning an object to `this.state` in the constructor of `%s`. This ensures that `getDerivedStateFromProps` arguments have a consistent shape.",X,$.state===null?"null":"undefined",X))}if(typeof a.getDerivedStateFromProps=="function"||typeof $.getSnapshotBeforeUpdate=="function"){var ce=null,fe=null,Ce=null;if(typeof $.componentWillMount=="function"&&$.componentWillMount.__suppressDeprecationWarning!==!0?ce="componentWillMount":typeof $.UNSAFE_componentWillMount=="function"&&(ce="UNSAFE_componentWillMount"),typeof $.componentWillReceiveProps=="function"&&$.componentWillReceiveProps.__suppressDeprecationWarning!==!0?fe="componentWillReceiveProps":typeof $.UNSAFE_componentWillReceiveProps=="function"&&(fe="UNSAFE_componentWillReceiveProps"),typeof $.componentWillUpdate=="function"&&$.componentWillUpdate.__suppressDeprecationWarning!==!0?Ce="componentWillUpdate":typeof $.UNSAFE_componentWillUpdate=="function"&&(Ce="UNSAFE_componentWillUpdate"),ce!==null||fe!==null||Ce!==null){var ct=kn(a)||"Component",Ot=typeof a.getDerivedStateFromProps=="function"?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";jI.has(ct)||(jI.add(ct),u(`Unsafe legacy lifecycles will not be called for components using new component APIs.
161
+
162
+ %s uses %s but also contains the following legacy lifecycles:%s%s%s
163
+
164
+ The above lifecycles should be removed. Learn more about this warning here:
165
+ https://reactjs.org/link/unsafe-component-lifecycles`,ct,Ot,ce!==null?`
166
+ `+ce:"",fe!==null?`
167
+ `+fe:"",Ce!==null?`
168
+ `+Ce:""))}}}return h&&R$(i,y,b),$}function roe(i,a){var d=a.state;typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount(),d!==a.state&&(u("%s.componentWillMount(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",Kt(i)||"Component"),WI.enqueueReplaceState(a,a.state,null))}function r4(i,a,d,h){var y=a.state;if(typeof a.componentWillReceiveProps=="function"&&a.componentWillReceiveProps(d,h),typeof a.UNSAFE_componentWillReceiveProps=="function"&&a.UNSAFE_componentWillReceiveProps(d,h),a.state!==y){{var b=Kt(i)||"Component";HI.has(b)||(HI.add(b),u("%s.componentWillReceiveProps(): Assigning directly to this.state is deprecated (except inside a component's constructor). Use setState instead.",b))}WI.enqueueReplaceState(a,a.state,null)}}function YI(i,a,d,h){noe(i,a,d);var y=i.stateNode;y.props=d,y.state=i.memoizedState,y.refs=X$,LI(i);var b=a.contextType;if(typeof b=="object"&&b!==null)y.context=Xi(b);else{var T=my(i,a,!0);y.context=gy(i,T)}{if(y.state===d){var x=kn(a)||"Component";qI.has(x)||(qI.add(x),u("%s: It is not recommended to assign props directly to state because updates to props won't be reflected in state. In most cases, it is better to use props directly.",x))}i.mode&$r&&lu.recordLegacyContextWarning(i,y),lu.recordUnsafeLifecycleWarnings(i,y)}y.state=i.memoizedState;var I=a.getDerivedStateFromProps;if(typeof I=="function"&&(KI(i,a,I,d),y.state=i.memoizedState),typeof a.getDerivedStateFromProps!="function"&&typeof y.getSnapshotBeforeUpdate!="function"&&(typeof y.UNSAFE_componentWillMount=="function"||typeof y.componentWillMount=="function")&&(roe(i,y),OT(i,d,y,h),y.state=i.memoizedState),typeof y.componentDidMount=="function"){var D=nn;D|=_a,(i.mode&fs)!==Pt&&(D|=Ea),i.flags|=D}}function ioe(i,a,d,h){var y=i.stateNode,b=i.memoizedProps;y.props=b;var T=y.context,x=a.contextType,I=zs;if(typeof x=="object"&&x!==null)I=Xi(x);else{var D=my(i,a,!0);I=gy(i,D)}var $=a.getDerivedStateFromProps,Z=typeof $=="function"||typeof y.getSnapshotBeforeUpdate=="function";!Z&&(typeof y.UNSAFE_componentWillReceiveProps=="function"||typeof y.componentWillReceiveProps=="function")&&(b!==d||T!==I)&&r4(i,y,d,I),Y$();var X=i.memoizedState,ce=y.state=X;if(OT(i,d,y,h),ce=i.memoizedState,b===d&&X===ce&&!pT()&&!NT()){if(typeof y.componentDidMount=="function"){var fe=nn;fe|=_a,(i.mode&fs)!==Pt&&(fe|=Ea),i.flags|=fe}return!1}typeof $=="function"&&(KI(i,a,$,d),ce=i.memoizedState);var Ce=NT()||e4(i,a,b,d,X,ce,I);if(Ce){if(!Z&&(typeof y.UNSAFE_componentWillMount=="function"||typeof y.componentWillMount=="function")&&(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"){var ct=nn;ct|=_a,(i.mode&fs)!==Pt&&(ct|=Ea),i.flags|=ct}}else{if(typeof y.componentDidMount=="function"){var Ot=nn;Ot|=_a,(i.mode&fs)!==Pt&&(Ot|=Ea),i.flags|=Ot}i.memoizedProps=d,i.memoizedState=ce}return y.props=d,y.state=ce,y.context=I,Ce}function ooe(i,a,d,h,y){var b=a.stateNode;W$(i,a);var T=a.memoizedProps,x=a.type===a.elementType?T:uu(a.type,T);b.props=x;var I=a.pendingProps,D=b.context,$=d.contextType,Z=zs;if(typeof $=="object"&&$!==null)Z=Xi($);else{var X=my(a,d,!0);Z=gy(a,X)}var ce=d.getDerivedStateFromProps,fe=typeof ce=="function"||typeof b.getSnapshotBeforeUpdate=="function";!fe&&(typeof b.UNSAFE_componentWillReceiveProps=="function"||typeof b.componentWillReceiveProps=="function")&&(T!==I||D!==Z)&&r4(a,b,h,Z),Y$();var Ce=a.memoizedState,ct=b.state=Ce;if(OT(a,h,b,y),ct=a.memoizedState,T===I&&Ce===ct&&!pT()&&!NT()&&!ge)return typeof b.componentDidUpdate=="function"&&(T!==i.memoizedProps||Ce!==i.memoizedState)&&(a.flags|=nn),typeof b.getSnapshotBeforeUpdate=="function"&&(T!==i.memoizedProps||Ce!==i.memoizedState)&&(a.flags|=ls),!1;typeof ce=="function"&&(KI(a,d,ce,h),ct=a.memoizedState);var Ot=NT()||e4(a,d,x,h,Ce,ct,Z)||ge;return Ot?(!fe&&(typeof b.UNSAFE_componentWillUpdate=="function"||typeof b.componentWillUpdate=="function")&&(typeof b.componentWillUpdate=="function"&&b.componentWillUpdate(h,ct,Z),typeof b.UNSAFE_componentWillUpdate=="function"&&b.UNSAFE_componentWillUpdate(h,ct,Z)),typeof b.componentDidUpdate=="function"&&(a.flags|=nn),typeof b.getSnapshotBeforeUpdate=="function"&&(a.flags|=ls)):(typeof b.componentDidUpdate=="function"&&(T!==i.memoizedProps||Ce!==i.memoizedState)&&(a.flags|=nn),typeof b.getSnapshotBeforeUpdate=="function"&&(T!==i.memoizedProps||Ce!==i.memoizedState)&&(a.flags|=ls),a.memoizedProps=h,a.memoizedState=ct),b.props=h,b.state=ct,b.context=Z,Ot}var QI,XI,JI,ZI,eO,i4=function(i,a){};QI=!1,XI=!1,JI={},ZI={},eO={},i4=function(i,a){if(!(i===null||typeof i!="object")&&!(!i._store||i._store.validated||i.key!=null)){if(typeof i._store!="object")throw new Error("React Component in warnForMissingKey should have a _store. This error is likely caused by a bug in React. Please file an issue.");i._store.validated=!0;var d=Kt(a)||"Component";ZI[d]||(ZI[d]=!0,u('Each child in a list should have a unique "key" prop. See https://reactjs.org/link/warning-keys for more information.'))}};function HE(i,a,d){var h=d.ref;if(h!==null&&typeof h!="function"&&typeof h!="object"){if((i.mode&$r||De)&&!(d._owner&&d._self&&d._owner.stateNode!==d._self)){var y=Kt(i)||"Component";JI[y]||(u('A string ref, "%s", has been found within a strict mode tree. String refs are a source of potential bugs and should be avoided. We recommend using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref',h),JI[y]=!0)}if(d._owner){var b=d._owner,T;if(b){var x=b;if(x.tag!==v)throw new Error("Function components cannot have string refs. We recommend using useRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref");T=x.stateNode}if(!T)throw new Error("Missing owner for string ref "+h+". This error is likely caused by a bug in React. Please file an issue.");var I=T;lr(h,"ref");var D=""+h;if(a!==null&&a.ref!==null&&typeof a.ref=="function"&&a.ref._stringRef===D)return a.ref;var $=function(Z){var X=I.refs;X===X$&&(X=I.refs={}),Z===null?delete X[D]:X[D]=Z};return $._stringRef=D,$}else{if(typeof h!="string")throw new Error("Expected ref to be a function, a string, an object returned by React.createRef(), or null.");if(!d._owner)throw new Error("Element ref was specified as a string ("+h+`) but no owner was set. This could happen for one of the following reasons:
169
+ 1. You may be adding a ref to a function component
170
+ 2. You may be adding a ref to a component that was not created inside a component's render method
171
+ 3. You have multiple copies of React loaded
172
+ See https://reactjs.org/link/refs-must-have-owner for more information.`)}}return h}function PT(i,a){var d=Object.prototype.toString.call(a);throw new Error("Objects are not valid as a React child (found: "+(d==="[object Object]"?"object with keys {"+Object.keys(a).join(", ")+"}":d)+"). If you meant to render a collection of children, use an array instead.")}function DT(i){{var a=Kt(i)||"Component";if(eO[a])return;eO[a]=!0,u("Functions are not valid as a React child. This may happen if you return a Component instead of <Component /> from render. Or maybe you meant to call this function rather than return it.")}}function o4(i){var a=i._payload,d=i._init;return d(a)}function a4(i){function a(oe,we){if(i){var ae=oe.deletions;ae===null?(oe.deletions=[we],oe.flags|=$n):ae.push(we)}}function d(oe,we){if(!i)return null;for(var ae=we;ae!==null;)a(oe,ae),ae=ae.sibling;return null}function h(oe,we){for(var ae=new Map,Ue=we;Ue!==null;)Ue.key!==null?ae.set(Ue.key,Ue):ae.set(Ue.index,Ue),Ue=Ue.sibling;return ae}function y(oe,we){var ae=Mv(oe,we);return ae.index=0,ae.sibling=null,ae}function b(oe,we,ae){if(oe.index=ae,!i)return oe.flags|=N_,we;var Ue=oe.alternate;if(Ue!==null){var dt=Ue.index;return dt<we?(oe.flags|=br,we):dt}else return oe.flags|=br,we}function T(oe){return i&&oe.alternate===null&&(oe.flags|=br),oe}function x(oe,we,ae,Ue){if(we===null||we.tag!==A){var dt=xN(ae,oe.mode,Ue);return dt.return=oe,dt}else{var nt=y(we,ae);return nt.return=oe,nt}}function I(oe,we,ae,Ue){var dt=ae.type;if(dt===ao)return $(oe,we,ae.props.children,Ue,ae.key);if(we!==null&&(we.elementType===dt||Q3(we,ae)||typeof dt=="object"&&dt!==null&&dt.$$typeof===Rt&&o4(dt)===we.type)){var nt=y(we,ae.props);return nt.ref=HE(oe,we,ae),nt.return=oe,nt._debugSource=ae._source,nt._debugOwner=ae._owner,nt}var jt=RN(ae,oe.mode,Ue);return jt.ref=HE(oe,we,ae),jt.return=oe,jt}function D(oe,we,ae,Ue){if(we===null||we.tag!==w||we.stateNode.containerInfo!==ae.containerInfo||we.stateNode.implementation!==ae.implementation){var dt=AN(ae,oe.mode,Ue);return dt.return=oe,dt}else{var nt=y(we,ae.children||[]);return nt.return=oe,nt}}function $(oe,we,ae,Ue,dt){if(we===null||we.tag!==k){var nt=kh(ae,oe.mode,Ue,dt);return nt.return=oe,nt}else{var jt=y(we,ae);return jt.return=oe,jt}}function Z(oe,we,ae){if(typeof we=="string"&&we!==""||typeof we=="number"){var Ue=xN(""+we,oe.mode,ae);return Ue.return=oe,Ue}if(typeof we=="object"&&we!==null){switch(we.$$typeof){case yi:{var dt=RN(we,oe.mode,ae);return dt.ref=HE(oe,null,we),dt.return=oe,dt}case _i:{var nt=AN(we,oe.mode,ae);return nt.return=oe,nt}case Rt:{var jt=we._payload,Qt=we._init;return Z(oe,Qt(jt),ae)}}if(Cn(we)||Ps(we)){var sr=kh(we,oe.mode,ae,null);return sr.return=oe,sr}PT(oe,we)}return typeof we=="function"&&DT(oe),null}function X(oe,we,ae,Ue){var dt=we!==null?we.key:null;if(typeof ae=="string"&&ae!==""||typeof ae=="number")return dt!==null?null:x(oe,we,""+ae,Ue);if(typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case yi:return ae.key===dt?I(oe,we,ae,Ue):null;case _i:return ae.key===dt?D(oe,we,ae,Ue):null;case Rt:{var nt=ae._payload,jt=ae._init;return X(oe,we,jt(nt),Ue)}}if(Cn(ae)||Ps(ae))return dt!==null?null:$(oe,we,ae,Ue,null);PT(oe,ae)}return typeof ae=="function"&&DT(oe),null}function ce(oe,we,ae,Ue,dt){if(typeof Ue=="string"&&Ue!==""||typeof Ue=="number"){var nt=oe.get(ae)||null;return x(we,nt,""+Ue,dt)}if(typeof Ue=="object"&&Ue!==null){switch(Ue.$$typeof){case yi:{var jt=oe.get(Ue.key===null?ae:Ue.key)||null;return I(we,jt,Ue,dt)}case _i:{var Qt=oe.get(Ue.key===null?ae:Ue.key)||null;return D(we,Qt,Ue,dt)}case Rt:var sr=Ue._payload,Un=Ue._init;return ce(oe,we,ae,Un(sr),dt)}if(Cn(Ue)||Ps(Ue)){var Hi=oe.get(ae)||null;return $(we,Hi,Ue,dt,null)}PT(we,Ue)}return typeof Ue=="function"&&DT(we),null}function fe(oe,we,ae){{if(typeof oe!="object"||oe===null)return we;switch(oe.$$typeof){case yi:case _i:i4(oe,ae);var Ue=oe.key;if(typeof Ue!="string")break;if(we===null){we=new Set,we.add(Ue);break}if(!we.has(Ue)){we.add(Ue);break}u("Encountered two children with the same key, `%s`. Keys should be unique so that components maintain their identity across updates. Non-unique keys may cause children to be duplicated and/or omitted — the behavior is unsupported and could change in a future version.",Ue);break;case Rt:var dt=oe._payload,nt=oe._init;fe(nt(dt),we,ae);break}}return we}function Ce(oe,we,ae,Ue){for(var dt=null,nt=0;nt<ae.length;nt++){var jt=ae[nt];dt=fe(jt,dt,oe)}for(var Qt=null,sr=null,Un=we,Hi=0,Fn=0,wi=null;Un!==null&&Fn<ae.length;Fn++){Un.index>Fn?(wi=Un,Un=null):wi=Un.sibling;var ka=X(oe,Un,ae[Fn],Ue);if(ka===null){Un===null&&(Un=wi);break}i&&Un&&ka.alternate===null&&a(oe,Un),Hi=b(ka,Hi,Fn),sr===null?Qt=ka:sr.sibling=ka,sr=ka,Un=wi}if(Fn===ae.length){if(d(oe,Un),Xo()){var ia=Fn;Ev(oe,ia)}return Qt}if(Un===null){for(;Fn<ae.length;Fn++){var Gs=Z(oe,ae[Fn],Ue);Gs!==null&&(Hi=b(Gs,Hi,Fn),sr===null?Qt=Gs:sr.sibling=Gs,sr=Gs)}if(Xo()){var Ga=Fn;Ev(oe,Ga)}return Qt}for(var Va=h(oe,Un);Fn<ae.length;Fn++){var Ia=ce(Va,oe,Fn,ae[Fn],Ue);Ia!==null&&(i&&Ia.alternate!==null&&Va.delete(Ia.key===null?Fn:Ia.key),Hi=b(Ia,Hi,Fn),sr===null?Qt=Ia:sr.sibling=Ia,sr=Ia)}if(i&&Va.forEach(function(Hy){return a(oe,Hy)}),Xo()){var qd=Fn;Ev(oe,qd)}return Qt}function ct(oe,we,ae,Ue){var dt=Ps(ae);if(typeof dt!="function")throw new Error("An object is not an iterable. This error is likely caused by a bug in React. Please file an issue.");{typeof Symbol=="function"&&ae[Symbol.toStringTag]==="Generator"&&(XI||u("Using Generators as children is unsupported and will likely yield unexpected results because enumerating a generator mutates it. You may convert it to an array with `Array.from()` or the `[...spread]` operator before rendering. Keep in mind you might need to polyfill these features for older browsers."),XI=!0),ae.entries===dt&&(QI||u("Using Maps as children is not supported. Use an array of keyed ReactElements instead."),QI=!0);var nt=dt.call(ae);if(nt)for(var jt=null,Qt=nt.next();!Qt.done;Qt=nt.next()){var sr=Qt.value;jt=fe(sr,jt,oe)}}var Un=dt.call(ae);if(Un==null)throw new Error("An iterable object provided no iterator.");for(var Hi=null,Fn=null,wi=we,ka=0,ia=0,Gs=null,Ga=Un.next();wi!==null&&!Ga.done;ia++,Ga=Un.next()){wi.index>ia?(Gs=wi,wi=null):Gs=wi.sibling;var Va=X(oe,wi,Ga.value,Ue);if(Va===null){wi===null&&(wi=Gs);break}i&&wi&&Va.alternate===null&&a(oe,wi),ka=b(Va,ka,ia),Fn===null?Hi=Va:Fn.sibling=Va,Fn=Va,wi=Gs}if(Ga.done){if(d(oe,wi),Xo()){var Ia=ia;Ev(oe,Ia)}return Hi}if(wi===null){for(;!Ga.done;ia++,Ga=Un.next()){var qd=Z(oe,Ga.value,Ue);qd!==null&&(ka=b(qd,ka,ia),Fn===null?Hi=qd:Fn.sibling=qd,Fn=qd)}if(Xo()){var Hy=ia;Ev(oe,Hy)}return Hi}for(var vb=h(oe,wi);!Ga.done;ia++,Ga=Un.next()){var Oc=ce(vb,oe,ia,Ga.value,Ue);Oc!==null&&(i&&Oc.alternate!==null&&vb.delete(Oc.key===null?ia:Oc.key),ka=b(Oc,ka,ia),Fn===null?Hi=Oc:Fn.sibling=Oc,Fn=Oc)}if(i&&vb.forEach(function(_le){return a(oe,_le)}),Xo()){var yle=ia;Ev(oe,yle)}return Hi}function Ot(oe,we,ae,Ue){if(we!==null&&we.tag===A){d(oe,we.sibling);var dt=y(we,ae);return dt.return=oe,dt}d(oe,we);var nt=xN(ae,oe.mode,Ue);return nt.return=oe,nt}function Tt(oe,we,ae,Ue){for(var dt=ae.key,nt=we;nt!==null;){if(nt.key===dt){var jt=ae.type;if(jt===ao){if(nt.tag===k){d(oe,nt.sibling);var Qt=y(nt,ae.props.children);return Qt.return=oe,Qt._debugSource=ae._source,Qt._debugOwner=ae._owner,Qt}}else if(nt.elementType===jt||Q3(nt,ae)||typeof jt=="object"&&jt!==null&&jt.$$typeof===Rt&&o4(jt)===nt.type){d(oe,nt.sibling);var sr=y(nt,ae.props);return sr.ref=HE(oe,nt,ae),sr.return=oe,sr._debugSource=ae._source,sr._debugOwner=ae._owner,sr}d(oe,nt);break}else a(oe,nt);nt=nt.sibling}if(ae.type===ao){var Un=kh(ae.props.children,oe.mode,Ue,ae.key);return Un.return=oe,Un}else{var Hi=RN(ae,oe.mode,Ue);return Hi.ref=HE(oe,we,ae),Hi.return=oe,Hi}}function xn(oe,we,ae,Ue){for(var dt=ae.key,nt=we;nt!==null;){if(nt.key===dt)if(nt.tag===w&&nt.stateNode.containerInfo===ae.containerInfo&&nt.stateNode.implementation===ae.implementation){d(oe,nt.sibling);var jt=y(nt,ae.children||[]);return jt.return=oe,jt}else{d(oe,nt);break}else a(oe,nt);nt=nt.sibling}var Qt=AN(ae,oe.mode,Ue);return Qt.return=oe,Qt}function bn(oe,we,ae,Ue){var dt=typeof ae=="object"&&ae!==null&&ae.type===ao&&ae.key===null;if(dt&&(ae=ae.props.children),typeof ae=="object"&&ae!==null){switch(ae.$$typeof){case yi:return T(Tt(oe,we,ae,Ue));case _i:return T(xn(oe,we,ae,Ue));case Rt:var nt=ae._payload,jt=ae._init;return bn(oe,we,jt(nt),Ue)}if(Cn(ae))return Ce(oe,we,ae,Ue);if(Ps(ae))return ct(oe,we,ae,Ue);PT(oe,ae)}return typeof ae=="string"&&ae!==""||typeof ae=="number"?T(Ot(oe,we,""+ae,Ue)):(typeof ae=="function"&&DT(oe),d(oe,we))}return bn}var wy=a4(!0),s4=a4(!1);function aoe(i,a){if(i!==null&&a.child!==i.child)throw new Error("Resuming work not yet implemented.");if(a.child!==null){var d=a.child,h=Mv(d,d.pendingProps);for(a.child=h,h.return=a;d.sibling!==null;)d=d.sibling,h=h.sibling=Mv(d,d.pendingProps),h.return=a;h.sibling=null}}function soe(i,a){for(var d=i.child;d!==null;)Lse(d,a),d=d.sibling}var $E={},Eh=vh($E),BE=vh($E),LT=vh($E);function UT(i){if(i===$E)throw new Error("Expected host context to exist. This error is likely caused by a bug in React. Please file an issue.");return i}function l4(){var i=UT(LT.current);return i}function tO(i,a){xa(LT,a,i),xa(BE,i,i),xa(Eh,$E,i);var d=bre(a);Ra(Eh,i),xa(Eh,d,i)}function Sy(i){Ra(Eh,i),Ra(BE,i),Ra(LT,i)}function nO(){var i=UT(Eh.current);return i}function u4(i){UT(LT.current);var a=UT(Eh.current),d=Cre(a,i.type);a!==d&&(xa(BE,i,i),xa(Eh,d,i))}function rO(i){BE.current===i&&(Ra(Eh,i),Ra(BE,i))}var loe=0,c4=1,d4=1,jE=2,cu=vh(loe);function iO(i,a){return(i&a)!==0}function Ty(i){return i&c4}function oO(i,a){return i&c4|a}function uoe(i,a){return i|a}function bh(i,a){xa(cu,a,i)}function Ry(i){Ra(cu,i)}function coe(i,a){var d=i.memoizedState;return d!==null?d.dehydrated!==null:(i.memoizedProps,!0)}function FT(i){for(var a=i;a!==null;){if(a.tag===H){var d=a.memoizedState;if(d!==null){var h=d.dehydrated;if(h===null||b$(h)||dI(h))return a}}else if(a.tag===Me&&a.memoizedProps.revealOrder!==void 0){var y=(a.flags&Gt)!==It;if(y)return a}else if(a.child!==null){a.child.return=a,a=a.child;continue}if(a===i)return null;for(;a.sibling===null;){if(a.return===null||a.return===i)return null;a=a.return}a.sibling.return=a.return,a=a.sibling}return null}var Es=0,fo=1,Sc=2,ho=4,Jo=8,aO=[];function sO(){for(var i=0;i<aO.length;i++){var a=aO[i];a._workInProgressVersionPrimary=null}aO.length=0}function doe(i,a){var d=a._getVersion,h=d(a._source);i.mutableSourceEagerHydrationData==null?i.mutableSourceEagerHydrationData=[a,h]:i.mutableSourceEagerHydrationData.push(a,h)}var lt=t.ReactCurrentDispatcher,zE=t.ReactCurrentBatchConfig,lO,xy;lO=new Set;var Rv=Se,ar=null,po=null,vo=null,HT=!1,qE=!1,GE=0,foe=0,hoe=25,xe=null,_l=null,Ch=-1,uO=!1;function Vn(){{var i=xe;_l===null?_l=[i]:_l.push(i)}}function Ze(){{var i=xe;_l!==null&&(Ch++,_l[Ch]!==i&&poe(i))}}function Ay(i){i!=null&&!Cn(i)&&u("%s received a final argument that is not an array (instead, received `%s`). When specified, the final argument must be an array.",xe,typeof i)}function poe(i){{var a=Kt(ar);if(!lO.has(a)&&(lO.add(a),_l!==null)){for(var d="",h=30,y=0;y<=Ch;y++){for(var b=_l[y],T=y===Ch?i:b,x=y+1+". "+b;x.length<h;)x+=" ";x+=T+`
173
+ `,d+=x}u(`React has detected a change in the order of Hooks called by %s. This will lead to bugs and errors if not fixed. For more information, read the Rules of Hooks: https://reactjs.org/link/rules-of-hooks
174
+
175
+ Previous render Next render
176
+ ------------------------------------------------------
177
+ %s ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
178
+ `,a,d)}}}function Aa(){throw new Error(`Invalid hook call. Hooks can only be called inside of the body of a function component. This could happen for one of the following reasons:
179
+ 1. You might have mismatching versions of React and the renderer (such as React DOM)
180
+ 2. You might be breaking the Rules of Hooks
181
+ 3. You might have more than one copy of React in the same app
182
+ See https://reactjs.org/link/invalid-hook-call for tips about how to debug and fix this problem.`)}function cO(i,a){if(uO)return!1;if(a===null)return u("%s received a final argument during this render, but not during the previous render. Even though the final argument is optional, its type cannot change between renders.",xe),!1;i.length!==a.length&&u(`The final argument passed to %s changed size between renders. The order and size of this array must remain constant.
183
+
184
+ Previous: %s
185
+ Incoming: %s`,xe,"["+a.join(", ")+"]","["+i.join(", ")+"]");for(var d=0;d<a.length&&d<i.length;d++)if(!pt(i[d],a[d]))return!1;return!0}function ky(i,a,d,h,y,b){Rv=b,ar=a,_l=i!==null?i._debugHookTypes:null,Ch=-1,uO=i!==null&&i.type!==a.type,a.memoizedState=null,a.updateQueue=null,a.lanes=Se,i!==null&&i.memoizedState!==null?lt.current=M4:_l!==null?lt.current=N4:lt.current=O4;var T=d(h,y);if(qE){var x=0;do{if(qE=!1,GE=0,x>=hoe)throw new Error("Too many re-renders. React limits the number of renders to prevent an infinite loop.");x+=1,uO=!1,po=null,vo=null,a.updateQueue=null,Ch=-1,lt.current=P4,T=d(h,y)}while(qE)}lt.current=JT,a._debugHookTypes=_l;var I=po!==null&&po.next!==null;if(Rv=Se,ar=null,po=null,vo=null,xe=null,_l=null,Ch=-1,i!==null&&(i.flags&lo)!==(a.flags&lo)&&(i.mode&hn)!==Pt&&u("Internal React error: Expected static flag was missing. Please notify the React team."),HT=!1,I)throw new Error("Rendered fewer hooks than expected. This may be caused by an accidental early return statement.");return T}function Iy(){var i=GE!==0;return GE=0,i}function f4(i,a,d){a.updateQueue=i.updateQueue,(a.mode&fs)!==Pt?a.flags&=~(fd|Ea|Or|nn):a.flags&=~(Or|nn),i.lanes=Jf(i.lanes,d)}function h4(){if(lt.current=JT,HT){for(var i=ar.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}HT=!1}Rv=Se,ar=null,po=null,vo=null,_l=null,Ch=-1,xe=null,R4=!1,qE=!1,GE=0}function Tc(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return vo===null?ar.memoizedState=vo=i:vo=vo.next=i,vo}function El(){var i;if(po===null){var a=ar.alternate;a!==null?i=a.memoizedState:i=null}else i=po.next;var d;if(vo===null?d=ar.memoizedState:d=vo.next,d!==null)vo=d,d=vo.next,po=i;else{if(i===null)throw new Error("Rendered more hooks than during the previous render.");po=i;var h={memoizedState:po.memoizedState,baseState:po.baseState,baseQueue:po.baseQueue,queue:po.queue,next:null};vo===null?ar.memoizedState=vo=h:vo=vo.next=h}return vo}function p4(){return{lastEffect:null,stores:null}}function dO(i,a){return typeof a=="function"?a(i):a}function fO(i,a,d){var h=Tc(),y;d!==void 0?y=d(a):y=a,h.memoizedState=h.baseState=y;var b={pending:null,interleaved:null,lanes:Se,dispatch:null,lastRenderedReducer:i,lastRenderedState:y};h.queue=b;var T=b.dispatch=yoe.bind(null,ar,b);return[h.memoizedState,T]}function hO(i,a,d){var h=El(),y=h.queue;if(y===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");y.lastRenderedReducer=i;var b=po,T=b.baseQueue,x=y.pending;if(x!==null){if(T!==null){var I=T.next,D=x.next;T.next=D,x.next=I}b.baseQueue!==T&&u("Internal error: Expected work-in-progress queue to be a clone. This is a bug in React."),b.baseQueue=T=x,y.pending=null}if(T!==null){var $=T.next,Z=b.baseState,X=null,ce=null,fe=null,Ce=$;do{var ct=Ce.lane;if(Cd(Rv,ct)){if(fe!==null){var Tt={lane:Tn,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null};fe=fe.next=Tt}if(Ce.hasEagerState)Z=Ce.eagerState;else{var xn=Ce.action;Z=i(Z,xn)}}else{var Ot={lane:ct,action:Ce.action,hasEagerState:Ce.hasEagerState,eagerState:Ce.eagerState,next:null};fe===null?(ce=fe=Ot,X=Z):fe=fe.next=Ot,ar.lanes=rn(ar.lanes,ct),cb(ct)}Ce=Ce.next}while(Ce!==null&&Ce!==$);fe===null?X=Z:fe.next=ce,pt(Z,h.memoizedState)||JE(),h.memoizedState=Z,h.baseState=X,h.baseQueue=fe,y.lastRenderedState=Z}var bn=y.interleaved;if(bn!==null){var oe=bn;do{var we=oe.lane;ar.lanes=rn(ar.lanes,we),cb(we),oe=oe.next}while(oe!==bn)}else T===null&&(y.lanes=Se);var ae=y.dispatch;return[h.memoizedState,ae]}function pO(i,a,d){var h=El(),y=h.queue;if(y===null)throw new Error("Should have a queue. This is likely a bug in React. Please file an issue.");y.lastRenderedReducer=i;var b=y.dispatch,T=y.pending,x=h.memoizedState;if(T!==null){y.pending=null;var I=T.next,D=I;do{var $=D.action;x=i(x,$),D=D.next}while(D!==I);pt(x,h.memoizedState)||JE(),h.memoizedState=x,h.baseQueue===null&&(h.baseState=x),y.lastRenderedState=x}return[x,b]}function $ue(i,a,d){}function Bue(i,a,d){}function vO(i,a,d){var h=ar,y=Tc(),b,T=Xo();if(T){if(d===void 0)throw new Error("Missing getServerSnapshot, which is required for server-rendered content. Will revert to client rendering.");b=d(),xy||b!==d()&&(u("The result of getServerSnapshot should be cached to avoid an infinite loop"),xy=!0)}else{if(b=a(),!xy){var x=a();pt(b,x)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),xy=!0)}var I=mR();if(I===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");rv(I,Rv)||v4(h,a,b)}y.memoizedState=b;var D={value:b,getSnapshot:a};return y.queue=D,qT(g4.bind(null,h,D,i),[i]),h.flags|=Or,VE(fo|Jo,m4.bind(null,h,D,b,a),void 0,null),b}function $T(i,a,d){var h=ar,y=El(),b=a();if(!xy){var T=a();pt(b,T)||(u("The result of getSnapshot should be cached to avoid an infinite loop"),xy=!0)}var x=y.memoizedState,I=!pt(x,b);I&&(y.memoizedState=b,JE());var D=y.queue;if(WE(g4.bind(null,h,D,i),[i]),D.getSnapshot!==a||I||vo!==null&&vo.memoizedState.tag&fo){h.flags|=Or,VE(fo|Jo,m4.bind(null,h,D,b,a),void 0,null);var $=mR();if($===null)throw new Error("Expected a work-in-progress root. This is a bug in React. Please file an issue.");rv($,Rv)||v4(h,a,b)}return b}function v4(i,a,d){i.flags|=Wp;var h={getSnapshot:a,value:d},y=ar.updateQueue;if(y===null)y=p4(),ar.updateQueue=y,y.stores=[h];else{var b=y.stores;b===null?y.stores=[h]:b.push(h)}}function m4(i,a,d,h){a.value=d,a.getSnapshot=h,y4(a)&&_4(i)}function g4(i,a,d){var h=function(){y4(a)&&_4(i)};return d(h)}function y4(i){var a=i.getSnapshot,d=i.value;try{var h=a();return!pt(d,h)}catch{return!0}}function _4(i){var a=_s(i,Ht);a!==null&&_o(a,i,Ht,fr)}function BT(i){var a=Tc();typeof i=="function"&&(i=i()),a.memoizedState=a.baseState=i;var d={pending:null,interleaved:null,lanes:Se,dispatch:null,lastRenderedReducer:dO,lastRenderedState:i};a.queue=d;var h=d.dispatch=_oe.bind(null,ar,d);return[a.memoizedState,h]}function mO(i){return hO(dO)}function gO(i){return pO(dO)}function VE(i,a,d,h){var y={tag:i,create:a,destroy:d,deps:h,next:null},b=ar.updateQueue;if(b===null)b=p4(),ar.updateQueue=b,b.lastEffect=y.next=y;else{var T=b.lastEffect;if(T===null)b.lastEffect=y.next=y;else{var x=T.next;T.next=y,y.next=x,b.lastEffect=y}}return y}function yO(i){var a=Tc();{var d={current:i};return a.memoizedState=d,d}}function jT(i){var a=El();return a.memoizedState}function KE(i,a,d,h){var y=Tc(),b=h===void 0?null:h;ar.flags|=i,y.memoizedState=VE(fo|a,d,void 0,b)}function zT(i,a,d,h){var y=El(),b=h===void 0?null:h,T=void 0;if(po!==null){var x=po.memoizedState;if(T=x.destroy,b!==null){var I=x.deps;if(cO(b,I)){y.memoizedState=VE(a,d,T,b);return}}}ar.flags|=i,y.memoizedState=VE(fo|a,d,T,b)}function qT(i,a){return(ar.mode&fs)!==Pt?KE(fd|Or|sc,Jo,i,a):KE(Or|sc,Jo,i,a)}function WE(i,a){return zT(Or,Jo,i,a)}function _O(i,a){return KE(nn,Sc,i,a)}function GT(i,a){return zT(nn,Sc,i,a)}function EO(i,a){var d=nn;return d|=_a,(ar.mode&fs)!==Pt&&(d|=Ea),KE(d,ho,i,a)}function VT(i,a){return zT(nn,ho,i,a)}function E4(i,a){if(typeof a=="function"){var d=a,h=i();return d(h),function(){d(null)}}else if(a!=null){var y=a;y.hasOwnProperty("current")||u("Expected useImperativeHandle() first argument to either be a ref callback or React.createRef() object. Instead received: %s.","an object with keys {"+Object.keys(y).join(", ")+"}");var b=i();return y.current=b,function(){y.current=null}}}function bO(i,a,d){typeof a!="function"&&u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null");var h=d!=null?d.concat([i]):null,y=nn;return y|=_a,(ar.mode&fs)!==Pt&&(y|=Ea),KE(y,ho,E4.bind(null,a,i),h)}function KT(i,a,d){typeof a!="function"&&u("Expected useImperativeHandle() second argument to be a function that creates a handle. Instead received: %s.",a!==null?typeof a:"null");var h=d!=null?d.concat([i]):null;return zT(nn,ho,E4.bind(null,a,i),h)}function voe(i,a){}var WT=voe;function CO(i,a){var d=Tc(),h=a===void 0?null:a;return d.memoizedState=[i,h],i}function YT(i,a){var d=El(),h=a===void 0?null:a,y=d.memoizedState;if(y!==null&&h!==null){var b=y[1];if(cO(h,b))return y[0]}return d.memoizedState=[i,h],i}function wO(i,a){var d=Tc(),h=a===void 0?null:a,y=i();return d.memoizedState=[y,h],y}function QT(i,a){var d=El(),h=a===void 0?null:a,y=d.memoizedState;if(y!==null&&h!==null){var b=y[1];if(cO(h,b))return y[0]}var T=i();return d.memoizedState=[T,h],T}function SO(i){var a=Tc();return a.memoizedState=i,i}function b4(i){var a=El(),d=po,h=d.memoizedState;return w4(a,h,i)}function C4(i){var a=El();if(po===null)return a.memoizedState=i,i;var d=po.memoizedState;return w4(a,d,i)}function w4(i,a,d){var h=!Ik(Rv);if(h){if(!pt(d,a)){var y=Y_();ar.lanes=rn(ar.lanes,y),cb(y),i.baseState=!0}return a}else return i.baseState&&(i.baseState=!1,JE()),i.memoizedState=d,d}function moe(i,a,d){var h=ps();Li(Mo(h,co)),i(!0);var y=zE.transition;zE.transition={};var b=zE.transition;zE.transition._updatedFibers=new Set;try{i(!1),a()}finally{if(Li(h),zE.transition=y,y===null&&b._updatedFibers){var T=b._updatedFibers.size;T>10&&s("Detected a large number of updates inside startTransition. If this is due to a subscription please re-write it to use React provided hooks. Otherwise concurrent mode guarantees are off the table."),b._updatedFibers.clear()}}}function TO(){var i=BT(!1),a=i[0],d=i[1],h=moe.bind(null,d),y=Tc();return y.memoizedState=h,[a,h]}function S4(){var i=mO(),a=i[0],d=El(),h=d.memoizedState;return[a,h]}function T4(){var i=gO(),a=i[0],d=El(),h=d.memoizedState;return[a,h]}var R4=!1;function goe(){return R4}function RO(){var i=Tc(),a=mR(),d=a.identifierPrefix,h;if(Xo()){var y=Oie();h=":"+d+"R"+y;var b=GE++;b>0&&(h+="H"+b.toString(32)),h+=":"}else{var T=foe++;h=":"+d+"r"+T.toString(32)+":"}return i.memoizedState=h,h}function XT(){var i=El(),a=i.memoizedState;return a}function yoe(i,a,d){typeof arguments[3]=="function"&&u("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var h=xh(i),y={lane:h,action:d,hasEagerState:!1,eagerState:null,next:null};if(x4(i))A4(a,y);else{var b=G$(i,a,y,h);if(b!==null){var T=qa();_o(b,i,h,T),k4(b,a,h)}}I4(i,h)}function _oe(i,a,d){typeof arguments[3]=="function"&&u("State updates from the useState() and useReducer() Hooks don't support the second callback argument. To execute a side effect after rendering, declare it in the component body with useEffect().");var h=xh(i),y={lane:h,action:d,hasEagerState:!1,eagerState:null,next:null};if(x4(i))A4(a,y);else{var b=i.alternate;if(i.lanes===Se&&(b===null||b.lanes===Se)){var T=a.lastRenderedReducer;if(T!==null){var x;x=lt.current,lt.current=du;try{var I=a.lastRenderedState,D=T(I,d);if(y.hasEagerState=!0,y.eagerState=D,pt(D,I)){Xie(i,a,y,h);return}}catch{}finally{lt.current=x}}}var $=G$(i,a,y,h);if($!==null){var Z=qa();_o($,i,h,Z),k4($,a,h)}}I4(i,h)}function x4(i){var a=i.alternate;return i===ar||a!==null&&a===ar}function A4(i,a){qE=HT=!0;var d=i.pending;d===null?a.next=a:(a.next=d.next,d.next=a),i.pending=a}function k4(i,a,d){if(W_(d)){var h=a.lanes;h=Q_(h,i.pendingLanes);var y=rn(h,d);a.lanes=y,Zf(i,y)}}function I4(i,a,d){hc(i,a)}var JT={readContext:Xi,useCallback:Aa,useContext:Aa,useEffect:Aa,useImperativeHandle:Aa,useInsertionEffect:Aa,useLayoutEffect:Aa,useMemo:Aa,useReducer:Aa,useRef:Aa,useState:Aa,useDebugValue:Aa,useDeferredValue:Aa,useTransition:Aa,useMutableSource:Aa,useSyncExternalStore:Aa,useId:Aa,unstable_isNewReconciler:K},O4=null,N4=null,M4=null,P4=null,Rc=null,du=null,ZT=null;{var xO=function(){u("Context can only be read while React is rendering. In classes, you can read it in the render method or getDerivedStateFromProps. In function components, you can read it directly in the function body, but not inside Hooks like useReducer() or useMemo().")},Wt=function(){u("Do not call Hooks inside useEffect(...), useMemo(...), or other built-in Hooks. You can only call Hooks at the top level of your React function. For more information, see https://reactjs.org/link/rules-of-hooks")};O4={readContext:function(i){return Xi(i)},useCallback:function(i,a){return xe="useCallback",Vn(),Ay(a),CO(i,a)},useContext:function(i){return xe="useContext",Vn(),Xi(i)},useEffect:function(i,a){return xe="useEffect",Vn(),Ay(a),qT(i,a)},useImperativeHandle:function(i,a,d){return xe="useImperativeHandle",Vn(),Ay(d),bO(i,a,d)},useInsertionEffect:function(i,a){return xe="useInsertionEffect",Vn(),Ay(a),_O(i,a)},useLayoutEffect:function(i,a){return xe="useLayoutEffect",Vn(),Ay(a),EO(i,a)},useMemo:function(i,a){xe="useMemo",Vn(),Ay(a);var d=lt.current;lt.current=Rc;try{return wO(i,a)}finally{lt.current=d}},useReducer:function(i,a,d){xe="useReducer",Vn();var h=lt.current;lt.current=Rc;try{return fO(i,a,d)}finally{lt.current=h}},useRef:function(i){return xe="useRef",Vn(),yO(i)},useState:function(i){xe="useState",Vn();var a=lt.current;lt.current=Rc;try{return BT(i)}finally{lt.current=a}},useDebugValue:function(i,a){return xe="useDebugValue",Vn(),void 0},useDeferredValue:function(i){return xe="useDeferredValue",Vn(),SO(i)},useTransition:function(){return xe="useTransition",Vn(),TO()},useMutableSource:function(i,a,d){return xe="useMutableSource",Vn(),void 0},useSyncExternalStore:function(i,a,d){return xe="useSyncExternalStore",Vn(),vO(i,a,d)},useId:function(){return xe="useId",Vn(),RO()},unstable_isNewReconciler:K},N4={readContext:function(i){return Xi(i)},useCallback:function(i,a){return xe="useCallback",Ze(),CO(i,a)},useContext:function(i){return xe="useContext",Ze(),Xi(i)},useEffect:function(i,a){return xe="useEffect",Ze(),qT(i,a)},useImperativeHandle:function(i,a,d){return xe="useImperativeHandle",Ze(),bO(i,a,d)},useInsertionEffect:function(i,a){return xe="useInsertionEffect",Ze(),_O(i,a)},useLayoutEffect:function(i,a){return xe="useLayoutEffect",Ze(),EO(i,a)},useMemo:function(i,a){xe="useMemo",Ze();var d=lt.current;lt.current=Rc;try{return wO(i,a)}finally{lt.current=d}},useReducer:function(i,a,d){xe="useReducer",Ze();var h=lt.current;lt.current=Rc;try{return fO(i,a,d)}finally{lt.current=h}},useRef:function(i){return xe="useRef",Ze(),yO(i)},useState:function(i){xe="useState",Ze();var a=lt.current;lt.current=Rc;try{return BT(i)}finally{lt.current=a}},useDebugValue:function(i,a){return xe="useDebugValue",Ze(),void 0},useDeferredValue:function(i){return xe="useDeferredValue",Ze(),SO(i)},useTransition:function(){return xe="useTransition",Ze(),TO()},useMutableSource:function(i,a,d){return xe="useMutableSource",Ze(),void 0},useSyncExternalStore:function(i,a,d){return xe="useSyncExternalStore",Ze(),vO(i,a,d)},useId:function(){return xe="useId",Ze(),RO()},unstable_isNewReconciler:K},M4={readContext:function(i){return Xi(i)},useCallback:function(i,a){return xe="useCallback",Ze(),YT(i,a)},useContext:function(i){return xe="useContext",Ze(),Xi(i)},useEffect:function(i,a){return xe="useEffect",Ze(),WE(i,a)},useImperativeHandle:function(i,a,d){return xe="useImperativeHandle",Ze(),KT(i,a,d)},useInsertionEffect:function(i,a){return xe="useInsertionEffect",Ze(),GT(i,a)},useLayoutEffect:function(i,a){return xe="useLayoutEffect",Ze(),VT(i,a)},useMemo:function(i,a){xe="useMemo",Ze();var d=lt.current;lt.current=du;try{return QT(i,a)}finally{lt.current=d}},useReducer:function(i,a,d){xe="useReducer",Ze();var h=lt.current;lt.current=du;try{return hO(i,a,d)}finally{lt.current=h}},useRef:function(i){return xe="useRef",Ze(),jT()},useState:function(i){xe="useState",Ze();var a=lt.current;lt.current=du;try{return mO(i)}finally{lt.current=a}},useDebugValue:function(i,a){return xe="useDebugValue",Ze(),WT()},useDeferredValue:function(i){return xe="useDeferredValue",Ze(),b4(i)},useTransition:function(){return xe="useTransition",Ze(),S4()},useMutableSource:function(i,a,d){return xe="useMutableSource",Ze(),void 0},useSyncExternalStore:function(i,a,d){return xe="useSyncExternalStore",Ze(),$T(i,a)},useId:function(){return xe="useId",Ze(),XT()},unstable_isNewReconciler:K},P4={readContext:function(i){return Xi(i)},useCallback:function(i,a){return xe="useCallback",Ze(),YT(i,a)},useContext:function(i){return xe="useContext",Ze(),Xi(i)},useEffect:function(i,a){return xe="useEffect",Ze(),WE(i,a)},useImperativeHandle:function(i,a,d){return xe="useImperativeHandle",Ze(),KT(i,a,d)},useInsertionEffect:function(i,a){return xe="useInsertionEffect",Ze(),GT(i,a)},useLayoutEffect:function(i,a){return xe="useLayoutEffect",Ze(),VT(i,a)},useMemo:function(i,a){xe="useMemo",Ze();var d=lt.current;lt.current=ZT;try{return QT(i,a)}finally{lt.current=d}},useReducer:function(i,a,d){xe="useReducer",Ze();var h=lt.current;lt.current=ZT;try{return pO(i,a,d)}finally{lt.current=h}},useRef:function(i){return xe="useRef",Ze(),jT()},useState:function(i){xe="useState",Ze();var a=lt.current;lt.current=ZT;try{return gO(i)}finally{lt.current=a}},useDebugValue:function(i,a){return xe="useDebugValue",Ze(),WT()},useDeferredValue:function(i){return xe="useDeferredValue",Ze(),C4(i)},useTransition:function(){return xe="useTransition",Ze(),T4()},useMutableSource:function(i,a,d){return xe="useMutableSource",Ze(),void 0},useSyncExternalStore:function(i,a,d){return xe="useSyncExternalStore",Ze(),$T(i,a)},useId:function(){return xe="useId",Ze(),XT()},unstable_isNewReconciler:K},Rc={readContext:function(i){return xO(),Xi(i)},useCallback:function(i,a){return xe="useCallback",Wt(),Vn(),CO(i,a)},useContext:function(i){return xe="useContext",Wt(),Vn(),Xi(i)},useEffect:function(i,a){return xe="useEffect",Wt(),Vn(),qT(i,a)},useImperativeHandle:function(i,a,d){return xe="useImperativeHandle",Wt(),Vn(),bO(i,a,d)},useInsertionEffect:function(i,a){return xe="useInsertionEffect",Wt(),Vn(),_O(i,a)},useLayoutEffect:function(i,a){return xe="useLayoutEffect",Wt(),Vn(),EO(i,a)},useMemo:function(i,a){xe="useMemo",Wt(),Vn();var d=lt.current;lt.current=Rc;try{return wO(i,a)}finally{lt.current=d}},useReducer:function(i,a,d){xe="useReducer",Wt(),Vn();var h=lt.current;lt.current=Rc;try{return fO(i,a,d)}finally{lt.current=h}},useRef:function(i){return xe="useRef",Wt(),Vn(),yO(i)},useState:function(i){xe="useState",Wt(),Vn();var a=lt.current;lt.current=Rc;try{return BT(i)}finally{lt.current=a}},useDebugValue:function(i,a){return xe="useDebugValue",Wt(),Vn(),void 0},useDeferredValue:function(i){return xe="useDeferredValue",Wt(),Vn(),SO(i)},useTransition:function(){return xe="useTransition",Wt(),Vn(),TO()},useMutableSource:function(i,a,d){return xe="useMutableSource",Wt(),Vn(),void 0},useSyncExternalStore:function(i,a,d){return xe="useSyncExternalStore",Wt(),Vn(),vO(i,a,d)},useId:function(){return xe="useId",Wt(),Vn(),RO()},unstable_isNewReconciler:K},du={readContext:function(i){return xO(),Xi(i)},useCallback:function(i,a){return xe="useCallback",Wt(),Ze(),YT(i,a)},useContext:function(i){return xe="useContext",Wt(),Ze(),Xi(i)},useEffect:function(i,a){return xe="useEffect",Wt(),Ze(),WE(i,a)},useImperativeHandle:function(i,a,d){return xe="useImperativeHandle",Wt(),Ze(),KT(i,a,d)},useInsertionEffect:function(i,a){return xe="useInsertionEffect",Wt(),Ze(),GT(i,a)},useLayoutEffect:function(i,a){return xe="useLayoutEffect",Wt(),Ze(),VT(i,a)},useMemo:function(i,a){xe="useMemo",Wt(),Ze();var d=lt.current;lt.current=du;try{return QT(i,a)}finally{lt.current=d}},useReducer:function(i,a,d){xe="useReducer",Wt(),Ze();var h=lt.current;lt.current=du;try{return hO(i,a,d)}finally{lt.current=h}},useRef:function(i){return xe="useRef",Wt(),Ze(),jT()},useState:function(i){xe="useState",Wt(),Ze();var a=lt.current;lt.current=du;try{return mO(i)}finally{lt.current=a}},useDebugValue:function(i,a){return xe="useDebugValue",Wt(),Ze(),WT()},useDeferredValue:function(i){return xe="useDeferredValue",Wt(),Ze(),b4(i)},useTransition:function(){return xe="useTransition",Wt(),Ze(),S4()},useMutableSource:function(i,a,d){return xe="useMutableSource",Wt(),Ze(),void 0},useSyncExternalStore:function(i,a,d){return xe="useSyncExternalStore",Wt(),Ze(),$T(i,a)},useId:function(){return xe="useId",Wt(),Ze(),XT()},unstable_isNewReconciler:K},ZT={readContext:function(i){return xO(),Xi(i)},useCallback:function(i,a){return xe="useCallback",Wt(),Ze(),YT(i,a)},useContext:function(i){return xe="useContext",Wt(),Ze(),Xi(i)},useEffect:function(i,a){return xe="useEffect",Wt(),Ze(),WE(i,a)},useImperativeHandle:function(i,a,d){return xe="useImperativeHandle",Wt(),Ze(),KT(i,a,d)},useInsertionEffect:function(i,a){return xe="useInsertionEffect",Wt(),Ze(),GT(i,a)},useLayoutEffect:function(i,a){return xe="useLayoutEffect",Wt(),Ze(),VT(i,a)},useMemo:function(i,a){xe="useMemo",Wt(),Ze();var d=lt.current;lt.current=du;try{return QT(i,a)}finally{lt.current=d}},useReducer:function(i,a,d){xe="useReducer",Wt(),Ze();var h=lt.current;lt.current=du;try{return pO(i,a,d)}finally{lt.current=h}},useRef:function(i){return xe="useRef",Wt(),Ze(),jT()},useState:function(i){xe="useState",Wt(),Ze();var a=lt.current;lt.current=du;try{return gO(i)}finally{lt.current=a}},useDebugValue:function(i,a){return xe="useDebugValue",Wt(),Ze(),WT()},useDeferredValue:function(i){return xe="useDeferredValue",Wt(),Ze(),C4(i)},useTransition:function(){return xe="useTransition",Wt(),Ze(),T4()},useMutableSource:function(i,a,d){return xe="useMutableSource",Wt(),Ze(),void 0},useSyncExternalStore:function(i,a,d){return xe="useSyncExternalStore",Wt(),Ze(),$T(i,a)},useId:function(){return xe="useId",Wt(),Ze(),XT()},unstable_isNewReconciler:K}}var wh=e.unstable_now,D4=0,eR=-1,YE=-1,tR=-1,AO=!1,nR=!1;function L4(){return AO}function Eoe(){nR=!0}function boe(){AO=!1,nR=!1}function Coe(){AO=nR,nR=!1}function U4(){return D4}function F4(){D4=wh()}function kO(i){YE=wh(),i.actualStartTime<0&&(i.actualStartTime=wh())}function H4(i){YE=-1}function rR(i,a){if(YE>=0){var d=wh()-YE;i.actualDuration+=d,a&&(i.selfBaseDuration=d),YE=-1}}function xc(i){if(eR>=0){var a=wh()-eR;eR=-1;for(var d=i.return;d!==null;){switch(d.tag){case E:var h=d.stateNode;h.effectDuration+=a;return;case U:var y=d.stateNode;y.effectDuration+=a;return}d=d.return}}}function IO(i){if(tR>=0){var a=wh()-tR;tR=-1;for(var d=i.return;d!==null;){switch(d.tag){case E:var h=d.stateNode;h!==null&&(h.passiveEffectDuration+=a);return;case U:var y=d.stateNode;y!==null&&(y.passiveEffectDuration+=a);return}d=d.return}}}function Ac(){eR=wh()}function OO(){tR=wh()}function NO(i){for(var a=i.child;a;)i.actualDuration+=a.actualDuration,a=a.sibling}function xv(i,a){return{value:i,source:a,stack:If(a),digest:null}}function MO(i,a,d){return{value:i,source:null,stack:d??null,digest:a??null}}function woe(i,a){return!0}function PO(i,a){try{var d=woe(i,a);if(d===!1)return;var h=a.value,y=a.source,b=a.stack,T=b!==null?b:"";if(h!=null&&h._suppressLogging){if(i.tag===v)return;console.error(h)}var x=y?Kt(y):null,I=x?"The above error occurred in the <"+x+"> component:":"The above error occurred in one of your React components:",D;if(i.tag===E)D=`Consider adding an error boundary to your tree to customize error handling behavior.
186
+ Visit https://reactjs.org/link/error-boundaries to learn more about error boundaries.`;else{var $=Kt(i)||"Anonymous";D="React will try to recreate this component tree from scratch "+("using the error boundary you provided, "+$+".")}var Z=I+`
187
+ `+T+`
188
+
189
+ `+(""+D);console.error(Z)}catch(X){setTimeout(function(){throw X})}}var Soe=typeof WeakMap=="function"?WeakMap:Map;function $4(i,a,d){var h=Fd(fr,d);h.tag=PI,h.payload={element:null};var y=a.value;return h.callback=function(){mse(y),PO(i,a)},h}function DO(i,a,d){var h=Fd(fr,d);h.tag=PI;var y=i.type.getDerivedStateFromError;if(typeof y=="function"){var b=a.value;h.payload=function(){return y(b)},h.callback=function(){X3(i),PO(i,a)}}var T=i.stateNode;return T!==null&&typeof T.componentDidCatch=="function"&&(h.callback=function(){X3(i),PO(i,a),typeof y!="function"&&pse(this);var I=a.value,D=a.stack;this.componentDidCatch(I,{componentStack:D!==null?D:""}),typeof y!="function"&&(Ta(i.lanes,Ht)||u("%s: Error boundaries should implement getDerivedStateFromError(). In that method, return a state update to display an error message or fallback UI.",Kt(i)||"Unknown"))}),h}function B4(i,a,d){var h=i.pingCache,y;if(h===null?(h=i.pingCache=new Soe,y=new Set,h.set(a,y)):(y=h.get(a),y===void 0&&(y=new Set,h.set(a,y))),!y.has(d)){y.add(d);var b=gse.bind(null,i,a,d);uo&&db(i,d),a.then(b,b)}}function Toe(i,a,d,h){var y=i.updateQueue;if(y===null){var b=new Set;b.add(d),i.updateQueue=b}else y.add(d)}function Roe(i,a){var d=i.tag;if((i.mode&hn)===Pt&&(d===p||d===j||d===Q)){var h=i.alternate;h?(i.updateQueue=h.updateQueue,i.memoizedState=h.memoizedState,i.lanes=h.lanes):(i.updateQueue=null,i.memoizedState=null)}}function j4(i){var a=i;do{if(a.tag===H&&coe(a))return a;a=a.return}while(a!==null);return null}function z4(i,a,d,h,y){if((i.mode&hn)===Pt){if(i===a)i.flags|=Vi;else{if(i.flags|=Gt,d.flags|=Yp,d.flags&=~(vg|La),d.tag===v){var b=d.alternate;if(b===null)d.tag=Ve;else{var T=Fd(fr,Ht);T.tag=xT,_h(d,T,Ht)}}d.lanes=rn(d.lanes,Ht)}return i}return i.flags|=Vi,i.lanes=y,i}function xoe(i,a,d,h,y){if(d.flags|=La,uo&&db(i,y),h!==null&&typeof h=="object"&&typeof h.then=="function"){var b=h;Roe(d),Xo()&&d.mode&hn&&M$();var T=j4(a);if(T!==null){T.flags&=~Zr,z4(T,a,d,i,y),T.mode&hn&&B4(i,b,y),Toe(T,i,b);return}else{if(!Xf(y)){B4(i,b,y),pN();return}var x=new Error("A component suspended while responding to synchronous input. This will cause the UI to be replaced with a loading indicator. To fix, updates that suspend should be wrapped with startTransition.");h=x}}else if(Xo()&&d.mode&hn){M$();var I=j4(a);if(I!==null){(I.flags&Vi)===It&&(I.flags|=Zr),z4(I,a,d,i,y),xI(xv(h,d));return}}h=xv(h,d),ase(h);var D=a;do{switch(D.tag){case E:{var $=h;D.flags|=Vi;var Z=Di(y);D.lanes=rn(D.lanes,Z);var X=$4(D,$,Z);UI(D,X);return}case v:var ce=h,fe=D.type,Ce=D.stateNode;if((D.flags&Gt)===It&&(typeof fe.getDerivedStateFromError=="function"||Ce!==null&&typeof Ce.componentDidCatch=="function"&&!j3(Ce))){D.flags|=Vi;var ct=Di(y);D.lanes=rn(D.lanes,ct);var Ot=DO(D,ce,ct);UI(D,Ot);return}break}D=D.return}while(D!==null)}function Aoe(){return null}var QE=t.ReactCurrentOwner,fu=!1,LO,XE,UO,FO,HO,Av,$O,iR;LO={},XE={},UO={},FO={},HO={},Av=!1,$O={},iR={};function ja(i,a,d,h){i===null?a.child=s4(a,null,d,h):a.child=wy(a,i.child,d,h)}function koe(i,a,d,h){a.child=wy(a,i.child,null,h),a.child=wy(a,null,d,h)}function q4(i,a,d,h,y){if(a.type!==a.elementType){var b=d.propTypes;b&&au(b,h,"prop",kn(d))}var T=d.render,x=a.ref,I,D;Cy(a,y),fc(a);{if(QE.current=a,ma(!0),I=ky(i,a,T,h,x,y),D=Iy(),a.mode&$r){Pi(!0);try{I=ky(i,a,T,h,x,y),D=Iy()}finally{Pi(!1)}}ma(!1)}return hd(),i!==null&&!fu?(f4(i,a,y),Hd(i,a,y)):(Xo()&&D&&bI(a),a.flags|=oc,ja(i,a,I,y),a.child)}function G4(i,a,d,h,y){if(i===null){var b=d.type;if(Pse(b)&&d.compare===null&&d.defaultProps===void 0){var T=b;return T=Fy(b),a.tag=Q,a.type=T,zO(a,b),V4(i,a,T,h,y)}{var x=b.propTypes;x&&au(x,h,"prop",kn(b))}var I=TN(d.type,null,h,a,a.mode,y);return I.ref=a.ref,I.return=a,a.child=I,I}{var D=d.type,$=D.propTypes;$&&au($,h,"prop",kn(D))}var Z=i.child,X=YO(i,y);if(!X){var ce=Z.memoizedProps,fe=d.compare;if(fe=fe!==null?fe:xt,fe(ce,h)&&i.ref===a.ref)return Hd(i,a,y)}a.flags|=oc;var Ce=Mv(Z,h);return Ce.ref=a.ref,Ce.return=a,a.child=Ce,Ce}function V4(i,a,d,h,y){if(a.type!==a.elementType){var b=a.elementType;if(b.$$typeof===Rt){var T=b,x=T._payload,I=T._init;try{b=I(x)}catch{b=null}var D=b&&b.propTypes;D&&au(D,h,"prop",kn(b))}}if(i!==null){var $=i.memoizedProps;if(xt($,h)&&i.ref===a.ref&&a.type===i.type)if(fu=!1,a.pendingProps=h=$,YO(i,y))(i.flags&Yp)!==It&&(fu=!0);else return a.lanes=i.lanes,Hd(i,a,y)}return BO(i,a,d,h,y)}function K4(i,a,d){var h=a.pendingProps,y=h.children,b=i!==null?i.memoizedState:null;if(h.mode==="hidden"||B)if((a.mode&hn)===Pt){var T={baseLanes:Se,cachePool:null,transitions:null};a.memoizedState=T,gR(a,d)}else if(Ta(d,Sa)){var Z={baseLanes:Se,cachePool:null,transitions:null};a.memoizedState=Z;var X=b!==null?b.baseLanes:d;gR(a,X)}else{var x=null,I;if(b!==null){var D=b.baseLanes;I=rn(D,d)}else I=d;a.lanes=a.childLanes=Sa;var $={baseLanes:I,cachePool:x,transitions:null};return a.memoizedState=$,a.updateQueue=null,gR(a,I),null}else{var ce;b!==null?(ce=rn(b.baseLanes,d),a.memoizedState=null):ce=d,gR(a,ce)}return ja(i,a,y,d),a.child}function Ioe(i,a,d){var h=a.pendingProps;return ja(i,a,h,d),a.child}function Ooe(i,a,d){var h=a.pendingProps.children;return ja(i,a,h,d),a.child}function Noe(i,a,d){{a.flags|=nn;{var h=a.stateNode;h.effectDuration=0,h.passiveEffectDuration=0}}var y=a.pendingProps,b=y.children;return ja(i,a,b,d),a.child}function W4(i,a){var d=a.ref;(i===null&&d!==null||i!==null&&i.ref!==d)&&(a.flags|=ya,a.flags|=M_)}function BO(i,a,d,h,y){if(a.type!==a.elementType){var b=d.propTypes;b&&au(b,h,"prop",kn(d))}var T;{var x=my(a,d,!0);T=gy(a,x)}var I,D;Cy(a,y),fc(a);{if(QE.current=a,ma(!0),I=ky(i,a,d,h,T,y),D=Iy(),a.mode&$r){Pi(!0);try{I=ky(i,a,d,h,T,y),D=Iy()}finally{Pi(!1)}}ma(!1)}return hd(),i!==null&&!fu?(f4(i,a,y),Hd(i,a,y)):(Xo()&&D&&bI(a),a.flags|=oc,ja(i,a,I,y),a.child)}function Y4(i,a,d,h,y){{switch(Yse(a)){case!1:{var b=a.stateNode,T=a.type,x=new T(a.memoizedProps,b.context),I=x.state;b.updater.enqueueSetState(b,I,null);break}case!0:{a.flags|=Gt,a.flags|=Vi;var D=new Error("Simulated error coming from DevTools"),$=Di(y);a.lanes=rn(a.lanes,$);var Z=DO(a,xv(D,a),$);UI(a,Z);break}}if(a.type!==a.elementType){var X=d.propTypes;X&&au(X,h,"prop",kn(d))}}var ce;wc(d)?(ce=!0,mT(a)):ce=!1,Cy(a,y);var fe=a.stateNode,Ce;fe===null?(aR(i,a),n4(a,d,h),YI(a,d,h,y),Ce=!0):i===null?Ce=ioe(a,d,h,y):Ce=ooe(i,a,d,h,y);var ct=jO(i,a,d,Ce,ce,y);{var Ot=a.stateNode;Ce&&Ot.props!==h&&(Av||u("It looks like %s is reassigning its own `this.props` while rendering. This is not supported and can lead to confusing bugs.",Kt(a)||"a component"),Av=!0)}return ct}function jO(i,a,d,h,y,b){W4(i,a);var T=(a.flags&Gt)!==It;if(!h&&!T)return y&&k$(a,d,!1),Hd(i,a,b);var x=a.stateNode;QE.current=a;var I;if(T&&typeof d.getDerivedStateFromError!="function")I=null,H4();else{fc(a);{if(ma(!0),I=x.render(),a.mode&$r){Pi(!0);try{x.render()}finally{Pi(!1)}}ma(!1)}hd()}return a.flags|=oc,i!==null&&T?koe(i,a,I,b):ja(i,a,I,b),a.memoizedState=x.state,y&&k$(a,d,!0),a.child}function Q4(i){var a=i.stateNode;a.pendingContext?x$(i,a.pendingContext,a.pendingContext!==a.context):a.context&&x$(i,a.context,!1),tO(i,a.containerInfo)}function Moe(i,a,d){if(Q4(a),i===null)throw new Error("Should have a current fiber. This is a bug in React.");var h=a.pendingProps,y=a.memoizedState,b=y.element;W$(i,a),OT(a,h,null,d);var T=a.memoizedState;a.stateNode;var x=T.element;if(y.isDehydrated){var I={element:x,isDehydrated:!1,cache:T.cache,pendingSuspenseBoundaries:T.pendingSuspenseBoundaries,transitions:T.transitions},D=a.updateQueue;if(D.baseState=I,a.memoizedState=I,a.flags&Zr){var $=xv(new Error("There was an error while hydrating. Because the error happened outside of a Suspense boundary, the entire root will switch to client rendering."),a);return X4(i,a,x,d,$)}else if(x!==b){var Z=xv(new Error("This root received an early update, before anything was able hydrate. Switched the entire root to client rendering."),a);return X4(i,a,x,d,Z)}else{Uie(a);var X=s4(a,null,x,d);a.child=X;for(var ce=X;ce;)ce.flags=ce.flags&~br|us,ce=ce.sibling}}else{if(Ey(),x===b)return Hd(i,a,d);ja(i,a,x,d)}return a.child}function X4(i,a,d,h,y){return Ey(),xI(y),a.flags|=Zr,ja(i,a,d,h),a.child}function Poe(i,a,d){u4(a),i===null&&RI(a);var h=a.type,y=a.pendingProps,b=i!==null?i.memoizedProps:null,T=y.children,x=sI(h,y);return x?T=null:b!==null&&sI(h,b)&&(a.flags|=Gn),W4(i,a),ja(i,a,T,d),a.child}function Doe(i,a){return i===null&&RI(a),null}function Loe(i,a,d,h){aR(i,a);var y=a.pendingProps,b=d,T=b._payload,x=b._init,I=x(T);a.type=I;var D=a.tag=Dse(I),$=uu(I,y),Z;switch(D){case p:return zO(a,I),a.type=I=Fy(I),Z=BO(null,a,I,$,h),Z;case v:return a.type=I=_N(I),Z=Y4(null,a,I,$,h),Z;case j:return a.type=I=EN(I),Z=q4(null,a,I,$,h),Z;case W:{if(a.type!==a.elementType){var X=I.propTypes;X&&au(X,$,"prop",kn(I))}return Z=G4(null,a,I,uu(I.type,$),h),Z}}var ce="";throw I!==null&&typeof I=="object"&&I.$$typeof===Rt&&(ce=" Did you wrap a component in React.lazy() more than once?"),new Error("Element type is invalid. Received a promise that resolves to: "+I+". "+("Lazy element type must resolve to a class or function."+ce))}function Uoe(i,a,d,h,y){aR(i,a),a.tag=v;var b;return wc(d)?(b=!0,mT(a)):b=!1,Cy(a,y),n4(a,d,h),YI(a,d,h,y),jO(null,a,d,!0,b,y)}function Foe(i,a,d,h){aR(i,a);var y=a.pendingProps,b;{var T=my(a,d,!1);b=gy(a,T)}Cy(a,h);var x,I;fc(a);{if(d.prototype&&typeof d.prototype.render=="function"){var D=kn(d)||"Unknown";LO[D]||(u("The <%s /> component appears to have a render method, but doesn't extend React.Component. This is likely to cause errors. Change %s to extend React.Component instead.",D,D),LO[D]=!0)}a.mode&$r&&lu.recordLegacyContextWarning(a,null),ma(!0),QE.current=a,x=ky(null,a,d,y,b,h),I=Iy(),ma(!1)}if(hd(),a.flags|=oc,typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0){var $=kn(d)||"Unknown";XE[$]||(u("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",$,$,$),XE[$]=!0)}if(typeof x=="object"&&x!==null&&typeof x.render=="function"&&x.$$typeof===void 0){{var Z=kn(d)||"Unknown";XE[Z]||(u("The <%s /> component appears to be a function component that returns a class instance. Change %s to a class that extends React.Component instead. If you can't use a class try assigning the prototype on the function as a workaround. `%s.prototype = React.Component.prototype`. Don't use an arrow function since it cannot be called with `new` by React.",Z,Z,Z),XE[Z]=!0)}a.tag=v,a.memoizedState=null,a.updateQueue=null;var X=!1;return wc(d)?(X=!0,mT(a)):X=!1,a.memoizedState=x.state!==null&&x.state!==void 0?x.state:null,LI(a),t4(a,x),YI(a,d,y,h),jO(null,a,d,!0,X,h)}else{if(a.tag=p,a.mode&$r){Pi(!0);try{x=ky(null,a,d,y,b,h),I=Iy()}finally{Pi(!1)}}return Xo()&&I&&bI(a),ja(null,a,x,h),zO(a,d),a.child}}function zO(i,a){{if(a&&a.childContextTypes&&u("%s(...): childContextTypes cannot be defined on a function component.",a.displayName||a.name||"Component"),i.ref!==null){var d="",h=Wo();h&&(d+=`
190
+
191
+ Check the render method of \``+h+"`.");var y=h||"",b=i._debugSource;b&&(y=b.fileName+":"+b.lineNumber),HO[y]||(HO[y]=!0,u("Function components cannot be given refs. Attempts to access this ref will fail. Did you mean to use React.forwardRef()?%s",d))}if(typeof a.getDerivedStateFromProps=="function"){var T=kn(a)||"Unknown";FO[T]||(u("%s: Function components do not support getDerivedStateFromProps.",T),FO[T]=!0)}if(typeof a.contextType=="object"&&a.contextType!==null){var x=kn(a)||"Unknown";UO[x]||(u("%s: Function components do not support contextType.",x),UO[x]=!0)}}}var qO={dehydrated:null,treeContext:null,retryLane:Tn};function GO(i){return{baseLanes:i,cachePool:Aoe(),transitions:null}}function Hoe(i,a){var d=null;return{baseLanes:rn(i.baseLanes,a),cachePool:d,transitions:i.transitions}}function $oe(i,a,d,h){if(a!==null){var y=a.memoizedState;if(y===null)return!1}return iO(i,jE)}function Boe(i,a){return Jf(i.childLanes,a)}function J4(i,a,d){var h=a.pendingProps;Qse(a)&&(a.flags|=Gt);var y=cu.current,b=!1,T=(a.flags&Gt)!==It;if(T||$oe(y,i)?(b=!0,a.flags&=~Gt):(i===null||i.memoizedState!==null)&&(y=uoe(y,d4)),y=Ty(y),bh(a,y),i===null){RI(a);var x=a.memoizedState;if(x!==null){var I=x.dehydrated;if(I!==null)return Voe(a,I)}var D=h.children,$=h.fallback;if(b){var Z=joe(a,D,$,d),X=a.child;return X.memoizedState=GO(d),a.memoizedState=qO,Z}else return VO(a,D)}else{var ce=i.memoizedState;if(ce!==null){var fe=ce.dehydrated;if(fe!==null)return Koe(i,a,T,h,fe,ce,d)}if(b){var Ce=h.fallback,ct=h.children,Ot=qoe(i,a,ct,Ce,d),Tt=a.child,xn=i.child.memoizedState;return Tt.memoizedState=xn===null?GO(d):Hoe(xn,d),Tt.childLanes=Boe(i,d),a.memoizedState=qO,Ot}else{var bn=h.children,oe=zoe(i,a,bn,d);return a.memoizedState=null,oe}}}function VO(i,a,d){var h=i.mode,y={mode:"visible",children:a},b=KO(y,h);return b.return=i,i.child=b,b}function joe(i,a,d,h){var y=i.mode,b=i.child,T={mode:"hidden",children:a},x,I;return(y&hn)===Pt&&b!==null?(x=b,x.childLanes=Se,x.pendingProps=T,i.mode&Ft&&(x.actualDuration=0,x.actualStartTime=-1,x.selfBaseDuration=0,x.treeBaseDuration=0),I=kh(d,y,h,null)):(x=KO(T,y),I=kh(d,y,h,null)),x.return=i,I.return=i,x.sibling=I,i.child=x,I}function KO(i,a,d){return Z3(i,a,Se,null)}function Z4(i,a){return Mv(i,a)}function zoe(i,a,d,h){var y=i.child,b=y.sibling,T=Z4(y,{mode:"visible",children:d});if((a.mode&hn)===Pt&&(T.lanes=h),T.return=a,T.sibling=null,b!==null){var x=a.deletions;x===null?(a.deletions=[b],a.flags|=$n):x.push(b)}return a.child=T,T}function qoe(i,a,d,h,y){var b=a.mode,T=i.child,x=T.sibling,I={mode:"hidden",children:d},D;if((b&hn)===Pt&&a.child!==T){var $=a.child;D=$,D.childLanes=Se,D.pendingProps=I,a.mode&Ft&&(D.actualDuration=0,D.actualStartTime=-1,D.selfBaseDuration=T.selfBaseDuration,D.treeBaseDuration=T.treeBaseDuration),a.deletions=null}else D=Z4(T,I),D.subtreeFlags=T.subtreeFlags&lo;var Z;return x!==null?Z=Mv(x,h):(Z=kh(h,b,y,null),Z.flags|=br),Z.return=a,D.return=a,D.sibling=Z,a.child=D,Z}function oR(i,a,d,h){h!==null&&xI(h),wy(a,i.child,null,d);var y=a.pendingProps,b=y.children,T=VO(a,b);return T.flags|=br,a.memoizedState=null,T}function Goe(i,a,d,h,y){var b=a.mode,T={mode:"visible",children:d},x=KO(T,b),I=kh(h,b,y,null);return I.flags|=br,x.return=a,I.return=a,x.sibling=I,a.child=x,(a.mode&hn)!==Pt&&wy(a,i.child,null,y),I}function Voe(i,a,d){return(i.mode&hn)===Pt?(u("Cannot hydrate Suspense in legacy mode. Switch from ReactDOM.hydrate(element, container) to ReactDOMClient.hydrateRoot(container, <App />).render(element) or remove the Suspense components from the server rendered components."),i.lanes=Ht):dI(a)?i.lanes=md:i.lanes=Sa,null}function Koe(i,a,d,h,y,b,T){if(d)if(a.flags&Zr){a.flags&=~Zr;var oe=MO(new Error("There was an error while hydrating this Suspense boundary. Switched to client rendering."));return oR(i,a,T,oe)}else{if(a.memoizedState!==null)return a.child=i.child,a.flags|=Gt,null;var we=h.children,ae=h.fallback,Ue=Goe(i,a,we,ae,T),dt=a.child;return dt.memoizedState=GO(T),a.memoizedState=qO,Ue}else{if(Die(),(a.mode&hn)===Pt)return oR(i,a,T,null);if(dI(y)){var x,I,D;{var $=Jre(y);x=$.digest,I=$.message,D=$.stack}var Z;I?Z=new Error(I):Z=new Error("The server could not finish this Suspense boundary, likely due to an error during server rendering. Switched to client rendering.");var X=MO(Z,x,D);return oR(i,a,T,X)}var ce=Ta(T,i.childLanes);if(fu||ce){var fe=mR();if(fe!==null){var Ce=Nk(fe,T);if(Ce!==Tn&&Ce!==b.retryLane){b.retryLane=Ce;var ct=fr;_s(i,Ce),_o(fe,i,Ce,ct)}}pN();var Ot=MO(new Error("This Suspense boundary received an update before it finished hydrating. This caused the boundary to switch to client rendering. The usual way to fix this is to wrap the original update in startTransition."));return oR(i,a,T,Ot)}else if(b$(y)){a.flags|=Gt,a.child=i.child;var Tt=yse.bind(null,i);return Zre(y,Tt),null}else{Fie(a,y,b.treeContext);var xn=h.children,bn=VO(a,xn);return bn.flags|=us,bn}}}function e3(i,a,d){i.lanes=rn(i.lanes,a);var h=i.alternate;h!==null&&(h.lanes=rn(h.lanes,a)),NI(i.return,a,d)}function Woe(i,a,d){for(var h=a;h!==null;){if(h.tag===H){var y=h.memoizedState;y!==null&&e3(h,d,i)}else if(h.tag===Me)e3(h,d,i);else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===i)return;for(;h.sibling===null;){if(h.return===null||h.return===i)return;h=h.return}h.sibling.return=h.return,h=h.sibling}}function Yoe(i){for(var a=i,d=null;a!==null;){var h=a.alternate;h!==null&&FT(h)===null&&(d=a),a=a.sibling}return d}function Qoe(i){if(i!==void 0&&i!=="forwards"&&i!=="backwards"&&i!=="together"&&!$O[i])if($O[i]=!0,typeof i=="string")switch(i.toLowerCase()){case"together":case"forwards":case"backwards":{u('"%s" is not a valid value for revealOrder on <SuspenseList />. Use lowercase "%s" instead.',i,i.toLowerCase());break}case"forward":case"backward":{u('"%s" is not a valid value for revealOrder on <SuspenseList />. React uses the -s suffix in the spelling. Use "%ss" instead.',i,i.toLowerCase());break}default:u('"%s" is not a supported revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',i);break}else u('%s is not a supported value for revealOrder on <SuspenseList />. Did you mean "together", "forwards" or "backwards"?',i)}function Xoe(i,a){i!==void 0&&!iR[i]&&(i!=="collapsed"&&i!=="hidden"?(iR[i]=!0,u('"%s" is not a supported value for tail on <SuspenseList />. Did you mean "collapsed" or "hidden"?',i)):a!=="forwards"&&a!=="backwards"&&(iR[i]=!0,u('<SuspenseList tail="%s" /> is only valid if revealOrder is "forwards" or "backwards". Did you mean to specify revealOrder="forwards"?',i)))}function t3(i,a){{var d=Cn(i),h=!d&&typeof Ps(i)=="function";if(d||h){var y=d?"array":"iterable";return u("A nested %s was passed to row #%s in <SuspenseList />. Wrap it in an additional SuspenseList to configure its revealOrder: <SuspenseList revealOrder=...> ... <SuspenseList revealOrder=...>{%s}</SuspenseList> ... </SuspenseList>",y,a,y),!1}}return!0}function Joe(i,a){if((a==="forwards"||a==="backwards")&&i!==void 0&&i!==null&&i!==!1)if(Cn(i)){for(var d=0;d<i.length;d++)if(!t3(i[d],d))return}else{var h=Ps(i);if(typeof h=="function"){var y=h.call(i);if(y)for(var b=y.next(),T=0;!b.done;b=y.next()){if(!t3(b.value,T))return;T++}}else u('A single row was passed to a <SuspenseList revealOrder="%s" />. This is not useful since it needs multiple rows. Did you mean to pass multiple children or an array?',a)}}function WO(i,a,d,h,y){var b=i.memoizedState;b===null?i.memoizedState={isBackwards:a,rendering:null,renderingStartTime:0,last:h,tail:d,tailMode:y}:(b.isBackwards=a,b.rendering=null,b.renderingStartTime=0,b.last=h,b.tail=d,b.tailMode=y)}function n3(i,a,d){var h=a.pendingProps,y=h.revealOrder,b=h.tail,T=h.children;Qoe(y),Xoe(b,y),Joe(T,y),ja(i,a,T,d);var x=cu.current,I=iO(x,jE);if(I)x=oO(x,jE),a.flags|=Gt;else{var D=i!==null&&(i.flags&Gt)!==It;D&&Woe(a,a.child,d),x=Ty(x)}if(bh(a,x),(a.mode&hn)===Pt)a.memoizedState=null;else switch(y){case"forwards":{var $=Yoe(a.child),Z;$===null?(Z=a.child,a.child=null):(Z=$.sibling,$.sibling=null),WO(a,!1,Z,$,b);break}case"backwards":{var X=null,ce=a.child;for(a.child=null;ce!==null;){var fe=ce.alternate;if(fe!==null&&FT(fe)===null){a.child=ce;break}var Ce=ce.sibling;ce.sibling=X,X=ce,ce=Ce}WO(a,!0,X,null,b);break}case"together":{WO(a,!1,null,null,void 0);break}default:a.memoizedState=null}return a.child}function Zoe(i,a,d){tO(a,a.stateNode.containerInfo);var h=a.pendingProps;return i===null?a.child=wy(a,null,h,d):ja(i,a,h,d),a.child}var r3=!1;function eae(i,a,d){var h=a.type,y=h._context,b=a.pendingProps,T=a.memoizedProps,x=b.value;{"value"in b||r3||(r3=!0,u("The `value` prop is required for the `<Context.Provider>`. Did you misspell it or forget to pass it?"));var I=a.type.propTypes;I&&au(I,b,"prop","Context.Provider")}if(q$(a,y,x),T!==null){var D=T.value;if(pt(D,x)){if(T.children===b.children&&!pT())return Hd(i,a,d)}else Wie(a,y,d)}var $=b.children;return ja(i,a,$,d),a.child}var i3=!1;function tae(i,a,d){var h=a.type;h._context===void 0?h!==h.Consumer&&(i3||(i3=!0,u("Rendering <Context> directly is not supported and will be removed in a future major release. Did you mean to render <Context.Consumer> instead?"))):h=h._context;var y=a.pendingProps,b=y.children;typeof b!="function"&&u("A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you did pass a function, make sure there is no trailing or leading whitespace around it."),Cy(a,d);var T=Xi(h);fc(a);var x;return QE.current=a,ma(!0),x=b(T),ma(!1),hd(),a.flags|=oc,ja(i,a,x,d),a.child}function JE(){fu=!0}function aR(i,a){(a.mode&hn)===Pt&&i!==null&&(i.alternate=null,a.alternate=null,a.flags|=br)}function Hd(i,a,d){return i!==null&&(a.dependencies=i.dependencies),H4(),cb(a.lanes),Ta(d,a.childLanes)?(aoe(i,a),a.child):null}function nae(i,a,d){{var h=a.return;if(h===null)throw new Error("Cannot swap the root fiber.");if(i.alternate=null,a.alternate=null,d.index=a.index,d.sibling=a.sibling,d.return=a.return,d.ref=a.ref,a===h.child)h.child=d;else{var y=h.child;if(y===null)throw new Error("Expected parent to have a child.");for(;y.sibling!==a;)if(y=y.sibling,y===null)throw new Error("Expected to find the previous sibling.");y.sibling=d}var b=h.deletions;return b===null?(h.deletions=[i],h.flags|=$n):b.push(i),d.flags|=br,d}}function YO(i,a){var d=i.lanes;return!!Ta(d,a)}function rae(i,a,d){switch(a.tag){case E:Q4(a),a.stateNode,Ey();break;case S:u4(a);break;case v:{var h=a.type;wc(h)&&mT(a);break}case w:tO(a,a.stateNode.containerInfo);break;case L:{var y=a.memoizedProps.value,b=a.type._context;q$(a,b,y);break}case U:{var T=Ta(d,a.childLanes);T&&(a.flags|=nn);{var x=a.stateNode;x.effectDuration=0,x.passiveEffectDuration=0}}break;case H:{var I=a.memoizedState;if(I!==null){if(I.dehydrated!==null)return bh(a,Ty(cu.current)),a.flags|=Gt,null;var D=a.child,$=D.childLanes;if(Ta(d,$))return J4(i,a,d);bh(a,Ty(cu.current));var Z=Hd(i,a,d);return Z!==null?Z.sibling:null}else bh(a,Ty(cu.current));break}case Me:{var X=(i.flags&Gt)!==It,ce=Ta(d,a.childLanes);if(X){if(ce)return n3(i,a,d);a.flags|=Gt}var fe=a.memoizedState;if(fe!==null&&(fe.rendering=null,fe.tail=null,fe.lastEffect=null),bh(a,cu.current),ce)break;return null}case te:case ee:return a.lanes=Se,K4(i,a,d)}return Hd(i,a,d)}function o3(i,a,d){if(a._debugNeedsRemount&&i!==null)return nae(i,a,TN(a.type,a.key,a.pendingProps,a._debugOwner||null,a.mode,a.lanes));if(i!==null){var h=i.memoizedProps,y=a.pendingProps;if(h!==y||pT()||a.type!==i.type)fu=!0;else{var b=YO(i,d);if(!b&&(a.flags&Gt)===It)return fu=!1,rae(i,a,d);(i.flags&Yp)!==It?fu=!0:fu=!1}}else if(fu=!1,Xo()&&kie(a)){var T=a.index,x=Iie();N$(a,x,T)}switch(a.lanes=Se,a.tag){case g:return Foe(i,a,a.type,d);case Te:{var I=a.elementType;return Loe(i,a,I,d)}case p:{var D=a.type,$=a.pendingProps,Z=a.elementType===D?$:uu(D,$);return BO(i,a,D,Z,d)}case v:{var X=a.type,ce=a.pendingProps,fe=a.elementType===X?ce:uu(X,ce);return Y4(i,a,X,fe,d)}case E:return Moe(i,a,d);case S:return Poe(i,a,d);case A:return Doe(i,a);case H:return J4(i,a,d);case w:return Zoe(i,a,d);case j:{var Ce=a.type,ct=a.pendingProps,Ot=a.elementType===Ce?ct:uu(Ce,ct);return q4(i,a,Ce,Ot,d)}case k:return Ioe(i,a,d);case M:return Ooe(i,a,d);case U:return Noe(i,a,d);case L:return eae(i,a,d);case P:return tae(i,a,d);case W:{var Tt=a.type,xn=a.pendingProps,bn=uu(Tt,xn);if(a.type!==a.elementType){var oe=Tt.propTypes;oe&&au(oe,bn,"prop",kn(Tt))}return bn=uu(Tt.type,bn),G4(i,a,Tt,bn,d)}case Q:return V4(i,a,a.type,a.pendingProps,d);case Ve:{var we=a.type,ae=a.pendingProps,Ue=a.elementType===we?ae:uu(we,ae);return Uoe(i,a,we,Ue,d)}case Me:return n3(i,a,d);case je:break;case te:return K4(i,a,d)}throw new Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function Oy(i){i.flags|=nn}function a3(i){i.flags|=ya,i.flags|=M_}var s3,QO,l3,u3;s3=function(i,a,d,h){for(var y=a.child;y!==null;){if(y.tag===S||y.tag===A)Rre(i,y.stateNode);else if(y.tag!==w){if(y.child!==null){y.child.return=y,y=y.child;continue}}if(y===a)return;for(;y.sibling===null;){if(y.return===null||y.return===a)return;y=y.return}y.sibling.return=y.return,y=y.sibling}},QO=function(i,a){},l3=function(i,a,d,h,y){var b=i.memoizedProps;if(b!==h){var T=a.stateNode,x=nO(),I=Are(T,d,b,h,y,x);a.updateQueue=I,I&&Oy(a)}},u3=function(i,a,d,h){d!==h&&Oy(a)};function ZE(i,a){if(!Xo())switch(i.tailMode){case"hidden":{for(var d=i.tail,h=null;d!==null;)d.alternate!==null&&(h=d),d=d.sibling;h===null?i.tail=null:h.sibling=null;break}case"collapsed":{for(var y=i.tail,b=null;y!==null;)y.alternate!==null&&(b=y),y=y.sibling;b===null?!a&&i.tail!==null?i.tail.sibling=null:i.tail=null:b.sibling=null;break}}}function Zo(i){var a=i.alternate!==null&&i.alternate.child===i.child,d=Se,h=It;if(a){if((i.mode&Ft)!==Pt){for(var I=i.selfBaseDuration,D=i.child;D!==null;)d=rn(d,rn(D.lanes,D.childLanes)),h|=D.subtreeFlags&lo,h|=D.flags&lo,I+=D.treeBaseDuration,D=D.sibling;i.treeBaseDuration=I}else for(var $=i.child;$!==null;)d=rn(d,rn($.lanes,$.childLanes)),h|=$.subtreeFlags&lo,h|=$.flags&lo,$.return=i,$=$.sibling;i.subtreeFlags|=h}else{if((i.mode&Ft)!==Pt){for(var y=i.actualDuration,b=i.selfBaseDuration,T=i.child;T!==null;)d=rn(d,rn(T.lanes,T.childLanes)),h|=T.subtreeFlags,h|=T.flags,y+=T.actualDuration,b+=T.treeBaseDuration,T=T.sibling;i.actualDuration=y,i.treeBaseDuration=b}else for(var x=i.child;x!==null;)d=rn(d,rn(x.lanes,x.childLanes)),h|=x.subtreeFlags,h|=x.flags,x.return=i,x=x.sibling;i.subtreeFlags|=h}return i.childLanes=d,a}function iae(i,a,d){if(zie()&&(a.mode&hn)!==Pt&&(a.flags&Gt)===It)return H$(a),Ey(),a.flags|=Zr|La|Vi,!1;var h=bT(a);if(d!==null&&d.dehydrated!==null)if(i===null){if(!h)throw new Error("A dehydrated suspense component was completed without a hydrated node. This is probably a bug in React.");if(Bie(a),Zo(a),(a.mode&Ft)!==Pt){var y=d!==null;if(y){var b=a.child;b!==null&&(a.treeBaseDuration-=b.treeBaseDuration)}}return!1}else{if(Ey(),(a.flags&Gt)===It&&(a.memoizedState=null),a.flags|=nn,Zo(a),(a.mode&Ft)!==Pt){var T=d!==null;if(T){var x=a.child;x!==null&&(a.treeBaseDuration-=x.treeBaseDuration)}}return!1}else return $$(),!0}function c3(i,a,d){var h=a.pendingProps;switch(CI(a),a.tag){case g:case Te:case Q:case p:case j:case k:case M:case U:case P:case W:return Zo(a),null;case v:{var y=a.type;return wc(y)&&vT(a),Zo(a),null}case E:{var b=a.stateNode;if(Sy(a),yI(a),sO(),b.pendingContext&&(b.context=b.pendingContext,b.pendingContext=null),i===null||i.child===null){var T=bT(a);if(T)Oy(a);else if(i!==null){var x=i.memoizedState;(!x.isDehydrated||(a.flags&Zr)!==It)&&(a.flags|=ls,$$())}}return QO(i,a),Zo(a),null}case S:{rO(a);var I=l4(),D=a.type;if(i!==null&&a.stateNode!=null)l3(i,a,D,h,I),i.ref!==a.ref&&a3(a);else{if(!h){if(a.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");return Zo(a),null}var $=nO(),Z=bT(a);if(Z)Hie(a,I,$)&&Oy(a);else{var X=Tre(D,h,I,$,a);s3(X,a,!1,!1),a.stateNode=X,xre(X,D,h,I)&&Oy(a)}a.ref!==null&&a3(a)}return Zo(a),null}case A:{var ce=h;if(i&&a.stateNode!=null){var fe=i.memoizedProps;u3(i,a,fe,ce)}else{if(typeof ce!="string"&&a.stateNode===null)throw new Error("We must have new props for new mounts. This error is likely caused by a bug in React. Please file an issue.");var Ce=l4(),ct=nO(),Ot=bT(a);Ot?$ie(a)&&Oy(a):a.stateNode=kre(ce,Ce,ct,a)}return Zo(a),null}case H:{Ry(a);var Tt=a.memoizedState;if(i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){var xn=iae(i,a,Tt);if(!xn)return a.flags&Vi?a:null}if((a.flags&Gt)!==It)return a.lanes=d,(a.mode&Ft)!==Pt&&NO(a),a;var bn=Tt!==null,oe=i!==null&&i.memoizedState!==null;if(bn!==oe&&bn){var we=a.child;if(we.flags|=ac,(a.mode&hn)!==Pt){var ae=i===null&&(a.memoizedProps.unstable_avoidThisFallback!==!0||!ne);ae||iO(cu.current,d4)?ose():pN()}}var Ue=a.updateQueue;if(Ue!==null&&(a.flags|=nn),Zo(a),(a.mode&Ft)!==Pt&&bn){var dt=a.child;dt!==null&&(a.treeBaseDuration-=dt.treeBaseDuration)}return null}case w:return Sy(a),QO(i,a),i===null&&Cie(a.stateNode.containerInfo),Zo(a),null;case L:var nt=a.type._context;return OI(nt,a),Zo(a),null;case Ve:{var jt=a.type;return wc(jt)&&vT(a),Zo(a),null}case Me:{Ry(a);var Qt=a.memoizedState;if(Qt===null)return Zo(a),null;var sr=(a.flags&Gt)!==It,Un=Qt.rendering;if(Un===null)if(sr)ZE(Qt,!1);else{var Hi=sse()&&(i===null||(i.flags&Gt)===It);if(!Hi)for(var Fn=a.child;Fn!==null;){var wi=FT(Fn);if(wi!==null){sr=!0,a.flags|=Gt,ZE(Qt,!1);var ka=wi.updateQueue;return ka!==null&&(a.updateQueue=ka,a.flags|=nn),a.subtreeFlags=It,soe(a,d),bh(a,oO(cu.current,jE)),a.child}Fn=Fn.sibling}Qt.tail!==null&&Hr()>O3()&&(a.flags|=Gt,sr=!0,ZE(Qt,!1),a.lanes=V_)}else{if(!sr){var ia=FT(Un);if(ia!==null){a.flags|=Gt,sr=!0;var Gs=ia.updateQueue;if(Gs!==null&&(a.updateQueue=Gs,a.flags|=nn),ZE(Qt,!0),Qt.tail===null&&Qt.tailMode==="hidden"&&!Un.alternate&&!Xo())return Zo(a),null}else Hr()*2-Qt.renderingStartTime>O3()&&d!==Sa&&(a.flags|=Gt,sr=!0,ZE(Qt,!1),a.lanes=V_)}if(Qt.isBackwards)Un.sibling=a.child,a.child=Un;else{var Ga=Qt.last;Ga!==null?Ga.sibling=Un:a.child=Un,Qt.last=Un}}if(Qt.tail!==null){var Va=Qt.tail;Qt.rendering=Va,Qt.tail=Va.sibling,Qt.renderingStartTime=Hr(),Va.sibling=null;var Ia=cu.current;return sr?Ia=oO(Ia,jE):Ia=Ty(Ia),bh(a,Ia),Va}return Zo(a),null}case je:break;case te:case ee:{hN(a);var qd=a.memoizedState,Hy=qd!==null;if(i!==null){var vb=i.memoizedState,Oc=vb!==null;Oc!==Hy&&!B&&(a.flags|=ac)}return!Hy||(a.mode&hn)===Pt?Zo(a):Ta(Ic,Sa)&&(Zo(a),a.subtreeFlags&(br|nn)&&(a.flags|=ac)),null}case ye:return null;case ve:return null}throw new Error("Unknown unit of work tag ("+a.tag+"). This error is likely caused by a bug in React. Please file an issue.")}function oae(i,a,d){switch(CI(a),a.tag){case v:{var h=a.type;wc(h)&&vT(a);var y=a.flags;return y&Vi?(a.flags=y&~Vi|Gt,(a.mode&Ft)!==Pt&&NO(a),a):null}case E:{a.stateNode,Sy(a),yI(a),sO();var b=a.flags;return(b&Vi)!==It&&(b&Gt)===It?(a.flags=b&~Vi|Gt,a):null}case S:return rO(a),null;case H:{Ry(a);var T=a.memoizedState;if(T!==null&&T.dehydrated!==null){if(a.alternate===null)throw new Error("Threw in newly mounted dehydrated component. This is likely a bug in React. Please file an issue.");Ey()}var x=a.flags;return x&Vi?(a.flags=x&~Vi|Gt,(a.mode&Ft)!==Pt&&NO(a),a):null}case Me:return Ry(a),null;case w:return Sy(a),null;case L:var I=a.type._context;return OI(I,a),null;case te:case ee:return hN(a),null;case ye:return null;default:return null}}function d3(i,a,d){switch(CI(a),a.tag){case v:{var h=a.type.childContextTypes;h!=null&&vT(a);break}case E:{a.stateNode,Sy(a),yI(a),sO();break}case S:{rO(a);break}case w:Sy(a);break;case H:Ry(a);break;case Me:Ry(a);break;case L:var y=a.type._context;OI(y,a);break;case te:case ee:hN(a);break}}var f3=null;f3=new Set;var sR=!1,ea=!1,aae=typeof WeakSet=="function"?WeakSet:Set,vt=null,Ny=null,My=null;function sae(i){dd(null,function(){throw i}),O_()}var lae=function(i,a){if(a.props=i.memoizedProps,a.state=i.memoizedState,i.mode&Ft)try{Ac(),a.componentWillUnmount()}finally{xc(i)}else a.componentWillUnmount()};function h3(i,a){try{Sh(ho,i)}catch(d){Tr(i,a,d)}}function XO(i,a,d){try{lae(i,d)}catch(h){Tr(i,a,h)}}function uae(i,a,d){try{d.componentDidMount()}catch(h){Tr(i,a,h)}}function p3(i,a){try{m3(i)}catch(d){Tr(i,a,d)}}function Py(i,a){var d=i.ref;if(d!==null)if(typeof d=="function"){var h;try{if(Lt&&zt&&i.mode&Ft)try{Ac(),h=d(null)}finally{xc(i)}else h=d(null)}catch(y){Tr(i,a,y)}typeof h=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Kt(i))}else d.current=null}function lR(i,a,d){try{d()}catch(h){Tr(i,a,h)}}var v3=!1;function cae(i,a){wre(i.containerInfo),vt=a,dae();var d=v3;return v3=!1,d}function dae(){for(;vt!==null;){var i=vt,a=i.child;(i.subtreeFlags&qf)!==It&&a!==null?(a.return=i,vt=a):fae()}}function fae(){for(;vt!==null;){var i=vt;qn(i);try{hae(i)}catch(d){Tr(i,i.return,d)}Jr();var a=i.sibling;if(a!==null){a.return=i.return,vt=a;return}vt=i.return}}function hae(i){var a=i.alternate,d=i.flags;if((d&ls)!==It){switch(qn(i),i.tag){case p:case j:case Q:break;case v:{if(a!==null){var h=a.memoizedProps,y=a.memoizedState,b=i.stateNode;i.type===i.elementType&&!Av&&(b.props!==i.memoizedProps&&u("Expected %s props to match memoized props before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Kt(i)||"instance"),b.state!==i.memoizedState&&u("Expected %s state to match memoized state before getSnapshotBeforeUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Kt(i)||"instance"));var T=b.getSnapshotBeforeUpdate(i.elementType===i.type?h:uu(i.type,h),y);{var x=f3;T===void 0&&!x.has(i.type)&&(x.add(i.type),u("%s.getSnapshotBeforeUpdate(): A snapshot value (or null) must be returned. You have returned undefined.",Kt(i)))}b.__reactInternalSnapshotBeforeUpdate=T}break}case E:{{var I=i.stateNode;Wre(I.containerInfo)}break}case S:case A:case w:case Ve:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}Jr()}}function hu(i,a,d){var h=a.updateQueue,y=h!==null?h.lastEffect:null;if(y!==null){var b=y.next,T=b;do{if((T.tag&i)===i){var x=T.destroy;T.destroy=void 0,x!==void 0&&((i&Jo)!==Es?wg(a):(i&ho)!==Es&&Sg(a),(i&Sc)!==Es&&fb(!0),lR(a,d,x),(i&Sc)!==Es&&fb(!1),(i&Jo)!==Es?ES():(i&ho)!==Es&&Gf())}T=T.next}while(T!==b)}}function Sh(i,a){var d=a.updateQueue,h=d!==null?d.lastEffect:null;if(h!==null){var y=h.next,b=y;do{if((b.tag&i)===i){(i&Jo)!==Es?_S(a):(i&ho)!==Es&&bS(a);var T=b.create;(i&Sc)!==Es&&fb(!0),b.destroy=T(),(i&Sc)!==Es&&fb(!1),(i&Jo)!==Es?z_():(i&ho)!==Es&&CS();{var x=b.destroy;if(x!==void 0&&typeof x!="function"){var I=void 0;(b.tag&ho)!==It?I="useLayoutEffect":(b.tag&Sc)!==It?I="useInsertionEffect":I="useEffect";var D=void 0;x===null?D=" You returned null. If your effect does not require clean up, return undefined (or nothing).":typeof x.then=="function"?D=`
192
+
193
+ It looks like you wrote `+I+`(async () => ...) or returned a Promise. Instead, write the async function inside your effect and call it immediately:
194
+
195
+ `+I+`(() => {
196
+ async function fetchData() {
197
+ // You can await here
198
+ const response = await MyAPI.getData(someId);
199
+ // ...
200
+ }
201
+ fetchData();
202
+ }, [someId]); // Or [] if effect doesn't need props or state
203
+
204
+ Learn more about data fetching with Hooks: https://reactjs.org/link/hooks-data-fetching`:D=" You returned: "+x,u("%s must not return anything besides a function, which is used for clean-up.%s",I,D)}}}b=b.next}while(b!==y)}}function pae(i,a){if((a.flags&nn)!==It)switch(a.tag){case U:{var d=a.stateNode.passiveEffectDuration,h=a.memoizedProps,y=h.id,b=h.onPostCommit,T=U4(),x=a.alternate===null?"mount":"update";L4()&&(x="nested-update"),typeof b=="function"&&b(y,x,d,T);var I=a.return;e:for(;I!==null;){switch(I.tag){case E:var D=I.stateNode;D.passiveEffectDuration+=d;break e;case U:var $=I.stateNode;$.passiveEffectDuration+=d;break e}I=I.return}break}}}function vae(i,a,d,h){if((d.flags&Oo)!==It)switch(d.tag){case p:case j:case Q:{if(!ea)if(d.mode&Ft)try{Ac(),Sh(ho|fo,d)}finally{xc(d)}else Sh(ho|fo,d);break}case v:{var y=d.stateNode;if(d.flags&nn&&!ea)if(a===null)if(d.type===d.elementType&&!Av&&(y.props!==d.memoizedProps&&u("Expected %s props to match memoized props before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Kt(d)||"instance"),y.state!==d.memoizedState&&u("Expected %s state to match memoized state before componentDidMount. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Kt(d)||"instance")),d.mode&Ft)try{Ac(),y.componentDidMount()}finally{xc(d)}else y.componentDidMount();else{var b=d.elementType===d.type?a.memoizedProps:uu(d.type,a.memoizedProps),T=a.memoizedState;if(d.type===d.elementType&&!Av&&(y.props!==d.memoizedProps&&u("Expected %s props to match memoized props before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Kt(d)||"instance"),y.state!==d.memoizedState&&u("Expected %s state to match memoized state before componentDidUpdate. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Kt(d)||"instance")),d.mode&Ft)try{Ac(),y.componentDidUpdate(b,T,y.__reactInternalSnapshotBeforeUpdate)}finally{xc(d)}else y.componentDidUpdate(b,T,y.__reactInternalSnapshotBeforeUpdate)}var x=d.updateQueue;x!==null&&(d.type===d.elementType&&!Av&&(y.props!==d.memoizedProps&&u("Expected %s props to match memoized props before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.props`. Please file an issue.",Kt(d)||"instance"),y.state!==d.memoizedState&&u("Expected %s state to match memoized state before processing the update queue. This might either be because of a bug in React, or because a component reassigns its own `this.state`. Please file an issue.",Kt(d)||"instance")),Q$(d,x,y));break}case E:{var I=d.updateQueue;if(I!==null){var D=null;if(d.child!==null)switch(d.child.tag){case S:D=d.child.stateNode;break;case v:D=d.child.stateNode;break}Q$(d,I,D)}break}case S:{var $=d.stateNode;if(a===null&&d.flags&nn){var Z=d.type,X=d.memoizedProps;Pre($,Z,X)}break}case A:break;case w:break;case U:{{var ce=d.memoizedProps,fe=ce.onCommit,Ce=ce.onRender,ct=d.stateNode.effectDuration,Ot=U4(),Tt=a===null?"mount":"update";L4()&&(Tt="nested-update"),typeof Ce=="function"&&Ce(d.memoizedProps.id,Tt,d.actualDuration,d.treeBaseDuration,d.actualStartTime,Ot);{typeof fe=="function"&&fe(d.memoizedProps.id,Tt,ct,Ot),fse(d);var xn=d.return;e:for(;xn!==null;){switch(xn.tag){case E:var bn=xn.stateNode;bn.effectDuration+=ct;break e;case U:var oe=xn.stateNode;oe.effectDuration+=ct;break e}xn=xn.return}}}break}case H:{wae(i,d);break}case Me:case Ve:case je:case te:case ee:case ve:break;default:throw new Error("This unit of work tag should not have side-effects. This error is likely caused by a bug in React. Please file an issue.")}ea||d.flags&ya&&m3(d)}function mae(i){switch(i.tag){case p:case j:case Q:{if(i.mode&Ft)try{Ac(),h3(i,i.return)}finally{xc(i)}else h3(i,i.return);break}case v:{var a=i.stateNode;typeof a.componentDidMount=="function"&&uae(i,i.return,a),p3(i,i.return);break}case S:{p3(i,i.return);break}}}function gae(i,a){for(var d=null,h=i;;){if(h.tag===S){if(d===null){d=h;try{var y=h.stateNode;a?qre(y):Vre(h.stateNode,h.memoizedProps)}catch(T){Tr(i,i.return,T)}}}else if(h.tag===A){if(d===null)try{var b=h.stateNode;a?Gre(b):Kre(b,h.memoizedProps)}catch(T){Tr(i,i.return,T)}}else if(!((h.tag===te||h.tag===ee)&&h.memoizedState!==null&&h!==i)){if(h.child!==null){h.child.return=h,h=h.child;continue}}if(h===i)return;for(;h.sibling===null;){if(h.return===null||h.return===i)return;d===h&&(d=null),h=h.return}d===h&&(d=null),h.sibling.return=h.return,h=h.sibling}}function m3(i){var a=i.ref;if(a!==null){var d=i.stateNode,h;switch(i.tag){case S:h=d;break;default:h=d}if(typeof a=="function"){var y;if(i.mode&Ft)try{Ac(),y=a(h)}finally{xc(i)}else y=a(h);typeof y=="function"&&u("Unexpected return value from a callback ref in %s. A callback ref should not return a function.",Kt(i))}else a.hasOwnProperty("current")||u("Unexpected ref object provided for %s. Use either a ref-setter function or React.createRef().",Kt(i)),a.current=h}}function yae(i){var a=i.alternate;a!==null&&(a.return=null),i.return=null}function g3(i){var a=i.alternate;a!==null&&(i.alternate=null,g3(a));{if(i.child=null,i.deletions=null,i.sibling=null,i.tag===S){var d=i.stateNode;d!==null&&Tie(d)}i.stateNode=null,i._debugOwner=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}}function _ae(i){for(var a=i.return;a!==null;){if(y3(a))return a;a=a.return}throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.")}function y3(i){return i.tag===S||i.tag===E||i.tag===w}function _3(i){var a=i;e:for(;;){for(;a.sibling===null;){if(a.return===null||y3(a.return))return null;a=a.return}for(a.sibling.return=a.return,a=a.sibling;a.tag!==S&&a.tag!==A&&a.tag!==ot;){if(a.flags&br||a.child===null||a.tag===w)continue e;a.child.return=a,a=a.child}if(!(a.flags&br))return a.stateNode}}function Eae(i){var a=_ae(i);switch(a.tag){case S:{var d=a.stateNode;a.flags&Gn&&(E$(d),a.flags&=~Gn);var h=_3(i);ZO(i,h,d);break}case E:case w:{var y=a.stateNode.containerInfo,b=_3(i);JO(i,b,y);break}default:throw new Error("Invalid host parent fiber. This error is likely caused by a bug in React. Please file an issue.")}}function JO(i,a,d){var h=i.tag,y=h===S||h===A;if(y){var b=i.stateNode;a?$re(d,b,a):Fre(d,b)}else if(h!==w){var T=i.child;if(T!==null){JO(T,a,d);for(var x=T.sibling;x!==null;)JO(x,a,d),x=x.sibling}}}function ZO(i,a,d){var h=i.tag,y=h===S||h===A;if(y){var b=i.stateNode;a?Hre(d,b,a):Ure(d,b)}else if(h!==w){var T=i.child;if(T!==null){ZO(T,a,d);for(var x=T.sibling;x!==null;)ZO(x,a,d),x=x.sibling}}}var ta=null,pu=!1;function bae(i,a,d){{var h=a;e:for(;h!==null;){switch(h.tag){case S:{ta=h.stateNode,pu=!1;break e}case E:{ta=h.stateNode.containerInfo,pu=!0;break e}case w:{ta=h.stateNode.containerInfo,pu=!0;break e}}h=h.return}if(ta===null)throw new Error("Expected to find a host parent. This error is likely caused by a bug in React. Please file an issue.");E3(i,a,d),ta=null,pu=!1}yae(d)}function Th(i,a,d){for(var h=d.child;h!==null;)E3(i,a,h),h=h.sibling}function E3(i,a,d){switch(B_(d),d.tag){case S:ea||Py(d,a);case A:{{var h=ta,y=pu;ta=null,Th(i,a,d),ta=h,pu=y,ta!==null&&(pu?jre(ta,d.stateNode):Bre(ta,d.stateNode))}return}case ot:{ta!==null&&(pu?zre(ta,d.stateNode):cI(ta,d.stateNode));return}case w:{{var b=ta,T=pu;ta=d.stateNode.containerInfo,pu=!0,Th(i,a,d),ta=b,pu=T}return}case p:case j:case W:case Q:{if(!ea){var x=d.updateQueue;if(x!==null){var I=x.lastEffect;if(I!==null){var D=I.next,$=D;do{var Z=$,X=Z.destroy,ce=Z.tag;X!==void 0&&((ce&Sc)!==Es?lR(d,a,X):(ce&ho)!==Es&&(Sg(d),d.mode&Ft?(Ac(),lR(d,a,X),xc(d)):lR(d,a,X),Gf())),$=$.next}while($!==D)}}}Th(i,a,d);return}case v:{if(!ea){Py(d,a);var fe=d.stateNode;typeof fe.componentWillUnmount=="function"&&XO(d,a,fe)}Th(i,a,d);return}case je:{Th(i,a,d);return}case te:{if(d.mode&hn){var Ce=ea;ea=Ce||d.memoizedState!==null,Th(i,a,d),ea=Ce}else Th(i,a,d);break}default:{Th(i,a,d);return}}}function Cae(i){i.memoizedState}function wae(i,a){var d=a.memoizedState;if(d===null){var h=a.alternate;if(h!==null){var y=h.memoizedState;if(y!==null){var b=y.dehydrated;b!==null&&lie(b)}}}}function b3(i){var a=i.updateQueue;if(a!==null){i.updateQueue=null;var d=i.stateNode;d===null&&(d=i.stateNode=new aae),a.forEach(function(h){var y=_se.bind(null,i,h);if(!d.has(h)){if(d.add(h),uo)if(Ny!==null&&My!==null)db(My,Ny);else throw Error("Expected finished root and lanes to be set. This is a bug in React.");h.then(y,y)}})}}function Sae(i,a,d){Ny=d,My=i,qn(a),C3(a,i),qn(a),Ny=null,My=null}function vu(i,a,d){var h=a.deletions;if(h!==null)for(var y=0;y<h.length;y++){var b=h[y];try{bae(i,a,b)}catch(I){Tr(b,a,I)}}var T=tg();if(a.subtreeFlags&ba)for(var x=a.child;x!==null;)qn(x),C3(x,i),x=x.sibling;qn(T)}function C3(i,a,d){var h=i.alternate,y=i.flags;switch(i.tag){case p:case j:case W:case Q:{if(vu(a,i),kc(i),y&nn){try{hu(Sc|fo,i,i.return),Sh(Sc|fo,i)}catch(jt){Tr(i,i.return,jt)}if(i.mode&Ft){try{Ac(),hu(ho|fo,i,i.return)}catch(jt){Tr(i,i.return,jt)}xc(i)}else try{hu(ho|fo,i,i.return)}catch(jt){Tr(i,i.return,jt)}}return}case v:{vu(a,i),kc(i),y&ya&&h!==null&&Py(h,h.return);return}case S:{vu(a,i),kc(i),y&ya&&h!==null&&Py(h,h.return);{if(i.flags&Gn){var b=i.stateNode;try{E$(b)}catch(jt){Tr(i,i.return,jt)}}if(y&nn){var T=i.stateNode;if(T!=null){var x=i.memoizedProps,I=h!==null?h.memoizedProps:x,D=i.type,$=i.updateQueue;if(i.updateQueue=null,$!==null)try{Dre(T,$,D,I,x,i)}catch(jt){Tr(i,i.return,jt)}}}}return}case A:{if(vu(a,i),kc(i),y&nn){if(i.stateNode===null)throw new Error("This should have a text node initialized. This error is likely caused by a bug in React. Please file an issue.");var Z=i.stateNode,X=i.memoizedProps,ce=h!==null?h.memoizedProps:X;try{Lre(Z,ce,X)}catch(jt){Tr(i,i.return,jt)}}return}case E:{if(vu(a,i),kc(i),y&nn&&h!==null){var fe=h.memoizedState;if(fe.isDehydrated)try{sie(a.containerInfo)}catch(jt){Tr(i,i.return,jt)}}return}case w:{vu(a,i),kc(i);return}case H:{vu(a,i),kc(i);var Ce=i.child;if(Ce.flags&ac){var ct=Ce.stateNode,Ot=Ce.memoizedState,Tt=Ot!==null;if(ct.isHidden=Tt,Tt){var xn=Ce.alternate!==null&&Ce.alternate.memoizedState!==null;xn||ise()}}if(y&nn){try{Cae(i)}catch(jt){Tr(i,i.return,jt)}b3(i)}return}case te:{var bn=h!==null&&h.memoizedState!==null;if(i.mode&hn){var oe=ea;ea=oe||bn,vu(a,i),ea=oe}else vu(a,i);if(kc(i),y&ac){var we=i.stateNode,ae=i.memoizedState,Ue=ae!==null,dt=i;if(we.isHidden=Ue,Ue&&!bn&&(dt.mode&hn)!==Pt){vt=dt;for(var nt=dt.child;nt!==null;)vt=nt,Rae(nt),nt=nt.sibling}gae(dt,Ue)}return}case Me:{vu(a,i),kc(i),y&nn&&b3(i);return}case je:return;default:{vu(a,i),kc(i);return}}}function kc(i){var a=i.flags;if(a&br){try{Eae(i)}catch(d){Tr(i,i.return,d)}i.flags&=~br}a&us&&(i.flags&=~us)}function Tae(i,a,d){Ny=d,My=a,vt=i,w3(i,a,d),Ny=null,My=null}function w3(i,a,d){for(var h=(i.mode&hn)!==Pt;vt!==null;){var y=vt,b=y.child;if(y.tag===te&&h){var T=y.memoizedState!==null,x=T||sR;if(x){eN(i,a,d);continue}else{var I=y.alternate,D=I!==null&&I.memoizedState!==null,$=D||ea,Z=sR,X=ea;sR=x,ea=$,ea&&!X&&(vt=y,xae(y));for(var ce=b;ce!==null;)vt=ce,w3(ce,a,d),ce=ce.sibling;vt=y,sR=Z,ea=X,eN(i,a,d);continue}}(y.subtreeFlags&Oo)!==It&&b!==null?(b.return=y,vt=b):eN(i,a,d)}}function eN(i,a,d){for(;vt!==null;){var h=vt;if((h.flags&Oo)!==It){var y=h.alternate;qn(h);try{vae(a,y,h,d)}catch(T){Tr(h,h.return,T)}Jr()}if(h===i){vt=null;return}var b=h.sibling;if(b!==null){b.return=h.return,vt=b;return}vt=h.return}}function Rae(i){for(;vt!==null;){var a=vt,d=a.child;switch(a.tag){case p:case j:case W:case Q:{if(a.mode&Ft)try{Ac(),hu(ho,a,a.return)}finally{xc(a)}else hu(ho,a,a.return);break}case v:{Py(a,a.return);var h=a.stateNode;typeof h.componentWillUnmount=="function"&&XO(a,a.return,h);break}case S:{Py(a,a.return);break}case te:{var y=a.memoizedState!==null;if(y){S3(i);continue}break}}d!==null?(d.return=a,vt=d):S3(i)}}function S3(i){for(;vt!==null;){var a=vt;if(a===i){vt=null;return}var d=a.sibling;if(d!==null){d.return=a.return,vt=d;return}vt=a.return}}function xae(i){for(;vt!==null;){var a=vt,d=a.child;if(a.tag===te){var h=a.memoizedState!==null;if(h){T3(i);continue}}d!==null?(d.return=a,vt=d):T3(i)}}function T3(i){for(;vt!==null;){var a=vt;qn(a);try{mae(a)}catch(h){Tr(a,a.return,h)}if(Jr(),a===i){vt=null;return}var d=a.sibling;if(d!==null){d.return=a.return,vt=d;return}vt=a.return}}function Aae(i,a,d,h){vt=a,kae(a,i,d,h)}function kae(i,a,d,h){for(;vt!==null;){var y=vt,b=y.child;(y.subtreeFlags&cs)!==It&&b!==null?(b.return=y,vt=b):Iae(i,a,d,h)}}function Iae(i,a,d,h){for(;vt!==null;){var y=vt;if((y.flags&Or)!==It){qn(y);try{Oae(a,y,d,h)}catch(T){Tr(y,y.return,T)}Jr()}if(y===i){vt=null;return}var b=y.sibling;if(b!==null){b.return=y.return,vt=b;return}vt=y.return}}function Oae(i,a,d,h){switch(a.tag){case p:case j:case Q:{if(a.mode&Ft){OO();try{Sh(Jo|fo,a)}finally{IO(a)}}else Sh(Jo|fo,a);break}}}function Nae(i){vt=i,Mae()}function Mae(){for(;vt!==null;){var i=vt,a=i.child;if((vt.flags&$n)!==It){var d=i.deletions;if(d!==null){for(var h=0;h<d.length;h++){var y=d[h];vt=y,Lae(y,i)}{var b=i.alternate;if(b!==null){var T=b.child;if(T!==null){b.child=null;do{var x=T.sibling;T.sibling=null,T=x}while(T!==null)}}}vt=i}}(i.subtreeFlags&cs)!==It&&a!==null?(a.return=i,vt=a):Pae()}}function Pae(){for(;vt!==null;){var i=vt;(i.flags&Or)!==It&&(qn(i),Dae(i),Jr());var a=i.sibling;if(a!==null){a.return=i.return,vt=a;return}vt=i.return}}function Dae(i){switch(i.tag){case p:case j:case Q:{i.mode&Ft?(OO(),hu(Jo|fo,i,i.return),IO(i)):hu(Jo|fo,i,i.return);break}}}function Lae(i,a){for(;vt!==null;){var d=vt;qn(d),Fae(d,a),Jr();var h=d.child;h!==null?(h.return=d,vt=h):Uae(i)}}function Uae(i){for(;vt!==null;){var a=vt,d=a.sibling,h=a.return;if(g3(a),a===i){vt=null;return}if(d!==null){d.return=h,vt=d;return}vt=h}}function Fae(i,a){switch(i.tag){case p:case j:case Q:{i.mode&Ft?(OO(),hu(Jo,i,a),IO(i)):hu(Jo,i,a);break}}}function Hae(i){switch(i.tag){case p:case j:case Q:{try{Sh(ho|fo,i)}catch(d){Tr(i,i.return,d)}break}case v:{var a=i.stateNode;try{a.componentDidMount()}catch(d){Tr(i,i.return,d)}break}}}function $ae(i){switch(i.tag){case p:case j:case Q:{try{Sh(Jo|fo,i)}catch(a){Tr(i,i.return,a)}break}}}function Bae(i){switch(i.tag){case p:case j:case Q:{try{hu(ho|fo,i,i.return)}catch(d){Tr(i,i.return,d)}break}case v:{var a=i.stateNode;typeof a.componentWillUnmount=="function"&&XO(i,i.return,a);break}}}function jae(i){switch(i.tag){case p:case j:case Q:try{hu(Jo|fo,i,i.return)}catch(a){Tr(i,i.return,a)}}}if(typeof Symbol=="function"&&Symbol.for){var eb=Symbol.for;eb("selector.component"),eb("selector.has_pseudo_class"),eb("selector.role"),eb("selector.test_id"),eb("selector.text")}var zae=[];function qae(){zae.forEach(function(i){return i()})}var Gae=t.ReactCurrentActQueue;function Vae(i){{var a=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0,d=typeof jest<"u";return d&&a!==!1}}function R3(){{var i=typeof IS_REACT_ACT_ENVIRONMENT<"u"?IS_REACT_ACT_ENVIRONMENT:void 0;return!i&&Gae.current!==null&&u("The current testing environment is not configured to support act(...)"),i}}var Kae=Math.ceil,tN=t.ReactCurrentDispatcher,nN=t.ReactCurrentOwner,na=t.ReactCurrentBatchConfig,mu=t.ReactCurrentActQueue,mo=0,x3=1,ra=2,bl=4,$d=0,tb=1,kv=2,uR=3,nb=4,A3=5,rN=6,Rn=mo,za=null,ui=null,go=Se,Ic=Se,iN=vh(Se),yo=$d,rb=null,cR=Se,ib=Se,dR=Se,ob=null,bs=null,oN=0,k3=500,I3=1/0,Wae=500,Bd=null;function ab(){I3=Hr()+Wae}function O3(){return I3}var fR=!1,aN=null,Dy=null,Iv=!1,Rh=null,sb=Se,sN=[],lN=null,Yae=50,lb=0,uN=null,cN=!1,hR=!1,Qae=50,Ly=0,pR=null,ub=fr,vR=Se,N3=!1;function mR(){return za}function qa(){return(Rn&(ra|bl))!==mo?Hr():(ub!==fr||(ub=Hr()),ub)}function xh(i){var a=i.mode;if((a&hn)===Pt)return Ht;if((Rn&ra)!==mo&&go!==Se)return Di(go);var d=Vie()!==Gie;if(d){if(na.transition!==null){var h=na.transition;h._updatedFibers||(h._updatedFibers=new Set),h._updatedFibers.add(i)}return vR===Tn&&(vR=Y_()),vR}var y=ps();if(y!==Tn)return y;var b=Ire();return b}function Xae(i){var a=i.mode;return(a&hn)===Pt?Ht:Ok()}function _o(i,a,d,h){bse(),N3&&u("useInsertionEffect must not schedule updates."),cN&&(hR=!0),wd(i,d,h),(Rn&ra)!==Se&&i===za?Sse(a):(uo&&eE(i,a,d),Tse(a),i===za&&((Rn&ra)===mo&&(ib=rn(ib,d)),yo===nb&&Ah(i,go)),Cs(i,h),d===Ht&&Rn===mo&&(a.mode&hn)===Pt&&!mu.isBatchingLegacy&&(ab(),O$()))}function Jae(i,a,d){var h=i.current;h.lanes=a,wd(i,a,d),Cs(i,d)}function Zae(i){return(Rn&ra)!==mo}function Cs(i,a){var d=i.callbackNode;Ak(i,a);var h=tv(i,i===za?go:Se);if(h===Se){d!==null&&W3(d),i.callbackNode=null,i.callbackPriority=Tn;return}var y=bi(h),b=i.callbackPriority;if(b===y&&!(mu.current!==null&&d!==gN)){d==null&&b!==Ht&&u("Expected scheduled callback to exist. This error is likely caused by a bug in React. Please file an issue.");return}d!=null&&W3(d);var T;if(y===Ht)i.tag===mh?(mu.isBatchingLegacy!==null&&(mu.didScheduleLegacyUpdate=!0),Aie(D3.bind(null,i))):I$(D3.bind(null,i)),mu.current!==null?mu.current.push(gh):Nre(function(){(Rn&(ra|bl))===mo&&gh()}),T=null;else{var x;switch(av(h)){case No:x=Eg;break;case co:x=Ha;break;case tu:x=dl;break;case iv:x=lc;break;default:x=dl;break}T=yN(x,M3.bind(null,i))}i.callbackPriority=y,i.callbackNode=T}function M3(i,a){if(boe(),ub=fr,vR=Se,(Rn&(ra|bl))!==mo)throw new Error("Should not already be working.");var d=i.callbackNode,h=zd();if(h&&i.callbackNode!==d)return null;var y=tv(i,i===za?go:Se);if(y===Se)return null;var b=!rv(i,y)&&!AS(i,y)&&!a,T=b?use(i,y):yR(i,y);if(T!==$d){if(T===kv){var x=K_(i);x!==Se&&(y=x,T=dN(i,x))}if(T===tb){var I=rb;throw Ov(i,Se),Ah(i,y),Cs(i,Hr()),I}if(T===rN)Ah(i,y);else{var D=!rv(i,y),$=i.current.alternate;if(D&&!tse($)){if(T=yR(i,y),T===kv){var Z=K_(i);Z!==Se&&(y=Z,T=dN(i,Z))}if(T===tb){var X=rb;throw Ov(i,Se),Ah(i,y),Cs(i,Hr()),X}}i.finishedWork=$,i.finishedLanes=y,ese(i,T,y)}}return Cs(i,Hr()),i.callbackNode===d?M3.bind(null,i):null}function dN(i,a){var d=ob;if(Ui(i)){var h=Ov(i,a);h.flags|=Zr,bie(i.containerInfo)}var y=yR(i,a);if(y!==kv){var b=bs;bs=d,b!==null&&P3(b)}return y}function P3(i){bs===null?bs=i:bs.push.apply(bs,i)}function ese(i,a,d){switch(a){case $d:case tb:throw new Error("Root did not complete. This is a bug in React.");case kv:{Nv(i,bs,Bd);break}case uR:{if(Ah(i,d),qg(d)&&!Y3()){var h=oN+k3-Hr();if(h>10){var y=tv(i,Se);if(y!==Se)break;var b=i.suspendedLanes;if(!Cd(b,d)){qa(),J_(i,b);break}i.timeoutHandle=lI(Nv.bind(null,i,bs,Bd),h);break}}Nv(i,bs,Bd);break}case nb:{if(Ah(i,d),xS(d))break;if(!Y3()){var T=RS(i,d),x=T,I=Hr()-x,D=Ese(I)-I;if(D>10){i.timeoutHandle=lI(Nv.bind(null,i,bs,Bd),D);break}}Nv(i,bs,Bd);break}case A3:{Nv(i,bs,Bd);break}default:throw new Error("Unknown root exit status.")}}function tse(i){for(var a=i;;){if(a.flags&Wp){var d=a.updateQueue;if(d!==null){var h=d.stores;if(h!==null)for(var y=0;y<h.length;y++){var b=h[y],T=b.getSnapshot,x=b.value;try{if(!pt(T(),x))return!1}catch{return!1}}}}var I=a.child;if(a.subtreeFlags&Wp&&I!==null){I.return=a,a=I;continue}if(a===i)return!0;for(;a.sibling===null;){if(a.return===null||a.return===i)return!0;a=a.return}a.sibling.return=a.return,a=a.sibling}return!0}function Ah(i,a){a=Jf(a,dR),a=Jf(a,ib),X_(i,a)}function D3(i){if(Coe(),(Rn&(ra|bl))!==mo)throw new Error("Should not already be working.");zd();var a=tv(i,Se);if(!Ta(a,Ht))return Cs(i,Hr()),null;var d=yR(i,a);if(i.tag!==mh&&d===kv){var h=K_(i);h!==Se&&(a=h,d=dN(i,h))}if(d===tb){var y=rb;throw Ov(i,Se),Ah(i,a),Cs(i,Hr()),y}if(d===rN)throw new Error("Root did not complete. This is a bug in React.");var b=i.current.alternate;return i.finishedWork=b,i.finishedLanes=a,Nv(i,bs,Bd),Cs(i,Hr()),null}function nse(i,a){a!==Se&&(Zf(i,rn(a,Ht)),Cs(i,Hr()),(Rn&(ra|bl))===mo&&(ab(),gh()))}function fN(i,a){var d=Rn;Rn|=x3;try{return i(a)}finally{Rn=d,Rn===mo&&!mu.isBatchingLegacy&&(ab(),O$())}}function rse(i,a,d,h,y){var b=ps(),T=na.transition;try{return na.transition=null,Li(No),i(a,d,h,y)}finally{Li(b),na.transition=T,Rn===mo&&ab()}}function jd(i){Rh!==null&&Rh.tag===mh&&(Rn&(ra|bl))===mo&&zd();var a=Rn;Rn|=x3;var d=na.transition,h=ps();try{return na.transition=null,Li(No),i?i():void 0}finally{Li(h),na.transition=d,Rn=a,(Rn&(ra|bl))===mo&&gh()}}function L3(){return(Rn&(ra|bl))!==mo}function gR(i,a){xa(iN,Ic,i),Ic=rn(Ic,a)}function hN(i){Ic=iN.current,Ra(iN,i)}function Ov(i,a){i.finishedWork=null,i.finishedLanes=Se;var d=i.timeoutHandle;if(d!==uI&&(i.timeoutHandle=uI,Ore(d)),ui!==null)for(var h=ui.return;h!==null;){var y=h.alternate;d3(y,h),h=h.return}za=i;var b=Mv(i.current,null);return ui=b,go=Ic=a,yo=$d,rb=null,cR=Se,ib=Se,dR=Se,ob=null,bs=null,Qie(),lu.discardPendingWarnings(),b}function U3(i,a){do{var d=ui;try{if(TT(),h4(),Jr(),nN.current=null,d===null||d.return===null){yo=tb,rb=a,ui=null;return}if(Lt&&d.mode&Ft&&rR(d,!0),At)if(hd(),a!==null&&typeof a=="object"&&typeof a.then=="function"){var h=a;wS(d,h,go)}else Tg(d,a,go);xoe(i,d.return,d,a,go),B3(d)}catch(y){a=y,ui===d&&d!==null?(d=d.return,ui=d):d=ui;continue}return}while(!0)}function F3(){var i=tN.current;return tN.current=JT,i===null?JT:i}function H3(i){tN.current=i}function ise(){oN=Hr()}function cb(i){cR=rn(i,cR)}function ose(){yo===$d&&(yo=uR)}function pN(){(yo===$d||yo===uR||yo===kv)&&(yo=nb),za!==null&&(nv(cR)||nv(ib))&&Ah(za,go)}function ase(i){yo!==nb&&(yo=kv),ob===null?ob=[i]:ob.push(i)}function sse(){return yo===$d}function yR(i,a){var d=Rn;Rn|=ra;var h=F3();if(za!==i||go!==a){if(uo){var y=i.memoizedUpdaters;y.size>0&&(db(i,go),y.clear()),Kg(i,a)}Bd=tE(),Ov(i,a)}Bs(a);do try{lse();break}catch(b){U3(i,b)}while(!0);if(TT(),Rn=d,H3(h),ui!==null)throw new Error("Cannot commit an incomplete root. This error is likely caused by a bug in React. Please file an issue.");return Kf(),za=null,go=Se,yo}function lse(){for(;ui!==null;)$3(ui)}function use(i,a){var d=Rn;Rn|=ra;var h=F3();if(za!==i||go!==a){if(uo){var y=i.memoizedUpdaters;y.size>0&&(db(i,go),y.clear()),Kg(i,a)}Bd=tE(),ab(),Ov(i,a)}Bs(a);do try{cse();break}catch(b){U3(i,b)}while(!0);return TT(),H3(h),Rn=d,ui!==null?(Xp(),$d):(Kf(),za=null,go=Se,yo)}function cse(){for(;ui!==null&&!_g();)$3(ui)}function $3(i){var a=i.alternate;qn(i);var d;(i.mode&Ft)!==Pt?(kO(i),d=vN(a,i,Ic),rR(i,!0)):d=vN(a,i,Ic),Jr(),i.memoizedProps=i.pendingProps,d===null?B3(i):ui=d,nN.current=null}function B3(i){var a=i;do{var d=a.alternate,h=a.return;if((a.flags&La)===It){qn(a);var y=void 0;if((a.mode&Ft)===Pt?y=c3(d,a,Ic):(kO(a),y=c3(d,a,Ic),rR(a,!1)),Jr(),y!==null){ui=y;return}}else{var b=oae(d,a);if(b!==null){b.flags&=pS,ui=b;return}if((a.mode&Ft)!==Pt){rR(a,!1);for(var T=a.actualDuration,x=a.child;x!==null;)T+=x.actualDuration,x=x.sibling;a.actualDuration=T}if(h!==null)h.flags|=La,h.subtreeFlags=It,h.deletions=null;else{yo=rN,ui=null;return}}var I=a.sibling;if(I!==null){ui=I;return}a=h,ui=a}while(a!==null);yo===$d&&(yo=A3)}function Nv(i,a,d){var h=ps(),y=na.transition;try{na.transition=null,Li(No),dse(i,a,d,h)}finally{na.transition=y,Li(h)}return null}function dse(i,a,d,h){do zd();while(Rh!==null);if(Cse(),(Rn&(ra|bl))!==mo)throw new Error("Should not already be working.");var y=i.finishedWork,b=i.finishedLanes;if(Cg(b),y===null)return j_(),null;if(b===Se&&u("root.finishedLanes should not be empty during a commit. This is a bug in React."),i.finishedWork=null,i.finishedLanes=Se,y===i.current)throw new Error("Cannot commit the same tree as before. This error is likely caused by a bug in React. Please file an issue.");i.callbackNode=null,i.callbackPriority=Tn;var T=rn(y.lanes,y.childLanes);Z_(i,T),i===za&&(za=null,ui=null,go=Se),((y.subtreeFlags&cs)!==It||(y.flags&cs)!==It)&&(Iv||(Iv=!0,lN=d,yN(dl,function(){return zd(),null})));var x=(y.subtreeFlags&(qf|ba|Oo|cs))!==It,I=(y.flags&(qf|ba|Oo|cs))!==It;if(x||I){var D=na.transition;na.transition=null;var $=ps();Li(No);var Z=Rn;Rn|=bl,nN.current=null,cae(i,y),F4(),Sae(i,y,b),Sre(i.containerInfo),i.current=y,SS(b),Tae(y,i,b),Vf(),gS(),Rn=Z,Li($),na.transition=D}else i.current=y,F4();var X=Iv;if(Iv?(Iv=!1,Rh=i,sb=b):(Ly=0,pR=null),T=i.pendingLanes,T===Se&&(Dy=null),X||G3(i.current,!1),Jl(y.stateNode,h),uo&&i.memoizedUpdaters.clear(),qae(),Cs(i,Hr()),a!==null)for(var ce=i.onRecoverableError,fe=0;fe<a.length;fe++){var Ce=a[fe],ct=Ce.stack,Ot=Ce.digest;ce(Ce.value,{componentStack:ct,digest:Ot})}if(fR){fR=!1;var Tt=aN;throw aN=null,Tt}return Ta(sb,Ht)&&i.tag!==mh&&zd(),T=i.pendingLanes,Ta(T,Ht)?(Eoe(),i===uN?lb++:(lb=0,uN=i)):lb=0,gh(),j_(),null}function zd(){if(Rh!==null){var i=av(sb),a=Mk(tu,i),d=na.transition,h=ps();try{return na.transition=null,Li(a),hse()}finally{Li(h),na.transition=d}}return!1}function fse(i){sN.push(i),Iv||(Iv=!0,yN(dl,function(){return zd(),null}))}function hse(){if(Rh===null)return!1;var i=lN;lN=null;var a=Rh,d=sb;if(Rh=null,sb=Se,(Rn&(ra|bl))!==mo)throw new Error("Cannot flush passive effects while already rendering.");cN=!0,hR=!1,TS(d);var h=Rn;Rn|=bl,Nae(a.current),Aae(a,a.current,d,i);{var y=sN;sN=[];for(var b=0;b<y.length;b++){var T=y[b];pae(a,T)}}Qp(),G3(a.current,!0),Rn=h,gh(),hR?a===pR?Ly++:(Ly=0,pR=a):Ly=0,cN=!1,hR=!1,cc(a);{var x=a.current.stateNode;x.effectDuration=0,x.passiveEffectDuration=0}return!0}function j3(i){return Dy!==null&&Dy.has(i)}function pse(i){Dy===null?Dy=new Set([i]):Dy.add(i)}function vse(i){fR||(fR=!0,aN=i)}var mse=vse;function z3(i,a,d){var h=xv(d,a),y=$4(i,h,Ht),b=_h(i,y,Ht),T=qa();b!==null&&(wd(b,Ht,T),Cs(b,T))}function Tr(i,a,d){if(sae(d),fb(!1),i.tag===E){z3(i,i,d);return}var h=null;for(h=a;h!==null;){if(h.tag===E){z3(h,i,d);return}else if(h.tag===v){var y=h.type,b=h.stateNode;if(typeof y.getDerivedStateFromError=="function"||typeof b.componentDidCatch=="function"&&!j3(b)){var T=xv(d,i),x=DO(h,T,Ht),I=_h(h,x,Ht),D=qa();I!==null&&(wd(I,Ht,D),Cs(I,D));return}}h=h.return}u(`Internal React error: Attempted to capture a commit phase error inside a detached tree. This indicates a bug in React. Likely causes include deleting the same fiber more than once, committing an already-finished tree, or an inconsistent return pointer.
205
+
206
+ Error message:
207
+
208
+ %s`,d)}function gse(i,a,d){var h=i.pingCache;h!==null&&h.delete(a);var y=qa();J_(i,d),Rse(i),za===i&&Cd(go,d)&&(yo===nb||yo===uR&&qg(go)&&Hr()-oN<k3?Ov(i,Se):dR=rn(dR,d)),Cs(i,y)}function q3(i,a){a===Tn&&(a=Xae(i));var d=qa(),h=_s(i,a);h!==null&&(wd(h,a,d),Cs(h,d))}function yse(i){var a=i.memoizedState,d=Tn;a!==null&&(d=a.retryLane),q3(i,d)}function _se(i,a){var d=Tn,h;switch(i.tag){case H:h=i.stateNode;var y=i.memoizedState;y!==null&&(d=y.retryLane);break;case Me:h=i.stateNode;break;default:throw new Error("Pinged unknown suspense boundary type. This is probably a bug in React.")}h!==null&&h.delete(a),q3(i,d)}function Ese(i){return i<120?120:i<480?480:i<1080?1080:i<1920?1920:i<3e3?3e3:i<4320?4320:Kae(i/1960)*1960}function bse(){if(lb>Yae)throw lb=0,uN=null,new Error("Maximum update depth exceeded. This can happen when a component repeatedly calls setState inside componentWillUpdate or componentDidUpdate. React limits the number of nested updates to prevent infinite loops.");Ly>Qae&&(Ly=0,pR=null,u("Maximum update depth exceeded. This can happen when a component calls setState inside useEffect, but useEffect either doesn't have a dependency array, or one of the dependencies changes on every render."))}function Cse(){lu.flushLegacyContextWarning(),lu.flushPendingUnsafeLifecycleWarnings()}function G3(i,a){qn(i),_R(i,Ea,Bae),a&&_R(i,fd,jae),_R(i,Ea,Hae),a&&_R(i,fd,$ae),Jr()}function _R(i,a,d){for(var h=i,y=null;h!==null;){var b=h.subtreeFlags&a;h!==y&&h.child!==null&&b!==It?h=h.child:((h.flags&a)!==It&&d(h),h.sibling!==null?h=h.sibling:h=y=h.return)}}var ER=null;function V3(i){{if((Rn&ra)!==mo||!(i.mode&hn))return;var a=i.tag;if(a!==g&&a!==E&&a!==v&&a!==p&&a!==j&&a!==W&&a!==Q)return;var d=Kt(i)||"ReactComponent";if(ER!==null){if(ER.has(d))return;ER.add(d)}else ER=new Set([d]);var h=Fr;try{qn(i),u("Can't perform a React state update on a component that hasn't mounted yet. This indicates that you have a side-effect in your render function that asynchronously later calls tries to update the component. Move this work to useEffect instead.")}finally{h?qn(i):Jr()}}}var vN;{var wse=null;vN=function(i,a,d){var h=eB(wse,a);try{return o3(i,a,d)}catch(b){if(Lie()||b!==null&&typeof b=="object"&&typeof b.then=="function")throw b;if(TT(),h4(),d3(i,a),eB(a,h),a.mode&Ft&&kO(a),dd(null,o3,null,i,a,d),Rk()){var y=O_();typeof y=="object"&&y!==null&&y._suppressLogging&&typeof b=="object"&&b!==null&&!b._suppressLogging&&(b._suppressLogging=!0)}throw b}}}var K3=!1,mN;mN=new Set;function Sse(i){if(va&&!goe())switch(i.tag){case p:case j:case Q:{var a=ui&&Kt(ui)||"Unknown",d=a;if(!mN.has(d)){mN.add(d);var h=Kt(i)||"Unknown";u("Cannot update a component (`%s`) while rendering a different component (`%s`). To locate the bad setState() call inside `%s`, follow the stack trace as described in https://reactjs.org/link/setstate-in-render",h,a,a)}break}case v:{K3||(u("Cannot update during an existing state transition (such as within `render`). Render methods should be a pure function of props and state."),K3=!0);break}}}function db(i,a){if(uo){var d=i.memoizedUpdaters;d.forEach(function(h){eE(i,h,a)})}}var gN={};function yN(i,a){{var d=mu.current;return d!==null?(d.push(a),gN):yg(i,a)}}function W3(i){if(i!==gN)return mS(i)}function Y3(){return mu.current!==null}function Tse(i){{if(i.mode&hn){if(!R3())return}else if(!Vae()||Rn!==mo||i.tag!==p&&i.tag!==j&&i.tag!==Q)return;if(mu.current===null){var a=Fr;try{qn(i),u(`An update to %s inside a test was not wrapped in act(...).
209
+
210
+ When testing, code that causes React state updates should be wrapped into act(...):
211
+
212
+ act(() => {
213
+ /* fire events that update state */
214
+ });
215
+ /* assert on the output */
216
+
217
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`,Kt(i))}finally{a?qn(i):Jr()}}}}function Rse(i){i.tag!==mh&&R3()&&mu.current===null&&u(`A suspended resource finished loading inside a test, but the event was not wrapped in act(...).
218
+
219
+ When testing, code that resolves suspended data should be wrapped into act(...):
220
+
221
+ act(() => {
222
+ /* finish loading suspended data */
223
+ });
224
+ /* assert on the output */
225
+
226
+ This ensures that you're testing the behavior the user would see in the browser. Learn more at https://reactjs.org/link/wrap-tests-with-act`)}function fb(i){N3=i}var Cl=null,Uy=null,xse=function(i){Cl=i};function Fy(i){{if(Cl===null)return i;var a=Cl(i);return a===void 0?i:a.current}}function _N(i){return Fy(i)}function EN(i){{if(Cl===null)return i;var a=Cl(i);if(a===void 0){if(i!=null&&typeof i.render=="function"){var d=Fy(i.render);if(i.render!==d){var h={$$typeof:Xe,render:d};return i.displayName!==void 0&&(h.displayName=i.displayName),h}}return i}return a.current}}function Q3(i,a){{if(Cl===null)return!1;var d=i.elementType,h=a.type,y=!1,b=typeof h=="object"&&h!==null?h.$$typeof:null;switch(i.tag){case v:{typeof h=="function"&&(y=!0);break}case p:{(typeof h=="function"||b===Rt)&&(y=!0);break}case j:{(b===Xe||b===Rt)&&(y=!0);break}case W:case Q:{(b===Bt||b===Rt)&&(y=!0);break}default:return!1}if(y){var T=Cl(d);if(T!==void 0&&T===Cl(h))return!0}return!1}}function X3(i){{if(Cl===null||typeof WeakSet!="function")return;Uy===null&&(Uy=new WeakSet),Uy.add(i)}}var Ase=function(i,a){{if(Cl===null)return;var d=a.staleFamilies,h=a.updatedFamilies;zd(),jd(function(){bN(i.current,h,d)})}},kse=function(i,a){{if(i.context!==zs)return;zd(),jd(function(){hb(a,i,null,null)})}};function bN(i,a,d){{var h=i.alternate,y=i.child,b=i.sibling,T=i.tag,x=i.type,I=null;switch(T){case p:case Q:case v:I=x;break;case j:I=x.render;break}if(Cl===null)throw new Error("Expected resolveFamily to be set during hot reload.");var D=!1,$=!1;if(I!==null){var Z=Cl(I);Z!==void 0&&(d.has(Z)?$=!0:a.has(Z)&&(T===v?$=!0:D=!0))}if(Uy!==null&&(Uy.has(i)||h!==null&&Uy.has(h))&&($=!0),$&&(i._debugNeedsRemount=!0),$||D){var X=_s(i,Ht);X!==null&&_o(X,i,Ht,fr)}y!==null&&!$&&bN(y,a,d),b!==null&&bN(b,a,d)}}var Ise=function(i,a){{var d=new Set,h=new Set(a.map(function(y){return y.current}));return CN(i.current,h,d),d}};function CN(i,a,d){{var h=i.child,y=i.sibling,b=i.tag,T=i.type,x=null;switch(b){case p:case Q:case v:x=T;break;case j:x=T.render;break}var I=!1;x!==null&&a.has(x)&&(I=!0),I?Ose(i,d):h!==null&&CN(h,a,d),y!==null&&CN(y,a,d)}}function Ose(i,a){{var d=Nse(i,a);if(d)return;for(var h=i;;){switch(h.tag){case S:a.add(h.stateNode);return;case w:a.add(h.stateNode.containerInfo);return;case E:a.add(h.stateNode.containerInfo);return}if(h.return===null)throw new Error("Expected to reach root first.");h=h.return}}}function Nse(i,a){for(var d=i,h=!1;;){if(d.tag===S)h=!0,a.add(d.stateNode);else if(d.child!==null){d.child.return=d,d=d.child;continue}if(d===i)return h;for(;d.sibling===null;){if(d.return===null||d.return===i)return h;d=d.return}d.sibling.return=d.return,d=d.sibling}return!1}var wN;{wN=!1;try{var J3=Object.preventExtensions({})}catch{wN=!0}}function Mse(i,a,d,h){this.tag=i,this.key=d,this.elementType=null,this.type=null,this.stateNode=null,this.return=null,this.child=null,this.sibling=null,this.index=0,this.ref=null,this.pendingProps=a,this.memoizedProps=null,this.updateQueue=null,this.memoizedState=null,this.dependencies=null,this.mode=h,this.flags=It,this.subtreeFlags=It,this.deletions=null,this.lanes=Se,this.childLanes=Se,this.alternate=null,this.actualDuration=Number.NaN,this.actualStartTime=Number.NaN,this.selfBaseDuration=Number.NaN,this.treeBaseDuration=Number.NaN,this.actualDuration=0,this.actualStartTime=-1,this.selfBaseDuration=0,this.treeBaseDuration=0,this._debugSource=null,this._debugOwner=null,this._debugNeedsRemount=!1,this._debugHookTypes=null,!wN&&typeof Object.preventExtensions=="function"&&Object.preventExtensions(this)}var qs=function(i,a,d,h){return new Mse(i,a,d,h)};function SN(i){var a=i.prototype;return!!(a&&a.isReactComponent)}function Pse(i){return typeof i=="function"&&!SN(i)&&i.defaultProps===void 0}function Dse(i){if(typeof i=="function")return SN(i)?v:p;if(i!=null){var a=i.$$typeof;if(a===Xe)return j;if(a===Bt)return W}return g}function Mv(i,a){var d=i.alternate;d===null?(d=qs(i.tag,a,i.key,i.mode),d.elementType=i.elementType,d.type=i.type,d.stateNode=i.stateNode,d._debugSource=i._debugSource,d._debugOwner=i._debugOwner,d._debugHookTypes=i._debugHookTypes,d.alternate=i,i.alternate=d):(d.pendingProps=a,d.type=i.type,d.flags=It,d.subtreeFlags=It,d.deletions=null,d.actualDuration=0,d.actualStartTime=-1),d.flags=i.flags&lo,d.childLanes=i.childLanes,d.lanes=i.lanes,d.child=i.child,d.memoizedProps=i.memoizedProps,d.memoizedState=i.memoizedState,d.updateQueue=i.updateQueue;var h=i.dependencies;switch(d.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext},d.sibling=i.sibling,d.index=i.index,d.ref=i.ref,d.selfBaseDuration=i.selfBaseDuration,d.treeBaseDuration=i.treeBaseDuration,d._debugNeedsRemount=i._debugNeedsRemount,d.tag){case g:case p:case Q:d.type=Fy(i.type);break;case v:d.type=_N(i.type);break;case j:d.type=EN(i.type);break}return d}function Lse(i,a){i.flags&=lo|br;var d=i.alternate;if(d===null)i.childLanes=Se,i.lanes=a,i.child=null,i.subtreeFlags=It,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null,i.selfBaseDuration=0,i.treeBaseDuration=0;else{i.childLanes=d.childLanes,i.lanes=d.lanes,i.child=d.child,i.subtreeFlags=It,i.deletions=null,i.memoizedProps=d.memoizedProps,i.memoizedState=d.memoizedState,i.updateQueue=d.updateQueue,i.type=d.type;var h=d.dependencies;i.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext},i.selfBaseDuration=d.selfBaseDuration,i.treeBaseDuration=d.treeBaseDuration}return i}function Use(i,a,d){var h;return i===gT?(h=hn,a===!0&&(h|=$r,h|=fs)):h=Pt,uo&&(h|=Ft),qs(E,null,null,h)}function TN(i,a,d,h,y,b){var T=g,x=i;if(typeof i=="function")SN(i)?(T=v,x=_N(x)):x=Fy(x);else if(typeof i=="string")T=S;else e:switch(i){case ao:return kh(d.children,y,b,a);case ha:T=M,y|=$r,(y&hn)!==Pt&&(y|=fs);break;case q:return Fse(d,y,b,a);case qt:return Hse(d,y,b,a);case kt:return $se(d,y,b,a);case vr:return Z3(d,y,b,a);case so:case Xr:case ol:case Tf:case pr:default:{if(typeof i=="object"&&i!==null)switch(i.$$typeof){case Ee:T=L;break e;case $e:T=P;break e;case Xe:T=j,x=EN(x);break e;case Bt:T=W;break e;case Rt:T=Te,x=null;break e}var I="";{(i===void 0||typeof i=="object"&&i!==null&&Object.keys(i).length===0)&&(I+=" 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 D=h?Kt(h):null;D&&(I+=`
227
+
228
+ Check the render method of \``+D+"`.")}throw new Error("Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) "+("but got: "+(i==null?i:typeof i)+"."+I))}}var $=qs(T,d,a,y);return $.elementType=i,$.type=x,$.lanes=b,$._debugOwner=h,$}function RN(i,a,d){var h=null;h=i._owner;var y=i.type,b=i.key,T=i.props,x=TN(y,b,T,h,a,d);return x._debugSource=i._source,x._debugOwner=i._owner,x}function kh(i,a,d,h){var y=qs(k,i,h,a);return y.lanes=d,y}function Fse(i,a,d,h){typeof i.id!="string"&&u('Profiler must specify an "id" of type `string` as a prop. Received the type `%s` instead.',typeof i.id);var y=qs(U,i,h,a|Ft);return y.elementType=q,y.lanes=d,y.stateNode={effectDuration:0,passiveEffectDuration:0},y}function Hse(i,a,d,h){var y=qs(H,i,h,a);return y.elementType=qt,y.lanes=d,y}function $se(i,a,d,h){var y=qs(Me,i,h,a);return y.elementType=kt,y.lanes=d,y}function Z3(i,a,d,h){var y=qs(te,i,h,a);y.elementType=vr,y.lanes=d;var b={isHidden:!1};return y.stateNode=b,y}function xN(i,a,d){var h=qs(A,i,null,a);return h.lanes=d,h}function Bse(){var i=qs(S,null,null,Pt);return i.elementType="DELETED",i}function jse(i){var a=qs(ot,null,null,Pt);return a.stateNode=i,a}function AN(i,a,d){var h=i.children!==null?i.children:[],y=qs(w,h,i.key,a);return y.lanes=d,y.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},y}function eB(i,a){return i===null&&(i=qs(g,null,null,Pt)),i.tag=a.tag,i.key=a.key,i.elementType=a.elementType,i.type=a.type,i.stateNode=a.stateNode,i.return=a.return,i.child=a.child,i.sibling=a.sibling,i.index=a.index,i.ref=a.ref,i.pendingProps=a.pendingProps,i.memoizedProps=a.memoizedProps,i.updateQueue=a.updateQueue,i.memoizedState=a.memoizedState,i.dependencies=a.dependencies,i.mode=a.mode,i.flags=a.flags,i.subtreeFlags=a.subtreeFlags,i.deletions=a.deletions,i.lanes=a.lanes,i.childLanes=a.childLanes,i.alternate=a.alternate,i.actualDuration=a.actualDuration,i.actualStartTime=a.actualStartTime,i.selfBaseDuration=a.selfBaseDuration,i.treeBaseDuration=a.treeBaseDuration,i._debugSource=a._debugSource,i._debugOwner=a._debugOwner,i._debugNeedsRemount=a._debugNeedsRemount,i._debugHookTypes=a._debugHookTypes,i}function zse(i,a,d,h,y){this.tag=a,this.containerInfo=i,this.pendingChildren=null,this.current=null,this.pingCache=null,this.finishedWork=null,this.timeoutHandle=uI,this.context=null,this.pendingContext=null,this.callbackNode=null,this.callbackPriority=Tn,this.eventTimes=Vg(Se),this.expirationTimes=Vg(fr),this.pendingLanes=Se,this.suspendedLanes=Se,this.pingedLanes=Se,this.expiredLanes=Se,this.mutableReadLanes=Se,this.finishedLanes=Se,this.entangledLanes=Se,this.entanglements=Vg(Se),this.identifierPrefix=h,this.onRecoverableError=y,this.mutableSourceEagerHydrationData=null,this.effectDuration=0,this.passiveEffectDuration=0;{this.memoizedUpdaters=new Set;for(var b=this.pendingUpdatersLaneMap=[],T=0;T<wr;T++)b.push(new Set)}switch(a){case gT:this._debugRootType=d?"hydrateRoot()":"createRoot()";break;case mh:this._debugRootType=d?"hydrate()":"render()";break}}function tB(i,a,d,h,y,b,T,x,I,D){var $=new zse(i,a,d,x,I),Z=Use(a,b);$.current=Z,Z.stateNode=$;{var X={element:h,isDehydrated:d,cache:null,transitions:null,pendingSuspenseBoundaries:null};Z.memoizedState=X}return LI(Z),$}var kN="18.2.0";function qse(i,a,d){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;return zi(h),{$$typeof:_i,key:h==null?null:""+h,children:i,containerInfo:a,implementation:d}}var IN,ON;IN=!1,ON={};function nB(i){if(!i)return zs;var a=ss(i),d=xie(a);if(a.tag===v){var h=a.type;if(wc(h))return A$(a,h,d)}return d}function Gse(i,a){{var d=ss(i);if(d===void 0){if(typeof i.render=="function")throw new Error("Unable to find node on an unmounted component.");var h=Object.keys(i).join(",");throw new Error("Argument appears to not be a ReactComponent. Keys: "+h)}var y=ds(d);if(y===null)return null;if(y.mode&$r){var b=Kt(d)||"Component";if(!ON[b]){ON[b]=!0;var T=Fr;try{qn(y),d.mode&$r?u("%s is deprecated in StrictMode. %s was passed an instance of %s which is inside StrictMode. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",a,a,b):u("%s is deprecated in StrictMode. %s was passed an instance of %s which renders StrictMode children. Instead, add a ref directly to the element you want to reference. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-find-node",a,a,b)}finally{T?qn(T):Jr()}}}return y.stateNode}}function rB(i,a,d,h,y,b,T,x){var I=!1,D=null;return tB(i,a,I,D,d,h,y,b,T)}function iB(i,a,d,h,y,b,T,x,I,D){var $=!0,Z=tB(d,h,$,i,y,b,T,x,I);Z.context=nB(null);var X=Z.current,ce=qa(),fe=xh(X),Ce=Fd(ce,fe);return Ce.callback=a??null,_h(X,Ce,fe),Jae(Z,fe,ce),Z}function hb(i,a,d,h){yS(a,i);var y=a.current,b=qa(),T=xh(y);pd(T);var x=nB(d);a.context===null?a.context=x:a.pendingContext=x,va&&Fr!==null&&!IN&&(IN=!0,u(`Render methods should be a pure function of props and state; triggering nested component updates from render is not allowed. If necessary, trigger nested updates in componentDidUpdate.
229
+
230
+ Check the render method of %s.`,Kt(Fr)||"Unknown"));var I=Fd(b,T);I.payload={element:i},h=h===void 0?null:h,h!==null&&(typeof h!="function"&&u("render(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",h),I.callback=h);var D=_h(y,I,T);return D!==null&&(_o(D,y,T,b),IT(D,y,T)),T}function bR(i){var a=i.current;if(!a.child)return null;switch(a.child.tag){case S:return a.child.stateNode;default:return a.child.stateNode}}function Vse(i){switch(i.tag){case E:{var a=i.stateNode;if(Ui(a)){var d=kk(a);nse(a,d)}break}case H:{jd(function(){var y=_s(i,Ht);if(y!==null){var b=qa();_o(y,i,Ht,b)}});var h=Ht;NN(i,h);break}}}function oB(i,a){var d=i.memoizedState;d!==null&&d.dehydrated!==null&&(d.retryLane=IS(d.retryLane,a))}function NN(i,a){oB(i,a);var d=i.alternate;d&&oB(d,a)}function Kse(i){if(i.tag===H){var a=Wf,d=_s(i,a);if(d!==null){var h=qa();_o(d,i,a,h)}NN(i,a)}}function Wse(i){if(i.tag===H){var a=xh(i),d=_s(i,a);if(d!==null){var h=qa();_o(d,i,a,h)}NN(i,a)}}function aB(i){var a=vS(i);return a===null?null:a.stateNode}var sB=function(i){return null};function Yse(i){return sB(i)}var lB=function(i){return!1};function Qse(i){return lB(i)}var uB=null,cB=null,dB=null,fB=null,hB=null,pB=null,vB=null,mB=null,gB=null;{var yB=function(i,a,d){var h=a[d],y=Cn(i)?i.slice():dn({},i);return d+1===a.length?(Cn(y)?y.splice(h,1):delete y[h],y):(y[h]=yB(i[h],a,d+1),y)},_B=function(i,a){return yB(i,a,0)},EB=function(i,a,d,h){var y=a[h],b=Cn(i)?i.slice():dn({},i);if(h+1===a.length){var T=d[h];b[T]=b[y],Cn(b)?b.splice(y,1):delete b[y]}else b[y]=EB(i[y],a,d,h+1);return b},bB=function(i,a,d){if(a.length!==d.length){s("copyWithRename() expects paths of the same length");return}else for(var h=0;h<d.length-1;h++)if(a[h]!==d[h]){s("copyWithRename() expects paths to be the same except for the deepest key");return}return EB(i,a,d,0)},CB=function(i,a,d,h){if(d>=a.length)return h;var y=a[d],b=Cn(i)?i.slice():dn({},i);return b[y]=CB(i[y],a,d+1,h),b},wB=function(i,a,d){return CB(i,a,0,d)},MN=function(i,a){for(var d=i.memoizedState;d!==null&&a>0;)d=d.next,a--;return d};uB=function(i,a,d,h){var y=MN(i,a);if(y!==null){var b=wB(y.memoizedState,d,h);y.memoizedState=b,y.baseState=b,i.memoizedProps=dn({},i.memoizedProps);var T=_s(i,Ht);T!==null&&_o(T,i,Ht,fr)}},cB=function(i,a,d){var h=MN(i,a);if(h!==null){var y=_B(h.memoizedState,d);h.memoizedState=y,h.baseState=y,i.memoizedProps=dn({},i.memoizedProps);var b=_s(i,Ht);b!==null&&_o(b,i,Ht,fr)}},dB=function(i,a,d,h){var y=MN(i,a);if(y!==null){var b=bB(y.memoizedState,d,h);y.memoizedState=b,y.baseState=b,i.memoizedProps=dn({},i.memoizedProps);var T=_s(i,Ht);T!==null&&_o(T,i,Ht,fr)}},fB=function(i,a,d){i.pendingProps=wB(i.memoizedProps,a,d),i.alternate&&(i.alternate.pendingProps=i.pendingProps);var h=_s(i,Ht);h!==null&&_o(h,i,Ht,fr)},hB=function(i,a){i.pendingProps=_B(i.memoizedProps,a),i.alternate&&(i.alternate.pendingProps=i.pendingProps);var d=_s(i,Ht);d!==null&&_o(d,i,Ht,fr)},pB=function(i,a,d){i.pendingProps=bB(i.memoizedProps,a,d),i.alternate&&(i.alternate.pendingProps=i.pendingProps);var h=_s(i,Ht);h!==null&&_o(h,i,Ht,fr)},vB=function(i){var a=_s(i,Ht);a!==null&&_o(a,i,Ht,fr)},mB=function(i){sB=i},gB=function(i){lB=i}}function Xse(i){var a=ds(i);return a===null?null:a.stateNode}function Jse(i){return null}function Zse(){return Fr}function ele(i){var a=i.findFiberByHostInstance,d=t.ReactCurrentDispatcher;return $_({bundleType:i.bundleType,version:i.version,rendererPackageName:i.rendererPackageName,rendererConfig:i.rendererConfig,overrideHookState:uB,overrideHookStateDeletePath:cB,overrideHookStateRenamePath:dB,overrideProps:fB,overridePropsDeletePath:hB,overridePropsRenamePath:pB,setErrorHandler:mB,setSuspenseHandler:gB,scheduleUpdate:vB,currentDispatcherRef:d,findHostInstanceByFiber:Xse,findFiberByHostInstance:a||Jse,findHostInstancesForRefresh:Ise,scheduleRefresh:Ase,scheduleRoot:kse,setRefreshHandler:xse,getCurrentFiber:Zse,reconcilerVersion:kN})}var SB=typeof reportError=="function"?reportError:function(i){console.error(i)};function PN(i){this._internalRoot=i}CR.prototype.render=PN.prototype.render=function(i){var a=this._internalRoot;if(a===null)throw new Error("Cannot update an unmounted root.");{typeof arguments[1]=="function"?u("render(...): does not support the second callback argument. To execute a side effect after rendering, declare it in a component body with useEffect()."):wR(arguments[1])?u("You passed a container to the second argument of root.render(...). You don't need to pass it again since you already passed it to create the root."):typeof arguments[1]<"u"&&u("You passed a second argument to root.render(...) but it only accepts one argument.");var d=a.containerInfo;if(d.nodeType!==Ei){var h=aB(a.current);h&&h.parentNode!==d&&u("render(...): It looks like the React-rendered content of the root container was removed without using React. This is not supported and will cause errors. Instead, call root.unmount() to empty a root's container.")}}hb(i,a,null,null)},CR.prototype.unmount=PN.prototype.unmount=function(){typeof arguments[0]=="function"&&u("unmount(...): does not support a callback argument. To execute a side effect after rendering, declare it in a component body with useEffect().");var i=this._internalRoot;if(i!==null){this._internalRoot=null;var a=i.containerInfo;L3()&&u("Attempted to synchronously unmount a root while React was already rendering. React cannot finish unmounting the root until the current render has completed, which may lead to a race condition."),jd(function(){hb(null,i,null,null)}),w$(a)}};function tle(i,a){if(!wR(i))throw new Error("createRoot(...): Target container is not a DOM element.");TB(i);var d=!1,h=!1,y="",b=SB;a!=null&&(a.hydrate?s("hydrate through createRoot is deprecated. Use ReactDOMClient.hydrateRoot(container, <App />) instead."):typeof a=="object"&&a!==null&&a.$$typeof===yi&&u(`You passed a JSX element to createRoot. You probably meant to call root.render instead. Example usage:
231
+
232
+ let root = createRoot(domContainer);
233
+ root.render(<App />);`),a.unstable_strictMode===!0&&(d=!0),a.identifierPrefix!==void 0&&(y=a.identifierPrefix),a.onRecoverableError!==void 0&&(b=a.onRecoverableError),a.transitionCallbacks!==void 0&&a.transitionCallbacks);var T=rB(i,gT,null,d,h,y,b);cT(T.current,i);var x=i.nodeType===Ei?i.parentNode:i;return bE(x),new PN(T)}function CR(i){this._internalRoot=i}function nle(i){i&&FS(i)}CR.prototype.unstable_scheduleHydration=nle;function rle(i,a,d){if(!wR(i))throw new Error("hydrateRoot(...): Target container is not a DOM element.");TB(i),a===void 0&&u("Must provide initial children as second argument to hydrateRoot. Example usage: hydrateRoot(domContainer, <App />)");var h=d??null,y=d!=null&&d.hydratedSources||null,b=!1,T=!1,x="",I=SB;d!=null&&(d.unstable_strictMode===!0&&(b=!0),d.identifierPrefix!==void 0&&(x=d.identifierPrefix),d.onRecoverableError!==void 0&&(I=d.onRecoverableError));var D=iB(a,null,i,gT,h,b,T,x,I);if(cT(D.current,i),bE(i),y)for(var $=0;$<y.length;$++){var Z=y[$];doe(D,Z)}return new CR(D)}function wR(i){return!!(i&&(i.nodeType===ga||i.nodeType===Fs||i.nodeType===od||!ke))}function pb(i){return!!(i&&(i.nodeType===ga||i.nodeType===Fs||i.nodeType===od||i.nodeType===Ei&&i.nodeValue===" react-mount-point-unstable "))}function TB(i){i.nodeType===ga&&i.tagName&&i.tagName.toUpperCase()==="BODY"&&u("createRoot(): Creating roots directly with document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try using a container element created for your app."),NE(i)&&(i._reactRootContainer?u("You are calling ReactDOMClient.createRoot() on a container that was previously passed to ReactDOM.render(). This is not supported."):u("You are calling ReactDOMClient.createRoot() on a container that has already been passed to createRoot() before. Instead, call root.render() on the existing root instead if you want to update it."))}var ile=t.ReactCurrentOwner,RB;RB=function(i){if(i._reactRootContainer&&i.nodeType!==Ei){var a=aB(i._reactRootContainer.current);a&&a.parentNode!==i&&u("render(...): It looks like the React-rendered content of this container was removed without using React. This is not supported and will cause errors. Instead, call ReactDOM.unmountComponentAtNode to empty a container.")}var d=!!i._reactRootContainer,h=DN(i),y=!!(h&&ph(h));y&&!d&&u("render(...): Replacing React-rendered children with a new root component. If you intended to update the children of this node, you should instead have the existing children update their state and render the new components instead of calling ReactDOM.render."),i.nodeType===ga&&i.tagName&&i.tagName.toUpperCase()==="BODY"&&u("render(): Rendering components directly into document.body is discouraged, since its children are often manipulated by third-party scripts and browser extensions. This may lead to subtle reconciliation issues. Try rendering into a container element created for your app.")};function DN(i){return i?i.nodeType===Fs?i.documentElement:i.firstChild:null}function xB(){}function ole(i,a,d,h,y){if(y){if(typeof h=="function"){var b=h;h=function(){var X=bR(T);b.call(X)}}var T=iB(a,h,i,mh,null,!1,!1,"",xB);i._reactRootContainer=T,cT(T.current,i);var x=i.nodeType===Ei?i.parentNode:i;return bE(x),jd(),T}else{for(var I;I=i.lastChild;)i.removeChild(I);if(typeof h=="function"){var D=h;h=function(){var X=bR($);D.call(X)}}var $=rB(i,mh,null,!1,!1,"",xB);i._reactRootContainer=$,cT($.current,i);var Z=i.nodeType===Ei?i.parentNode:i;return bE(Z),jd(function(){hb(a,$,d,h)}),$}}function ale(i,a){i!==null&&typeof i!="function"&&u("%s(...): Expected the last optional `callback` argument to be a function. Instead received: %s.",a,i)}function SR(i,a,d,h,y){RB(d),ale(y===void 0?null:y,"render");var b=d._reactRootContainer,T;if(!b)T=ole(d,a,i,y,h);else{if(T=b,typeof y=="function"){var x=y;y=function(){var I=bR(T);x.call(I)}}hb(a,T,i,y)}return bR(T)}function sle(i){{var a=ile.current;if(a!==null&&a.stateNode!==null){var d=a.stateNode._warnedAboutRefsInRender;d||u("%s is accessing findDOMNode inside its render(). render() should be a pure function of props and state. It should never access something that requires stale data from the previous render, such as refs. Move this logic to componentDidMount and componentDidUpdate instead.",kn(a.type)||"A component"),a.stateNode._warnedAboutRefsInRender=!0}}return i==null?null:i.nodeType===ga?i:Gse(i,"findDOMNode")}function lle(i,a,d){if(u("ReactDOM.hydrate is no longer supported in React 18. Use hydrateRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!pb(a))throw new Error("Target container is not a DOM element.");{var h=NE(a)&&a._reactRootContainer===void 0;h&&u("You are calling ReactDOM.hydrate() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call hydrateRoot(container, element)?")}return SR(null,i,a,!0,d)}function ule(i,a,d){if(u("ReactDOM.render is no longer supported in React 18. Use createRoot instead. Until you switch to the new API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!pb(a))throw new Error("Target container is not a DOM element.");{var h=NE(a)&&a._reactRootContainer===void 0;h&&u("You are calling ReactDOM.render() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.render(element)?")}return SR(null,i,a,!1,d)}function cle(i,a,d,h){if(u("ReactDOM.unstable_renderSubtreeIntoContainer() is no longer supported in React 18. Consider using a portal instead. Until you switch to the createRoot API, your app will behave as if it's running React 17. Learn more: https://reactjs.org/link/switch-to-createroot"),!pb(d))throw new Error("Target container is not a DOM element.");if(i==null||!Kp(i))throw new Error("parentComponent must be a valid React Component");return SR(i,a,d,!1,h)}function dle(i){if(!pb(i))throw new Error("unmountComponentAtNode(...): Target container is not a DOM element.");{var a=NE(i)&&i._reactRootContainer===void 0;a&&u("You are calling ReactDOM.unmountComponentAtNode() on a container that was previously passed to ReactDOMClient.createRoot(). This is not supported. Did you mean to call root.unmount()?")}if(i._reactRootContainer){{var d=DN(i),h=d&&!ph(d);h&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by another copy of React.")}return jd(function(){SR(null,null,i,!1,function(){i._reactRootContainer=null,w$(i)})}),!0}else{{var y=DN(i),b=!!(y&&ph(y)),T=i.nodeType===ga&&pb(i.parentNode)&&!!i.parentNode._reactRootContainer;b&&u("unmountComponentAtNode(): The node you're attempting to unmount was rendered by React and is not a top-level container. %s",T?"You may have accidentally passed in a React root node instead of its container.":"Instead, have the parent component update its state and rerender in order to remove this component.")}return!1}}ft(Vse),NS(Kse),lv(Wse),rE(ps),PS(ov),(typeof Map!="function"||Map.prototype==null||typeof Map.prototype.forEach!="function"||typeof Set!="function"||Set.prototype==null||typeof Set.prototype.clear!="function"||typeof Set.prototype.forEach!="function")&&u("React depends on Map and Set built-in types. Make sure that you load a polyfill in older browsers. https://reactjs.org/link/react-polyfills"),fS(pre),hg(fN,rse,jd);function fle(i,a){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!wR(a))throw new Error("Target container is not a DOM element.");return qse(i,a,null,d)}function hle(i,a,d,h){return cle(i,a,d,h)}var LN={usingClientEntryPoint:!1,Events:[ph,vy,dT,fg,qp,fN]};function ple(i,a){return LN.usingClientEntryPoint||u('You are importing createRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),tle(i,a)}function vle(i,a,d){return LN.usingClientEntryPoint||u('You are importing hydrateRoot from "react-dom" which is not supported. You should instead import it from "react-dom/client".'),rle(i,a,d)}function mle(i){return L3()&&u("flushSync was called from inside a lifecycle method. React cannot flush when React is already rendering. Consider moving this call to a scheduler task or micro task."),jd(i)}var gle=ele({findFiberByHostInstance:yv,bundleType:1,version:kN,rendererPackageName:"react-dom"});if(!gle&&Xn&&window.top===window.self&&(navigator.userAgent.indexOf("Chrome")>-1&&navigator.userAgent.indexOf("Edge")===-1||navigator.userAgent.indexOf("Firefox")>-1)){var AB=window.location.protocol;/^(https?|file):$/.test(AB)&&console.info("%cDownload the React DevTools for a better development experience: https://reactjs.org/link/react-devtools"+(AB==="file:"?`
234
+ You might need to use a local HTTP server (instead of file://): https://reactjs.org/link/react-devtools-faq`:""),"font-weight:bold")}Wa.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=LN,Wa.createPortal=fle,Wa.createRoot=ple,Wa.findDOMNode=sle,Wa.flushSync=mle,Wa.hydrate=lle,Wa.hydrateRoot=vle,Wa.render=ule,Wa.unmountComponentAtNode=dle,Wa.unstable_batchedUpdates=fN,Wa.unstable_renderSubtreeIntoContainer=hle,Wa.version=kN,typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"&&typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop=="function"&&__REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error)}()),Wa}function WN(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function")){if(process.env.NODE_ENV!=="production")throw new Error("^_^");try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(WN)}catch(n){console.error(n)}}}process.env.NODE_ENV==="production"?(WN(),kR.exports=DB()):kR.exports=LB();var NR=kR.exports,zy=NR;if(process.env.NODE_ENV==="production")jy.createRoot=zy.createRoot,jy.hydrateRoot=zy.hydrateRoot;else{var gb=zy.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;jy.createRoot=function(n,e){gb.usingClientEntryPoint=!0;try{return zy.createRoot(n,e)}finally{gb.usingClientEntryPoint=!1}},jy.hydrateRoot=function(n,e,t){gb.usingClientEntryPoint=!0;try{return zy.hydrateRoot(n,e,t)}finally{gb.usingClientEntryPoint=!1}}}var MR={exports:{}};const UB="2.0.0",YN=256,FB=Number.MAX_SAFE_INTEGER||9007199254740991,HB=16,$B=YN-6;var yb={MAX_LENGTH:YN,MAX_SAFE_COMPONENT_LENGTH:HB,MAX_SAFE_BUILD_LENGTH:$B,MAX_SAFE_INTEGER:FB,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:UB,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},_b=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...n)=>console.error("SEMVER",...n):()=>{};(function(n,e){const{MAX_SAFE_COMPONENT_LENGTH:t,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:o}=yb,s=_b;e=n.exports={};const u=e.re=[],f=e.safeRe=[],p=e.src=[],v=e.t={};let g=0;const E="[a-zA-Z0-9-]",w=[["\\s",1],["\\d",o],[E,r]],S=k=>{for(const[M,P]of w)k=k.split(`${M}*`).join(`${M}{0,${P}}`).split(`${M}+`).join(`${M}{1,${P}}`);return k},A=(k,M,P)=>{const L=S(M),j=g++;s(k,j,M),v[k]=j,p[j]=M,u[j]=new RegExp(M,P?"g":void 0),f[j]=new RegExp(L,P?"g":void 0)};A("NUMERICIDENTIFIER","0|[1-9]\\d*"),A("NUMERICIDENTIFIERLOOSE","\\d+"),A("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${E}*`),A("MAINVERSION",`(${p[v.NUMERICIDENTIFIER]})\\.(${p[v.NUMERICIDENTIFIER]})\\.(${p[v.NUMERICIDENTIFIER]})`),A("MAINVERSIONLOOSE",`(${p[v.NUMERICIDENTIFIERLOOSE]})\\.(${p[v.NUMERICIDENTIFIERLOOSE]})\\.(${p[v.NUMERICIDENTIFIERLOOSE]})`),A("PRERELEASEIDENTIFIER",`(?:${p[v.NUMERICIDENTIFIER]}|${p[v.NONNUMERICIDENTIFIER]})`),A("PRERELEASEIDENTIFIERLOOSE",`(?:${p[v.NUMERICIDENTIFIERLOOSE]}|${p[v.NONNUMERICIDENTIFIER]})`),A("PRERELEASE",`(?:-(${p[v.PRERELEASEIDENTIFIER]}(?:\\.${p[v.PRERELEASEIDENTIFIER]})*))`),A("PRERELEASELOOSE",`(?:-?(${p[v.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${p[v.PRERELEASEIDENTIFIERLOOSE]})*))`),A("BUILDIDENTIFIER",`${E}+`),A("BUILD",`(?:\\+(${p[v.BUILDIDENTIFIER]}(?:\\.${p[v.BUILDIDENTIFIER]})*))`),A("FULLPLAIN",`v?${p[v.MAINVERSION]}${p[v.PRERELEASE]}?${p[v.BUILD]}?`),A("FULL",`^${p[v.FULLPLAIN]}$`),A("LOOSEPLAIN",`[v=\\s]*${p[v.MAINVERSIONLOOSE]}${p[v.PRERELEASELOOSE]}?${p[v.BUILD]}?`),A("LOOSE",`^${p[v.LOOSEPLAIN]}$`),A("GTLT","((?:<|>)?=?)"),A("XRANGEIDENTIFIERLOOSE",`${p[v.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),A("XRANGEIDENTIFIER",`${p[v.NUMERICIDENTIFIER]}|x|X|\\*`),A("XRANGEPLAIN",`[v=\\s]*(${p[v.XRANGEIDENTIFIER]})(?:\\.(${p[v.XRANGEIDENTIFIER]})(?:\\.(${p[v.XRANGEIDENTIFIER]})(?:${p[v.PRERELEASE]})?${p[v.BUILD]}?)?)?`),A("XRANGEPLAINLOOSE",`[v=\\s]*(${p[v.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[v.XRANGEIDENTIFIERLOOSE]})(?:\\.(${p[v.XRANGEIDENTIFIERLOOSE]})(?:${p[v.PRERELEASELOOSE]})?${p[v.BUILD]}?)?)?`),A("XRANGE",`^${p[v.GTLT]}\\s*${p[v.XRANGEPLAIN]}$`),A("XRANGELOOSE",`^${p[v.GTLT]}\\s*${p[v.XRANGEPLAINLOOSE]}$`),A("COERCE",`(^|[^\\d])(\\d{1,${t}})(?:\\.(\\d{1,${t}}))?(?:\\.(\\d{1,${t}}))?(?:$|[^\\d])`),A("COERCERTL",p[v.COERCE],!0),A("LONETILDE","(?:~>?)"),A("TILDETRIM",`(\\s*)${p[v.LONETILDE]}\\s+`,!0),e.tildeTrimReplace="$1~",A("TILDE",`^${p[v.LONETILDE]}${p[v.XRANGEPLAIN]}$`),A("TILDELOOSE",`^${p[v.LONETILDE]}${p[v.XRANGEPLAINLOOSE]}$`),A("LONECARET","(?:\\^)"),A("CARETTRIM",`(\\s*)${p[v.LONECARET]}\\s+`,!0),e.caretTrimReplace="$1^",A("CARET",`^${p[v.LONECARET]}${p[v.XRANGEPLAIN]}$`),A("CARETLOOSE",`^${p[v.LONECARET]}${p[v.XRANGEPLAINLOOSE]}$`),A("COMPARATORLOOSE",`^${p[v.GTLT]}\\s*(${p[v.LOOSEPLAIN]})$|^$`),A("COMPARATOR",`^${p[v.GTLT]}\\s*(${p[v.FULLPLAIN]})$|^$`),A("COMPARATORTRIM",`(\\s*)${p[v.GTLT]}\\s*(${p[v.LOOSEPLAIN]}|${p[v.XRANGEPLAIN]})`,!0),e.comparatorTrimReplace="$1$2$3",A("HYPHENRANGE",`^\\s*(${p[v.XRANGEPLAIN]})\\s+-\\s+(${p[v.XRANGEPLAIN]})\\s*$`),A("HYPHENRANGELOOSE",`^\\s*(${p[v.XRANGEPLAINLOOSE]})\\s+-\\s+(${p[v.XRANGEPLAINLOOSE]})\\s*$`),A("STAR","(<|>)?=?\\s*\\*"),A("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),A("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(MR,MR.exports);var qy=MR.exports;const BB=Object.freeze({loose:!0}),jB=Object.freeze({});var PR=n=>n?typeof n!="object"?BB:n:jB;const QN=/^[0-9]+$/,XN=(n,e)=>{const t=QN.test(n),r=QN.test(e);return t&&r&&(n=+n,e=+e),n===e?0:t&&!r?-1:r&&!t?1:n<e?-1:1};var JN={compareIdentifiers:XN,rcompareIdentifiers:(n,e)=>XN(e,n)};const Eb=_b,{MAX_LENGTH:ZN,MAX_SAFE_INTEGER:bb}=yb,{safeRe:eM,t:tM}=qy,zB=PR,{compareIdentifiers:Pv}=JN;var Oa=class Nc{constructor(e,t){if(t=zB(t),e instanceof Nc){if(e.loose===!!t.loose&&e.includePrerelease===!!t.includePrerelease)return e;e=e.version}else if(typeof e!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof e}".`);if(e.length>ZN)throw new TypeError(`version is longer than ${ZN} characters`);Eb("SemVer",e,t),this.options=t,this.loose=!!t.loose,this.includePrerelease=!!t.includePrerelease;const r=e.trim().match(t.loose?eM[tM.LOOSE]:eM[tM.FULL]);if(!r)throw new TypeError(`Invalid Version: ${e}`);if(this.raw=e,this.major=+r[1],this.minor=+r[2],this.patch=+r[3],this.major>bb||this.major<0)throw new TypeError("Invalid major version");if(this.minor>bb||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>bb||this.patch<0)throw new TypeError("Invalid patch version");r[4]?this.prerelease=r[4].split(".").map(o=>{if(/^[0-9]+$/.test(o)){const s=+o;if(s>=0&&s<bb)return s}return o}):this.prerelease=[],this.build=r[5]?r[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(e){if(Eb("SemVer.compare",this.version,this.options,e),!(e instanceof Nc)){if(typeof e=="string"&&e===this.version)return 0;e=new Nc(e,this.options)}return e.version===this.version?0:this.compareMain(e)||this.comparePre(e)}compareMain(e){return e instanceof Nc||(e=new Nc(e,this.options)),Pv(this.major,e.major)||Pv(this.minor,e.minor)||Pv(this.patch,e.patch)}comparePre(e){if(e instanceof Nc||(e=new Nc(e,this.options)),this.prerelease.length&&!e.prerelease.length)return-1;if(!this.prerelease.length&&e.prerelease.length)return 1;if(!this.prerelease.length&&!e.prerelease.length)return 0;let t=0;do{const r=this.prerelease[t],o=e.prerelease[t];if(Eb("prerelease compare",t,r,o),r===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(r===void 0)return-1;if(r===o)continue;return Pv(r,o)}while(++t)}compareBuild(e){e instanceof Nc||(e=new Nc(e,this.options));let t=0;do{const r=this.build[t],o=e.build[t];if(Eb("prerelease compare",t,r,o),r===void 0&&o===void 0)return 0;if(o===void 0)return 1;if(r===void 0)return-1;if(r===o)continue;return Pv(r,o)}while(++t)}inc(e,t,r){switch(e){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",t,r);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",t,r);break;case"prepatch":this.prerelease.length=0,this.inc("patch",t,r),this.inc("pre",t,r);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",t,r),this.inc("pre",t,r);break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{const o=Number(r)?1:0;if(!t&&r===!1)throw new Error("invalid increment argument: identifier is empty");if(this.prerelease.length===0)this.prerelease=[o];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(t===this.prerelease.join(".")&&r===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(o)}}if(t){let s=[t,o];r===!1&&(s=[t]),Pv(this.prerelease[0],t)===0?isNaN(this.prerelease[1])&&(this.prerelease=s):this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${e}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};const nM=Oa;var Dv=(n,e,t=!1)=>{if(n instanceof nM)return n;try{return new nM(n,e)}catch(r){if(!t)return null;throw r}};const qB=Dv;var GB=(n,e)=>{const t=qB(n,e);return t?t.version:null};const VB=Dv;var KB=(n,e)=>{const t=VB(n.trim().replace(/^[=v]+/,""),e);return t?t.version:null};const rM=Oa;var WB=(n,e,t,r,o)=>{typeof t=="string"&&(o=r,r=t,t=void 0);try{return new rM(n instanceof rM?n.version:n,t).inc(e,r,o).version}catch{return null}};const iM=Dv;var YB=(n,e)=>{const t=iM(n,null,!0),r=iM(e,null,!0),o=t.compare(r);if(o===0)return null;const s=o>0,u=s?t:r,f=s?r:t,p=!!u.prerelease.length;if(!!f.prerelease.length&&!p)return!f.patch&&!f.minor?"major":u.patch?"patch":u.minor?"minor":"major";const g=p?"pre":"";return t.major!==r.major?g+"major":t.minor!==r.minor?g+"minor":t.patch!==r.patch?g+"patch":"prerelease"};const QB=Oa;var XB=(n,e)=>new QB(n,e).major;const JB=Oa;var ZB=(n,e)=>new JB(n,e).minor;const ej=Oa;var tj=(n,e)=>new ej(n,e).patch;const nj=Dv;var rj=(n,e)=>{const t=nj(n,e);return t&&t.prerelease.length?t.prerelease:null};const oM=Oa;var wl=(n,e,t)=>new oM(n,t).compare(new oM(e,t));const ij=wl;var oj=(n,e,t)=>ij(e,n,t);const aj=wl;var sj=(n,e)=>aj(n,e,!0);const aM=Oa;var DR=(n,e,t)=>{const r=new aM(n,t),o=new aM(e,t);return r.compare(o)||r.compareBuild(o)};const lj=DR;var uj=(n,e)=>n.sort((t,r)=>lj(t,r,e));const cj=DR;var dj=(n,e)=>n.sort((t,r)=>cj(r,t,e));const fj=wl;var Cb=(n,e,t)=>fj(n,e,t)>0;const hj=wl;var LR=(n,e,t)=>hj(n,e,t)<0;const pj=wl;var sM=(n,e,t)=>pj(n,e,t)===0;const vj=wl;var lM=(n,e,t)=>vj(n,e,t)!==0;const mj=wl;var UR=(n,e,t)=>mj(n,e,t)>=0;const gj=wl;var FR=(n,e,t)=>gj(n,e,t)<=0;const yj=sM,_j=lM,Ej=Cb,bj=UR,Cj=LR,wj=FR;var uM=(n,e,t,r)=>{switch(e){case"===":return typeof n=="object"&&(n=n.version),typeof t=="object"&&(t=t.version),n===t;case"!==":return typeof n=="object"&&(n=n.version),typeof t=="object"&&(t=t.version),n!==t;case"":case"=":case"==":return yj(n,t,r);case"!=":return _j(n,t,r);case">":return Ej(n,t,r);case">=":return bj(n,t,r);case"<":return Cj(n,t,r);case"<=":return wj(n,t,r);default:throw new TypeError(`Invalid operator: ${e}`)}};const Sj=Oa,Tj=Dv,{safeRe:wb,t:Sb}=qy;var Rj=(n,e)=>{if(n instanceof Sj)return n;if(typeof n=="number"&&(n=String(n)),typeof n!="string")return null;e=e||{};let t=null;if(!e.rtl)t=n.match(wb[Sb.COERCE]);else{let r;for(;(r=wb[Sb.COERCERTL].exec(n))&&(!t||t.index+t[0].length!==n.length);)(!t||r.index+r[0].length!==t.index+t[0].length)&&(t=r),wb[Sb.COERCERTL].lastIndex=r.index+r[1].length+r[2].length;wb[Sb.COERCERTL].lastIndex=-1}return t===null?null:Tj(`${t[2]}.${t[3]||"0"}.${t[4]||"0"}`,e)},HR,cM;function xj(){return cM||(cM=1,HR=function(n){n.prototype[Symbol.iterator]=function*(){for(let e=this.head;e;e=e.next)yield e.value}}),HR}var Aj=Bn;Bn.Node=Nh,Bn.create=Bn;function Bn(n){var e=this;if(e instanceof Bn||(e=new Bn),e.tail=null,e.head=null,e.length=0,n&&typeof n.forEach=="function")n.forEach(function(o){e.push(o)});else if(arguments.length>0)for(var t=0,r=arguments.length;t<r;t++)e.push(arguments[t]);return e}Bn.prototype.removeNode=function(n){if(n.list!==this)throw new Error("removing node which does not belong to this list");var e=n.next,t=n.prev;return e&&(e.prev=t),t&&(t.next=e),n===this.head&&(this.head=e),n===this.tail&&(this.tail=t),n.list.length--,n.next=null,n.prev=null,n.list=null,e},Bn.prototype.unshiftNode=function(n){if(n!==this.head){n.list&&n.list.removeNode(n);var e=this.head;n.list=this,n.next=e,e&&(e.prev=n),this.head=n,this.tail||(this.tail=n),this.length++}},Bn.prototype.pushNode=function(n){if(n!==this.tail){n.list&&n.list.removeNode(n);var e=this.tail;n.list=this,n.prev=e,e&&(e.next=n),this.tail=n,this.head||(this.head=n),this.length++}},Bn.prototype.push=function(){for(var n=0,e=arguments.length;n<e;n++)Ij(this,arguments[n]);return this.length},Bn.prototype.unshift=function(){for(var n=0,e=arguments.length;n<e;n++)Oj(this,arguments[n]);return this.length},Bn.prototype.pop=function(){if(this.tail){var n=this.tail.value;return this.tail=this.tail.prev,this.tail?this.tail.next=null:this.head=null,this.length--,n}},Bn.prototype.shift=function(){if(this.head){var n=this.head.value;return this.head=this.head.next,this.head?this.head.prev=null:this.tail=null,this.length--,n}},Bn.prototype.forEach=function(n,e){e=e||this;for(var t=this.head,r=0;t!==null;r++)n.call(e,t.value,r,this),t=t.next},Bn.prototype.forEachReverse=function(n,e){e=e||this;for(var t=this.tail,r=this.length-1;t!==null;r--)n.call(e,t.value,r,this),t=t.prev},Bn.prototype.get=function(n){for(var e=0,t=this.head;t!==null&&e<n;e++)t=t.next;if(e===n&&t!==null)return t.value},Bn.prototype.getReverse=function(n){for(var e=0,t=this.tail;t!==null&&e<n;e++)t=t.prev;if(e===n&&t!==null)return t.value},Bn.prototype.map=function(n,e){e=e||this;for(var t=new Bn,r=this.head;r!==null;)t.push(n.call(e,r.value,this)),r=r.next;return t},Bn.prototype.mapReverse=function(n,e){e=e||this;for(var t=new Bn,r=this.tail;r!==null;)t.push(n.call(e,r.value,this)),r=r.prev;return t},Bn.prototype.reduce=function(n,e){var t,r=this.head;if(arguments.length>1)t=e;else if(this.head)r=this.head.next,t=this.head.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=0;r!==null;o++)t=n(t,r.value,o),r=r.next;return t},Bn.prototype.reduceReverse=function(n,e){var t,r=this.tail;if(arguments.length>1)t=e;else if(this.tail)r=this.tail.prev,t=this.tail.value;else throw new TypeError("Reduce of empty list with no initial value");for(var o=this.length-1;r!==null;o--)t=n(t,r.value,o),r=r.prev;return t},Bn.prototype.toArray=function(){for(var n=new Array(this.length),e=0,t=this.head;t!==null;e++)n[e]=t.value,t=t.next;return n},Bn.prototype.toArrayReverse=function(){for(var n=new Array(this.length),e=0,t=this.tail;t!==null;e++)n[e]=t.value,t=t.prev;return n},Bn.prototype.slice=function(n,e){e=e||this.length,e<0&&(e+=this.length),n=n||0,n<0&&(n+=this.length);var t=new Bn;if(e<n||e<0)return t;n<0&&(n=0),e>this.length&&(e=this.length);for(var r=0,o=this.head;o!==null&&r<n;r++)o=o.next;for(;o!==null&&r<e;r++,o=o.next)t.push(o.value);return t},Bn.prototype.sliceReverse=function(n,e){e=e||this.length,e<0&&(e+=this.length),n=n||0,n<0&&(n+=this.length);var t=new Bn;if(e<n||e<0)return t;n<0&&(n=0),e>this.length&&(e=this.length);for(var r=this.length,o=this.tail;o!==null&&r>e;r--)o=o.prev;for(;o!==null&&r>n;r--,o=o.prev)t.push(o.value);return t},Bn.prototype.splice=function(n,e,...t){n>this.length&&(n=this.length-1),n<0&&(n=this.length+n);for(var r=0,o=this.head;o!==null&&r<n;r++)o=o.next;for(var s=[],r=0;o&&r<e;r++)s.push(o.value),o=this.removeNode(o);o===null&&(o=this.tail),o!==this.head&&o!==this.tail&&(o=o.prev);for(var r=0;r<t.length;r++)o=kj(this,o,t[r]);return s},Bn.prototype.reverse=function(){for(var n=this.head,e=this.tail,t=n;t!==null;t=t.prev){var r=t.prev;t.prev=t.next,t.next=r}return this.head=e,this.tail=n,this};function kj(n,e,t){var r=e===n.head?new Nh(t,null,e,n):new Nh(t,e,e.next,n);return r.next===null&&(n.tail=r),r.prev===null&&(n.head=r),n.length++,r}function Ij(n,e){n.tail=new Nh(e,n.tail,null,n),n.head||(n.head=n.tail),n.length++}function Oj(n,e){n.head=new Nh(e,null,n.head,n),n.tail||(n.tail=n.head),n.length++}function Nh(n,e,t,r){if(!(this instanceof Nh))return new Nh(n,e,t,r);this.list=r,this.value=n,e?(e.next=this,this.prev=e):this.prev=null,t?(t.prev=this,this.next=t):this.next=null}try{xj()(Bn)}catch{}const Nj=Aj,Mh=Symbol("max"),Pc=Symbol("length"),Lv=Symbol("lengthCalculator"),Gy=Symbol("allowStale"),Ph=Symbol("maxAge"),Dc=Symbol("dispose"),dM=Symbol("noDisposeOnSet"),bo=Symbol("lruList"),Sl=Symbol("cache"),fM=Symbol("updateAgeOnGet"),$R=()=>1;class Mj{constructor(e){if(typeof e=="number"&&(e={max:e}),e||(e={}),e.max&&(typeof e.max!="number"||e.max<0))throw new TypeError("max must be a non-negative number");this[Mh]=e.max||1/0;const t=e.length||$R;if(this[Lv]=typeof t!="function"?$R:t,this[Gy]=e.stale||!1,e.maxAge&&typeof e.maxAge!="number")throw new TypeError("maxAge must be a number");this[Ph]=e.maxAge||0,this[Dc]=e.dispose,this[dM]=e.noDisposeOnSet||!1,this[fM]=e.updateAgeOnGet||!1,this.reset()}set max(e){if(typeof e!="number"||e<0)throw new TypeError("max must be a non-negative number");this[Mh]=e||1/0,Vy(this)}get max(){return this[Mh]}set allowStale(e){this[Gy]=!!e}get allowStale(){return this[Gy]}set maxAge(e){if(typeof e!="number")throw new TypeError("maxAge must be a non-negative number");this[Ph]=e,Vy(this)}get maxAge(){return this[Ph]}set lengthCalculator(e){typeof e!="function"&&(e=$R),e!==this[Lv]&&(this[Lv]=e,this[Pc]=0,this[bo].forEach(t=>{t.length=this[Lv](t.value,t.key),this[Pc]+=t.length})),Vy(this)}get lengthCalculator(){return this[Lv]}get length(){return this[Pc]}get itemCount(){return this[bo].length}rforEach(e,t){t=t||this;for(let r=this[bo].tail;r!==null;){const o=r.prev;hM(this,e,r,t),r=o}}forEach(e,t){t=t||this;for(let r=this[bo].head;r!==null;){const o=r.next;hM(this,e,r,t),r=o}}keys(){return this[bo].toArray().map(e=>e.key)}values(){return this[bo].toArray().map(e=>e.value)}reset(){this[Dc]&&this[bo]&&this[bo].length&&this[bo].forEach(e=>this[Dc](e.key,e.value)),this[Sl]=new Map,this[bo]=new Nj,this[Pc]=0}dump(){return this[bo].map(e=>Tb(this,e)?!1:{k:e.key,v:e.value,e:e.now+(e.maxAge||0)}).toArray().filter(e=>e)}dumpLru(){return this[bo]}set(e,t,r){if(r=r||this[Ph],r&&typeof r!="number")throw new TypeError("maxAge must be a number");const o=r?Date.now():0,s=this[Lv](t,e);if(this[Sl].has(e)){if(s>this[Mh])return Uv(this,this[Sl].get(e)),!1;const p=this[Sl].get(e).value;return this[Dc]&&(this[dM]||this[Dc](e,p.value)),p.now=o,p.maxAge=r,p.value=t,this[Pc]+=s-p.length,p.length=s,this.get(e),Vy(this),!0}const u=new Pj(e,t,s,o,r);return u.length>this[Mh]?(this[Dc]&&this[Dc](e,t),!1):(this[Pc]+=u.length,this[bo].unshift(u),this[Sl].set(e,this[bo].head),Vy(this),!0)}has(e){if(!this[Sl].has(e))return!1;const t=this[Sl].get(e).value;return!Tb(this,t)}get(e){return BR(this,e,!0)}peek(e){return BR(this,e,!1)}pop(){const e=this[bo].tail;return e?(Uv(this,e),e.value):null}del(e){Uv(this,this[Sl].get(e))}load(e){this.reset();const t=Date.now();for(let r=e.length-1;r>=0;r--){const o=e[r],s=o.e||0;if(s===0)this.set(o.k,o.v);else{const u=s-t;u>0&&this.set(o.k,o.v,u)}}}prune(){this[Sl].forEach((e,t)=>BR(this,t,!1))}}const BR=(n,e,t)=>{const r=n[Sl].get(e);if(r){const o=r.value;if(Tb(n,o)){if(Uv(n,r),!n[Gy])return}else t&&(n[fM]&&(r.value.now=Date.now()),n[bo].unshiftNode(r));return o.value}},Tb=(n,e)=>{if(!e||!e.maxAge&&!n[Ph])return!1;const t=Date.now()-e.now;return e.maxAge?t>e.maxAge:n[Ph]&&t>n[Ph]},Vy=n=>{if(n[Pc]>n[Mh])for(let e=n[bo].tail;n[Pc]>n[Mh]&&e!==null;){const t=e.prev;Uv(n,e),e=t}},Uv=(n,e)=>{if(e){const t=e.value;n[Dc]&&n[Dc](t.key,t.value),n[Pc]-=t.length,n[Sl].delete(t.key),n[bo].removeNode(e)}};class Pj{constructor(e,t,r,o,s){this.key=e,this.value=t,this.length=r,this.now=o,this.maxAge=s||0}}const hM=(n,e,t,r)=>{let o=t.value;Tb(n,o)&&(Uv(n,t),n[Gy]||(o=void 0)),o&&e.call(r,o.value,o.key,n)};var Dj=Mj,jR,pM;function Tl(){if(pM)return jR;pM=1;class n{constructor(ee,ye){if(ye=r(ye),ee instanceof n)return ee.loose===!!ye.loose&&ee.includePrerelease===!!ye.includePrerelease?ee:new n(ee.raw,ye);if(ee instanceof o)return this.raw=ee.value,this.set=[[ee]],this.format(),this;if(this.options=ye,this.loose=!!ye.loose,this.includePrerelease=!!ye.includePrerelease,this.raw=ee.trim().split(/\s+/).join(" "),this.set=this.raw.split("||").map(ve=>this.parseRange(ve.trim())).filter(ve=>ve.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){const ve=this.set[0];if(this.set=this.set.filter(pe=>!A(pe[0])),this.set.length===0)this.set=[ve];else if(this.set.length>1){for(const pe of this.set)if(pe.length===1&&k(pe[0])){this.set=[pe];break}}}this.format()}format(){return this.range=this.set.map(ee=>ee.join(" ").trim()).join("||").trim(),this.range}toString(){return this.range}parseRange(ee){const ve=((this.options.includePrerelease&&w)|(this.options.loose&&S))+":"+ee,pe=t.get(ve);if(pe)return pe;const K=this.options.loose,ge=K?f[p.HYPHENRANGELOOSE]:f[p.HYPHENRANGE];ee=ee.replace(ge,Me(this.options.includePrerelease)),s("hyphen replace",ee),ee=ee.replace(f[p.COMPARATORTRIM],v),s("comparator trim",ee),ee=ee.replace(f[p.TILDETRIM],g),s("tilde trim",ee),ee=ee.replace(f[p.CARETTRIM],E),s("caret trim",ee);let B=ee.split(" ").map(De=>P(De,this.options)).join(" ").split(/\s+/).map(De=>ot(De,this.options));K&&(B=B.filter(De=>(s("loose invalid filter",De,this.options),!!De.match(f[p.COMPARATORLOOSE])))),s("range list",B);const ne=new Map,ke=B.map(De=>new o(De,this.options));for(const De of ke){if(A(De))return[De];ne.set(De.value,De)}ne.size>1&&ne.has("")&&ne.delete("");const ut=[...ne.values()];return t.set(ve,ut),ut}intersects(ee,ye){if(!(ee instanceof n))throw new TypeError("a Range is required");return this.set.some(ve=>M(ve,ye)&&ee.set.some(pe=>M(pe,ye)&&ve.every(K=>pe.every(ge=>K.intersects(ge,ye)))))}test(ee){if(!ee)return!1;if(typeof ee=="string")try{ee=new u(ee,this.options)}catch{return!1}for(let ye=0;ye<this.set.length;ye++)if(je(this.set[ye],ee,this.options))return!0;return!1}}jR=n;const e=Dj,t=new e({max:1e3}),r=PR,o=Rb(),s=_b,u=Oa,{safeRe:f,t:p,comparatorTrimReplace:v,tildeTrimReplace:g,caretTrimReplace:E}=qy,{FLAG_INCLUDE_PRERELEASE:w,FLAG_LOOSE:S}=yb,A=te=>te.value==="<0.0.0-0",k=te=>te.value==="",M=(te,ee)=>{let ye=!0;const ve=te.slice();let pe=ve.pop();for(;ye&&ve.length;)ye=ve.every(K=>pe.intersects(K,ee)),pe=ve.pop();return ye},P=(te,ee)=>(s("comp",te,ee),te=H(te,ee),s("caret",te),te=j(te,ee),s("tildes",te),te=Q(te,ee),s("xrange",te),te=Ve(te,ee),s("stars",te),te),L=te=>!te||te.toLowerCase()==="x"||te==="*",j=(te,ee)=>te.trim().split(/\s+/).map(ye=>U(ye,ee)).join(" "),U=(te,ee)=>{const ye=ee.loose?f[p.TILDELOOSE]:f[p.TILDE];return te.replace(ye,(ve,pe,K,ge,B)=>{s("tilde",te,ve,pe,K,ge,B);let ne;return L(pe)?ne="":L(K)?ne=`>=${pe}.0.0 <${+pe+1}.0.0-0`:L(ge)?ne=`>=${pe}.${K}.0 <${pe}.${+K+1}.0-0`:B?(s("replaceTilde pr",B),ne=`>=${pe}.${K}.${ge}-${B} <${pe}.${+K+1}.0-0`):ne=`>=${pe}.${K}.${ge} <${pe}.${+K+1}.0-0`,s("tilde return",ne),ne})},H=(te,ee)=>te.trim().split(/\s+/).map(ye=>W(ye,ee)).join(" "),W=(te,ee)=>{s("caret",te,ee);const ye=ee.loose?f[p.CARETLOOSE]:f[p.CARET],ve=ee.includePrerelease?"-0":"";return te.replace(ye,(pe,K,ge,B,ne)=>{s("caret",te,pe,K,ge,B,ne);let ke;return L(K)?ke="":L(ge)?ke=`>=${K}.0.0${ve} <${+K+1}.0.0-0`:L(B)?K==="0"?ke=`>=${K}.${ge}.0${ve} <${K}.${+ge+1}.0-0`:ke=`>=${K}.${ge}.0${ve} <${+K+1}.0.0-0`:ne?(s("replaceCaret pr",ne),K==="0"?ge==="0"?ke=`>=${K}.${ge}.${B}-${ne} <${K}.${ge}.${+B+1}-0`:ke=`>=${K}.${ge}.${B}-${ne} <${K}.${+ge+1}.0-0`:ke=`>=${K}.${ge}.${B}-${ne} <${+K+1}.0.0-0`):(s("no pr"),K==="0"?ge==="0"?ke=`>=${K}.${ge}.${B}${ve} <${K}.${ge}.${+B+1}-0`:ke=`>=${K}.${ge}.${B}${ve} <${K}.${+ge+1}.0-0`:ke=`>=${K}.${ge}.${B} <${+K+1}.0.0-0`),s("caret return",ke),ke})},Q=(te,ee)=>(s("replaceXRanges",te,ee),te.split(/\s+/).map(ye=>Te(ye,ee)).join(" ")),Te=(te,ee)=>{te=te.trim();const ye=ee.loose?f[p.XRANGELOOSE]:f[p.XRANGE];return te.replace(ye,(ve,pe,K,ge,B,ne)=>{s("xRange",te,ve,pe,K,ge,B,ne);const ke=L(K),ut=ke||L(ge),De=ut||L(B),At=De;return pe==="="&&At&&(pe=""),ne=ee.includePrerelease?"-0":"",ke?pe===">"||pe==="<"?ve="<0.0.0-0":ve="*":pe&&At?(ut&&(ge=0),B=0,pe===">"?(pe=">=",ut?(K=+K+1,ge=0,B=0):(ge=+ge+1,B=0)):pe==="<="&&(pe="<",ut?K=+K+1:ge=+ge+1),pe==="<"&&(ne="-0"),ve=`${pe+K}.${ge}.${B}${ne}`):ut?ve=`>=${K}.0.0${ne} <${+K+1}.0.0-0`:De&&(ve=`>=${K}.${ge}.0${ne} <${K}.${+ge+1}.0-0`),s("xRange return",ve),ve})},Ve=(te,ee)=>(s("replaceStars",te,ee),te.trim().replace(f[p.STAR],"")),ot=(te,ee)=>(s("replaceGTE0",te,ee),te.trim().replace(f[ee.includePrerelease?p.GTE0PRE:p.GTE0],"")),Me=te=>(ee,ye,ve,pe,K,ge,B,ne,ke,ut,De,At,Lt)=>(L(ve)?ye="":L(pe)?ye=`>=${ve}.0.0${te?"-0":""}`:L(K)?ye=`>=${ve}.${pe}.0${te?"-0":""}`:ge?ye=`>=${ye}`:ye=`>=${ye}${te?"-0":""}`,L(ke)?ne="":L(ut)?ne=`<${+ke+1}.0.0-0`:L(De)?ne=`<${ke}.${+ut+1}.0-0`:At?ne=`<=${ke}.${ut}.${De}-${At}`:te?ne=`<${ke}.${ut}.${+De+1}-0`:ne=`<=${ne}`,`${ye} ${ne}`.trim()),je=(te,ee,ye)=>{for(let ve=0;ve<te.length;ve++)if(!te[ve].test(ee))return!1;if(ee.prerelease.length&&!ye.includePrerelease){for(let ve=0;ve<te.length;ve++)if(s(te[ve].semver),te[ve].semver!==o.ANY&&te[ve].semver.prerelease.length>0){const pe=te[ve].semver;if(pe.major===ee.major&&pe.minor===ee.minor&&pe.patch===ee.patch)return!0}return!1}return!0};return jR}var zR,vM;function Rb(){if(vM)return zR;vM=1;const n=Symbol("SemVer ANY");class e{static get ANY(){return n}constructor(g,E){if(E=t(E),g instanceof e){if(g.loose===!!E.loose)return g;g=g.value}g=g.trim().split(/\s+/).join(" "),u("comparator",g,E),this.options=E,this.loose=!!E.loose,this.parse(g),this.semver===n?this.value="":this.value=this.operator+this.semver.version,u("comp",this)}parse(g){const E=this.options.loose?r[o.COMPARATORLOOSE]:r[o.COMPARATOR],w=g.match(E);if(!w)throw new TypeError(`Invalid comparator: ${g}`);this.operator=w[1]!==void 0?w[1]:"",this.operator==="="&&(this.operator=""),w[2]?this.semver=new f(w[2],this.options.loose):this.semver=n}toString(){return this.value}test(g){if(u("Comparator.test",g,this.options.loose),this.semver===n||g===n)return!0;if(typeof g=="string")try{g=new f(g,this.options)}catch{return!1}return s(g,this.operator,this.semver,this.options)}intersects(g,E){if(!(g instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new p(g.value,E).test(this.value):g.operator===""?g.value===""?!0:new p(this.value,E).test(g.semver):(E=t(E),E.includePrerelease&&(this.value==="<0.0.0-0"||g.value==="<0.0.0-0")||!E.includePrerelease&&(this.value.startsWith("<0.0.0")||g.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&g.operator.startsWith(">")||this.operator.startsWith("<")&&g.operator.startsWith("<")||this.semver.version===g.semver.version&&this.operator.includes("=")&&g.operator.includes("=")||s(this.semver,"<",g.semver,E)&&this.operator.startsWith(">")&&g.operator.startsWith("<")||s(this.semver,">",g.semver,E)&&this.operator.startsWith("<")&&g.operator.startsWith(">")))}}zR=e;const t=PR,{safeRe:r,t:o}=qy,s=uM,u=_b,f=Oa,p=Tl();return zR}const Lj=Tl();var xb=(n,e,t)=>{try{e=new Lj(e,t)}catch{return!1}return e.test(n)};const Uj=Tl();var Fj=(n,e)=>new Uj(n,e).set.map(t=>t.map(r=>r.value).join(" ").trim().split(" "));const Hj=Oa,$j=Tl();var Bj=(n,e,t)=>{let r=null,o=null,s=null;try{s=new $j(e,t)}catch{return null}return n.forEach(u=>{s.test(u)&&(!r||o.compare(u)===-1)&&(r=u,o=new Hj(r,t))}),r};const jj=Oa,zj=Tl();var qj=(n,e,t)=>{let r=null,o=null,s=null;try{s=new zj(e,t)}catch{return null}return n.forEach(u=>{s.test(u)&&(!r||o.compare(u)===1)&&(r=u,o=new jj(r,t))}),r};const qR=Oa,Gj=Tl(),mM=Cb;var Vj=(n,e)=>{n=new Gj(n,e);let t=new qR("0.0.0");if(n.test(t)||(t=new qR("0.0.0-0"),n.test(t)))return t;t=null;for(let r=0;r<n.set.length;++r){const o=n.set[r];let s=null;o.forEach(u=>{const f=new qR(u.semver.version);switch(u.operator){case">":f.prerelease.length===0?f.patch++:f.prerelease.push(0),f.raw=f.format();case"":case">=":(!s||mM(f,s))&&(s=f);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${u.operator}`)}}),s&&(!t||mM(t,s))&&(t=s)}return t&&n.test(t)?t:null};const Kj=Tl();var Wj=(n,e)=>{try{return new Kj(n,e).range||"*"}catch{return null}};const Yj=Oa,gM=Rb(),{ANY:Qj}=gM,Xj=Tl(),Jj=xb,yM=Cb,_M=LR,Zj=FR,ez=UR;var GR=(n,e,t,r)=>{n=new Yj(n,r),e=new Xj(e,r);let o,s,u,f,p;switch(t){case">":o=yM,s=Zj,u=_M,f=">",p=">=";break;case"<":o=_M,s=ez,u=yM,f="<",p="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(Jj(n,e,r))return!1;for(let v=0;v<e.set.length;++v){const g=e.set[v];let E=null,w=null;if(g.forEach(S=>{S.semver===Qj&&(S=new gM(">=0.0.0")),E=E||S,w=w||S,o(S.semver,E.semver,r)?E=S:u(S.semver,w.semver,r)&&(w=S)}),E.operator===f||E.operator===p||(!w.operator||w.operator===f)&&s(n,w.semver))return!1;if(w.operator===p&&u(n,w.semver))return!1}return!0};const tz=GR;var nz=(n,e,t)=>tz(n,e,">",t);const rz=GR;var iz=(n,e,t)=>rz(n,e,"<",t);const EM=Tl();var oz=(n,e,t)=>(n=new EM(n,t),e=new EM(e,t),n.intersects(e,t));const az=xb,sz=wl;var lz=(n,e,t)=>{const r=[];let o=null,s=null;const u=n.sort((g,E)=>sz(g,E,t));for(const g of u)az(g,e,t)?(s=g,o||(o=g)):(s&&r.push([o,s]),s=null,o=null);o&&r.push([o,null]);const f=[];for(const[g,E]of r)g===E?f.push(g):!E&&g===u[0]?f.push("*"):E?g===u[0]?f.push(`<=${E}`):f.push(`${g} - ${E}`):f.push(`>=${g}`);const p=f.join(" || "),v=typeof e.raw=="string"?e.raw:String(e);return p.length<v.length?p:e};const bM=Tl(),VR=Rb(),{ANY:KR}=VR,Ky=xb,WR=wl,uz=(n,e,t={})=>{if(n===e)return!0;n=new bM(n,t),e=new bM(e,t);let r=!1;e:for(const o of n.set){for(const s of e.set){const u=dz(o,s,t);if(r=r||u!==null,u)continue e}if(r)return!1}return!0},cz=[new VR(">=0.0.0-0")],CM=[new VR(">=0.0.0")],dz=(n,e,t)=>{if(n===e)return!0;if(n.length===1&&n[0].semver===KR){if(e.length===1&&e[0].semver===KR)return!0;t.includePrerelease?n=cz:n=CM}if(e.length===1&&e[0].semver===KR){if(t.includePrerelease)return!0;e=CM}const r=new Set;let o,s;for(const S of n)S.operator===">"||S.operator===">="?o=wM(o,S,t):S.operator==="<"||S.operator==="<="?s=SM(s,S,t):r.add(S.semver);if(r.size>1)return null;let u;if(o&&s){if(u=WR(o.semver,s.semver,t),u>0)return null;if(u===0&&(o.operator!==">="||s.operator!=="<="))return null}for(const S of r){if(o&&!Ky(S,String(o),t)||s&&!Ky(S,String(s),t))return null;for(const A of e)if(!Ky(S,String(A),t))return!1;return!0}let f,p,v,g,E=s&&!t.includePrerelease&&s.semver.prerelease.length?s.semver:!1,w=o&&!t.includePrerelease&&o.semver.prerelease.length?o.semver:!1;E&&E.prerelease.length===1&&s.operator==="<"&&E.prerelease[0]===0&&(E=!1);for(const S of e){if(g=g||S.operator===">"||S.operator===">=",v=v||S.operator==="<"||S.operator==="<=",o){if(w&&S.semver.prerelease&&S.semver.prerelease.length&&S.semver.major===w.major&&S.semver.minor===w.minor&&S.semver.patch===w.patch&&(w=!1),S.operator===">"||S.operator===">="){if(f=wM(o,S,t),f===S&&f!==o)return!1}else if(o.operator===">="&&!Ky(o.semver,String(S),t))return!1}if(s){if(E&&S.semver.prerelease&&S.semver.prerelease.length&&S.semver.major===E.major&&S.semver.minor===E.minor&&S.semver.patch===E.patch&&(E=!1),S.operator==="<"||S.operator==="<="){if(p=SM(s,S,t),p===S&&p!==s)return!1}else if(s.operator==="<="&&!Ky(s.semver,String(S),t))return!1}if(!S.operator&&(s||o)&&u!==0)return!1}return!(o&&v&&!s&&u!==0||s&&g&&!o&&u!==0||w||E)},wM=(n,e,t)=>{if(!n)return e;const r=WR(n.semver,e.semver,t);return r>0?n:r<0||e.operator===">"&&n.operator===">="?e:n},SM=(n,e,t)=>{if(!n)return e;const r=WR(n.semver,e.semver,t);return r<0?n:r>0||e.operator==="<"&&n.operator==="<="?e:n};var fz=uz;const YR=qy,TM=yb,hz=Oa,RM=JN,pz=Dv,vz=GB,mz=KB,gz=WB,yz=YB,_z=XB,Ez=ZB,bz=tj,Cz=rj,wz=wl,Sz=oj,Tz=sj,Rz=DR,xz=uj,Az=dj,kz=Cb,Iz=LR,Oz=sM,Nz=lM,Mz=UR,Pz=FR,Dz=uM,Lz=Rj,Uz=Rb(),Fz=Tl();var xM={parse:pz,valid:vz,clean:mz,inc:gz,diff:yz,major:_z,minor:Ez,patch:bz,prerelease:Cz,compare:wz,rcompare:Sz,compareLoose:Tz,compareBuild:Rz,sort:xz,rsort:Az,gt:kz,lt:Iz,eq:Oz,neq:Nz,gte:Mz,lte:Pz,cmp:Dz,coerce:Lz,Comparator:Uz,Range:Fz,satisfies:xb,toComparators:Fj,maxSatisfying:Bj,minSatisfying:qj,minVersion:Vj,validRange:Wj,outside:GR,gtr:nz,ltr:iz,intersects:oz,simplifyRange:lz,subset:fz,SemVer:hz,re:YR.re,src:YR.src,tokens:YR.t,SEMVER_SPEC_VERSION:TM.SEMVER_SPEC_VERSION,RELEASE_TYPES:TM.RELEASE_TYPES,compareIdentifiers:RM.compareIdentifiers,rcompareIdentifiers:RM.rcompareIdentifiers};class Wy extends xM.SemVer{satisfies(e){return xM.satisfies(this,e)}}let Hz=class{constructor(e){this.domain=e,this.level=process.env.NODE_ENV==="development"?3:1}_createMessage(e){return[`%c FUSION FRAMEWORK %c ${this.domain} %c %s`,"background: rgb(179, 13, 47); color: white; padding: 1px;","background: rgb(244, 244, 244); color: rgb(36, 55, 70); padding: 1px;","background: none; color: inherit",...e.reduce((t,r)=>[...t,r,`
235
+ `],[])]}debug(...e){this.level>3&&console.debug(...this._createMessage(e))}info(...e){this.level>2&&console.info(...this._createMessage(e))}warn(...e){this.level>1&&console.warn(...this._createMessage(e))}error(...e){this.level>0&&console.error(...this._createMessage(e))}};class AM extends Hz{formatModuleName(e){return`📦\x1B[1;32m${(typeof e=="string"?e:e.name).replace(/([A-Z])/g," $1").toUpperCase()}\x1B[0m`}}globalThis&&globalThis.__classPrivateFieldSet,globalThis&&globalThis.__classPrivateFieldGet;var QR=function(n,e){return QR=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},QR(n,e)};function ci(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");QR(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Ye=function(){return Ye=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Ye.apply(this,arguments)};function Fv(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(n,r[o])&&(t[r[o]]=n[r[o]]);return t}function $z(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})}function kM(n,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(v){return function(g){return p([v,g])}}function p(v){if(r)throw new TypeError("Generator is already executing.");for(;u&&(u=0,v[0]&&(t=0)),t;)try{if(r=1,o&&(s=v[0]&2?o.return:v[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,v[1])).done)return s;switch(o=0,s&&(v=[v[0]&2,s.value]),v[0]){case 0:case 1:s=v;break;case 4:return t.label++,{value:v[1],done:!1};case 5:t.label++,o=v[1],v=[0];continue;case 7:v=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(v[0]===6||v[0]===2)){t=0;continue}if(v[0]===3&&(!s||v[1]>s[0]&&v[1]<s[3])){t.label=v[1];break}if(v[0]===6&&t.label<s[1]){t.label=s[1],s=v;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(v);break}s[2]&&t.ops.pop(),t.trys.pop();continue}v=e.call(n,t)}catch(g){v=[6,g],o=0}finally{r=s=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}}function Dh(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function gu(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,s=[],u;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(f){u={error:f}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(u)throw u.error}}return s}function gr(n,e,t){if(t||arguments.length===2)for(var r=0,o=e.length,s;r<o;r++)(s||!(r in e))&&(s||(s=Array.prototype.slice.call(e,0,r)),s[r]=e[r]);return n.concat(s||Array.prototype.slice.call(e))}function Hv(n){return this instanceof Hv?(this.v=n,this):new Hv(n)}function Bz(n,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=t.apply(n,e||[]),o,s=[];return o={},u("next"),u("throw"),u("return"),o[Symbol.asyncIterator]=function(){return this},o;function u(w){r[w]&&(o[w]=function(S){return new Promise(function(A,k){s.push([w,S,A,k])>1||f(w,S)})})}function f(w,S){try{p(r[w](S))}catch(A){E(s[0][3],A)}}function p(w){w.value instanceof Hv?Promise.resolve(w.value.v).then(v,g):E(s[0][2],w)}function v(w){f("next",w)}function g(w){f("throw",w)}function E(w,S){w(S),s.shift(),s.length&&f(s[0][0],s[0][1])}}function jz(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=n[Symbol.asyncIterator],t;return e?e.call(n):(n=typeof Dh=="function"?Dh(n):n[Symbol.iterator](),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(s){t[s]=n[s]&&function(u){return new Promise(function(f,p){u=n[s](u),o(f,p,u.done,u.value)})}}function o(s,u,f,p){Promise.resolve(p).then(function(v){s({value:v,done:f})},u)}}typeof SuppressedError=="function"&&SuppressedError;function ni(n){return typeof n=="function"}function Ab(n){var e=function(r){Error.call(r),r.stack=new Error().stack},t=n(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var XR=Ab(function(n){return function(t){n(this),this.message=t?t.length+` errors occurred during unsubscription:
236
+ `+t.map(function(r,o){return o+1+") "+r.toString()}).join(`
237
+ `):"",this.name="UnsubscriptionError",this.errors=t}});function kb(n,e){if(n){var t=n.indexOf(e);0<=t&&n.splice(t,1)}}var Ho=function(){function n(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var e,t,r,o,s;if(!this.closed){this.closed=!0;var u=this._parentage;if(u)if(this._parentage=null,Array.isArray(u))try{for(var f=Dh(u),p=f.next();!p.done;p=f.next()){var v=p.value;v.remove(this)}}catch(k){e={error:k}}finally{try{p&&!p.done&&(t=f.return)&&t.call(f)}finally{if(e)throw e.error}}else u.remove(this);var g=this.initialTeardown;if(ni(g))try{g()}catch(k){s=k instanceof XR?k.errors:[k]}var E=this._finalizers;if(E){this._finalizers=null;try{for(var w=Dh(E),S=w.next();!S.done;S=w.next()){var A=S.value;try{NM(A)}catch(k){s=s??[],k instanceof XR?s=gr(gr([],gu(s)),gu(k.errors)):s.push(k)}}}catch(k){r={error:k}}finally{try{S&&!S.done&&(o=w.return)&&o.call(w)}finally{if(r)throw r.error}}}if(s)throw new XR(s)}},n.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)NM(e);else{if(e instanceof n){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},n.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},n.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},n.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&kb(t,e)},n.prototype.remove=function(e){var t=this._finalizers;t&&kb(t,e),e instanceof n&&e._removeParent(this)},n.EMPTY=function(){var e=new n;return e.closed=!0,e}(),n}(),IM=Ho.EMPTY;function OM(n){return n instanceof Ho||n&&"closed"in n&&ni(n.remove)&&ni(n.add)&&ni(n.unsubscribe)}function NM(n){ni(n)?n():n.unsubscribe()}var MM={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},JR={setTimeout:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var o=JR.delegate;return o!=null&&o.setTimeout?o.setTimeout.apply(o,gr([n,e],gu(t))):setTimeout.apply(void 0,gr([n,e],gu(t)))},clearTimeout:function(n){var e=JR.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(n)},delegate:void 0};function PM(n){JR.setTimeout(function(){throw n})}function Ib(){}function Ob(n){n()}var ZR=function(n){ci(e,n);function e(t){var r=n.call(this)||this;return r.isStopped=!1,t?(r.destination=t,OM(t)&&t.add(r)):r.destination=Vz,r}return e.create=function(t,r,o){return new $v(t,r,o)},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,n.prototype.unsubscribe.call(this),this.destination=null)},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},e.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},e}(Ho),zz=Function.prototype.bind;function e1(n,e){return zz.call(n,e)}var qz=function(){function n(e){this.partialObserver=e}return n.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(r){Nb(r)}},n.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(r){Nb(r)}else Nb(e)},n.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){Nb(t)}},n}(),$v=function(n){ci(e,n);function e(t,r,o){var s=n.call(this)||this,u;if(ni(t)||!t)u={next:t??void 0,error:r??void 0,complete:o??void 0};else{var f;s&&MM.useDeprecatedNextContext?(f=Object.create(t),f.unsubscribe=function(){return s.unsubscribe()},u={next:t.next&&e1(t.next,f),error:t.error&&e1(t.error,f),complete:t.complete&&e1(t.complete,f)}):u=t}return s.destination=new qz(u),s}return e}(ZR);function Nb(n){PM(n)}function Gz(n){throw n}var Vz={closed:!0,next:Ib,error:Gz,complete:Ib},t1=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Lc(n){return n}function Kz(n){return n.length===0?Lc:n.length===1?n[0]:function(t){return n.reduce(function(r,o){return o(r)},t)}}var yn=function(){function n(e){e&&(this._subscribe=e)}return n.prototype.lift=function(e){var t=new n;return t.source=this,t.operator=e,t},n.prototype.subscribe=function(e,t,r){var o=this,s=Yz(e)?e:new $v(e,t,r);return Ob(function(){var u=o,f=u.operator,p=u.source;s.add(f?f.call(s,p):p?o._subscribe(s):o._trySubscribe(s))}),s},n.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},n.prototype.forEach=function(e,t){var r=this;return t=DM(t),new t(function(o,s){var u=new $v({next:function(f){try{e(f)}catch(p){s(p),u.unsubscribe()}},error:s,complete:o});r.subscribe(u)})},n.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},n.prototype[t1]=function(){return this},n.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return Kz(e)(this)},n.prototype.toPromise=function(e){var t=this;return e=DM(e),new e(function(r,o){var s;t.subscribe(function(u){return s=u},function(u){return o(u)},function(){return r(s)})})},n.create=function(e){return new n(e)},n}();function DM(n){var e;return(e=n??MM.Promise)!==null&&e!==void 0?e:Promise}function Wz(n){return n&&ni(n.next)&&ni(n.error)&&ni(n.complete)}function Yz(n){return n&&n instanceof ZR||Wz(n)&&OM(n)}function Qz(n){return ni(n==null?void 0:n.lift)}function di(n){return function(e){if(Qz(e))return e.lift(function(t){try{return n(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function ri(n,e,t,r,o){return new Xz(n,e,t,r,o)}var Xz=function(n){ci(e,n);function e(t,r,o,s,u,f){var p=n.call(this,t)||this;return p.onFinalize=u,p.shouldUnsubscribe=f,p._next=r?function(v){try{r(v)}catch(g){t.error(g)}}:n.prototype._next,p._error=s?function(v){try{s(v)}catch(g){t.error(g)}finally{this.unsubscribe()}}:n.prototype._error,p._complete=o?function(){try{o()}catch(v){t.error(v)}finally{this.unsubscribe()}}:n.prototype._complete,p}return e.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;n.prototype.unsubscribe.call(this),!r&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},e}(ZR),Jz=Ab(function(n){return function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Co=function(n){ci(e,n);function e(){var t=n.call(this)||this;return t.closed=!1,t.currentObservers=null,t.observers=[],t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return e.prototype.lift=function(t){var r=new LM(this,this);return r.operator=t,r},e.prototype._throwIfClosed=function(){if(this.closed)throw new Jz},e.prototype.next=function(t){var r=this;Ob(function(){var o,s;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var u=Dh(r.currentObservers),f=u.next();!f.done;f=u.next()){var p=f.value;p.next(t)}}catch(v){o={error:v}}finally{try{f&&!f.done&&(s=u.return)&&s.call(u)}finally{if(o)throw o.error}}}})},e.prototype.error=function(t){var r=this;Ob(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=t;for(var o=r.observers;o.length;)o.shift().error(t)}})},e.prototype.complete=function(){var t=this;Ob(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var r=t.observers;r.length;)r.shift().complete()}})},e.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(e.prototype,"observed",{get:function(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0},enumerable:!1,configurable:!0}),e.prototype._trySubscribe=function(t){return this._throwIfClosed(),n.prototype._trySubscribe.call(this,t)},e.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},e.prototype._innerSubscribe=function(t){var r=this,o=this,s=o.hasError,u=o.isStopped,f=o.observers;return s||u?IM:(this.currentObservers=null,f.push(t),new Ho(function(){r.currentObservers=null,kb(f,t)}))},e.prototype._checkFinalizedStatuses=function(t){var r=this,o=r.hasError,s=r.thrownError,u=r.isStopped;o?t.error(s):u&&t.complete()},e.prototype.asObservable=function(){var t=new yn;return t.source=this,t},e.create=function(t,r){return new LM(t,r)},e}(yn),LM=function(n){ci(e,n);function e(t,r){var o=n.call(this)||this;return o.destination=t,o.source=r,o}return e.prototype.next=function(t){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.next)===null||o===void 0||o.call(r,t)},e.prototype.error=function(t){var r,o;(o=(r=this.destination)===null||r===void 0?void 0:r.error)===null||o===void 0||o.call(r,t)},e.prototype.complete=function(){var t,r;(r=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||r===void 0||r.call(t)},e.prototype._subscribe=function(t){var r,o;return(o=(r=this.source)===null||r===void 0?void 0:r.subscribe(t))!==null&&o!==void 0?o:IM},e}(Co),Yy=function(n){ci(e,n);function e(t){var r=n.call(this)||this;return r._value=t,r}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(t){var r=n.prototype._subscribe.call(this,t);return!r.closed&&t.next(this._value),r},e.prototype.getValue=function(){var t=this,r=t.hasError,o=t.thrownError,s=t._value;if(r)throw o;return this._throwIfClosed(),s},e.prototype.next=function(t){n.prototype.next.call(this,this._value=t)},e}(Co),n1={now:function(){return(n1.delegate||Date).now()},delegate:void 0},Mb=function(n){ci(e,n);function e(t,r,o){t===void 0&&(t=1/0),r===void 0&&(r=1/0),o===void 0&&(o=n1);var s=n.call(this)||this;return s._bufferSize=t,s._windowTime=r,s._timestampProvider=o,s._buffer=[],s._infiniteTimeWindow=!0,s._infiniteTimeWindow=r===1/0,s._bufferSize=Math.max(1,t),s._windowTime=Math.max(1,r),s}return e.prototype.next=function(t){var r=this,o=r.isStopped,s=r._buffer,u=r._infiniteTimeWindow,f=r._timestampProvider,p=r._windowTime;o||(s.push(t),!u&&s.push(f.now()+p)),this._trimBuffer(),n.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var r=this._innerSubscribe(t),o=this,s=o._infiniteTimeWindow,u=o._buffer,f=u.slice(),p=0;p<f.length&&!t.closed;p+=s?1:2)t.next(f[p]);return this._checkFinalizedStatuses(t),r},e.prototype._trimBuffer=function(){var t=this,r=t._bufferSize,o=t._timestampProvider,s=t._buffer,u=t._infiniteTimeWindow,f=(u?1:2)*r;if(r<1/0&&f<s.length&&s.splice(0,s.length-f),!u){for(var p=o.now(),v=0,g=1;g<s.length&&s[g]<=p;g+=2)v=g;v&&s.splice(0,v+1)}},e}(Co),Zz=function(n){ci(e,n);function e(t,r){return n.call(this)||this}return e.prototype.schedule=function(t,r){return this},e}(Ho),Pb={setInterval:function(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var o=Pb.delegate;return o!=null&&o.setInterval?o.setInterval.apply(o,gr([n,e],gu(t))):setInterval.apply(void 0,gr([n,e],gu(t)))},clearInterval:function(n){var e=Pb.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(n)},delegate:void 0},e5=function(n){ci(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.scheduler=t,o.work=r,o.pending=!1,o}return e.prototype.schedule=function(t,r){var o;if(r===void 0&&(r=0),this.closed)return this;this.state=t;var s=this.id,u=this.scheduler;return s!=null&&(this.id=this.recycleAsyncId(u,s,r)),this.pending=!0,this.delay=r,this.id=(o=this.id)!==null&&o!==void 0?o:this.requestAsyncId(u,this.id,r),this},e.prototype.requestAsyncId=function(t,r,o){return o===void 0&&(o=0),Pb.setInterval(t.flush.bind(t,this),o)},e.prototype.recycleAsyncId=function(t,r,o){if(o===void 0&&(o=0),o!=null&&this.delay===o&&this.pending===!1)return r;r!=null&&Pb.clearInterval(r)},e.prototype.execute=function(t,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var o=this._execute(t,r);if(o)return o;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,r){var o=!1,s;try{this.work(t)}catch(u){o=!0,s=u||new Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),s},e.prototype.unsubscribe=function(){if(!this.closed){var t=this,r=t.id,o=t.scheduler,s=o.actions;this.work=this.state=this.scheduler=null,this.pending=!1,kb(s,this),r!=null&&(this.id=this.recycleAsyncId(o,r,null)),this.delay=null,n.prototype.unsubscribe.call(this)}},e}(Zz),UM=function(){function n(e,t){t===void 0&&(t=n.now),this.schedulerActionCtor=e,this.now=t}return n.prototype.schedule=function(e,t,r){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(r,t)},n.now=n1.now,n}(),t5=function(n){ci(e,n);function e(t,r){r===void 0&&(r=UM.now);var o=n.call(this,t,r)||this;return o.actions=[],o._active=!1,o}return e.prototype.flush=function(t){var r=this.actions;if(this._active){r.push(t);return}var o;this._active=!0;do if(o=t.execute(t.state,t.delay))break;while(t=r.shift());if(this._active=!1,o){for(;t=r.shift();)t.unsubscribe();throw o}},e}(UM),Db=new t5(e5),n5=Db,$i=new yn(function(n){return n.complete()});function FM(n){return n&&ni(n.schedule)}function HM(n){return n[n.length-1]}function $M(n){return ni(HM(n))?n.pop():void 0}function r1(n){return FM(HM(n))?n.pop():void 0}var BM=function(n){return n&&typeof n.length=="number"&&typeof n!="function"};function jM(n){return ni(n==null?void 0:n.then)}function zM(n){return ni(n[t1])}function qM(n){return Symbol.asyncIterator&&ni(n==null?void 0:n[Symbol.asyncIterator])}function GM(n){return new TypeError("You provided "+(n!==null&&typeof n=="object"?"an invalid object":"'"+n+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function r5(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var VM=r5();function KM(n){return ni(n==null?void 0:n[VM])}function WM(n){return Bz(this,arguments,function(){var t,r,o,s;return kM(this,function(u){switch(u.label){case 0:t=n.getReader(),u.label=1;case 1:u.trys.push([1,,9,10]),u.label=2;case 2:return[4,Hv(t.read())];case 3:return r=u.sent(),o=r.value,s=r.done,s?[4,Hv(void 0)]:[3,5];case 4:return[2,u.sent()];case 5:return[4,Hv(o)];case 6:return[4,u.sent()];case 7:return u.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function YM(n){return ni(n==null?void 0:n.getReader)}function ws(n){if(n instanceof yn)return n;if(n!=null){if(zM(n))return i5(n);if(BM(n))return o5(n);if(jM(n))return a5(n);if(qM(n))return QM(n);if(KM(n))return s5(n);if(YM(n))return l5(n)}throw GM(n)}function i5(n){return new yn(function(e){var t=n[t1]();if(ni(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function o5(n){return new yn(function(e){for(var t=0;t<n.length&&!e.closed;t++)e.next(n[t]);e.complete()})}function a5(n){return new yn(function(e){n.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,PM)})}function s5(n){return new yn(function(e){var t,r;try{for(var o=Dh(n),s=o.next();!s.done;s=o.next()){var u=s.value;if(e.next(u),e.closed)return}}catch(f){t={error:f}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(t)throw t.error}}e.complete()})}function QM(n){return new yn(function(e){u5(n,e).catch(function(t){return e.error(t)})})}function l5(n){return QM(WM(n))}function u5(n,e){var t,r,o,s;return $z(this,void 0,void 0,function(){var u,f;return kM(this,function(p){switch(p.label){case 0:p.trys.push([0,5,6,11]),t=jz(n),p.label=1;case 1:return[4,t.next()];case 2:if(r=p.sent(),!!r.done)return[3,4];if(u=r.value,e.next(u),e.closed)return[2];p.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return f=p.sent(),o={error:f},[3,11];case 6:return p.trys.push([6,,9,10]),r&&!r.done&&(s=t.return)?[4,s.call(t)]:[3,8];case 7:p.sent(),p.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function yu(n,e,t,r,o){r===void 0&&(r=0),o===void 0&&(o=!1);var s=e.schedule(function(){t(),o?n.add(this.schedule(null,r)):this.unsubscribe()},r);if(n.add(s),!o)return s}function Lb(n,e){return e===void 0&&(e=0),di(function(t,r){t.subscribe(ri(r,function(o){return yu(r,n,function(){return r.next(o)},e)},function(){return yu(r,n,function(){return r.complete()},e)},function(o){return yu(r,n,function(){return r.error(o)},e)}))})}function XM(n,e){return e===void 0&&(e=0),di(function(t,r){r.add(n.schedule(function(){return t.subscribe(r)},e))})}function c5(n,e){return ws(n).pipe(XM(e),Lb(e))}function d5(n,e){return ws(n).pipe(XM(e),Lb(e))}function f5(n,e){return new yn(function(t){var r=0;return e.schedule(function(){r===n.length?t.complete():(t.next(n[r++]),t.closed||this.schedule())})})}function h5(n,e){return new yn(function(t){var r;return yu(t,e,function(){r=n[VM](),yu(t,e,function(){var o,s,u;try{o=r.next(),s=o.value,u=o.done}catch(f){t.error(f);return}u?t.complete():t.next(s)},0,!0)}),function(){return ni(r==null?void 0:r.return)&&r.return()}})}function JM(n,e){if(!n)throw new Error("Iterable cannot be null");return new yn(function(t){yu(t,e,function(){var r=n[Symbol.asyncIterator]();yu(t,e,function(){r.next().then(function(o){o.done?t.complete():t.next(o.value)})},0,!0)})})}function p5(n,e){return JM(WM(n),e)}function v5(n,e){if(n!=null){if(zM(n))return c5(n,e);if(BM(n))return f5(n,e);if(jM(n))return d5(n,e);if(qM(n))return JM(n,e);if(KM(n))return h5(n,e);if(YM(n))return p5(n,e)}throw GM(n)}function qr(n,e){return e?v5(n,e):ws(n)}function Ss(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=r1(n);return qr(n,t)}function ZM(n,e){var t=ni(n)?n:function(){return n},r=function(o){return o.error(t())};return new yn(e?function(o){return e.schedule(r,0,o)}:r)}var Qy=Ab(function(n){return function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}});function oa(n,e){var t=typeof e=="object";return new Promise(function(r,o){var s=!1,u;n.subscribe({next:function(f){u=f,s=!0},error:o,complete:function(){s?r(u):t?r(e.defaultValue):o(new Qy)}})})}function $o(n,e){var t=typeof e=="object";return new Promise(function(r,o){var s=new $v({next:function(u){r(u),s.unsubscribe()},error:o,complete:function(){t?r(e.defaultValue):o(new Qy)}});n.subscribe(s)})}function eP(n){return n instanceof Date&&!isNaN(n)}var m5=Ab(function(n){return function(t){t===void 0&&(t=null),n(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function g5(n,e){var t=eP(n)?{first:n}:typeof n=="number"?{each:n}:n,r=t.first,o=t.each,s=t.with,u=s===void 0?y5:s,f=t.scheduler,p=f===void 0?e??Db:f,v=t.meta,g=v===void 0?null:v;if(r==null&&o==null)throw new TypeError("No timeout provided.");return di(function(E,w){var S,A,k=null,M=0,P=function(L){A=yu(w,p,function(){try{S.unsubscribe(),ws(u({meta:g,lastValue:k,seen:M})).subscribe(w)}catch(j){w.error(j)}},L)};S=E.subscribe(ri(w,function(L){A==null||A.unsubscribe(),M++,w.next(k=L),o>0&&P(o)},void 0,void 0,function(){A!=null&&A.closed||A==null||A.unsubscribe(),k=null})),!M&&P(r!=null?typeof r=="number"?r:+r-p.now():o)})}function y5(n){throw new m5(n)}function pn(n,e){return di(function(t,r){var o=0;t.subscribe(ri(r,function(s){r.next(n.call(e,s,o++))}))})}var _5=Array.isArray;function E5(n,e){return _5(e)?n.apply(void 0,gr([],gu(e))):n(e)}function b5(n){return pn(function(e){return E5(n,e)})}var C5=Array.isArray,w5=Object.getPrototypeOf,S5=Object.prototype,T5=Object.keys;function R5(n){if(n.length===1){var e=n[0];if(C5(e))return{args:e,keys:null};if(x5(e)){var t=T5(e);return{args:t.map(function(r){return e[r]}),keys:t}}}return{args:n,keys:null}}function x5(n){return n&&typeof n=="object"&&w5(n)===S5}function A5(n,e){return n.reduce(function(t,r,o){return t[r]=e[o],t},{})}function k5(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=r1(n),r=$M(n),o=R5(n),s=o.args,u=o.keys;if(s.length===0)return qr([],t);var f=new yn(I5(s,t,u?function(p){return A5(u,p)}:Lc));return r?f.pipe(b5(r)):f}function I5(n,e,t){return t===void 0&&(t=Lc),function(r){tP(e,function(){for(var o=n.length,s=new Array(o),u=o,f=o,p=function(g){tP(e,function(){var E=qr(n[g],e),w=!1;E.subscribe(ri(r,function(S){s[g]=S,w||(w=!0,f--),f||r.next(t(s.slice()))},function(){--u||r.complete()}))},r)},v=0;v<o;v++)p(v)},r)}}function tP(n,e,t){n?yu(t,n,e):e()}function nP(n,e,t,r,o,s,u,f){var p=[],v=0,g=0,E=!1,w=function(){E&&!p.length&&!v&&e.complete()},S=function(k){return v<r?A(k):p.push(k)},A=function(k){s&&e.next(k),v++;var M=!1;ws(t(k,g++)).subscribe(ri(e,function(P){o==null||o(P),s?S(P):e.next(P)},function(){M=!0},void 0,function(){if(M)try{v--;for(var P=function(){var L=p.shift();u?yu(e,u,function(){return A(L)}):A(L)};p.length&&v<r;)P();w()}catch(L){e.error(L)}}))};return n.subscribe(ri(e,S,function(){E=!0,w()})),function(){f==null||f()}}function Ya(n,e,t){return t===void 0&&(t=1/0),ni(e)?Ya(function(r,o){return pn(function(s,u){return e(r,s,o,u)})(ws(n(r,o)))},t):(typeof e=="number"&&(t=e),di(function(r,o){return nP(r,o,n,t)}))}function O5(n){return n===void 0&&(n=1/0),Ya(Lc,n)}function N5(){return O5(1)}function i1(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return N5()(qr(n,r1(n)))}function o1(n,e,t){n===void 0&&(n=0),t===void 0&&(t=n5);var r=-1;return e!=null&&(FM(e)?t=e:r=e),new yn(function(o){var s=eP(n)?+n-t.now():n;s<0&&(s=0);var u=0;return t.schedule(function(){o.closed||(o.next(u++),0<=r?this.schedule(void 0,r):o.complete())},s)})}function ln(n,e){return di(function(t,r){var o=0;t.subscribe(ri(r,function(s){return n.call(e,s,o++)&&r.next(s)}))})}function Mr(n){return di(function(e,t){var r=null,o=!1,s;r=e.subscribe(ri(t,void 0,void 0,function(u){s=ws(n(u,Mr(n)(e))),r?(r.unsubscribe(),r=null,s.subscribe(t)):o=!0})),o&&(r.unsubscribe(),r=null,s.subscribe(t))})}function M5(n,e,t,r,o){return function(s,u){var f=t,p=e,v=0;s.subscribe(ri(u,function(g){var E=v++;p=f?n(p,g,E):(f=!0,g),r&&u.next(p)},o&&function(){f&&u.next(p),u.complete()}))}}function a1(n,e){return ni(e)?Ya(n,e,1):Ya(n,1)}function rP(n){return di(function(e,t){var r=!1;e.subscribe(ri(t,function(o){r=!0,t.next(o)},function(){r||t.next(n),t.complete()}))})}function P5(n){return n<=0?function(){return $i}:di(function(e,t){var r=0;e.subscribe(ri(t,function(o){++r<=n&&(t.next(o),n<=r&&t.complete())}))})}function iP(n,e){return e===void 0&&(e=Lc),n=n??D5,di(function(t,r){var o,s=!0;t.subscribe(ri(r,function(u){var f=e(u);(s||!n(o,f))&&(s=!1,o=f,r.next(u))}))})}function D5(n,e){return n===e}function oP(n){return n===void 0&&(n=L5),di(function(e,t){var r=!1;e.subscribe(ri(t,function(o){r=!0,t.next(o)},function(){return r?t.complete():t.error(n())}))})}function L5(){return new Qy}function Xy(n){return di(function(e,t){try{e.subscribe(t)}finally{t.add(n)}})}function U5(n,e){var t=arguments.length>=2;return function(r){return r.pipe(n?ln(function(o,s){return n(o,s,r)}):Lc,P5(1),t?rP(e):oP(function(){return new Qy}))}}function F5(n){return n<=0?function(){return $i}:di(function(e,t){var r=[];e.subscribe(ri(t,function(o){r.push(o),n<r.length&&r.shift()},function(){var o,s;try{for(var u=Dh(r),f=u.next();!f.done;f=u.next()){var p=f.value;t.next(p)}}catch(v){o={error:v}}finally{try{f&&!f.done&&(s=u.return)&&s.call(u)}finally{if(o)throw o.error}}t.complete()},void 0,function(){r=null}))})}function s1(n,e){var t=arguments.length>=2;return function(r){return r.pipe(n?ln(function(o,s){return n(o,s,r)}):Lc,F5(1),t?rP(e):oP(function(){return new Qy}))}}function H5(n,e,t){return t===void 0&&(t=1/0),di(function(r,o){var s=e;return nP(r,o,function(u,f){return n(s,u,f)},t,function(u){s=u},!1,void 0,function(){return s=null})})}function l1(){return di(function(n,e){var t,r=!1;n.subscribe(ri(e,function(o){var s=t;t=o,r&&e.next([s,o]),r=!0}))})}function aP(n,e){return di(M5(n,e,arguments.length>=2,!0))}function u1(n){n===void 0&&(n={});var e=n.connector,t=e===void 0?function(){return new Co}:e,r=n.resetOnError,o=r===void 0?!0:r,s=n.resetOnComplete,u=s===void 0?!0:s,f=n.resetOnRefCountZero,p=f===void 0?!0:f;return function(v){var g,E,w,S=0,A=!1,k=!1,M=function(){E==null||E.unsubscribe(),E=void 0},P=function(){M(),g=w=void 0,A=k=!1},L=function(){var j=g;P(),j==null||j.unsubscribe()};return di(function(j,U){S++,!k&&!A&&M();var H=w=w??t();U.add(function(){S--,S===0&&!k&&!A&&(E=c1(L,p))}),H.subscribe(U),!g&&S>0&&(g=new $v({next:function(W){return H.next(W)},error:function(W){k=!0,M(),E=c1(P,o,W),H.error(W)},complete:function(){A=!0,M(),E=c1(P,u),H.complete()}}),ws(j).subscribe(g))})(v)}}function c1(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];if(e===!0){n();return}if(e!==!1){var o=new $v({next:function(){o.unsubscribe(),n()}});return ws(e.apply(void 0,gr([],gu(t)))).subscribe(o)}}function d1(n,e,t){var r,o,s,u,f=!1;return n&&typeof n=="object"?(r=n.bufferSize,u=r===void 0?1/0:r,o=n.windowTime,e=o===void 0?1/0:o,s=n.refCount,f=s===void 0?!1:s,t=n.scheduler):u=n??1/0,u1({connector:function(){return new Mb(u,e,t)},resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:f})}function $5(n){return ln(function(e,t){return n<=t})}function ii(n,e){return di(function(t,r){var o=null,s=0,u=!1,f=function(){return u&&!o&&r.complete()};t.subscribe(ri(r,function(p){o==null||o.unsubscribe();var v=0,g=s++;ws(n(p,g)).subscribe(o=ri(r,function(E){return r.next(e?e(p,E,g,v++):E)},function(){o=null,f()}))},function(){u=!0,f()}))})}function sP(n){return di(function(e,t){ws(n).subscribe(ri(t,function(){return t.complete()},Ib)),!t.closed&&e.subscribe(t)})}function Ub(n,e){return e===void 0&&(e=!1),di(function(t,r){var o=0;t.subscribe(ri(r,function(s){var u=n(s,o++);(u||e)&&r.next(s),!u&&r.complete()}))})}function Bv(n,e,t){var r=ni(n)||e||t?{next:n,error:e,complete:t}:n;return r?di(function(o,s){var u;(u=r.subscribe)===null||u===void 0||u.call(r);var f=!0;o.subscribe(ri(s,function(p){var v;(v=r.next)===null||v===void 0||v.call(r,p),s.next(p)},function(){var p;f=!1,(p=r.complete)===null||p===void 0||p.call(r),s.complete()},function(p){var v;f=!1,(v=r.error)===null||v===void 0||v.call(r,p),s.error(p)},function(){var p,v;f&&((p=r.unsubscribe)===null||p===void 0||p.call(r)),(v=r.finalize)===null||v===void 0||v.call(r)}))}):Lc}function jv(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var t=$M(n);return di(function(r,o){for(var s=n.length,u=new Array(s),f=n.map(function(){return!1}),p=!1,v=function(E){ws(n[E]).subscribe(ri(o,function(w){u[E]=w,!p&&!f[E]&&(f[E]=!0,(p=f.every(Lc))&&(f=null))},Ib))},g=0;g<s;g++)v(g);r.subscribe(ri(o,function(E){if(p){var w=gr([E],gu(u));o.next(t?t.apply(void 0,gr([],gu(w))):w)}}))})}globalThis&&globalThis.__awaiter,globalThis&&globalThis.__classPrivateFieldGet;var Fb=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},lP=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!o:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(n,t):o?o.value=t:e.set(n,t),t},Hb,zv;class uP{get version(){return Fb(this,Hb,"f")}constructor(e){Hb.set(this,void 0),zv.set(this,void 0);const{version:t}=e;lP(this,Hb,new Wy(t),"f"),lP(this,zv,new Ho,"f")}_addTeardown(e){return Fb(this,zv,"f").add(e),()=>Fb(this,zv,"f").remove(e)}dispose(){Fb(this,zv,"f").unsubscribe()}}Hb=new WeakMap,zv=new WeakMap;var Uc=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})};class B5 extends Error{constructor(){super("It was too slow"),this.name="RequiredModuleTimeoutError"}}class j5{constructor(e){this.logger=new AM("ModulesConfigurator"),this._configs=[],this._afterConfiguration=[],this._afterInit=[],this._modules=new Set(e)}get modules(){return[...this._modules]}configure(...e){e.forEach(t=>this.addConfig(t))}addConfig(e){const{module:t,afterConfig:r,afterInit:o,configure:s}=e;this._modules.add(t),s&&this._configs.push((u,f)=>s(u[t.name],f)),r&&this._afterConfiguration.push(u=>r(u[t.name])),o&&this._afterInit.push(u=>o(u[t.name]))}onConfigured(e){this._afterConfiguration.push(e)}onInitialized(e){this._afterInit.push(e)}initialize(e){return Uc(this,void 0,void 0,function*(){const t=yield this._configure(e),r=yield this._initialize(t,e);return yield this._postInitialize(r,e),Object.seal(Object.assign({},r,{dispose:()=>this.dispose(r)}))})}_configure(e){return Uc(this,void 0,void 0,function*(){const t=yield this._createConfig(e);return yield Promise.all(this._configs.map(r=>Promise.resolve(r(t,e)))),yield this._postConfigure(t),t})}_createConfig(e){const{modules:t,logger:r,_afterConfiguration:o,_afterInit:s}=this,u=qr(t).pipe(Ya(f=>Uc(this,void 0,void 0,function*(){var p;r.debug(`🛠 creating configurator ${r.formatModuleName(f)}`);try{const v=yield(p=f.configure)===null||p===void 0?void 0:p.call(f,e);return r.debug(`🛠 created configurator for ${r.formatModuleName(f)}`,v),{[f.name]:v}}catch(v){throw r.error(`🛠 Failed to created configurator for ${r.formatModuleName(f)}`,v),v}})),aP((f,p)=>Object.assign(f,p),{onAfterConfiguration(f){o.push(f)},onAfterInit(f){s.push(f)}}));return oa(u)}_postConfigure(e){return Uc(this,void 0,void 0,function*(){const{modules:t,logger:r,_afterConfiguration:o}=this;if(yield Promise.allSettled(t.filter(s=>!!s.postConfigure).map(s=>Uc(this,void 0,void 0,function*(){var u;try{yield(u=s.postConfigure)===null||u===void 0?void 0:u.call(s,e),r.debug(`🏗📌 post configured ${r.formatModuleName(s)}`,s)}catch{r.warn(`🏗📌 post configure failed ${r.formatModuleName(s)}`)}}))),o.length)try{r.debug(`🏗📌 post configure hooks [${o.length}]`),yield Promise.allSettled(o.map(s=>Promise.resolve(s(e)))),r.debug("🏗📌 post configure hooks complete")}catch(s){r.warn("🏗📌 post configure hook failed",s)}})}_initialize(e,t){return Uc(this,void 0,void 0,function*(){const{modules:r,logger:o}=this,s=r.map(g=>g.name),u=new Yy({}),f=g=>s.includes(g),p=(g,E=60)=>{if(!s.includes(g))throw o.error(`🚀⌛️ Cannot not require ${o.formatModuleName(String(g))} since module is not defined!`),Error(`cannot not require [${String(g)}] since module is not defined!`);return u.value[g]?(o.debug(`🚀⌛️ ${o.formatModuleName(String(g))} is initiated, skipping queue`),Promise.resolve(u.value[g])):(o.debug(`🚀⌛️ Awaiting init ${o.formatModuleName(String(g))}, timeout ${E}s`),$o(u.pipe(ln(w=>!!w[g]),pn(w=>w[g]),g5({each:E*1e3,with:()=>ZM(()=>new B5)}))))};qr(r).pipe(Ya(g=>{const E=g.name;return o.debug(`🚀 initializing ${o.formatModuleName(g)}`),qr(Promise.resolve(g.initialize({ref:t,config:e[E],requireInstance:p,hasModule:f}))).pipe(pn(w=>{var S;if(!(w instanceof uP)&&!(w.version instanceof Wy)){o.debug("🤷 module does not extends the [BaseModuleProvider] or exposes [SemanticVersion]");try{w.version=g.version instanceof Wy?g.version:new Wy((S=g.version)!==null&&S!==void 0?S:"0.0.0-unknown")}catch{o.error("🚨 failed to set module version")}}return o.debug(`🚀 initialized ${o.formatModuleName(g)}`),[E,w]}))})).subscribe({next:([g,E])=>{u.next(Object.assign(u.value,{[g]:E}))},complete:()=>u.complete()});const v=yield oa(u);return Object.seal(v),v})}_postInitialize(e,t){return Uc(this,void 0,void 0,function*(){const{modules:r,logger:o,_afterInit:s}=this,u=qr(r).pipe(ln(f=>!!f.postInitialize),Bv(f=>o.debug(`🚀📌 post initializing moule ${o.formatModuleName(f)}`)),Ya(f=>qr(f.postInitialize({ref:t,modules:e,instance:e[f.name]})).pipe(Bv(()=>{o.debug(`🚀📌 post initialized moule ${o.formatModuleName(f)}`)}),Mr(p=>(o.warn(`🚀📌 post initialize failed moule ${o.formatModuleName(f)}`,p),$i)))));if(yield oa(u),s.length)try{o.debug(`🚀📌 post configure hooks [${s.length}]`),yield Promise.allSettled(s.map(f=>Promise.resolve(f(e)))),o.debug("🚀📌 post configure hooks complete")}catch(f){o.warn("🚀📌 post configure hook failed",f)}o.debug(`🎉 Modules initialized ${r.map(o.formatModuleName)}`,e),o.info("🟢 Modules initialized")})}dispose(e,t){return Uc(this,void 0,void 0,function*(){const{modules:r}=this;yield Promise.allSettled(r.filter(o=>!!o.dispose).map(o=>Uc(this,void 0,void 0,function*(){var s;yield(s=o.dispose)===null||s===void 0?void 0:s.call(o,{ref:t,modules:e,instance:e[o.name]})})))})}}var qv=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!o:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(n,t):o?o.value=t:e.set(n,t),t},Lh=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},$b,Bb,Jy,jb,Zy,f1;class z5{constructor(e,t){this.__type=e,$b.set(this,void 0),Bb.set(this,void 0),Jy.set(this,!1),jb.set(this,void 0),Zy.set(this,void 0),f1.set(this,Date.now()),qv(this,$b,t.detail,"f"),qv(this,Bb,t.source,"f"),qv(this,jb,!!t.cancelable,"f"),qv(this,Zy,t.canBubble===void 0?!0:t.canBubble,"f")}get bubbles(){return Lh(this,Zy,"f")&&!Lh(this,Jy,"f")}get created(){return Lh(this,f1,"f")}get cancelable(){return Lh(this,jb,"f")}get canceled(){return Lh(this,Jy,"f")}get detail(){return Lh(this,$b,"f")}get source(){return Lh(this,Bb,"f")}get type(){return this.__type}preventDefault(){this.cancelable&&qv(this,Jy,!0,"f")}stopPropagation(){qv(this,Zy,!1,"f")}}$b=new WeakMap,Bb=new WeakMap,Jy=new WeakMap,jb=new WeakMap,Zy=new WeakMap,f1=new WeakMap;var q5=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})};class G5{constructor({onDispatch:e,onBubble:t}){this.__onDispatch=e,this.__onBubble=t}dispatch(e,t){var r,o;return q5(this,void 0,void 0,function*(){try{yield(r=this.__onDispatch)===null||r===void 0?void 0:r.call(this,e)}catch(u){throw u}const s=e;if(!s.dispatcher)s.dispatcher=this;else if(s.dispatcher===this)throw Error("loop detected");for(const u of t)e.cancelable?e.canceled||(yield Promise.resolve(u(e))):u(e);if(e.bubbles)try{yield(o=this.__onBubble)===null||o===void 0?void 0:o.call(this,e)}catch(u){throw u}})}}var cP=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})};class V5 extends yn{get event$(){return this.__event$.asObservable()}get closed(){return this.__event$.closed}constructor(e){super(t=>{this.__event$.subscribe(t)}),this.__listeners=[],this.__event$=new Co,this.__dispatcher=new G5({onDispatch:e.onDispatch,onBubble:e.onBubble})}addEventListener(e,t){if(this.closed)throw Error("Cannot listen to events when provider is closed!");const r={type:e,handler:t};return this.__listeners.push(r),()=>{const o=this.__listeners.indexOf(r);0<=o&&this.__listeners.splice(o,1)}}dispatchEvent(e,t){return cP(this,void 0,void 0,function*(){if(typeof e=="string"){if(!t)throw Error("invalid arguments, missing [FrameworkEventInit]");return this._dispatchEvent(new z5(e,t))}else return this._dispatchEvent(e)})}_dispatchEvent(e){return cP(this,void 0,void 0,function*(){if(this.closed)throw Error("Cannot dispatch events when provider is closed!");this.__event$.next(e);try{const t=this.__listeners.filter(r=>r.type===e.type).map(({handler:r})=>r);yield this.__dispatcher.dispatch(e,t)}catch(t){throw t}return e})}dispose(){this.__listeners=[],this.__event$.complete()}}var dP=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})};const K5={name:"event",configure:n=>{const e={},t=n==null?void 0:n.event;return t&&(e.onBubble=r=>dP(void 0,void 0,void 0,function*(){yield t.dispatchEvent(r)})),e},initialize:({config:n})=>new V5(n),postInitialize:({instance:n,modules:e})=>dP(void 0,void 0,void 0,function*(){n.dispatchEvent("onModulesLoaded",{detail:e,source:n})}),dispose({instance:n}){n.dispose()}};class fP{constructor(){this._operators={}}add(e,t){if(Object.keys(this._operators).includes(e))throw Error(`Operator [${e}] already defined`);return this.set(e,t)}set(e,t){return this._operators[e]=t,this}get(e){return this._operators[e]}process(e){return Object.values(this._operators).length?qr(Object.values(this._operators)).pipe(H5((r,o)=>Promise.resolve(o(r)).then(s=>s??r),e,1),s1()):Ss(e)}}const W5=(n,e)=>t=>{const r=new Headers(t.headers);return r.append(n,e),Object.assign(Object.assign({},t),{headers:r})};class hP extends fP{setHeader(e,t){const r=W5(e,t);return this.set("header-"+e,r)}}class Y5 extends fP{}class Q5{get clients(){return Object.assign({},this._clients)}constructor(e){this._clients={},this.defaultHttpRequestHandler=new hP,this.defaultHttpClientCtor=e}hasClient(e){return Object.keys(this._clients).includes(e)}configureClient(e,t){const r=typeof t=="string"?s=>s.uri=String(t):t,o=typeof r=="function"?{onCreate:r}:r;return this._clients[e]=Object.assign(Object.assign({},this._clients[e]),o),this}}class X5 extends Error{constructor(e){super(e)}}const J5=n=>new RegExp("^(https?:\\/\\/)?((([a-z\\d]([a-z\\d-]*[a-z\\d])*)\\.?)+[a-z]{2,}|((\\d{1,3}\\.){3}\\d{1,3}))(\\:\\d+)?(\\/[-a-z\\d%_.~+]*)*(\\?[;&a-z\\d%_.~+=-]*)?(\\#[-a-z\\d_]*)?$","i").test(n);class Z5{get defaultHttpRequestHandler(){return this.config.defaultHttpRequestHandler}constructor(e){this.config=e}hasClient(e){return Object.keys(this.config.clients).includes(e)}createClient(e){const t=this._resolveConfig(e),{baseUri:r,defaultScopes:o=[],onCreate:s,ctor:u=this.config.defaultHttpClientCtor,requestHandler:f=this.defaultHttpRequestHandler}=t,p={requestHandler:f},v=new u(r||"",p);return Object.assign(v,{defaultScopes:o}),s&&s(v),v}createCustomClient(e){return this.createClient(e)}_resolveConfig(e){if(typeof e=="string"){const t=this.config.clients[e];if(!t&&J5(e))return{baseUri:e};if(!t)throw new X5(`No registered http client for key [${e}]`);return t}return e}}function e6(n,e){e===void 0&&(e={});var t=e.selector,r=Fv(e,["selector"]);return new yn(function(o){var s=new AbortController,u=s.signal,f=!0,p=r.signal;if(p)if(p.aborted)s.abort();else{var v=function(){u.aborted||s.abort()};p.addEventListener("abort",v),o.add(function(){return p.removeEventListener("abort",v)})}var g=Ye(Ye({},r),{signal:u}),E=function(w){f=!1,o.error(w)};return fetch(n,g).then(function(w){t?ws(t(w)).subscribe(ri(o,void 0,function(){f=!1,o.complete()},E)):(f=!1,o.next(w),o.complete())}).catch(E),function(){f&&s.abort()}})}const t6=n=>{if(!n.ok)throw new Error("network response was not OK");if(n.status===204)return Promise.resolve();try{return n.json()}catch{throw Error("failed to parse response")}},n6=n=>{if(!n.ok)throw new Error("network response was not OK");if(n.status===204)throw new Error("no content");try{return n.blob()}catch{throw Error("failed to parse response")}};class h1 extends Error{constructor(e,t,r){super(e,r),this.message=e,this.response=t}}var pP=globalThis&&globalThis.__rest||function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(n,r[o])&&(t[r[o]]=n[r[o]]);return t};class r6{get request$(){return this._request$.asObservable()}get response$(){return this._response$.asObservable()}constructor(e,t){var r,o;this.uri=e,this._request$=new Co,this._response$=new Co,this._abort$=new Co,this.requestHandler=(r=t==null?void 0:t.requestHandler)!==null&&r!==void 0?r:new hP,this.responseHandler=(o=t==null?void 0:t.responseHandler)!==null&&o!==void 0?o:new Y5,this._init()}_init(){}fetch$(e,t){return this._fetch$(e,t)}fetch(e,t){return $o(this.fetch$(e,t))}fetchAsync(e,t){return this.fetch(e,t)}json$(e,t){var r;const o=typeof(t==null?void 0:t.body)=="object"?JSON.stringify(t==null?void 0:t.body):t==null?void 0:t.body,s=(r=t==null?void 0:t.selector)!==null&&r!==void 0?r:t6,u=new Headers(t==null?void 0:t.headers);return u.append("Accept","application/json"),u.append("Content-Type","application/json"),this.fetch$(e,Object.assign(Object.assign({},t),{body:o,selector:s,headers:u}))}json(e,t){return $o(this.json$(e,t))}blob$(e,t){var r;const o=(r=t==null?void 0:t.selector)!==null&&r!==void 0?r:n6;return this.fetch$(e,Object.assign(Object.assign({},t),{selector:o}))}blob(e,t){return $o(this.blob$(e,t))}jsonAsync(e,t){return this.json(e,t)}execute(e,t,r){return this[e](t,r)}abort(){this._abort$.next()}_fetch$(e,t){const r=t||{},{selector:o}=r,s=pP(r,["selector"]);return Ss(Object.assign(Object.assign({},s),{uri:this._resolveUrl(e)})).pipe(ii(f=>this._prepareRequest(f)),Bv(f=>this._request$.next(f)),ii(f=>{var{uri:p,path:v}=f,g=pP(f,["uri","path"]);return e6(p,g)}),ii(f=>this._prepareResponse(f)),Bv(f=>this._response$.next(f)),ii(f=>{if(o)try{return o(f)}catch(p){throw new h1("failed to execute response selector",f,{cause:p})}return Ss(f)}),sP(this._abort$))}_prepareRequest(e){return this.requestHandler.process(e)}_prepareResponse(e){return this.responseHandler.process(e)}_resolveUrl(e){const t=this.uri||window.location.origin;return new URL(e,t).href}}class i6 extends r6{constructor(){super(...arguments),this.defaultScopes=[]}fetch$(e,t){const r=Object.assign(t||{},{scopes:this.defaultScopes.concat((t==null?void 0:t.scopes)||[])});return super._fetch$(e,r)}}var vP=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})};const p1={name:"http",configure:()=>new Q5(i6),initialize:({config:n,hasModule:e,requireInstance:t})=>vP(void 0,void 0,void 0,function*(){const r=new Z5(n);if(e("auth")){const o=yield t("auth");r.defaultHttpRequestHandler.set("MSAL",s=>vP(void 0,void 0,void 0,function*(){const{scopes:u=[]}=s;if(u.length){const f=yield o.acquireToken({scopes:u});if(f){const p=new Headers(s.headers);return p.set("Authorization",`Bearer ${f.accessToken}`),Object.assign(Object.assign({},s),{headers:p})}}}))}return r})},o6=n=>({module:p1,configure:n}),mP=(n,e)=>({module:p1,configure:t=>{t.configureClient(n,e)}}),v1="default";class a6{constructor(){this._configs={},this.requiresAuth=!0}get defaultConfig(){return this._configs[v1]}getClientConfig(e){return this._configs[e]}configureClient(e,t){return this._configs[e]=t,this}configureDefault(e){if(this._configs[v1])throw Error("Default AuthClient already provided");this.configureClient(v1,e)}}/*! @azure/msal-browser v2.38.2 2023-08-24 *//*! *****************************************************************************
238
+ Copyright (c) Microsoft Corporation.
239
+
240
+ Permission to use, copy, modify, and/or distribute this software for any
241
+ purpose with or without fee is hereby granted.
242
+
243
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
244
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
245
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
246
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
247
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
248
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
249
+ PERFORMANCE OF THIS SOFTWARE.
250
+ ***************************************************************************** */var m1=function(n,e){return m1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},m1(n,e)};function Bo(n,e){m1(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var gt=function(){return gt=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},gt.apply(this,arguments)};function gP(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(n,r[o])&&(t[r[o]]=n[r[o]]);return t}function Ie(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})}function Oe(n,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(v){return function(g){return p([v,g])}}function p(v){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,o&&(s=v[0]&2?o.return:v[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,v[1])).done)return s;switch(o=0,s&&(v=[v[0]&2,s.value]),v[0]){case 0:case 1:s=v;break;case 4:return t.label++,{value:v[1],done:!1};case 5:t.label++,o=v[1],v=[0];continue;case 7:v=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(v[0]===6||v[0]===2)){t=0;continue}if(v[0]===3&&(!s||v[1]>s[0]&&v[1]<s[3])){t.label=v[1];break}if(v[0]===6&&t.label<s[1]){t.label=s[1],s=v;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(v);break}s[2]&&t.ops.pop(),t.trys.pop();continue}v=e.call(n,t)}catch(g){v=[6,g],o=0}finally{r=s=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}}function s6(n,e){var t=typeof Symbol=="function"&&n[Symbol.iterator];if(!t)return n;var r=t.call(n),o,s=[],u;try{for(;(e===void 0||e-- >0)&&!(o=r.next()).done;)s.push(o.value)}catch(f){u={error:f}}finally{try{o&&!o.done&&(t=r.return)&&t.call(r)}finally{if(u)throw u.error}}return s}function g1(){for(var n=[],e=0;e<arguments.length;e++)n=n.concat(s6(arguments[e]));return n}/*! @azure/msal-common v13.3.0 2023-08-24 *//*! *****************************************************************************
251
+ Copyright (c) Microsoft Corporation.
252
+
253
+ Permission to use, copy, modify, and/or distribute this software for any
254
+ purpose with or without fee is hereby granted.
255
+
256
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
257
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
258
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
259
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
260
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
261
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
262
+ PERFORMANCE OF THIS SOFTWARE.
263
+ ***************************************************************************** */var y1=function(n,e){return y1=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o])},y1(n,e)};function Qa(n,e){y1(n,e);function t(){this.constructor=n}n.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Kn=function(){return Kn=Object.assign||function(e){for(var t,r=1,o=arguments.length;r<o;r++){t=arguments[r];for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s])}return e},Kn.apply(this,arguments)};function Jt(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})}function Zt(n,e){var t={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,o,s,u;return u={next:f(0),throw:f(1),return:f(2)},typeof Symbol=="function"&&(u[Symbol.iterator]=function(){return this}),u;function f(v){return function(g){return p([v,g])}}function p(v){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,o&&(s=v[0]&2?o.return:v[0]?o.throw||((s=o.return)&&s.call(o),0):o.next)&&!(s=s.call(o,v[1])).done)return s;switch(o=0,s&&(v=[v[0]&2,s.value]),v[0]){case 0:case 1:s=v;break;case 4:return t.label++,{value:v[1],done:!1};case 5:t.label++,o=v[1],v=[0];continue;case 7:v=t.ops.pop(),t.trys.pop();continue;default:if(s=t.trys,!(s=s.length>0&&s[s.length-1])&&(v[0]===6||v[0]===2)){t=0;continue}if(v[0]===3&&(!s||v[1]>s[0]&&v[1]<s[3])){t.label=v[1];break}if(v[0]===6&&t.label<s[1]){t.label=s[1],s=v;break}if(s&&t.label<s[2]){t.label=s[2],t.ops.push(v);break}s[2]&&t.ops.pop(),t.trys.pop();continue}v=e.call(n,t)}catch(g){v=[6,g],o=0}finally{r=s=0}if(v[0]&5)throw v[1];return{value:v[0]?v[1]:void 0,done:!0}}}function zb(){for(var n=0,e=0,t=arguments.length;e<t;e++)n+=arguments[e].length;for(var r=Array(n),o=0,e=0;e<t;e++)for(var s=arguments[e],u=0,f=s.length;u<f;u++,o++)r[o]=s[u];return r}/*! @azure/msal-common v13.3.0 2023-08-24 */var Y={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"},e0=[Y.OPENID_SCOPE,Y.PROFILE_SCOPE,Y.OFFLINE_ACCESS_SCOPE],yP=zb(e0,[Y.EMAIL_SCOPE]),Ts;(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"})(Ts||(Ts={}));var Zi;(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"})(Zi||(Zi={}));var Uh;(function(n){n.COMMON="common",n.ORGANIZATIONS="organizations",n.CONSUMERS="consumers"})(Uh||(Uh={}));var on;(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"})(on||(on={}));var Gv;(function(n){n.ACCESS_TOKEN="access_token",n.XMS_CC="xms_cc"})(Gv||(Gv={}));var aa={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},t0;(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"})(t0||(t0={}));var _P={PLAIN:"plain",S256:"S256"},qb;(function(n){n.QUERY="query",n.FRAGMENT="fragment",n.FORM_POST="form_post"})(qb||(qb={}));var Gb;(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"})(Gb||(Gb={}));var Fc;(function(n){n.MSSTS_ACCOUNT_TYPE="MSSTS",n.ADFS_ACCOUNT_TYPE="ADFS",n.MSAV1_ACCOUNT_TYPE="MSA",n.GENERIC_ACCOUNT_TYPE="Generic"})(Fc||(Fc={}));var eo;(function(n){n.CACHE_KEY_SEPARATOR="-",n.CLIENT_INFO_SEPARATOR="."})(eo||(eo={}));var Nt;(function(n){n.ID_TOKEN="IdToken",n.ACCESS_TOKEN="AccessToken",n.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",n.REFRESH_TOKEN="RefreshToken"})(Nt||(Nt={}));var Hc;(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"})(Hc||(Hc={}));var _1="appmetadata",l6="client_info",n0="1",r0={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},Vs;(function(n){n.CONFIG="config",n.CACHE="cache",n.NETWORK="network",n.HARDCODED_VALUES="hardcoded_values"})(Vs||(Vs={}));var jo={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"},er;(function(n){n.BEARER="Bearer",n.POP="pop",n.SSH="ssh-cert"})(er||(er={}));var i0={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},EP={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},Vb;(function(n){n.username="username",n.password="password"})(Vb||(Vb={}));var Vv;(function(n){n[n.httpSuccess=200]="httpSuccess",n[n.httpBadRequest=400]="httpBadRequest"})(Vv||(Vv={}));var Kd;(function(n){n.FAILED_AUTO_DETECTION="1",n.INTERNAL_CACHE="2",n.ENVIRONMENT_VARIABLE="3",n.IMDS="4"})(Kd||(Kd={}));var o0;(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"})(o0||(o0={}));var Wd;(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"})(Wd||(Wd={}));var E1;(function(n){n.Jwt="JWT",n.Jwk="JWK",n.Pop="pop"})(E1||(E1={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var Kb={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."}},St=function(n){Qa(e,n);function e(t,r,o){var s=this,u=r?t+": "+r:t;return s=n.call(this,u)||this,Object.setPrototypeOf(s,e.prototype),s.errorCode=t||Y.EMPTY_STRING,s.errorMessage=r||Y.EMPTY_STRING,s.subError=o||Y.EMPTY_STRING,s.name="AuthError",s}return e.prototype.setCorrelationId=function(t){this.correlationId=t},e.createUnexpectedError=function(t){return new e(Kb.unexpectedError.code,Kb.unexpectedError.desc+": "+t)},e.createPostRequestFailed=function(t){return new e(Kb.postRequestFailed.code,Kb.postRequestFailed.desc+": "+t)},e}(Error);/*! @azure/msal-common v13.3.0 2023-08-24 */var Wb={createNewGuid:function(){var n="Crypto interface - createNewGuid() has not been implemented";throw St.createUnexpectedError(n)},base64Decode:function(){var n="Crypto interface - base64Decode() has not been implemented";throw St.createUnexpectedError(n)},base64Encode:function(){var n="Crypto interface - base64Encode() has not been implemented";throw St.createUnexpectedError(n)},generatePkceCodes:function(){return Jt(this,void 0,void 0,function(){var n;return Zt(this,function(e){throw n="Crypto interface - generatePkceCodes() has not been implemented",St.createUnexpectedError(n)})})},getPublicKeyThumbprint:function(){return Jt(this,void 0,void 0,function(){var n;return Zt(this,function(e){throw n="Crypto interface - getPublicKeyThumbprint() has not been implemented",St.createUnexpectedError(n)})})},removeTokenBindingKey:function(){return Jt(this,void 0,void 0,function(){var n;return Zt(this,function(e){throw n="Crypto interface - removeTokenBindingKey() has not been implemented",St.createUnexpectedError(n)})})},clearKeystore:function(){return Jt(this,void 0,void 0,function(){var n;return Zt(this,function(e){throw n="Crypto interface - clearKeystore() has not been implemented",St.createUnexpectedError(n)})})},signJwt:function(){return Jt(this,void 0,void 0,function(){var n;return Zt(this,function(e){throw n="Crypto interface - signJwt() has not been implemented",St.createUnexpectedError(n)})})},hashString:function(){return Jt(this,void 0,void 0,function(){var n;return Zt(this,function(e){throw n="Crypto interface - hashString() has not been implemented",St.createUnexpectedError(n)})})}};/*! @azure/msal-common v13.3.0 2023-08-24 */var He={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."}},rt=function(n){Qa(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.name="ClientAuthError",Object.setPrototypeOf(o,e.prototype),o}return e.createClientInfoDecodingError=function(t){return new e(He.clientInfoDecodingError.code,He.clientInfoDecodingError.desc+" Failed with error: "+t)},e.createClientInfoEmptyError=function(){return new e(He.clientInfoEmptyError.code,""+He.clientInfoEmptyError.desc)},e.createTokenParsingError=function(t){return new e(He.tokenParsingError.code,He.tokenParsingError.desc+" Failed with error: "+t)},e.createTokenNullOrEmptyError=function(t){return new e(He.nullOrEmptyToken.code,He.nullOrEmptyToken.desc+" Raw Token Value: "+t)},e.createEndpointDiscoveryIncompleteError=function(t){return new e(He.endpointResolutionError.code,He.endpointResolutionError.desc+" Detail: "+t)},e.createNetworkError=function(t,r){return new e(He.networkError.code,He.networkError.desc+" | Fetch client threw: "+r+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToGetOpenidConfigError=function(t){return new e(He.unableToGetOpenidConfigError.code,He.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+t)},e.createHashNotDeserializedError=function(t){return new e(He.hashNotDeserialized.code,He.hashNotDeserialized.desc+" Given Object: "+t)},e.createInvalidStateError=function(t,r){return new e(He.invalidStateError.code,He.invalidStateError.desc+" Invalid State: "+t+", Root Err: "+r)},e.createStateMismatchError=function(){return new e(He.stateMismatchError.code,He.stateMismatchError.desc)},e.createStateNotFoundError=function(t){return new e(He.stateNotFoundError.code,He.stateNotFoundError.desc+": "+t)},e.createNonceMismatchError=function(){return new e(He.nonceMismatchError.code,He.nonceMismatchError.desc)},e.createAuthTimeNotFoundError=function(){return new e(He.authTimeNotFoundError.code,He.authTimeNotFoundError.desc)},e.createMaxAgeTranspiredError=function(){return new e(He.maxAgeTranspiredError.code,He.maxAgeTranspiredError.desc)},e.createNonceNotFoundError=function(t){return new e(He.nonceNotFoundError.code,He.nonceNotFoundError.desc+": "+t)},e.createMultipleMatchingTokensInCacheError=function(){return new e(He.multipleMatchingTokens.code,He.multipleMatchingTokens.desc+".")},e.createMultipleMatchingAccountsInCacheError=function(){return new e(He.multipleMatchingAccounts.code,He.multipleMatchingAccounts.desc)},e.createMultipleMatchingAppMetadataInCacheError=function(){return new e(He.multipleMatchingAppMetadata.code,He.multipleMatchingAppMetadata.desc)},e.createTokenRequestCannotBeMadeError=function(){return new e(He.tokenRequestCannotBeMade.code,He.tokenRequestCannotBeMade.desc)},e.createAppendEmptyScopeToSetError=function(t){return new e(He.appendEmptyScopeError.code,He.appendEmptyScopeError.desc+" Given Scope: "+t)},e.createRemoveEmptyScopeFromSetError=function(t){return new e(He.removeEmptyScopeError.code,He.removeEmptyScopeError.desc+" Given Scope: "+t)},e.createAppendScopeSetError=function(t){return new e(He.appendScopeSetError.code,He.appendScopeSetError.desc+" Detail Error: "+t)},e.createEmptyInputScopeSetError=function(){return new e(He.emptyInputScopeSetError.code,""+He.emptyInputScopeSetError.desc)},e.createDeviceCodeCancelledError=function(){return new e(He.DeviceCodePollingCancelled.code,""+He.DeviceCodePollingCancelled.desc)},e.createDeviceCodeExpiredError=function(){return new e(He.DeviceCodeExpired.code,""+He.DeviceCodeExpired.desc)},e.createDeviceCodeUnknownError=function(){return new e(He.DeviceCodeUnknownError.code,""+He.DeviceCodeUnknownError.desc)},e.createNoAccountInSilentRequestError=function(){return new e(He.NoAccountInSilentRequest.code,""+He.NoAccountInSilentRequest.desc)},e.createNullOrUndefinedCacheRecord=function(){return new e(He.invalidCacheRecord.code,He.invalidCacheRecord.desc)},e.createInvalidCacheEnvironmentError=function(){return new e(He.invalidCacheEnvironment.code,He.invalidCacheEnvironment.desc)},e.createNoAccountFoundError=function(){return new e(He.noAccountFound.code,He.noAccountFound.desc)},e.createCachePluginError=function(){return new e(He.CachePluginError.code,""+He.CachePluginError.desc)},e.createNoCryptoObjectError=function(t){return new e(He.noCryptoObj.code,""+He.noCryptoObj.desc+t)},e.createInvalidCacheTypeError=function(){return new e(He.invalidCacheType.code,""+He.invalidCacheType.desc)},e.createUnexpectedAccountTypeError=function(){return new e(He.unexpectedAccountType.code,""+He.unexpectedAccountType.desc)},e.createUnexpectedCredentialTypeError=function(){return new e(He.unexpectedCredentialType.code,""+He.unexpectedCredentialType.desc)},e.createInvalidAssertionError=function(){return new e(He.invalidAssertion.code,""+He.invalidAssertion.desc)},e.createInvalidCredentialError=function(){return new e(He.invalidClientCredential.code,""+He.invalidClientCredential.desc)},e.createRefreshRequiredError=function(){return new e(He.tokenRefreshRequired.code,He.tokenRefreshRequired.desc)},e.createUserTimeoutReachedError=function(){return new e(He.userTimeoutReached.code,He.userTimeoutReached.desc)},e.createTokenClaimsRequiredError=function(){return new e(He.tokenClaimsRequired.code,He.tokenClaimsRequired.desc)},e.createNoAuthCodeInServerResponseError=function(){return new e(He.noAuthorizationCodeFromServer.code,He.noAuthorizationCodeFromServer.desc)},e.createBindingKeyNotRemovedError=function(){return new e(He.bindingKeyNotRemovedError.code,He.bindingKeyNotRemovedError.desc)},e.createLogoutNotSupportedError=function(){return new e(He.logoutNotSupported.code,He.logoutNotSupported.desc)},e.createKeyIdMissingError=function(){return new e(He.keyIdMissing.code,He.keyIdMissing.desc)},e.createNoNetworkConnectivityError=function(){return new e(He.noNetworkConnectivity.code,He.noNetworkConnectivity.desc)},e.createUserCanceledError=function(){return new e(He.userCanceledError.code,He.userCanceledError.desc)},e}(St);/*! @azure/msal-common v13.3.0 2023-08-24 */var it=function(){function n(){}return n.decodeAuthToken=function(e){if(n.isEmpty(e))throw rt.createTokenNullOrEmptyError(e);var t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/,r=t.exec(e);if(!r||r.length<4)throw rt.createTokenParsingError("Given token is malformed: "+JSON.stringify(e));var o={header:r[1],JWSPayload:r[2],JWSSig:r[3]};return o},n.isEmpty=function(e){return typeof e>"u"||!e||e.length===0},n.isEmptyObj=function(e){if(e&&!n.isEmpty(e))try{var t=JSON.parse(e);return Object.keys(t).length===0}catch{}return!0},n.startsWith=function(e,t){return e.indexOf(t)===0},n.endsWith=function(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length},n.queryStringToObject=function(e){var t={},r=e.split("&"),o=function(s){return decodeURIComponent(s.replace(/\+/g," "))};return r.forEach(function(s){if(s.trim()){var u=s.split(/=(.+)/g,2),f=u[0],p=u[1];f&&p&&(t[o(f)]=o(p))}}),t},n.trimArrayEntries=function(e){return e.map(function(t){return t.trim()})},n.removeEmptyStringsFromArray=function(e){return e.filter(function(t){return!n.isEmpty(t)})},n.jsonParseHelper=function(e){try{return JSON.parse(e)}catch{return null}},n.matchPattern=function(e,t){var r=new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?"));return r.test(t)},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var fi;(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"})(fi||(fi={}));var Yb=function(){function n(e,t,r){this.level=fi.Info;var o=function(){},s=e||n.createDefaultLoggerOptions();this.localCallback=s.loggerCallback||o,this.piiLoggingEnabled=s.piiLoggingEnabled||!1,this.level=typeof s.logLevel=="number"?s.logLevel:fi.Info,this.correlationId=s.correlationId||Y.EMPTY_STRING,this.packageName=t||Y.EMPTY_STRING,this.packageVersion=r||Y.EMPTY_STRING}return n.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:fi.Info}},n.prototype.clone=function(e,t,r){return new n({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:r||this.correlationId},e,t)},n.prototype.logMessage=function(e,t){if(!(t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii)){var r=new Date().toUTCString(),o;it.isEmpty(t.correlationId)?it.isEmpty(this.correlationId)?o="["+r+"]":o="["+r+"] : ["+this.correlationId+"]":o="["+r+"] : ["+t.correlationId+"]";var s=o+" : "+this.packageName+"@"+this.packageVersion+" : "+fi[t.logLevel]+" - "+e;this.executeCallback(t.logLevel,s,t.containsPii||!1)}},n.prototype.executeCallback=function(e,t,r){this.localCallback&&this.localCallback(e,t,r)},n.prototype.error=function(e,t){this.logMessage(e,{logLevel:fi.Error,containsPii:!1,correlationId:t||Y.EMPTY_STRING})},n.prototype.errorPii=function(e,t){this.logMessage(e,{logLevel:fi.Error,containsPii:!0,correlationId:t||Y.EMPTY_STRING})},n.prototype.warning=function(e,t){this.logMessage(e,{logLevel:fi.Warning,containsPii:!1,correlationId:t||Y.EMPTY_STRING})},n.prototype.warningPii=function(e,t){this.logMessage(e,{logLevel:fi.Warning,containsPii:!0,correlationId:t||Y.EMPTY_STRING})},n.prototype.info=function(e,t){this.logMessage(e,{logLevel:fi.Info,containsPii:!1,correlationId:t||Y.EMPTY_STRING})},n.prototype.infoPii=function(e,t){this.logMessage(e,{logLevel:fi.Info,containsPii:!0,correlationId:t||Y.EMPTY_STRING})},n.prototype.verbose=function(e,t){this.logMessage(e,{logLevel:fi.Verbose,containsPii:!1,correlationId:t||Y.EMPTY_STRING})},n.prototype.verbosePii=function(e,t){this.logMessage(e,{logLevel:fi.Verbose,containsPii:!0,correlationId:t||Y.EMPTY_STRING})},n.prototype.trace=function(e,t){this.logMessage(e,{logLevel:fi.Trace,containsPii:!1,correlationId:t||Y.EMPTY_STRING})},n.prototype.tracePii=function(e,t){this.logMessage(e,{logLevel:fi.Trace,containsPii:!0,correlationId:t||Y.EMPTY_STRING})},n.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var bP="@azure/msal-common",b1="13.3.0";/*! @azure/msal-common v13.3.0 2023-08-24 */var a0;(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"})(a0||(a0={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var en={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."}},Rr=function(n){Qa(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.name="ClientConfigurationError",Object.setPrototypeOf(o,e.prototype),o}return e.createRedirectUriEmptyError=function(){return new e(en.redirectUriNotSet.code,en.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(en.postLogoutUriNotSet.code,en.postLogoutUriNotSet.desc)},e.createClaimsRequestParsingError=function(t){return new e(en.claimsRequestParsingError.code,en.claimsRequestParsingError.desc+" Given value: "+t)},e.createInsecureAuthorityUriError=function(t){return new e(en.authorityUriInsecure.code,en.authorityUriInsecure.desc+" Given URI: "+t)},e.createUrlParseError=function(t){return new e(en.urlParseError.code,en.urlParseError.desc+" Given Error: "+t)},e.createUrlEmptyError=function(){return new e(en.urlEmptyError.code,en.urlEmptyError.desc)},e.createEmptyScopesArrayError=function(){return new e(en.emptyScopesError.code,""+en.emptyScopesError.desc)},e.createClientIdSingleScopeError=function(t){return new e(en.clientIdSingleScopeError.code,en.clientIdSingleScopeError.desc+" Given Scopes: "+t)},e.createInvalidPromptError=function(t){return new e(en.invalidPrompt.code,en.invalidPrompt.desc+" Given value: "+t)},e.createInvalidClaimsRequestError=function(){return new e(en.invalidClaimsRequest.code,en.invalidClaimsRequest.desc)},e.createEmptyLogoutRequestError=function(){return new e(en.logoutRequestEmptyError.code,en.logoutRequestEmptyError.desc)},e.createEmptyTokenRequestError=function(){return new e(en.tokenRequestEmptyError.code,en.tokenRequestEmptyError.desc)},e.createInvalidCodeChallengeMethodError=function(){return new e(en.invalidCodeChallengeMethod.code,en.invalidCodeChallengeMethod.desc)},e.createInvalidCodeChallengeParamsError=function(){return new e(en.invalidCodeChallengeParams.code,en.invalidCodeChallengeParams.desc)},e.createInvalidCloudDiscoveryMetadataError=function(){return new e(en.invalidCloudDiscoveryMetadata.code,en.invalidCloudDiscoveryMetadata.desc)},e.createInvalidAuthorityMetadataError=function(){return new e(en.invalidAuthorityMetadata.code,en.invalidAuthorityMetadata.desc)},e.createUntrustedAuthorityError=function(){return new e(en.untrustedAuthority.code,en.untrustedAuthority.desc)},e.createInvalidAzureCloudInstanceError=function(){return new e(en.invalidAzureCloudInstance.code,en.invalidAzureCloudInstance.desc)},e.createMissingSshJwkError=function(){return new e(en.missingSshJwk.code,en.missingSshJwk.desc)},e.createMissingSshKidError=function(){return new e(en.missingSshKid.code,en.missingSshKid.desc)},e.createMissingNonceAuthenticationHeadersError=function(){return new e(en.missingNonceAuthenticationHeader.code,en.missingNonceAuthenticationHeader.desc)},e.createInvalidAuthenticationHeaderError=function(t,r){return new e(en.invalidAuthenticationHeader.code,en.invalidAuthenticationHeader.desc+". Invalid header: "+t+". Details: "+r)},e.createAuthorityMismatchError=function(){return new e(en.authorityMismatch.code,en.authorityMismatch.desc)},e}(rt);/*! @azure/msal-common v13.3.0 2023-08-24 */var sa=function(){function n(e){var t=this,r=e?it.trimArrayEntries(zb(e)):[],o=r?it.removeEmptyStringsFromArray(r):[];this.validateInputScopes(o),this.scopes=new Set,o.forEach(function(s){return t.scopes.add(s)})}return n.fromString=function(e){var t=e||Y.EMPTY_STRING,r=t.split(" ");return new n(r)},n.createSearchScopes=function(e){var t=new n(e);return t.containsOnlyOIDCScopes()?t.removeScope(Y.OFFLINE_ACCESS_SCOPE):t.removeOIDCScopes(),t},n.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw Rr.createEmptyScopesArrayError()},n.prototype.containsScope=function(e){var t=this.printScopesLowerCase().split(" "),r=new n(t);return it.isEmpty(e)?!1:r.scopes.has(e.toLowerCase())},n.prototype.containsScopeSet=function(e){var t=this;return!e||e.scopes.size<=0?!1:this.scopes.size>=e.scopes.size&&e.asArray().every(function(r){return t.containsScope(r)})},n.prototype.containsOnlyOIDCScopes=function(){var e=this,t=0;return yP.forEach(function(r){e.containsScope(r)&&(t+=1)}),this.scopes.size===t},n.prototype.appendScope=function(e){it.isEmpty(e)||this.scopes.add(e.trim())},n.prototype.appendScopes=function(e){var t=this;try{e.forEach(function(r){return t.appendScope(r)})}catch(r){throw rt.createAppendScopeSetError(r)}},n.prototype.removeScope=function(e){if(it.isEmpty(e))throw rt.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},n.prototype.removeOIDCScopes=function(){var e=this;yP.forEach(function(t){e.scopes.delete(t)})},n.prototype.unionScopeSets=function(e){if(!e)throw rt.createEmptyInputScopeSetError();var t=new Set;return e.scopes.forEach(function(r){return t.add(r.toLowerCase())}),this.scopes.forEach(function(r){return t.add(r.toLowerCase())}),t},n.prototype.intersectingScopeSets=function(e){if(!e)throw rt.createEmptyInputScopeSetError();e.containsOnlyOIDCScopes()||e.removeOIDCScopes();var t=this.unionScopeSets(e),r=e.getScopeCount(),o=this.getScopeCount(),s=t.size;return s<o+r},n.prototype.getScopeCount=function(){return this.scopes.size},n.prototype.asArray=function(){var e=[];return this.scopes.forEach(function(t){return e.push(t)}),e},n.prototype.printScopes=function(){if(this.scopes){var e=this.asArray();return e.join(" ")}return Y.EMPTY_STRING},n.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */function Qb(n,e){if(it.isEmpty(n))throw rt.createClientInfoEmptyError();try{var t=e.base64Decode(n);return JSON.parse(t)}catch(r){throw rt.createClientInfoDecodingError(r.message)}}function Kv(n){if(it.isEmpty(n))throw rt.createClientInfoDecodingError("Home account ID was empty.");var e=n.split(eo.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?Y.EMPTY_STRING:e[1]}}/*! @azure/msal-common v13.3.0 2023-08-24 */var Na;(function(n){n[n.Default=0]="Default",n[n.Adfs=1]="Adfs",n[n.Dsts=2]="Dsts",n[n.Ciam=3]="Ciam"})(Na||(Na={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var zo=function(){function n(){}return n.prototype.generateAccountId=function(){var e=[this.homeAccountId,this.environment];return e.join(eo.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 Fc.ADFS_ACCOUNT_TYPE:return Hc.ADFS;case Fc.MSAV1_ACCOUNT_TYPE:return Hc.MSA;case Fc.MSSTS_ACCOUNT_TYPE:return Hc.MSSTS;case Fc.GENERIC_ACCOUNT_TYPE:return Hc.GENERIC;default:throw rt.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(e){var t=[e.homeAccountId,e.environment||Y.EMPTY_STRING,e.tenantId||Y.EMPTY_STRING];return t.join(eo.CACHE_KEY_SEPARATOR).toLowerCase()},n.createAccount=function(e,t,r,o,s,u,f,p){var v,g,E,w,S,A,k=new n;k.authorityType=Fc.MSSTS_ACCOUNT_TYPE,k.clientInfo=e,k.homeAccountId=t,k.nativeAccountId=p;var M=f||o&&o.getPreferredCache();if(!M)throw rt.createInvalidCacheEnvironmentError();if(k.environment=M,k.realm=((v=r==null?void 0:r.claims)===null||v===void 0?void 0:v.tid)||Y.EMPTY_STRING,r){k.idTokenClaims=r.claims,k.localAccountId=((g=r==null?void 0:r.claims)===null||g===void 0?void 0:g.oid)||((E=r==null?void 0:r.claims)===null||E===void 0?void 0:E.sub)||Y.EMPTY_STRING;var P=(w=r==null?void 0:r.claims)===null||w===void 0?void 0:w.preferred_username,L=!((S=r==null?void 0:r.claims)===null||S===void 0)&&S.emails?r.claims.emails[0]:null;k.username=P||L||Y.EMPTY_STRING,k.name=(A=r==null?void 0:r.claims)===null||A===void 0?void 0:A.name}return k.cloudGraphHostName=s,k.msGraphHost=u,k},n.createGenericAccount=function(e,t,r,o,s,u){var f,p,v,g,E=new n;E.authorityType=r&&r.authorityType===Na.Adfs?Fc.ADFS_ACCOUNT_TYPE:Fc.GENERIC_ACCOUNT_TYPE,E.homeAccountId=e,E.realm=Y.EMPTY_STRING;var w=u||r&&r.getPreferredCache();if(!w)throw rt.createInvalidCacheEnvironmentError();return t&&(E.localAccountId=((f=t==null?void 0:t.claims)===null||f===void 0?void 0:f.oid)||((p=t==null?void 0:t.claims)===null||p===void 0?void 0:p.sub)||Y.EMPTY_STRING,E.username=((v=t==null?void 0:t.claims)===null||v===void 0?void 0:v.upn)||Y.EMPTY_STRING,E.name=((g=t==null?void 0:t.claims)===null||g===void 0?void 0:g.name)||Y.EMPTY_STRING,E.idTokenClaims=t==null?void 0:t.claims),E.environment=w,E.cloudGraphHostName=o,E.msGraphHost=s,E},n.generateHomeAccountId=function(e,t,r,o,s){var u,f=!((u=s==null?void 0:s.claims)===null||u===void 0)&&u.sub?s.claims.sub:Y.EMPTY_STRING;if(t===Na.Adfs||t===Na.Dsts)return f;if(e)try{var p=Qb(e,o);if(!it.isEmpty(p.uid)&&!it.isEmpty(p.utid))return""+p.uid+eo.CLIENT_INFO_SEPARATOR+p.utid}catch{}return r.verbose("No client info in response"),f},n.isAccountEntity=function(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1},n.accountInfoIsEqual=function(e,t,r){if(!e||!t)return!1;var o=!0;if(r){var s=e.idTokenClaims||{},u=t.idTokenClaims||{};o=s.iat===u.iat&&s.nonce===u.nonce}return e.homeAccountId===t.homeAccountId&&e.localAccountId===t.localAccountId&&e.username===t.username&&e.tenantId===t.tenantId&&e.environment===t.environment&&e.nativeAccountId===t.nativeAccountId&&o},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var _u=function(){function n(e,t){if(it.isEmpty(e))throw rt.createTokenNullOrEmptyError(e);this.rawToken=e,this.claims=n.extractTokenClaims(e,t)}return n.extractTokenClaims=function(e,t){var r=it.decodeAuthToken(e);try{var o=r.JWSPayload,s=t.base64Decode(o);return JSON.parse(s)}catch(u){throw rt.createTokenParsingError(u)}},n.checkMaxAge=function(e,t){var r=3e5;if(t===0||Date.now()-r>e+t)throw rt.createMaxAgeTranspiredError()},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Xa=function(){function n(e,t,r){this.clientId=e,this.cryptoImpl=t,this.commonLogger=r.clone(bP,b1)}return n.prototype.getAllAccounts=function(){var e=this,t=this.getAccountKeys();if(t.length<1)return[];var r=t.reduce(function(s,u){var f=e.getAccount(u);return f&&s.push(f),s},[]);if(r.length<1)return[];var o=r.map(function(s){return e.getAccountInfoFromEntity(s)});return o},n.prototype.getAccountInfoFilteredBy=function(e){var t=this.getAccountsFilteredBy(e);return t.length>0?this.getAccountInfoFromEntity(t[0]):null},n.prototype.getAccountInfoFromEntity=function(e){var t=e.getAccountInfo(),r=this.getIdToken(t);return r&&(t.idToken=r.secret,t.idTokenClaims=new _u(r.secret,this.cryptoImpl).claims),t},n.prototype.saveCacheRecord=function(e){return Jt(this,void 0,void 0,function(){return Zt(this,function(t){switch(t.label){case 0:if(!e)throw rt.createNullOrUndefinedCacheRecord();return e.account&&this.setAccount(e.account),e.idToken&&this.setIdTokenCredential(e.idToken),e.accessToken?[4,this.saveAccessToken(e.accessToken)]:[3,2];case 1:t.sent(),t.label=2;case 2:return e.refreshToken&&this.setRefreshTokenCredential(e.refreshToken),e.appMetadata&&this.setAppMetadata(e.appMetadata),[2]}})})},n.prototype.saveAccessToken=function(e){return Jt(this,void 0,void 0,function(){var t,r,o,s,u=this;return Zt(this,function(f){switch(f.label){case 0:return t={clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash},r=this.getTokenKeys(),o=sa.fromString(e.target),s=[],r.accessToken.forEach(function(p){if(u.accessTokenKeyMatchesFilter(p,t,!1)){var v=u.getAccessTokenCredential(p);if(v&&u.credentialMatchesFilter(v,t)){var g=sa.fromString(v.target);g.intersectingScopeSets(o)&&s.push(u.removeAccessToken(p))}}}),[4,Promise.all(s)];case 1:return f.sent(),this.setAccessTokenCredential(e),[2]}})})},n.prototype.getAccountsFilteredBy=function(e){var t=this,r=this.getAccountKeys(),o=[];return r.forEach(function(s){if(t.isAccountKey(s,e.homeAccountId,e.realm)){var u=t.getAccount(s);u&&(e.homeAccountId&&!t.matchHomeAccountId(u,e.homeAccountId)||e.localAccountId&&!t.matchLocalAccountId(u,e.localAccountId)||e.username&&!t.matchUsername(u,e.username)||e.environment&&!t.matchEnvironment(u,e.environment)||e.realm&&!t.matchRealm(u,e.realm)||e.nativeAccountId&&!t.matchNativeAccountId(u,e.nativeAccountId)||o.push(u))}}),o},n.prototype.isAccountKey=function(e,t,r){return!(e.split(eo.CACHE_KEY_SEPARATOR).length<3||t&&!e.toLowerCase().includes(t.toLowerCase())||r&&!e.toLowerCase().includes(r.toLowerCase()))},n.prototype.isCredentialKey=function(e){if(e.split(eo.CACHE_KEY_SEPARATOR).length<6)return!1;var t=e.toLowerCase();if(t.indexOf(Nt.ID_TOKEN.toLowerCase())===-1&&t.indexOf(Nt.ACCESS_TOKEN.toLowerCase())===-1&&t.indexOf(Nt.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())===-1&&t.indexOf(Nt.REFRESH_TOKEN.toLowerCase())===-1)return!1;if(t.indexOf(Nt.REFRESH_TOKEN.toLowerCase())>-1){var r=""+Nt.REFRESH_TOKEN+eo.CACHE_KEY_SEPARATOR+this.clientId+eo.CACHE_KEY_SEPARATOR,o=""+Nt.REFRESH_TOKEN+eo.CACHE_KEY_SEPARATOR+n0+eo.CACHE_KEY_SEPARATOR;if(t.indexOf(r.toLowerCase())===-1&&t.indexOf(o.toLowerCase())===-1)return!1}else if(t.indexOf(this.clientId.toLowerCase())===-1)return!1;return!0},n.prototype.credentialMatchesFilter=function(e,t){return!(t.clientId&&!this.matchClientId(e,t.clientId)||t.userAssertionHash&&!this.matchUserAssertionHash(e,t.userAssertionHash)||typeof t.homeAccountId=="string"&&!this.matchHomeAccountId(e,t.homeAccountId)||t.environment&&!this.matchEnvironment(e,t.environment)||t.realm&&!this.matchRealm(e,t.realm)||t.credentialType&&!this.matchCredentialType(e,t.credentialType)||t.familyId&&!this.matchFamilyId(e,t.familyId)||t.target&&!this.matchTarget(e,t.target)||(t.requestedClaimsHash||e.requestedClaimsHash)&&e.requestedClaimsHash!==t.requestedClaimsHash||e.credentialType===Nt.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(t.tokenType&&!this.matchTokenType(e,t.tokenType)||t.tokenType===er.SSH&&t.keyId&&!this.matchKeyId(e,t.keyId)))},n.prototype.getAppMetadataFilteredBy=function(e){return this.getAppMetadataFilteredByInternal(e.environment,e.clientId)},n.prototype.getAppMetadataFilteredByInternal=function(e,t){var r=this,o=this.getKeys(),s={};return o.forEach(function(u){if(r.isAppMetadata(u)){var f=r.getAppMetadata(u);f&&(e&&!r.matchEnvironment(f,e)||t&&!r.matchClientId(f,t)||(s[u]=f))}}),s},n.prototype.getAuthorityMetadataByAlias=function(e){var t=this,r=this.getAuthorityMetadataKeys(),o=null;return r.forEach(function(s){if(!(!t.isAuthorityMetadata(s)||s.indexOf(t.clientId)===-1)){var u=t.getAuthorityMetadata(s);u&&u.aliases.indexOf(e)!==-1&&(o=u)}}),o},n.prototype.removeAllAccounts=function(){return Jt(this,void 0,void 0,function(){var e,t,r=this;return Zt(this,function(o){switch(o.label){case 0:return e=this.getAccountKeys(),t=[],e.forEach(function(s){t.push(r.removeAccount(s))}),[4,Promise.all(t)];case 1:return o.sent(),[2]}})})},n.prototype.removeAccount=function(e){return Jt(this,void 0,void 0,function(){var t;return Zt(this,function(r){switch(r.label){case 0:if(t=this.getAccount(e),!t)throw rt.createNoAccountFoundError();return[4,this.removeAccountContext(t)];case 1:return r.sent(),this.removeItem(e),[2]}})})},n.prototype.removeAccountContext=function(e){return Jt(this,void 0,void 0,function(){var t,r,o,s=this;return Zt(this,function(u){switch(u.label){case 0:return t=this.getTokenKeys(),r=e.generateAccountId(),o=[],t.idToken.forEach(function(f){f.indexOf(r)===0&&s.removeIdToken(f)}),t.accessToken.forEach(function(f){f.indexOf(r)===0&&o.push(s.removeAccessToken(f))}),t.refreshToken.forEach(function(f){f.indexOf(r)===0&&s.removeRefreshToken(f)}),[4,Promise.all(o)];case 1:return u.sent(),[2]}})})},n.prototype.removeAccessToken=function(e){return Jt(this,void 0,void 0,function(){var t,r,o;return Zt(this,function(s){switch(s.label){case 0:if(t=this.getAccessTokenCredential(e),!t)return[2];if(t.credentialType.toLowerCase()!==Nt.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(t.tokenType!==er.POP)return[3,4];if(r=t,o=r.keyId,!o)return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,this.cryptoImpl.removeTokenBindingKey(o)];case 2:return s.sent(),[3,4];case 3:throw s.sent(),rt.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(e)]}})})},n.prototype.removeAppMetadata=function(){var e=this,t=this.getKeys();return t.forEach(function(r){e.isAppMetadata(r)&&e.removeItem(r)}),!0},n.prototype.readCacheRecord=function(e,t,r){var o=this.getTokenKeys(),s=this.readAccountFromCache(e),u=this.getIdToken(e,o),f=this.getAccessToken(e,t,o),p=this.getRefreshToken(e,!1,o),v=this.readAppMetadataFromCache(r);return s&&u&&(s.idTokenClaims=new _u(u.secret,this.cryptoImpl).claims),{account:s,idToken:u,accessToken:f,refreshToken:p,appMetadata:v}},n.prototype.readAccountFromCache=function(e){var t=zo.generateAccountCacheKey(e);return this.getAccount(t)},n.prototype.getIdToken=function(e,t){this.commonLogger.trace("CacheManager - getIdToken called");var r={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:Nt.ID_TOKEN,clientId:this.clientId,realm:e.tenantId},o=this.getIdTokensByFilter(r,t),s=o.length;if(s<1)return this.commonLogger.info("CacheManager:getIdToken - No token found"),null;if(s>1)throw rt.createMultipleMatchingTokensInCacheError();return this.commonLogger.info("CacheManager:getIdToken - Returning id token"),o[0]},n.prototype.getIdTokensByFilter=function(e,t){var r=this,o=t&&t.idToken||this.getTokenKeys().idToken,s=[];return o.forEach(function(u){if(r.idTokenKeyMatchesFilter(u,Kn({clientId:r.clientId},e))){var f=r.getIdTokenCredential(u);f&&r.credentialMatchesFilter(f,e)&&s.push(f)}}),s},n.prototype.idTokenKeyMatchesFilter=function(e,t){var r=e.toLowerCase();return!(t.clientId&&r.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&r.indexOf(t.homeAccountId.toLowerCase())===-1)},n.prototype.removeIdToken=function(e){this.removeItem(e)},n.prototype.removeRefreshToken=function(e){this.removeItem(e)},n.prototype.getAccessToken=function(e,t,r){var o=this;this.commonLogger.trace("CacheManager - getAccessToken called");var s=sa.createSearchScopes(t.scopes),u=t.authenticationScheme||er.BEARER,f=u&&u.toLowerCase()!==er.BEARER.toLowerCase()?Nt.ACCESS_TOKEN_WITH_AUTH_SCHEME:Nt.ACCESS_TOKEN,p={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:f,clientId:this.clientId,realm:e.tenantId,target:s,tokenType:u,keyId:t.sshKid,requestedClaimsHash:t.requestedClaimsHash},v=r&&r.accessToken||this.getTokenKeys().accessToken,g=[];v.forEach(function(w){if(o.accessTokenKeyMatchesFilter(w,p,!0)){var S=o.getAccessTokenCredential(w);S&&o.credentialMatchesFilter(S,p)&&g.push(S)}});var E=g.length;if(E<1)return this.commonLogger.info("CacheManager:getAccessToken - No token found"),null;if(E>1)throw rt.createMultipleMatchingTokensInCacheError();return this.commonLogger.info("CacheManager:getAccessToken - Returning access token"),g[0]},n.prototype.accessTokenKeyMatchesFilter=function(e,t,r){var o=e.toLowerCase();if(t.clientId&&o.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&o.indexOf(t.homeAccountId.toLowerCase())===-1||t.realm&&o.indexOf(t.realm.toLowerCase())===-1||t.requestedClaimsHash&&o.indexOf(t.requestedClaimsHash.toLowerCase())===-1)return!1;if(t.target)for(var s=t.target.asArray(),u=0;u<s.length;u++){if(r&&!o.includes(s[u].toLowerCase()))return!1;if(!r&&o.includes(s[u].toLowerCase()))return!0}return!0},n.prototype.getAccessTokensByFilter=function(e){var t=this,r=this.getTokenKeys(),o=[];return r.accessToken.forEach(function(s){if(t.accessTokenKeyMatchesFilter(s,e,!0)){var u=t.getAccessTokenCredential(s);u&&t.credentialMatchesFilter(u,e)&&o.push(u)}}),o},n.prototype.getRefreshToken=function(e,t,r){var o=this;this.commonLogger.trace("CacheManager - getRefreshToken called");var s=t?n0:void 0,u={homeAccountId:e.homeAccountId,environment:e.environment,credentialType:Nt.REFRESH_TOKEN,clientId:this.clientId,familyId:s},f=r&&r.refreshToken||this.getTokenKeys().refreshToken,p=[];f.forEach(function(g){if(o.refreshTokenKeyMatchesFilter(g,u)){var E=o.getRefreshTokenCredential(g);E&&o.credentialMatchesFilter(E,u)&&p.push(E)}});var v=p.length;return v<1?(this.commonLogger.info("CacheManager:getRefreshToken - No refresh token found."),null):(this.commonLogger.info("CacheManager:getRefreshToken - returning refresh token"),p[0])},n.prototype.refreshTokenKeyMatchesFilter=function(e,t){var r=e.toLowerCase();return!(t.familyId&&r.indexOf(t.familyId.toLowerCase())===-1||!t.familyId&&t.clientId&&r.indexOf(t.clientId.toLowerCase())===-1||t.homeAccountId&&r.indexOf(t.homeAccountId.toLowerCase())===-1)},n.prototype.readAppMetadataFromCache=function(e){var t={environment:e,clientId:this.clientId},r=this.getAppMetadataFilteredBy(t),o=Object.keys(r).map(function(u){return r[u]}),s=o.length;if(s<1)return null;if(s>1)throw rt.createMultipleMatchingAppMetadataInCacheError();return o[0]},n.prototype.isAppMetadataFOCI=function(e){var t=this.readAppMetadataFromCache(e);return!!(t&&t.familyId===n0)},n.prototype.matchHomeAccountId=function(e,t){return typeof e.homeAccountId=="string"&&t===e.homeAccountId},n.prototype.matchLocalAccountId=function(e,t){return typeof e.localAccountId=="string"&&t===e.localAccountId},n.prototype.matchUsername=function(e,t){return typeof e.username=="string"&&t.toLowerCase()===e.username.toLowerCase()},n.prototype.matchUserAssertionHash=function(e,t){return!!(e.userAssertionHash&&t===e.userAssertionHash)},n.prototype.matchEnvironment=function(e,t){var r=this.getAuthorityMetadataByAlias(t);return!!(r&&r.aliases.indexOf(e.environment)>-1)},n.prototype.matchCredentialType=function(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()},n.prototype.matchClientId=function(e,t){return!!(e.clientId&&t===e.clientId)},n.prototype.matchFamilyId=function(e,t){return!!(e.familyId&&t===e.familyId)},n.prototype.matchRealm=function(e,t){return!!(e.realm&&t===e.realm)},n.prototype.matchNativeAccountId=function(e,t){return!!(e.nativeAccountId&&t===e.nativeAccountId)},n.prototype.matchTarget=function(e,t){var r=e.credentialType!==Nt.ACCESS_TOKEN&&e.credentialType!==Nt.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(r||!e.target)return!1;var o=sa.fromString(e.target);return o.containsScopeSet(t)},n.prototype.matchTokenType=function(e,t){return!!(e.tokenType&&e.tokenType===t)},n.prototype.matchKeyId=function(e,t){return!!(e.keyId&&e.keyId===t)},n.prototype.isAppMetadata=function(e){return e.indexOf(_1)!==-1},n.prototype.isAuthorityMetadata=function(e){return e.indexOf(r0.CACHE_KEY)!==-1},n.prototype.generateAuthorityMetadataCacheKey=function(e){return r0.CACHE_KEY+"-"+this.clientId+"-"+e},n.toObject=function(e,t){for(var r in t)e[r]=t[r];return e},n}(),u6=function(n){Qa(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.setAccount=function(){var t="Storage interface - setAccount() has not been implemented for the cacheStorage interface.";throw St.createUnexpectedError(t)},e.prototype.getAccount=function(){var t="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw St.createUnexpectedError(t)},e.prototype.setIdTokenCredential=function(){var t="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw St.createUnexpectedError(t)},e.prototype.getIdTokenCredential=function(){var t="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw St.createUnexpectedError(t)},e.prototype.setAccessTokenCredential=function(){var t="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw St.createUnexpectedError(t)},e.prototype.getAccessTokenCredential=function(){var t="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw St.createUnexpectedError(t)},e.prototype.setRefreshTokenCredential=function(){var t="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw St.createUnexpectedError(t)},e.prototype.getRefreshTokenCredential=function(){var t="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw St.createUnexpectedError(t)},e.prototype.setAppMetadata=function(){var t="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw St.createUnexpectedError(t)},e.prototype.getAppMetadata=function(){var t="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw St.createUnexpectedError(t)},e.prototype.setServerTelemetry=function(){var t="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw St.createUnexpectedError(t)},e.prototype.getServerTelemetry=function(){var t="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw St.createUnexpectedError(t)},e.prototype.setAuthorityMetadata=function(){var t="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw St.createUnexpectedError(t)},e.prototype.getAuthorityMetadata=function(){var t="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw St.createUnexpectedError(t)},e.prototype.getAuthorityMetadataKeys=function(){var t="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw St.createUnexpectedError(t)},e.prototype.setThrottlingCache=function(){var t="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw St.createUnexpectedError(t)},e.prototype.getThrottlingCache=function(){var t="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw St.createUnexpectedError(t)},e.prototype.removeItem=function(){var t="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw St.createUnexpectedError(t)},e.prototype.containsKey=function(){var t="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw St.createUnexpectedError(t)},e.prototype.getKeys=function(){var t="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw St.createUnexpectedError(t)},e.prototype.getAccountKeys=function(){var t="Storage interface - getAccountKeys() has not been implemented for the cacheStorage interface.";throw St.createUnexpectedError(t)},e.prototype.getTokenKeys=function(){var t="Storage interface - getTokenKeys() has not been implemented for the cacheStorage interface.";throw St.createUnexpectedError(t)},e.prototype.clear=function(){return Jt(this,void 0,void 0,function(){var t;return Zt(this,function(r){throw t="Storage interface - clear() has not been implemented for the cacheStorage interface.",St.createUnexpectedError(t)})})},e.prototype.updateCredentialCacheKey=function(){var t="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw St.createUnexpectedError(t)},e}(Xa);/*! @azure/msal-common v13.3.0 2023-08-24 */var c6=300,CP={tokenRenewalOffsetSeconds:c6,preventCorsPreflight:!1},d6={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:fi.Info,correlationId:Y.EMPTY_STRING},f6={claimsBasedCachingEnabled:!0},h6={sendGetRequestAsync:function(){return Jt(this,void 0,void 0,function(){var n;return Zt(this,function(e){throw n="Network interface - sendGetRequestAsync() has not been implemented",St.createUnexpectedError(n)})})},sendPostRequestAsync:function(){return Jt(this,void 0,void 0,function(){var n;return Zt(this,function(e){throw n="Network interface - sendPostRequestAsync() has not been implemented",St.createUnexpectedError(n)})})}},p6={sku:Y.SKU,version:b1,cpu:Y.EMPTY_STRING,os:Y.EMPTY_STRING},v6={clientSecret:Y.EMPTY_STRING,clientAssertion:void 0},m6={azureCloudInstance:a0.None,tenant:""+Y.DEFAULT_COMMON_TENANT},g6={application:{appName:"",appVersion:""}};function y6(n){var e=n.authOptions,t=n.systemOptions,r=n.loggerOptions,o=n.cacheOptions,s=n.storageInterface,u=n.networkInterface,f=n.cryptoInterface,p=n.clientCredentials,v=n.libraryInfo,g=n.telemetry,E=n.serverTelemetryManager,w=n.persistencePlugin,S=n.serializableCache,A=Kn(Kn({},d6),r);return{authOptions:_6(e),systemOptions:Kn(Kn({},CP),t),loggerOptions:A,cacheOptions:Kn(Kn({},f6),o),storageInterface:s||new u6(e.clientId,Wb,new Yb(A)),networkInterface:u||h6,cryptoInterface:f||Wb,clientCredentials:p||v6,libraryInfo:Kn(Kn({},p6),v),telemetry:Kn(Kn({},g6),g),serverTelemetryManager:E||null,persistencePlugin:w||null,serializableCache:S||null}}function _6(n){return Kn({clientCapabilities:[],azureCloudOptions:m6,skipAuthorityMetadataCache:!1},n)}/*! @azure/msal-common v13.3.0 2023-08-24 */var Fh=function(n){Qa(e,n);function e(t,r,o){var s=n.call(this,t,r,o)||this;return s.name="ServerError",Object.setPrototypeOf(s,e.prototype),s}return e}(St);/*! @azure/msal-common v13.3.0 2023-08-24 */var Xb=function(){function n(){}return n.generateThrottlingStorageKey=function(e){return i0.THROTTLING_PREFIX+"."+JSON.stringify(e)},n.preProcess=function(e,t){var r,o=n.generateThrottlingStorageKey(t),s=e.getThrottlingCache(o);if(s){if(s.throttleTime<Date.now()){e.removeItem(o);return}throw new Fh(((r=s.errorCodes)===null||r===void 0?void 0:r.join(" "))||Y.EMPTY_STRING,s.errorMessage,s.subError)}},n.postProcess=function(e,t,r){if(n.checkResponseStatus(r)||n.checkResponseForRetryAfter(r)){var o={throttleTime:n.calculateThrottleTime(parseInt(r.headers[Ts.RETRY_AFTER])),error:r.body.error,errorCodes:r.body.error_codes,errorMessage:r.body.error_description,subError:r.body.suberror};e.setThrottlingCache(n.generateThrottlingStorageKey(t),o)}},n.checkResponseStatus=function(e){return e.status===429||e.status>=500&&e.status<600},n.checkResponseForRetryAfter=function(e){return e.headers?e.headers.hasOwnProperty(Ts.RETRY_AFTER)&&(e.status<200||e.status>=300):!1},n.calculateThrottleTime=function(e){var t=e<=0?0:e,r=Date.now()/1e3;return Math.floor(Math.min(r+(t||i0.DEFAULT_THROTTLE_TIME_SECONDS),r+i0.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)},n.removeThrottle=function(e,t,r,o){var s={clientId:t,authority:r.authority,scopes:r.scopes,homeAccountIdentifier:o,claims:r.claims,authenticationScheme:r.authenticationScheme,resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,sshKid:r.sshKid},u=this.generateThrottlingStorageKey(s);e.removeItem(u)},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var E6=function(){function n(e,t){this.networkClient=e,this.cacheManager=t}return n.prototype.sendPostRequest=function(e,t,r){return Jt(this,void 0,void 0,function(){var o,s;return Zt(this,function(u){switch(u.label){case 0:Xb.preProcess(this.cacheManager,e),u.label=1;case 1:return u.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(t,r)];case 2:return o=u.sent(),[3,4];case 3:throw s=u.sent(),s instanceof St?s:rt.createNetworkError(t,s);case 4:return Xb.postProcess(this.cacheManager,e,o),[2,o]}})})},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Rs;(function(n){n.HOME_ACCOUNT_ID="home_account_id",n.UPN="UPN"})(Rs||(Rs={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var Hh=function(){function n(){}return n.validateRedirectUri=function(e){if(it.isEmpty(e))throw Rr.createRedirectUriEmptyError()},n.validatePrompt=function(e){var t=[];for(var r in aa)t.push(aa[r]);if(t.indexOf(e)<0)throw Rr.createInvalidPromptError(e)},n.validateClaims=function(e){try{JSON.parse(e)}catch{throw Rr.createInvalidClaimsRequestError()}},n.validateCodeChallengeParams=function(e,t){if(it.isEmpty(e)||it.isEmpty(t))throw Rr.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(t)},n.validateCodeChallengeMethod=function(e){if([_P.PLAIN,_P.S256].indexOf(e)<0)throw Rr.createInvalidCodeChallengeMethodError()},n.sanitizeEQParams=function(e,t){return e?(t.forEach(function(r,o){e[o]&&delete e[o]}),Object.fromEntries(Object.entries(e).filter(function(r){var o=r[1];return o!==""}))):{}},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var s0=function(){function n(){this.parameters=new Map}return n.prototype.addResponseTypeCode=function(){this.parameters.set(on.RESPONSE_TYPE,encodeURIComponent(Y.CODE_RESPONSE_TYPE))},n.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(on.RESPONSE_TYPE,encodeURIComponent(Y.TOKEN_RESPONSE_TYPE+" "+Y.ID_TOKEN_RESPONSE_TYPE))},n.prototype.addResponseMode=function(e){this.parameters.set(on.RESPONSE_MODE,encodeURIComponent(e||qb.QUERY))},n.prototype.addNativeBroker=function(){this.parameters.set(on.NATIVE_BROKER,encodeURIComponent("1"))},n.prototype.addScopes=function(e,t){t===void 0&&(t=!0);var r=t?zb(e||[],e0):e||[],o=new sa(r);this.parameters.set(on.SCOPE,encodeURIComponent(o.printScopes()))},n.prototype.addClientId=function(e){this.parameters.set(on.CLIENT_ID,encodeURIComponent(e))},n.prototype.addRedirectUri=function(e){Hh.validateRedirectUri(e),this.parameters.set(on.REDIRECT_URI,encodeURIComponent(e))},n.prototype.addPostLogoutRedirectUri=function(e){Hh.validateRedirectUri(e),this.parameters.set(on.POST_LOGOUT_URI,encodeURIComponent(e))},n.prototype.addIdTokenHint=function(e){this.parameters.set(on.ID_TOKEN_HINT,encodeURIComponent(e))},n.prototype.addDomainHint=function(e){this.parameters.set(t0.DOMAIN_HINT,encodeURIComponent(e))},n.prototype.addLoginHint=function(e){this.parameters.set(t0.LOGIN_HINT,encodeURIComponent(e))},n.prototype.addCcsUpn=function(e){this.parameters.set(Ts.CCS_HEADER,encodeURIComponent("UPN:"+e))},n.prototype.addCcsOid=function(e){this.parameters.set(Ts.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},n.prototype.addSid=function(e){this.parameters.set(t0.SID,encodeURIComponent(e))},n.prototype.addClaims=function(e,t){var r=this.addClientCapabilitiesToClaims(e,t);Hh.validateClaims(r),this.parameters.set(on.CLAIMS,encodeURIComponent(r))},n.prototype.addCorrelationId=function(e){this.parameters.set(on.CLIENT_REQUEST_ID,encodeURIComponent(e))},n.prototype.addLibraryInfo=function(e){this.parameters.set(on.X_CLIENT_SKU,e.sku),this.parameters.set(on.X_CLIENT_VER,e.version),e.os&&this.parameters.set(on.X_CLIENT_OS,e.os),e.cpu&&this.parameters.set(on.X_CLIENT_CPU,e.cpu)},n.prototype.addApplicationTelemetry=function(e){e!=null&&e.appName&&this.parameters.set(on.X_APP_NAME,e.appName),e!=null&&e.appVersion&&this.parameters.set(on.X_APP_VER,e.appVersion)},n.prototype.addPrompt=function(e){Hh.validatePrompt(e),this.parameters.set(""+on.PROMPT,encodeURIComponent(e))},n.prototype.addState=function(e){it.isEmpty(e)||this.parameters.set(on.STATE,encodeURIComponent(e))},n.prototype.addNonce=function(e){this.parameters.set(on.NONCE,encodeURIComponent(e))},n.prototype.addCodeChallengeParams=function(e,t){if(Hh.validateCodeChallengeParams(e,t),e&&t)this.parameters.set(on.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(on.CODE_CHALLENGE_METHOD,encodeURIComponent(t));else throw Rr.createInvalidCodeChallengeParamsError()},n.prototype.addAuthorizationCode=function(e){this.parameters.set(on.CODE,encodeURIComponent(e))},n.prototype.addDeviceCode=function(e){this.parameters.set(on.DEVICE_CODE,encodeURIComponent(e))},n.prototype.addRefreshToken=function(e){this.parameters.set(on.REFRESH_TOKEN,encodeURIComponent(e))},n.prototype.addCodeVerifier=function(e){this.parameters.set(on.CODE_VERIFIER,encodeURIComponent(e))},n.prototype.addClientSecret=function(e){this.parameters.set(on.CLIENT_SECRET,encodeURIComponent(e))},n.prototype.addClientAssertion=function(e){it.isEmpty(e)||this.parameters.set(on.CLIENT_ASSERTION,encodeURIComponent(e))},n.prototype.addClientAssertionType=function(e){it.isEmpty(e)||this.parameters.set(on.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},n.prototype.addOboAssertion=function(e){this.parameters.set(on.OBO_ASSERTION,encodeURIComponent(e))},n.prototype.addRequestTokenUse=function(e){this.parameters.set(on.REQUESTED_TOKEN_USE,encodeURIComponent(e))},n.prototype.addGrantType=function(e){this.parameters.set(on.GRANT_TYPE,encodeURIComponent(e))},n.prototype.addClientInfo=function(){this.parameters.set(l6,"1")},n.prototype.addExtraQueryParameters=function(e){var t=this,r=Hh.sanitizeEQParams(e,this.parameters);Object.keys(r).forEach(function(o){t.parameters.set(o,e[o])})},n.prototype.addClientCapabilitiesToClaims=function(e,t){var r;if(!e)r={};else try{r=JSON.parse(e)}catch{throw Rr.createInvalidClaimsRequestError()}return t&&t.length>0&&(r.hasOwnProperty(Gv.ACCESS_TOKEN)||(r[Gv.ACCESS_TOKEN]={}),r[Gv.ACCESS_TOKEN][Gv.XMS_CC]={values:t}),JSON.stringify(r)},n.prototype.addUsername=function(e){this.parameters.set(Vb.username,encodeURIComponent(e))},n.prototype.addPassword=function(e){this.parameters.set(Vb.password,encodeURIComponent(e))},n.prototype.addPopToken=function(e){it.isEmpty(e)||(this.parameters.set(on.TOKEN_TYPE,er.POP),this.parameters.set(on.REQ_CNF,encodeURIComponent(e)))},n.prototype.addSshJwk=function(e){it.isEmpty(e)||(this.parameters.set(on.TOKEN_TYPE,er.SSH),this.parameters.set(on.REQ_CNF,encodeURIComponent(e)))},n.prototype.addServerTelemetry=function(e){this.parameters.set(on.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(on.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},n.prototype.addThrottling=function(){this.parameters.set(on.X_MS_LIB_CAPABILITY,i0.X_MS_LIB_CAPABILITY_VALUE)},n.prototype.addLogoutHint=function(e){this.parameters.set(on.LOGOUT_HINT,encodeURIComponent(e))},n.prototype.createQueryString=function(){var e=new Array;return this.parameters.forEach(function(t,r){e.push(r+"="+t)}),e.join("&")},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var C1=function(){function n(e,t){this.config=y6(e),this.logger=new Yb(this.config.loggerOptions,bP,b1),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new E6(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}return n.prototype.createTokenRequestHeaders=function(e){var t={};if(t[Ts.CONTENT_TYPE]=Y.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case Rs.HOME_ACCOUNT_ID:try{var r=Kv(e.credential);t[Ts.CCS_HEADER]="Oid:"+r.uid+"@"+r.utid}catch(o){this.logger.verbose("Could not parse home account ID for CCS Header: "+o)}break;case Rs.UPN:t[Ts.CCS_HEADER]="UPN: "+e.credential;break}return t},n.prototype.executePostToTokenEndpoint=function(e,t,r,o){return Jt(this,void 0,void 0,function(){var s;return Zt(this,function(u){switch(u.label){case 0:return[4,this.networkManager.sendPostRequest(o,e,{body:t,headers:r})];case 1:return s=u.sent(),this.config.serverTelemetryManager&&s.status<500&&s.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,s]}})})},n.prototype.updateAuthority=function(e){if(!e.discoveryComplete())throw rt.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},n.prototype.createTokenQueryParameters=function(e){var t=new s0;return e.tokenQueryParameters&&t.addExtraQueryParameters(e.tokenQueryParameters),t.createQueryString()},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var w1=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 Nt.ID_TOKEN:return Hc.ID_TOKEN;case Nt.ACCESS_TOKEN:case Nt.ACCESS_TOKEN_WITH_AUTH_SCHEME:return Hc.ACCESS_TOKEN;case Nt.REFRESH_TOKEN:return Hc.REFRESH_TOKEN;default:throw rt.createUnexpectedCredentialTypeError()}},n.generateCredentialCacheKey=function(e,t,r,o,s,u,f,p,v){var g=[this.generateAccountIdForCacheKey(e,t),this.generateCredentialIdForCacheKey(r,o,s,f),this.generateTargetForCacheKey(u),this.generateClaimsHashForCacheKey(v),this.generateSchemeForCacheKey(p)];return g.join(eo.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateAccountIdForCacheKey=function(e,t){var r=[e,t];return r.join(eo.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateCredentialIdForCacheKey=function(e,t,r,o){var s=e===Nt.REFRESH_TOKEN&&o||t,u=[e,s,r||Y.EMPTY_STRING];return u.join(eo.CACHE_KEY_SEPARATOR).toLowerCase()},n.generateTargetForCacheKey=function(e){return(e||Y.EMPTY_STRING).toLowerCase()},n.generateClaimsHashForCacheKey=function(e){return(e||Y.EMPTY_STRING).toLowerCase()},n.generateSchemeForCacheKey=function(e){return e&&e.toLowerCase()!==er.BEARER.toLowerCase()?e.toLowerCase():Y.EMPTY_STRING},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var $h=function(n){Qa(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.createIdTokenEntity=function(t,r,o,s,u){var f=new e;return f.credentialType=Nt.ID_TOKEN,f.homeAccountId=t,f.environment=r,f.clientId=s,f.secret=o,f.realm=u,f},e.isIdTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===Nt.ID_TOKEN:!1},e}(w1);/*! @azure/msal-common v13.3.0 2023-08-24 */var Ks=function(){function n(){}return n.nowSeconds=function(){return Math.round(new Date().getTime()/1e3)},n.isTokenExpired=function(e,t){var r=Number(e)||0,o=n.nowSeconds()+t;return o>r},n.wasClockTurnedBack=function(e){var t=Number(e);return t>n.nowSeconds()},n.delay=function(e,t){return new Promise(function(r){return setTimeout(function(){return r(t)},e)})},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var Bh=function(n){Qa(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.createAccessTokenEntity=function(t,r,o,s,u,f,p,v,g,E,w,S,A,k,M){var P,L,j=new e;j.homeAccountId=t,j.credentialType=Nt.ACCESS_TOKEN,j.secret=o;var U=Ks.nowSeconds();if(j.cachedAt=U.toString(),j.expiresOn=p.toString(),j.extendedExpiresOn=v.toString(),E&&(j.refreshOn=E.toString()),j.environment=r,j.clientId=s,j.realm=u,j.target=f,j.userAssertionHash=S,j.tokenType=it.isEmpty(w)?er.BEARER:w,k&&(j.requestedClaims=k,j.requestedClaimsHash=M),((P=j.tokenType)===null||P===void 0?void 0:P.toLowerCase())!==er.BEARER.toLowerCase())switch(j.credentialType=Nt.ACCESS_TOKEN_WITH_AUTH_SCHEME,j.tokenType){case er.POP:var H=_u.extractTokenClaims(o,g);if(!(!((L=H==null?void 0:H.cnf)===null||L===void 0)&&L.kid))throw rt.createTokenClaimsRequiredError();j.keyId=H.cnf.kid;break;case er.SSH:j.keyId=A}return j},e.isAccessTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("realm")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.hasOwnProperty("target")&&(t.credentialType===Nt.ACCESS_TOKEN||t.credentialType===Nt.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1},e}(w1);/*! @azure/msal-common v13.3.0 2023-08-24 */var Wv=function(n){Qa(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.createRefreshTokenEntity=function(t,r,o,s,u,f){var p=new e;return p.clientId=s,p.credentialType=Nt.REFRESH_TOKEN,p.environment=r,p.homeAccountId=t,p.secret=o,p.userAssertionHash=f,u&&(p.familyId=u),p},e.isRefreshTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===Nt.REFRESH_TOKEN:!1},e}(w1);/*! @azure/msal-common v13.3.0 2023-08-24 */var wP=["interaction_required","consent_required","login_required"],b6=["message_only","additional_action","basic_action","user_password_expired","consent_required"],Yv={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."}},Rl=function(n){Qa(e,n);function e(t,r,o,s,u,f,p){var v=n.call(this,t,r,o)||this;return Object.setPrototypeOf(v,e.prototype),v.timestamp=s||Y.EMPTY_STRING,v.traceId=u||Y.EMPTY_STRING,v.correlationId=f||Y.EMPTY_STRING,v.claims=p||Y.EMPTY_STRING,v.name="InteractionRequiredAuthError",v}return e.isInteractionRequiredError=function(t,r,o){var s=!!t&&wP.indexOf(t)>-1,u=!!o&&b6.indexOf(o)>-1,f=!!r&&wP.some(function(p){return r.indexOf(p)>-1});return s||f||u},e.createNoTokensFoundError=function(){return new e(Yv.noTokensFoundError.code,Yv.noTokensFoundError.desc)},e.createNativeAccountUnavailableError=function(){return new e(Yv.native_account_unavailable.code,Yv.native_account_unavailable.desc)},e}(St);/*! @azure/msal-common v13.3.0 2023-08-24 */var l0=function(){function n(e,t,r,o,s){this.account=e||null,this.idToken=t||null,this.accessToken=r||null,this.refreshToken=o||null,this.appMetadata=s||null}return n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var $c=function(){function n(){}return n.setRequestState=function(e,t,r){var o=n.generateLibraryState(e,r);return it.isEmpty(t)?o:""+o+Y.RESOURCE_DELIM+t},n.generateLibraryState=function(e,t){if(!e)throw rt.createNoCryptoObjectError("generateLibraryState");var r={id:e.createNewGuid()};t&&(r.meta=t);var o=JSON.stringify(r);return e.base64Encode(o)},n.parseRequestState=function(e,t){if(!e)throw rt.createNoCryptoObjectError("parseRequestState");if(it.isEmpty(t))throw rt.createInvalidStateError(t,"Null, undefined or empty state");try{var r=t.split(Y.RESOURCE_DELIM),o=r[0],s=r.length>1?r.slice(1).join(Y.RESOURCE_DELIM):Y.EMPTY_STRING,u=e.base64Decode(o),f=JSON.parse(u);return{userRequestState:it.isEmpty(s)?Y.EMPTY_STRING:s,libraryState:f}}catch(p){throw rt.createInvalidStateError(t,p)}},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var On=function(){function n(e){if(this._urlString=e,it.isEmpty(this._urlString))throw Rr.createUrlEmptyError();it.isEmpty(this.getHash())&&(this._urlString=n.canonicalizeUri(e))}return Object.defineProperty(n.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),n.canonicalizeUri=function(e){if(e){var t=e.toLowerCase();return it.endsWith(t,"?")?t=t.slice(0,-1):it.endsWith(t,"?/")&&(t=t.slice(0,-2)),it.endsWith(t,"/")||(t+="/"),t}return e},n.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(t){throw Rr.createUrlParseError(t)}if(!e.HostNameAndPort||!e.PathSegments)throw Rr.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw Rr.createInsecureAuthorityUriError(this.urlString)},n.appendQueryString=function(e,t){return it.isEmpty(t)?e:e.indexOf("?")<0?e+"?"+t:e+"&"+t},n.removeHashFromUrl=function(e){return n.canonicalizeUri(e.split("#")[0])},n.prototype.replaceTenantPath=function(e){var t=this.getUrlComponents(),r=t.PathSegments;return e&&r.length!==0&&(r[0]===Uh.COMMON||r[0]===Uh.ORGANIZATIONS)&&(r[0]=e),n.constructAuthorityUriFromObject(t)},n.prototype.getHash=function(){return n.parseHash(this.urlString)},n.prototype.getUrlComponents=function(){var e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw Rr.createUrlParseError("Given url string: "+this.urlString);var r={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]},o=r.AbsolutePath.split("/");return o=o.filter(function(s){return s&&s.length>0}),r.PathSegments=o,!it.isEmpty(r.QueryString)&&r.QueryString.endsWith("/")&&(r.QueryString=r.QueryString.substring(0,r.QueryString.length-1)),r},n.getDomainFromUrl=function(e){var t=RegExp("^([^:/?#]+://)?([^/?#]*)"),r=e.match(t);if(!r)throw Rr.createUrlParseError("Given url string: "+e);return r[2]},n.getAbsoluteUrl=function(e,t){if(e[0]===Y.FORWARD_SLASH){var r=new n(t),o=r.getUrlComponents();return o.Protocol+"//"+o.HostNameAndPort+e}return e},n.parseHash=function(e){var t=e.indexOf("#"),r=e.indexOf("#/");return r>-1?e.substring(r+2):t>-1?e.substring(t+1):Y.EMPTY_STRING},n.parseQueryString=function(e){var t=e.indexOf("?"),r=e.indexOf("/?");return r>-1?e.substring(r+2):t>-1?e.substring(t+1):Y.EMPTY_STRING},n.constructAuthorityUriFromObject=function(e){return new n(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))},n.getDeserializedHash=function(e){if(it.isEmpty(e))return{};var t=n.parseHash(e),r=it.queryStringToObject(it.isEmpty(t)?e:t);if(!r)throw rt.createHashNotDeserializedError(JSON.stringify(r));return r},n.getDeserializedQueryString=function(e){if(it.isEmpty(e))return{};var t=n.parseQueryString(e),r=it.queryStringToObject(it.isEmpty(t)?e:t);if(!r)throw rt.createHashNotDeserializedError(JSON.stringify(r));return r},n.hashContainsKnownProperties=function(e){if(it.isEmpty(e)||e.indexOf("=")<0)return!1;var t=n.getDeserializedHash(e);return!!(t.code||t.error_description||t.error||t.state)},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var be;(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"})(be||(be={}));var Jb;(function(n){n[n.NotStarted=0]="NotStarted",n[n.InProgress=1]="InProgress",n[n.Completed=2]="Completed"})(Jb||(Jb={}));var C6=new Set(["accessTokenSize","durationMs","idTokenSize","matsSilentStatus","matsHttpStatus","refreshTokenSize","queuedTimeMs","startTimeMs","status"]);/*! @azure/msal-common v13.3.0 2023-08-24 */var S1;(function(n){n.SW="sw",n.UHW="uhw"})(S1||(S1={}));var Qv=function(){function n(e,t){this.cryptoUtils=e,this.performanceClient=t}return n.prototype.generateCnf=function(e){var t,r;return Jt(this,void 0,void 0,function(){var o,s,u;return Zt(this,function(f){switch(f.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(be.PopTokenGenerateCnf,e.correlationId),(r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(be.PopTokenGenerateKid,e.correlationId),[4,this.generateKid(e)];case 1:return o=f.sent(),s=this.cryptoUtils.base64Encode(JSON.stringify(o)),u={kid:o.kid,reqCnfString:s},[4,this.cryptoUtils.hashString(s)];case 2:return[2,(u.reqCnfHash=f.sent(),u)]}})})},n.prototype.generateKid=function(e){var t;return Jt(this,void 0,void 0,function(){var r;return Zt(this,function(o){switch(o.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(be.PopTokenGenerateKid,e.correlationId),[4,this.cryptoUtils.getPublicKeyThumbprint(e)];case 1:return r=o.sent(),[2,{kid:r,xms_ksl:S1.SW}]}})})},n.prototype.signPopToken=function(e,t,r){return Jt(this,void 0,void 0,function(){return Zt(this,function(o){return[2,this.signPayload(e,t,r)]})})},n.prototype.signPayload=function(e,t,r,o){return Jt(this,void 0,void 0,function(){var s,u,f,p,v,g;return Zt(this,function(E){switch(E.label){case 0:return s=r.resourceRequestMethod,u=r.resourceRequestUri,f=r.shrClaims,p=r.shrNonce,v=u?new On(u):void 0,g=v==null?void 0:v.getUrlComponents(),[4,this.cryptoUtils.signJwt(Kn({at:e,ts:Ks.nowSeconds(),m:s==null?void 0:s.toUpperCase(),u:g==null?void 0:g.HostNameAndPort,nonce:p||this.cryptoUtils.createNewGuid(),p:g==null?void 0:g.AbsolutePath,q:g!=null&&g.QueryString?[[],g.QueryString]:void 0,client_claims:f||void 0},o),t,r.correlationId)];case 1:return[2,E.sent()]}})})},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var T1=function(){function n(){}return n.prototype.generateAppMetadataKey=function(){return n.generateAppMetadataCacheKey(this.environment,this.clientId)},n.generateAppMetadataCacheKey=function(e,t){var r=[_1,e,t];return r.join(eo.CACHE_KEY_SEPARATOR).toLowerCase()},n.createAppMetadataEntity=function(e,t,r){var o=new n;return o.clientId=e,o.environment=t,r&&(o.familyId=r),o},n.isAppMetadataEntity=function(e,t){return t?e.indexOf(_1)===0&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment"):!1},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var w6=function(){function n(e,t){this.cache=e,this.hasChanged=t}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.0 2023-08-24 */var Zb=function(){function n(e,t,r,o,s,u,f){this.clientId=e,this.cacheStorage=t,this.cryptoObj=r,this.logger=o,this.serializableCache=s,this.persistencePlugin=u,this.performanceClient=f}return n.prototype.validateServerAuthorizationCodeResponse=function(e,t,r){if(!e.state||!t)throw e.state?rt.createStateNotFoundError("Cached State"):rt.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(t))throw rt.createStateMismatchError();if(e.error||e.error_description||e.suberror)throw Rl.isInteractionRequiredError(e.error,e.error_description,e.suberror)?new Rl(e.error||Y.EMPTY_STRING,e.error_description,e.suberror,e.timestamp||Y.EMPTY_STRING,e.trace_id||Y.EMPTY_STRING,e.correlation_id||Y.EMPTY_STRING,e.claims||Y.EMPTY_STRING):new Fh(e.error||Y.EMPTY_STRING,e.error_description,e.suberror);e.client_info&&Qb(e.client_info,r)},n.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(Rl.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new Rl(e.error,e.error_description,e.suberror,e.timestamp||Y.EMPTY_STRING,e.trace_id||Y.EMPTY_STRING,e.correlation_id||Y.EMPTY_STRING,e.claims||Y.EMPTY_STRING);var t=e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id;throw new Fh(e.error,t,e.suberror)}},n.prototype.handleServerTokenResponse=function(e,t,r,o,s,u,f,p,v){var g;return Jt(this,void 0,void 0,function(){var E,w,S,A,k,M,P;return Zt(this,function(L){switch(L.label){case 0:if((g=this.performanceClient)===null||g===void 0||g.addQueueMeasurement(be.HandleServerTokenResponse,e.correlation_id),e.id_token){if(E=new _u(e.id_token||Y.EMPTY_STRING,this.cryptoObj),s&&!it.isEmpty(s.nonce)&&E.claims.nonce!==s.nonce)throw rt.createNonceMismatchError();if(o.maxAge||o.maxAge===0){if(w=E.claims.auth_time,!w)throw rt.createAuthTimeNotFoundError();_u.checkMaxAge(w,o.maxAge)}}this.homeAccountIdentifier=zo.generateHomeAccountId(e.client_info||Y.EMPTY_STRING,t.authorityType,this.logger,this.cryptoObj,E),s&&s.state&&(S=$c.parseRequestState(this.cryptoObj,s.state)),e.key_id=e.key_id||o.sshKid||void 0,A=this.generateCacheRecord(e,t,r,o,E,u,s),L.label=1;case 1:return L.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),k=new w6(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(k)]):[3,3];case 2:L.sent(),L.label=3;case 3:return f&&!p&&A.account&&(M=A.account.generateAccountKey(),P=this.cacheStorage.getAccount(M),!P)?(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,t,A,!1,o,E,S,void 0,v)]):[4,this.cacheStorage.saveCacheRecord(A)];case 4:return L.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&k?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(k)]):[3,7];case 6:L.sent(),L.label=7;case 7:return[7];case 8:return[2,n.generateAuthenticationResult(this.cryptoObj,t,A,!1,o,E,S,e,v)]}})})},n.prototype.generateCacheRecord=function(e,t,r,o,s,u,f){var p=t.getPreferredCache();if(it.isEmpty(p))throw rt.createInvalidCacheEnvironmentError();var v,g;!it.isEmpty(e.id_token)&&s&&(v=$h.createIdTokenEntity(this.homeAccountIdentifier,p,e.id_token||Y.EMPTY_STRING,this.clientId,s.claims.tid||Y.EMPTY_STRING),g=this.generateAccountEntity(e,s,t,f));var E=null;if(!it.isEmpty(e.access_token)){var w=e.scope?sa.fromString(e.scope):new sa(o.scopes||[]),S=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,A=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,k=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,M=r+S,P=M+A,L=k&&k>0?r+k:void 0;E=Bh.createAccessTokenEntity(this.homeAccountIdentifier,p,e.access_token||Y.EMPTY_STRING,this.clientId,s?s.claims.tid||Y.EMPTY_STRING:t.tenant,w.printScopes(),M,P,this.cryptoObj,L,e.token_type,u,e.key_id,o.claims,o.requestedClaimsHash)}var j=null;it.isEmpty(e.refresh_token)||(j=Wv.createRefreshTokenEntity(this.homeAccountIdentifier,p,e.refresh_token||Y.EMPTY_STRING,this.clientId,e.foci,u));var U=null;return it.isEmpty(e.foci)||(U=T1.createAppMetadataEntity(this.clientId,p,e.foci)),new l0(g,v,E,j,U)},n.prototype.generateAccountEntity=function(e,t,r,o){var s=r.authorityType,u=o?o.cloud_graph_host_name:Y.EMPTY_STRING,f=o?o.msgraph_host:Y.EMPTY_STRING;if(s===Na.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),zo.createGenericAccount(this.homeAccountIdentifier,t,r,u,f);if(it.isEmpty(e.client_info)&&r.protocolMode==="AAD")throw rt.createClientInfoEmptyError();return e.client_info?zo.createAccount(e.client_info,this.homeAccountIdentifier,t,r,u,f):zo.createGenericAccount(this.homeAccountIdentifier,t,r,u,f)},n.generateAuthenticationResult=function(e,t,r,o,s,u,f,p,v){var g,E,w;return Jt(this,void 0,void 0,function(){var S,A,k,M,P,L,j,U,H,W,Q;return Zt(this,function(Te){switch(Te.label){case 0:if(S=Y.EMPTY_STRING,A=[],k=null,P=Y.EMPTY_STRING,!r.accessToken)return[3,4];if(r.accessToken.tokenType!==er.POP)return[3,2];if(L=new Qv(e),j=r.accessToken,U=j.secret,H=j.keyId,!H)throw rt.createKeyIdMissingError();return[4,L.signPopToken(U,H,s)];case 1:return S=Te.sent(),[3,3];case 2:S=r.accessToken.secret,Te.label=3;case 3:A=sa.fromString(r.accessToken.target).asArray(),k=new Date(Number(r.accessToken.expiresOn)*1e3),M=new Date(Number(r.accessToken.extendedExpiresOn)*1e3),Te.label=4;case 4:return r.appMetadata&&(P=r.appMetadata.familyId===n0?n0:Y.EMPTY_STRING),W=(u==null?void 0:u.claims.oid)||(u==null?void 0:u.claims.sub)||Y.EMPTY_STRING,Q=(u==null?void 0:u.claims.tid)||Y.EMPTY_STRING,p!=null&&p.spa_accountid&&r.account&&(r.account.nativeAccountId=p==null?void 0:p.spa_accountid),[2,{authority:t.canonicalAuthority,uniqueId:W,tenantId:Q,scopes:A,account:r.account?r.account.getAccountInfo():null,idToken:u?u.rawToken:Y.EMPTY_STRING,idTokenClaims:u?u.claims:{},accessToken:S,fromCache:o,expiresOn:k,correlationId:s.correlationId,requestId:v||Y.EMPTY_STRING,extExpiresOn:M,familyId:P,tokenType:((g=r.accessToken)===null||g===void 0?void 0:g.tokenType)||Y.EMPTY_STRING,state:f?f.userRequestState:Y.EMPTY_STRING,cloudGraphHostName:((E=r.account)===null||E===void 0?void 0:E.cloudGraphHostName)||Y.EMPTY_STRING,msGraphHost:((w=r.account)===null||w===void 0?void 0:w.msGraphHost)||Y.EMPTY_STRING,code:p==null?void 0:p.spa_code,fromNativeBroker:!1}]}})})},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var SP=function(n){Qa(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.includeRedirectUri=!0,o}return e.prototype.getAuthCodeUrl=function(t){var r,o;return Jt(this,void 0,void 0,function(){var s;return Zt(this,function(u){switch(u.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(be.GetAuthCodeUrl,t.correlationId),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(be.AuthClientCreateQueryString,t.correlationId),[4,this.createAuthCodeUrlQueryString(t)];case 1:return s=u.sent(),[2,On.appendQueryString(this.authority.authorizationEndpoint,s)]}})})},e.prototype.acquireToken=function(t,r){var o,s,u,f,p,v;return Jt(this,void 0,void 0,function(){var g,E,w,S,A,k,M=this;return Zt(this,function(P){switch(P.label){case 0:if(!t||!t.code)throw rt.createTokenRequestCannotBeMadeError();return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(be.AuthClientAcquireToken,t.correlationId),g=(s=this.performanceClient)===null||s===void 0?void 0:s.startMeasurement("AuthCodeClientAcquireToken",t.correlationId),this.logger.info("in acquireToken call in auth-code client"),E=Ks.nowSeconds(),(u=this.performanceClient)===null||u===void 0||u.setPreQueueTime(be.AuthClientExecuteTokenRequest,t.correlationId),[4,this.executeTokenRequest(this.authority,t)];case 1:return w=P.sent(),S=(f=w.headers)===null||f===void 0?void 0:f[Ts.X_MS_REQUEST_ID],A=(p=w.headers)===null||p===void 0?void 0:p[Ts.X_MS_HTTP_VERSION],A&&(g==null||g.addStaticFields({httpVerAuthority:A})),k=new Zb(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin,this.performanceClient),k.validateTokenResponse(w.body),(v=this.performanceClient)===null||v===void 0||v.setPreQueueTime(be.HandleServerTokenResponse,t.correlationId),[2,k.handleServerTokenResponse(w.body,this.authority,E,t,r,void 0,void 0,void 0,S).then(function(L){return g==null||g.endMeasurement({success:!0}),L}).catch(function(L){throw M.logger.verbose("Error in fetching token in ACC",t.correlationId),g==null||g.endMeasurement({errorCode:L.errorCode,subErrorCode:L.subError,success:!1}),L})]}})})},e.prototype.handleFragmentResponse=function(t,r){var o=new Zb(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),s=new On(t),u=On.getDeserializedHash(s.getHash());if(o.validateServerAuthorizationCodeResponse(u,r,this.cryptoUtils),!u.code)throw rt.createNoAuthCodeInServerResponseError();return Kn(Kn({},u),{code:u.code})},e.prototype.getLogoutUri=function(t){if(!t)throw Rr.createEmptyLogoutRequestError();var r=this.createLogoutUrlQueryString(t);return On.appendQueryString(this.authority.endSessionEndpoint,r)},e.prototype.executeTokenRequest=function(t,r){var o,s;return Jt(this,void 0,void 0,function(){var u,f,p,v,g,E,w;return Zt(this,function(S){switch(S.label){case 0:return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(be.AuthClientExecuteTokenRequest,r.correlationId),(s=this.performanceClient)===null||s===void 0||s.setPreQueueTime(be.AuthClientCreateTokenRequestBody,r.correlationId),u=this.createTokenQueryParameters(r),f=On.appendQueryString(t.tokenEndpoint,u),[4,this.createTokenRequestBody(r)];case 1:if(p=S.sent(),v=void 0,r.clientInfo)try{g=Qb(r.clientInfo,this.cryptoUtils),v={credential:""+g.uid+eo.CLIENT_INFO_SEPARATOR+g.utid,type:Rs.HOME_ACCOUNT_ID}}catch(A){this.logger.verbose("Could not parse client info for CCS Header: "+A)}return E=this.createTokenRequestHeaders(v||r.ccsCredential),w={clientId:this.config.authOptions.clientId,authority:t.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(f,p,E,w)]}})})},e.prototype.createTokenRequestBody=function(t){var r,o;return Jt(this,void 0,void 0,function(){var s,u,f,p,v,g,E,E,w;return Zt(this,function(S){switch(S.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(be.AuthClientCreateTokenRequestBody,t.correlationId),s=new s0,s.addClientId(this.config.authOptions.clientId),this.includeRedirectUri?s.addRedirectUri(t.redirectUri):Hh.validateRedirectUri(t.redirectUri),s.addScopes(t.scopes),s.addAuthorizationCode(t.code),s.addLibraryInfo(this.config.libraryInfo),s.addApplicationTelemetry(this.config.telemetry.application),s.addThrottling(),this.serverTelemetryManager&&s.addServerTelemetry(this.serverTelemetryManager),t.codeVerifier&&s.addCodeVerifier(t.codeVerifier),this.config.clientCredentials.clientSecret&&s.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(u=this.config.clientCredentials.clientAssertion,s.addClientAssertion(u.assertion),s.addClientAssertionType(u.assertionType)),s.addGrantType(Gb.AUTHORIZATION_CODE_GRANT),s.addClientInfo(),t.authenticationScheme!==er.POP?[3,2]:(f=new Qv(this.cryptoUtils,this.performanceClient),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(be.PopTokenGenerateCnf,t.correlationId),[4,f.generateCnf(t)]);case 1:return p=S.sent(),s.addPopToken(p.reqCnfString),[3,3];case 2:if(t.authenticationScheme===er.SSH)if(t.sshJwk)s.addSshJwk(t.sshJwk);else throw Rr.createMissingSshJwkError();S.label=3;case 3:if(v=t.correlationId||this.config.cryptoInterface.createNewGuid(),s.addCorrelationId(v),(!it.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&s.addClaims(t.claims,this.config.authOptions.clientCapabilities),g=void 0,t.clientInfo)try{E=Qb(t.clientInfo,this.cryptoUtils),g={credential:""+E.uid+eo.CLIENT_INFO_SEPARATOR+E.utid,type:Rs.HOME_ACCOUNT_ID}}catch(A){this.logger.verbose("Could not parse client info for CCS Header: "+A)}else g=t.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&g)switch(g.type){case Rs.HOME_ACCOUNT_ID:try{E=Kv(g.credential),s.addCcsOid(E)}catch(A){this.logger.verbose("Could not parse home account ID for CCS Header: "+A)}break;case Rs.UPN:s.addCcsUpn(g.credential);break}return t.tokenBodyParameters&&s.addExtraQueryParameters(t.tokenBodyParameters),t.enableSpaAuthorizationCode&&(!t.tokenBodyParameters||!t.tokenBodyParameters[on.RETURN_SPA_CODE])&&s.addExtraQueryParameters((w={},w[on.RETURN_SPA_CODE]="1",w)),[2,s.createQueryString()]}})})},e.prototype.createAuthCodeUrlQueryString=function(t){var r;return Jt(this,void 0,void 0,function(){var o,s,u,f,p,v,v,v,g,E;return Zt(this,function(w){switch(w.label){case 0:if((r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(be.AuthClientCreateQueryString,t.correlationId),o=new s0,o.addClientId(this.config.authOptions.clientId),s=zb(t.scopes||[],t.extraScopesToConsent||[]),o.addScopes(s),o.addRedirectUri(t.redirectUri),u=t.correlationId||this.config.cryptoInterface.createNewGuid(),o.addCorrelationId(u),o.addResponseMode(t.responseMode),o.addResponseTypeCode(),o.addLibraryInfo(this.config.libraryInfo),o.addApplicationTelemetry(this.config.telemetry.application),o.addClientInfo(),t.codeChallenge&&t.codeChallengeMethod&&o.addCodeChallengeParams(t.codeChallenge,t.codeChallengeMethod),t.prompt&&o.addPrompt(t.prompt),t.domainHint&&o.addDomainHint(t.domainHint),t.prompt!==aa.SELECT_ACCOUNT)if(t.sid&&t.prompt===aa.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),o.addSid(t.sid);else if(t.account){if(f=this.extractAccountSid(t.account),p=this.extractLoginHint(t.account),p){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),o.addLoginHint(p);try{v=Kv(t.account.homeAccountId),o.addCcsOid(v)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(f&&t.prompt===aa.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),o.addSid(f);try{v=Kv(t.account.homeAccountId),o.addCcsOid(v)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(t.loginHint)this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from request"),o.addLoginHint(t.loginHint),o.addCcsUpn(t.loginHint);else if(t.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),o.addLoginHint(t.account.username);try{v=Kv(t.account.homeAccountId),o.addCcsOid(v)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}}else t.loginHint&&(this.logger.verbose("createAuthCodeUrlQueryString: No account, adding login_hint from request"),o.addLoginHint(t.loginHint),o.addCcsUpn(t.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return t.nonce&&o.addNonce(t.nonce),t.state&&o.addState(t.state),(!it.isEmpty(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&o.addClaims(t.claims,this.config.authOptions.clientCapabilities),t.extraQueryParameters&&o.addExtraQueryParameters(t.extraQueryParameters),t.nativeBroker?(o.addNativeBroker(),t.authenticationScheme!==er.POP?[3,2]:(g=new Qv(this.cryptoUtils),[4,g.generateCnf(t)])):[3,2];case 1:E=w.sent(),o.addPopToken(E.reqCnfString),w.label=2;case 2:return[2,o.createQueryString()]}})})},e.prototype.createLogoutUrlQueryString=function(t){var r=new s0;return t.postLogoutRedirectUri&&r.addPostLogoutRedirectUri(t.postLogoutRedirectUri),t.correlationId&&r.addCorrelationId(t.correlationId),t.idTokenHint&&r.addIdTokenHint(t.idTokenHint),t.state&&r.addState(t.state),t.logoutHint&&r.addLogoutHint(t.logoutHint),t.extraQueryParameters&&r.addExtraQueryParameters(t.extraQueryParameters),r.createQueryString()},e.prototype.extractAccountSid=function(t){var r;return((r=t.idTokenClaims)===null||r===void 0?void 0:r.sid)||null},e.prototype.extractLoginHint=function(t){var r;return((r=t.idTokenClaims)===null||r===void 0?void 0:r.login_hint)||null},e}(C1);/*! @azure/msal-common v13.3.0 2023-08-24 */var TP=function(n){Qa(e,n);function e(t,r){return n.call(this,t,r)||this}return e.prototype.acquireToken=function(t){var r,o,s,u,f,p,v;return Jt(this,void 0,void 0,function(){var g,E,w,S,A,k,M=this;return Zt(this,function(P){switch(P.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(be.RefreshTokenClientAcquireToken,t.correlationId),g=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(be.RefreshTokenClientAcquireToken,t.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",t.correlationId),E=Ks.nowSeconds(),(s=this.performanceClient)===null||s===void 0||s.setPreQueueTime(be.RefreshTokenClientExecuteTokenRequest,t.correlationId),[4,this.executeTokenRequest(t,this.authority)];case 1:return w=P.sent(),S=(u=w.headers)===null||u===void 0?void 0:u[Ts.X_MS_HTTP_VERSION],g==null||g.addStaticFields({refreshTokenSize:((f=w.body.refresh_token)===null||f===void 0?void 0:f.length)||0}),S&&(g==null||g.addStaticFields({httpVerToken:S})),A=(p=w.headers)===null||p===void 0?void 0:p[Ts.X_MS_REQUEST_ID],k=new Zb(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),k.validateTokenResponse(w.body),(v=this.performanceClient)===null||v===void 0||v.setPreQueueTime(be.HandleServerTokenResponse,t.correlationId),[2,k.handleServerTokenResponse(w.body,this.authority,E,t,void 0,void 0,!0,t.forceCache,A).then(function(L){return g==null||g.endMeasurement({success:!0}),L}).catch(function(L){throw M.logger.verbose("Error in fetching refresh token",t.correlationId),g==null||g.endMeasurement({errorCode:L.errorCode,subErrorCode:L.subError,success:!1}),L})]}})})},e.prototype.acquireTokenByRefreshToken=function(t){var r,o,s,u;return Jt(this,void 0,void 0,function(){var f,p,v;return Zt(this,function(g){if(!t)throw Rr.createEmptyTokenRequestError();if((r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(be.RefreshTokenClientAcquireTokenByRefreshToken,t.correlationId),!t.account)throw rt.createNoAccountInSilentRequestError();if(f=this.cacheManager.isAppMetadataFOCI(t.account.environment),f)try{return(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(be.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!0)]}catch(E){if(p=E instanceof Rl&&E.errorCode===Yv.noTokensFoundError.code,v=E instanceof Fh&&E.errorCode===EP.INVALID_GRANT_ERROR&&E.subError===EP.CLIENT_MISMATCH_ERROR,p||v)return(s=this.performanceClient)===null||s===void 0||s.setPreQueueTime(be.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!1)];throw E}return(u=this.performanceClient)===null||u===void 0||u.setPreQueueTime(be.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),[2,this.acquireTokenWithCachedRefreshToken(t,!1)]})})},e.prototype.acquireTokenWithCachedRefreshToken=function(t,r){var o,s,u;return Jt(this,void 0,void 0,function(){var f,p,v;return Zt(this,function(g){if((o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(be.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),f=(s=this.performanceClient)===null||s===void 0?void 0:s.startMeasurement(be.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",t.correlationId),p=this.cacheManager.getRefreshToken(t.account,r),!p)throw f==null||f.discardMeasurement(),Rl.createNoTokensFoundError();return f==null||f.endMeasurement({success:!0}),v=Kn(Kn({},t),{refreshToken:p.secret,authenticationScheme:t.authenticationScheme||er.BEARER,ccsCredential:{credential:t.account.homeAccountId,type:Rs.HOME_ACCOUNT_ID}}),(u=this.performanceClient)===null||u===void 0||u.setPreQueueTime(be.RefreshTokenClientAcquireToken,t.correlationId),[2,this.acquireToken(v)]})})},e.prototype.executeTokenRequest=function(t,r){var o,s,u;return Jt(this,void 0,void 0,function(){var f,p,v,g,E,w;return Zt(this,function(S){switch(S.label){case 0:return(o=this.performanceClient)===null||o===void 0||o.addQueueMeasurement(be.RefreshTokenClientExecuteTokenRequest,t.correlationId),f=(s=this.performanceClient)===null||s===void 0?void 0:s.startMeasurement(be.RefreshTokenClientExecuteTokenRequest,t.correlationId),(u=this.performanceClient)===null||u===void 0||u.setPreQueueTime(be.RefreshTokenClientCreateTokenRequestBody,t.correlationId),p=this.createTokenQueryParameters(t),v=On.appendQueryString(r.tokenEndpoint,p),[4,this.createTokenRequestBody(t)];case 1:return g=S.sent(),E=this.createTokenRequestHeaders(t.ccsCredential),w={clientId:this.config.authOptions.clientId,authority:r.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},[2,this.executePostToTokenEndpoint(v,g,E,w).then(function(A){return f==null||f.endMeasurement({success:!0}),A}).catch(function(A){throw f==null||f.endMeasurement({success:!1}),A})]}})})},e.prototype.createTokenRequestBody=function(t){var r,o,s;return Jt(this,void 0,void 0,function(){var u,f,p,v,g,E,w;return Zt(this,function(S){switch(S.label){case 0:return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(be.RefreshTokenClientCreateTokenRequestBody,t.correlationId),u=t.correlationId,f=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(be.BaseClientCreateTokenRequestHeaders,u),p=new s0,p.addClientId(this.config.authOptions.clientId),p.addScopes(t.scopes),p.addGrantType(Gb.REFRESH_TOKEN_GRANT),p.addClientInfo(),p.addLibraryInfo(this.config.libraryInfo),p.addApplicationTelemetry(this.config.telemetry.application),p.addThrottling(),this.serverTelemetryManager&&p.addServerTelemetry(this.serverTelemetryManager),p.addCorrelationId(u),p.addRefreshToken(t.refreshToken),this.config.clientCredentials.clientSecret&&p.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(v=this.config.clientCredentials.clientAssertion,p.addClientAssertion(v.assertion),p.addClientAssertionType(v.assertionType)),t.authenticationScheme!==er.POP?[3,2]:(g=new Qv(this.cryptoUtils,this.performanceClient),(s=this.performanceClient)===null||s===void 0||s.setPreQueueTime(be.PopTokenGenerateCnf,t.correlationId),[4,g.generateCnf(t)]);case 1:return E=S.sent(),p.addPopToken(E.reqCnfString),[3,3];case 2:if(t.authenticationScheme===er.SSH)if(t.sshJwk)p.addSshJwk(t.sshJwk);else throw f==null||f.endMeasurement({success:!1}),Rr.createMissingSshJwkError();S.label=3;case 3:if((!it.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&p.addClaims(t.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&t.ccsCredential)switch(t.ccsCredential.type){case Rs.HOME_ACCOUNT_ID:try{w=Kv(t.ccsCredential.credential),p.addCcsOid(w)}catch(A){this.logger.verbose("Could not parse home account ID for CCS Header: "+A)}break;case Rs.UPN:p.addCcsUpn(t.ccsCredential.credential);break}return f==null||f.endMeasurement({success:!0}),[2,p.createQueryString()]}})})},e}(C1);/*! @azure/msal-common v13.3.0 2023-08-24 */var S6=function(n){Qa(e,n);function e(t,r){return n.call(this,t,r)||this}return e.prototype.acquireToken=function(t){return Jt(this,void 0,void 0,function(){var r,o;return Zt(this,function(s){switch(s.label){case 0:return s.trys.push([0,2,,3]),[4,this.acquireCachedToken(t)];case 1:return[2,s.sent()];case 2:if(r=s.sent(),r instanceof rt&&r.errorCode===He.tokenRefreshRequired.code)return o=new TP(this.config,this.performanceClient),[2,o.acquireTokenByRefreshToken(t)];throw r;case 3:return[2]}})})},e.prototype.acquireCachedToken=function(t){var r,o,s,u,f;return Jt(this,void 0,void 0,function(){var p,v;return Zt(this,function(g){switch(g.label){case 0:if(!t)throw Rr.createEmptyTokenRequestError();if(t.forceRefresh)throw(r=this.serverTelemetryManager)===null||r===void 0||r.setCacheOutcome(Wd.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),rt.createRefreshRequiredError();if(!this.config.cacheOptions.claimsBasedCachingEnabled&&!it.isEmptyObj(t.claims))throw(o=this.serverTelemetryManager)===null||o===void 0||o.setCacheOutcome(Wd.CLAIMS_REQUESTED_CACHE_SKIPPED),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because claims-based caching is disabled and claims were requested."),rt.createRefreshRequiredError();if(!t.account)throw rt.createNoAccountInSilentRequestError();if(p=t.authority||this.authority.getPreferredCache(),v=this.cacheManager.readCacheRecord(t.account,t,p),v.accessToken){if(Ks.wasClockTurnedBack(v.accessToken.cachedAt)||Ks.isTokenExpired(v.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw(u=this.serverTelemetryManager)===null||u===void 0||u.setCacheOutcome(Wd.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),rt.createRefreshRequiredError();if(v.accessToken.refreshOn&&Ks.isTokenExpired(v.accessToken.refreshOn,0))throw(f=this.serverTelemetryManager)===null||f===void 0||f.setCacheOutcome(Wd.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),rt.createRefreshRequiredError()}else throw(s=this.serverTelemetryManager)===null||s===void 0||s.setCacheOutcome(Wd.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),rt.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(v,t)];case 1:return[2,g.sent()]}})})},e.prototype.generateResultFromCacheRecord=function(t,r){return Jt(this,void 0,void 0,function(){var o,s;return Zt(this,function(u){switch(u.label){case 0:if(t.idToken&&(o=new _u(t.idToken.secret,this.config.cryptoInterface)),r.maxAge||r.maxAge===0){if(s=o==null?void 0:o.claims.auth_time,!s)throw rt.createAuthTimeNotFoundError();_u.checkMaxAge(s,r.maxAge)}return[4,Zb.generateAuthenticationResult(this.cryptoUtils,this.authority,t,!0,r,o)];case 1:return[2,u.sent()]}})})},e}(C1);/*! @azure/msal-common v13.3.0 2023-08-24 */function T6(n){return n.hasOwnProperty("authorization_endpoint")&&n.hasOwnProperty("token_endpoint")&&n.hasOwnProperty("issuer")&&n.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v13.3.0 2023-08-24 */var RP={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"]}]}}},xP=RP.endpointMetadata,AP=RP.instanceDiscoveryMetadata;/*! @azure/msal-common v13.3.0 2023-08-24 */var u0;(function(n){n.AAD="AAD",n.OIDC="OIDC"})(u0||(u0={}));/*! @azure/msal-common v13.3.0 2023-08-24 */var R1=function(){function n(){this.expiresAt=Ks.nowSeconds()+r0.REFRESH_TIME_SECONDS}return n.prototype.updateCloudDiscoveryMetadata=function(e,t){this.aliases=e.aliases,this.preferred_cache=e.preferred_cache,this.preferred_network=e.preferred_network,this.aliasesFromNetwork=t},n.prototype.updateEndpointMetadata=function(e,t){this.authorization_endpoint=e.authorization_endpoint,this.token_endpoint=e.token_endpoint,this.end_session_endpoint=e.end_session_endpoint,this.issuer=e.issuer,this.endpointsFromNetwork=t,this.jwks_uri=e.jwks_uri},n.prototype.updateCanonicalAuthority=function(e){this.canonical_authority=e},n.prototype.resetExpiresAt=function(){this.expiresAt=Ks.nowSeconds()+r0.REFRESH_TIME_SECONDS},n.prototype.isExpired=function(){return this.expiresAt<=Ks.nowSeconds()},n.isAuthorityMetadataEntity=function(e,t){return t?e.indexOf(r0.CACHE_KEY)===0&&t.hasOwnProperty("aliases")&&t.hasOwnProperty("preferred_cache")&&t.hasOwnProperty("preferred_network")&&t.hasOwnProperty("canonical_authority")&&t.hasOwnProperty("authorization_endpoint")&&t.hasOwnProperty("token_endpoint")&&t.hasOwnProperty("issuer")&&t.hasOwnProperty("aliasesFromNetwork")&&t.hasOwnProperty("endpointsFromNetwork")&&t.hasOwnProperty("expiresAt")&&t.hasOwnProperty("jwks_uri"):!1},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */function R6(n){return n.hasOwnProperty("tenant_discovery_endpoint")&&n.hasOwnProperty("metadata")}/*! @azure/msal-common v13.3.0 2023-08-24 */function x6(n){return n.hasOwnProperty("error")&&n.hasOwnProperty("error_description")}/*! @azure/msal-common v13.3.0 2023-08-24 */var A6=function(){function n(e,t,r){this.networkInterface=e,this.performanceClient=t,this.correlationId=r}return n.prototype.detectRegion=function(e,t){var r,o,s,u;return Jt(this,void 0,void 0,function(){var f,p,v,g,E;return Zt(this,function(w){switch(w.label){case 0:if((r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(be.RegionDiscoveryDetectRegion,this.correlationId),f=e,f)return[3,8];p=n.IMDS_OPTIONS,w.label=1;case 1:return w.trys.push([1,6,,7]),(o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(be.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(Y.IMDS_VERSION,p)];case 2:return v=w.sent(),v.status===Vv.httpSuccess&&(f=v.body,t.region_source=Kd.IMDS),v.status!==Vv.httpBadRequest?[3,5]:((s=this.performanceClient)===null||s===void 0||s.setPreQueueTime(be.RegionDiscoveryGetCurrentVersion,this.correlationId),[4,this.getCurrentVersion(p)]);case 3:return g=w.sent(),g?((u=this.performanceClient)===null||u===void 0||u.setPreQueueTime(be.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[4,this.getRegionFromIMDS(g,p)]):(t.region_source=Kd.FAILED_AUTO_DETECTION,[2,null]);case 4:E=w.sent(),E.status===Vv.httpSuccess&&(f=E.body,t.region_source=Kd.IMDS),w.label=5;case 5:return[3,7];case 6:return w.sent(),t.region_source=Kd.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:t.region_source=Kd.ENVIRONMENT_VARIABLE,w.label=9;case 9:return f||(t.region_source=Kd.FAILED_AUTO_DETECTION),[2,f||null]}})})},n.prototype.getRegionFromIMDS=function(e,t){var r;return Jt(this,void 0,void 0,function(){return Zt(this,function(o){return(r=this.performanceClient)===null||r===void 0||r.addQueueMeasurement(be.RegionDiscoveryGetRegionFromIMDS,this.correlationId),[2,this.networkInterface.sendGetRequestAsync(Y.IMDS_ENDPOINT+"?api-version="+e+"&format=text",t,Y.IMDS_TIMEOUT)]})})},n.prototype.getCurrentVersion=function(e){var t;return Jt(this,void 0,void 0,function(){var r;return Zt(this,function(o){switch(o.label){case 0:(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(be.RegionDiscoveryGetCurrentVersion,this.correlationId),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(Y.IMDS_ENDPOINT+"?format=json",e)];case 2:return r=o.sent(),r.status===Vv.httpBadRequest&&r.body&&r.body["newest-versions"]&&r.body["newest-versions"].length>0?[2,r.body["newest-versions"][0]]:[2,null];case 3:return o.sent(),[2,null];case 4:return[2]}})})},n.IMDS_OPTIONS={headers:{Metadata:"true"}},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var c0=function(){function n(e,t,r,o,s,u,f){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=r,this.authorityOptions=o,this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.logger=s,this.performanceClient=u,this.correlationId=f,this.regionDiscovery=new A6(t,this.performanceClient,this.correlationId)}return n.prototype.getAuthorityType=function(e){if(e.HostNameAndPort.endsWith(Y.CIAM_AUTH_URL))return Na.Ciam;var t=e.PathSegments;if(t.length)switch(t[0].toLowerCase()){case Y.ADFS:return Na.Adfs;case Y.DSTS:return Na.Dsts}return Na.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(e){this._canonicalAuthority=new On(e),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 rt.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 rt.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 rt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw rt.createLogoutNotSupportedError();return this.replacePath(this.metadata.end_session_endpoint)}else throw rt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(n.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete())return this.replacePath(this.metadata.issuer);throw rt.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 rt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),n.prototype.canReplaceTenant=function(e){return e.PathSegments.length===1&&!n.reservedTenantDomains.has(e.PathSegments[0])&&this.getAuthorityType(e)===Na.Default&&this.protocolMode===u0.AAD},n.prototype.replaceTenant=function(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)},n.prototype.replacePath=function(e){var t=this,r=e,o=new On(this.metadata.canonical_authority),s=o.getUrlComponents(),u=s.PathSegments,f=this.canonicalAuthorityUrlComponents.PathSegments;return f.forEach(function(p,v){var g=u[v];if(v===0&&t.canReplaceTenant(s)){var E=new On(t.metadata.authorization_endpoint).getUrlComponents().PathSegments[0];g!==E&&(t.logger.verbose("Replacing tenant domain name "+g+" with id "+E),g=E)}p!==g&&(r=r.replace("/"+g+"/","/"+p+"/"))}),this.replaceTenant(r)},Object.defineProperty(n.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===Na.Adfs||this.authorityType===Na.Dsts||this.protocolMode===u0.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 e,t,r;return Jt(this,void 0,void 0,function(){var o,s,u,f;return Zt(this,function(p){switch(p.label){case 0:return(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(be.AuthorityResolveEndpointsAsync,this.correlationId),o=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort),o||(o=new R1,o.updateCanonicalAuthority(this.canonicalAuthority)),(t=this.performanceClient)===null||t===void 0||t.setPreQueueTime(be.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),[4,this.updateCloudDiscoveryMetadata(o)];case 1:return s=p.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,o.preferred_network),(r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(be.AuthorityUpdateEndpointMetadata,this.correlationId),[4,this.updateEndpointMetadata(o)];case 2:return u=p.sent(),s!==Vs.CACHE&&u!==Vs.CACHE&&(o.resetExpiresAt(),o.updateCanonicalAuthority(this.canonicalAuthority)),f=this.cacheManager.generateAuthorityMetadataCacheKey(o.preferred_cache),this.cacheManager.setAuthorityMetadata(f,o),this.metadata=o,[2]}})})},n.prototype.updateEndpointMetadata=function(e){var t,r,o,s,u,f;return Jt(this,void 0,void 0,function(){var p,v;return Zt(this,function(g){switch(g.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(be.AuthorityUpdateEndpointMetadata,this.correlationId),p=this.getEndpointMetadataFromConfig(),p?(e.updateEndpointMetadata(p,!1),[2,Vs.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,Vs.CACHE]:((r=this.performanceClient)===null||r===void 0||r.setPreQueueTime(be.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),[4,this.getEndpointMetadataFromNetwork()]);case 1:return p=g.sent(),p?!((o=this.authorityOptions.azureRegionConfiguration)===null||o===void 0)&&o.azureRegion?((s=this.performanceClient)===null||s===void 0||s.setPreQueueTime(be.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(p)]):[3,3]:[3,4];case 2:p=g.sent(),g.label=3;case 3:return e.updateEndpointMetadata(p,!0),[2,Vs.NETWORK];case 4:return v=this.getEndpointMetadataFromHardcodedValues(),v&&!this.authorityOptions.skipAuthorityMetadataCache?!((u=this.authorityOptions.azureRegionConfiguration)===null||u===void 0)&&u.azureRegion?((f=this.performanceClient)===null||f===void 0||f.setPreQueueTime(be.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),[4,this.updateMetadataWithRegionalInformation(v)]):[3,6]:[3,7];case 5:v=g.sent(),g.label=6;case 6:return e.updateEndpointMetadata(v,!1),[2,Vs.HARDCODED_VALUES];case 7:throw rt.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},n.prototype.isAuthoritySameType=function(e){var t=new On(e.canonical_authority),r=t.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 Rr.createInvalidAuthorityMetadataError()}return null},n.prototype.getEndpointMetadataFromNetwork=function(){var e;return Jt(this,void 0,void 0,function(){var t,r;return Zt(this,function(o){switch(o.label){case 0:(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(be.AuthorityGetEndpointMetadataFromNetwork,this.correlationId),t={},o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,t)];case 2:return r=o.sent(),[2,T6(r.body)?r.body:null];case 3:return o.sent(),[2,null];case 4:return[2]}})})},n.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in xP?xP[this.canonicalAuthority]:null},n.prototype.updateMetadataWithRegionalInformation=function(e){var t,r,o,s;return Jt(this,void 0,void 0,function(){var u,f;return Zt(this,function(p){switch(p.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(be.AuthorityUpdateMetadataWithRegionalInformation,this.correlationId),u=(r=this.authorityOptions.azureRegionConfiguration)===null||r===void 0?void 0:r.azureRegion,u?u!==Y.AZURE_REGION_AUTO_DISCOVER_FLAG?(this.regionDiscoveryMetadata.region_outcome=o0.CONFIGURED_NO_AUTO_DETECTION,this.regionDiscoveryMetadata.region_used=u,[2,n.replaceWithRegionalInformation(e,u)]):((o=this.performanceClient)===null||o===void 0||o.setPreQueueTime(be.RegionDiscoveryDetectRegion,this.correlationId),[4,this.regionDiscovery.detectRegion((s=this.authorityOptions.azureRegionConfiguration)===null||s===void 0?void 0:s.environmentRegion,this.regionDiscoveryMetadata)]):[3,2];case 1:if(f=p.sent(),f)return this.regionDiscoveryMetadata.region_outcome=o0.AUTO_DETECTION_REQUESTED_SUCCESSFUL,this.regionDiscoveryMetadata.region_used=f,[2,n.replaceWithRegionalInformation(e,f)];this.regionDiscoveryMetadata.region_outcome=o0.AUTO_DETECTION_REQUESTED_FAILED,p.label=2;case 2:return[2,e]}})})},n.prototype.updateCloudDiscoveryMetadata=function(e){var t,r;return Jt(this,void 0,void 0,function(){var o,s,u;return Zt(this,function(f){switch(f.label){case 0:return(t=this.performanceClient)===null||t===void 0||t.addQueueMeasurement(be.AuthorityUpdateCloudDiscoveryMetadata,this.correlationId),this.logger.verbose("Attempting to get cloud discovery metadata in the config"),this.logger.verbosePii("Known Authorities: "+(this.authorityOptions.knownAuthorities||Y.NOT_APPLICABLE)),this.logger.verbosePii("Authority Metadata: "+(this.authorityOptions.authorityMetadata||Y.NOT_APPLICABLE)),this.logger.verbosePii("Canonical Authority: "+(e.canonical_authority||Y.NOT_APPLICABLE)),o=this.getCloudDiscoveryMetadataFromConfig(),o?(this.logger.verbose("Found cloud discovery metadata in the config."),e.updateCloudDiscoveryMetadata(o,!1),[2,Vs.CONFIG]):(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache."),s=e.isExpired(),this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!s?(this.logger.verbose("Found metadata in the cache."),[2,Vs.CACHE]):(s&&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(be.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),[4,this.getCloudDiscoveryMetadataFromNetwork()]));case 1:if(o=f.sent(),o)return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"),e.updateCloudDiscoveryMetadata(o,!0),[2,Vs.NETWORK];if(this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."),u=this.getCloudDiscoveryMetadataFromHarcodedValues(),u&&!this.options.skipAuthorityMetadataCache)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),e.updateCloudDiscoveryMetadata(u,!1),[2,Vs.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."),Rr.createUntrustedAuthorityError()}})})},n.prototype.getCloudDiscoveryMetadataFromConfig=function(){if(this.authorityType===Na.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 e=JSON.parse(this.authorityOptions.cloudDiscoveryMetadata),t=n.getCloudDiscoveryMetadataFromNetworkResponse(e.metadata,this.hostnameAndPort);if(this.logger.verbose("Parsed the cloud discovery metadata."),t)return this.logger.verbose("There is returnable metadata attached to the parsed cloud discovery metadata."),t;this.logger.verbose("There is no metadata attached to the parsed cloud discovery metadata.")}catch{throw this.logger.verbose("Unable to parse the cloud discovery metadata. Throwing Invalid Cloud Discovery Metadata Error."),Rr.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 e;return Jt(this,void 0,void 0,function(){var t,r,o,s,u,f,p,v;return Zt(this,function(g){switch(g.label){case 0:(e=this.performanceClient)===null||e===void 0||e.addQueueMeasurement(be.AuthorityGetCloudDiscoveryMetadataFromNetwork,this.correlationId),t=""+Y.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",r={},o=null,g.label=1;case 1:return g.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(t,r)];case 2:if(s=g.sent(),u=void 0,f=void 0,R6(s.body))u=s.body,f=u.metadata,this.logger.verbosePii("tenant_discovery_endpoint is: "+u.tenant_discovery_endpoint);else if(x6(s.body)){if(this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: "+s.status),u=s.body,u.error===Y.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),[2,null];this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is "+u.error),this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is "+u.error_description),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),f=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),[2,null];return this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),o=n.getCloudDiscoveryMetadataFromNetworkResponse(f,this.hostnameAndPort),[3,4];case 3:return p=g.sent(),p instanceof St?this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
264
+ Error: `+p.errorCode+`
265
+ Error Description: `+p.errorMessage):(v=p,this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
266
+ Error: `+v.name+`
267
+ Error Description: `+v.message)),[2,null];case 4:return o||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),o=n.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,o]}})})},n.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in AP?AP[this.canonicalAuthority]:null},n.prototype.isInKnownAuthorities=function(){var e=this,t=this.authorityOptions.knownAuthorities.filter(function(r){return On.getDomainFromUrl(r).toLowerCase()===e.hostnameAndPort});return t.length>0},n.generateAuthority=function(e,t){var r;if(t&&t.azureCloudInstance!==a0.None){var o=t.tenant?t.tenant:Y.DEFAULT_COMMON_TENANT;r=t.azureCloudInstance+"/"+o+"/"}return r||e},n.createCloudDiscoveryMetadataFromHost=function(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}},n.getCloudDiscoveryMetadataFromNetworkResponse=function(e,t){for(var r=0;r<e.length;r++){var o=e[r];if(o.aliases.indexOf(t)>-1)return o}return null},n.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw rt.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},n.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},n.isPublicCloudAuthority=function(e){return Y.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},n.buildRegionalAuthorityString=function(e,t,r){var o=new On(e);o.validateAsUri();var s=o.getUrlComponents(),u=t+"."+s.HostNameAndPort;this.isPublicCloudAuthority(s.HostNameAndPort)&&(u=t+"."+Y.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var f=On.constructAuthorityUriFromObject(Kn(Kn({},o.getUrlComponents()),{HostNameAndPort:u})).urlString;return r?f+"?"+r:f},n.replaceWithRegionalInformation=function(e,t){return e.authorization_endpoint=n.buildRegionalAuthorityString(e.authorization_endpoint,t),e.token_endpoint=n.buildRegionalAuthorityString(e.token_endpoint,t,Y.REGIONAL_AUTH_NON_MSI_QUERY_STRING),e.end_session_endpoint&&(e.end_session_endpoint=n.buildRegionalAuthorityString(e.end_session_endpoint,t)),e},n.transformCIAMAuthority=function(e){var t=e.endsWith(Y.FORWARD_SLASH)?e:""+e+Y.FORWARD_SLASH,r=new On(e),o=r.getUrlComponents();if(o.PathSegments.length===0&&o.HostNameAndPort.endsWith(Y.CIAM_AUTH_URL)){var s=o.HostNameAndPort.split(".")[0];t=""+t+s+Y.AAD_TENANT_DOMAIN_SUFFIX}return t},n.reservedTenantDomains=new Set(["{tenant}","{tenantid}",Uh.COMMON,Uh.CONSUMERS,Uh.ORGANIZATIONS]),n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var eC=function(){function n(){}return n.createDiscoveredInstance=function(e,t,r,o,s,u,f){return Jt(this,void 0,void 0,function(){var p,v,g;return Zt(this,function(E){switch(E.label){case 0:u==null||u.addQueueMeasurement(be.AuthorityFactoryCreateDiscoveredInstance,f),p=c0.transformCIAMAuthority(e),v=n.createInstance(p,t,r,o,s,u,f),E.label=1;case 1:return E.trys.push([1,3,,4]),u==null||u.setPreQueueTime(be.AuthorityResolveEndpointsAsync,f),[4,v.resolveEndpointsAsync()];case 2:return E.sent(),[2,v];case 3:throw g=E.sent(),rt.createEndpointDiscoveryIncompleteError(g);case 4:return[2]}})})},n.createInstance=function(e,t,r,o,s,u,f){if(it.isEmpty(e))throw Rr.createUrlEmptyError();return new c0(e,t,r,o,s,u,f)},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var tC=function(){function n(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return n.isServerTelemetryEntity=function(e,t){var r=e.indexOf(jo.CACHE_KEY)===0,o=!0;return t&&(o=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),r&&o},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var kP=function(){function n(){}return n.isThrottlingEntity=function(e,t){var r=!1;e&&(r=e.indexOf(i0.THROTTLING_PREFIX)===0);var o=!0;return t&&(o=t.hasOwnProperty("throttleTime")),r&&o},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var k6={sendGetRequestAsync:function(){var n="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(St.createUnexpectedError(n))},sendPostRequestAsync:function(){var n="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(St.createUnexpectedError(n))}};/*! @azure/msal-common v13.3.0 2023-08-24 */var nC={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."}},IP=function(n){Qa(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.name="JoseHeaderError",Object.setPrototypeOf(o,e.prototype),o}return e.createMissingKidError=function(){return new e(nC.missingKidError.code,nC.missingKidError.desc)},e.createMissingAlgError=function(){return new e(nC.missingAlgError.code,nC.missingAlgError.desc)},e}(St);/*! @azure/msal-common v13.3.0 2023-08-24 */var I6=function(){function n(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}return n.getShrHeaderString=function(e){if(!e.kid)throw IP.createMissingKidError();if(!e.alg)throw IP.createMissingAlgError();var t=new n({typ:e.typ||E1.Pop,kid:e.kid,alg:e.alg});return JSON.stringify(t)},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var O6=function(){function n(e,t){this.cacheOutcome=Wd.NO_CACHE_HIT,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||Y.EMPTY_STRING,this.wrapperVer=e.wrapperVer||Y.EMPTY_STRING,this.telemetryCacheKey=jo.CACHE_KEY+eo.CACHE_KEY_SEPARATOR+e.clientId}return n.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+jo.VALUE_SEPARATOR+this.cacheOutcome,t=[this.wrapperSKU,this.wrapperVer].join(jo.VALUE_SEPARATOR),r=this.getRegionDiscoveryFields(),o=[e,r].join(jo.VALUE_SEPARATOR);return[jo.SCHEMA_VERSION,o,t].join(jo.CATEGORY_SEPARATOR)},n.prototype.generateLastRequestHeaderValue=function(){var e=this.getLastRequests(),t=n.maxErrorsToSend(e),r=e.failedRequests.slice(0,2*t).join(jo.VALUE_SEPARATOR),o=e.errors.slice(0,t).join(jo.VALUE_SEPARATOR),s=e.errors.length,u=t<s?jo.OVERFLOW_TRUE:jo.OVERFLOW_FALSE,f=[s,u].join(jo.VALUE_SEPARATOR);return[jo.SCHEMA_VERSION,e.cacheHits,r,o,f].join(jo.CATEGORY_SEPARATOR)},n.prototype.cacheFailedRequest=function(e){var t=this.getLastRequests();t.errors.length>=jo.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),it.isEmpty(e.subError)?it.isEmpty(e.errorCode)?e&&e.toString()?t.errors.push(e.toString()):t.errors.push(jo.UNKNOWN_ERROR):t.errors.push(e.errorCode):t.errors.push(e.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)},n.prototype.incrementCacheHits=function(){var e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits},n.prototype.getLastRequests=function(){var e=new tC,t=this.cacheManager.getServerTelemetry(this.telemetryCacheKey);return t||e},n.prototype.clearTelemetryCache=function(){var e=this.getLastRequests(),t=n.maxErrorsToSend(e),r=e.errors.length;if(t===r)this.cacheManager.removeItem(this.telemetryCacheKey);else{var o=new tC;o.failedRequests=e.failedRequests.slice(t*2),o.errors=e.errors.slice(t),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,o)}},n.maxErrorsToSend=function(e){var t,r=0,o=0,s=e.errors.length;for(t=0;t<s;t++){var u=e.failedRequests[2*t]||Y.EMPTY_STRING,f=e.failedRequests[2*t+1]||Y.EMPTY_STRING,p=e.errors[t]||Y.EMPTY_STRING;if(o+=u.toString().length+f.toString().length+p.length+3,o<jo.MAX_LAST_HEADER_BYTES)r+=1;else break}return r},n.prototype.getRegionDiscoveryFields=function(){var e=[];return e.push(this.regionUsed||Y.EMPTY_STRING),e.push(this.regionSource||Y.EMPTY_STRING),e.push(this.regionOutcome||Y.EMPTY_STRING),e.join(",")},n.prototype.updateRegionDiscoveryMetadata=function(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome},n.prototype.setCacheOutcome=function(e){this.cacheOutcome=e},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var OP=function(){function n(e,t,r,o,s,u){this.authority=t,this.libraryName=o,this.libraryVersion=s,this.applicationTelemetry=u,this.clientId=e,this.logger=r,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.queueMeasurements=new Map,this.preQueueTimeByCorrelationId=new Map}return n.prototype.startPerformanceMeasurement=function(e,t){return{}},n.prototype.startPerformanceMeasuremeant=function(e,t){return{}},n.prototype.getIntFields=function(){return C6},n.prototype.getPreQueueTime=function(e,t){var r=this.preQueueTimeByCorrelationId.get(t);if(r){if(r.name!==e){this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue time found for "+e+", unable to add queue measurement");return}}else{this.logger.trace("PerformanceClient.getPreQueueTime: no pre-queue times found for correlationId: "+t+", unable to add queue measurement");return}return r.time},n.prototype.calculateQueuedTime=function(e,t){return e<1?(this.logger.trace("PerformanceClient: preQueueTime should be a positive integer and not "+e),0):t<1?(this.logger.trace("PerformanceClient: currentTime should be a positive integer and not "+t),0):t<e?(this.logger.trace("PerformanceClient: currentTime is less than preQueueTime, check how time is being retrieved"),0):t-e},n.prototype.addQueueMeasurement=function(e,t,r,o){if(!t){this.logger.trace("PerformanceClient.addQueueMeasurement: correlationId not provided for "+e+", cannot add queue measurement");return}if(r===0)this.logger.trace("PerformanceClient.addQueueMeasurement: queue time provided for "+e+" is "+r);else if(!r){this.logger.trace("PerformanceClient.addQueueMeasurement: no queue time provided for "+e);return}var s={eventName:e,queueTime:r,manuallyCompleted:o},u=this.queueMeasurements.get(t);if(u)u.push(s),this.queueMeasurements.set(t,u);else{this.logger.trace("PerformanceClient.addQueueMeasurement: adding correlationId "+t+" to queue measurements");var f=[s];this.queueMeasurements.set(t,f)}this.preQueueTimeByCorrelationId.delete(t)},n.prototype.startMeasurement=function(e,t){var r=this,o,s,u=t||this.generateId();t||this.logger.info("PerformanceClient: No correlation id provided for "+e+", generating",u),this.logger.trace("PerformanceClient: Performance measurement started for "+e,u);var f=this.startPerformanceMeasuremeant(e,u);f.startMeasurement();var p={eventId:this.generateId(),status:Jb.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:u,appName:(o=this.applicationTelemetry)===null||o===void 0?void 0:o.appName,appVersion:(s=this.applicationTelemetry)===null||s===void 0?void 0:s.appVersion};return this.cacheEventByCorrelationId(p),{endMeasurement:function(v){return r.endMeasurement(Kn(Kn({},p),v),f)},discardMeasurement:function(){return r.discardMeasurements(p.correlationId)},addStaticFields:function(v){return r.addStaticFields(v,p.correlationId)},increment:function(v){return r.increment(v,p.correlationId)},measurement:f,event:p}},n.prototype.endMeasurement=function(e,t){var r=this,o,s,u=this.eventsByCorrelationId.get(e.correlationId);if(!u)return this.logger.trace("PerformanceClient: Measurement not found for "+e.eventId,e.correlationId),null;var f=e.eventId===u.eventId,p={totalQueueTime:0,totalQueueCount:0,manuallyCompletedCount:0};f?(p=this.getQueueInfo(e.correlationId),this.discardCache(u.correlationId)):(o=u.incompleteSubMeasurements)===null||o===void 0||o.delete(e.eventId),t==null||t.endMeasurement();var v=t==null?void 0:t.flushMeasurement();if(!v)return this.logger.trace("PerformanceClient: Performance measurement not taken",u.correlationId),null;if(this.logger.trace("PerformanceClient: Performance measurement ended for "+e.name+": "+v+" ms",e.correlationId),!f)return u[e.name+"DurationMs"]=Math.floor(v),Kn({},u);var g=Kn(Kn({},u),e),E=0;return(s=g.incompleteSubMeasurements)===null||s===void 0||s.forEach(function(w){r.logger.trace("PerformanceClient: Incomplete submeasurement "+w.name+" found for "+e.name,g.correlationId),E++}),g.incompleteSubMeasurements=void 0,g=Kn(Kn({},g),{durationMs:Math.round(v),queuedTimeMs:p.totalQueueTime,queuedCount:p.totalQueueCount,queuedManuallyCompletedCount:p.manuallyCompletedCount,status:Jb.Completed,incompleteSubsCount:E}),this.truncateIntegralFields(g,this.getIntFields()),this.emitEvents([g],e.correlationId),g},n.prototype.addStaticFields=function(e,t){this.logger.trace("PerformanceClient: Updating static fields");var r=this.eventsByCorrelationId.get(t);r?this.eventsByCorrelationId.set(t,Kn(Kn({},r),e)):this.logger.trace("PerformanceClient: Event not found for",t)},n.prototype.increment=function(e,t){this.logger.trace("PerformanceClient: Updating counters");var r=this.eventsByCorrelationId.get(t);if(r)for(var o in e)r.hasOwnProperty(o)||(r[o]=0),r[o]+=e[o];else this.logger.trace("PerformanceClient: Event not found for",t)},n.prototype.cacheEventByCorrelationId=function(e){var t=this.eventsByCorrelationId.get(e.correlationId);t?(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" added/updated",e.correlationId),t.incompleteSubMeasurements=t.incompleteSubMeasurements||new Map,t.incompleteSubMeasurements.set(e.eventId,{name:e.name,startTimeMs:e.startTimeMs})):(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" started",e.correlationId),this.eventsByCorrelationId.set(e.correlationId,Kn({},e)))},n.prototype.getQueueInfo=function(e){var t=this.queueMeasurements.get(e);t||this.logger.trace("PerformanceClient: no queue measurements found for for correlationId: "+e);var r=0,o=0,s=0;return t==null||t.forEach(function(u){r+=u.queueTime,o++,s+=u.manuallyCompleted?1:0}),{totalQueueTime:r,totalQueueCount:o,manuallyCompletedCount:s}},n.prototype.discardMeasurements=function(e){this.logger.trace("PerformanceClient: Performance measurements discarded",e),this.eventsByCorrelationId.delete(e)},n.prototype.discardCache=function(e){this.discardMeasurements(e),this.logger.trace("PerformanceClient: QueueMeasurements discarded",e),this.queueMeasurements.delete(e),this.logger.trace("PerformanceClient: Pre-queue times discarded",e),this.preQueueTimeByCorrelationId.delete(e)},n.prototype.addPerformanceCallback=function(e){var t=this.generateId();return this.callbacks.set(t,e),this.logger.verbose("PerformanceClient: Performance callback registered with id: "+t),t},n.prototype.removePerformanceCallback=function(e){var t=this.callbacks.delete(e);return t?this.logger.verbose("PerformanceClient: Performance callback "+e+" removed."):this.logger.verbose("PerformanceClient: Performance callback "+e+" not removed."),t},n.prototype.emitEvents=function(e,t){var r=this;this.logger.verbose("PerformanceClient: Emitting performance events",t),this.callbacks.forEach(function(o,s){r.logger.trace("PerformanceClient: Emitting event to callback "+s,t),o.apply(null,[e])})},n.prototype.truncateIntegralFields=function(e,t){t.forEach(function(r){r in e&&typeof e[r]=="number"&&(e[r]=Math.floor(e[r]))})},n}();/*! @azure/msal-common v13.3.0 2023-08-24 */var NP=function(){function n(){}return n.prototype.startMeasurement=function(){},n.prototype.endMeasurement=function(){},n.prototype.flushMeasurement=function(){return null},n}(),N6=function(n){Qa(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.generateId=function(){return"callback-id"},e.prototype.startPerformanceMeasuremeant=function(){return new NP},e.prototype.startPerformanceMeasurement=function(){return new NP},e.prototype.calculateQueuedTime=function(t,r){return 0},e.prototype.addQueueMeasurement=function(t,r,o){},e.prototype.setPreQueueTime=function(t,r){},e}(OP);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Fe={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."}},Qe=function(n){Bo(e,n);function e(t,r){var o=n.call(this,t,r)||this;return Object.setPrototypeOf(o,e.prototype),o.name="BrowserAuthError",o}return e.createPkceNotGeneratedError=function(t){return new e(Fe.pkceNotGenerated.code,Fe.pkceNotGenerated.desc+" Detail:"+t)},e.createCryptoNotAvailableError=function(t){return new e(Fe.cryptoDoesNotExist.code,Fe.cryptoDoesNotExist.desc+" Detail:"+t)},e.createHttpMethodNotImplementedError=function(t){return new e(Fe.httpMethodNotImplementedError.code,Fe.httpMethodNotImplementedError.desc+" Given Method: "+t)},e.createEmptyNavigationUriError=function(){return new e(Fe.emptyNavigateUriError.code,Fe.emptyNavigateUriError.desc)},e.createEmptyHashError=function(t){return new e(Fe.hashEmptyError.code,Fe.hashEmptyError.desc+" Given Url: "+t)},e.createHashDoesNotContainStateError=function(){return new e(Fe.hashDoesNotContainStateError.code,Fe.hashDoesNotContainStateError.desc)},e.createHashDoesNotContainKnownPropertiesError=function(){return new e(Fe.hashDoesNotContainKnownPropertiesError.code,Fe.hashDoesNotContainKnownPropertiesError.desc)},e.createUnableToParseStateError=function(){return new e(Fe.unableToParseStateError.code,Fe.unableToParseStateError.desc)},e.createStateInteractionTypeMismatchError=function(){return new e(Fe.stateInteractionTypeMismatchError.code,Fe.stateInteractionTypeMismatchError.desc)},e.createInteractionInProgressError=function(){return new e(Fe.interactionInProgress.code,Fe.interactionInProgress.desc)},e.createPopupWindowError=function(t){var r=Fe.popupWindowError.desc;return r=it.isEmpty(t)?r:r+" Details: "+t,new e(Fe.popupWindowError.code,r)},e.createEmptyWindowCreatedError=function(){return new e(Fe.emptyWindowError.code,Fe.emptyWindowError.desc)},e.createUserCancelledError=function(){return new e(Fe.userCancelledError.code,Fe.userCancelledError.desc)},e.createMonitorPopupTimeoutError=function(){return new e(Fe.monitorPopupTimeoutError.code,Fe.monitorPopupTimeoutError.desc)},e.createMonitorIframeTimeoutError=function(){return new e(Fe.monitorIframeTimeoutError.code,Fe.monitorIframeTimeoutError.desc)},e.createRedirectInIframeError=function(t){return new e(Fe.redirectInIframeError.code,Fe.redirectInIframeError.desc+" (window.parent !== window) => "+t)},e.createBlockReloadInHiddenIframeError=function(){return new e(Fe.blockTokenRequestsInHiddenIframeError.code,Fe.blockTokenRequestsInHiddenIframeError.desc)},e.createBlockAcquireTokenInPopupsError=function(){return new e(Fe.blockAcquireTokenInPopupsError.code,Fe.blockAcquireTokenInPopupsError.desc)},e.createIframeClosedPrematurelyError=function(){return new e(Fe.iframeClosedPrematurelyError.code,Fe.iframeClosedPrematurelyError.desc)},e.createSilentLogoutUnsupportedError=function(){return new e(Fe.silentLogoutUnsupportedError.code,Fe.silentLogoutUnsupportedError.desc)},e.createNoAccountError=function(){return new e(Fe.noAccountError.code,Fe.noAccountError.desc)},e.createSilentPromptValueError=function(t){return new e(Fe.silentPromptValueError.code,Fe.silentPromptValueError.desc+" Given value: "+t)},e.createUnableToParseTokenRequestCacheError=function(){return new e(Fe.unableToParseTokenRequestCacheError.code,Fe.unableToParseTokenRequestCacheError.desc)},e.createNoTokenRequestCacheError=function(){return new e(Fe.noTokenRequestCacheError.code,Fe.noTokenRequestCacheError.desc)},e.createAuthRequestNotSetError=function(){return new e(Fe.authRequestNotSet.code,Fe.authRequestNotSet.desc)},e.createNoCachedAuthorityError=function(){return new e(Fe.noCachedAuthorityError.code,Fe.noCachedAuthorityError.desc)},e.createInvalidCacheTypeError=function(){return new e(Fe.invalidCacheType.code,""+Fe.invalidCacheType.desc)},e.createNonBrowserEnvironmentError=function(){return new e(Fe.notInBrowserEnvironment.code,Fe.notInBrowserEnvironment.desc)},e.createDatabaseNotOpenError=function(){return new e(Fe.databaseNotOpen.code,Fe.databaseNotOpen.desc)},e.createNoNetworkConnectivityError=function(){return new e(Fe.noNetworkConnectivity.code,Fe.noNetworkConnectivity.desc)},e.createPostRequestFailedError=function(t,r){return new e(Fe.postRequestFailed.code,Fe.postRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+r.split("?")[0])},e.createGetRequestFailedError=function(t,r){return new e(Fe.getRequestFailed.code,Fe.getRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+r.split("?")[0])},e.createFailedToParseNetworkResponseError=function(t){return new e(Fe.failedToParseNetworkResponse.code,Fe.failedToParseNetworkResponse.desc+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToLoadTokenError=function(t){return new e(Fe.unableToLoadTokenError.code,Fe.unableToLoadTokenError.desc+" | "+t)},e.createSigningKeyNotFoundInStorageError=function(t){return new e(Fe.signingKeyNotFoundInStorage.code,Fe.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+t)},e.createAuthCodeRequiredError=function(){return new e(Fe.authCodeRequired.code,Fe.authCodeRequired.desc)},e.createAuthCodeOrNativeAccountIdRequiredError=function(){return new e(Fe.authCodeOrNativeAccountRequired.code,Fe.authCodeOrNativeAccountRequired.desc)},e.createSpaCodeAndNativeAccountIdPresentError=function(){return new e(Fe.spaCodeAndNativeAccountPresent.code,Fe.spaCodeAndNativeAccountPresent.desc)},e.createDatabaseUnavailableError=function(){return new e(Fe.databaseUnavailable.code,Fe.databaseUnavailable.desc)},e.createUnableToAcquireTokenFromNativePlatformError=function(){return new e(Fe.unableToAcquireTokenFromNativePlatform.code,Fe.unableToAcquireTokenFromNativePlatform.desc)},e.createNativeHandshakeTimeoutError=function(){return new e(Fe.nativeHandshakeTimeout.code,Fe.nativeHandshakeTimeout.desc)},e.createNativeExtensionNotInstalledError=function(){return new e(Fe.nativeExtensionNotInstalled.code,Fe.nativeExtensionNotInstalled.desc)},e.createNativeConnectionNotEstablishedError=function(){return new e(Fe.nativeConnectionNotEstablished.code,Fe.nativeConnectionNotEstablished.desc)},e.createNativeBrokerCalledBeforeInitialize=function(){return new e(Fe.nativeBrokerCalledBeforeInitialize.code,Fe.nativeBrokerCalledBeforeInitialize.desc)},e.createNativePromptParameterNotSupportedError=function(){return new e(Fe.nativePromptNotSupported.code,Fe.nativePromptNotSupported.desc)},e}(St);/*! @azure/msal-browser v2.38.2 2023-08-24 */var xl={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"},d0={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},Bc;(function(n){n.HandshakeRequest="Handshake",n.HandshakeResponse="HandshakeResponse",n.GetToken="GetToken",n.Response="Response"})(Bc||(Bc={}));var Bi;(function(n){n.LocalStorage="localStorage",n.SessionStorage="sessionStorage",n.MemoryStorage="memoryStorage"})(Bi||(Bi={}));var Eu;(function(n){n.GET="GET",n.POST="POST"})(Eu||(Eu={}));var Hn;(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"})(Hn||(Hn={}));var bu;(function(n){n.ACCOUNT_KEYS="msal.account.keys",n.TOKEN_KEYS="msal.token.keys"})(bu||(bu={}));var Xv;(function(n){n.WRAPPER_SKU="wrapper.sku",n.WRAPPER_VER="wrapper.version"})(Xv||(Xv={}));var xr;(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"})(xr||(xr={}));var mt;(function(n){n.Redirect="redirect",n.Popup="popup",n.Silent="silent",n.None="none"})(mt||(mt={}));var MP;(function(n){n.Startup="startup",n.Login="login",n.Logout="logout",n.AcquireToken="acquireToken",n.SsoSilent="ssoSilent",n.HandleRedirect="handleRedirect",n.None="none"})(MP||(MP={}));var PP={scopes:e0},Jv="jwk",DP;(function(n){n.React="@azure/msal-react",n.Angular="@azure/msal-angular"})(DP||(DP={}));var x1="msal.db",M6=1,P6=x1+".keys",Ja;(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"})(Ja||(Ja={}));/*! @azure/msal-browser v2.38.2 2023-08-24 */var Za={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."}},rC=function(n){Bo(e,n);function e(t,r){var o=n.call(this,t,r)||this;return o.name="BrowserConfigurationAuthError",Object.setPrototypeOf(o,e.prototype),o}return e.createRedirectUriEmptyError=function(){return new e(Za.redirectUriNotSet.code,Za.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(Za.postLogoutUriNotSet.code,Za.postLogoutUriNotSet.desc)},e.createStorageNotSupportedError=function(t){return new e(Za.storageNotSupportedError.code,Za.storageNotSupportedError.desc+" Given Location: "+t)},e.createRedirectCallbacksNotSetError=function(){return new e(Za.noRedirectCallbacksSet.code,Za.noRedirectCallbacksSet.desc)},e.createStubPcaInstanceCalledError=function(){return new e(Za.stubPcaInstanceCalled.code,Za.stubPcaInstanceCalled.desc)},e.createInMemoryRedirectUnavailableError=function(){return new e(Za.inMemRedirectUnavailable.code,Za.inMemRedirectUnavailable.desc)},e.createEntropyNotProvided=function(){return new e(Za.entropyNotProvided.code,Za.entropyNotProvided.desc)},e}(St);/*! @azure/msal-browser v2.38.2 2023-08-24 */var LP=function(){function n(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return n.prototype.validateWindowStorage=function(e){if(e!==Bi.LocalStorage&&e!==Bi.SessionStorage)throw rC.createStorageNotSupportedError(e);var t=!!window[e];if(!t)throw rC.createStorageNotSupportedError(e)},n.prototype.getItem=function(e){return this.windowStorage.getItem(e)},n.prototype.setItem=function(e,t){this.windowStorage.setItem(e,t)},n.prototype.removeItem=function(e){this.windowStorage.removeItem(e)},n.prototype.getKeys=function(){return Object.keys(this.windowStorage)},n.prototype.containsKey=function(e){return this.windowStorage.hasOwnProperty(e)},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var A1=function(){function n(){this.cache=new Map}return n.prototype.getItem=function(e){return this.cache.get(e)||null},n.prototype.setItem=function(e,t){this.cache.set(e,t)},n.prototype.removeItem=function(e){this.cache.delete(e)},n.prototype.getKeys=function(){var e=[];return this.cache.forEach(function(t,r){e.push(r)}),e},n.prototype.containsKey=function(e){return this.cache.has(e)},n.prototype.clear=function(){this.cache.clear()},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var UP=function(){function n(){}return n.extractBrowserRequestState=function(e,t){if(it.isEmpty(t))return null;try{var r=$c.parseRequestState(e,t);return r.libraryState.meta}catch(o){throw rt.createInvalidStateError(t,o)}},n.parseServerResponseFromHash=function(e){if(!e)return{};var t=new On(e);return On.getDeserializedHash(t.getHash())},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var k1=function(n){Bo(e,n);function e(t,r,o,s){var u=n.call(this,t,o,s)||this;return u.COOKIE_LIFE_MULTIPLIER=24*60*60*1e3,u.cacheConfig=r,u.logger=s,u.internalStorage=new A1,u.browserStorage=u.setupBrowserStorage(u.cacheConfig.cacheLocation),u.temporaryCacheStorage=u.setupTemporaryCacheStorage(u.cacheConfig.temporaryCacheLocation,u.cacheConfig.cacheLocation),r.cacheMigrationEnabled&&(u.migrateCacheEntries(),u.createKeyMaps()),u}return e.prototype.setupBrowserStorage=function(t){switch(t){case Bi.LocalStorage:case Bi.SessionStorage:try{return new LP(t)}catch(r){this.logger.verbose(r);break}}return this.cacheConfig.cacheLocation=Bi.MemoryStorage,new A1},e.prototype.setupTemporaryCacheStorage=function(t,r){switch(r){case Bi.LocalStorage:case Bi.SessionStorage:try{return new LP(t||Bi.SessionStorage)}catch(o){return this.logger.verbose(o),this.internalStorage}case Bi.MemoryStorage:default:return this.internalStorage}},e.prototype.migrateCacheEntries=function(){var t=this,r=Y.CACHE_PREFIX+"."+Zi.ID_TOKEN,o=Y.CACHE_PREFIX+"."+Zi.CLIENT_INFO,s=Y.CACHE_PREFIX+"."+Zi.ERROR,u=Y.CACHE_PREFIX+"."+Zi.ERROR_DESC,f=this.browserStorage.getItem(r),p=this.browserStorage.getItem(o),v=this.browserStorage.getItem(s),g=this.browserStorage.getItem(u),E=[f,p,v,g],w=[Zi.ID_TOKEN,Zi.CLIENT_INFO,Zi.ERROR,Zi.ERROR_DESC];w.forEach(function(S,A){return t.migrateCacheEntry(S,E[A])})},e.prototype.migrateCacheEntry=function(t,r){r&&this.setTemporaryCache(t,r,!0)},e.prototype.createKeyMaps=function(){var t=this;this.logger.trace("BrowserCacheManager - createKeyMaps called.");var r=this.getItem(bu.ACCOUNT_KEYS),o=this.getItem(bu.TOKEN_KEYS+"."+this.clientId);if(r&&o){this.logger.verbose("BrowserCacheManager:createKeyMaps - account and token key maps already exist, skipping migration.");return}var s=this.browserStorage.getKeys();s.forEach(function(u){if(t.isCredentialKey(u)){var f=t.getItem(u);if(f){var p=t.validateAndParseJson(f);if(p&&p.hasOwnProperty("credentialType"))switch(p.credentialType){case Nt.ID_TOKEN:if($h.isIdTokenEntity(p)){t.logger.trace("BrowserCacheManager:createKeyMaps - idToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - idToken with key: "+u+" found, saving key to token key map");var v=Xa.toObject(new $h,p),g=t.updateCredentialCacheKey(u,v);t.addTokenKey(g,Nt.ID_TOKEN);return}else t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching idToken schema with value containing idToken credentialType field but value failed IdTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed idToken validation on key: "+u);break;case Nt.ACCESS_TOKEN:case Nt.ACCESS_TOKEN_WITH_AUTH_SCHEME:if(Bh.isAccessTokenEntity(p)){t.logger.trace("BrowserCacheManager:createKeyMaps - accessToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - accessToken with key: "+u+" found, saving key to token key map");var E=Xa.toObject(new Bh,p),g=t.updateCredentialCacheKey(u,E);t.addTokenKey(g,Nt.ACCESS_TOKEN);return}else t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching accessToken schema with value containing accessToken credentialType field but value failed AccessTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed accessToken validation on key: "+u);break;case Nt.REFRESH_TOKEN:if(Wv.isRefreshTokenEntity(p)){t.logger.trace("BrowserCacheManager:createKeyMaps - refreshToken found, saving key to token key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - refreshToken with key: "+u+" found, saving key to token key map");var w=Xa.toObject(new Wv,p),g=t.updateCredentialCacheKey(u,w);t.addTokenKey(g,Nt.REFRESH_TOKEN);return}else t.logger.trace("BrowserCacheManager:createKeyMaps - key found matching refreshToken schema with value containing refreshToken credentialType field but value failed RefreshTokenEntity validation, skipping."),t.logger.tracePii("BrowserCacheManager:createKeyMaps - failed refreshToken validation on key: "+u);break}}}if(t.isAccountKey(u)){var f=t.getItem(u);if(f){var S=t.validateAndParseJson(f);S&&zo.isAccountEntity(S)&&(t.logger.trace("BrowserCacheManager:createKeyMaps - account found, saving key to account key map"),t.logger.tracePii("BrowserCacheManager:createKeyMaps - account with key: "+u+" found, saving key to account key map"),t.addAccountKeyToMap(u))}}})},e.prototype.validateAndParseJson=function(t){try{var r=JSON.parse(t);return r&&typeof r=="object"?r:null}catch{return null}},e.prototype.getItem=function(t){return this.browserStorage.getItem(t)},e.prototype.setItem=function(t,r){this.browserStorage.setItem(t,r)},e.prototype.getAccount=function(t){this.logger.trace("BrowserCacheManager.getAccount called");var r=this.getItem(t);if(!r)return this.removeAccountKeyFromMap(t),null;var o=this.validateAndParseJson(r);return!o||!zo.isAccountEntity(o)?(this.removeAccountKeyFromMap(t),null):Xa.toObject(new zo,o)},e.prototype.setAccount=function(t){this.logger.trace("BrowserCacheManager.setAccount called");var r=t.generateAccountKey();this.setItem(r,JSON.stringify(t)),this.addAccountKeyToMap(r)},e.prototype.getAccountKeys=function(){this.logger.trace("BrowserCacheManager.getAccountKeys called");var t=this.getItem(bu.ACCOUNT_KEYS);return t?JSON.parse(t):(this.logger.verbose("BrowserCacheManager.getAccountKeys - No account keys found"),[])},e.prototype.addAccountKeyToMap=function(t){this.logger.trace("BrowserCacheManager.addAccountKeyToMap called"),this.logger.tracePii("BrowserCacheManager.addAccountKeyToMap called with key: "+t);var r=this.getAccountKeys();r.indexOf(t)===-1?(r.push(t),this.setItem(bu.ACCOUNT_KEYS,JSON.stringify(r)),this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key added")):this.logger.verbose("BrowserCacheManager.addAccountKeyToMap account key already exists in map")},e.prototype.removeAccountKeyFromMap=function(t){this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap called"),this.logger.tracePii("BrowserCacheManager.removeAccountKeyFromMap called with key: "+t);var r=this.getAccountKeys(),o=r.indexOf(t);o>-1?(r.splice(o,1),this.setItem(bu.ACCOUNT_KEYS,JSON.stringify(r)),this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap account key removed")):this.logger.trace("BrowserCacheManager.removeAccountKeyFromMap key not found in existing map")},e.prototype.removeAccount=function(t){return Ie(this,void 0,void 0,function(){return Oe(this,function(r){return n.prototype.removeAccount.call(this,t),this.removeAccountKeyFromMap(t),[2]})})},e.prototype.removeIdToken=function(t){n.prototype.removeIdToken.call(this,t),this.removeTokenKey(t,Nt.ID_TOKEN)},e.prototype.removeAccessToken=function(t){return Ie(this,void 0,void 0,function(){return Oe(this,function(r){return n.prototype.removeAccessToken.call(this,t),this.removeTokenKey(t,Nt.ACCESS_TOKEN),[2]})})},e.prototype.removeRefreshToken=function(t){n.prototype.removeRefreshToken.call(this,t),this.removeTokenKey(t,Nt.REFRESH_TOKEN)},e.prototype.getTokenKeys=function(){this.logger.trace("BrowserCacheManager.getTokenKeys called");var t=this.getItem(bu.TOKEN_KEYS+"."+this.clientId);if(t){var r=this.validateAndParseJson(t);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:[]}},e.prototype.addTokenKey=function(t,r){this.logger.trace("BrowserCacheManager addTokenKey called");var o=this.getTokenKeys();switch(r){case Nt.ID_TOKEN:o.idToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - idToken added to map"),o.idToken.push(t));break;case Nt.ACCESS_TOKEN:o.accessToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - accessToken added to map"),o.accessToken.push(t));break;case Nt.REFRESH_TOKEN:o.refreshToken.indexOf(t)===-1&&(this.logger.info("BrowserCacheManager: addTokenKey - refreshToken added to map"),o.refreshToken.push(t));break;default:this.logger.error("BrowserCacheManager:addTokenKey - CredentialType provided invalid. CredentialType: "+r),rt.createUnexpectedCredentialTypeError()}this.setItem(bu.TOKEN_KEYS+"."+this.clientId,JSON.stringify(o))},e.prototype.removeTokenKey=function(t,r){this.logger.trace("BrowserCacheManager removeTokenKey called");var o=this.getTokenKeys();switch(r){case Nt.ID_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove idToken with key: "+t+" from map");var s=o.idToken.indexOf(t);s>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - idToken removed from map"),o.idToken.splice(s,1)):this.logger.info("BrowserCacheManager: removeTokenKey - idToken does not exist in map. Either it was previously removed or it was never added.");break;case Nt.ACCESS_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove accessToken with key: "+t+" from map");var u=o.accessToken.indexOf(t);u>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - accessToken removed from map"),o.accessToken.splice(u,1)):this.logger.info("BrowserCacheManager: removeTokenKey - accessToken does not exist in map. Either it was previously removed or it was never added.");break;case Nt.REFRESH_TOKEN:this.logger.infoPii("BrowserCacheManager: removeTokenKey - attempting to remove refreshToken with key: "+t+" from map");var f=o.refreshToken.indexOf(t);f>-1?(this.logger.info("BrowserCacheManager: removeTokenKey - refreshToken removed from map"),o.refreshToken.splice(f,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),rt.createUnexpectedCredentialTypeError()}this.setItem(bu.TOKEN_KEYS+"."+this.clientId,JSON.stringify(o))},e.prototype.getIdTokenCredential=function(t){var r=this.getItem(t);if(!r)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(t,Nt.ID_TOKEN),null;var o=this.validateAndParseJson(r);return!o||!$h.isIdTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),this.removeTokenKey(t,Nt.ID_TOKEN),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),Xa.toObject(new $h,o))},e.prototype.setIdTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var r=t.generateCredentialKey();this.setItem(r,JSON.stringify(t)),this.addTokenKey(r,Nt.ID_TOKEN)},e.prototype.getAccessTokenCredential=function(t){var r=this.getItem(t);if(!r)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(t,Nt.ACCESS_TOKEN),null;var o=this.validateAndParseJson(r);return!o||!Bh.isAccessTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),this.removeTokenKey(t,Nt.ACCESS_TOKEN),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),Xa.toObject(new Bh,o))},e.prototype.setAccessTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var r=t.generateCredentialKey();this.setItem(r,JSON.stringify(t)),this.addTokenKey(r,Nt.ACCESS_TOKEN)},e.prototype.getRefreshTokenCredential=function(t){var r=this.getItem(t);if(!r)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(t,Nt.REFRESH_TOKEN),null;var o=this.validateAndParseJson(r);return!o||!Wv.isRefreshTokenEntity(o)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),this.removeTokenKey(t,Nt.REFRESH_TOKEN),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),Xa.toObject(new Wv,o))},e.prototype.setRefreshTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var r=t.generateCredentialKey();this.setItem(r,JSON.stringify(t)),this.addTokenKey(r,Nt.REFRESH_TOKEN)},e.prototype.getAppMetadata=function(t){var r=this.getItem(t);if(!r)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var o=this.validateAndParseJson(r);return!o||!T1.isAppMetadataEntity(t,o)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),Xa.toObject(new T1,o))},e.prototype.setAppMetadata=function(t){this.logger.trace("BrowserCacheManager.setAppMetadata called");var r=t.generateAppMetadataKey();this.setItem(r,JSON.stringify(t))},e.prototype.getServerTelemetry=function(t){var r=this.getItem(t);if(!r)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var o=this.validateAndParseJson(r);return!o||!tC.isServerTelemetryEntity(t,o)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),Xa.toObject(new tC,o))},e.prototype.setServerTelemetry=function(t,r){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(t,JSON.stringify(r))},e.prototype.getAuthorityMetadata=function(t){var r=this.internalStorage.getItem(t);if(!r)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var o=this.validateAndParseJson(r);return o&&R1.isAuthorityMetadataEntity(t,o)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),Xa.toObject(new R1,o)):null},e.prototype.getAuthorityMetadataKeys=function(){var t=this,r=this.internalStorage.getKeys();return r.filter(function(o){return t.isAuthorityMetadata(o)})},e.prototype.setWrapperMetadata=function(t,r){this.internalStorage.setItem(Xv.WRAPPER_SKU,t),this.internalStorage.setItem(Xv.WRAPPER_VER,r)},e.prototype.getWrapperMetadata=function(){var t=this.internalStorage.getItem(Xv.WRAPPER_SKU)||Y.EMPTY_STRING,r=this.internalStorage.getItem(Xv.WRAPPER_VER)||Y.EMPTY_STRING;return[t,r]},e.prototype.setAuthorityMetadata=function(t,r){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(t,JSON.stringify(r))},e.prototype.getActiveAccount=function(){var t=this.generateCacheKey(Zi.ACTIVE_ACCOUNT_FILTERS),r=this.getItem(t);if(!r){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");var o=this.generateCacheKey(Zi.ACTIVE_ACCOUNT),s=this.getItem(o);if(!s)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;var u=this.getAccountInfoByFilter({localAccountId:s})[0]||null;return u?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(u),u):null}var f=this.validateAndParseJson(r);return f?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:f.homeAccountId,localAccountId:f.localAccountId})[0]||null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)},e.prototype.setActiveAccount=function(t){var r=this.generateCacheKey(Zi.ACTIVE_ACCOUNT_FILTERS),o=this.generateCacheKey(Zi.ACTIVE_ACCOUNT);if(t){this.logger.verbose("setActiveAccount: Active account set");var s={homeAccountId:t.homeAccountId,localAccountId:t.localAccountId};this.browserStorage.setItem(r,JSON.stringify(s)),this.browserStorage.setItem(o,t.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(r),this.browserStorage.removeItem(o)},e.prototype.getAccountInfoByFilter=function(t){var r=this.getAllAccounts();return this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total "+r.length+" accounts found"),r.filter(function(o){return!(t.username&&t.username.toLowerCase()!==o.username.toLowerCase()||t.homeAccountId&&t.homeAccountId!==o.homeAccountId||t.localAccountId&&t.localAccountId!==o.localAccountId||t.tenantId&&t.tenantId!==o.tenantId||t.environment&&t.environment!==o.environment)})},e.prototype.getAccountInfoByHints=function(t,r){var o=this.getAllAccounts().filter(function(s){if(r){var u=s.idTokenClaims&&s.idTokenClaims.sid;return r===u}return t?t===s.username:!1});if(o.length===1)return o[0];if(o.length>1)throw rt.createMultipleMatchingAccountsInCacheError();return null},e.prototype.getThrottlingCache=function(t){var r=this.getItem(t);if(!r)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var o=this.validateAndParseJson(r);return!o||!kP.isThrottlingEntity(t,o)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),Xa.toObject(new kP,o))},e.prototype.setThrottlingCache=function(t,r){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(t,JSON.stringify(r))},e.prototype.getTemporaryCache=function(t,r){var o=r?this.generateCacheKey(t):t;if(this.cacheConfig.storeAuthStateInCookie){var s=this.getItemCookie(o);if(s)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),s}var u=this.temporaryCacheStorage.getItem(o);if(!u){if(this.cacheConfig.cacheLocation===Bi.LocalStorage){var f=this.browserStorage.getItem(o);if(f)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),f}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),u},e.prototype.setTemporaryCache=function(t,r,o){var s=o?this.generateCacheKey(t):t;this.temporaryCacheStorage.setItem(s,r),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(s,r))},e.prototype.removeItem=function(t){this.browserStorage.removeItem(t),this.temporaryCacheStorage.removeItem(t),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.removeItem: storeAuthStateInCookie is true, clearing item cookie"),this.clearItemCookie(t))},e.prototype.containsKey=function(t){return this.browserStorage.containsKey(t)||this.temporaryCacheStorage.containsKey(t)},e.prototype.getKeys=function(){return g1(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},e.prototype.clear=function(){return Ie(this,void 0,void 0,function(){var t=this;return Oe(this,function(r){switch(r.label){case 0:return[4,this.removeAllAccounts()];case 1:return r.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(o){(t.browserStorage.containsKey(o)||t.temporaryCacheStorage.containsKey(o))&&(o.indexOf(Y.CACHE_PREFIX)!==-1||o.indexOf(t.clientId)!==-1)&&t.removeItem(o)}),this.internalStorage.clear(),[2]}})})},e.prototype.clearTokensAndKeysWithClaims=function(){return Ie(this,void 0,void 0,function(){var t,r,o=this;return Oe(this,function(s){switch(s.label){case 0:return this.logger.trace("BrowserCacheManager.clearTokensAndKeysWithClaims called"),t=this.getTokenKeys(),r=[],t.accessToken.forEach(function(u){var f=o.getAccessTokenCredential(u);f!=null&&f.requestedClaimsHash&&u.includes(f.requestedClaimsHash.toLowerCase())&&r.push(o.removeAccessToken(u))}),[4,Promise.all(r)];case 1:return s.sent(),r.length>0&&this.logger.warning(r.length+" access tokens with claims in the cache keys have been removed from the cache."),[2]}})})},e.prototype.setItemCookie=function(t,r,o){var s=encodeURIComponent(t)+"="+encodeURIComponent(r)+";path=/;SameSite=Lax;";if(o){var u=this.getCookieExpirationTime(o);s+="expires="+u+";"}this.cacheConfig.secureCookies&&(s+="Secure;"),document.cookie=s},e.prototype.getItemCookie=function(t){for(var r=encodeURIComponent(t)+"=",o=document.cookie.split(";"),s=0;s<o.length;s++){for(var u=o[s];u.charAt(0)===" ";)u=u.substring(1);if(u.indexOf(r)===0)return decodeURIComponent(u.substring(r.length,u.length))}return Y.EMPTY_STRING},e.prototype.clearMsalCookies=function(){var t=this,r=Y.CACHE_PREFIX+"."+this.clientId,o=document.cookie.split(";");o.forEach(function(s){for(;s.charAt(0)===" ";)s=s.substring(1);if(s.indexOf(r)===0){var u=s.split("=")[0];t.clearItemCookie(u)}})},e.prototype.clearItemCookie=function(t){this.setItemCookie(t,Y.EMPTY_STRING,-1)},e.prototype.getCookieExpirationTime=function(t){var r=new Date,o=new Date(r.getTime()+t*this.COOKIE_LIFE_MULTIPLIER);return o.toUTCString()},e.prototype.getCache=function(){return this.browserStorage},e.prototype.setCache=function(){},e.prototype.generateCacheKey=function(t){var r=this.validateAndParseJson(t);return r?JSON.stringify(t):it.startsWith(t,Y.CACHE_PREFIX)||it.startsWith(t,Zi.ADAL_ID_TOKEN)?t:Y.CACHE_PREFIX+"."+this.clientId+"."+t},e.prototype.generateAuthorityKey=function(t){var r=$c.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(Hn.AUTHORITY+"."+r)},e.prototype.generateNonceKey=function(t){var r=$c.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(Hn.NONCE_IDTOKEN+"."+r)},e.prototype.generateStateKey=function(t){var r=$c.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(Hn.REQUEST_STATE+"."+r)},e.prototype.getCachedAuthority=function(t){var r=this.generateStateKey(t),o=this.getTemporaryCache(r);if(!o)return null;var s=this.generateAuthorityKey(o);return this.getTemporaryCache(s)},e.prototype.updateCacheEntries=function(t,r,o,s,u){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var f=this.generateStateKey(t);this.setTemporaryCache(f,t,!1);var p=this.generateNonceKey(t);this.setTemporaryCache(p,r,!1);var v=this.generateAuthorityKey(t);if(this.setTemporaryCache(v,o,!1),u){var g={credential:u.homeAccountId,type:Rs.HOME_ACCOUNT_ID};this.setTemporaryCache(Hn.CCS_CREDENTIAL,JSON.stringify(g),!0)}else if(!it.isEmpty(s)){var g={credential:s,type:Rs.UPN};this.setTemporaryCache(Hn.CCS_CREDENTIAL,JSON.stringify(g),!0)}},e.prototype.resetRequestCache=function(t){var r=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),it.isEmpty(t)||this.getKeys().forEach(function(o){o.indexOf(t)!==-1&&r.removeItem(o)}),t&&(this.removeItem(this.generateStateKey(t)),this.removeItem(this.generateNonceKey(t)),this.removeItem(this.generateAuthorityKey(t))),this.removeItem(this.generateCacheKey(Hn.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(Hn.ORIGIN_URI)),this.removeItem(this.generateCacheKey(Hn.URL_HASH)),this.removeItem(this.generateCacheKey(Hn.CORRELATION_ID)),this.removeItem(this.generateCacheKey(Hn.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(Hn.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},e.prototype.cleanRequestByState=function(t){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),t){var r=this.generateStateKey(t),o=this.temporaryCacheStorage.getItem(r);this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+o),this.resetRequestCache(o||Y.EMPTY_STRING)}this.clearMsalCookies()},e.prototype.cleanRequestByInteractionType=function(t){var r=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(function(o){if(o.indexOf(Hn.REQUEST_STATE)!==-1){var s=r.temporaryCacheStorage.getItem(o);if(s){var u=UP.extractBrowserRequestState(r.cryptoImpl,s);u&&u.interactionType===t&&(r.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+s),r.resetRequestCache(s))}}}),this.clearMsalCookies(),this.setInteractionInProgress(!1)},e.prototype.cacheCodeRequest=function(t,r){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var o=r.base64Encode(JSON.stringify(t));this.setTemporaryCache(Hn.REQUEST_PARAMS,o,!0)},e.prototype.getCachedRequest=function(t,r){this.logger.trace("BrowserCacheManager.getCachedRequest called");var o=this.getTemporaryCache(Hn.REQUEST_PARAMS,!0);if(!o)throw Qe.createNoTokenRequestCacheError();var s=this.validateAndParseJson(r.base64Decode(o));if(!s)throw Qe.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(Hn.REQUEST_PARAMS)),it.isEmpty(s.authority)){var u=this.generateAuthorityKey(t),f=this.getTemporaryCache(u);if(!f)throw Qe.createNoCachedAuthorityError();s.authority=f}return s},e.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var t=this.getTemporaryCache(Hn.NATIVE_REQUEST,!0);if(!t)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;var r=this.validateAndParseJson(t);return r||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)},e.prototype.isInteractionInProgress=function(t){var r=this.getInteractionInProgress();return t?r===this.clientId:!!r},e.prototype.getInteractionInProgress=function(){var t=Y.CACHE_PREFIX+"."+Hn.INTERACTION_STATUS_KEY;return this.getTemporaryCache(t,!1)},e.prototype.setInteractionInProgress=function(t){var r=Y.CACHE_PREFIX+"."+Hn.INTERACTION_STATUS_KEY;if(t){if(this.getInteractionInProgress())throw Qe.createInteractionInProgressError();this.setTemporaryCache(r,this.clientId,!1)}else!t&&this.getInteractionInProgress()===this.clientId&&this.removeItem(r)},e.prototype.getLegacyLoginHint=function(){var t=this.getTemporaryCache(Zi.ADAL_ID_TOKEN);t&&(this.browserStorage.removeItem(Zi.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var r=this.getTemporaryCache(Zi.ID_TOKEN,!0);r&&(this.removeItem(this.generateCacheKey(Zi.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var o=r||t;if(o){var s=new _u(o,this.cryptoImpl);if(s.claims&&s.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"),s.claims.preferred_username;if(s.claims&&s.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),s.claims.upn;this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, however, no account hint claim found. Enable preferred_username or upn id token claim to get SSO.")}return null},e.prototype.updateCredentialCacheKey=function(t,r){var o=r.generateCredentialKey();if(t!==o){var s=this.getItem(t);if(s)return this.removeItem(t),this.setItem(o,s),this.logger.verbose("Updated an outdated "+r.credentialType+" cache key"),o;this.logger.error("Attempted to update an outdated "+r.credentialType+" cache key but no item matching the outdated key was found in storage")}return t},e.prototype.getRedirectRequestContext=function(){return this.getTemporaryCache(Hn.REDIRECT_CONTEXT,!0)},e.prototype.setRedirectRequestContext=function(t){this.setTemporaryCache(Hn.REDIRECT_CONTEXT,t,!0)},e}(Xa),D6=function(n,e){var t={cacheLocation:Bi.MemoryStorage,temporaryCacheLocation:Bi.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};return new k1(n,t,Wb,e)};/*! @azure/msal-browser v2.38.2 2023-08-24 */var I1="@azure/msal-browser",f0="2.38.2";/*! @azure/msal-browser v2.38.2 2023-08-24 */var L6=function(){function n(){}return n.prototype.sendGetRequestAsync=function(e,t){return Ie(this,void 0,void 0,function(){var r,o,s;return Oe(this,function(u){switch(u.label){case 0:return u.trys.push([0,2,,3]),[4,fetch(e,{method:Eu.GET,headers:this.getFetchHeaders(t)})];case 1:return r=u.sent(),[3,3];case 2:throw o=u.sent(),window.navigator.onLine?Qe.createGetRequestFailedError(o,e):Qe.createNoNetworkConnectivityError();case 3:return u.trys.push([3,5,,6]),s={headers:this.getHeaderDict(r.headers)},[4,r.json()];case 4:return[2,(s.body=u.sent(),s.status=r.status,s)];case 5:throw u.sent(),Qe.createFailedToParseNetworkResponseError(e);case 6:return[2]}})})},n.prototype.sendPostRequestAsync=function(e,t){return Ie(this,void 0,void 0,function(){var r,o,s,u;return Oe(this,function(f){switch(f.label){case 0:r=t&&t.body||Y.EMPTY_STRING,f.label=1;case 1:return f.trys.push([1,3,,4]),[4,fetch(e,{method:Eu.POST,headers:this.getFetchHeaders(t),body:r})];case 2:return o=f.sent(),[3,4];case 3:throw s=f.sent(),window.navigator.onLine?Qe.createPostRequestFailedError(s,e):Qe.createNoNetworkConnectivityError();case 4:return f.trys.push([4,6,,7]),u={headers:this.getHeaderDict(o.headers)},[4,o.json()];case 5:return[2,(u.body=f.sent(),u.status=o.status,u)];case 6:throw f.sent(),Qe.createFailedToParseNetworkResponseError(e);case 7:return[2]}})})},n.prototype.getFetchHeaders=function(e){var t=new Headers;if(!(e&&e.headers))return t;var r=e.headers;return Object.keys(r).forEach(function(o){t.append(o,r[o])}),t},n.prototype.getHeaderDict=function(e){var t={};return e.forEach(function(r,o){t[o]=r}),t},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var U6=function(){function n(){}return n.prototype.sendGetRequestAsync=function(e,t){return Ie(this,void 0,void 0,function(){return Oe(this,function(r){return[2,this.sendRequestAsync(e,Eu.GET,t)]})})},n.prototype.sendPostRequestAsync=function(e,t){return Ie(this,void 0,void 0,function(){return Oe(this,function(r){return[2,this.sendRequestAsync(e,Eu.POST,t)]})})},n.prototype.sendRequestAsync=function(e,t,r){var o=this;return new Promise(function(s,u){var f=new XMLHttpRequest;if(f.open(t,e,!0),o.setXhrHeaders(f,r),f.onload=function(){(f.status<200||f.status>=300)&&(t===Eu.POST?u(Qe.createPostRequestFailedError("Failed with status "+f.status,e)):u(Qe.createGetRequestFailedError("Failed with status "+f.status,e)));try{var p=JSON.parse(f.responseText),v={headers:o.getHeaderDict(f),body:p,status:f.status};s(v)}catch{u(Qe.createFailedToParseNetworkResponseError(e))}},f.onerror=function(){window.navigator.onLine?t===Eu.POST?u(Qe.createPostRequestFailedError("Failed with status "+f.status,e)):u(Qe.createGetRequestFailedError("Failed with status "+f.status,e)):u(Qe.createNoNetworkConnectivityError())},t===Eu.POST&&r&&r.body)f.send(r.body);else if(t===Eu.GET)f.send();else throw Qe.createHttpMethodNotImplementedError(t)})},n.prototype.setXhrHeaders=function(e,t){if(t&&t.headers){var r=t.headers;Object.keys(r).forEach(function(o){e.setRequestHeader(o,r[o])})}},n.prototype.getHeaderDict=function(e){var t=e.getAllResponseHeaders(),r=t.trim().split(/[\r\n]+/),o={};return r.forEach(function(s){var u=s.split(": "),f=u.shift(),p=u.join(": ");f&&p&&(o[f]=p)}),o},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var hi=function(){function n(){}return n.clearHash=function(e){e.location.hash=Y.EMPTY_STRING,typeof e.history.replaceState=="function"&&e.history.replaceState(null,Y.EMPTY_STRING,""+e.location.origin+e.location.pathname+e.location.search)},n.replaceHash=function(e){var t=e.split("#");t.shift(),window.location.hash=t.length>0?t.join("#"):Y.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(xl.POPUP_NAME_PREFIX+".")===0},n.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},n.getHomepage=function(){var e=new On(window.location.href),t=e.getUrlComponents();return t.Protocol+"//"+t.HostNameAndPort+"/"},n.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new L6:new U6},n.blockReloadInHiddenIframes=function(){var e=On.hashContainsKnownProperties(window.location.hash);if(e&&n.isInIframe())throw Qe.createBlockReloadInHiddenIframeError()},n.blockRedirectInIframe=function(e,t){var r=n.isInIframe();if(e===mt.Redirect&&r&&!t)throw Qe.createRedirectInIframeError(r)},n.blockAcquireTokenInPopups=function(){if(n.isInPopup())throw Qe.createBlockAcquireTokenInPopupsError()},n.blockNonBrowserEnvironment=function(e){if(!e)throw Qe.createNonBrowserEnvironmentError()},n.blockNativeBrokerCalledBeforeInitialized=function(e,t){if(e&&!t)throw Qe.createNativeBrokerCalledBeforeInitialize()},n.detectIEOrEdge=function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),r=e.indexOf("Trident/"),o=e.indexOf("Edge/"),s=t>0||r>0,u=o>0;return s||u},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var FP=function(){function n(e,t,r,o,s,u,f,p,v){this.config=e,this.browserStorage=t,this.browserCrypto=r,this.networkClient=this.config.system.networkClient,this.eventHandler=s,this.navigationClient=u,this.nativeMessageHandler=p,this.correlationId=v||this.browserCrypto.createNewGuid(),this.logger=o.clone(xl.MSAL_SKU,f0,this.correlationId),this.performanceClient=f}return n.prototype.clearCacheOnLogout=function(e){return Ie(this,void 0,void 0,function(){return Oe(this,function(t){switch(t.label){case 0:if(!e)return[3,5];zo.accountInfoIsEqual(e,this.browserStorage.getActiveAccount(),!1)&&(this.logger.verbose("Setting active account to null"),this.browserStorage.setActiveAccount(null)),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.browserStorage.removeAccount(zo.generateAccountCacheKey(e))];case 2:return t.sent(),this.logger.verbose("Cleared cache items belonging to the account provided in the logout request."),[3,4];case 3:return t.sent(),this.logger.error("Account provided in logout request was not found. Local cache unchanged."),[3,4];case 4:return[3,9];case 5:return t.trys.push([5,8,,9]),this.logger.verbose("No account provided in logout request, clearing all cache items.",this.correlationId),[4,this.browserStorage.clear()];case 6:return t.sent(),[4,this.browserCrypto.clearKeystore()];case 7:return t.sent(),[3,9];case 8:return t.sent(),this.logger.error("Attempted to clear all MSAL cache items and failed. Local cache unchanged."),[3,9];case 9:return[2]}})})},n.prototype.initializeBaseRequest=function(e,t){return Ie(this,void 0,void 0,function(){var r,o,s,u;return Oe(this,function(f){switch(f.label){case 0:return this.performanceClient.addQueueMeasurement(be.InitializeBaseRequest,e.correlationId),this.logger.verbose("Initializing BaseAuthRequest"),r=e.authority||this.config.auth.authority,t?[4,this.validateRequestAuthority(r,t)]:[3,2];case 1:f.sent(),f.label=2;case 2:if(o=g1(e&&e.scopes||[]),s=gt(gt({},e),{correlationId:this.correlationId,authority:r,scopes:o}),!s.authenticationScheme)s.authenticationScheme=er.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(s.authenticationScheme===er.SSH){if(!e.sshJwk)throw Rr.createMissingSshJwkError();if(!e.sshKid)throw Rr.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+s.authenticationScheme+'" as configured in Auth request')}return this.config.cache.claimsBasedCachingEnabled&&e.claims&&!it.isEmptyObj(e.claims)?(u=s,[4,this.browserCrypto.hashString(e.claims)]):[3,4];case 3:u.requestedClaimsHash=f.sent(),f.label=4;case 4:return[2,s]}})})},n.prototype.getRedirectUri=function(e){this.logger.verbose("getRedirectUri called");var t=e||this.config.auth.redirectUri||hi.getCurrentUri();return On.getAbsoluteUrl(t,hi.getCurrentUri())},n.prototype.validateRequestAuthority=function(e,t){return Ie(this,void 0,void 0,function(){var r;return Oe(this,function(o){switch(o.label){case 0:return[4,this.getDiscoveredAuthority(e)];case 1:if(r=o.sent(),!r.isAlias(t.environment))throw Rr.createAuthorityMismatchError();return[2]}})})},n.prototype.initializeServerTelemetryManager=function(e,t){this.logger.verbose("initializeServerTelemetryManager called");var r={clientId:this.config.auth.clientId,correlationId:this.correlationId,apiId:e,forceRefresh:t||!1,wrapperSKU:this.browserStorage.getWrapperMetadata()[0],wrapperVer:this.browserStorage.getWrapperMetadata()[1]};return new O6(r,this.browserStorage)},n.prototype.getDiscoveredAuthority=function(e){return Ie(this,void 0,void 0,function(){var t;return Oe(this,function(r){switch(r.label){case 0:return this.logger.verbose("getDiscoveredAuthority called"),t={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata},e?(this.logger.verbose("Creating discovered authority with request authority"),[4,eC.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,t,this.logger)]):[3,2];case 1:return[2,r.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,eC.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,t,this.logger)];case 3:return[2,r.sent()]}})})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Zv=function(n){Bo(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.initializeAuthorizationCodeRequest=function(t){return Ie(this,void 0,void 0,function(){var r,o;return Oe(this,function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(be.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),this.logger.verbose("initializeAuthorizationRequest called",t.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return r=s.sent(),o=gt(gt({},t),{redirectUri:t.redirectUri,code:Y.EMPTY_STRING,codeVerifier:r.verifier}),t.codeChallenge=r.challenge,t.codeChallengeMethod=Y.S256_CODE_CHALLENGE_METHOD,[2,o]}})})},e.prototype.initializeLogoutRequest=function(t){this.logger.verbose("initializeLogoutRequest called",t==null?void 0:t.correlationId);var r=gt({correlationId:this.correlationId||this.browserCrypto.createNewGuid()},t);if(t)if(t.logoutHint)this.logger.verbose("logoutHint has already been set in logoutRequest");else if(t.account){var o=this.getLogoutHintFromIdTokenClaims(t.account);o&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),r.logoutHint=o)}else this.logger.verbose("logoutHint was not set and account was not passed into logout request, logoutHint will not be set");else this.logger.verbose("logoutHint will not be set since no logout request was configured");return!t||t.postLogoutRedirectUri!==null?t&&t.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to uri set on logout request",r.correlationId),r.postLogoutRedirectUri=On.getAbsoluteUrl(t.postLogoutRedirectUri,hi.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=On.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,hi.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",r.correlationId),r.postLogoutRedirectUri=On.getAbsoluteUrl(hi.getCurrentUri(),hi.getCurrentUri())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",r.correlationId),r},e.prototype.getLogoutHintFromIdTokenClaims=function(t){var r=t.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},e.prototype.createAuthCodeClient=function(t,r,o){return Ie(this,void 0,void 0,function(){var s;return Oe(this,function(u){switch(u.label){case 0:return this.performanceClient.addQueueMeasurement(be.StandardInteractionClientCreateAuthCodeClient,this.correlationId),this.performanceClient.setPreQueueTime(be.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,r,o)];case 1:return s=u.sent(),[2,new SP(s,this.performanceClient)]}})})},e.prototype.getClientConfiguration=function(t,r,o){return Ie(this,void 0,void 0,function(){var s,u;return Oe(this,function(f){switch(f.label){case 0:return this.performanceClient.addQueueMeasurement(be.StandardInteractionClientGetClientConfiguration,this.correlationId),this.logger.verbose("getClientConfiguration called",this.correlationId),this.performanceClient.setPreQueueTime(be.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),[4,this.getDiscoveredAuthority(r,o)];case 1:return s=f.sent(),u=this.config.system.loggerOptions,[2,{authOptions:{clientId:this.config.auth.clientId,authority:s,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:u.loggerCallback,piiLoggingEnabled:u.piiLoggingEnabled,logLevel:u.logLevel,correlationId:this.correlationId},cacheOptions:{claimsBasedCachingEnabled:this.config.cache.claimsBasedCachingEnabled},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:t,libraryInfo:{sku:xl.MSAL_SKU,version:f0,cpu:Y.EMPTY_STRING,os:Y.EMPTY_STRING},telemetry:this.config.telemetry}]}})})},e.prototype.validateAndExtractStateFromHash=function(t,r,o){if(this.logger.verbose("validateAndExtractStateFromHash called",o),!t.state)throw Qe.createHashDoesNotContainStateError();var s=UP.extractBrowserRequestState(this.browserCrypto,t.state);if(!s)throw Qe.createUnableToParseStateError();if(s.interactionType!==r)throw Qe.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",o),t.state},e.prototype.getDiscoveredAuthority=function(t,r){var o;return Ie(this,void 0,void 0,function(){var s,u,f,p;return Oe(this,function(v){switch(v.label){case 0:return this.performanceClient.addQueueMeasurement(be.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),this.logger.verbose("getDiscoveredAuthority called",this.correlationId),s=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(be.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),u={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},f=t||this.config.auth.authority,p=c0.generateAuthority(f,r||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),this.performanceClient.setPreQueueTime(be.AuthorityFactoryCreateDiscoveredInstance,this.correlationId),[4,eC.createDiscoveredInstance(p,this.config.system.networkClient,this.browserStorage,u,this.logger,this.performanceClient,this.correlationId).then(function(g){return s.endMeasurement({success:!0}),g}).catch(function(g){throw s.endMeasurement({errorCode:g.errorCode,subErrorCode:g.subError,success:!1}),g})];case 1:return[2,v.sent()]}})})},e.prototype.initializeAuthorizationRequest=function(t,r){return Ie(this,void 0,void 0,function(){var o,s,u,f,p,v,g;return Oe(this,function(E){switch(E.label){case 0:return this.performanceClient.addQueueMeasurement(be.StandardInteractionClientInitializeAuthorizationRequest,this.correlationId),this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),o=this.getRedirectUri(t.redirectUri),s={interactionType:r},u=$c.setRequestState(this.browserCrypto,t&&t.state||Y.EMPTY_STRING,s),this.performanceClient.setPreQueueTime(be.InitializeBaseRequest,this.correlationId),p=[{}],[4,this.initializeBaseRequest(t)];case 1:return f=gt.apply(void 0,[gt.apply(void 0,p.concat([E.sent()])),{redirectUri:o,state:u,nonce:t.nonce||this.browserCrypto.createNewGuid(),responseMode:qb.FRAGMENT}]),v=t.account||this.browserStorage.getActiveAccount(),v&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+v.homeAccountId,this.correlationId),f.account=v),it.isEmpty(f.loginHint)&&!v&&(g=this.browserStorage.getLegacyLoginHint(),g&&(f.loginHint=g)),[2,f]}})})},e}(FP);/*! @azure/msal-browser v2.38.2 2023-08-24 */var O1=function(){function n(e,t,r,o,s){this.authModule=e,this.browserStorage=t,this.authCodeRequest=r,this.logger=o,this.performanceClient=s}return n.prototype.handleCodeResponseFromHash=function(e,t,r,o){return Ie(this,void 0,void 0,function(){var s,u,f;return Oe(this,function(p){if(this.performanceClient.addQueueMeasurement(be.HandleCodeResponseFromHash,this.authCodeRequest.correlationId),this.logger.verbose("InteractionHandler.handleCodeResponse called"),it.isEmpty(e))throw Qe.createEmptyHashError(e);if(s=this.browserStorage.generateStateKey(t),u=this.browserStorage.getTemporaryCache(s),!u)throw rt.createStateNotFoundError("Cached State");try{f=this.authModule.handleFragmentResponse(e,u)}catch(v){throw v instanceof Fh&&v.subError===Fe.userCancelledError.code?Qe.createUserCancelledError():v}return this.performanceClient.setPreQueueTime(be.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),[2,this.handleCodeResponseFromServer(f,t,r,o)]})})},n.prototype.handleCodeResponseFromServer=function(e,t,r,o,s){return s===void 0&&(s=!0),Ie(this,void 0,void 0,function(){var u,f,p,v,g,E;return Oe(this,function(w){switch(w.label){case 0:if(this.performanceClient.addQueueMeasurement(be.HandleCodeResponseFromServer,this.authCodeRequest.correlationId),this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),u=this.browserStorage.generateStateKey(t),f=this.browserStorage.getTemporaryCache(u),!f)throw rt.createStateNotFoundError("Cached State");return p=this.browserStorage.generateNonceKey(f),v=this.browserStorage.getTemporaryCache(p),this.authCodeRequest.code=e.code,e.cloud_instance_host_name?(this.performanceClient.setPreQueueTime(be.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),[4,this.updateTokenEndpointAuthority(e.cloud_instance_host_name,r,o)]):[3,2];case 1:w.sent(),w.label=2;case 2:return s&&(e.nonce=v||void 0),e.state=f,e.client_info?this.authCodeRequest.clientInfo=e.client_info:(g=this.checkCcsCredentials(),g&&(this.authCodeRequest.ccsCredential=g)),this.performanceClient.setPreQueueTime(be.AuthClientAcquireToken,this.authCodeRequest.correlationId),[4,this.authModule.acquireToken(this.authCodeRequest,e)];case 3:return E=w.sent(),this.browserStorage.cleanRequestByState(t),[2,E]}})})},n.prototype.updateTokenEndpointAuthority=function(e,t,r){return Ie(this,void 0,void 0,function(){var o,s;return Oe(this,function(u){switch(u.label){case 0:return this.performanceClient.addQueueMeasurement(be.UpdateTokenEndpointAuthority,this.authCodeRequest.correlationId),o="https://"+e+"/"+t.tenant+"/",[4,eC.createDiscoveredInstance(o,r,this.browserStorage,t.options,this.logger,this.performanceClient,this.authCodeRequest.correlationId)];case 1:return s=u.sent(),this.authModule.updateAuthority(s),[2]}})})},n.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(Hn.CCS_CREDENTIAL,!0);if(e)try{return JSON.parse(e)}catch{this.authModule.logger.error("Cache credential could not be parsed"),this.authModule.logger.errorPii("Cache credential could not be parsed: "+e)}return null},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var HP=function(n){Bo(e,n);function e(t,r,o,s,u,f){var p=n.call(this,t,r,o,s,f)||this;return p.browserCrypto=u,p}return e.prototype.initiateAuthRequest=function(t,r){return Ie(this,void 0,void 0,function(){var o,s;return Oe(this,function(u){switch(u.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),it.isEmpty(t)?[3,7]:(r.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(Hn.ORIGIN_URI,r.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(Hn.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+t),o={apiId:xr.acquireTokenRedirect,timeout:r.redirectTimeout,noHistory:!1},typeof r.onRedirectNavigate!="function"?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),s=r.onRedirectNavigate(t),s===!1?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,r.navigationClient.navigateExternal(t,o)])));case 1:return u.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(t,o)];case 5:return u.sent(),[2];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),Qe.createEmptyNavigationUriError();case 8:return[2]}})})},e.prototype.handleCodeResponseFromHash=function(t,r,o,s){return Ie(this,void 0,void 0,function(){var u,f,p,v,g,E,w;return Oe(this,function(S){switch(S.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),it.isEmpty(t))throw Qe.createEmptyHashError(t);if(this.browserStorage.setInteractionInProgress(!1),u=this.browserStorage.generateStateKey(r),f=this.browserStorage.getTemporaryCache(u),!f)throw rt.createStateNotFoundError("Cached State");try{p=this.authModule.handleFragmentResponse(t,f)}catch(A){throw A instanceof Fh&&A.subError===Fe.userCancelledError.code?Qe.createUserCancelledError():A}return v=this.browserStorage.generateNonceKey(f),g=this.browserStorage.getTemporaryCache(v),this.authCodeRequest.code=p.code,p.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(p.cloud_instance_host_name,o,s)]:[3,2];case 1:S.sent(),S.label=2;case 2:return p.nonce=g||void 0,p.state=f,p.client_info?this.authCodeRequest.clientInfo=p.client_info:(E=this.checkCcsCredentials(),E&&(this.authCodeRequest.ccsCredential=E)),[4,this.authModule.acquireToken(this.authCodeRequest,p)];case 3:return w=S.sent(),this.browserStorage.cleanRequestByState(r),[2,w]}})})},e}(O1);/*! @azure/msal-browser v2.38.2 2023-08-24 */var Yt;(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"})(Yt||(Yt={}));/*! @azure/msal-browser v2.38.2 2023-08-24 */var Yd;(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"})(Yd||(Yd={}));var h0={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"}},Cu=function(n){Bo(e,n);function e(t,r,o){var s=n.call(this,t,r)||this;return Object.setPrototypeOf(s,e.prototype),s.name="NativeAuthError",s.ext=o,s}return e.prototype.isFatal=function(){if(this.ext&&this.ext.status&&(this.ext.status===Yd.PERSISTENT_ERROR||this.ext.status===Yd.DISABLED))return!0;switch(this.errorCode){case h0.extensionError.code:return!0;default:return!1}},e.createError=function(t,r,o){if(o&&o.status)switch(o.status){case Yd.ACCOUNT_UNAVAILABLE:return Rl.createNativeAccountUnavailableError();case Yd.USER_INTERACTION_REQUIRED:return new Rl(t,r);case Yd.USER_CANCEL:return Qe.createUserCancelledError();case Yd.NO_NETWORK:return Qe.createNoNetworkConnectivityError()}return new e(t,r,o)},e.createUserSwitchError=function(){return new e(h0.userSwitch.code,h0.userSwitch.desc)},e.createTokensNotFoundInCacheError=function(){return new e(h0.tokensNotFoundInCache.code,h0.tokensNotFoundInCache.desc)},e}(St);/*! @azure/msal-browser v2.38.2 2023-08-24 */var $P=function(n){Bo(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.acquireToken=function(t){return Ie(this,void 0,void 0,function(){var r,o,s,u,f;return Oe(this,function(p){switch(p.label){case 0:return r=this.performanceClient.startMeasurement(be.SilentCacheClientAcquireToken,t.correlationId),o=this.initializeServerTelemetryManager(xr.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(o,t.authority,t.azureCloudOptions)];case 1:s=p.sent(),this.logger.verbose("Silent auth client created"),p.label=2;case 2:return p.trys.push([2,4,,5]),[4,s.acquireCachedToken(t)];case 3:return u=p.sent(),r.endMeasurement({success:!0,fromCache:!0}),[2,u];case 4:throw f=p.sent(),f instanceof Qe&&f.errorCode===Fe.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:f instanceof St&&f.errorCode||void 0,subErrorCode:f instanceof St&&f.subError||void 0,success:!1}),f;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(Qe.createSilentLogoutUnsupportedError())},e.prototype.createSilentFlowClient=function(t,r,o){return Ie(this,void 0,void 0,function(){var s;return Oe(this,function(u){switch(u.label){case 0:return this.performanceClient.setPreQueueTime(be.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,r,o)];case 1:return s=u.sent(),[2,new S6(s,this.performanceClient)]}})})},e.prototype.initializeSilentRequest=function(t,r){return Ie(this,void 0,void 0,function(){var o;return Oe(this,function(s){switch(s.label){case 0:return this.performanceClient.addQueueMeasurement(be.InitializeSilentRequest,this.correlationId),this.performanceClient.setPreQueueTime(be.InitializeBaseRequest,this.correlationId),o=[gt({},t)],[4,this.initializeBaseRequest(t,r)];case 1:return[2,gt.apply(void 0,[gt.apply(void 0,o.concat([s.sent()])),{account:r,forceRefresh:t.forceRefresh||!1}])]}})})},e}(Zv);/*! @azure/msal-browser v2.38.2 2023-08-24 */var em=function(n){Bo(e,n);function e(t,r,o,s,u,f,p,v,g,E,w,S){var A=n.call(this,t,r,o,s,u,f,v,g,S)||this;return A.apiId=p,A.accountId=E,A.nativeMessageHandler=g,A.nativeStorageManager=w,A.silentCacheClient=new $P(t,A.nativeStorageManager,o,s,u,f,v,g,S),A}return e.prototype.acquireToken=function(t){return Ie(this,void 0,void 0,function(){var r,o,s,u,f,p,v;return Oe(this,function(g){switch(g.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),r=this.performanceClient.startMeasurement(be.NativeInteractionClientAcquireToken,t.correlationId),o=Ks.nowSeconds(),[4,this.initializeNativeRequest(t)];case 1:s=g.sent(),g.label=2;case 2:return g.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,s)];case 3:return u=g.sent(),r.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,u];case 4:return g.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return f={method:Bc.GetToken,request:s},[4,this.nativeMessageHandler.sendMessage(f)];case 6:return p=g.sent(),v=this.validateNativeResponse(p),[2,this.handleNativeResponse(v,s,o).then(function(E){return r.endMeasurement({success:!0,isNativeBroker:!0,requestId:E.requestId}),E}).catch(function(E){throw r.endMeasurement({success:!1,errorCode:E.errorCode,subErrorCode:E.subError,isNativeBroker:!0}),E})]}})})},e.prototype.createSilentCacheRequest=function(t,r){return{authority:t.authority,correlationId:this.correlationId,scopes:sa.fromString(t.scope).asArray(),account:r,forceRefresh:!1}},e.prototype.acquireTokensFromCache=function(t,r){return Ie(this,void 0,void 0,function(){var o,s,u,f;return Oe(this,function(p){switch(p.label){case 0:if(!t)throw this.logger.warning("NativeInteractionClient:acquireTokensFromCache - No nativeAccountId provided"),rt.createNoAccountFoundError();if(o=this.browserStorage.getAccountInfoFilteredBy({nativeAccountId:t}),!o)throw rt.createNoAccountFoundError();p.label=1;case 1:return p.trys.push([1,3,,4]),s=this.createSilentCacheRequest(r,o),[4,this.silentCacheClient.acquireToken(s)];case 2:return u=p.sent(),[2,u];case 3:throw f=p.sent(),f;case 4:return[2]}})})},e.prototype.acquireTokenRedirect=function(t){return Ie(this,void 0,void 0,function(){var r,o,s,u,f,p;return Oe(this,function(v){switch(v.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(t)];case 1:r=v.sent(),o={method:Bc.GetToken,request:r},v.label=2;case 2:return v.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(o)];case 3:return s=v.sent(),this.validateNativeResponse(s),[3,5];case 4:if(u=v.sent(),u instanceof Cu&&u.isFatal())throw u;return[3,5];case 5:return this.browserStorage.setTemporaryCache(Hn.NATIVE_REQUEST,JSON.stringify(r),!0),f={apiId:xr.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},p=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(t.redirectUri),[4,this.navigationClient.navigateExternal(p,f)];case 6:return v.sent(),[2]}})})},e.prototype.handleRedirectPromise=function(){return Ie(this,void 0,void 0,function(){var t,r,o,s,u,f,p,v;return Oe(this,function(g){switch(g.label){case 0:if(this.logger.trace("NativeInteractionClient - handleRedirectPromise called."),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(t=this.browserStorage.getCachedNativeRequest(),!t)return this.logger.verbose("NativeInteractionClient - handleRedirectPromise called but there is no cached request, returning null."),[2,null];r=t.prompt,o=gP(t,["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(Hn.NATIVE_REQUEST)),s={method:Bc.GetToken,request:o},u=Ks.nowSeconds(),g.label=1;case 1:return g.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(s)];case 2:return f=g.sent(),this.validateNativeResponse(f),p=this.handleNativeResponse(f,o,u),this.browserStorage.setInteractionInProgress(!1),[2,p];case 3:throw v=g.sent(),this.browserStorage.setInteractionInProgress(!1),v;case 4:return[2]}})})},e.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},e.prototype.handleNativeResponse=function(t,r,o){return Ie(this,void 0,void 0,function(){var s,u,f,p,v,g;return Oe(this,function(E){switch(E.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),t.account.id!==r.accountId)throw Cu.createUserSwitchError();return[4,this.getDiscoveredAuthority(r.authority)];case 1:return s=E.sent(),u=s.getPreferredCache(),f=this.createIdTokenObj(t),p=this.createHomeAccountIdentifier(t,f),v=this.createAccountEntity(t,p,f,u),[4,this.generateAuthenticationResult(t,r,f,v,s.canonicalAuthority,o)];case 2:return g=E.sent(),this.cacheAccount(v),this.cacheNativeTokens(t,r,p,v,f,g.accessToken,g.tenantId,o),[2,g]}})})},e.prototype.createIdTokenObj=function(t){return new _u(t.id_token||Y.EMPTY_STRING,this.browserCrypto)},e.prototype.createHomeAccountIdentifier=function(t,r){var o=zo.generateHomeAccountId(t.client_info||Y.EMPTY_STRING,Na.Default,this.logger,this.browserCrypto,r);return o},e.prototype.createAccountEntity=function(t,r,o,s){return zo.createAccount(t.client_info,r,o,void 0,void 0,void 0,s,t.account.id)},e.prototype.generateScopes=function(t,r){return t.scope?sa.fromString(t.scope):sa.fromString(r.scope)},e.prototype.generatePopAccessToken=function(t,r){return Ie(this,void 0,void 0,function(){var o,s;return Oe(this,function(u){switch(u.label){case 0:if(r.tokenType!==er.POP)return[3,2];if(t.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),[2,t.shr];if(o=new Qv(this.browserCrypto),s={resourceRequestMethod:r.resourceRequestMethod,resourceRequestUri:r.resourceRequestUri,shrClaims:r.shrClaims,shrNonce:r.shrNonce},!r.keyId)throw rt.createKeyIdMissingError();return[4,o.signPopToken(t.access_token,r.keyId,s)];case 1:return[2,u.sent()];case 2:return[2,t.access_token]}})})},e.prototype.generateAuthenticationResult=function(t,r,o,s,u,f){return Ie(this,void 0,void 0,function(){var p,v,g,E,w,S,A,k;return Oe(this,function(M){switch(M.label){case 0:return p=this.addTelemetryFromNativeResponse(t),v=t.scope?sa.fromString(t.scope):sa.fromString(r.scope),g=t.account.properties||{},E=g.UID||o.claims.oid||o.claims.sub||Y.EMPTY_STRING,w=g.TenantId||o.claims.tid||Y.EMPTY_STRING,[4,this.generatePopAccessToken(t,r)];case 1:return S=M.sent(),A=r.tokenType===er.POP?er.POP:er.BEARER,k={authority:u,uniqueId:E,tenantId:w,scopes:v.asArray(),account:s.getAccountInfo(),idToken:t.id_token,idTokenClaims:o.claims,accessToken:S,fromCache:p?this.isResponseFromCache(p):!1,expiresOn:new Date(Number(f+t.expires_in)*1e3),tokenType:A,correlationId:this.correlationId,state:t.state,fromNativeBroker:!0},[2,k]}})})},e.prototype.cacheAccount=function(t){var r=this;this.browserStorage.setAccount(t),this.browserStorage.removeAccountContext(t).catch(function(o){r.logger.error("Error occurred while removing account context from browser storage. "+o)})},e.prototype.cacheNativeTokens=function(t,r,o,s,u,f,p,v){var g=$h.createIdTokenEntity(o,r.authority,t.id_token||Y.EMPTY_STRING,r.clientId,u.claims.tid||Y.EMPTY_STRING),E=r.tokenType===er.POP?Y.SHR_NONCE_VALIDITY:(typeof t.expires_in=="string"?parseInt(t.expires_in,10):t.expires_in)||0,w=v+E,S=this.generateScopes(t,r),A=Bh.createAccessTokenEntity(o,r.authority,f,r.clientId,u?u.claims.tid||Y.EMPTY_STRING:p,S.printScopes(),w,0,this.browserCrypto),k=new l0(s,g,A);this.nativeStorageManager.saveCacheRecord(k)},e.prototype.addTelemetryFromNativeResponse=function(t){var r=this.getMATSFromResponse(t);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},e.prototype.validateNativeResponse=function(t){if(t.hasOwnProperty("access_token")&&t.hasOwnProperty("id_token")&&t.hasOwnProperty("client_info")&&t.hasOwnProperty("account")&&t.hasOwnProperty("scope")&&t.hasOwnProperty("expires_in"))return t;throw Cu.createUnexpectedError("Response missing expected properties.")},e.prototype.getMATSFromResponse=function(t){if(t.properties.MATS)try{return JSON.parse(t.properties.MATS)}catch{this.logger.error("NativeInteractionClient - Error parsing MATS telemetry, returning null instead")}return null},e.prototype.isResponseFromCache=function(t){return typeof t.is_cached>"u"?(this.logger.verbose("NativeInteractionClient - MATS telemetry does not contain field indicating if response was served from cache. Returning false."),!1):!!t.is_cached},e.prototype.initializeNativeRequest=function(t){return Ie(this,void 0,void 0,function(){var r,o,s,u,f,p,v,g,E,w,S=this;return Oe(this,function(A){switch(A.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),r=t.authority||this.config.auth.authority,t.account?[4,this.validateRequestAuthority(r,t.account)]:[3,2];case 1:A.sent(),A.label=2;case 2:return o=new On(r),o.validateAsUri(),s=t.scopes,u=gP(t,["scopes"]),f=new sa(s||[]),f.appendScopes(e0),p=function(){switch(S.apiId){case xr.ssoSilent:case xr.acquireTokenSilent_silentFlow:return S.logger.trace("initializeNativeRequest: silent request sets prompt to none"),aa.NONE}if(!t.prompt){S.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(t.prompt){case aa.NONE:case aa.CONSENT:case aa.LOGIN:return S.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),t.prompt;default:throw S.logger.trace("initializeNativeRequest: prompt = "+t.prompt+" is not compatible with native flow"),Qe.createNativePromptParameterNotSupportedError()}},v=gt(gt({},u),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:o.urlString,scope:f.printScopes(),redirectUri:this.getRedirectUri(t.redirectUri),prompt:p(),correlationId:this.correlationId,tokenType:t.authenticationScheme,windowTitleSubstring:document.title,extraParameters:gt(gt(gt({},t.extraQueryParameters),t.tokenQueryParameters),{telemetry:d0.MATS_TELEMETRY}),extendedExpiryToken:!1}),t.authenticationScheme!==er.POP?[3,4]:(g={resourceRequestUri:t.resourceRequestUri,resourceRequestMethod:t.resourceRequestMethod,shrClaims:t.shrClaims,shrNonce:t.shrNonce},E=new Qv(this.browserCrypto),[4,E.generateCnf(g)]);case 3:w=A.sent(),v.reqCnf=w.reqCnfString,v.keyId=w.kid,A.label=4;case 4:return[2,v]}})})},e}(FP);/*! @azure/msal-browser v2.38.2 2023-08-24 */var jh=function(){function n(e,t,r,o){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=o,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this),this.performanceClient=r,this.handshakeEvent=r.startMeasurement(be.NativeMessageHandlerHandshake)}return n.prototype.sendMessage=function(e){return Ie(this,void 0,void 0,function(){var t,r=this;return Oe(this,function(o){return this.logger.trace("NativeMessageHandler - sendMessage called."),t={channel:d0.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:e},this.logger.trace("NativeMessageHandler - Sending request to browser extension"),this.logger.tracePii("NativeMessageHandler - Sending request to browser extension: "+JSON.stringify(t)),this.messageChannel.port1.postMessage(t),[2,new Promise(function(s,u){r.resolvers.set(t.responseId,{resolve:s,reject:u})})]})})},n.createProvider=function(e,t,r){return Ie(this,void 0,void 0,function(){var o,s;return Oe(this,function(u){switch(u.label){case 0:e.trace("NativeMessageHandler - createProvider called."),u.label=1;case 1:return u.trys.push([1,3,,5]),o=new n(e,t,r,d0.PREFERRED_EXTENSION_ID),[4,o.sendHandshakeRequest()];case 2:return u.sent(),[2,o];case 3:return u.sent(),s=new n(e,t,r),[4,s.sendHandshakeRequest()];case 4:return u.sent(),[2,s];case 5:return[2]}})})},n.prototype.sendHandshakeRequest=function(){return Ie(this,void 0,void 0,function(){var e,t=this;return Oe(this,function(r){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:d0.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:Bc.HandshakeRequest}},this.handshakeEvent.addStaticFields({extensionId:this.extensionId,extensionHandshakeTimeoutMs:this.handshakeTimeoutMs}),this.messageChannel.port1.onmessage=function(o){t.onChannelMessage(o)},window.postMessage(e,window.origin,[this.messageChannel.port2]),[2,new Promise(function(o,s){t.handshakeResolvers.set(e.responseId,{resolve:o,reject:s}),t.timeoutId=window.setTimeout(function(){window.removeEventListener("message",t.windowListener,!1),t.messageChannel.port1.close(),t.messageChannel.port2.close(),t.handshakeEvent.endMeasurement({extensionHandshakeTimedOut:!0,success:!1}),s(Qe.createNativeHandshakeTimeoutError()),t.handshakeResolvers.delete(e.responseId)},t.handshakeTimeoutMs)})]})})},n.prototype.onWindowMessage=function(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source===window){var t=e.data;if(!(!t.channel||t.channel!==d0.CHANNEL_ID)&&!(t.extensionId&&t.extensionId!==this.extensionId)&&t.body.method===Bc.HandshakeRequest){this.logger.verbose(t.extensionId?"Extension with id: "+t.extensionId+" not installed":"No extension installed"),clearTimeout(this.timeoutId),this.messageChannel.port1.close(),this.messageChannel.port2.close(),window.removeEventListener("message",this.windowListener,!1);var r=this.handshakeResolvers.get(t.responseId);r&&(this.handshakeEvent.endMeasurement({success:!1,extensionInstalled:!1}),r.reject(Qe.createNativeExtensionNotInstalledError()))}}},n.prototype.onChannelMessage=function(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var t=e.data,r=this.resolvers.get(t.responseId),o=this.handshakeResolvers.get(t.responseId);try{var s=t.body.method;if(s===Bc.Response){if(!r)return;var u=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(u)),u.status!=="Success")r.reject(Cu.createError(u.code,u.description,u.ext));else if(u.result)u.result.code&&u.result.description?r.reject(Cu.createError(u.result.code,u.result.description,u.result.ext)):r.resolve(u.result);else throw St.createUnexpectedError("Event does not contain result.");this.resolvers.delete(t.responseId)}else if(s===Bc.HandshakeResponse){if(!o)return;clearTimeout(this.timeoutId),window.removeEventListener("message",this.windowListener,!1),this.extensionId=t.extensionId,this.extensionVersion=t.body.version,this.logger.verbose("NativeMessageHandler - Received HandshakeResponse from extension: "+this.extensionId),this.handshakeEvent.endMeasurement({extensionInstalled:!0,success:!0}),o.resolve(),this.handshakeResolvers.delete(t.responseId)}}catch(f){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+f.toString()),this.logger.errorPii("Unable to parse "+e),r?r.reject(f):o&&o.reject(f)}},n.prototype.getExtensionId=function(){return this.extensionId},n.prototype.getExtensionVersion=function(){return this.extensionVersion},n.isNativeAvailable=function(e,t,r,o){if(t.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return t.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!r)return t.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(o)switch(o){case er.BEARER:case er.POP:return t.trace("isNativeAvailable: authenticationScheme is supported, returning true"),!0;default:return t.trace("isNativeAvailable: authenticationScheme is not supported, returning false"),!1}return!0},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var F6=function(n){Bo(e,n);function e(t,r,o,s,u,f,p,v,g,E){var w=n.call(this,t,r,o,s,u,f,p,g,E)||this;return w.nativeStorage=v,w}return e.prototype.acquireToken=function(t){return Ie(this,void 0,void 0,function(){var r,o,s,u,f,p,v,g,E,w=this;return Oe(this,function(S){switch(S.label){case 0:return this.performanceClient.setPreQueueTime(be.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,mt.Redirect)];case 1:r=S.sent(),this.browserStorage.updateCacheEntries(r.state,r.nonce,r.authority,r.loginHint||Y.EMPTY_STRING,r.account||null),o=this.initializeServerTelemetryManager(xr.acquireTokenRedirect),s=function(A){A.persisted&&(w.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),w.browserStorage.cleanRequestByState(r.state),w.eventHandler.emitEvent(Yt.RESTORE_FROM_BFCACHE,mt.Redirect))},S.label=2;case 2:return S.trys.push([2,7,,8]),this.performanceClient.setPreQueueTime(be.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(r)];case 3:return u=S.sent(),this.performanceClient.setPreQueueTime(be.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(o,r.authority,r.azureCloudOptions)];case 4:return f=S.sent(),this.logger.verbose("Auth code client created"),p=new HP(f,this.browserStorage,u,this.logger,this.browserCrypto,this.performanceClient),[4,f.getAuthCodeUrl(gt(gt({},r),{nativeBroker:jh.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}))];case 5:return v=S.sent(),g=this.getRedirectStartPage(t.redirectStartPage),this.logger.verbosePii("Redirect start page: "+g),window.addEventListener("pageshow",s),[4,p.initiateAuthRequest(v,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:g,onRedirectNavigate:t.onRedirectNavigate})];case 6:return[2,S.sent()];case 7:throw E=S.sent(),E instanceof St&&E.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",s),o.cacheFailedRequest(E),this.browserStorage.cleanRequestByState(r.state),E;case 8:return[2]}})})},e.prototype.handleRedirectPromise=function(t){return Ie(this,void 0,void 0,function(){var r,o,s,u,f,p,v,g,E,w,S,A;return Oe(this,function(k){switch(k.label){case 0:r=this.initializeServerTelemetryManager(xr.handleRedirectPromise),k.label=1;case 1:if(k.trys.push([1,10,,11]),!this.browserStorage.isInteractionInProgress(!0))return this.logger.info("handleRedirectPromise called but there is no interaction in progress, returning null."),[2,null];if(o=this.getRedirectResponseHash(t||window.location.hash),!o)return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(mt.Redirect),[2,null];s=void 0;try{u=On.getDeserializedHash(o),s=this.validateAndExtractStateFromHash(u,mt.Redirect),this.logger.verbose("State extracted from hash")}catch(M){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+M),this.browserStorage.cleanRequestByInteractionType(mt.Redirect),[2,null]}return f=this.browserStorage.getTemporaryCache(Hn.ORIGIN_URI,!0)||Y.EMPTY_STRING,p=On.removeHashFromUrl(f),v=On.removeHashFromUrl(window.location.href),p===v&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(o,s,r)]):[3,3];case 2:return g=k.sent(),f.indexOf("#")>-1&&hi.replaceHash(f),[2,g];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(o,s,r)]);case 4:return!hi.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(Hn.URL_HASH,o,!0),E={apiId:xr.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},w=!0,!f||f==="null"?(S=hi.getHomepage(),this.browserStorage.setTemporaryCache(Hn.ORIGIN_URI,S,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(S,E)]):[3,6]):[3,9];case 5:return w=k.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+f),[4,this.navigationClient.navigateInternal(f,E)];case 7:w=k.sent(),k.label=8;case 8:if(!w)return[2,this.handleHash(o,s,r)];k.label=9;case 9:return[2,null];case 10:throw A=k.sent(),A instanceof St&&A.setCorrelationId(this.correlationId),r.cacheFailedRequest(A),this.browserStorage.cleanRequestByInteractionType(mt.Redirect),A;case 11:return[2]}})})},e.prototype.getRedirectResponseHash=function(t){this.logger.verbose("getRedirectResponseHash called");var r=On.hashContainsKnownProperties(t);if(r)return hi.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),t;var o=this.browserStorage.getTemporaryCache(Hn.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Hn.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),o},e.prototype.handleHash=function(t,r,o){return Ie(this,void 0,void 0,function(){var s,u,f,p,v,g,E,w=this;return Oe(this,function(S){switch(S.label){case 0:if(s=this.browserStorage.getCachedRequest(r,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),u=On.getDeserializedHash(t),u.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw Qe.createNativeConnectionNotEstablishedError();return f=new em(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,xr.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,u.accountId,this.nativeStorage,s.correlationId),p=$c.parseRequestState(this.browserCrypto,r).userRequestState,[2,f.acquireToken(gt(gt({},s),{state:p,prompt:void 0})).finally(function(){w.browserStorage.cleanRequestByState(r)})]}if(v=this.browserStorage.getCachedAuthority(r),!v)throw Qe.createNoCachedAuthorityError();return this.performanceClient.setPreQueueTime(be.StandardInteractionClientCreateAuthCodeClient,s.correlationId),[4,this.createAuthCodeClient(o,v)];case 1:return g=S.sent(),this.logger.verbose("Auth code client created"),Xb.removeThrottle(this.browserStorage,this.config.auth.clientId,s),E=new HP(g,this.browserStorage,s,this.logger,this.browserCrypto,this.performanceClient),[4,E.handleCodeResponseFromHash(t,r,g.authority,this.networkClient)];case 2:return[2,S.sent()]}})})},e.prototype.logout=function(t){return Ie(this,void 0,void 0,function(){var r,o,s,u,f,p,v;return Oe(this,function(g){switch(g.label){case 0:this.logger.verbose("logoutRedirect called"),r=this.initializeLogoutRequest(t),o=this.initializeServerTelemetryManager(xr.logout),g.label=1;case 1:return g.trys.push([1,10,,11]),this.eventHandler.emitEvent(Yt.LOGOUT_START,mt.Redirect,t),[4,this.clearCacheOnLogout(r.account)];case 2:return g.sent(),s={apiId:xr.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},this.performanceClient.setPreQueueTime(be.StandardInteractionClientCreateAuthCodeClient,r.correlationId),[4,this.createAuthCodeClient(o,t&&t.authority)];case 3:return u=g.sent(),this.logger.verbose("Auth code client created"),f=u.getLogoutUri(r),this.eventHandler.emitEvent(Yt.LOGOUT_SUCCESS,mt.Redirect,r),t&&typeof t.onRedirectNavigate=="function"?(p=t.onRedirectNavigate(f),p===!1?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(f,s)])):[3,7];case 4:return g.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),g.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(f,s)];case 8:return g.sent(),[2];case 9:return[3,11];case 10:throw v=g.sent(),v instanceof St&&v.setCorrelationId(this.correlationId),o.cacheFailedRequest(v),this.eventHandler.emitEvent(Yt.LOGOUT_FAILURE,mt.Redirect,null,v),this.eventHandler.emitEvent(Yt.LOGOUT_END,mt.Redirect),v;case 11:return this.eventHandler.emitEvent(Yt.LOGOUT_END,mt.Redirect),[2]}})})},e.prototype.getRedirectStartPage=function(t){var r=t||window.location.href;return On.getAbsoluteUrl(r,hi.getCurrentUri())},e}(Zv);/*! @azure/msal-browser v2.38.2 2023-08-24 */var H6=function(n){Bo(e,n);function e(t,r,o,s,u,f,p,v,g,E){var w=n.call(this,t,r,o,s,u,f,p,g,E)||this;return w.unloadWindow=w.unloadWindow.bind(w),w.nativeStorage=v,w}return e.prototype.acquireToken=function(t){try{var r=this.generatePopupName(t.scopes||e0,t.authority||this.config.auth.authority),o=t.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(t,r,o);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var s=this.openSizedPopup("about:blank",r,o);return this.acquireTokenPopupAsync(t,r,o,s)}catch(u){return Promise.reject(u)}},e.prototype.logout=function(t){try{this.logger.verbose("logoutPopup called");var r=this.initializeLogoutRequest(t),o=this.generateLogoutPopupName(r),s=t&&t.authority,u=t&&t.mainWindowRedirectUri,f=(t==null?void 0:t.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(r,o,f,s,void 0,u);this.logger.verbose("asyncPopup set to false, opening popup");var p=this.openSizedPopup("about:blank",o,f);return this.logoutPopupAsync(r,o,f,s,p,u)}catch(v){return Promise.reject(v)}},e.prototype.acquireTokenPopupAsync=function(t,r,o,s){return Ie(this,void 0,void 0,function(){var u,f,p,v,g,E,w,S,A,k,M,P,L,j,U,H,W,Q=this;return Oe(this,function(Te){switch(Te.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),u=this.initializeServerTelemetryManager(xr.acquireTokenPopup),this.performanceClient.setPreQueueTime(be.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,mt.Popup)];case 1:f=Te.sent(),this.browserStorage.updateCacheEntries(f.state,f.nonce,f.authority,f.loginHint||Y.EMPTY_STRING,f.account||null),Te.label=2;case 2:return Te.trys.push([2,8,,9]),this.performanceClient.setPreQueueTime(be.StandardInteractionClientInitializeAuthorizationCodeRequest,t.correlationId),[4,this.initializeAuthorizationCodeRequest(f)];case 3:return p=Te.sent(),this.performanceClient.setPreQueueTime(be.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(u,f.authority,f.azureCloudOptions)];case 4:return v=Te.sent(),this.logger.verbose("Auth code client created"),g=jh.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme),E=void 0,g&&(E=this.performanceClient.startMeasurement(be.FetchAccountIdWithNativeBroker,t.correlationId)),[4,v.getAuthCodeUrl(gt(gt({},f),{nativeBroker:g}))];case 5:return w=Te.sent(),S=new O1(v,this.browserStorage,p,this.logger,this.performanceClient),A={popup:s,popupName:r,popupWindowAttributes:o},k=this.initiateAuthRequest(w,A),this.eventHandler.emitEvent(Yt.POPUP_OPENED,mt.Popup,{popupWindow:k},null),[4,this.monitorPopupForHash(k)];case 6:if(M=Te.sent(),P=On.getDeserializedHash(M),L=this.validateAndExtractStateFromHash(P,mt.Popup,f.correlationId),Xb.removeThrottle(this.browserStorage,this.config.auth.clientId,p),P.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),E&&E.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw Qe.createNativeConnectionNotEstablishedError();return j=new em(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,xr.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,P.accountId,this.nativeStorage,f.correlationId),U=$c.parseRequestState(this.browserCrypto,L).userRequestState,[2,j.acquireToken(gt(gt({},f),{state:U,prompt:void 0})).finally(function(){Q.browserStorage.cleanRequestByState(L)})]}return[4,S.handleCodeResponseFromHash(M,L,v.authority,this.networkClient)];case 7:return H=Te.sent(),[2,H];case 8:throw W=Te.sent(),s&&s.close(),W instanceof St&&W.setCorrelationId(this.correlationId),u.cacheFailedRequest(W),this.browserStorage.cleanRequestByState(f.state),W;case 9:return[2]}})})},e.prototype.logoutPopupAsync=function(t,r,o,s,u,f){return Ie(this,void 0,void 0,function(){var p,v,g,E,w,S,A;return Oe(this,function(k){switch(k.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(Yt.LOGOUT_START,mt.Popup,t),p=this.initializeServerTelemetryManager(xr.logoutPopup),k.label=1;case 1:return k.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(t.account)];case 2:return k.sent(),this.performanceClient.setPreQueueTime(be.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(p,s)];case 3:return v=k.sent(),this.logger.verbose("Auth code client created"),g=v.getLogoutUri(t),this.eventHandler.emitEvent(Yt.LOGOUT_SUCCESS,mt.Popup,t),E=this.openPopup(g,{popupName:r,popupWindowAttributes:o,popup:u}),this.eventHandler.emitEvent(Yt.POPUP_OPENED,mt.Popup,{popupWindow:E},null),[4,this.waitForLogoutPopup(E)];case 4:return k.sent(),f?(w={apiId:xr.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},S=On.getAbsoluteUrl(f,hi.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+S),this.navigationClient.navigateInternal(S,w)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw A=k.sent(),u&&u.close(),A instanceof St&&A.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(Yt.LOGOUT_FAILURE,mt.Popup,null,A),this.eventHandler.emitEvent(Yt.LOGOUT_END,mt.Popup),p.cacheFailedRequest(A),A;case 6:return this.eventHandler.emitEvent(Yt.LOGOUT_END,mt.Popup),[2]}})})},e.prototype.initiateAuthRequest=function(t,r){if(it.isEmpty(t))throw this.logger.error("Navigate url is empty"),Qe.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+t),this.openPopup(t,r)},e.prototype.monitorPopupForHash=function(t){var r=this;return new Promise(function(o,s){var u=r.config.system.windowHashTimeout/r.config.system.pollIntervalMilliseconds,f=0;r.logger.verbose("PopupHandler.monitorPopupForHash - polling started");var p=setInterval(function(){if(t.closed){r.logger.error("PopupHandler.monitorPopupForHash - window closed"),r.cleanPopup(),clearInterval(p),s(Qe.createUserCancelledError());return}var v=Y.EMPTY_STRING,g=Y.EMPTY_STRING;try{v=t.location.href,g=t.location.hash}catch{}it.isEmpty(v)||v==="about:blank"||(r.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),f++,g?(r.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(p),r.cleanPopup(t),On.hashContainsKnownProperties(g)?(r.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),o(g)):(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: "+g),s(Qe.createHashDoesNotContainKnownPropertiesError()))):f>u&&(r.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(p),s(Qe.createMonitorPopupTimeoutError())))},r.config.system.pollIntervalMilliseconds)})},e.prototype.waitForLogoutPopup=function(t){var r=this;return new Promise(function(o){r.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var s=setInterval(function(){t.closed&&(r.logger.error("PopupHandler.waitForLogoutPopup - window closed"),r.cleanPopup(),clearInterval(s),o());var u=Y.EMPTY_STRING;try{u=t.location.href}catch{}it.isEmpty(u)||u==="about:blank"||(r.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(s),r.cleanPopup(t),o())},r.config.system.pollIntervalMilliseconds)})},e.prototype.openPopup=function(t,r){try{var o=void 0;if(r.popup?(o=r.popup,this.logger.verbosePii("Navigating popup window to: "+t),o.location.assign(t)):typeof r.popup>"u"&&(this.logger.verbosePii("Opening popup window to: "+t),o=this.openSizedPopup(t,r.popupName,r.popupWindowAttributes)),!o)throw Qe.createEmptyWindowCreatedError();return o.focus&&o.focus(),this.currentWindow=o,window.addEventListener("beforeunload",this.unloadWindow),o}catch(s){throw this.logger.error("error opening popup "+s.message),this.browserStorage.setInteractionInProgress(!1),Qe.createPopupWindowError(s.toString())}},e.prototype.openSizedPopup=function(t,r,o){var s,u,f,p,v=window.screenLeft?window.screenLeft:window.screenX,g=window.screenTop?window.screenTop:window.screenY,E=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,w=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,S=(s=o.popupSize)===null||s===void 0?void 0:s.width,A=(u=o.popupSize)===null||u===void 0?void 0:u.height,k=(f=o.popupPosition)===null||f===void 0?void 0:f.top,M=(p=o.popupPosition)===null||p===void 0?void 0:p.left;return(!S||S<0||S>E)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),S=xl.POPUP_WIDTH),(!A||A<0||A>w)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),A=xl.POPUP_HEIGHT),(!k||k<0||k>w)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),k=Math.max(0,w/2-xl.POPUP_HEIGHT/2+g)),(!M||M<0||M>E)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),M=Math.max(0,E/2-xl.POPUP_WIDTH/2+v)),window.open(t,r,"width="+S+", height="+A+", top="+k+", left="+M+", scrollbars=yes")},e.prototype.unloadWindow=function(t){this.browserStorage.cleanRequestByInteractionType(mt.Popup),this.currentWindow&&this.currentWindow.close(),t.preventDefault()},e.prototype.cleanPopup=function(t){t&&t.close(),window.removeEventListener("beforeunload",this.unloadWindow),this.browserStorage.setInteractionInProgress(!1)},e.prototype.generatePopupName=function(t,r){return xl.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+t.join("-")+"."+r+"."+this.correlationId},e.prototype.generateLogoutPopupName=function(t){var r=t.account&&t.account.homeAccountId;return xl.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+r+"."+this.correlationId},e}(Zv);/*! @azure/msal-browser v2.38.2 2023-08-24 */var $6=function(){function n(){}return n.prototype.navigateInternal=function(e,t){return n.defaultNavigateWindow(e,t)},n.prototype.navigateExternal=function(e,t){return n.defaultNavigateWindow(e,t)},n.defaultNavigateWindow=function(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise(function(r){setTimeout(function(){r(!0)},t.timeout)})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var B6=6e4,N1=6e3,j6=3e4,z6=2e3;function q6(n,e){var t=n.auth,r=n.cache,o=n.system,s=n.telemetry,u={clientId:Y.EMPTY_STRING,authority:""+Y.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:Y.EMPTY_STRING,authorityMetadata:Y.EMPTY_STRING,redirectUri:Y.EMPTY_STRING,postLogoutRedirectUri:Y.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:u0.AAD,azureCloudOptions:{azureCloudInstance:a0.None,tenant:Y.EMPTY_STRING},skipAuthorityMetadataCache:!1},f={cacheLocation:Bi.SessionStorage,temporaryCacheLocation:Bi.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!!(r&&r.cacheLocation===Bi.LocalStorage),claimsBasedCachingEnabled:!0},p={loggerCallback:function(){},logLevel:fi.Info,piiLoggingEnabled:!1},v=gt(gt({},CP),{loggerOptions:p,networkClient:e?hi.getBrowserNetworkClient():k6,navigationClient:new $6,loadFrameTimeout:0,windowHashTimeout:(o==null?void 0:o.loadFrameTimeout)||B6,iframeHashTimeout:(o==null?void 0:o.loadFrameTimeout)||N1,navigateFrameWait:e&&hi.detectIEOrEdge()?500:0,redirectNavigationTimeout:j6,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(o==null?void 0:o.nativeBrokerHandshakeTimeout)||z6,pollIntervalMilliseconds:xl.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),g=gt(gt({},o),{loggerOptions:(o==null?void 0:o.loggerOptions)||p}),E={application:{appName:Y.EMPTY_STRING,appVersion:Y.EMPTY_STRING}},w={auth:gt(gt({},u),t),cache:gt(gt({},f),r),system:gt(gt({},v),g),telemetry:gt(gt({},E),s)};return w}/*! @azure/msal-browser v2.38.2 2023-08-24 */var BP=function(n){Bo(e,n);function e(t,r,o,s,u,f){var p=n.call(this,t,r,o,s,f)||this;return p.navigateFrameWait=u.navigateFrameWait,p.pollIntervalMilliseconds=u.pollIntervalMilliseconds,p}return e.prototype.initiateAuthRequest=function(t){return Ie(this,void 0,void 0,function(){return Oe(this,function(r){switch(r.label){case 0:if(this.performanceClient.addQueueMeasurement(be.SilentHandlerInitiateAuthRequest,this.authCodeRequest.correlationId),it.isEmpty(t))throw this.logger.info("Navigate url is empty"),Qe.createEmptyNavigationUriError();return this.navigateFrameWait?(this.performanceClient.setPreQueueTime(be.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),[4,this.loadFrame(t)]):[3,2];case 1:return[2,r.sent()];case 2:return[2,this.loadFrameSync(t)]}})})},e.prototype.monitorIframeForHash=function(t,r){var o=this;return this.performanceClient.addQueueMeasurement(be.SilentHandlerMonitorIframeForHash,this.authCodeRequest.correlationId),new Promise(function(s,u){r<N1&&o.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+r+"ms) than the default ("+N1+"ms). This may result in timeouts.");var f=window.performance.now(),p=f+r,v=setInterval(function(){if(window.performance.now()>p){o.removeHiddenIframe(t),clearInterval(v),u(Qe.createMonitorIframeTimeoutError());return}var g=Y.EMPTY_STRING,E=t.contentWindow;try{g=E?E.location.href:Y.EMPTY_STRING}catch{}if(!it.isEmpty(g)){var w=E?E.location.hash:Y.EMPTY_STRING;if(On.hashContainsKnownProperties(w)){o.removeHiddenIframe(t),clearInterval(v),s(w);return}}},o.pollIntervalMilliseconds)})},e.prototype.loadFrame=function(t){var r=this;return this.performanceClient.addQueueMeasurement(be.SilentHandlerLoadFrame,this.authCodeRequest.correlationId),new Promise(function(o,s){var u=r.createHiddenIframe();setTimeout(function(){if(!u){s("Unable to load iframe");return}u.src=t,o(u)},r.navigateFrameWait)})},e.prototype.loadFrameSync=function(t){var r=this.createHiddenIframe();return r.src=t,r},e.prototype.createHiddenIframe=function(){var t=document.createElement("iframe");return t.style.visibility="hidden",t.style.position="absolute",t.style.width=t.style.height="0",t.style.border="0",t.setAttribute("sandbox","allow-scripts allow-same-origin allow-forms"),document.getElementsByTagName("body")[0].appendChild(t),t},e.prototype.removeHiddenIframe=function(t){document.body===t.parentNode&&document.body.removeChild(t)},e}(O1);/*! @azure/msal-browser v2.38.2 2023-08-24 */var G6=function(n){Bo(e,n);function e(t,r,o,s,u,f,p,v,g,E,w){var S=n.call(this,t,r,o,s,u,f,v,E,w)||this;return S.apiId=p,S.nativeStorage=g,S}return e.prototype.acquireToken=function(t){return Ie(this,void 0,void 0,function(){var r,o,s,u,f;return Oe(this,function(p){switch(p.label){case 0:if(this.performanceClient.addQueueMeasurement(be.SilentIframeClientAcquireToken,t.correlationId),this.logger.verbose("acquireTokenByIframe called"),r=this.performanceClient.startMeasurement(be.SilentIframeClientAcquireToken,t.correlationId),it.isEmpty(t.loginHint)&&it.isEmpty(t.sid)&&(!t.account||it.isEmpty(t.account.username))&&this.logger.warning("No user hint provided. The authorization server may need more information to complete this request."),t.prompt&&t.prompt!==aa.NONE&&t.prompt!==aa.NO_SESSION)throw r.endMeasurement({success:!1}),Qe.createSilentPromptValueError(t.prompt);return this.performanceClient.setPreQueueTime(be.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(gt(gt({},t),{prompt:t.prompt||aa.NONE}),mt.Silent)];case 1:o=p.sent(),this.browserStorage.updateCacheEntries(o.state,o.nonce,o.authority,o.loginHint||Y.EMPTY_STRING,o.account||null),s=this.initializeServerTelemetryManager(this.apiId),p.label=2;case 2:return p.trys.push([2,5,,6]),this.performanceClient.setPreQueueTime(be.StandardInteractionClientCreateAuthCodeClient,t.correlationId),[4,this.createAuthCodeClient(s,o.authority,o.azureCloudOptions)];case 3:return u=p.sent(),this.logger.verbose("Auth code client created"),this.performanceClient.setPreQueueTime(be.SilentIframeClientTokenHelper,t.correlationId),[4,this.silentTokenHelper(u,o).then(function(v){return r.endMeasurement({success:!0,fromCache:!1,requestId:v.requestId}),v})];case 4:return[2,p.sent()];case 5:throw f=p.sent(),f instanceof St&&f.setCorrelationId(this.correlationId),s.cacheFailedRequest(f),this.browserStorage.cleanRequestByState(o.state),r.endMeasurement({errorCode:f instanceof St&&f.errorCode||void 0,subErrorCode:f instanceof St&&f.subError||void 0,success:!1}),f;case 6:return[2]}})})},e.prototype.logout=function(){return Promise.reject(Qe.createSilentLogoutUnsupportedError())},e.prototype.silentTokenHelper=function(t,r){return Ie(this,void 0,void 0,function(){var o,s,u,f,p,v,g,E,w,S=this;return Oe(this,function(A){switch(A.label){case 0:return this.performanceClient.addQueueMeasurement(be.SilentIframeClientTokenHelper,r.correlationId),this.performanceClient.setPreQueueTime(be.StandardInteractionClientInitializeAuthorizationCodeRequest,r.correlationId),[4,this.initializeAuthorizationCodeRequest(r)];case 1:return o=A.sent(),this.performanceClient.setPreQueueTime(be.GetAuthCodeUrl,r.correlationId),[4,t.getAuthCodeUrl(gt(gt({},r),{nativeBroker:jh.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,r.authenticationScheme)}))];case 2:return s=A.sent(),u=new BP(t,this.browserStorage,o,this.logger,this.config.system,this.performanceClient),this.performanceClient.setPreQueueTime(be.SilentHandlerInitiateAuthRequest,r.correlationId),[4,u.initiateAuthRequest(s)];case 3:return f=A.sent(),this.performanceClient.setPreQueueTime(be.SilentHandlerMonitorIframeForHash,r.correlationId),[4,u.monitorIframeForHash(f,this.config.system.iframeHashTimeout)];case 4:if(p=A.sent(),v=On.getDeserializedHash(p),g=this.validateAndExtractStateFromHash(v,mt.Silent,o.correlationId),v.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw Qe.createNativeConnectionNotEstablishedError();return E=new em(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,v.accountId,this.browserStorage,this.correlationId),w=$c.parseRequestState(this.browserCrypto,g).userRequestState,[2,E.acquireToken(gt(gt({},r),{state:w,prompt:r.prompt||aa.NONE})).finally(function(){S.browserStorage.cleanRequestByState(g)})]}return this.performanceClient.setPreQueueTime(be.HandleCodeResponseFromHash,r.correlationId),[2,u.handleCodeResponseFromHash(p,g,t.authority,this.networkClient)]}})})},e}(Zv);/*! @azure/msal-browser v2.38.2 2023-08-24 */var V6=function(n){Bo(e,n);function e(){return n!==null&&n.apply(this,arguments)||this}return e.prototype.acquireToken=function(t){return Ie(this,void 0,void 0,function(){var r,o,s,u,f,p=this;return Oe(this,function(v){switch(v.label){case 0:return this.performanceClient.addQueueMeasurement(be.SilentRefreshClientAcquireToken,t.correlationId),this.performanceClient.setPreQueueTime(be.InitializeBaseRequest,t.correlationId),o=[gt({},t)],[4,this.initializeBaseRequest(t,t.account)];case 1:return r=gt.apply(void 0,o.concat([v.sent()])),s=this.performanceClient.startMeasurement(be.SilentRefreshClientAcquireToken,r.correlationId),u=this.initializeServerTelemetryManager(xr.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(u,r.authority,r.azureCloudOptions)];case 2:return f=v.sent(),this.logger.verbose("Refresh token client created"),this.performanceClient.setPreQueueTime(be.RefreshTokenClientAcquireTokenByRefreshToken,t.correlationId),[2,f.acquireTokenByRefreshToken(r).then(function(g){return s.endMeasurement({success:!0,fromCache:g.fromCache,requestId:g.requestId}),g}).catch(function(g){throw g instanceof St&&g.setCorrelationId(p.correlationId),u.cacheFailedRequest(g),s.endMeasurement({errorCode:g.errorCode,subErrorCode:g.subError,success:!1}),g})]}})})},e.prototype.logout=function(){return Promise.reject(Qe.createSilentLogoutUnsupportedError())},e.prototype.createRefreshTokenClient=function(t,r,o){return Ie(this,void 0,void 0,function(){var s;return Oe(this,function(u){switch(u.label){case 0:return this.performanceClient.setPreQueueTime(be.StandardInteractionClientGetClientConfiguration,this.correlationId),[4,this.getClientConfiguration(t,r,o)];case 1:return s=u.sent(),[2,new TP(s,this.performanceClient)]}})})},e}(Zv);/*! @azure/msal-browser v2.38.2 2023-08-24 */var K6=function(){function n(e,t){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=t,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return n.prototype.addEventCallback=function(e){if(typeof window<"u"){var t=this.browserCrypto.createNewGuid();return this.eventCallbacks.set(t,e),this.logger.verbose("Event callback registered with id: "+t),t}return null},n.prototype.removeEventCallback=function(e){this.eventCallbacks.delete(e),this.logger.verbose("Event callback "+e+" 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(e,t,r,o){var s=this;if(typeof window<"u"){var u={eventType:e,interactionType:t||null,payload:r||null,error:o||null,timestamp:Date.now()};this.logger.info("Emitting event: "+e),this.eventCallbacks.forEach(function(f,p){s.logger.verbose("Emitting event to callback "+p+": "+e),f.apply(null,[u])})}},n.prototype.handleAccountCacheChange=function(e){try{var t=e.newValue||e.oldValue;if(!t)return;var r=JSON.parse(t);if(typeof r!="object"||!zo.isAccountEntity(r))return;var o=Xa.toObject(new zo,r),s=o.getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(Yt.ACCOUNT_ADDED,void 0,s)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(Yt.ACCOUNT_REMOVED,void 0,s))}catch{return}},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var la=function(){function n(){}return n.decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var jP=function(){function n(e){this.cryptoObj=e}return n.prototype.generateGuid=function(){try{var e=new Uint8Array(16);return this.cryptoObj.getRandomValues(e),e[6]|=64,e[6]&=79,e[8]|=128,e[8]&=191,la.decimalToHex(e[0])+la.decimalToHex(e[1])+la.decimalToHex(e[2])+la.decimalToHex(e[3])+"-"+la.decimalToHex(e[4])+la.decimalToHex(e[5])+"-"+la.decimalToHex(e[6])+la.decimalToHex(e[7])+"-"+la.decimalToHex(e[8])+la.decimalToHex(e[9])+"-"+la.decimalToHex(e[10])+la.decimalToHex(e[11])+la.decimalToHex(e[12])+la.decimalToHex(e[13])+la.decimalToHex(e[14])+la.decimalToHex(e[15])}catch{for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",r="0123456789abcdef",o=0,s=Y.EMPTY_STRING,u=0;u<36;u++)t[u]!=="-"&&t[u]!=="4"&&(o=Math.random()*16|0),t[u]==="x"?s+=r[o]:t[u]==="y"?(o&=3,o|=8,s+=r[o]):s+=t[u];return s}},n.prototype.isGuid=function(e){var t=/^[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i;return t.test(e)},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var jc=function(){function n(){}return n.stringToUtf8Arr=function(e){for(var t,r=0,o=e.length,s=0;s<o;s++)t=e.charCodeAt(s),r+=t<128?1:t<2048?2:t<65536?3:t<2097152?4:t<67108864?5:6;for(var u=new Uint8Array(r),f=0,p=0;f<r;p++)t=e.charCodeAt(p),t<128?u[f++]=t:t<2048?(u[f++]=192+(t>>>6),u[f++]=128+(t&63)):t<65536?(u[f++]=224+(t>>>12),u[f++]=128+(t>>>6&63),u[f++]=128+(t&63)):t<2097152?(u[f++]=240+(t>>>18),u[f++]=128+(t>>>12&63),u[f++]=128+(t>>>6&63),u[f++]=128+(t&63)):t<67108864?(u[f++]=248+(t>>>24),u[f++]=128+(t>>>18&63),u[f++]=128+(t>>>12&63),u[f++]=128+(t>>>6&63),u[f++]=128+(t&63)):(u[f++]=252+(t>>>30),u[f++]=128+(t>>>24&63),u[f++]=128+(t>>>18&63),u[f++]=128+(t>>>12&63),u[f++]=128+(t>>>6&63),u[f++]=128+(t&63));return u},n.stringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),o=0;o<e.length;o++)r[o]=e.charCodeAt(o);return t},n.utf8ArrToString=function(e){for(var t=Y.EMPTY_STRING,r=void 0,o=e.length,s=0;s<o;s++)r=e[s],t+=String.fromCharCode(r>251&&r<254&&s+5<o?(r-252)*1073741824+(e[++s]-128<<24)+(e[++s]-128<<18)+(e[++s]-128<<12)+(e[++s]-128<<6)+e[++s]-128:r>247&&r<252&&s+4<o?(r-248<<24)+(e[++s]-128<<18)+(e[++s]-128<<12)+(e[++s]-128<<6)+e[++s]-128:r>239&&r<248&&s+3<o?(r-240<<18)+(e[++s]-128<<12)+(e[++s]-128<<6)+e[++s]-128:r>223&&r<240&&s+2<o?(r-224<<12)+(e[++s]-128<<6)+e[++s]-128:r>191&&r<224&&s+1<o?(r-192<<6)+e[++s]-128:r);return t},n.getSortedObjectString=function(e){return JSON.stringify(e,Object.keys(e).sort())},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var zP=function(){function n(){}return n.prototype.urlEncode=function(e){return encodeURIComponent(this.encode(e).replace(/=/g,Y.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},n.prototype.urlEncodeArr=function(e){return this.base64EncArr(e).replace(/=/g,Y.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},n.prototype.encode=function(e){var t=jc.stringToUtf8Arr(e);return this.base64EncArr(t)},n.prototype.base64EncArr=function(e){for(var t=(3-e.length%3)%3,r=Y.EMPTY_STRING,o=void 0,s=e.length,u=0,f=0;f<s;f++)o=f%3,u|=e[f]<<(16>>>o&24),(o===2||e.length-f===1)&&(r+=String.fromCharCode(this.uint6ToB64(u>>>18&63),this.uint6ToB64(u>>>12&63),this.uint6ToB64(u>>>6&63),this.uint6ToB64(u&63)),u=0);return t===0?r:r.substring(0,r.length-t)+(t===1?"=":"==")},n.prototype.uint6ToB64=function(e){return e<26?e+65:e<52?e+71:e<62?e-4:e===62?43:e===63?47:65},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var W6=function(){function n(){}return n.prototype.decode=function(e){var t=e.replace(/-/g,"+").replace(/_/g,"/");switch(t.length%4){case 0:break;case 2:t+="==";break;case 3:t+="=";break;default:throw new Error("Invalid base64 string")}var r=this.base64DecToArr(t);return jc.utf8ArrToString(r)},n.prototype.base64DecToArr=function(e,t){for(var r=e.replace(/[^A-Za-z0-9\+\/]/g,Y.EMPTY_STRING),o=r.length,s=t?Math.ceil((o*3+1>>>2)/t)*t:o*3+1>>>2,u=new Uint8Array(s),f=void 0,p=void 0,v=0,g=0,E=0;E<o;E++)if(p=E&3,v|=this.b64ToUint6(r.charCodeAt(E))<<18-6*p,p===3||o-E===1){for(f=0;f<3&&g<s;f++,g++)u[g]=v>>>(16>>>f&24)&255;v=0}return u},n.prototype.b64ToUint6=function(e){return e>64&&e<91?e-65:e>96&&e<123?e-71:e>47&&e<58?e+4:e===43?62:e===47?63:0},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Y6=32,Q6=function(){function n(e){this.base64Encode=new zP,this.cryptoObj=e}return n.prototype.generateCodes=function(){return Ie(this,void 0,void 0,function(){var e,t;return Oe(this,function(r){switch(r.label){case 0:return e=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(e)];case 1:return t=r.sent(),[2,{verifier:e,challenge:t}]}})})},n.prototype.generateCodeVerifier=function(){try{var e=new Uint8Array(Y6);this.cryptoObj.getRandomValues(e);var t=this.base64Encode.urlEncodeArr(e);return t}catch(r){throw Qe.createPkceNotGeneratedError(r)}},n.prototype.generateCodeChallengeFromVerifier=function(e){return Ie(this,void 0,void 0,function(){var t,r;return Oe(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(e)];case 1:return t=o.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(t))];case 2:throw r=o.sent(),Qe.createPkceNotGeneratedError(r);case 3:return[2]}})})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var X6=function(){function n(){}return n.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},n.prototype.generateKey=function(e,t,r){return Ie(this,void 0,void 0,function(){return Oe(this,function(o){return[2,window.crypto.subtle.generateKey(e,t,r)]})})},n.prototype.exportKey=function(e){return Ie(this,void 0,void 0,function(){return Oe(this,function(t){return[2,window.crypto.subtle.exportKey(Jv,e)]})})},n.prototype.importKey=function(e,t,r,o){return Ie(this,void 0,void 0,function(){return Oe(this,function(s){return[2,window.crypto.subtle.importKey(Jv,e,t,r,o)]})})},n.prototype.sign=function(e,t,r){return Ie(this,void 0,void 0,function(){return Oe(this,function(o){return[2,window.crypto.subtle.sign(e,t,r)]})})},n.prototype.digest=function(e,t){return Ie(this,void 0,void 0,function(){return Oe(this,function(r){return[2,window.crypto.subtle.digest(e,t)]})})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var J6=function(){function n(){}return n.prototype.initPrng=function(e){return window.msrCrypto.initPrng(g1(e))},n.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},n.prototype.generateKey=function(e,t,r){return Ie(this,void 0,void 0,function(){return Oe(this,function(o){return[2,window.msrCrypto.subtle.generateKey(e,t,r)]})})},n.prototype.exportKey=function(e){return Ie(this,void 0,void 0,function(){return Oe(this,function(t){return[2,window.msrCrypto.subtle.exportKey(Jv,e)]})})},n.prototype.importKey=function(e,t,r,o){return Ie(this,void 0,void 0,function(){return Oe(this,function(s){return[2,window.msrCrypto.subtle.importKey(Jv,e,t,r,o)]})})},n.prototype.sign=function(e,t,r){return Ie(this,void 0,void 0,function(){return Oe(this,function(o){return[2,window.msrCrypto.subtle.sign(e,t,r)]})})},n.prototype.digest=function(e,t){return Ie(this,void 0,void 0,function(){return Oe(this,function(r){return[2,window.msrCrypto.subtle.digest(e,t)]})})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var Z6=function(){function n(){}return n.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},n.prototype.generateKey=function(e,t,r){return Ie(this,void 0,void 0,function(){return Oe(this,function(o){return[2,new Promise(function(s,u){var f=window.msCrypto.subtle.generateKey(e,t,r);f.addEventListener("complete",function(p){s(p.target.result)}),f.addEventListener("error",function(p){u(p)})})]})})},n.prototype.exportKey=function(e){return Ie(this,void 0,void 0,function(){return Oe(this,function(t){return[2,new Promise(function(r,o){var s=window.msCrypto.subtle.exportKey(Jv,e);s.addEventListener("complete",function(u){var f=u.target.result,p=jc.utf8ArrToString(new Uint8Array(f)).replace(/\r/g,Y.EMPTY_STRING).replace(/\n/g,Y.EMPTY_STRING).replace(/\t/g,Y.EMPTY_STRING).split(" ").join(Y.EMPTY_STRING).replace("\0",Y.EMPTY_STRING);try{r(JSON.parse(p))}catch(v){o(v)}}),s.addEventListener("error",function(u){o(u)})})]})})},n.prototype.importKey=function(e,t,r,o){return Ie(this,void 0,void 0,function(){var s,u;return Oe(this,function(f){return s=jc.getSortedObjectString(e),u=jc.stringToArrayBuffer(s),[2,new Promise(function(p,v){var g=window.msCrypto.subtle.importKey(Jv,u,t,r,o);g.addEventListener("complete",function(E){p(E.target.result)}),g.addEventListener("error",function(E){v(E)})})]})})},n.prototype.sign=function(e,t,r){return Ie(this,void 0,void 0,function(){return Oe(this,function(o){return[2,new Promise(function(s,u){var f=window.msCrypto.subtle.sign(e,t,r);f.addEventListener("complete",function(p){s(p.target.result)}),f.addEventListener("error",function(p){u(p)})})]})})},n.prototype.digest=function(e,t){return Ie(this,void 0,void 0,function(){return Oe(this,function(r){return[2,new Promise(function(o,s){var u=window.msCrypto.subtle.digest(e,t.buffer);u.addEventListener("complete",function(f){o(f.target.result)}),u.addEventListener("error",function(f){s(f)})})]})})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var eq="RSASSA-PKCS1-v1_5",qP="SHA-256",tq=2048,nq=new Uint8Array([1,0,1]),GP=function(){function n(e,t){var r,o;if(this.logger=e,this.cryptoOptions=t,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new X6;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new Z6;else if(this.hasMsrCrypto()&&(!((r=this.cryptoOptions)===null||r===void 0)&&r.useMsrCrypto))this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new J6;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."),Qe.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");if(this.subtleCrypto.initPrng){if(this.logger.verbose("BrowserCrypto: Interface requires entropy"),!(!((o=this.cryptoOptions)===null||o===void 0)&&o.entropy))throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."),rC.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:eq,hash:qP,modulusLength:tq,publicExponent:nq}}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(e){return Ie(this,void 0,void 0,function(){var t;return Oe(this,function(r){return t=jc.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:qP},t)]})})},n.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},n.prototype.generateKeyPair=function(e,t){return Ie(this,void 0,void 0,function(){return Oe(this,function(r){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,t)]})})},n.prototype.exportJwk=function(e){return Ie(this,void 0,void 0,function(){return Oe(this,function(t){return[2,this.subtleCrypto.exportKey(e)]})})},n.prototype.importJwk=function(e,t,r){return Ie(this,void 0,void 0,function(){return Oe(this,function(o){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,t,r)]})})},n.prototype.sign=function(e,t){return Ie(this,void 0,void 0,function(){return Oe(this,function(r){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,t)]})})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var rq=function(){function n(){this.dbName=x1,this.version=M6,this.tableName=P6,this.dbOpen=!1}return n.prototype.open=function(){return Ie(this,void 0,void 0,function(){var e=this;return Oe(this,function(t){return[2,new Promise(function(r,o){var s=window.indexedDB.open(e.dbName,e.version);s.addEventListener("upgradeneeded",function(u){var f=u;f.target.result.createObjectStore(e.tableName)}),s.addEventListener("success",function(u){var f=u;e.db=f.target.result,e.dbOpen=!0,r()}),s.addEventListener("error",function(){return o(Qe.createDatabaseUnavailableError())})})]})})},n.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},n.prototype.validateDbIsOpen=function(){return Ie(this,void 0,void 0,function(){return Oe(this,function(e){switch(e.label){case 0:return this.dbOpen?[3,2]:[4,this.open()];case 1:return[2,e.sent()];case 2:return[2]}})})},n.prototype.getItem=function(e){return Ie(this,void 0,void 0,function(){var t=this;return Oe(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(o,s){if(!t.db)return s(Qe.createDatabaseNotOpenError());var u=t.db.transaction([t.tableName],"readonly"),f=u.objectStore(t.tableName),p=f.get(e);p.addEventListener("success",function(v){var g=v;t.closeConnection(),o(g.target.result)}),p.addEventListener("error",function(v){t.closeConnection(),s(v)})})]}})})},n.prototype.setItem=function(e,t){return Ie(this,void 0,void 0,function(){var r=this;return Oe(this,function(o){switch(o.label){case 0:return[4,this.validateDbIsOpen()];case 1:return o.sent(),[2,new Promise(function(s,u){if(!r.db)return u(Qe.createDatabaseNotOpenError());var f=r.db.transaction([r.tableName],"readwrite"),p=f.objectStore(r.tableName),v=p.put(t,e);v.addEventListener("success",function(){r.closeConnection(),s()}),v.addEventListener("error",function(g){r.closeConnection(),u(g)})})]}})})},n.prototype.removeItem=function(e){return Ie(this,void 0,void 0,function(){var t=this;return Oe(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(o,s){if(!t.db)return s(Qe.createDatabaseNotOpenError());var u=t.db.transaction([t.tableName],"readwrite"),f=u.objectStore(t.tableName),p=f.delete(e);p.addEventListener("success",function(){t.closeConnection(),o()}),p.addEventListener("error",function(v){t.closeConnection(),s(v)})})]}})})},n.prototype.getKeys=function(){return Ie(this,void 0,void 0,function(){var e=this;return Oe(this,function(t){switch(t.label){case 0:return[4,this.validateDbIsOpen()];case 1:return t.sent(),[2,new Promise(function(r,o){if(!e.db)return o(Qe.createDatabaseNotOpenError());var s=e.db.transaction([e.tableName],"readonly"),u=s.objectStore(e.tableName),f=u.getAllKeys();f.addEventListener("success",function(p){var v=p;e.closeConnection(),r(v.target.result)}),f.addEventListener("error",function(p){e.closeConnection(),o(p)})})]}})})},n.prototype.containsKey=function(e){return Ie(this,void 0,void 0,function(){var t=this;return Oe(this,function(r){switch(r.label){case 0:return[4,this.validateDbIsOpen()];case 1:return r.sent(),[2,new Promise(function(o,s){if(!t.db)return s(Qe.createDatabaseNotOpenError());var u=t.db.transaction([t.tableName],"readonly"),f=u.objectStore(t.tableName),p=f.count(e);p.addEventListener("success",function(v){var g=v;t.closeConnection(),o(g.target.result===1)}),p.addEventListener("error",function(v){t.closeConnection(),s(v)})})]}})})},n.prototype.deleteDatabase=function(){return Ie(this,void 0,void 0,function(){return Oe(this,function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(t,r){var o=window.indexedDB.deleteDatabase(x1);o.addEventListener("success",function(){return t(!0)}),o.addEventListener("blocked",function(){return t(!0)}),o.addEventListener("error",function(){return r(!1)})})]})})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var VP=function(){function n(e,t){this.inMemoryCache=new A1,this.indexedDBCache=new rq,this.logger=e,this.storeName=t}return n.prototype.handleDatabaseAccessError=function(e){if(e instanceof Qe&&e.errorCode===Fe.databaseUnavailable.code)this.logger.error("Could not access persistent storage. This may be caused by browser privacy features which block persistent storage in third-party contexts.");else throw e},n.prototype.getItem=function(e){return Ie(this,void 0,void 0,function(){var t,r;return Oe(this,function(o){switch(o.label){case 0:if(t=this.inMemoryCache.getItem(e),t)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),this.logger.verbose("Queried item not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.getItem(e)];case 2:return[2,o.sent()];case 3:return r=o.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2,t]}})})},n.prototype.setItem=function(e,t){return Ie(this,void 0,void 0,function(){var r;return Oe(this,function(o){switch(o.label){case 0:this.inMemoryCache.setItem(e,t),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(e,t)];case 2:return o.sent(),[3,4];case 3:return r=o.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2]}})})},n.prototype.removeItem=function(e){return Ie(this,void 0,void 0,function(){var t;return Oe(this,function(r){switch(r.label){case 0:this.inMemoryCache.removeItem(e),r.label=1;case 1:return r.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(e)];case 2:return r.sent(),[3,4];case 3:return t=r.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2]}})})},n.prototype.getKeys=function(){return Ie(this,void 0,void 0,function(){var e,t;return Oe(this,function(r){switch(r.label){case 0:if(e=this.inMemoryCache.getKeys(),e.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 t=r.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2,e]}})})},n.prototype.containsKey=function(e){return Ie(this,void 0,void 0,function(){var t,r;return Oe(this,function(o){switch(o.label){case 0:if(t=this.inMemoryCache.containsKey(e),t)return[3,4];o.label=1;case 1:return o.trys.push([1,3,,4]),this.logger.verbose("Key not found in in-memory cache, now querying persistent storage."),[4,this.indexedDBCache.containsKey(e)];case 2:return[2,o.sent()];case 3:return r=o.sent(),this.handleDatabaseAccessError(r),[3,4];case 4:return[2,t]}})})},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 Ie(this,void 0,void 0,function(){var e,t;return Oe(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 e=r.sent(),e&&this.logger.verbose("Persistent keystore deleted"),[2,e];case 2:return t=r.sent(),this.handleDatabaseAccessError(t),[2,!1];case 3:return[2]}})})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var iC;(function(n){n.asymmetricKeys="asymmetricKeys",n.symmetricKeys="symmetricKeys"})(iC||(iC={}));var iq=function(){function n(e){this.logger=e,this.asymmetricKeys=new VP(this.logger,iC.asymmetricKeys),this.symmetricKeys=new VP(this.logger,iC.symmetricKeys)}return n.prototype.clear=function(){return Ie(this,void 0,void 0,function(){var e;return Oe(this,function(t){switch(t.label){case 0:this.asymmetricKeys.clearInMemory(),this.symmetricKeys.clearInMemory(),t.label=1;case 1:return t.trys.push([1,3,,4]),[4,this.asymmetricKeys.clearPersistent()];case 2:return t.sent(),[2,!0];case 3:return e=t.sent(),e instanceof Error?this.logger.error("Clearing keystore failed with error: "+e.message):this.logger.error("Clearing keystore failed with unknown error"),[2,!1];case 4:return[2]}})})},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var oq=function(){function n(e,t,r){this.logger=e,this.browserCrypto=new GP(this.logger,r),this.b64Encode=new zP,this.b64Decode=new W6,this.guidGenerator=new jP(this.browserCrypto),this.pkceGenerator=new Q6(this.browserCrypto),this.cache=new iq(this.logger),this.performanceClient=t}return n.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},n.prototype.base64Encode=function(e){return this.b64Encode.encode(e)},n.prototype.base64Decode=function(e){return this.b64Decode.decode(e)},n.prototype.generatePkceCodes=function(){return Ie(this,void 0,void 0,function(){return Oe(this,function(e){return[2,this.pkceGenerator.generateCodes()]})})},n.prototype.getPublicKeyThumbprint=function(e){var t;return Ie(this,void 0,void 0,function(){var r,o,s,u,f,p,v,g;return Oe(this,function(E){switch(E.label){case 0:return r=(t=this.performanceClient)===null||t===void 0?void 0:t.startMeasurement(be.CryptoOptsGetPublicKeyThumbprint,e.correlationId),[4,this.browserCrypto.generateKeyPair(n.EXTRACTABLE,n.POP_KEY_USAGES)];case 1:return o=E.sent(),[4,this.browserCrypto.exportJwk(o.publicKey)];case 2:return s=E.sent(),u={e:s.e,kty:s.kty,n:s.n},f=jc.getSortedObjectString(u),[4,this.hashString(f)];case 3:return p=E.sent(),[4,this.browserCrypto.exportJwk(o.privateKey)];case 4:return v=E.sent(),[4,this.browserCrypto.importJwk(v,!1,["sign"])];case 5:return g=E.sent(),[4,this.cache.asymmetricKeys.setItem(p,{privateKey:g,publicKey:o.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri})];case 6:return E.sent(),r&&r.endMeasurement({success:!0}),[2,p]}})})},n.prototype.removeTokenBindingKey=function(e){return Ie(this,void 0,void 0,function(){var t;return Oe(this,function(r){switch(r.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(e)];case 1:return r.sent(),[4,this.cache.asymmetricKeys.containsKey(e)];case 2:return t=r.sent(),[2,!t]}})})},n.prototype.clearKeystore=function(){return Ie(this,void 0,void 0,function(){return Oe(this,function(e){switch(e.label){case 0:return[4,this.cache.clear()];case 1:return[2,e.sent()]}})})},n.prototype.signJwt=function(e,t,r){var o;return Ie(this,void 0,void 0,function(){var s,u,f,p,v,g,E,w,S,A,k,M,P;return Oe(this,function(L){switch(L.label){case 0:return s=(o=this.performanceClient)===null||o===void 0?void 0:o.startMeasurement(be.CryptoOptsSignJwt,r),[4,this.cache.asymmetricKeys.getItem(t)];case 1:if(u=L.sent(),!u)throw Qe.createSigningKeyNotFoundInStorageError(t);return[4,this.browserCrypto.exportJwk(u.publicKey)];case 2:return f=L.sent(),p=jc.getSortedObjectString(f),v=this.b64Encode.urlEncode(JSON.stringify({kid:t})),g=I6.getShrHeaderString({kid:v,alg:f.alg}),E=this.b64Encode.urlEncode(g),e.cnf={jwk:JSON.parse(p)},w=this.b64Encode.urlEncode(JSON.stringify(e)),S=E+"."+w,A=jc.stringToArrayBuffer(S),[4,this.browserCrypto.sign(u.privateKey,A)];case 3:return k=L.sent(),M=this.b64Encode.urlEncodeArr(new Uint8Array(k)),P=S+"."+M,s&&s.endMeasurement({success:!0}),[2,P]}})})},n.prototype.hashString=function(e){return Ie(this,void 0,void 0,function(){var t,r;return Oe(this,function(o){switch(o.label){case 0:return[4,this.browserCrypto.sha256Digest(e)];case 1:return t=o.sent(),r=new Uint8Array(t),[2,this.b64Encode.urlEncodeArr(r)]}})})},n.POP_KEY_USAGES=["sign","verify"],n.EXTRACTABLE=!0,n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var KP=function(){function n(e,t){this.correlationId=t,this.measureName=n.makeMeasureName(e,t),this.startMark=n.makeStartMark(e,t),this.endMark=n.makeEndMark(e,t)}return n.makeMeasureName=function(e,t){return"msal.measure."+e+"."+t},n.makeStartMark=function(e,t){return"msal.start."+e+"."+t},n.makeEndMark=function(e,t){return"msal.end."+e+"."+t},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(e,t){if(n.supportsBrowserPerformance())try{t.forEach(function(r){var o=n.makeMeasureName(r.name,e),s=window.performance.getEntriesByName(o,"measure");s.length>0&&(window.performance.clearMeasures(o),window.performance.clearMarks(n.makeStartMark(o,e)),window.performance.clearMarks(n.makeEndMark(o,e)))})}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 e=window.performance.getEntriesByName(this.measureName,"measure");if(e.length>0){var t=e[0].duration;return window.performance.clearMeasures(this.measureName),window.performance.clearMarks(this.startMark),window.performance.clearMarks(this.endMark),t}}catch{}return null},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var aq=function(n){Bo(e,n);function e(t,r,o,s,u,f,p){var v=n.call(this,t,r,o,s,u,f)||this;return v.browserCrypto=new GP(v.logger,p),v.guidGenerator=new jP(v.browserCrypto),v}return e.prototype.startPerformanceMeasuremeant=function(t,r){return new KP(t,r)},e.prototype.generateId=function(){return this.guidGenerator.generateGuid()},e.prototype.getPageVisibility=function(){var t;return((t=document.visibilityState)===null||t===void 0?void 0:t.toString())||null},e.prototype.deleteIncompleteSubMeasurements=function(t){var r=this.eventsByCorrelationId.get(t.event.correlationId),o=r&&r.eventId===t.event.eventId,s=[];o&&(r!=null&&r.incompleteSubMeasurements)&&r.incompleteSubMeasurements.forEach(function(u){s.push(gt({},u))}),s.length>0&&KP.flushMeasurements(t.event.correlationId,s)},e.prototype.supportsBrowserPerformanceNow=function(){return typeof window<"u"&&typeof window.performance<"u"&&typeof window.performance.now=="function"},e.prototype.startMeasurement=function(t,r){var o=this,s=this.getPageVisibility(),u=n.prototype.startMeasurement.call(this,t,r);return gt(gt({},u),{endMeasurement:function(f){var p=u.endMeasurement(gt({startPageVisibility:s,endPageVisibility:o.getPageVisibility()},f));return o.deleteIncompleteSubMeasurements(u),p},discardMeasurement:function(){u.discardMeasurement(),o.deleteIncompleteSubMeasurements(u),u.measurement.flushMeasurement()}})},e.prototype.setPreQueueTime=function(t,r){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to set telemetry queue time for "+t);return}if(!r){this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to set telemetry queue time");return}var o=this.preQueueTimeByCorrelationId.get(r);o&&(this.logger.trace("BrowserPerformanceClient: Incomplete pre-queue "+o.name+" found",r),this.addQueueMeasurement(o.name,r,void 0,!0)),this.preQueueTimeByCorrelationId.set(r,{name:t,time:window.performance.now()})},e.prototype.addQueueMeasurement=function(t,r,o,s){if(!this.supportsBrowserPerformanceNow()){this.logger.trace("BrowserPerformanceClient: window performance API not available, unable to add queue measurement for "+t);return}if(!r){this.logger.trace("BrowserPerformanceClient: correlationId for "+t+" not provided, unable to add queue measurement");return}var u=n.prototype.getPreQueueTime.call(this,t,r);if(u){var f=window.performance.now(),p=o||n.prototype.calculateQueuedTime.call(this,u,f);return n.prototype.addQueueMeasurement.call(this,t,r,p,s)}},e}(OP);/*! @azure/msal-browser v2.38.2 2023-08-24 */var sq=function(){function n(e,t,r,o){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=t,this.logger=r,this.cryptoObj=o}return n.prototype.loadExternalTokens=function(e,t,r){if(this.logger.info("TokenCache - loadExternalTokens called"),!t.id_token)throw Qe.createUnableToLoadTokenError("Please ensure server response includes id token.");var o=new _u(t.id_token,this.cryptoObj),s,u;if(e.account){var f=this.loadAccount(o,e.account.environment,void 0,void 0,e.account.homeAccountId);s=new l0(f,this.loadIdToken(o,f.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,t,f.homeAccountId,e.account.environment,e.account.tenantId,r),this.loadRefreshToken(e,t,f.homeAccountId,e.account.environment))}else if(e.authority){var p=c0.generateAuthority(e.authority,e.azureCloudOptions),v={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(u=new c0(p,this.config.system.networkClient,this.storage,v,this.logger),r.clientInfo){this.logger.trace("TokenCache - homeAccountId from options");var f=this.loadAccount(o,u.hostnameAndPort,r.clientInfo,u.authorityType);s=new l0(f,this.loadIdToken(o,f.homeAccountId,u.hostnameAndPort,u.tenant),this.loadAccessToken(e,t,f.homeAccountId,u.hostnameAndPort,u.tenant,r),this.loadRefreshToken(e,t,f.homeAccountId,u.hostnameAndPort))}else if(t.client_info){this.logger.trace("TokenCache - homeAccountId from response");var f=this.loadAccount(o,u.hostnameAndPort,t.client_info,u.authorityType);s=new l0(f,this.loadIdToken(o,f.homeAccountId,u.hostnameAndPort,u.tenant),this.loadAccessToken(e,t,f.homeAccountId,u.hostnameAndPort,u.tenant,r),this.loadRefreshToken(e,t,f.homeAccountId,u.hostnameAndPort))}else throw Qe.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw Qe.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");return this.generateAuthenticationResult(e,o,s,u)},n.prototype.loadAccount=function(e,t,r,o,s){var u;if(s?u=s:o!==void 0&&r&&(u=zo.generateHomeAccountId(r,o,this.logger,this.cryptoObj,e)),!u)throw Qe.createUnableToLoadTokenError("Unexpected missing homeAccountId");var f=r?zo.createAccount(r,u,e,void 0,void 0,void 0,t):zo.createGenericAccount(u,e,void 0,void 0,void 0,t);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(f),f;throw Qe.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},n.prototype.loadIdToken=function(e,t,r,o){var s=$h.createIdTokenEntity(t,r,e.rawToken,this.config.auth.clientId,o);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(s),s;throw Qe.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},n.prototype.loadAccessToken=function(e,t,r,o,s,u){if(!t.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!t.expires_in)throw Qe.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!u.extendedExpiresOn)throw Qe.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var f=new sa(e.scopes).printScopes(),p=u.expiresOn||t.expires_in+new Date().getTime()/1e3,v=u.extendedExpiresOn,g=Bh.createAccessTokenEntity(r,o,t.access_token,this.config.auth.clientId,s,f,p,v,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(g),g;throw Qe.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},n.prototype.loadRefreshToken=function(e,t,r,o){if(!t.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;var s=Wv.createRefreshTokenEntity(r,o,t.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(s),s;throw Qe.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},n.prototype.generateAuthenticationResult=function(e,t,r,o){var s,u,f,p=Y.EMPTY_STRING,v=[],g=null,E;r!=null&&r.accessToken&&(p=r.accessToken.secret,v=sa.fromString(r.accessToken.target).asArray(),g=new Date(Number(r.accessToken.expiresOn)*1e3),E=new Date(Number(r.accessToken.extendedExpiresOn)*1e3));var w=(t==null?void 0:t.claims.oid)||(t==null?void 0:t.claims.sub)||Y.EMPTY_STRING,S=(t==null?void 0:t.claims.tid)||Y.EMPTY_STRING;return{authority:o?o.canonicalAuthority:Y.EMPTY_STRING,uniqueId:w,tenantId:S,scopes:v,account:r!=null&&r.account?r.account.getAccountInfo():null,idToken:t?t.rawToken:Y.EMPTY_STRING,idTokenClaims:t?t.claims:{},accessToken:p,fromCache:!0,expiresOn:g,correlationId:e.correlationId||Y.EMPTY_STRING,requestId:Y.EMPTY_STRING,extExpiresOn:E,familyId:Y.EMPTY_STRING,tokenType:((s=r==null?void 0:r.accessToken)===null||s===void 0?void 0:s.tokenType)||Y.EMPTY_STRING,state:Y.EMPTY_STRING,cloudGraphHostName:((u=r==null?void 0:r.account)===null||u===void 0?void 0:u.cloudGraphHostName)||Y.EMPTY_STRING,msGraphHost:((f=r==null?void 0:r.account)===null||f===void 0?void 0:f.msGraphHost)||Y.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var lq=function(n){Bo(e,n);function e(t){var r=n.call(this,t)||this;return r.includeRedirectUri=!1,r}return e}(SP);/*! @azure/msal-browser v2.38.2 2023-08-24 */var uq=function(n){Bo(e,n);function e(t,r,o,s,u,f,p,v,g,E){var w=n.call(this,t,r,o,s,u,f,v,g,E)||this;return w.apiId=p,w}return e.prototype.acquireToken=function(t){return Ie(this,void 0,void 0,function(){var r,o,s,u,f,p,v;return Oe(this,function(g){switch(g.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!t.code)throw Qe.createAuthCodeRequiredError();return this.performanceClient.setPreQueueTime(be.StandardInteractionClientInitializeAuthorizationRequest,t.correlationId),[4,this.initializeAuthorizationRequest(t,mt.Silent)];case 1:r=g.sent(),this.browserStorage.updateCacheEntries(r.state,r.nonce,r.authority,r.loginHint||Y.EMPTY_STRING,r.account||null),o=this.initializeServerTelemetryManager(this.apiId),g.label=2;case 2:return g.trys.push([2,4,,5]),s=gt(gt({},r),{code:t.code}),this.performanceClient.setPreQueueTime(be.StandardInteractionClientGetClientConfiguration,t.correlationId),[4,this.getClientConfiguration(o,r.authority)];case 3:return u=g.sent(),f=new lq(u),this.logger.verbose("Auth code client created"),p=new BP(f,this.browserStorage,s,this.logger,this.config.system,this.performanceClient),[2,p.handleCodeResponseFromServer({code:t.code,msgraph_host:t.msGraphHost,cloud_graph_host_name:t.cloudGraphHostName,cloud_instance_host_name:t.cloudInstanceHostName},r.state,f.authority,this.networkClient,!1)];case 4:throw v=g.sent(),v instanceof St&&v.setCorrelationId(this.correlationId),o.cacheFailedRequest(v),this.browserStorage.cleanRequestByState(r.state),v;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(Qe.createSilentLogoutUnsupportedError())},e}(Zv);/*! @azure/msal-browser v2.38.2 2023-08-24 */var cq=function(){function n(e){this.isBrowserEnvironment=typeof window<"u",this.config=q6(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new Yb(this.config.system.loggerOptions,I1,f0),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 aq(this.config.auth.clientId,this.config.auth.authority,this.logger,I1,f0,this.config.telemetry.application,this.config.system.cryptoOptions):new N6(this.config.auth.clientId,this.config.auth.authority,this.logger,I1,f0,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new oq(this.logger,this.performanceClient,this.config.system.cryptoOptions):Wb,this.eventHandler=new K6(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new k1(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):D6(this.config.auth.clientId,this.logger);var t={cacheLocation:Bi.MemoryStorage,temporaryCacheLocation:Bi.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1,cacheMigrationEnabled:!1,claimsBasedCachingEnabled:!0};this.nativeInternalStorage=new k1(this.config.auth.clientId,t,this.browserCrypto,this.logger),this.tokenCache=new sq(this.config,this.browserStorage,this.logger,this.browserCrypto),this.trackPageVisibilityWithMeasurement=this.trackPageVisibilityWithMeasurement.bind(this)}return n.prototype.initialize=function(){return Ie(this,void 0,void 0,function(){var e,t,r,o,s;return Oe(this,function(u){switch(u.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(e=this.config.system.allowNativeBroker,t=this.performanceClient.startMeasurement(be.InitializeClientApplication),this.eventHandler.emitEvent(Yt.INITIALIZE_START),!e)return[3,4];u.label=1;case 1:return u.trys.push([1,3,,4]),r=this,[4,jh.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout,this.performanceClient)];case 2:return r.nativeExtensionProvider=u.sent(),[3,4];case 3:return o=u.sent(),this.logger.verbose(o),[3,4];case 4:return this.config.cache.claimsBasedCachingEnabled?[3,6]:(this.logger.verbose("Claims-based caching is disabled. Clearing the previous cache with claims"),s=this.performanceClient.startMeasurement(be.ClearTokensAndKeysWithClaims),[4,this.browserStorage.clearTokensAndKeysWithClaims()]);case 5:u.sent(),s.endMeasurement({success:!0}),u.label=6;case 6:return this.initialized=!0,this.eventHandler.emitEvent(Yt.INITIALIZE_END),t.endMeasurement({allowNativeBroker:e,success:!0}),[2]}})})},n.prototype.handleRedirectPromise=function(e){return Ie(this,void 0,void 0,function(){var t,r,o,s,u,f,p,v,g=this;return Oe(this,function(E){return this.logger.verbose("handleRedirectPromise called"),hi.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t=this.getAllAccounts(),this.isBrowserEnvironment?(r=e||Y.EMPTY_STRING,o=this.redirectResponse.get(r),typeof o>"u"?(this.eventHandler.emitEvent(Yt.HANDLE_REDIRECT_START,mt.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),s=this.browserStorage.getCachedNativeRequest(),u=void 0,s&&jh.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),f=new em(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,xr.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,s.accountId,this.nativeInternalStorage,s.correlationId),u=f.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),p=this.browserStorage.getTemporaryCache(Hn.CORRELATION_ID,!0)||Y.EMPTY_STRING,v=this.createRedirectClient(p),u=v.handleRedirectPromise(e)),o=u.then(function(w){if(w){var S=t.length<g.getAllAccounts().length;S?(g.eventHandler.emitEvent(Yt.LOGIN_SUCCESS,mt.Redirect,w),g.logger.verbose("handleRedirectResponse returned result, login success")):(g.eventHandler.emitEvent(Yt.ACQUIRE_TOKEN_SUCCESS,mt.Redirect,w),g.logger.verbose("handleRedirectResponse returned result, acquire token success"))}return g.eventHandler.emitEvent(Yt.HANDLE_REDIRECT_END,mt.Redirect),w}).catch(function(w){throw t.length>0?g.eventHandler.emitEvent(Yt.ACQUIRE_TOKEN_FAILURE,mt.Redirect,null,w):g.eventHandler.emitEvent(Yt.LOGIN_FAILURE,mt.Redirect,null,w),g.eventHandler.emitEvent(Yt.HANDLE_REDIRECT_END,mt.Redirect),w}),this.redirectResponse.set(r,o)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,o]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},n.prototype.acquireTokenRedirect=function(e){return Ie(this,void 0,void 0,function(){var t,r,o,s,u,f=this;return Oe(this,function(p){return t=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",t),this.preflightBrowserEnvironmentCheck(mt.Redirect),r=this.getAllAccounts().length>0,r?this.eventHandler.emitEvent(Yt.ACQUIRE_TOKEN_START,mt.Redirect,e):this.eventHandler.emitEvent(Yt.LOGIN_START,mt.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(s=new em(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,xr.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),o=s.acquireTokenRedirect(e).catch(function(v){if(v instanceof Cu&&v.isFatal()){f.nativeExtensionProvider=void 0;var g=f.createRedirectClient(e.correlationId);return g.acquireToken(e)}else if(v instanceof Rl){f.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");var g=f.createRedirectClient(e.correlationId);return g.acquireToken(e)}throw f.browserStorage.setInteractionInProgress(!1),v})):(u=this.createRedirectClient(e.correlationId),o=u.acquireToken(e)),[2,o.catch(function(v){throw r?f.eventHandler.emitEvent(Yt.ACQUIRE_TOKEN_FAILURE,mt.Redirect,null,v):f.eventHandler.emitEvent(Yt.LOGIN_FAILURE,mt.Redirect,null,v),v})]})})},n.prototype.acquireTokenPopup=function(e){var t=this,r=this.getRequestCorrelationId(e),o=this.performanceClient.startMeasurement(be.AcquireTokenPopup,r);try{this.logger.verbose("acquireTokenPopup called",r),this.preflightBrowserEnvironmentCheck(mt.Popup)}catch(p){return Promise.reject(p)}var s=this.getAllAccounts();s.length>0?this.eventHandler.emitEvent(Yt.ACQUIRE_TOKEN_START,mt.Popup,e):this.eventHandler.emitEvent(Yt.LOGIN_START,mt.Popup,e);var u;if(this.canUseNative(e))u=this.acquireTokenNative(e,xr.acquireTokenPopup).then(function(p){return t.browserStorage.setInteractionInProgress(!1),o.endMeasurement({success:!0,isNativeBroker:!0,requestId:p.requestId}),p}).catch(function(p){if(p instanceof Cu&&p.isFatal()){t.nativeExtensionProvider=void 0;var v=t.createPopupClient(e.correlationId);return v.acquireToken(e)}else if(p instanceof Rl){t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");var v=t.createPopupClient(e.correlationId);return v.acquireToken(e)}throw t.browserStorage.setInteractionInProgress(!1),p});else{var f=this.createPopupClient(e.correlationId);u=f.acquireToken(e)}return u.then(function(p){var v=s.length<t.getAllAccounts().length;return v?t.eventHandler.emitEvent(Yt.LOGIN_SUCCESS,mt.Popup,p):t.eventHandler.emitEvent(Yt.ACQUIRE_TOKEN_SUCCESS,mt.Popup,p),o.addStaticFields({accessTokenSize:p.accessToken.length,idTokenSize:p.idToken.length}),o.endMeasurement({success:!0,requestId:p.requestId}),p}).catch(function(p){return s.length>0?t.eventHandler.emitEvent(Yt.ACQUIRE_TOKEN_FAILURE,mt.Popup,null,p):t.eventHandler.emitEvent(Yt.LOGIN_FAILURE,mt.Popup,null,p),o.endMeasurement({errorCode:p.errorCode,subErrorCode:p.subError,success:!1}),Promise.reject(p)})},n.prototype.trackPageVisibilityWithMeasurement=function(){var e=this.ssoSilentMeasurement||this.acquireTokenByCodeAsyncMeasurement;e&&(this.logger.info("Perf: Visibility change detected in ",e.event.name),e.increment({visibilityChangeCount:1}))},n.prototype.ssoSilent=function(e){var t;return Ie(this,void 0,void 0,function(){var r,o,s,u,f=this;return Oe(this,function(p){return r=this.getRequestCorrelationId(e),o=gt(gt({},e),{prompt:e.prompt,correlationId:r}),this.preflightBrowserEnvironmentCheck(mt.Silent),this.ssoSilentMeasurement=this.performanceClient.startMeasurement(be.SsoSilent,r),(t=this.ssoSilentMeasurement)===null||t===void 0||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),this.logger.verbose("ssoSilent called",r),this.eventHandler.emitEvent(Yt.SSO_SILENT_START,mt.Silent,o),this.canUseNative(o)?s=this.acquireTokenNative(o,xr.ssoSilent).catch(function(v){if(v instanceof Cu&&v.isFatal()){f.nativeExtensionProvider=void 0;var g=f.createSilentIframeClient(o.correlationId);return g.acquireToken(o)}throw v}):(u=this.createSilentIframeClient(o.correlationId),s=u.acquireToken(o)),[2,s.then(function(v){var g,E;return f.eventHandler.emitEvent(Yt.SSO_SILENT_SUCCESS,mt.Silent,v),(g=f.ssoSilentMeasurement)===null||g===void 0||g.addStaticFields({accessTokenSize:v.accessToken.length,idTokenSize:v.idToken.length}),(E=f.ssoSilentMeasurement)===null||E===void 0||E.endMeasurement({success:!0,isNativeBroker:v.fromNativeBroker,requestId:v.requestId}),v}).catch(function(v){var g;throw f.eventHandler.emitEvent(Yt.SSO_SILENT_FAILURE,mt.Silent,null,v),(g=f.ssoSilentMeasurement)===null||g===void 0||g.endMeasurement({errorCode:v.errorCode,subErrorCode:v.subError,success:!1}),v}).finally(function(){document.removeEventListener("visibilitychange",f.trackPageVisibilityWithMeasurement)})]})})},n.prototype.acquireTokenByCode=function(e){return Ie(this,void 0,void 0,function(){var t,r,o,s,u=this;return Oe(this,function(f){t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(mt.Silent),this.logger.trace("acquireTokenByCode called",t),this.eventHandler.emitEvent(Yt.ACQUIRE_TOKEN_BY_CODE_START,mt.Silent,e),r=this.performanceClient.startMeasurement(be.AcquireTokenByCode,e.correlationId);try{if(e.code&&e.nativeAccountId)throw Qe.createSpaCodeAndNativeAccountIdPresentError();if(e.code)return o=e.code,s=this.hybridAuthCodeResponses.get(o),s?(this.logger.verbose("Existing acquireTokenByCode request found",e.correlationId),r.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",t),s=this.acquireTokenByCodeAsync(gt(gt({},e),{correlationId:t})).then(function(p){return u.eventHandler.emitEvent(Yt.ACQUIRE_TOKEN_BY_CODE_SUCCESS,mt.Silent,p),u.hybridAuthCodeResponses.delete(o),r.addStaticFields({accessTokenSize:p.accessToken.length,idTokenSize:p.idToken.length}),r.endMeasurement({success:!0,isNativeBroker:p.fromNativeBroker,requestId:p.requestId}),p}).catch(function(p){throw u.hybridAuthCodeResponses.delete(o),u.eventHandler.emitEvent(Yt.ACQUIRE_TOKEN_BY_CODE_FAILURE,mt.Silent,null,p),r.endMeasurement({errorCode:p.errorCode,subErrorCode:p.subError,success:!1}),p}),this.hybridAuthCodeResponses.set(o,s)),[2,s];if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return[2,this.acquireTokenNative(e,xr.acquireTokenByCode,e.nativeAccountId).catch(function(p){throw p instanceof Cu&&p.isFatal()&&(u.nativeExtensionProvider=void 0),p})];throw Qe.createUnableToAcquireTokenFromNativePlatformError()}else throw Qe.createAuthCodeOrNativeAccountIdRequiredError()}catch(p){throw this.eventHandler.emitEvent(Yt.ACQUIRE_TOKEN_BY_CODE_FAILURE,mt.Silent,null,p),r.endMeasurement({errorCode:p instanceof St&&p.errorCode||void 0,subErrorCode:p instanceof St&&p.subError||void 0,success:!1}),p}return[2]})})},n.prototype.acquireTokenByCodeAsync=function(e){var t;return Ie(this,void 0,void 0,function(){var r,o,s=this;return Oe(this,function(u){switch(u.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),this.acquireTokenByCodeAsyncMeasurement=this.performanceClient.startMeasurement(be.AcquireTokenByCodeAsync,e.correlationId),(t=this.acquireTokenByCodeAsyncMeasurement)===null||t===void 0||t.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibilityWithMeasurement),r=this.createSilentAuthCodeClient(e.correlationId),[4,r.acquireToken(e).then(function(f){var p;return(p=s.acquireTokenByCodeAsyncMeasurement)===null||p===void 0||p.endMeasurement({success:!0,fromCache:f.fromCache,isNativeBroker:f.fromNativeBroker,requestId:f.requestId}),f}).catch(function(f){var p;throw(p=s.acquireTokenByCodeAsyncMeasurement)===null||p===void 0||p.endMeasurement({errorCode:f.errorCode,subErrorCode:f.subError,success:!1}),f}).finally(function(){document.removeEventListener("visibilitychange",s.trackPageVisibilityWithMeasurement)})];case 1:return o=u.sent(),[2,o]}})})},n.prototype.acquireTokenFromCache=function(e,t,r){return Ie(this,void 0,void 0,function(){return Oe(this,function(o){switch(this.performanceClient.addQueueMeasurement(be.AcquireTokenFromCache,t.correlationId),r.cacheLookupPolicy){case Ja.Default:case Ja.AccessToken:case Ja.AccessTokenAndRefreshToken:return[2,e.acquireToken(t)];default:throw rt.createRefreshRequiredError()}return[2]})})},n.prototype.acquireTokenByRefreshToken=function(e,t){return Ie(this,void 0,void 0,function(){var r;return Oe(this,function(o){switch(this.performanceClient.addQueueMeasurement(be.AcquireTokenByRefreshToken,e.correlationId),t.cacheLookupPolicy){case Ja.Default:case Ja.AccessTokenAndRefreshToken:case Ja.RefreshToken:case Ja.RefreshTokenAndNetwork:return r=this.createSilentRefreshClient(e.correlationId),this.performanceClient.setPreQueueTime(be.SilentRefreshClientAcquireToken,e.correlationId),[2,r.acquireToken(e)];default:throw rt.createRefreshRequiredError()}return[2]})})},n.prototype.acquireTokenBySilentIframe=function(e){return Ie(this,void 0,void 0,function(){var t;return Oe(this,function(r){return this.performanceClient.addQueueMeasurement(be.AcquireTokenBySilentIframe,e.correlationId),t=this.createSilentIframeClient(e.correlationId),this.performanceClient.setPreQueueTime(be.SilentIframeClientAcquireToken,e.correlationId),[2,t.acquireToken(e)]})})},n.prototype.logout=function(e){return Ie(this,void 0,void 0,function(){var t;return Oe(this,function(r){return t=this.getRequestCorrelationId(e),this.logger.warning("logout API is deprecated and will be removed in msal-browser v3.0.0. Use logoutRedirect instead.",t),[2,this.logoutRedirect(gt({correlationId:t},e))]})})},n.prototype.logoutRedirect=function(e){return Ie(this,void 0,void 0,function(){var t,r;return Oe(this,function(o){return t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(mt.Redirect),r=this.createRedirectClient(t),[2,r.logout(e)]})})},n.prototype.logoutPopup=function(e){try{var t=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck(mt.Popup);var r=this.createPopupClient(t);return r.logout(e)}catch(o){return Promise.reject(o)}},n.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},n.prototype.getAccountByUsername=function(e){if(this.logger.trace("getAccountByUsername called"),!e)return this.logger.warning("getAccountByUsername: No username provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({username:e});return t?(this.logger.verbose("getAccountByUsername: Account matching username found, returning"),this.logger.verbosePii("getAccountByUsername: Returning signed-in accounts matching username: "+e),t):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},n.prototype.getAccountByHomeId=function(e){if(this.logger.trace("getAccountByHomeId called"),!e)return this.logger.warning("getAccountByHomeId: No homeAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({homeAccountId:e});return t?(this.logger.verbose("getAccountByHomeId: Account matching homeAccountId found, returning"),this.logger.verbosePii("getAccountByHomeId: Returning signed-in accounts matching homeAccountId: "+e),t):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},n.prototype.getAccountByLocalId=function(e){if(this.logger.trace("getAccountByLocalId called"),!e)return this.logger.warning("getAccountByLocalId: No localAccountId provided"),null;var t=this.browserStorage.getAccountInfoFilteredBy({localAccountId:e});return t?(this.logger.verbose("getAccountByLocalId: Account matching localAccountId found, returning"),this.logger.verbosePii("getAccountByLocalId: Returning signed-in accounts matching localAccountId: "+e),t):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},n.prototype.setActiveAccount=function(e){this.browserStorage.setActiveAccount(e)},n.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},n.prototype.preflightBrowserEnvironmentCheck=function(e,t){if(t===void 0&&(t=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),hi.blockNonBrowserEnvironment(this.isBrowserEnvironment),hi.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),hi.blockReloadInHiddenIframes(),hi.blockAcquireTokenInPopups(),hi.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===mt.Redirect&&this.config.cache.cacheLocation===Bi.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw rC.createInMemoryRedirectUnavailableError();(e===mt.Redirect||e===mt.Popup)&&this.preflightInteractiveRequest(t)},n.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),hi.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},n.prototype.acquireTokenNative=function(e,t,r){return Ie(this,void 0,void 0,function(){var o;return Oe(this,function(s){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw Qe.createNativeConnectionNotEstablishedError();return o=new em(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.nativeExtensionProvider,r||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),[2,o.acquireToken(e)]})})},n.prototype.canUseNative=function(e,t){if(this.logger.trace("canUseNative called"),!jh.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,e.authenticationScheme))return this.logger.trace("canUseNative: isNativeAvailable returned false, returning false"),!1;if(e.prompt)switch(e.prompt){case aa.NONE:case aa.CONSENT:case aa.LOGIN:this.logger.trace("canUseNative: prompt is compatible with native flow");break;default:return this.logger.trace("canUseNative: prompt = "+e.prompt+" is not compatible with native flow, returning false"),!1}return!t&&!this.getNativeAccountId(e)?(this.logger.trace("canUseNative: nativeAccountId is not available, returning false"),!1):!0},n.prototype.getNativeAccountId=function(e){var t=e.account||this.browserStorage.getAccountInfoByHints(e.loginHint,e.sid)||this.getActiveAccount();return t&&t.nativeAccountId||""},n.prototype.createPopupClient=function(e){return new H6(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},n.prototype.createRedirectClient=function(e){return new F6(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},n.prototype.createSilentIframeClient=function(e){return new G6(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,xr.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},n.prototype.createSilentCacheClient=function(e){return new $P(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},n.prototype.createSilentRefreshClient=function(e){return new V6(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},n.prototype.createSilentAuthCodeClient=function(e){return new uq(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,xr.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)},n.prototype.addEventCallback=function(e){return this.eventHandler.addEventCallback(e)},n.prototype.removeEventCallback=function(e){this.eventHandler.removeEventCallback(e)},n.prototype.addPerformanceCallback=function(e){return this.performanceClient.addPerformanceCallback(e)},n.prototype.removePerformanceCallback=function(e){return this.performanceClient.removePerformanceCallback(e)},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(e){this.logger=e},n.prototype.initializeWrapperLibrary=function(e,t){this.browserStorage.setWrapperMetadata(e,t)},n.prototype.setNavigationClient=function(e){this.navigationClient=e},n.prototype.getConfiguration=function(){return this.config},n.prototype.getRequestCorrelationId=function(e){return e!=null&&e.correlationId?e.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():Y.EMPTY_STRING},n}();/*! @azure/msal-browser v2.38.2 2023-08-24 */var dq=function(n){Bo(e,n);function e(t){var r=n.call(this,t)||this;return r.astsAsyncMeasurement=void 0,r.activeSilentTokenRequests=new Map,r.trackPageVisibility=r.trackPageVisibility.bind(r),r}return e.prototype.loginRedirect=function(t){return Ie(this,void 0,void 0,function(){var r;return Oe(this,function(o){return r=this.getRequestCorrelationId(t),this.logger.verbose("loginRedirect called",r),[2,this.acquireTokenRedirect(gt({correlationId:r},t||PP))]})})},e.prototype.loginPopup=function(t){var r=this.getRequestCorrelationId(t);return this.logger.verbose("loginPopup called",r),this.acquireTokenPopup(gt({correlationId:r},t||PP))},e.prototype.acquireTokenSilent=function(t){return Ie(this,void 0,void 0,function(){var r,o,s,u,f,p,v,g=this;return Oe(this,function(E){if(r=this.getRequestCorrelationId(t),o=this.performanceClient.startMeasurement(be.AcquireTokenSilent,r),o.addStaticFields({cacheLookupPolicy:t.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(mt.Silent),this.logger.verbose("acquireTokenSilent called",r),s=t.account||this.getActiveAccount(),!s)throw Qe.createNoAccountError();return u={clientId:this.config.auth.clientId,authority:t.authority||Y.EMPTY_STRING,scopes:t.scopes,homeAccountIdentifier:s.homeAccountId,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},f=JSON.stringify(u),p=this.activeSilentTokenRequests.get(f),typeof p>"u"?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",r),this.performanceClient.setPreQueueTime(be.AcquireTokenSilentAsync,r),v=this.acquireTokenSilentAsync(gt(gt({},t),{correlationId:r}),s).then(function(w){return g.activeSilentTokenRequests.delete(f),o.addStaticFields({accessTokenSize:w.accessToken.length,idTokenSize:w.idToken.length}),o.endMeasurement({success:!0,fromCache:w.fromCache,isNativeBroker:w.fromNativeBroker,cacheLookupPolicy:t.cacheLookupPolicy,requestId:w.requestId}),w}).catch(function(w){throw g.activeSilentTokenRequests.delete(f),o.endMeasurement({errorCode:w.errorCode,subErrorCode:w.subError,success:!1}),w}),this.activeSilentTokenRequests.set(f,v),[2,v]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",r),o.discardMeasurement(),[2,p])})})},e.prototype.trackPageVisibility=function(){this.astsAsyncMeasurement&&(this.logger.info("Perf: Visibility change detected"),this.astsAsyncMeasurement.increment({visibilityChangeCount:1}))},e.prototype.acquireTokenSilentAsync=function(t,r){var o;return Ie(this,void 0,void 0,function(){var s,u,f,p,v,g=this;return Oe(this,function(E){switch(E.label){case 0:return this.performanceClient.addQueueMeasurement(be.AcquireTokenSilentAsync,t.correlationId),this.eventHandler.emitEvent(Yt.ACQUIRE_TOKEN_START,mt.Silent,t),this.astsAsyncMeasurement=this.performanceClient.startMeasurement(be.AcquireTokenSilentAsync,t.correlationId),(o=this.astsAsyncMeasurement)===null||o===void 0||o.increment({visibilityChangeCount:0}),document.addEventListener("visibilitychange",this.trackPageVisibility),jh.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,t.authenticationScheme)&&r.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),u=gt(gt({},t),{account:r}),s=this.acquireTokenNative(u,xr.acquireTokenSilent_silentFlow).catch(function(w){return Ie(g,void 0,void 0,function(){var S;return Oe(this,function(A){if(w instanceof Cu&&w.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,S=this.createSilentIframeClient(t.correlationId),[2,S.acquireToken(t)];throw w})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),f=this.createSilentCacheClient(t.correlationId),this.performanceClient.setPreQueueTime(be.InitializeSilentRequest,t.correlationId),[4,f.initializeSilentRequest(t,r)];case 2:p=E.sent(),v=gt(gt({},t),{cacheLookupPolicy:t.cacheLookupPolicy||Ja.Default}),this.performanceClient.setPreQueueTime(be.AcquireTokenFromCache,p.correlationId),s=this.acquireTokenFromCache(f,p,v).catch(function(w){if(v.cacheLookupPolicy===Ja.AccessToken)throw w;return hi.blockReloadInHiddenIframes(),g.eventHandler.emitEvent(Yt.ACQUIRE_TOKEN_NETWORK_START,mt.Silent,p),g.performanceClient.setPreQueueTime(be.AcquireTokenByRefreshToken,p.correlationId),g.acquireTokenByRefreshToken(p,v).catch(function(S){var A=S instanceof Fh,k=S instanceof Rl,M=S.errorCode===Yv.noTokensFoundError.code,P=S.errorCode===xl.INVALID_GRANT_ERROR;if((!A||!P||k||v.cacheLookupPolicy===Ja.AccessTokenAndRefreshToken||v.cacheLookupPolicy===Ja.RefreshToken)&&v.cacheLookupPolicy!==Ja.Skip&&!M)throw S;return g.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",t.correlationId),g.performanceClient.setPreQueueTime(be.AcquireTokenBySilentIframe,p.correlationId),g.acquireTokenBySilentIframe(p)})}),E.label=3;case 3:return[2,s.then(function(w){var S;return g.eventHandler.emitEvent(Yt.ACQUIRE_TOKEN_SUCCESS,mt.Silent,w),(S=g.astsAsyncMeasurement)===null||S===void 0||S.endMeasurement({success:!0,fromCache:w.fromCache,isNativeBroker:w.fromNativeBroker,requestId:w.requestId}),w}).catch(function(w){var S;throw g.eventHandler.emitEvent(Yt.ACQUIRE_TOKEN_FAILURE,mt.Silent,null,w),(S=g.astsAsyncMeasurement)===null||S===void 0||S.endMeasurement({errorCode:w.errorCode,subErrorCode:w.subError,success:!1}),w}).finally(function(){document.removeEventListener("visibilitychange",g.trackPageVisibility)})]}})})},e}(cq);const WP="redirect";var YP=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})};class fq extends dq{get account(){return this.getAllAccounts().find(r=>{var o;return((o=r.idTokenClaims)===null||o===void 0?void 0:o.aud)===this.clientId})}get hasValidClaims(){var e;const t=(e=this.account)===null||e===void 0?void 0:e.idTokenClaims;if(t){const r=Math.ceil(Date.now()/1e3);return t.exp>r}return!1}get clientId(){var e;return(e=this.config.auth)===null||e===void 0?void 0:e.clientId}get requestOrigin(){return this.browserStorage.getTemporaryCache("request.origin",!0)}constructor(e,t){super(t),this.tenantId=e}login(e,t=WP,r=!0){var o;return YP(this,void 0,void 0,function*(){const s=(e==null?void 0:e.loginHint)||((o=this.account)===null||o===void 0?void 0:o.username),u=(e==null?void 0:e.scopes)||[],f=Object.assign(Object.assign({},e),{loginHint:s,scopes:u});if(s&&r){this.logger.verbose("Attempting to login in silently");try{return yield this.ssoSilent(f)}catch{this.logger.verbose("Silent login attempt failed")}}switch(this.logger.verbose(`Attempting to login in by [${t}]`),t){case"popup":return this.loginPopup(f);case"redirect":return this.loginRedirect(f)}})}acquireToken(e={scopes:[]},t=WP,r=!0){return YP(this,void 0,void 0,function*(){const o=yield this.account;if(r&&o){this.logger.verbose("Attempting to acquire token in silently");try{return yield this.acquireTokenSilent(Object.assign({account:o},e))}catch{this.logger.info("Expected to navigate away from the current page but timeout occurred.")}}switch(this.logger.verbose(`Attempting to acquire token by [${t}]`),t){case"popup":return this.acquireTokenPopup(e);case"redirect":return this.acquireTokenRedirect(e)}})}}const hq=(n,e=window.location.origin)=>{n=n.match(/^http[s]?/)?n:e+n;const{origin:t,pathname:r}=new URL(n);return t+r.replace(/([^:]\/)\/+/g,"$1")},pq=(n,e,t,r,o)=>{const s=Object.assign({clientId:e,redirectUri:hq(t||""),navigateToLoginRequestUrl:!1,authority:`https://login.microsoftonline.com/${n}`},r==null?void 0:r.auth),u=Object.assign({cacheLocation:"localStorage"},r==null?void 0:r.cache),f=r==null?void 0:r.system;return new(o||fq)(n,{auth:s,cache:u,system:f})};class QP extends Yb{constructor(e){super({logLevel:e,loggerCallback:(...t)=>this.loggerCallback(...t)}),this.getLogType=t=>{switch(t){case fi.Error:return"error";case fi.Warning:return"warn";case fi.Info:return"info";case fi.Verbose:default:return"debug"}}}loggerCallback(e,t,r){console[this.getLogType(e)]("%c FUSION::MSAL %c %s","border: 1px solid;","border: none;",t)}}var M1=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})};const vq="default";class mq{get defaultClient(){return this.getClient(vq)}get defaultAccount(){return this.defaultClient.account}get defaultConfig(){return this._config.defaultConfig}constructor(e){this._config=e,this._clients={}}getClient(e){return this._clients[e]||(this._clients[e]=this.createClient(e)),this._clients[e]}createClient(e){const t=e?this._config.getClientConfig(e):this._config.defaultConfig;if(!t)throw Error("Could not find any config");const r=pq(t.tenantId,t.clientId,t.redirectUri,t.config);return r.setLogger(new QP(0)),r}handleRedirect(){return M1(this,void 0,void 0,function*(){const{redirectUri:e}=this.defaultConfig||{};if(window.location.pathname===e){const t=this.defaultClient,r=t.getLogger(),{requestOrigin:o}=t;yield t.handleRedirectPromise(),o===e?(r.warning(`detected callback loop from url ${e}, redirecting to root`),window.location.replace("/")):window.location.replace(o||"/")}return null})}acquireToken(e){return this.defaultClient.acquireToken(e)}acquireAccessToken(e){return M1(this,void 0,void 0,function*(){const t=yield this.acquireToken(e);return t?t.accessToken:void 0})}login(){return M1(this,void 0,void 0,function*(){yield this.defaultClient.login()})}}var gq=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})};const XP={name:"auth",configure:n=>{var e;const t=new a6;return!((e=n==null?void 0:n.auth)===null||e===void 0)&&e.defaultConfig&&t.configureDefault(n.auth.defaultConfig),t},initialize:({config:n})=>gq(void 0,void 0,void 0,function*(){const e=new mq(n);return n.requiresAuth&&(yield e.handleRedirect(),e.defaultAccount||(yield e.login())),e})},yq=(n,e)=>({module:XP,configure:t=>{t.configureDefault(n),(e==null?void 0:e.requiresAuth)!==void 0&&(t.requiresAuth=e==null?void 0:e.requiresAuth);const{clients:r}=e??{};r&&Object.entries(r).forEach(([o,s])=>t.configureClient(o,s))}});var P1=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})};const _q=n=>{var e;return{id:n.id,isChildType:n.isChildType,parentTypeIds:(e=n.parentTypeIds)!==null&&e!==void 0?e:[]}},D1=n=>{var e,t,r,o;return{id:n.id,externalId:(e=n.externalId)!==null&&e!==void 0?e:void 0,isActive:n.isActive,isDeleted:n.isDeleted,created:new Date(n.created),source:(t=n.source)!==null&&t!==void 0?t:void 0,title:(r=n.title)!==null&&r!==void 0?r:void 0,type:_q(n.type),value:(o=n.value)!==null&&o!==void 0?o:{}}},Eq=n=>P1(void 0,void 0,void 0,function*(){const e=yield n.json();return D1(e)}),bq=n=>P1(void 0,void 0,void 0,function*(){return(yield n.json()).map(D1)}),Cq=n=>P1(void 0,void 0,void 0,function*(){return(yield n.json()).map(D1)});var wq=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!o:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(n,t):o?o.value=t:e.set(n,t),t},Sq=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},oC;class Tq{constructor(e,t={}){this.config=t,oC.set(this,void 0),wq(this,oC,e,"f")}requireInstance(e){return Sq(this,oC,"f").requireInstance(e)}setContextType(e){this.config.contextType=e}setContextFilter(e){this.config.contextFilter=e}connectParentContext(e){this.config.connectParentContext=e}setContextParameterFn(e){this.config.contextParameterFn=e}setValidateContext(e){this.config.validateContext=e}setResolveContext(e){this.config.resolveContext=e}setResolveInitialContext(e){this.config.resolveInitialContext=e}setContextClient(e,t=1*60*1e3){this.config.client={get:typeof e.get=="function"?{key:({id:r})=>r,client:{fn:e.get},expire:t}:e.get,query:typeof e.query=="function"?{key:r=>JSON.stringify(r),client:{fn:e.query},expire:t}:e.query},e.related&&(this.config.client.related=typeof e.related=="function"?{key:r=>JSON.stringify(r),client:{fn:e.related},expire:t}:e.related)}}oC=new WeakMap;const Rq=/^(?:(?:[0-9a-fA-F]){8}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){4}-(?:[0-9a-fA-F]){12})$/,xq=n=>n.replace(/^\/+/,"").split("/").shift(),Aq=n=>!!n.match(Rq),kq=(n,e)=>t=>{const{extract:r=xq,validate:o=Aq}=e??{},s=r(t);if(!s)return $i;if(o(s))return n.contextClient.resolveContext(s);throw Error(`Failed to validate context [${s}] from path [${t}]`)},Iq=({ref:n})=>{const e=n==null?void 0:n.context;if(!e)throw Error(["resolveContextFromNavigation","ref does not support context!"].join(`
268
+ `));return e.currentContext?Ss(e.currentContext):$i},Oq=n=>({ref:e,modules:t})=>{const{context:r,navigation:o}=t,s=kq(r,n==null?void 0:n.path);return i1(o?s(o.path.pathname):$i,Iq({ref:e,modules:t})).pipe(U5())};var aC=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})},JP=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},sC;class Nq{constructor(){this.defaultExpireTime=1*60*1e3,sC.set(this,[])}addConfigBuilder(e){JP(this,sC,"f").push(e)}_getServiceProvider(e){var t;return aC(this,void 0,void 0,function*(){if(e.hasModule("services"))return e.requireInstance("services");{const r=(t=e.ref)===null||t===void 0?void 0:t.services;if(r)return r;throw Error("no service services provider configures [ServicesModule]")}})}createConfig(e){var t,r;return aC(this,void 0,void 0,function*(){const o=yield JP(this,sC,"f").reduce((s,u)=>aC(this,void 0,void 0,function*(){const f=new Tq(e,yield s);return yield Promise.resolve(u(f)),Object.assign(s,f.config)}),Promise.resolve({}));return(t=o.resolveInitialContext)!==null&&t!==void 0||(o.resolveInitialContext=Oq()),(r=o.client)!==null&&r!==void 0||(o.client=yield(()=>aC(this,void 0,void 0,function*(){const u=yield(yield this._getServiceProvider(e)).createContextClient("json$");return{get:{client:{fn:f=>u.get("v1",f,{selector:Eq})},key:({id:f})=>f,expire:this.defaultExpireTime},query:{client:{fn:f=>u.query("v1",{query:f},{selector:bq})},key:f=>JSON.stringify(f),expire:this.defaultExpireTime},related:{client:{fn:f=>u.related("v1",{id:f.item.id,query:{filter:f.filter}},{selector:Cq})},key:f=>JSON.stringify(f),expire:this.defaultExpireTime}}}))()),o})}}sC=new WeakMap;var Mq=function n(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var r,o,s;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(o=r;o--!==0;)if(!n(e[o],t[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(s=Object.keys(e),r=s.length,r!==Object.keys(t).length)return!1;for(o=r;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[o]))return!1;for(o=r;o--!==0;){var u=s[o];if(!n(e[u],t[u]))return!1}return!0}return e!==e&&t!==t};const Pq=Fo(Mq);var ZP;(function(n){n.IDLE="idle",n.ACTIVE="active",n.FAILED="failed",n.CANCELED="canceled"})(ZP||(ZP={}));const Dq=n=>e=>e.pipe(a1(n)),Lq=n=>e=>e.pipe(Ya(n)),Uq=n=>e=>e.pipe(ii(n)),Fq=n=>n.pipe(pn(e=>e.value));let lC;const Hq=new Uint8Array(16);function $q(){if(!lC&&(lC=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!lC))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return lC(Hq)}const Bq=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function jq(n){return typeof n=="string"&&Bq.test(n)}const qo=[];for(let n=0;n<256;++n)qo.push((n+256).toString(16).slice(1));function e2(n,e=0){return qo[n[e+0]]+qo[n[e+1]]+qo[n[e+2]]+qo[n[e+3]]+"-"+qo[n[e+4]]+qo[n[e+5]]+"-"+qo[n[e+6]]+qo[n[e+7]]+"-"+qo[n[e+8]]+qo[n[e+9]]+"-"+qo[n[e+10]]+qo[n[e+11]]+qo[n[e+12]]+qo[n[e+13]]+qo[n[e+14]]+qo[n[e+15]]}function zq(n){if(!jq(n))throw TypeError("Invalid UUID");let e;const t=new Uint8Array(16);return t[0]=(e=parseInt(n.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(n.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(n.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(n.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(n.slice(24,36),16))/1099511627776&255,t[11]=e/4294967296&255,t[12]=e>>>24&255,t[13]=e>>>16&255,t[14]=e>>>8&255,t[15]=e&255,t}function qq(n){n=unescape(encodeURIComponent(n));const e=[];for(let t=0;t<n.length;++t)e.push(n.charCodeAt(t));return e}const Gq="6ba7b810-9dad-11d1-80b4-00c04fd430c8",Vq="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function Kq(n,e,t){function r(o,s,u,f){var p;if(typeof o=="string"&&(o=qq(o)),typeof s=="string"&&(s=zq(s)),((p=s)===null||p===void 0?void 0:p.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let v=new Uint8Array(16+o.length);if(v.set(s),v.set(o,s.length),v=t(v),v[6]=v[6]&15|e,v[8]=v[8]&63|128,u){f=f||0;for(let g=0;g<16;++g)u[f+g]=v[g];return u}return e2(v)}try{r.name=n}catch{}return r.DNS=Gq,r.URL=Vq,r}const t2={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};function tm(n,e,t){if(t2.randomUUID&&!e&&!n)return t2.randomUUID();n=n||{};const r=n.random||(n.rng||$q)();if(r[6]=r[6]&15|64,r[8]=r[8]&63|128,e){t=t||0;for(let o=0;o<16;++o)e[t+o]=r[o];return e}return e2(r)}function Wq(n,e,t,r){switch(n){case 0:return e&t^~e&r;case 1:return e^t^r;case 2:return e&t^e&r^t&r;case 3:return e^t^r}}function L1(n,e){return n<<e|n>>>32-e}function Yq(n){const e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof n=="string"){const u=unescape(encodeURIComponent(n));n=[];for(let f=0;f<u.length;++f)n.push(u.charCodeAt(f))}else Array.isArray(n)||(n=Array.prototype.slice.call(n));n.push(128);const r=n.length/4+2,o=Math.ceil(r/16),s=new Array(o);for(let u=0;u<o;++u){const f=new Uint32Array(16);for(let p=0;p<16;++p)f[p]=n[u*64+p*4]<<24|n[u*64+p*4+1]<<16|n[u*64+p*4+2]<<8|n[u*64+p*4+3];s[u]=f}s[o-1][14]=(n.length-1)*8/Math.pow(2,32),s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=(n.length-1)*8&4294967295;for(let u=0;u<o;++u){const f=new Uint32Array(80);for(let S=0;S<16;++S)f[S]=s[u][S];for(let S=16;S<80;++S)f[S]=L1(f[S-3]^f[S-8]^f[S-14]^f[S-16],1);let p=t[0],v=t[1],g=t[2],E=t[3],w=t[4];for(let S=0;S<80;++S){const A=Math.floor(S/20),k=L1(p,5)+Wq(A,v,g,E)+w+e[A]+f[S]>>>0;w=E,E=g,g=L1(v,30)>>>0,v=p,p=k}t[0]=t[0]+p>>>0,t[1]=t[1]+v>>>0,t[2]=t[2]+g>>>0,t[3]=t[3]+E>>>0,t[4]=t[4]+w>>>0}return[t[0]>>24&255,t[0]>>16&255,t[0]>>8&255,t[0]&255,t[1]>>24&255,t[1]>>16&255,t[1]>>8&255,t[1]&255,t[2]>>24&255,t[2]>>16&255,t[2]>>8&255,t[2]&255,t[3]>>24&255,t[3]>>16&255,t[3]>>8&255,t[3]&255,t[4]>>24&255,t[4]>>16&255,t[4]>>8&255,t[4]&255]}const U1=Kq("v5",80,Yq);let F1=class extends Error{constructor(e,t){super(t.message,{cause:t.cause}),this.type=e,this.name="QueryClientError",this.request=t.request}};function to(n){for(var e=arguments.length,t=Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];if(process.env.NODE_ENV!=="production"){var o=oG[n],s=o?typeof o=="function"?o.apply(null,t):o:"unknown error nr: "+n;throw Error("[Immer] "+s)}throw Error("[Immer] minified error nr: "+n+(t.length?" "+t.map(function(u){return"'"+u+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Qd(n){return!!n&&!!n[Wn]}function Al(n){var e;return!!n&&(function(t){if(!t||typeof t!="object")return!1;var r=Object.getPrototypeOf(t);if(r===null)return!0;var o=Object.hasOwnProperty.call(r,"constructor")&&r.constructor;return o===Object||typeof o=="function"&&Function.toString.call(o)===aG}(n)||Array.isArray(n)||!!n[c2]||!!(!((e=n.constructor)===null||e===void 0)&&e[c2])||$1(n)||B1(n))}function nm(n){return Qd(n)||to(23,n),n[Wn].t}function rm(n,e,t){t===void 0&&(t=!1),im(n)===0?(t?Object.keys:X1)(n).forEach(function(r){t&&typeof r=="symbol"||e(r,n[r],n)}):n.forEach(function(r,o){return e(o,r,n)})}function im(n){var e=n[Wn];return e?e.i>3?e.i-4:e.i:Array.isArray(n)?1:$1(n)?2:B1(n)?3:0}function H1(n,e){return im(n)===2?n.has(e):Object.prototype.hasOwnProperty.call(n,e)}function Qq(n,e){return im(n)===2?n.get(e):n[e]}function n2(n,e,t){var r=im(n);r===2?n.set(e,t):r===3?n.add(t):n[e]=t}function Xq(n,e){return n===e?n!==0||1/n==1/e:n!=n&&e!=e}function $1(n){return rG&&n instanceof Map}function B1(n){return iG&&n instanceof Set}function wo(n){return n.o||n.t}function j1(n){if(Array.isArray(n))return Array.prototype.slice.call(n);var e=sG(n);delete e[Wn];for(var t=X1(e),r=0;r<t.length;r++){var o=t[r],s=e[o];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(e[o]={configurable:!0,writable:!0,enumerable:s.enumerable,value:n[o]})}return Object.create(Object.getPrototypeOf(n),e)}function z1(n,e){return e===void 0&&(e=!1),q1(n)||Qd(n)||!Al(n)||(im(n)>1&&(n.set=n.add=n.clear=n.delete=Jq),Object.freeze(n),e&&rm(n,function(t,r){return z1(r,!0)},!0)),n}function Jq(){to(2)}function q1(n){return n==null||typeof n!="object"||Object.isFrozen(n)}function wu(n){var e=J1[n];return e||to(18,n),e}function Zq(n,e){J1[n]||(J1[n]=e)}function uC(){return process.env.NODE_ENV==="production"||om||to(0),om}function G1(n,e){e&&(wu("Patches"),n.u=[],n.s=[],n.v=e)}function cC(n){V1(n),n.p.forEach(eG),n.p=null}function V1(n){n===om&&(om=n.l)}function r2(n){return om={p:[],l:om,h:n,m:!0,_:0}}function eG(n){var e=n[Wn];e.i===0||e.i===1?e.j():e.g=!0}function K1(n,e){e._=e.p.length;var t=e.p[0],r=n!==void 0&&n!==t;return e.h.O||wu("ES5").S(e,n,r),r?(t[Wn].P&&(cC(e),to(4)),Al(n)&&(n=dC(e,n),e.l||fC(e,n)),e.u&&wu("Patches").M(t[Wn].t,n,e.u,e.s)):n=dC(e,t,[]),cC(e),e.u&&e.v(e.u,e.s),n!==u2?n:void 0}function dC(n,e,t){if(q1(e))return e;var r=e[Wn];if(!r)return rm(e,function(f,p){return i2(n,r,e,f,p,t)},!0),e;if(r.A!==n)return e;if(!r.P)return fC(n,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var o=r.i===4||r.i===5?r.o=j1(r.k):r.o,s=o,u=!1;r.i===3&&(s=new Set(o),o.clear(),u=!0),rm(s,function(f,p){return i2(n,r,o,f,p,t,u)}),fC(n,o,!1),t&&n.u&&wu("Patches").N(r,t,n.u,n.s)}return r.o}function i2(n,e,t,r,o,s,u){if(process.env.NODE_ENV!=="production"&&o===t&&to(5),Qd(o)){var f=dC(n,o,s&&e&&e.i!==3&&!H1(e.R,r)?s.concat(r):void 0);if(n2(t,r,f),!Qd(f))return;n.m=!1}else u&&t.add(o);if(Al(o)&&!q1(o)){if(!n.h.D&&n._<1)return;dC(n,o),e&&e.A.l||fC(n,o)}}function fC(n,e,t){t===void 0&&(t=!1),!n.l&&n.h.D&&n.m&&z1(e,t)}function W1(n,e){var t=n[Wn];return(t?wo(t):n)[e]}function o2(n,e){if(e in n)for(var t=Object.getPrototypeOf(n);t;){var r=Object.getOwnPropertyDescriptor(t,e);if(r)return r;t=Object.getPrototypeOf(t)}}function zc(n){n.P||(n.P=!0,n.l&&zc(n.l))}function Y1(n){n.o||(n.o=j1(n.t))}function p0(n,e,t){var r=$1(e)?wu("MapSet").F(e,t):B1(e)?wu("MapSet").T(e,t):n.O?function(o,s){var u=Array.isArray(o),f={i:u?1:0,A:s?s.A:uC(),P:!1,I:!1,R:{},l:s,t:o,k:null,o:null,j:null,C:!1},p=f,v=Z1;u&&(p=[f],v=v0);var g=Proxy.revocable(p,v),E=g.revoke,w=g.proxy;return f.k=w,f.j=E,w}(e,t):wu("ES5").J(e,t);return(t?t.A:uC()).p.push(r),r}function tG(n){return Qd(n)||to(22,n),function e(t){if(!Al(t))return t;var r,o=t[Wn],s=im(t);if(o){if(!o.P&&(o.i<4||!wu("ES5").K(o)))return o.t;o.I=!0,r=a2(t,s),o.I=!1}else r=a2(t,s);return rm(r,function(u,f){o&&Qq(o.t,u)===f||n2(r,u,e(f))}),s===3?new Set(r):r}(n)}function a2(n,e){switch(e){case 2:return new Map(n);case 3:return Array.from(n)}return j1(n)}function nG(){function n(f,p){function v(){this.constructor=f}o(f,p),f.prototype=(v.prototype=p.prototype,new v)}function e(f){f.o||(f.R=new Map,f.o=new Map(f.t))}function t(f){f.o||(f.o=new Set,f.t.forEach(function(p){if(Al(p)){var v=p0(f.A.h,p,f);f.p.set(p,v),f.o.add(v)}else f.o.add(p)}))}function r(f){f.g&&to(3,JSON.stringify(wo(f)))}var o=function(f,p){return(o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(v,g){v.__proto__=g}||function(v,g){for(var E in g)g.hasOwnProperty(E)&&(v[E]=g[E])})(f,p)},s=function(){function f(v,g){return this[Wn]={i:2,l:g,A:g?g.A:uC(),P:!1,I:!1,o:void 0,R:void 0,t:v,k:this,C:!1,g:!1},this}n(f,Map);var p=f.prototype;return Object.defineProperty(p,"size",{get:function(){return wo(this[Wn]).size}}),p.has=function(v){return wo(this[Wn]).has(v)},p.set=function(v,g){var E=this[Wn];return r(E),wo(E).has(v)&&wo(E).get(v)===g||(e(E),zc(E),E.R.set(v,!0),E.o.set(v,g),E.R.set(v,!0)),this},p.delete=function(v){if(!this.has(v))return!1;var g=this[Wn];return r(g),e(g),zc(g),g.t.has(v)?g.R.set(v,!1):g.R.delete(v),g.o.delete(v),!0},p.clear=function(){var v=this[Wn];r(v),wo(v).size&&(e(v),zc(v),v.R=new Map,rm(v.t,function(g){v.R.set(g,!1)}),v.o.clear())},p.forEach=function(v,g){var E=this;wo(this[Wn]).forEach(function(w,S){v.call(g,E.get(S),S,E)})},p.get=function(v){var g=this[Wn];r(g);var E=wo(g).get(v);if(g.I||!Al(E)||E!==g.t.get(v))return E;var w=p0(g.A.h,E,g);return e(g),g.o.set(v,w),w},p.keys=function(){return wo(this[Wn]).keys()},p.values=function(){var v,g=this,E=this.keys();return(v={})[hC]=function(){return g.values()},v.next=function(){var w=E.next();return w.done?w:{done:!1,value:g.get(w.value)}},v},p.entries=function(){var v,g=this,E=this.keys();return(v={})[hC]=function(){return g.entries()},v.next=function(){var w=E.next();if(w.done)return w;var S=g.get(w.value);return{done:!1,value:[w.value,S]}},v},p[hC]=function(){return this.entries()},f}(),u=function(){function f(v,g){return this[Wn]={i:3,l:g,A:g?g.A:uC(),P:!1,I:!1,o:void 0,t:v,k:this,p:new Map,g:!1,C:!1},this}n(f,Set);var p=f.prototype;return Object.defineProperty(p,"size",{get:function(){return wo(this[Wn]).size}}),p.has=function(v){var g=this[Wn];return r(g),g.o?!!g.o.has(v)||!(!g.p.has(v)||!g.o.has(g.p.get(v))):g.t.has(v)},p.add=function(v){var g=this[Wn];return r(g),this.has(v)||(t(g),zc(g),g.o.add(v)),this},p.delete=function(v){if(!this.has(v))return!1;var g=this[Wn];return r(g),t(g),zc(g),g.o.delete(v)||!!g.p.has(v)&&g.o.delete(g.p.get(v))},p.clear=function(){var v=this[Wn];r(v),wo(v).size&&(t(v),zc(v),v.o.clear())},p.values=function(){var v=this[Wn];return r(v),t(v),v.o.values()},p.entries=function(){var v=this[Wn];return r(v),t(v),v.o.entries()},p.keys=function(){return this.values()},p[hC]=function(){return this.values()},p.forEach=function(v,g){for(var E=this.values(),w=E.next();!w.done;)v.call(g,w.value,w.value,this),w=E.next()},f}();Zq("MapSet",{F:function(f,p){return new s(f,p)},T:function(f,p){return new u(f,p)}})}function _ue(n){return n}var s2,om,Q1=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",rG=typeof Map<"u",iG=typeof Set<"u",l2=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",u2=Q1?Symbol.for("immer-nothing"):((s2={})["immer-nothing"]=!0,s2),c2=Q1?Symbol.for("immer-draftable"):"__$immer_draftable",Wn=Q1?Symbol.for("immer-state"):"__$immer_state",hC=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",oG={0:"Illegal state",1:"Immer drafts cannot have computed properties",2:"This object has been frozen and should not be mutated",3:function(n){return"Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+n},4:"An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.",5:"Immer forbids circular references",6:"The first or second argument to `produce` must be a function",7:"The third argument to `produce` must be a function or undefined",8:"First argument to `createDraft` must be a plain object, an array, or an immerable object",9:"First argument to `finishDraft` must be a draft returned by `createDraft`",10:"The given draft is already finalized",11:"Object.defineProperty() cannot be used on an Immer draft",12:"Object.setPrototypeOf() cannot be used on an Immer draft",13:"Immer only supports deleting array indices",14:"Immer only supports setting array indices and the 'length' property",15:function(n){return"Cannot apply patch, path doesn't resolve: "+n},16:'Sets cannot have "replace" patches.',17:function(n){return"Unsupported patch operation: "+n},18:function(n){return"The plugin for '"+n+"' has not been loaded into Immer. To enable the plugin, import and call `enable"+n+"()` when initializing your application."},20:"Cannot use proxies if Proxy, Proxy.revocable or Reflect are not available",21:function(n){return"produce can only be called on things that are draftable: plain objects, arrays, Map, Set or classes that are marked with '[immerable]: true'. Got '"+n+"'"},22:function(n){return"'current' expects a draft, got: "+n},23:function(n){return"'original' expects a draft, got: "+n},24:"Patching reserved attributes like __proto__, prototype and constructor is not allowed"},aG=""+Object.prototype.constructor,X1=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(n){return Object.getOwnPropertyNames(n).concat(Object.getOwnPropertySymbols(n))}:Object.getOwnPropertyNames,sG=Object.getOwnPropertyDescriptors||function(n){var e={};return X1(n).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(n,t)}),e},J1={},Z1={get:function(n,e){if(e===Wn)return n;var t=wo(n);if(!H1(t,e))return function(o,s,u){var f,p=o2(s,u);return p?"value"in p?p.value:(f=p.get)===null||f===void 0?void 0:f.call(o.k):void 0}(n,t,e);var r=t[e];return n.I||!Al(r)?r:r===W1(n.t,e)?(Y1(n),n.o[e]=p0(n.A.h,r,n)):r},has:function(n,e){return e in wo(n)},ownKeys:function(n){return Reflect.ownKeys(wo(n))},set:function(n,e,t){var r=o2(wo(n),e);if(r!=null&&r.set)return r.set.call(n.k,t),!0;if(!n.P){var o=W1(wo(n),e),s=o==null?void 0:o[Wn];if(s&&s.t===t)return n.o[e]=t,n.R[e]=!1,!0;if(Xq(t,o)&&(t!==void 0||H1(n.t,e)))return!0;Y1(n),zc(n)}return n.o[e]===t&&(t!==void 0||e in n.o)||Number.isNaN(t)&&Number.isNaN(n.o[e])||(n.o[e]=t,n.R[e]=!0),!0},deleteProperty:function(n,e){return W1(n.t,e)!==void 0||e in n.t?(n.R[e]=!1,Y1(n),zc(n)):delete n.R[e],n.o&&delete n.o[e],!0},getOwnPropertyDescriptor:function(n,e){var t=wo(n),r=Reflect.getOwnPropertyDescriptor(t,e);return r&&{writable:!0,configurable:n.i!==1||e!=="length",enumerable:r.enumerable,value:t[e]}},defineProperty:function(){to(11)},getPrototypeOf:function(n){return Object.getPrototypeOf(n.t)},setPrototypeOf:function(){to(12)}},v0={};rm(Z1,function(n,e){v0[n]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),v0.deleteProperty=function(n,e){return process.env.NODE_ENV!=="production"&&isNaN(parseInt(e))&&to(13),v0.set.call(this,n,e,void 0)},v0.set=function(n,e,t){return process.env.NODE_ENV!=="production"&&e!=="length"&&isNaN(parseInt(e))&&to(14),Z1.set.call(this,n[0],e,t,n[0])};var lG=function(){function n(t){var r=this;this.O=l2,this.D=!0,this.produce=function(o,s,u){if(typeof o=="function"&&typeof s!="function"){var f=s;s=o;var p=r;return function(k){var M=this;k===void 0&&(k=f);for(var P=arguments.length,L=Array(P>1?P-1:0),j=1;j<P;j++)L[j-1]=arguments[j];return p.produce(k,function(U){var H;return(H=s).call.apply(H,[M,U].concat(L))})}}var v;if(typeof s!="function"&&to(6),u!==void 0&&typeof u!="function"&&to(7),Al(o)){var g=r2(r),E=p0(r,o,void 0),w=!0;try{v=s(E),w=!1}finally{w?cC(g):V1(g)}return typeof Promise<"u"&&v instanceof Promise?v.then(function(k){return G1(g,u),K1(k,g)},function(k){throw cC(g),k}):(G1(g,u),K1(v,g))}if(!o||typeof o!="object"){if((v=s(o))===void 0&&(v=o),v===u2&&(v=void 0),r.D&&z1(v,!0),u){var S=[],A=[];wu("Patches").M(o,v,S,A),u(S,A)}return v}to(21,o)},this.produceWithPatches=function(o,s){if(typeof o=="function")return function(v){for(var g=arguments.length,E=Array(g>1?g-1:0),w=1;w<g;w++)E[w-1]=arguments[w];return r.produceWithPatches(v,function(S){return o.apply(void 0,[S].concat(E))})};var u,f,p=r.produce(o,s,function(v,g){u=v,f=g});return typeof Promise<"u"&&p instanceof Promise?p.then(function(v){return[v,u,f]}):[p,u,f]},typeof(t==null?void 0:t.useProxies)=="boolean"&&this.setUseProxies(t.useProxies),typeof(t==null?void 0:t.autoFreeze)=="boolean"&&this.setAutoFreeze(t.autoFreeze)}var e=n.prototype;return e.createDraft=function(t){Al(t)||to(8),Qd(t)&&(t=tG(t));var r=r2(this),o=p0(this,t,void 0);return o[Wn].C=!0,V1(r),o},e.finishDraft=function(t,r){var o=t&&t[Wn];process.env.NODE_ENV!=="production"&&(o&&o.C||to(9),o.I&&to(10));var s=o.A;return G1(s,r),K1(void 0,s)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!l2&&to(20),this.O=t},e.applyPatches=function(t,r){var o;for(o=r.length-1;o>=0;o--){var s=r[o];if(s.path.length===0&&s.op==="replace"){t=s.value;break}}o>-1&&(r=r.slice(o+1));var u=wu("Patches").$;return Qd(t)?u(t,r):this.produce(t,function(f){return u(f,r)})},n}(),xs=new lG,d2=xs.produce;xs.produceWithPatches.bind(xs),xs.setAutoFreeze.bind(xs),xs.setUseProxies.bind(xs),xs.applyPatches.bind(xs),xs.createDraft.bind(xs),xs.finishDraft.bind(xs);const pC=(...n)=>ln(e=>n.includes(e.type));var ua=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},uG=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!o:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(n,t):o?o.value=t:e.set(n,t),t},Su,kl;class zh extends yn{get action$(){return ua(this,Su,"f").asObservable()}get value(){return ua(this,kl,"f").value}get closed(){return ua(this,kl,"f").closed||ua(this,Su,"f").closed}constructor(e,t){super(o=>ua(this,kl,"f").subscribe(o)),Su.set(this,new Co),kl.set(this,void 0);const r="getInitialState"in e?e.getInitialState():t;uG(this,kl,new Yy(r),"f"),ua(this,Su,"f").pipe(aP(e,r),iP()).subscribe(ua(this,kl,"f")),this.reset=()=>ua(this,kl,"f").next(r)}next(e){ua(this,Su,"f").next(e)}addEffect(e,t){const r=typeof e=="string"?this.action$.pipe(pC(e)):this.action$,o=t||e;return r.pipe(Ya(s=>qr(new Promise((u,f)=>{try{u(o(s,this.value))}catch(p){f(p)}})).pipe(Mr(u=>(console.warn("unhandled effect",u),$i)))),ln(s=>!!s),Lb(Db)).subscribe(ua(this,Su,"f"))}addEpic(e){return this.addFlow(e)}addFlow(e){const t=e(this.action$,this);if(!t)throw new TypeError(`addEpic: one of the provided effects "${e.name||"<anonymous>"}" does not return a stream. Double check you're not missing a return statement!`);return t.pipe(Mr(r=>(console.trace("unhandled exception, epic closed!",r),$i)),Lb(Db)).subscribe(ua(this,Su,"f"))}unsubscribe(){ua(this,Su,"f").unsubscribe(),ua(this,kl,"f").unsubscribe()}complete(){ua(this,Su,"f").complete(),ua(this,kl,"f").complete()}asObservable(){return ua(this,kl,"f").asObservable()}}Su=new WeakMap,kl=new WeakMap;function Sn(n,e){function t(...r){if(e){const o=e(...r);if(!o)throw new Error("prepareAction did not return an object");return Object.assign(Object.assign({type:n,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:n,payload:r[0]}}return t.toString=()=>`${n}`,t.type=n,t.match=r=>r.type===n,t}const vC="::",ex=n=>new RegExp(`${vC}\\${n}$`),f2=n=>n.type.replace(ex("\\w+$"),"");function mC(n,e,t,r){const o=Sn([n,"request"].join(vC),e);return t&&Object.assign(o,{success:Sn([n,"success"].join(vC),t)}),r&&Object.assign(o,{failure:Sn([n,"failure"].join(vC),r)}),o}const cG=n=>!!n.type.match(/::request$/),dG=n=>!!n.type.match(ex("success")),fG=n=>!!n.type.match(ex("failure")),hG=n=>dG(n)||fG(n);function h2(n){return Al(n)?d2(n,()=>{}):n}function pG(n){return typeof n=="function"}function qh(n,e){const[t,r,o]=vG(e);let s;if(pG(n))s=()=>h2(n());else{const f=h2(n);s=()=>f}function u(f=s(),p){let v=[t[p.type],...r.filter(({matcher:g})=>g(p)).map(({reducer:g})=>g)];return v.filter(g=>!!g).length===0&&(v=[o]),v.reduce((g,E)=>{if(E)if(Qd(g)){const S=E(g,p);return S===void 0?g:S}else{if(Al(g))return d2(g,w=>E(w,p));{const w=E(g,p);if(w===void 0){if(g===null)return g;throw Error("A case reducer on a non-draftable value must not return undefined")}return w}}return g},f)}return u.getInitialState=s,u}function vG(n){const e={},t=[];let r;const o={addCase(s,u){if(process.env.NODE_ENV!=="production"){if(t.length>0)throw new Error("`builder.addCase` should only be called before calling `builder.addMatcher`");if(r)throw new Error("`builder.addCase` should only be called before calling `builder.addDefaultCase`")}const f=typeof s=="string"?s:s.type;if(f in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[f]=u,o},addMatcher(s,u){if(process.env.NODE_ENV!=="production"&&r)throw new Error("`builder.addMatcher` should only be called before calling `builder.addDefaultCase`");return t.push({matcher:s,reducer:u}),o},addDefaultCase(s){if(process.env.NODE_ENV!=="production"&&r)throw new Error("`builder.addDefaultCase` can only be called once");return r=s,o}};return n(o),[e,t,r]}const So=(()=>({request:Sn("client/request",(e,t)=>{var r,o,s;return t??(t={}),(r=t.transaction)!==null&&r!==void 0||(t.transaction=tm()),(o=t.created)!==null&&o!==void 0||(t.created=Date.now()),(s=t.task)!==null&&s!==void 0||(t.task=new Mb),{payload:e,meta:t}}),retry:Sn("client/retry",e=>({payload:e})),success:Sn("client/success",(e,t)=>({payload:e,meta:t})),cancel:Sn("client/cancel",e=>({payload:e})),failure:Sn("client/failure",(e,t)=>({payload:e,meta:t})),error:Sn("client/error",(e,t)=>({payload:e,meta:t}))}))(),p2=n=>e=>e.pipe(ln(So.request.match),Ya(t=>{const{meta:r}=t,{transaction:o}=r,s=new AbortController,{signal:u}=s;return new yn(f=>{f.add(e.pipe(ln(So.cancel.match)).subscribe(p=>{p.payload.transaction===o&&(u.aborted||s.abort(),f.complete())})),f.add(qr(n(t,u)).subscribe({next:p=>f.next(p),error:p=>f.next(So.error(p,{request:t})),complete:()=>f.complete()}))})})),mG=n=>(n=Object.assign({},{count:0,delay:0},n),(e,t)=>e.pipe(p2(r=>e.pipe(ln(So.failure.match),ln(o=>o.meta.request===r),jv(t),ii(([o,s])=>{var u,f;const{transaction:p}=r.meta,v=s[p];if(!v)return $i;const g=(f=(u=v.retry)===null||u===void 0?void 0:u.length)!==null&&f!==void 0?f:0,E=Object.assign({},n,r.meta.retry);if(g>=E.count)throw E.count?Error("maximum retries executed!",{cause:o.payload}):o.payload;return(typeof E.delay=="function"?qr(E.delay(o.payload.cause)).pipe(Mr(S=>{throw Error("failed to resolve delay",{cause:S})})):o1(E.delay)).pipe(pn(()=>So.retry(r)))}))))),gG=n=>e=>e.pipe(p2((t,r)=>qr(n(t.payload,r)).pipe(pn(o=>So.success(o,{request:t})),Mr(o=>Ss(So.failure(Error(`failed to execute request for transaction ${t.meta.transaction}`,{cause:o}),{request:t})))))),yG=n=>n.pipe(ln(So.retry.match),pn(e=>e.payload)),v2=()=>ln(n=>n.status==="complete"),_G=(n={})=>qh(n,e=>e.addCase(So.request,(t,r)=>{const{transaction:o,task:s,ref:u,created:f}=r.meta;t[o]={transaction:o,task:s,ref:u,created:f}}).addCase(So.success,(t,r)=>{const{request:o}=r.meta,{transaction:s,ref:u}=o.meta,f=t[s];if(f){const p={status:"complete",transaction:s,ref:u,value:r.payload,args:o.payload,created:f.created,completed:Date.now()};f.task.next(p),f.task.complete()}delete t[s]}).addCase(So.retry,(t,r)=>{var o;const{transaction:s}=r.payload.meta,u=t[s];u&&((o=u.retry)!==null&&o!==void 0||(u.retry=[]),u.retry.push(Date.now()))}).addCase(So.cancel,(t,r)=>{const{transaction:o,reason:s}=r.payload;if(t[o]){const u=Object.assign({},nm(t[o]));u.task.error(new F1("abort",{request:u,message:s??"request was canceled"})),delete t[o]}}).addCase(So.failure,(t,r)=>{var o;const{payload:s,meta:u}=r,{transaction:f}=u.request.meta,p=t[f];p&&((o=p.errors)!==null&&o!==void 0||(p.errors=[]),p.errors.push(s))}).addCase(So.error,(t,r)=>{const{payload:o,meta:s}=r,{transaction:u}=s.request.meta;if(t[u]){const f=Object.assign({},nm(t[u]));f.task.error(new F1("error",{request:f,message:`failed to process task [${u}]`,cause:o.cause})),delete t[u]}}));var EG=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})},pi=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},m2=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!o:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(n,t):o?o.value=t:e.set(n,t),t},Si,Gh;let g2=class extends yn{get closed(){return pi(this,Si,"f").closed}get state$(){return pi(this,Si,"f")}get action$(){return pi(this,Si,"f").action$}get success$(){return this.action$.pipe(ln(So.success.match),pn(({payload:e})=>e))}get error$(){return this.action$.pipe(pC("client/error"),jv(pi(this,Si,"f")),pn(([e,t])=>{const{payload:r,meta:o}=e,{transaction:s}=o.request.meta,u=t[e.meta.request.meta.transaction];return new F1("error",{request:u,message:`failed to process task [${s}]`,cause:r})}))}constructor(e,t){super(s=>pi(this,Si,"f").subscribe(s)),Si.set(this,void 0),Gh.set(this,void 0);const r={};m2(this,Si,new zh(_G(r)),"f"),m2(this,Gh,new Ho(()=>pi(this,Si,"f").complete()),"f"),pi(this,Gh,"f").add(pi(this,Si,"f").addFlow(gG(e))),pi(this,Gh,"f").add(pi(this,Si,"f").addFlow(yG));const o=Object.assign({count:0,delay:0},t==null?void 0:t.retry);pi(this,Gh,"f").add(pi(this,Si,"f").addFlow(mG(o)))}next(e,t){const{ref:r,retry:o,task:s}=t??{},u=So.request(e,{ref:r,retry:o,task:s});return pi(this,Si,"f").next(u),u.meta}nextAsync(e,t){return EG(this,void 0,void 0,function*(){return $o(this.next(e,t).task.pipe(v2()))})}getTaskByTransaction(e){const t=pi(this,Si,"f").value[e];return t==null?void 0:t.task}getTaskByRef(e){const t=Object.values(pi(this,Si,"f").value).find(r=>r.ref===e);return t==null?void 0:t.task}cancelTaskByRef(e,t){const r=Object.values(pi(this,Si,"f").value).find(o=>o.ref===e);r!=null&&r.ref&&this.cancel(r.transaction,t)}cancel(e,t){if(e)pi(this,Si,"f").value[e]&&(t??(t=`[${e}]: transaction canceled`),pi(this,Si,"f").next(So.cancel({transaction:e,reason:t})));else for(const r of Object.keys(pi(this,Si,"f").value))this.cancel(r,"all transactions canceled")}on(e,t){return pi(this,Si,"f").addEffect(So[e].type,r=>{t(r,this)})}complete(){pi(this,Gh,"f").unsubscribe()}asObservable(){return pi(this,Si,"f").asObservable()}};Si=new WeakMap,Gh=new WeakMap;function bG(){return{set:Sn("cache/set",(n,e)=>({payload:{key:n,entry:e}})),remove:Sn("cache/remove",n=>({payload:n})),invalidate:Sn("cache/invalidate",n=>({payload:n})),trim:Sn("cache/trim",n=>({payload:n}))}}const am=bG(),CG=(n,e)=>{var t,r;return((t=e.updated)!==null&&t!==void 0?t:0)-((r=n.updated)!==null&&r!==void 0?r:0)};function wG(n,e={}){return qh(e,t=>t.addCase(n.set,(r,o)=>{var s;const{key:u,entry:f}=o.payload,p=r[u];if(p)p.updated=Date.now(),(s=p.updates)!==null&&s!==void 0||(p.updates=0),p.updates++;else{const v=Date.now();r[u]=Object.assign(Object.assign({},f),{created:v,updated:v})}}).addCase(n.remove,(r,o)=>{delete r[o.payload]}).addCase(n.invalidate,(r,o)=>{const s=r[o.payload];s&&delete s.updated}).addCase(n.trim,(r,o)=>{var s,u;const{payload:f}=o,p=(s=f.sort)!==null&&s!==void 0?s:CG,v=Object.keys(r),g=Object.entries(r).filter(([E,w])=>!f.validate||f.validate(w)).sort((E,w)=>p(E[1],w[1])).slice(0,(u=f.size)!==null&&u!==void 0?u:Number.MAX_SAFE_INTEGER).map(([E])=>E);if(v.length!==g.length)for(const E of v){const w=g.indexOf(E);w!==-1?g.splice(w,1):delete r[E]}}))}var Il=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},SG=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!o:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(n,t):o?o.value=t:e.set(n,t),t},es;let y2=class{get state(){return Il(this,es,"f").value}get state$(){return Il(this,es,"f").asObservable()}constructor(e){es.set(this,void 0);const{trimming:t,initial:r}=e??{};SG(this,es,new zh(wG(am,r)),"f"),t&&Il(this,es,"f").addEffect("cache/set",()=>Il(this,es,"f").next(am.trim(t)))}setItem(...e){Il(this,es,"f").next(am.set(...e))}getItem(e){return Il(this,es,"f").value[e]}removeItem(e){Il(this,es,"f").next(am.remove(e))}invalidate(e){Il(this,es,"f").next(am.invalidate(e))}trim(e){Il(this,es,"f").next(am.trim(e))}reset(){Il(this,es,"f").reset()}complete(){Il(this,es,"f").complete()}};es=new WeakMap;var Ar=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},sm=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!o:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(n,t):o?o.value=t:e.set(n,t),t},TG=globalThis&&globalThis.__rest||function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(n,r[o])&&(t[r[o]]=n[r[o]]);return t},Vh,Tu,Xd,lm,m0,g0,gC,tx;const RG=(n=0)=>e=>{var t;return((t=e.updated)!==null&&t!==void 0?t:0)+n>Date.now()},xG=n=>{if(typeof n=="function")return n;switch(n){case"concat":return Dq;case"merge":return Lq;case"switch":default:return Uq}};let yC=class{get client(){return Ar(this,Tu,"f")}get cache(){return Ar(this,Xd,"f")}constructor(e){var t;Vh.set(this,new Ho),Tu.set(this,void 0),Xd.set(this,void 0),lm.set(this,new Co),m0.set(this,{}),g0.set(this,void 0),gC.set(this,void 0),tx.set(this,tm()),sm(this,g0,o=>U1(e.key(o),Ar(this,tx,"f")),"f"),sm(this,gC,(t=e==null?void 0:e.validate)!==null&&t!==void 0?t:RG(e==null?void 0:e.expire),"f"),e.client instanceof g2?sm(this,Tu,e.client,"f"):(sm(this,Tu,new g2(e.client.fn,e.client.options),"f"),Ar(this,Vh,"f").add(()=>Ar(this,Tu,"f").complete())),e.cache instanceof y2?sm(this,Xd,e.cache,"f"):(sm(this,Xd,new y2(e.cache||{}),"f"),Ar(this,Vh,"f").add(()=>Ar(this,Xd,"f").complete()));const r=xG(e.queueOperator);Ar(this,Vh,"f").add(()=>Ar(this,lm,"f").complete()),Ar(this,Vh,"f").add(Ar(this,lm,"f").pipe(r(o=>{const{args:s,options:u}=o;return new yn(f=>{const{task:p,transaction:v}=Ar(this,Tu,"f").next(s,u);f.add(p.pipe(Mr(()=>$i)).subscribe(f)),f.add(()=>{setTimeout(()=>Ar(this,Tu,"f").cancel(v))})})}),v2(),Ub(()=>!Ar(this,Tu,"f").closed)).subscribe(o=>{const{args:s,value:u,transaction:f,ref:p}=o,v=p??Ar(this,g0,"f").call(this,s);Ar(this,Xd,"f").setItem(v,{value:u,args:s,transaction:f})}))}next(e,t){Ar(this,lm,"f").next({args:e,options:t})}query(e,t){return this._query(e,t)}queryAsync(e,t){const r=t||{},{awaitResolve:o}=r,s=TG(r,["awaitResolve"]);return(o?oa:$o)(this._query(e,s))}complete(){Ar(this,Vh,"f").unsubscribe()}_query(e,t){var r;const o=Ar(this,g0,"f").call(this,e),s=(r=Ar(this,m0,"f")[o])!==null&&r!==void 0?r:this._createTask(o,e,t);return t!=null&&t.signal&&t.signal.addEventListener("abort",()=>{Ar(this,Tu,"f").cancelTaskByRef(o,"abort signal triggered by caller")}),s}_createTask(e,t,r){const o=new Co,s=new yn(u=>{var f;Ar(this,m0,"f")[e]=s,o.subscribe(u);const p=Ar(this,Xd,"f").getItem(e);p&&o.next(Object.assign(Object.assign({},p),{status:"cache"}));const v=((f=r==null?void 0:r.cache)===null||f===void 0?void 0:f.validate)||Ar(this,gC,"f");p&&v(p,t)?o.complete():Ar(this,lm,"f").next({args:t,options:{ref:e,task:o,retry:r==null?void 0:r.retry}})}).pipe(Xy(()=>{delete Ar(this,m0,"f")[e]}),d1());return s}};Vh=new WeakMap,Tu=new WeakMap,Xd=new WeakMap,lm=new WeakMap,m0=new WeakMap,g0=new WeakMap,gC=new WeakMap,tx=new WeakMap,yC.extractQueryValue=Fq;var Jd=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},_2=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!o:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(n,t):o?o.value=t:e.set(n,t),t},y0,qc;class AG extends yn{get currentContext(){return Jd(this,qc,"f").value}get currentContext$(){return Jd(this,qc,"f").asObservable()}get client(){return Jd(this,y0,"f")}constructor(e){super(t=>Jd(this,qc,"f").subscribe(t)),y0.set(this,void 0),qc.set(this,void 0),_2(this,y0,new yC(e),"f"),_2(this,qc,new Yy(void 0),"f")}setCurrentContext(e){typeof e=="string"?this.resolveContext(e).pipe(Mr(()=>$i)).subscribe(t=>this.setCurrentContext(t)):Pq(e,Jd(this,qc,"f").value)||Jd(this,qc,"f").next(e)}resolveContext(e){return Jd(this,y0,"f").query({id:e}).pipe(pn(t=>t.value),Mr(t=>{throw t.cause?t.cause:t}))}resolveContextAsync(e,t){return(t!=null&&t.awaitResolve?oa:$o)(this.resolveContext(e))}dispose(){Jd(this,qc,"f").complete()}}y0=new WeakMap,qc=new WeakMap;var _0=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})},Yn=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},Kh=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!o:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(n,t):o?o.value=t:e.set(n,t),t},Gc,_C,E0,Ol,Wh,Yh,b0,EC,bC;class kG{get contextClient(){return Yn(this,Gc,"f")}get queryClient(){return Yn(this,_C,"f")}get currentContext$(){return Yn(this,Gc,"f").currentContext$}get currentContext(){return Yn(this,Gc,"f").currentContext}set currentContext(e){if(console.warn("@deprecated","ContextProvider.currentContext","use setCurrentContextById|setCurrentContext|clearCurrentContext"),e===void 0)throw Error("not allowed to set current context as undefined undefined!");this.setCurrentContextAsync(e)}constructor(e){var t,r,o;Gc.set(this,void 0),_C.set(this,void 0),E0.set(this,void 0),Ol.set(this,void 0),Wh.set(this,new Ho),Yh.set(this,void 0),b0.set(this,void 0),EC.set(this,void 0),bC.set(this,new Co);const{config:s,event:u}=e;e.parentContext&&console.warn("@deprecated","parentContext as arg is deprecated, use ContextProvider.connectParentContext"),Kh(this,Ol,u,"f"),s.resolveContext&&(this.resolveContext=(t=s.resolveContext)===null||t===void 0?void 0:t.bind(this)),s.validateContext&&(this.validateContext=(r=s.validateContext)===null||r===void 0?void 0:r.bind(this)),Kh(this,Yh,s.contextType,"f"),Kh(this,b0,s.contextFilter,"f"),Kh(this,Gc,new AG(s.client.get),"f"),Kh(this,_C,new yC(s.client.query),"f"),s.client.related&&Kh(this,E0,new yC(s.client.related),"f"),Kh(this,EC,(o=s.contextParameterFn)!==null&&o!==void 0?o:f=>({search:f.search,filter:{type:f.type}}),"f"),Yn(this,Ol,"f")&&(Yn(this,Wh,"f").add(this.currentContext$.pipe(l1()).subscribe(([f,p])=>{var v;(v=Yn(this,Ol,"f"))===null||v===void 0||v.dispatchEvent("onCurrentContextChanged",{source:this,canBubble:!0,detail:{previous:f,next:p}})})),Yn(this,Wh,"f").add(Yn(this,Ol,"f").addEventListener("onCurrentContextChanged",f=>{f.source!==this&&f.detail.next!==void 0&&this.setCurrentContext(f.detail.next)}))),Yn(this,Wh,"f").add(Yn(this,bC,"f").pipe(ii(f=>f),Bv(f=>console.debug("ContextProvider::#contextQueue",f))).subscribe(f=>Yn(this,Gc,"f").setCurrentContext(f??null)))}connectParentContext(e,t){const o=e.currentContext$.pipe(ln(s=>s!==void 0),ln((s,u)=>{var f;return t!=null&&t.skipFirst&&u<=1?(console.debug("ContextProvider::connectParentContext","skipping first item",s),!1):((f=this.currentContext)===null||f===void 0?void 0:f.id)!==(s==null?void 0:s.id)}),ii(s=>_0(this,void 0,void 0,function*(){var u;if(s){const f=yield(u=Yn(this,Ol,"f"))===null||u===void 0?void 0:u.dispatchEvent("onParentContextChanged",{source:this,detail:s,cancelable:!0});return{next:s,canceled:f==null?void 0:f.canceled}}return{next:s}})),ln(s=>!s.canceled),ii(({next:s})=>this.setCurrentContext(s,{validate:!0,resolve:!0}).pipe(Mr(u=>(console.warn("ContextProvider::onParentContextChanged","setCurrentContext",u),$i)))),Mr(s=>(console.warn("ContextProvider::onParentContextChanged","unhandled exception",s),$i))).subscribe();return Yn(this,Wh,"f").add(o),o}setCurrentContextById(e){return new yn(t=>{try{Yn(this,Gc,"f").resolveContext(e).pipe(ln(r=>!!r),ii(r=>this.setCurrentContext(r))).subscribe(t)}catch(r){t.error(r)}})}setCurrentContextByIdAsync(e){return oa(this.setCurrentContextById(e))}setCurrentContext(e,t){const r=new Co,o=new Co,s=this._setCurrentContext(e,t).pipe(Bv(u=>o.next(u)),sP(r),Xy(()=>o.complete()),Mr(u=>(o.error(u),$i)));return Yn(this,bC,"f").next(s),o.pipe(Xy(()=>r.next(!0)))}_setCurrentContext(e,t){return new yn(r=>{var o;if(e===this.currentContext)return r.next(e),r.complete();if(e&&(t!=null&&t.validate)&&!this.validateContext(e)){if(!t.resolve)return(o=Yn(this,Ol,"f"))===null||o===void 0||o.dispatchEvent("onSetContextValidationFailed",{source:this,detail:{context:e}}),r.error(Error("failed to validate provided context"));if(t.resolve)return Ss(e).pipe(ii(s=>_0(this,void 0,void 0,function*(){var u;const f=yield(u=Yn(this,Ol,"f"))===null||u===void 0?void 0:u.dispatchEvent("onSetContextResolve",{source:this,cancelable:!0,detail:{context:s}});if(f!=null&&f.canceled)throw Error("resolving of context was canceled");return s})),ii(s=>this.resolveContext(s).pipe(pn(u=>({context:s,resolved:u})))),ii(({context:s,resolved:u})=>_0(this,void 0,void 0,function*(){var f;const p=yield(f=Yn(this,Ol,"f"))===null||f===void 0?void 0:f.dispatchEvent("onSetContextResolved",{source:this,cancelable:!0,detail:{context:s,resolved:u}});if(p!=null&&p.canceled)throw Error("resolving of context was canceled");return u})),ii(s=>this._setCurrentContext(s))).subscribe(r)}return Ss(e).pipe(ii(s=>_0(this,void 0,void 0,function*(){var u;const f=yield(u=Yn(this,Ol,"f"))===null||u===void 0?void 0:u.dispatchEvent("onCurrentContextChange",{source:this,canBubble:!0,cancelable:!0,detail:{context:s}});if(f!=null&&f.canceled)throw Error("change of context was aborted");return s}))).subscribe(s=>{r.next(s),r.complete()})})}setCurrentContextAsync(e,t){return _0(this,void 0,void 0,function*(){return oa(this.setCurrentContext(e,t))})}queryContext(e){const t=this.queryClient.query(Yn(this,EC,"f").call(this,{search:e,type:Yn(this,Yh,"f")})).pipe(pn(r=>r.value));return Yn(this,b0,"f")?t.pipe(pn(Yn(this,b0,"f"))):t}queryContextAsync(e){return oa(this.queryContext(e))}validateContext(e){return Yn(this,Yh,"f")?Yn(this,Yh,"f").map(t=>t.toLowerCase()).includes(e.type.id.toLowerCase()):!0}resolveContext(e){return this.relatedContexts({item:e,filter:{type:Yn(this,Yh,"f")}}).pipe(pn(t=>t.filter(r=>this.validateContext(r))),pn(t=>{const r=t.shift();if(!r)throw Error("failed to resolve context");return t.length&&console.warn("ContextProvider::relatedContext","multiple items found 🤣",t),r}))}resolveContextAsync(e){return oa(this.resolveContext(e))}relatedContexts(e){return Yn(this,E0,"f")?Yn(this,E0,"f").query(e).pipe(pn(({value:t})=>t),Mr(t=>{throw t.cause?t.cause:t})):ZM(()=>Error("ContextProvider::relatedContexts - no client defined for resolving related context"))}relatedContextsAsync(e){return oa(this.relatedContexts(e))}clearCurrentContext(){this.setCurrentContext(null)}dispose(){Yn(this,Wh,"f").unsubscribe(),Yn(this,Gc,"f").dispose()}}Gc=new WeakMap,_C=new WeakMap,E0=new WeakMap,Ol=new WeakMap,Wh=new WeakMap,Yh=new WeakMap,b0=new WeakMap,EC=new WeakMap,bC=new WeakMap;var IG=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})};const E2={name:"context",configure:()=>new Nq,initialize:function(n){var e;return IG(this,void 0,void 0,function*(){const t=yield n.config.createConfig(n),r=n.hasModule("event")?yield n.requireInstance("event"):void 0,o=(e=n.ref)===null||e===void 0?void 0:e.context,s=new kG({config:t,event:r,parentContext:o}),u=new Ho(()=>s.dispose());return this.postInitialize=f=>new yn(p=>{const v=t.resolveInitialContext?qr(t.resolveInitialContext(f)).pipe(ln(g=>!!g),ii(g=>f.modules.context.setCurrentContext(g,{validate:!0,resolve:!0}))):$i;p.add(v.pipe(Mr(g=>(console.warn("ContextModule.postInitialize","failed to resolve initial context",g),$i))).subscribe({next:g=>{console.debug("ContextModule.postInitialize",`initial context was resolved to [${g?g.id:"none"}]`,g)},complete:()=>{t.connectParentContext!==!1&&o&&s.connectParentContext(o),p.complete()}}))}),this.dispose=()=>u.unsubscribe(),s})}},OG=(n,e)=>{n.addConfig({module:E2,configure:t=>{e&&t.addConfigBuilder(e)}})};var b2=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})};class NG{constructor(e){this.clientKey=e.clientKey,this.endpoint=e.endpoint,this.clientCtor=e.clientCtor}createHttpClientClient(e){return b2(this,void 0,void 0,function*(){if(!this.clientKey)throw Error("no http client for service discovery is provided!");return e.createClient(this.clientKey)})}createClient(e){return b2(this,void 0,void 0,function*(){if(!this.endpoint)throw Error("no endpoint defined!");return new this.clientCtor({http:e,endpoint:this.endpoint})})}}var nx=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})};class MG{constructor(e,t){this._client=e,this._http=t}get environment(){return this._client.environment}resolveServices(){return this._client.fetchEnvironment()}resolveService(e){return nx(this,void 0,void 0,function*(){return this._client.resolveService(e)})}createClient(e,t){return nx(this,void 0,void 0,function*(){const r=yield this.resolveService(e);if(!r)throw Error(`Could not load configuration of service [${e}]`);return this._http.createClient(Object.assign(Object.assign({},t),{baseUri:r.uri,defaultScopes:r.defaultScopes}))})}configureClient(e,t){return nx(this,void 0,void 0,function*(){const{key:r,alias:o}=typeof e=="string"?{key:e,alias:e}:e,{uri:s,defaultScopes:u}=yield this.resolveService(r);t.addConfig(mP(o,{baseUri:s,defaultScopes:u}))})}}var C2;(function(n){n.IDLE="idle",n.ACTIVE="active",n.FAILED="failed",n.CANCELED="canceled"})(C2||(C2={}));const PG=n=>e=>e.pipe(a1(n)),DG=n=>e=>e.pipe(Ya(n)),LG=n=>e=>e.pipe(ii(n)),UG=n=>n.pipe(pn(e=>e.value));let rx=class extends Error{constructor(e,t){super(t.message,{cause:t.cause}),this.type=e,this.name="QueryClientError",this.request=t.request}};const To=(()=>({request:Sn("client/request",(e,t)=>{var r,o,s;return t??(t={}),(r=t.transaction)!==null&&r!==void 0||(t.transaction=tm()),(o=t.created)!==null&&o!==void 0||(t.created=Date.now()),(s=t.task)!==null&&s!==void 0||(t.task=new Mb),{payload:e,meta:t}}),retry:Sn("client/retry",e=>({payload:e})),success:Sn("client/success",(e,t)=>({payload:e,meta:t})),cancel:Sn("client/cancel",e=>({payload:e})),failure:Sn("client/failure",(e,t)=>({payload:e,meta:t})),error:Sn("client/error",(e,t)=>({payload:e,meta:t}))}))(),w2=n=>e=>e.pipe(ln(To.request.match),Ya(t=>{const{meta:r}=t,{transaction:o}=r,s=new AbortController,{signal:u}=s;return new yn(f=>{f.add(e.pipe(ln(To.cancel.match)).subscribe(p=>{p.payload.transaction===o&&(u.aborted||s.abort(),f.complete())})),f.add(qr(n(t,u)).subscribe({next:p=>f.next(p),error:p=>f.next(To.error(p,{request:t})),complete:()=>f.complete()}))})})),FG=n=>(n=Object.assign({},{count:0,delay:0},n),(e,t)=>e.pipe(w2(r=>e.pipe(ln(To.failure.match),ln(o=>o.meta.request===r),jv(t),ii(([o,s])=>{var u,f;const{transaction:p}=r.meta,v=s[p];if(!v)return $i;const g=(f=(u=v.retry)===null||u===void 0?void 0:u.length)!==null&&f!==void 0?f:0,E=Object.assign({},n,r.meta.retry);if(g>=E.count)throw E.count?Error("maximum retries executed!",{cause:o.payload}):o.payload;return(typeof E.delay=="function"?qr(E.delay(o.payload.cause)).pipe(Mr(S=>{throw Error("failed to resolve delay",{cause:S})})):o1(E.delay)).pipe(pn(()=>To.retry(r)))}))))),HG=n=>e=>e.pipe(w2((t,r)=>qr(n(t.payload,r)).pipe(pn(o=>To.success(o,{request:t})),Mr(o=>Ss(To.failure(Error(`failed to execute request for transaction ${t.meta.transaction}`,{cause:o}),{request:t})))))),$G=n=>n.pipe(ln(To.retry.match),pn(e=>e.payload)),S2=()=>ln(n=>n.status==="complete"),BG=(n={})=>qh(n,e=>e.addCase(To.request,(t,r)=>{const{transaction:o,task:s,ref:u,created:f}=r.meta;t[o]={transaction:o,task:s,ref:u,created:f}}).addCase(To.success,(t,r)=>{const{request:o}=r.meta,{transaction:s,ref:u}=o.meta,f=t[s];if(f){const p={status:"complete",transaction:s,ref:u,value:r.payload,args:o.payload,created:f.created,completed:Date.now()};f.task.next(p),f.task.complete()}delete t[s]}).addCase(To.retry,(t,r)=>{var o;const{transaction:s}=r.payload.meta,u=t[s];u&&((o=u.retry)!==null&&o!==void 0||(u.retry=[]),u.retry.push(Date.now()))}).addCase(To.cancel,(t,r)=>{const{transaction:o,reason:s}=r.payload;if(t[o]){const u=Object.assign({},nm(t[o]));u.task.error(new rx("abort",{request:u,message:s??"request was canceled"})),delete t[o]}}).addCase(To.failure,(t,r)=>{var o;const{payload:s,meta:u}=r,{transaction:f}=u.request.meta,p=t[f];p&&((o=p.errors)!==null&&o!==void 0||(p.errors=[]),p.errors.push(s))}).addCase(To.error,(t,r)=>{const{payload:o,meta:s}=r,{transaction:u}=s.request.meta;if(t[u]){const f=Object.assign({},nm(t[u]));f.task.error(new rx("error",{request:f,message:`failed to process task [${u}]`,cause:o.cause})),delete t[u]}}));var jG=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})},vi=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},T2=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!o:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(n,t):o?o.value=t:e.set(n,t),t},Ti,Qh;let R2=class extends yn{get closed(){return vi(this,Ti,"f").closed}get state$(){return vi(this,Ti,"f")}get action$(){return vi(this,Ti,"f").action$}get success$(){return this.action$.pipe(ln(To.success.match),pn(({payload:e})=>e))}get error$(){return this.action$.pipe(pC("client/error"),jv(vi(this,Ti,"f")),pn(([e,t])=>{const{payload:r,meta:o}=e,{transaction:s}=o.request.meta,u=t[e.meta.request.meta.transaction];return new rx("error",{request:u,message:`failed to process task [${s}]`,cause:r})}))}constructor(e,t){super(s=>vi(this,Ti,"f").subscribe(s)),Ti.set(this,void 0),Qh.set(this,void 0);const r={};T2(this,Ti,new zh(BG(r)),"f"),T2(this,Qh,new Ho(()=>vi(this,Ti,"f").complete()),"f"),vi(this,Qh,"f").add(vi(this,Ti,"f").addFlow(HG(e))),vi(this,Qh,"f").add(vi(this,Ti,"f").addFlow($G));const o=Object.assign({count:0,delay:0},t==null?void 0:t.retry);vi(this,Qh,"f").add(vi(this,Ti,"f").addFlow(FG(o)))}next(e,t){const{ref:r,retry:o,task:s}=t??{},u=To.request(e,{ref:r,retry:o,task:s});return vi(this,Ti,"f").next(u),u.meta}nextAsync(e,t){return jG(this,void 0,void 0,function*(){return $o(this.next(e,t).task.pipe(S2()))})}getTaskByTransaction(e){const t=vi(this,Ti,"f").value[e];return t==null?void 0:t.task}getTaskByRef(e){const t=Object.values(vi(this,Ti,"f").value).find(r=>r.ref===e);return t==null?void 0:t.task}cancelTaskByRef(e,t){const r=Object.values(vi(this,Ti,"f").value).find(o=>o.ref===e);r!=null&&r.ref&&this.cancel(r.transaction,t)}cancel(e,t){if(e)vi(this,Ti,"f").value[e]&&(t??(t=`[${e}]: transaction canceled`),vi(this,Ti,"f").next(To.cancel({transaction:e,reason:t})));else for(const r of Object.keys(vi(this,Ti,"f").value))this.cancel(r,"all transactions canceled")}on(e,t){return vi(this,Ti,"f").addEffect(To[e].type,r=>{t(r,this)})}complete(){vi(this,Qh,"f").unsubscribe()}asObservable(){return vi(this,Ti,"f").asObservable()}};Ti=new WeakMap,Qh=new WeakMap;function zG(){return{set:Sn("cache/set",(n,e)=>({payload:{key:n,entry:e}})),remove:Sn("cache/remove",n=>({payload:n})),invalidate:Sn("cache/invalidate",n=>({payload:n})),trim:Sn("cache/trim",n=>({payload:n}))}}const um=zG(),qG=(n,e)=>{var t,r;return((t=e.updated)!==null&&t!==void 0?t:0)-((r=n.updated)!==null&&r!==void 0?r:0)};function GG(n,e={}){return qh(e,t=>t.addCase(n.set,(r,o)=>{var s;const{key:u,entry:f}=o.payload,p=r[u];if(p)p.updated=Date.now(),(s=p.updates)!==null&&s!==void 0||(p.updates=0),p.updates++;else{const v=Date.now();r[u]=Object.assign(Object.assign({},f),{created:v,updated:v})}}).addCase(n.remove,(r,o)=>{delete r[o.payload]}).addCase(n.invalidate,(r,o)=>{const s=r[o.payload];s&&delete s.updated}).addCase(n.trim,(r,o)=>{var s,u;const{payload:f}=o,p=(s=f.sort)!==null&&s!==void 0?s:qG,v=Object.keys(r),g=Object.entries(r).filter(([E,w])=>!f.validate||f.validate(w)).sort((E,w)=>p(E[1],w[1])).slice(0,(u=f.size)!==null&&u!==void 0?u:Number.MAX_SAFE_INTEGER).map(([E])=>E);if(v.length!==g.length)for(const E of v){const w=g.indexOf(E);w!==-1?g.splice(w,1):delete r[E]}}))}var Nl=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},VG=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!o:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(n,t):o?o.value=t:e.set(n,t),t},ts;let x2=class{get state(){return Nl(this,ts,"f").value}get state$(){return Nl(this,ts,"f").asObservable()}constructor(e){ts.set(this,void 0);const{trimming:t,initial:r}=e??{};VG(this,ts,new zh(GG(um,r)),"f"),t&&Nl(this,ts,"f").addEffect("cache/set",()=>Nl(this,ts,"f").next(um.trim(t)))}setItem(...e){Nl(this,ts,"f").next(um.set(...e))}getItem(e){return Nl(this,ts,"f").value[e]}removeItem(e){Nl(this,ts,"f").next(um.remove(e))}invalidate(e){Nl(this,ts,"f").next(um.invalidate(e))}trim(e){Nl(this,ts,"f").next(um.trim(e))}reset(){Nl(this,ts,"f").reset()}complete(){Nl(this,ts,"f").complete()}};ts=new WeakMap;var kr=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},cm=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!o:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(n,t):o?o.value=t:e.set(n,t),t},KG=globalThis&&globalThis.__rest||function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(n,r[o])&&(t[r[o]]=n[r[o]]);return t},Xh,Ru,Zd,dm,C0,w0,CC,ix;const WG=(n=0)=>e=>{var t;return((t=e.updated)!==null&&t!==void 0?t:0)+n>Date.now()},YG=n=>{if(typeof n=="function")return n;switch(n){case"concat":return PG;case"merge":return DG;case"switch":default:return LG}};let ox=class{get client(){return kr(this,Ru,"f")}get cache(){return kr(this,Zd,"f")}constructor(e){var t;Xh.set(this,new Ho),Ru.set(this,void 0),Zd.set(this,void 0),dm.set(this,new Co),C0.set(this,{}),w0.set(this,void 0),CC.set(this,void 0),ix.set(this,tm()),cm(this,w0,o=>U1(e.key(o),kr(this,ix,"f")),"f"),cm(this,CC,(t=e==null?void 0:e.validate)!==null&&t!==void 0?t:WG(e==null?void 0:e.expire),"f"),e.client instanceof R2?cm(this,Ru,e.client,"f"):(cm(this,Ru,new R2(e.client.fn,e.client.options),"f"),kr(this,Xh,"f").add(()=>kr(this,Ru,"f").complete())),e.cache instanceof x2?cm(this,Zd,e.cache,"f"):(cm(this,Zd,new x2(e.cache||{}),"f"),kr(this,Xh,"f").add(()=>kr(this,Zd,"f").complete()));const r=YG(e.queueOperator);kr(this,Xh,"f").add(()=>kr(this,dm,"f").complete()),kr(this,Xh,"f").add(kr(this,dm,"f").pipe(r(o=>{const{args:s,options:u}=o;return new yn(f=>{const{task:p,transaction:v}=kr(this,Ru,"f").next(s,u);f.add(p.pipe(Mr(()=>$i)).subscribe(f)),f.add(()=>{setTimeout(()=>kr(this,Ru,"f").cancel(v))})})}),S2(),Ub(()=>!kr(this,Ru,"f").closed)).subscribe(o=>{const{args:s,value:u,transaction:f,ref:p}=o,v=p??kr(this,w0,"f").call(this,s);kr(this,Zd,"f").setItem(v,{value:u,args:s,transaction:f})}))}next(e,t){kr(this,dm,"f").next({args:e,options:t})}query(e,t){return this._query(e,t)}queryAsync(e,t){const r=t||{},{awaitResolve:o}=r,s=KG(r,["awaitResolve"]);return(o?oa:$o)(this._query(e,s))}complete(){kr(this,Xh,"f").unsubscribe()}_query(e,t){var r;const o=kr(this,w0,"f").call(this,e),s=(r=kr(this,C0,"f")[o])!==null&&r!==void 0?r:this._createTask(o,e,t);return t!=null&&t.signal&&t.signal.addEventListener("abort",()=>{kr(this,Ru,"f").cancelTaskByRef(o,"abort signal triggered by caller")}),s}_createTask(e,t,r){const o=new Co,s=new yn(u=>{var f;kr(this,C0,"f")[e]=s,o.subscribe(u);const p=kr(this,Zd,"f").getItem(e);p&&o.next(Object.assign(Object.assign({},p),{status:"cache"}));const v=((f=r==null?void 0:r.cache)===null||f===void 0?void 0:f.validate)||kr(this,CC,"f");p&&v(p,t)?o.complete():kr(this,dm,"f").next({args:t,options:{ref:e,task:o,retry:r==null?void 0:r.retry}})}).pipe(Xy(()=>{delete kr(this,C0,"f")[e]}),d1());return s}};Xh=new WeakMap,Ru=new WeakMap,Zd=new WeakMap,dm=new WeakMap,C0=new WeakMap,w0=new WeakMap,CC=new WeakMap,ix=new WeakMap,ox.extractQueryValue=UG;var ax=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})},A2=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},QG=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!o:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(n,t):o?o.value=t:e.set(n,t),t},S0;const k2="services";class XG{get environment(){var e;const t=(e=A2(this,S0,"f").cache.getItem(k2))===null||e===void 0?void 0:e.value;if(!t)throw Error("no cached environment found");return t}constructor({http:e,endpoint:t}){S0.set(this,void 0),this.http=e,this.endpoint=t,QG(this,S0,new ox({client:{fn:()=>e.fetch$(t,{selector:this.selector.bind(this)})},key:()=>k2,expire:5*60*1e3}),"f")}fetchEnvironment(){return ax(this,void 0,void 0,function*(){return $o(ox.extractQueryValue(A2(this,S0,"f").query(void 0,{cache:{suppressInvalid:!0}})))})}selector(e){return ax(this,void 0,void 0,function*(){const t=yield e.json(),r=t.services.reduce((o,s)=>{var u;return Object.assign(o,{[s.key]:{clientId:t.clientId,uri:s.uri,defaultScopes:(u=s.defaultScopes)!==null&&u!==void 0?u:[t.clientId+"/.default"]}})},{});return Object.assign(Object.assign({},t),{services:r})})}resolveService(e){return ax(this,void 0,void 0,function*(){try{const{services:t}=yield this.fetchEnvironment();return t[e]}catch(t){throw console.error(t),t}})}}S0=new WeakMap;const JG="serviceDiscovery";var ZG=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})};const eV={name:JG,configure:()=>new NG({clientCtor:XG,clientKey:"service_discovery",endpoint:"/_discovery/environments/current"}),initialize:({config:n,requireInstance:e})=>ZG(void 0,void 0,void 0,function*(){const t=yield e("http"),r=yield n.createHttpClientClient(t),o=yield n.createClient(r);return new MG(o,t)})};class tV{}var Ws;(function(n){n.v1="1.0",n.v2="2.0"})(Ws||(Ws={}));class As extends Error{constructor(e,t){super(`unsupported version ${e}`,{cause:t}),this.version=e}}const nV=(n,e)=>{var t;const r=(t=Ws[n])!==null&&t!==void 0?t:n;switch(r){case Ws.v2:throw new As(n);case Ws.v1:default:{const{id:o}=e,s=new URLSearchParams;return s.append("api-version",r),`/contexts/${o}/?${String(s)}`}}},rV=(n,e,t)=>[nV(n,e),t],iV=(n,e,t="json")=>(r,o)=>n[t](...rV(e,r,o));var oV=["eq","ne","gt","ge","lt","le"],wC=["and","or","not"],aV=["any","all"],sV=["startswith","endswith","contains"],lV=["expand","levels","select","skip","top","count","orderby","filter"],I2=/\((.*)\)/,O2=/(?!indexof)\((\w+)\)/,N2;(function(n){n.sum="sum",n.min="min",n.max="max",n.average="average",n.countdistinct="countdistinct"})(N2||(N2={}));var Vc="";function M2(n){var e=n===void 0?{}:n,t=e.select,r=e.search,o=e.skiptoken,s=e.format,u=e.top,f=e.skip,p=e.filter,v=e.transform,g=e.orderBy,E=e.key,w=e.count,S=e.expand,A=e.action,k=e.func,M="",P=[],L={};if(E!=null&&(M+="(".concat(xu(E,P),")")),(p||typeof w=="object")&&(L.$filter=T0(typeof w=="object"?w:p,P)),v&&(L.$apply=P2(v)),S&&(L.$expand=SC(S)),g&&(L.$orderby=lx(g)),w&&(typeof w=="boolean"?L.$count=!0:M+="/$count"),typeof u=="number"&&(L.$top=u),typeof f=="number"&&(L.$skip=f),A&&(M+="/".concat(A)),k){if(typeof k=="string")M+="/".concat(k);else if(typeof k=="object"){var j=Object.keys(k)[0],U=xu(k[j],P);M+="/".concat(j),U!==""&&(M+="(".concat(U,")"))}}return P.length>0&&Object.assign(L,P.reduce(function(H,W){var Q;return Object.assign(H,(Q={},Q["@".concat(W.name)]=xu(W.value),Q))},{})),hV(M,Ye({$select:t,$search:r,$skiptoken:o,$format:s},L))}function sx(n,e,t){return t===void 0&&(t=[]),"".concat(n," eq ").concat(xu(e,t))}function T0(n,e,t){return n===void 0&&(n={}),e===void 0&&(e=[]),t===void 0&&(t=""),(Array.isArray(n)?n:[n]).reduce(function(s,u){if(u){var f=r(u,e,t);f&&s.push(f)}return s},[]).join(" and ");function r(s,u,f){s===void 0&&(s={}),u===void 0&&(u=[]),f===void 0&&(f="");var p="";if(typeof s=="string")p=s;else if(s&&typeof s=="object"){var v=Object.keys(s).reduce(function(g,E){var w=s[E];if(w===void 0)return g;var S="";if(f?E===Vc?S=f:O2.test(E)?S=E.replace(O2,function(L,j){return j.trim()===Vc?"(".concat(f,")"):"(".concat(f,"/").concat(j.trim(),")")}):I2.test(E)?S=E.replace(I2,function(L,j){return j.trim()===Vc?"(".concat(f,")"):"(".concat(f,"/").concat(j.trim(),")")}):S="".concat(f,"/").concat(E):S=E,E===Vc&&Array.isArray(w))return g.concat(w.map(function(L){return sx(S,L)}));if(["number","string","boolean"].indexOf(typeof w)!==-1||w instanceof Date||w===null)g.push(sx(S,w,u));else if(Array.isArray(w)){var A=E,k=w.map(function(L){return T0(L,u,f)}).filter(function(L){return L}).map(function(L){return wC.indexOf(A)!==-1?"(".concat(L,")"):L});k.length&&(wC.indexOf(A)!==-1?k.length&&(A==="not"?g.push(D2(k)):g.push("(".concat(k.join(" ".concat(A," ")),")"))):g.push(k.join(" ".concat(A," "))))}else if(wC.indexOf(S)!==-1){var M=S,k=Object.keys(w).map(function(j){var U;return r((U={},U[j]=w[j],U))});k.length&&(M==="not"?g.push(D2(k)):g.push("(".concat(k.join(" ".concat(M," ")),")")))}else if(typeof w=="object")if("type"in w)g.push(sx(S,w,u));else{var P=Object.keys(w);P.forEach(function(L){if(w[L]!==void 0)if(oV.indexOf(L)!==-1)g.push("".concat(S," ").concat(L," ").concat(xu(w[L],u)));else if(wC.indexOf(L)!==-1)Array.isArray(w[L])?g.push(w[L].map(function(W){return"("+r(W,u,S)+")"}).join(" ".concat(L," "))):g.push("("+r(w[L],u,S)+")");else if(aV.indexOf(L)!==-1){var j=o(E.toLowerCase(),w[L],L,S);j&&g.push(j)}else if(L==="has")g.push("".concat(S," ").concat(L," ").concat(xu(w[L],u)));else if(L==="in"){var U=Array.isArray(w[L])?w[L]:w[L].value.map(function(W){return{type:w[L].type,value:W}});g.push(S+" in ("+U.map(function(W){return xu(W,u)}).join(",")+")")}else if(sV.indexOf(L)!==-1)g.push("".concat(L,"(").concat(S,",").concat(xu(w[L],u),")"));else{var H=r(w,u,S);H&&g.push(H)}})}else throw new Error("Unexpected value type: ".concat(w));return g},[]);p=v.join(" and ")}return p}function o(s,u,f,p){var v="";if(typeof u=="string"||u instanceof String)v=uV(s,u,f,p);else if(u){var g=Array.isArray(u)?u.reduce(function(w,S){return S.hasOwnProperty(Vc)?(w.hasOwnProperty(Vc)||(w[Vc]=[]),w[Vc].push(S[Vc]),w):Ye(Ye({},w),S)},{}):u,E=r(g,e,s);v="".concat(p,"/").concat(f,"(").concat(E?"".concat(s,":").concat(E):"",")")}return v}}function uV(n,e,t,r){var o="",s=t=="all"?"ne":"eq";return o="".concat(r,"/").concat(t,"(").concat(n,": ").concat(n," ").concat(s," '").concat(e,"')"),o}function cV(n){return n=n.replace(/%/g,"%25"),n=n.replace(/\+/g,"%2B"),n=n.replace(/\//g,"%2F"),n=n.replace(/\?/g,"%3F"),n=n.replace(/#/g,"%23"),n=n.replace(/&/g,"%26"),n=n.replace(/'/g,"''"),n}function xu(n,e){if(typeof n=="string")return"'".concat(cV(n),"'");if(n instanceof Date)return n.toISOString();if(typeof n=="number")return n;if(Array.isArray(n))return"[".concat(n.map(function(t){return xu(t)}).join(","),"]");if(n===null)return n;if(typeof n=="object")switch(n.type){case"raw":case"guid":return n.value;case"duration":return"duration'".concat(n.value,"'");case"binary":return"binary'".concat(n.value,"'");case"alias":return Array.isArray(e)&&e.push(n),"@".concat(n.name);case"json":return escape(JSON.stringify(n.value));case"decimal":return"".concat(n.value,"M");default:return Object.entries(n).filter(function(t){var r=t[1];return r!==void 0}).map(function(t){var r=t[0],o=t[1];return"".concat(r,"=").concat(xu(o,e))}).join(",")}return n}function SC(n){if(typeof n=="number")return n;if(typeof n=="string")return n.indexOf("/")===-1?n:n.split("/").reverse().reduce(function(t,r,o,s){return o===0?"$expand=".concat(r):o===s.length-1?"".concat(r,"(").concat(t,")"):"$expand=".concat(r,"(").concat(t,")")},"");if(Array.isArray(n))return"".concat(n.map(function(t){return SC(t)}).join(","));if(typeof n=="object"){var e=Object.keys(n);return e.some(function(t){return lV.indexOf(t.toLowerCase())!==-1})?e.map(function(t){var r;switch(t){case"filter":r=T0(n[t]);break;case"orderBy":r=lx(n[t]);break;case"levels":case"count":case"skip":case"top":r="".concat(n[t]);break;default:r=SC(n[t])}return"$".concat(t.toLowerCase(),"=").concat(r)}).join(";"):e.map(function(t){var r=SC(n[t]);return r?"".concat(t,"(").concat(r,")"):t}).join(",")}return""}function P2(n){var e=Array.isArray(n)?n:[n],t=e.reduce(function(r,o){var s=o.aggregate,u=o.filter,f=o.groupBy,p=Fv(o,["aggregate","filter","groupBy"]),v=Object.keys(p);if(v.length)throw new Error("Unsupported transform(s): ".concat(v));if(s&&r.push("aggregate(".concat(dV(s),")")),u){var g=T0(u);g&&r.push("filter(".concat(T0(g),")"))}return f&&r.push("groupby(".concat(fV(f),")")),r},[]);return t.join("/")||void 0}function dV(n){var e=Array.isArray(n)?n:[n];return e.map(function(t){return typeof t=="string"?t:Object.keys(t).map(function(r){var o=t[r];if(!o.with&&o.as)return"".concat(r," as ").concat(o.as);if(!o.with)throw new Error("'with' property required for '".concat(r,"'"));if(!o.as)throw new Error("'as' property required for '".concat(r,"'"));return"".concat(r," with ").concat(o.with," as ").concat(o.as)})}).join(",")}function fV(n){if(!n.properties)throw new Error("'properties' property required for groupBy");var e="(".concat(n.properties.join(","),")");return n.transform&&(e+=",".concat(P2(n.transform))),e}function lx(n,e){return e===void 0&&(e=""),Array.isArray(n)?n.map(function(t){return Array.isArray(t)&&t.length===2&&["asc","desc"].indexOf(t[1])!==-1?t.join(" "):t}).map(function(t){return"".concat(e).concat(String(t))}).join(","):typeof n=="object"?Object.entries(n).map(function(t){var r=t[0],o=t[1];return lx(o,"".concat(r,"/"))}).map(function(t){return"".concat(e).concat(t)}).join(","):"".concat(e).concat(String(n))}function hV(n,e){var t=Object.getOwnPropertyNames(e).filter(function(r){return e[r]!==void 0&&e[r]!==""}).map(function(r){return"".concat(r,"=").concat(e[r])});return t.length?"".concat(n,"?").concat(t.join("&")):n}function D2(n){return"not(".concat(n.join(" and "),")")}const pV=n=>Object.keys(n).reduce((e,t)=>{var r;switch(t){case"type":return!((r=n[t])===null||r===void 0)&&r.length?Object.assign(Object.assign({},e),{[t]:{in:n[t]}}):e;default:return Object.assign(Object.assign({},e),{[t]:n[t]})}},{}),vV=n=>Object.entries(n).filter(([e,t])=>!!t).reduce((e,[t,r])=>{switch(t){case"filter":return Object.assign(Object.assign({},e),{[t]:pV(r)});default:return Object.assign(Object.assign({},e),{[t]:n[t]})}},{}),mV=n=>typeof n=="string"?n:M2(vV(n)),gV=(n,e)=>{var t;const r=(t=Ws[n])!==null&&t!==void 0?t:n;switch(r){case Ws.v2:throw new As(n);case Ws.v1:default:{const{query:o,includeDeleted:s}=e,u=new URLSearchParams(mV(o));return u.append("api-version",r),s&&u.append("includeDeleted","true"),`/contexts/?${String(u)}`}}},yV=(n,e,t)=>[gV(n,e),t],_V=(n,e,t="json")=>(r,o)=>n[t](...yV(e,r,o)),EV=n=>Object.keys(n).reduce((e,t)=>{var r;switch(t){case"type":return!((r=n[t])===null||r===void 0)&&r.length?Object.assign(Object.assign({},e),{[t]:{in:n[t]}}):e;default:return Object.assign(Object.assign({},e),{[t]:n[t]})}},{}),bV=n=>Object.entries(n).filter(([e,t])=>!!t).reduce((e,[t,r])=>{switch(t){case"filter":return Object.assign(Object.assign({},e),{[t]:EV(r)});default:return Object.assign(Object.assign({},e),{[t]:n[t]})}},{}),CV=n=>typeof n=="string"?n:M2(bV(n)),wV=(n,e)=>{var t;const r=(t=Ws[n])!==null&&t!==void 0?t:n;switch(r){case Ws.v2:throw new As(n);case Ws.v1:default:{const{id:o,query:s}=e,u=new URLSearchParams(CV(s||""));return u.append("api-version",r),`/contexts/${o}/relations?${String(u)}`}}},SV=(n,e,t)=>[wV(n,e),t],TV=(n,e,t="json")=>(r,o)=>n[t](...SV(e,r,o));class RV{get Version(){return Ws}constructor(e,t){this._client=e,this._method=t}get(e,...t){return iV(this._client,e,this._method)(...t)}query(e,...t){return _V(this._client,e,this._method)(...t)}related(e,...t){return TV(this._client,e,this._method)(...t)}}const xV=(n,e)=>{switch(n){case"v1":{const{id:t}=e,r=new URLSearchParams;return r.append("api-version","1.0"),`/bookmarks/${t}/?${String(r)}`}default:{const{id:t}=e,r=new URLSearchParams;return r.append("api-version",n),`/bookmarks/${t}/?${String(r)}`}}},AV=(n,e,t)=>{const r=xV(n,e),o=Object.assign({},{method:"Delete"},t);return[r,o]},kV=(n,e,t="fetch")=>(r,o)=>n[t](...AV(e,r,o)),IV=(n,e)=>{switch(n){case"v1":{const{id:t}=e,r=new URLSearchParams;return r.append("api-version","1.0"),`/bookmarks/${t}/?${String(r)}`}default:{const{id:t}=e,r=new URLSearchParams;return r.append("api-version",n),`/bookmarks/${t}/?${String(r)}`}}},OV=(n,e,t)=>[IV(n,e),t],NV=(n,e,t="json")=>(r,o)=>n[t](...OV(e,r,o)),MV=(n,e)=>{switch(n){case"v1":default:{const t=new URLSearchParams;return t.append("api-version",n),`/bookmarks?${String(t)}`}}},PV=(n,e,t)=>{const r=MV(n),o=new Headers;o.append("content-type","application/json");const s=Object.assign({},{method:"post",body:JSON.stringify(e),headers:o},t);return[r,s]},DV=(n,e,t="json")=>(r,o)=>n[t](...PV(e,r,o)),LV=(n,e)=>{switch(n){case"v1":default:{const t=new URLSearchParams;return t.append("api-version",n),`/bookmarks/${e.id}?${String(t)}`}}},UV=(n,e,t)=>{const r=LV(n,e),o=new Headers;o.append("content-type","application/json");const s=Object.assign({},{method:"patch",body:JSON.stringify(e),headers:o},t);return[r,s]},FV=(n,e,t="json")=>(r,o)=>n[t](...UV(e,r,o)),HV=n=>{switch(n){case"v1":default:{const e=new URLSearchParams;return e.append("api-version",n),`persons/me/bookmarks/?${String(e)}`}}},$V=(n,e)=>[HV(n),e],BV=(n,e,t="json")=>r=>n[t](...$V(e,r)),jV=(n,e)=>{switch(n){case"v1":default:{const t=new URLSearchParams;return t.append("api-version",n),`/persons/me/bookmarks/favourites?${String(t)}`}}},zV=(n,e,t)=>{const r=jV(n),o=new Headers;o.append("content-type","application/json");const s=Object.assign({},{method:"post",body:JSON.stringify(e),headers:o},t);return[r,s]},qV=(n,e,t="json")=>(r,o)=>n[t](...zV(e,r,o)),GV=(n,e)=>{switch(n){case"v1":default:{const{bookmarkId:t}=e,r=new URLSearchParams;return r.append("api-version","1.0"),`/persons/me/bookmarks/favourites/${t}/?${String(r)}`}}},VV=(n,e,t)=>{const r=GV(n,e),o=Object.assign({},{method:"Delete"},t);return[r,o]},KV=(n,e,t="fetch")=>(r,o)=>n[t](...VV(e,r,o)),WV=(n,e)=>{switch(n){case"v1":default:{const{bookmarkId:t}=e,r=new URLSearchParams;return r.append("api-version",n),`/persons/me/bookmarks/favourites/${t}?${String(r)}`}}},YV=(n,e,t)=>{const r=WV(n,e),o=new Headers;o.append("content-type","application/json");const s=Object.assign({},{method:"head",headers:o},t);return[r,s]},QV=(n,e,t="json")=>(r,o)=>n[t](...YV(e,r,o));class XV{constructor(e,t){this._client=e,this._method=t}get(e,...t){return NV(this._client,e,this._method)(...t)}getAll(e){return BV(this._client,e,this._method)()}post(e,...t){return DV(this._client,e,this._method)(...t)}patch(e,...t){return FV(this._client,e,this._method)(...t)}delete(e,...t){return kV(this._client,e,this._method)(...t)}addFavorite(e,...t){return qV(this._client,e,this._method)(...t)}removeFavorite(e,...t){return KV(this._client,e,this._method)(...t)}verifyFavorite(e,...t){return QV(this._client,e,this._method)(...t)}}const JV=XV,ZV=(n,e)=>{var t;const r=(t=Gr[n])!==null&&t!==void 0?t:n;switch(r){case Gr.v2:throw new As(n);case Gr.v1:default:{const{id:o}=e,s=new URLSearchParams;return s.append("api-version",r),`/notification/${o}/?${String(s)}`}}},e8=(n,e,t)=>[ZV(n,e),t],t8=(n,e,t="json")=>(r,o)=>n[t](...e8(e,r,o)),n8=(n,e)=>{var t;const r=(t=Gr[n])!==null&&t!==void 0?t:n;switch(r){case Gr.v2:throw new As(n);case Gr.v1:default:{const{userId:o}=e,s=new URLSearchParams;return s.append("api-version",r),`/person/${o}/notifications/?${String(s)}`}}},r8=(n,e,t)=>{const r=n8(n,e),o=new Headers;o.append("content-type","application/json");const s=Object.assign({},{method:"post",body:JSON.stringify(e),headers:o},t);return[r,s]},i8=(n,e,t="json")=>(r,o)=>n[t](...r8(e,r,o)),o8=(n,e)=>{var t;const r=(t=Gr[n])!==null&&t!==void 0?t:n;switch(r){case Gr.v2:throw new As(n);case Gr.v1:default:{const{id:o}=e,s=new URLSearchParams;return s.append("api-version",r),`/notification/${o}/?${String(s)}`}}},a8=(n,e,t)=>{const r=o8(n,e),o=new Headers;o.append("content-type","application/json");const s=Object.assign({},{method:"patch",body:JSON.stringify(e),headers:o},t);return[r,s]},s8=(n,e,t="json")=>(r,o)=>n[t](...a8(e,r,o)),l8=(n,e)=>{var t;const r=(t=Gr[n])!==null&&t!==void 0?t:n;switch(r){case Gr.v2:throw new As(n);case Gr.v1:default:{const{userId:o}=e,s=new URLSearchParams;return s.append("api-version",r),`/person/${o}/notifications/?${String(s)}`}}},u8=(n,e,t)=>[l8(n,e),t],c8=(n,e,t="json")=>(r,o)=>n[t](...u8(e,r,o)),d8=(n,e)=>{var t;const r=(t=Gr[n])!==null&&t!==void 0?t:n;switch(r){case Gr.v2:throw new As(n);case Gr.v1:default:{const{id:o}=e,s=new URLSearchParams;return s.append("api-version",r),`/notification/${o}/?${String(s)}`}}},f8=(n,e,t)=>{const r=d8(n,e),o=new Headers;o.append("content-type","application/json");const s=Object.assign({},{method:"delete",headers:o},t);return[r,s]},h8=(n,e,t="json")=>(r,o)=>n[t](...f8(e,r,o));var Gr;(function(n){n.v1="1.0",n.v2="2.0"})(Gr||(Gr={}));const p8=(n,e)=>{var t;const r=(t=Gr[n])!==null&&t!==void 0?t:n;switch(r){case Gr.v2:throw new As(n);case Gr.v1:default:{const{userId:o}=e,s=new URLSearchParams;return s.append("api-version",r),`/person/${o}/notifications/settings/?${String(s)}`}}},v8=(n,e,t)=>{const r=p8(n,e),o=new Headers;o.append("content-type","application/json");const s=Object.assign({},{method:"put",body:JSON.stringify(e),headers:o},t);return[r,s]},m8=(n,e,t="json")=>(r,o)=>n[t](...v8(e,r,o)),g8=(n,e)=>{var t;const r=(t=Gr[n])!==null&&t!==void 0?t:n;switch(r){case Gr.v2:throw new As(n);case Gr.v1:default:{const{userId:o}=e,s=new URLSearchParams;return s.append("api-version",r),`/person/${o}/notifications/settings/?${String(s)}`}}},y8=(n,e,t)=>[g8(n,e),t],_8=(n,e,t="json")=>(r,o)=>n[t](...y8(e,r,o));class E8{get Version(){return Gr}constructor(e,t){this._client=e,this._method=t}getAll(e,...t){return c8(this._client,e,this._method)(...t)}getById(e,...t){return t8(this._client,e,this._method)(...t)}setSeenByUser(e,...t){return s8(this._client,e,this._method)(...t)}create(e,...t){return i8(this._client,e,this._method)(...t)}delete(e,...t){return h8(this._client,e,this._method)(...t)}getSettings(e,...t){return _8(this._client,e,this._method)(...t)}updateSettings(e,...t){return m8(this._client,e,this._method)(...t)}}var Kc;(function(n){n.v2="2.0",n.v4="4.0"})(Kc||(Kc={}));const b8=(n,e)=>{var t;const r=(t=Kc[n])!==null&&t!==void 0?t:n;switch(r){case Kc.v4:{const{azureId:o,expand:s}=e,u=new URLSearchParams;return u.append("api-version",r),s&&u.append("$expand",s.join(",")),`/persons/${o}?${String(u)}`}default:throw new As(n)}},C8=(n,e,t)=>[b8(n,e),t],w8=(n,e,t="json")=>(r,o)=>n[t](...C8(e,r,o)),S8=(n,e)=>{var t;const r=(t=Kc[n])!==null&&t!==void 0?t:n;switch(r){case Kc.v2:{const{search:o}=e,s=new URLSearchParams;return s.append("api-version",r),s.append("$search",o),`/persons?${String(s)}`}default:throw new As(n)}},T8=(n,e,t)=>[S8(n,e),t],R8=(n,e,t="json")=>(r,o)=>n[t](...T8(e,r,o)),x8=(n,e)=>{var t;const r=(t=Kc[n])!==null&&t!==void 0?t:n;switch(r){case Kc.v2:{const{azureId:o}=e,s=new URLSearchParams;return s.append("api-version",r),`/persons/${o}/photo?${String(s)}`}default:throw new As(n)}},A8=(n,e,t)=>[x8(n,e),t],k8=(n,e,t="blob")=>(r,o)=>n[t](...A8(e,r,o));class I8{get Version(){return Kc}constructor(e){this._client=e}get(e,t,r,o){return w8(this._client,e,t)(r,o)}query(e,t,r,o){return R8(this._client,e,t)(r,o)}photo(e,t,r,o){return k8(this._client,e,t)(r,o)}}var R0=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})};class O8 extends Error{constructor(e,t,r){super(e,r),this.response=t,this.name="ApiProviderError"}}const TC=n=>R0(void 0,void 0,void 0,function*(){var e;if(!n.ok){const{headers:t,status:r,statusText:o,type:s,url:u,bodyUsed:f}=n,p=(e=t.get("content-type"))===null||e===void 0?void 0:e.match(/application\/(\w*)?[+]?json/),v=!f&&(yield p?n.json():n.text());throw new O8("failed to execute request, response was not ok",{headers:t,status:r,statusText:o,type:s,url:u,data:v})}});class N8{constructor({createClient:e}){this._createClientFn=e}createNotificationClient(e){return R0(this,void 0,void 0,function*(){const t=yield this._createClientFn("notification");return t.responseHandler.add("validate_api_request",TC),new E8(t,e)})}createBookmarksClient(e){return R0(this,void 0,void 0,function*(){const t=yield this._createClientFn("bookmarks");return t.responseHandler.add("validate_api_request",TC),new JV(t,e)})}createContextClient(e){return R0(this,void 0,void 0,function*(){const t=yield this._createClientFn("context");return t.responseHandler.add("validate_api_request",TC),new RV(t,e)})}createPeopleClient(){return R0(this,void 0,void 0,function*(){const e=yield this._createClientFn("people");return e.responseHandler.add("validate_api_request",TC),new I8(e)})}}var L2=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})};const M8="services",P8=(n,e)=>t=>L2(void 0,void 0,void 0,function*(){if(n.hasClient(t))return n.createClient(t);if(e)return e.createClient(t);throw Error(`failed to create http client for service ${t}`)}),D8={name:M8,configure:()=>new tV,initialize:({ref:n,config:e,requireInstance:t,hasModule:r})=>L2(void 0,void 0,void 0,function*(){if(!e.createClient){const o=yield t("http"),s=r("serviceDiscovery")?yield t("serviceDiscovery"):n==null?void 0:n.serviceDiscovery;e.createClient=P8(o,s)}if(!e.createClient)throw Error("missing configuration for creating API client");return new N8(e)})};class L8 extends j5{constructor(){super([K5,XP,p1,eV,D8,E2]),this.logger=new AM("FrameworkConfigurator")}configureHttp(...e){this.addConfig(o6(...e))}configureHttpClient(...e){this.addConfig(mP(...e))}configureMsal(...e){this.addConfig(yq(...e))}configureServiceDiscovery(e){this.configureHttpClient("service_discovery",e.client)}}var U8=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})};const F8=(n,e)=>U8(void 0,void 0,void 0,function*(){const t=yield n.initialize(e),r={modules:t};return window.Fusion=r,t.event.dispatchEvent("onFrameworkLoaded",{detail:r}),r}),U2=F.createContext(null),H8=U2.Provider,$8=F.createContext({});globalThis&&globalThis.__awaiter,globalThis&&globalThis.__rest;const B8=$8.Provider;var j8=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})};const z8=n=>F.lazy(()=>j8(void 0,void 0,void 0,function*(){const e=new L8;yield n(e);const t=yield F8(e);return{default:({children:r})=>se.jsx(H8,{value:t,children:se.jsx(B8,{value:t.modules,children:r})})}})),x0=()=>{let n=F.useContext(U2);return n||console.warn("could not locate fusion in context!"),n??(n=window.Fusion),n||console.error("Could not load framework, might not be initiated?"),n},q8=n=>{const{configure:e,fallback:t,children:r}=n,o=F.useMemo(()=>z8(e),[e]);return se.jsx(F.Suspense,{fallback:t,children:se.jsx(o,{children:r})})};var G8=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!o:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(n,t):o?o.value=t:e.set(n,t),t},V8=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},RC;class K8{constructor(e,t={}){this.config=t,RC.set(this,void 0),G8(this,RC,e,"f")}requireInstance(e){return V8(this,RC,"f").requireInstance(e)}setAppClient(e,t=1*60*1e3){this.config.client={getAppManifest:typeof e.getAppManifest=="function"?{key:({appKey:r})=>r,client:{fn:e.getAppManifest},expire:t}:e.getAppManifest,getAppManifests:typeof e.getAppManifests=="function"?{key:()=>"app_manifests",client:{fn:e.getAppManifests},expire:t}:e.getAppManifests,getAppConfig:typeof e.getAppConfig=="function"?{key:r=>JSON.stringify(r),client:{fn:e.getAppConfig},expire:t}:e.getAppConfig}}}RC=new WeakMap;var F2;(function(n){n.IDLE="idle",n.ACTIVE="active",n.FAILED="failed",n.CANCELED="canceled"})(F2||(F2={}));const W8=n=>e=>e.pipe(a1(n)),Y8=n=>e=>e.pipe(Ya(n)),Q8=n=>e=>e.pipe(ii(n)),X8=n=>n.pipe(pn(e=>e.value));class ux extends Error{constructor(e,t){super(t.message,{cause:t.cause}),this.type=e,this.name="QueryClientError",this.request=t.request}}const Ro=(()=>({request:Sn("client/request",(e,t)=>{var r,o,s;return t??(t={}),(r=t.transaction)!==null&&r!==void 0||(t.transaction=tm()),(o=t.created)!==null&&o!==void 0||(t.created=Date.now()),(s=t.task)!==null&&s!==void 0||(t.task=new Mb),{payload:e,meta:t}}),retry:Sn("client/retry",e=>({payload:e})),success:Sn("client/success",(e,t)=>({payload:e,meta:t})),cancel:Sn("client/cancel",e=>({payload:e})),failure:Sn("client/failure",(e,t)=>({payload:e,meta:t})),error:Sn("client/error",(e,t)=>({payload:e,meta:t}))}))(),H2=n=>e=>e.pipe(ln(Ro.request.match),Ya(t=>{const{meta:r}=t,{transaction:o}=r,s=new AbortController,{signal:u}=s;return new yn(f=>{f.add(e.pipe(ln(Ro.cancel.match)).subscribe(p=>{p.payload.transaction===o&&(u.aborted||s.abort(),f.complete())})),f.add(qr(n(t,u)).subscribe({next:p=>f.next(p),error:p=>f.next(Ro.error(p,{request:t})),complete:()=>f.complete()}))})})),J8=n=>(n=Object.assign({},{count:0,delay:0},n),(e,t)=>e.pipe(H2(r=>e.pipe(ln(Ro.failure.match),ln(o=>o.meta.request===r),jv(t),ii(([o,s])=>{var u,f;const{transaction:p}=r.meta,v=s[p];if(!v)return $i;const g=(f=(u=v.retry)===null||u===void 0?void 0:u.length)!==null&&f!==void 0?f:0,E=Object.assign({},n,r.meta.retry);if(g>=E.count)throw E.count?Error("maximum retries executed!",{cause:o.payload}):o.payload;return(typeof E.delay=="function"?qr(E.delay(o.payload.cause)).pipe(Mr(S=>{throw Error("failed to resolve delay",{cause:S})})):o1(E.delay)).pipe(pn(()=>Ro.retry(r)))}))))),Z8=n=>e=>e.pipe(H2((t,r)=>qr(n(t.payload,r)).pipe(pn(o=>Ro.success(o,{request:t})),Mr(o=>Ss(Ro.failure(Error(`failed to execute request for transaction ${t.meta.transaction}`,{cause:o}),{request:t})))))),eK=n=>n.pipe(ln(Ro.retry.match),pn(e=>e.payload)),$2=()=>ln(n=>n.status==="complete"),tK=(n={})=>qh(n,e=>e.addCase(Ro.request,(t,r)=>{const{transaction:o,task:s,ref:u,created:f}=r.meta;t[o]={transaction:o,task:s,ref:u,created:f}}).addCase(Ro.success,(t,r)=>{const{request:o}=r.meta,{transaction:s,ref:u}=o.meta,f=t[s];if(f){const p={status:"complete",transaction:s,ref:u,value:r.payload,args:o.payload,created:f.created,completed:Date.now()};f.task.next(p),f.task.complete()}delete t[s]}).addCase(Ro.retry,(t,r)=>{var o;const{transaction:s}=r.payload.meta,u=t[s];u&&((o=u.retry)!==null&&o!==void 0||(u.retry=[]),u.retry.push(Date.now()))}).addCase(Ro.cancel,(t,r)=>{const{transaction:o,reason:s}=r.payload;if(t[o]){const u=Object.assign({},nm(t[o]));u.task.error(new ux("abort",{request:u,message:s??"request was canceled"})),delete t[o]}}).addCase(Ro.failure,(t,r)=>{var o;const{payload:s,meta:u}=r,{transaction:f}=u.request.meta,p=t[f];p&&((o=p.errors)!==null&&o!==void 0||(p.errors=[]),p.errors.push(s))}).addCase(Ro.error,(t,r)=>{const{payload:o,meta:s}=r,{transaction:u}=s.request.meta;if(t[u]){const f=Object.assign({},nm(t[u]));f.task.error(new ux("error",{request:f,message:`failed to process task [${u}]`,cause:o.cause})),delete t[u]}}));var nK=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})},mi=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},B2=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!o:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(n,t):o?o.value=t:e.set(n,t),t},Ri,Jh;let j2=class extends yn{get closed(){return mi(this,Ri,"f").closed}get state$(){return mi(this,Ri,"f")}get action$(){return mi(this,Ri,"f").action$}get success$(){return this.action$.pipe(ln(Ro.success.match),pn(({payload:e})=>e))}get error$(){return this.action$.pipe(pC("client/error"),jv(mi(this,Ri,"f")),pn(([e,t])=>{const{payload:r,meta:o}=e,{transaction:s}=o.request.meta,u=t[e.meta.request.meta.transaction];return new ux("error",{request:u,message:`failed to process task [${s}]`,cause:r})}))}constructor(e,t){super(s=>mi(this,Ri,"f").subscribe(s)),Ri.set(this,void 0),Jh.set(this,void 0);const r={};B2(this,Ri,new zh(tK(r)),"f"),B2(this,Jh,new Ho(()=>mi(this,Ri,"f").complete()),"f"),mi(this,Jh,"f").add(mi(this,Ri,"f").addFlow(Z8(e))),mi(this,Jh,"f").add(mi(this,Ri,"f").addFlow(eK));const o=Object.assign({count:0,delay:0},t==null?void 0:t.retry);mi(this,Jh,"f").add(mi(this,Ri,"f").addFlow(J8(o)))}next(e,t){const{ref:r,retry:o,task:s}=t??{},u=Ro.request(e,{ref:r,retry:o,task:s});return mi(this,Ri,"f").next(u),u.meta}nextAsync(e,t){return nK(this,void 0,void 0,function*(){return $o(this.next(e,t).task.pipe($2()))})}getTaskByTransaction(e){const t=mi(this,Ri,"f").value[e];return t==null?void 0:t.task}getTaskByRef(e){const t=Object.values(mi(this,Ri,"f").value).find(r=>r.ref===e);return t==null?void 0:t.task}cancelTaskByRef(e,t){const r=Object.values(mi(this,Ri,"f").value).find(o=>o.ref===e);r!=null&&r.ref&&this.cancel(r.transaction,t)}cancel(e,t){if(e)mi(this,Ri,"f").value[e]&&(t??(t=`[${e}]: transaction canceled`),mi(this,Ri,"f").next(Ro.cancel({transaction:e,reason:t})));else for(const r of Object.keys(mi(this,Ri,"f").value))this.cancel(r,"all transactions canceled")}on(e,t){return mi(this,Ri,"f").addEffect(Ro[e].type,r=>{t(r,this)})}complete(){mi(this,Jh,"f").unsubscribe()}asObservable(){return mi(this,Ri,"f").asObservable()}};Ri=new WeakMap,Jh=new WeakMap;function rK(){return{set:Sn("cache/set",(n,e)=>({payload:{key:n,entry:e}})),remove:Sn("cache/remove",n=>({payload:n})),invalidate:Sn("cache/invalidate",n=>({payload:n})),trim:Sn("cache/trim",n=>({payload:n}))}}const fm=rK(),iK=(n,e)=>{var t,r;return((t=e.updated)!==null&&t!==void 0?t:0)-((r=n.updated)!==null&&r!==void 0?r:0)};function oK(n,e={}){return qh(e,t=>t.addCase(n.set,(r,o)=>{var s;const{key:u,entry:f}=o.payload,p=r[u];if(p)p.updated=Date.now(),(s=p.updates)!==null&&s!==void 0||(p.updates=0),p.updates++;else{const v=Date.now();r[u]=Object.assign(Object.assign({},f),{created:v,updated:v})}}).addCase(n.remove,(r,o)=>{delete r[o.payload]}).addCase(n.invalidate,(r,o)=>{const s=r[o.payload];s&&delete s.updated}).addCase(n.trim,(r,o)=>{var s,u;const{payload:f}=o,p=(s=f.sort)!==null&&s!==void 0?s:iK,v=Object.keys(r),g=Object.entries(r).filter(([E,w])=>!f.validate||f.validate(w)).sort((E,w)=>p(E[1],w[1])).slice(0,(u=f.size)!==null&&u!==void 0?u:Number.MAX_SAFE_INTEGER).map(([E])=>E);if(v.length!==g.length)for(const E of v){const w=g.indexOf(E);w!==-1?g.splice(w,1):delete r[E]}}))}var Ml=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},aK=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!o:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(n,t):o?o.value=t:e.set(n,t),t},ns;let z2=class{get state(){return Ml(this,ns,"f").value}get state$(){return Ml(this,ns,"f").asObservable()}constructor(e){ns.set(this,void 0);const{trimming:t,initial:r}=e??{};aK(this,ns,new zh(oK(fm,r)),"f"),t&&Ml(this,ns,"f").addEffect("cache/set",()=>Ml(this,ns,"f").next(fm.trim(t)))}setItem(...e){Ml(this,ns,"f").next(fm.set(...e))}getItem(e){return Ml(this,ns,"f").value[e]}removeItem(e){Ml(this,ns,"f").next(fm.remove(e))}invalidate(e){Ml(this,ns,"f").next(fm.invalidate(e))}trim(e){Ml(this,ns,"f").next(fm.trim(e))}reset(){Ml(this,ns,"f").reset()}complete(){Ml(this,ns,"f").complete()}};ns=new WeakMap;var Ir=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},hm=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!o:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(n,t):o?o.value=t:e.set(n,t),t},sK=globalThis&&globalThis.__rest||function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,r=Object.getOwnPropertySymbols(n);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(n,r[o])&&(t[r[o]]=n[r[o]]);return t},Zh,Au,ef,pm,A0,k0,xC,cx;const lK=(n=0)=>e=>{var t;return((t=e.updated)!==null&&t!==void 0?t:0)+n>Date.now()},uK=n=>{if(typeof n=="function")return n;switch(n){case"concat":return W8;case"merge":return Y8;case"switch":default:return Q8}};let ep=class{get client(){return Ir(this,Au,"f")}get cache(){return Ir(this,ef,"f")}constructor(e){var t;Zh.set(this,new Ho),Au.set(this,void 0),ef.set(this,void 0),pm.set(this,new Co),A0.set(this,{}),k0.set(this,void 0),xC.set(this,void 0),cx.set(this,tm()),hm(this,k0,o=>U1(e.key(o),Ir(this,cx,"f")),"f"),hm(this,xC,(t=e==null?void 0:e.validate)!==null&&t!==void 0?t:lK(e==null?void 0:e.expire),"f"),e.client instanceof j2?hm(this,Au,e.client,"f"):(hm(this,Au,new j2(e.client.fn,e.client.options),"f"),Ir(this,Zh,"f").add(()=>Ir(this,Au,"f").complete())),e.cache instanceof z2?hm(this,ef,e.cache,"f"):(hm(this,ef,new z2(e.cache||{}),"f"),Ir(this,Zh,"f").add(()=>Ir(this,ef,"f").complete()));const r=uK(e.queueOperator);Ir(this,Zh,"f").add(()=>Ir(this,pm,"f").complete()),Ir(this,Zh,"f").add(Ir(this,pm,"f").pipe(r(o=>{const{args:s,options:u}=o;return new yn(f=>{const{task:p,transaction:v}=Ir(this,Au,"f").next(s,u);f.add(p.pipe(Mr(()=>$i)).subscribe(f)),f.add(()=>{setTimeout(()=>Ir(this,Au,"f").cancel(v))})})}),$2(),Ub(()=>!Ir(this,Au,"f").closed)).subscribe(o=>{const{args:s,value:u,transaction:f,ref:p}=o,v=p??Ir(this,k0,"f").call(this,s);Ir(this,ef,"f").setItem(v,{value:u,args:s,transaction:f})}))}next(e,t){Ir(this,pm,"f").next({args:e,options:t})}query(e,t){return this._query(e,t)}queryAsync(e,t){const r=t||{},{awaitResolve:o}=r,s=sK(r,["awaitResolve"]);return(o?oa:$o)(this._query(e,s))}complete(){Ir(this,Zh,"f").unsubscribe()}_query(e,t){var r;const o=Ir(this,k0,"f").call(this,e),s=(r=Ir(this,A0,"f")[o])!==null&&r!==void 0?r:this._createTask(o,e,t);return t!=null&&t.signal&&t.signal.addEventListener("abort",()=>{Ir(this,Au,"f").cancelTaskByRef(o,"abort signal triggered by caller")}),s}_createTask(e,t,r){const o=new Co,s=new yn(u=>{var f;Ir(this,A0,"f")[e]=s,o.subscribe(u);const p=Ir(this,ef,"f").getItem(e);p&&o.next(Object.assign(Object.assign({},p),{status:"cache"}));const v=((f=r==null?void 0:r.cache)===null||f===void 0?void 0:f.validate)||Ir(this,xC,"f");p&&v(p,t)?o.complete():Ir(this,pm,"f").next({args:t,options:{ref:e,task:o,retry:r==null?void 0:r.retry}})}).pipe(Xy(()=>{delete Ir(this,A0,"f")[e]}),d1());return s}};Zh=new WeakMap,Au=new WeakMap,ef=new WeakMap,pm=new WeakMap,A0=new WeakMap,k0=new WeakMap,xC=new WeakMap,cx=new WeakMap,ep.extractQueryValue=X8;const tr=(()=>({setManifest:Sn("set_manifest",(n,e)=>({payload:n,meta:{created:Date.now(),update:e}})),fetchManifest:mC("fetch_manifest",(n,e)=>({payload:n,meta:{update:e}}),n=>({payload:n}),n=>({payload:n})),setConfig:Sn("set_config",n=>({payload:n})),fetchConfig:mC("fetch_config",n=>({payload:n}),n=>({payload:n}),n=>({payload:n})),setModule:Sn("set_module",n=>({payload:n})),importApp:mC("import_app",n=>({payload:n}),n=>({payload:n}),n=>({payload:n})),setInstance:Sn("set_instance",n=>({payload:n})),initialize:mC("initialize_app",()=>({payload:null}),()=>({payload:null}),n=>({payload:n}))}))();nG();const cK=n=>qh(Object.assign(Object.assign({},n),{status:new Set}),e=>e.addCase(tr.setManifest,(t,r)=>{r.meta.update?t.manifest=Object.assign(Object.assign({},t.manifest),r.payload):t.manifest=r.payload}).addCase(tr.setConfig,(t,r)=>{t.config=r.payload}).addCase(tr.setModule,(t,r)=>{t.modules=r.payload}).addCase(tr.setInstance,(t,r)=>{t.instance=r.payload}).addMatcher(cG,(t,r)=>{t.status.add(f2(r))}).addMatcher(hG,(t,r)=>{t.status.delete(f2(r))})),dK=n=>e=>e.pipe(ln(tr.fetchManifest.match),ii(t=>{const{payload:r,meta:{update:o}}=t,s=qr(n.getAppManifest(r)).pipe(ln(u=>!!u),u1());return i1(s.pipe(pn(u=>tr.setManifest(u,o))),s.pipe(s1(),pn(u=>tr.fetchManifest.success(u)))).pipe(Mr(u=>Ss(tr.fetchManifest.failure(u))))})),fK=n=>e=>e.pipe(ln(tr.fetchConfig.match),ii(({payload:t})=>{const r=qr(n.getAppConfig(t)).pipe(ln(o=>!!o),u1());return i1(r.pipe(pn(o=>tr.setConfig(o))),r.pipe(s1(),pn(o=>tr.fetchConfig.success(o)))).pipe(Mr(o=>Ss(tr.fetchConfig.failure(o))))})),hK=()=>n=>n.pipe(ln(tr.importApp.match),ii(({payload:e})=>qr(import(e)).pipe(pn(tr.importApp.success),Mr(t=>Ss(tr.importApp.failure(t)))))),pK=(n,e)=>{const t=cK(n),r=new zh(t);return r.addFlow(dK(e)),r.addFlow(fK(e)),r.addFlow(hK()),r};var vK=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})},un=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},mK=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!o:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(n,t):o?o.value=t:e.set(n,t),t},dx,an,q2;function I0(){return ln(n=>n!=null)}let G2=class{get manifest$(){return un(this,an,"f").pipe(pn(({manifest:e})=>e),I0())}get config$(){return un(this,an,"f").pipe(pn(({config:e})=>e),I0())}get modules$(){return un(this,an,"f").pipe(pn(({modules:e})=>e),I0())}get instance$(){return un(this,an,"f").pipe(pn(({instance:e})=>e),I0())}get state(){return un(this,an,"f").value}get appKey(){return un(this,an,"f").value.appKey}get manifest(){return this.state.manifest}get manifestAsync(){return $o(this.manifest$)}get config(){return this.state.config}get configAsync(){return $o(this.config$)}get instance(){return un(this,an,"f").value.instance}constructor(e,t){dx.add(this),an.set(this,void 0),mK(this,an,pK(e,t.provider),"f");const{appKey:r}=e,{event:o}=t;o&&un(this,dx,"m",q2).call(this,o);const s=new Ho;o&&(s.add(()=>{o.dispatchEvent("onAppDispose",{detail:{appKey:r}})}),s.add(o.addEventListener("onAppModulesLoaded",u=>{u.detail.appKey===r&&un(this,an,"f").next(tr.setInstance(u.detail.modules))}))),this.dispose=()=>{s==null||s.unsubscribe(),un(this,an,"f").value.instance&&un(this,an,"f").value.instance.dispose(),un(this,an,"f").complete()}}initialize(){return new yn(e=>{un(this,an,"f").next(tr.initialize()),e.add(k5([this.getManifest(),this.getAppModule(),this.getConfig()]).subscribe({next:([t,r,o])=>e.next({manifest:t,script:r,config:o}),error:t=>{e.error(t),un(this,an,"f").next(tr.initialize.failure(t))},complete:()=>{un(this,an,"f").next(tr.initialize.success()),e.complete()}}))})}loadConfig(){un(this,an,"f").next(tr.fetchConfig(this.appKey))}loadManifest(e){un(this,an,"f").next(tr.fetchManifest(this.appKey,e))}updateManifest(e,t){un(this,an,"f").next(tr.setManifest(e,!t))}loadAppModule(e=!0){return vK(this,void 0,void 0,function*(){const t=yield this.getManifestAsync(e);un(this,an,"f").next(tr.importApp(t.entry))})}getConfig(e=!1){return new yn(t=>{if(un(this,an,"f").value.config&&(t.next(un(this,an,"f").value.config),!e))return t.complete();t.add(un(this,an,"f").addEffect("set_config",({payload:r})=>{t.next(r)})),t.add(un(this,an,"f").addEffect("fetch_config::success",({payload:r})=>{t.next(r),t.complete()})),t.add(un(this,an,"f").addEffect("fetch_config::failure",({payload:r})=>{t.error(Error("failed to load application config",{cause:r}))})),this.loadConfig()})}getConfigAsync(e=!0){return(e?$o:oa)(this.getConfig(!e))}getManifest(e=!1){return new yn(t=>{if(un(this,an,"f").value.manifest&&(t.next(un(this,an,"f").value.manifest),!e))return t.complete();t.add(un(this,an,"f").addEffect("set_manifest",({payload:r})=>{t.next(r)})),t.add(un(this,an,"f").addEffect("fetch_manifest::success",({payload:r})=>{t.next(r),t.complete()})),t.add(un(this,an,"f").addEffect("fetch_manifest::failure",({payload:r})=>{t.error(Error("failed to load application manifest",{cause:r}))})),this.loadManifest()})}getManifestAsync(e=!0){return(e?$o:oa)(this.getManifest(!e))}getAppModule(e=!1){return new yn(t=>{if(un(this,an,"f").value.modules&&(t.next(un(this,an,"f").value.modules),!e))return t.complete();t.add(un(this,an,"f").addEffect("set_module",({payload:r})=>{t.next(r)})),t.add(un(this,an,"f").addEffect("import_app::success",({payload:r})=>{t.next(r),t.complete()})),t.add(un(this,an,"f").addEffect("import_app::failure",({payload:r})=>{t.error(Error("failed to load application modules from script",{cause:r}))})),t.add(this.getManifest().subscribe(r=>Ss(un(this,an,"f").next(tr.importApp(r.entry)))))})}getAppModuleAsync(e=!0){return(e?$o:oa)(this.getAppModule(!e))}};an=new WeakMap,dx=new WeakSet,q2=function(e){const{appKey:t}=this;un(this,an,"f").addEffect(tr.fetchManifest.success.type,r=>{e.dispatchEvent("onAppManifestLoaded",{detail:{appKey:t,manifest:r.payload},source:this})}),un(this,an,"f").addEffect(tr.fetchConfig.success.type,r=>{e.dispatchEvent("onAppConfigLoaded",{detail:{appKey:t,manifest:r.payload},source:this})}),un(this,an,"f").addEffect(tr.importApp.success.type,r=>{e.dispatchEvent("onAppScriptLoaded",{detail:{appKey:t,manifest:r.payload},source:this})}),un(this,an,"f").addEffect(tr.initialize.type,()=>{e.dispatchEvent("onAppInitialize",{detail:{appKey:t},source:this})}),un(this,an,"f").addEffect(tr.initialize.success.type,()=>{e.dispatchEvent("onAppInitialized",{detail:{appKey:t},source:this})}),un(this,an,"f").addEffect(tr.initialize.failure.type,({payload:r})=>{e.dispatchEvent("onAppInitializeFailed",{detail:{appKey:t,error:r},source:this})})};class tp extends Error{static fromHttpResponse(e,t){switch(e.status){case 401:return new tp("unauthorized","failed to load application manifest, request not authorized",t);case 404:return new tp("not_found","application manifest not found",t)}return new tp("unknown",`failed to load application manifest, status code ${e.status}`,t)}constructor(e,t,r){super(t,r),this.type=e}}class np extends Error{static fromHttpResponse(e,t){switch(e.status){case 401:return new np("unauthorized","failed to load application config, request not authorized",t);case 404:return new np("not_found","application config not found",t)}return new np("unknown",`failed to load application config, status code ${e.status}`,t)}constructor(e,t,r){super(t,r),this.type=e}}var ca=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},AC=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!o:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(n,t):o?o.value=t:e.set(n,t),t},O0,N0,tf,nf,kC;class gK{static compareAppManifest(e,t){return JSON.stringify(e)===JSON.stringify(t)}get current(){return ca(this,tf,"f").value}get current$(){return ca(this,tf,"f").pipe(iP((e,t)=>e&&t?e.appKey===t.appKey:e===t))}constructor(e){O0.set(this,void 0),N0.set(this,void 0),tf.set(this,void 0),nf.set(this,new Ho),kC.set(this,void 0);const{event:t,config:r}=e;AC(this,kC,t,"f"),AC(this,tf,new Yy(void 0),"f"),this.appClient=new ep(r.client.getAppManifest),AC(this,O0,new ep(r.client.getAppManifests),"f"),AC(this,N0,new ep(r.client.getAppConfig),"f"),ca(this,nf,"f").add(()=>this.appClient.complete()),ca(this,nf,"f").add(()=>ca(this,O0,"f").complete()),ca(this,nf,"f").add(()=>ca(this,N0,"f").complete()),ca(this,nf,"f").add(this.current$.pipe(l1(),Ub(()=>!!t)).subscribe(([o,s])=>{t==null||t.dispatchEvent("onCurrentAppChanged",{source:this,detail:{previous:o,next:s}})})),ca(this,nf,"f").add(ca(this,tf,"f").pipe(l1(),pn(([o])=>o),I0()).subscribe(o=>o.dispose()))}getAppManifest(e){return ep.extractQueryValue(this.appClient.query({appKey:e}).pipe(Mr(t=>{const{cause:r}=t;throw r instanceof tp?r:r instanceof h1?tp.fromHttpResponse(r.response,{cause:r}):new tp("unknown","failed to load manifest",{cause:r})})))}getAllAppManifests(){return ep.extractQueryValue(ca(this,O0,"f").query())}getAppConfig(e,t){return ep.extractQueryValue(ca(this,N0,"f").query({appKey:e,tag:t}).pipe(Mr(r=>{const{cause:o}=r;throw o instanceof np?o:o instanceof h1?np.fromHttpResponse(o.response,{cause:o}):new np("unknown","failed to load config",{cause:o})})))}setCurrentApp(e){const t=typeof e=="string"?this.createApp({appKey:e}):e;ca(this,tf,"f").next(t)}clearCurrentApp(){ca(this,tf,"f").next(null)}createApp(e){return console.warn(),new G2(e,{provider:this,event:ca(this,kC,"f")})}dispose(){ca(this,nf,"f").unsubscribe()}}O0=new WeakMap,N0=new WeakMap,tf=new WeakMap,nf=new WeakMap,kC=new WeakMap;var yK=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})};const fx="app",_K={name:fx,configure:()=>new EK,initialize:n=>yK(void 0,void 0,void 0,function*(){const e=yield n.config.createConfig(n),t=yield n.requireInstance("event").catch(()=>{});return new gK({config:e,event:t})}),dispose:n=>{n.instance.dispose()}};var IC=globalThis&&globalThis.__awaiter||function(n,e,t,r){function o(s){return s instanceof t?s:new t(function(u){u(s)})}return new(t||(t=Promise))(function(s,u){function f(g){try{v(r.next(g))}catch(E){u(E)}}function p(g){try{v(r.throw(g))}catch(E){u(E)}}function v(g){g.done?s(g.value):o(g.value).then(f,p)}v((r=r.apply(n,e||[])).next())})},V2=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},OC;class EK{constructor(){this.defaultExpireTime=1*60*1e3,OC.set(this,[])}addConfigBuilder(e){V2(this,OC,"f").push(e)}_createHttpClient(e){return IC(this,void 0,void 0,function*(){const t=yield e.requireInstance("http");if(t.hasClient(fx))return t.createClient(fx);{const r=yield e.requireInstance("serviceDiscovery");try{return yield r.createClient("app")}catch{return yield r.createClient("portal")}}})}createConfig(e){var t;return IC(this,void 0,void 0,function*(){const r=yield V2(this,OC,"f").reduce((o,s)=>IC(this,void 0,void 0,function*(){const u=new K8(e,yield o);return yield Promise.resolve(s(u)),Object.assign(o,u.config)}),Promise.resolve({}));return(t=r.client)!==null&&t!==void 0||(r.client=yield(()=>IC(this,void 0,void 0,function*(){const o=yield this._createHttpClient(e);return{getAppManifest:{client:{fn:({appKey:s})=>o.json$(`/api/apps/${s}`)},key:({appKey:s})=>s,expire:this.defaultExpireTime},getAppManifests:{client:{fn:()=>o.json$("/api/apps")},key:()=>"manifests",expire:this.defaultExpireTime},getAppConfig:{client:{fn:({appKey:s,tag:u})=>o.json$(`/api/apps/${s}/config${u?`?tag=${u}`:""}`)},key:s=>JSON.stringify(s),expire:this.defaultExpireTime}}}))()),r})}}OC=new WeakMap;const bK=(n,e)=>{n.addConfig({module:_K,configure:t=>{e&&t.addConfigBuilder(e)}})};class CK{}/**
269
+ * @remix-run/router v1.8.0
270
+ *
271
+ * Copyright (c) Remix Software Inc.
272
+ *
273
+ * This source code is licensed under the MIT license found in the
274
+ * LICENSE.md file in the root directory of this source tree.
275
+ *
276
+ * @license MIT
277
+ */function Vr(){return Vr=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Vr.apply(this,arguments)}var Kr;(function(n){n.Pop="POP",n.Push="PUSH",n.Replace="REPLACE"})(Kr||(Kr={}));const K2="popstate";function wK(n){n===void 0&&(n={});let{initialEntries:e=["/"],initialIndex:t,v5Compat:r=!1}=n,o;o=e.map((S,A)=>g(S,typeof S=="string"?null:S.state,A===0?"default":void 0));let s=p(t??o.length-1),u=Kr.Pop,f=null;function p(S){return Math.min(Math.max(S,0),o.length-1)}function v(){return o[s]}function g(S,A,k){A===void 0&&(A=null);let M=rp(o?v().pathname:"/",S,A,k);return da(M.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(S)),M}function E(S){return typeof S=="string"?S:ku(S)}return{get index(){return s},get action(){return u},get location(){return v()},createHref:E,createURL(S){return new URL(E(S),"http://localhost")},encodeLocation(S){let A=typeof S=="string"?Pl(S):S;return{pathname:A.pathname||"",search:A.search||"",hash:A.hash||""}},push(S,A){u=Kr.Push;let k=g(S,A);s+=1,o.splice(s,o.length,k),r&&f&&f({action:u,location:k,delta:1})},replace(S,A){u=Kr.Replace;let k=g(S,A);o[s]=k,r&&f&&f({action:u,location:k,delta:0})},go(S){u=Kr.Pop;let A=p(s+S),k=o[A];s=A,f&&f({action:u,location:k,delta:S})},listen(S){return f=S,()=>{f=null}}}}function SK(n){n===void 0&&(n={});function e(r,o){let{pathname:s,search:u,hash:f}=r.location;return rp("",{pathname:s,search:u,hash:f},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function t(r,o){return typeof o=="string"?o:ku(o)}return Y2(e,t,null,n)}function TK(n){n===void 0&&(n={});function e(o,s){let{pathname:u="/",search:f="",hash:p=""}=Pl(o.location.hash.substr(1));return!u.startsWith("/")&&!u.startsWith(".")&&(u="/"+u),rp("",{pathname:u,search:f,hash:p},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function t(o,s){let u=o.document.querySelector("base"),f="";if(u&&u.getAttribute("href")){let p=o.location.href,v=p.indexOf("#");f=v===-1?p:p.slice(0,v)}return f+"#"+(typeof s=="string"?s:ku(s))}function r(o,s){da(o.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(s)+")")}return Y2(e,t,r,n)}function $t(n,e){if(n===!1||n===null||typeof n>"u")throw new Error(e)}function da(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function RK(){return Math.random().toString(36).substr(2,8)}function W2(n,e){return{usr:n.state,key:n.key,idx:e}}function rp(n,e,t,r){return t===void 0&&(t=null),Vr({pathname:typeof n=="string"?n:n.pathname,search:"",hash:""},typeof e=="string"?Pl(e):e,{state:t,key:e&&e.key||r||RK()})}function ku(n){let{pathname:e="/",search:t="",hash:r=""}=n;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),r&&r!=="#"&&(e+=r.charAt(0)==="#"?r:"#"+r),e}function Pl(n){let e={};if(n){let t=n.indexOf("#");t>=0&&(e.hash=n.substr(t),n=n.substr(0,t));let r=n.indexOf("?");r>=0&&(e.search=n.substr(r),n=n.substr(0,r)),n&&(e.pathname=n)}return e}function Y2(n,e,t,r){r===void 0&&(r={});let{window:o=document.defaultView,v5Compat:s=!1}=r,u=o.history,f=Kr.Pop,p=null,v=g();v==null&&(v=0,u.replaceState(Vr({},u.state,{idx:v}),""));function g(){return(u.state||{idx:null}).idx}function E(){f=Kr.Pop;let M=g(),P=M==null?null:M-v;v=M,p&&p({action:f,location:k.location,delta:P})}function w(M,P){f=Kr.Push;let L=rp(k.location,M,P);t&&t(L,M),v=g()+1;let j=W2(L,v),U=k.createHref(L);try{u.pushState(j,"",U)}catch(H){if(H instanceof DOMException&&H.name==="DataCloneError")throw H;o.location.assign(U)}s&&p&&p({action:f,location:k.location,delta:1})}function S(M,P){f=Kr.Replace;let L=rp(k.location,M,P);t&&t(L,M),v=g();let j=W2(L,v),U=k.createHref(L);u.replaceState(j,"",U),s&&p&&p({action:f,location:k.location,delta:0})}function A(M){let P=o.location.origin!=="null"?o.location.origin:o.location.href,L=typeof M=="string"?M:ku(M);return $t(P,"No window.location.(origin|href) available to create URL for href: "+L),new URL(L,P)}let k={get action(){return f},get location(){return n(o,u)},listen(M){if(p)throw new Error("A history only accepts one active listener");return o.addEventListener(K2,E),p=M,()=>{o.removeEventListener(K2,E),p=null}},createHref(M){return e(o,M)},createURL:A,encodeLocation(M){let P=A(M);return{pathname:P.pathname,search:P.search,hash:P.hash}},push:w,replace:S,go(M){return u.go(M)}};return k}var xi;(function(n){n.data="data",n.deferred="deferred",n.redirect="redirect",n.error="error"})(xi||(xi={}));const xK=new Set(["lazy","caseSensitive","path","id","index","children"]);function AK(n){return n.index===!0}function hx(n,e,t,r){return t===void 0&&(t=[]),r===void 0&&(r={}),n.map((o,s)=>{let u=[...t,s],f=typeof o.id=="string"?o.id:u.join("-");if($t(o.index!==!0||!o.children,"Cannot specify children on an index route"),$t(!r[f],'Found a route id collision on id "'+f+`". Route id's must be globally unique within Data Router usages`),AK(o)){let p=Vr({},o,e(o),{id:f});return r[f]=p,p}else{let p=Vr({},o,e(o),{id:f,children:void 0});return r[f]=p,o.children&&(p.children=hx(o.children,e,u,r)),p}})}function vm(n,e,t){t===void 0&&(t="/");let r=typeof e=="string"?Pl(e):e,o=rf(r.pathname||"/",t);if(o==null)return null;let s=Q2(n);kK(s);let u=null;for(let f=0;u==null&&f<s.length;++f)u=FK(s[f],BK(o));return u}function Q2(n,e,t,r){e===void 0&&(e=[]),t===void 0&&(t=[]),r===void 0&&(r="");let o=(s,u,f)=>{let p={relativePath:f===void 0?s.path||"":f,caseSensitive:s.caseSensitive===!0,childrenIndex:u,route:s};p.relativePath.startsWith("/")&&($t(p.relativePath.startsWith(r),'Absolute route path "'+p.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),p.relativePath=p.relativePath.slice(r.length));let v=Iu([r,p.relativePath]),g=t.concat(p);s.children&&s.children.length>0&&($t(s.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+v+'".')),Q2(s.children,e,g,v)),!(s.path==null&&!s.index)&&e.push({path:v,score:LK(v,s.index),routesMeta:g})};return n.forEach((s,u)=>{var f;if(s.path===""||!((f=s.path)!=null&&f.includes("?")))o(s,u);else for(let p of X2(s.path))o(s,u,p)}),e}function X2(n){let e=n.split("/");if(e.length===0)return[];let[t,...r]=e,o=t.endsWith("?"),s=t.replace(/\?$/,"");if(r.length===0)return o?[s,""]:[s];let u=X2(r.join("/")),f=[];return f.push(...u.map(p=>p===""?s:[s,p].join("/"))),o&&f.push(...u),f.map(p=>n.startsWith("/")&&p===""?"/":p)}function kK(n){n.sort((e,t)=>e.score!==t.score?t.score-e.score:UK(e.routesMeta.map(r=>r.childrenIndex),t.routesMeta.map(r=>r.childrenIndex)))}const IK=/^:\w+$/,OK=3,NK=2,MK=1,PK=10,DK=-2,J2=n=>n==="*";function LK(n,e){let t=n.split("/"),r=t.length;return t.some(J2)&&(r+=DK),e&&(r+=NK),t.filter(o=>!J2(o)).reduce((o,s)=>o+(IK.test(s)?OK:s===""?MK:PK),r)}function UK(n,e){return n.length===e.length&&n.slice(0,-1).every((r,o)=>r===e[o])?n[n.length-1]-e[e.length-1]:0}function FK(n,e){let{routesMeta:t}=n,r={},o="/",s=[];for(let u=0;u<t.length;++u){let f=t[u],p=u===t.length-1,v=o==="/"?e:e.slice(o.length)||"/",g=HK({path:f.relativePath,caseSensitive:f.caseSensitive,end:p},v);if(!g)return null;Object.assign(r,g.params);let E=f.route;s.push({params:r,pathname:Iu([o,g.pathname]),pathnameBase:GK(Iu([o,g.pathnameBase])),route:E}),g.pathnameBase!=="/"&&(o=Iu([o,g.pathnameBase]))}return s}function HK(n,e){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[t,r]=$K(n.path,n.caseSensitive,n.end),o=e.match(t);if(!o)return null;let s=o[0],u=s.replace(/(.)\/+$/,"$1"),f=o.slice(1);return{params:r.reduce((v,g,E)=>{if(g==="*"){let w=f[E]||"";u=s.slice(0,s.length-w.length).replace(/(.)\/+$/,"$1")}return v[g]=jK(f[E]||"",g),v},{}),pathname:s,pathnameBase:u,pattern:n}}function $K(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),da(n==="*"||!n.endsWith("*")||n.endsWith("/*"),'Route path "'+n+'" will be treated as if it were '+('"'+n.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+n.replace(/\*$/,"/*")+'".'));let r=[],o="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(u,f)=>(r.push(f),"/([^\\/]+)"));return n.endsWith("*")?(r.push("*"),o+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?o+="\\/*$":n!==""&&n!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,e?void 0:"i"),r]}function BK(n){try{return decodeURI(n)}catch(e){return da(!1,'The URL path "'+n+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),n}}function jK(n,e){try{return decodeURIComponent(n)}catch(t){return da(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+n+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),n}}function rf(n,e){if(e==="/")return n;if(!n.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,r=n.charAt(t);return r&&r!=="/"?null:n.slice(t)||"/"}function zK(n,e){e===void 0&&(e="/");let{pathname:t,search:r="",hash:o=""}=typeof n=="string"?Pl(n):n;return{pathname:t?t.startsWith("/")?t:qK(t,e):e,search:VK(r),hash:KK(o)}}function qK(n,e){let t=e.replace(/\/+$/,"").split("/");return n.split("/").forEach(o=>{o===".."?t.length>1&&t.pop():o!=="."&&t.push(o)}),t.length>1?t.join("/"):"/"}function px(n,e,t,r){return"Cannot include a '"+n+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(r)+"]. Please separate it out to the ")+("`to."+t+"` field. Alternatively you may provide the full path as ")+'a string in <Link to="..."> and the router will parse it for you.'}function NC(n){return n.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function vx(n,e,t,r){r===void 0&&(r=!1);let o;typeof n=="string"?o=Pl(n):(o=Vr({},n),$t(!o.pathname||!o.pathname.includes("?"),px("?","pathname","search",o)),$t(!o.pathname||!o.pathname.includes("#"),px("#","pathname","hash",o)),$t(!o.search||!o.search.includes("#"),px("#","search","hash",o)));let s=n===""||o.pathname==="",u=s?"/":o.pathname,f;if(r||u==null)f=t;else{let E=e.length-1;if(u.startsWith("..")){let w=u.split("/");for(;w[0]==="..";)w.shift(),E-=1;o.pathname=w.join("/")}f=E>=0?e[E]:"/"}let p=zK(o,f),v=u&&u!=="/"&&u.endsWith("/"),g=(s||u===".")&&t.endsWith("/");return!p.pathname.endsWith("/")&&(v||g)&&(p.pathname+="/"),p}const Iu=n=>n.join("/").replace(/\/\/+/g,"/"),GK=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),VK=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,KK=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;class Z2{constructor(e,t,r,o){o===void 0&&(o=!1),this.status=e,this.statusText=t||"",this.internal=o,r instanceof Error?(this.data=r.toString(),this.error=r):this.data=r}}function eD(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}const tD=["post","put","patch","delete"],WK=new Set(tD),YK=["get",...tD],QK=new Set(YK),XK=new Set([301,302,303,307,308]),JK=new Set([307,308]),mx={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},ZK={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},M0={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},nD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,e9=n=>({hasErrorBoundary:!!n.hasErrorBoundary});function t9(n){const e=n.window?n.window:typeof window<"u"?window:void 0,t=typeof e<"u"&&typeof e.document<"u"&&typeof e.document.createElement<"u",r=!t;$t(n.routes.length>0,"You must provide a non-empty routes array to createRouter");let o;if(n.mapRouteProperties)o=n.mapRouteProperties;else if(n.detectErrorBoundary){let re=n.detectErrorBoundary;o=le=>({hasErrorBoundary:re(le)})}else o=e9;let s={},u=hx(n.routes,o,void 0,s),f,p=n.basename||"/",v=Vr({v7_normalizeFormMethod:!1,v7_prependBasename:!1},n.future),g=null,E=new Set,w=null,S=null,A=null,k=n.hydrationData!=null,M=vm(u,n.history.location,p),P=null;if(M==null){let re=Ys(404,{pathname:n.history.location.pathname}),{matches:le,route:Re}=dD(u);M=le,P={[Re.id]:re}}let L=!M.some(re=>re.route.lazy)&&(!M.some(re=>re.route.loader)||n.hydrationData!=null),j,U={historyAction:n.history.action,location:n.history.location,matches:M,initialized:L,navigation:mx,restoreScrollPosition:n.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:n.hydrationData&&n.hydrationData.loaderData||{},actionData:n.hydrationData&&n.hydrationData.actionData||null,errors:n.hydrationData&&n.hydrationData.errors||P,fetchers:new Map,blockers:new Map},H=Kr.Pop,W=!1,Q,Te=!1,Ve=!1,ot=[],Me=[],je=new Map,te=0,ee=-1,ye=new Map,ve=new Set,pe=new Map,K=new Map,ge=new Map,B=!1;function ne(){return g=n.history.listen(re=>{let{action:le,location:Re,delta:Ge}=re;if(B){B=!1;return}da(ge.size===0||Ge!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let bt=hr({currentLocation:U.location,nextLocation:Re,historyAction:le});if(bt&&Ge!=null){B=!0,n.history.go(Ge*-1),Oi(bt,{state:"blocked",location:Re,proceed(){Oi(bt,{state:"proceeding",proceed:void 0,reset:void 0,location:Re}),n.history.go(Ge)},reset(){let tt=new Map(U.blockers);tt.set(bt,M0),De({blockers:tt})}});return}return _t(le,Re)}),U.initialized||_t(Kr.Pop,U.location),j}function ke(){g&&g(),E.clear(),Q&&Q.abort(),U.fetchers.forEach((re,le)=>zi(le)),U.blockers.forEach((re,le)=>gi(le))}function ut(re){return E.add(re),()=>E.delete(re)}function De(re){U=Vr({},U,re),E.forEach(le=>le(U))}function At(re,le){var Re,Ge;let bt=U.actionData!=null&&U.navigation.formMethod!=null&&Dl(U.navigation.formMethod)&&U.navigation.state==="loading"&&((Re=re.state)==null?void 0:Re._isRedirect)!==!0,tt;le.actionData?Object.keys(le.actionData).length>0?tt=le.actionData:tt=null:bt?tt=U.actionData:tt=null;let Ct=le.loaderData?cD(U.loaderData,le.loaderData,le.matches||[],le.errors):U.loaderData,We=U.blockers;We.size>0&&(We=new Map(We),We.forEach((cn,zn)=>We.set(zn,M0)));let qe=W===!0||U.navigation.formMethod!=null&&Dl(U.navigation.formMethod)&&((Ge=re.state)==null?void 0:Ge._isRedirect)!==!0;f&&(u=f,f=void 0),Te||H===Kr.Pop||(H===Kr.Push?n.history.push(re,re.state):H===Kr.Replace&&n.history.replace(re,re.state)),De(Vr({},le,{actionData:tt,loaderData:Ct,historyAction:H,location:re,initialized:!0,navigation:mx,revalidation:"idle",restoreScrollPosition:Et(re,le.matches||U.matches),preventScrollReset:qe,blockers:We})),H=Kr.Pop,W=!1,Te=!1,Ve=!1,ot=[],Me=[]}async function Lt(re,le){if(typeof re=="number"){n.history.go(re);return}let Re=gx(U.location,U.matches,p,v.v7_prependBasename,re,le==null?void 0:le.fromRouteId,le==null?void 0:le.relative),{path:Ge,submission:bt,error:tt}=rD(v.v7_normalizeFormMethod,!1,Re,le),Ct=U.location,We=rp(U.location,Ge,le&&le.state);We=Vr({},We,n.history.encodeLocation(We));let qe=le&&le.replace!=null?le.replace:void 0,cn=Kr.Push;qe===!0?cn=Kr.Replace:qe===!1||bt!=null&&Dl(bt.formMethod)&&bt.formAction===U.location.pathname+U.location.search&&(cn=Kr.Replace);let zn=le&&"preventScrollReset"in le?le.preventScrollReset===!0:void 0,_n=hr({currentLocation:Ct,nextLocation:We,historyAction:cn});if(_n){Oi(_n,{state:"blocked",location:We,proceed(){Oi(_n,{state:"proceeding",proceed:void 0,reset:void 0,location:We}),Lt(re,le)},reset(){let Jn=new Map(U.blockers);Jn.set(_n,M0),De({blockers:Jn})}});return}return await _t(cn,We,{submission:bt,pendingError:tt,preventScrollReset:zn,replace:le&&le.replace})}function zt(){if(_r(),De({revalidation:"loading"}),U.navigation.state!=="submitting"){if(U.navigation.state==="idle"){_t(U.historyAction,U.location,{startUninterruptedRevalidation:!0});return}_t(H||U.historyAction,U.navigation.location,{overrideNavigation:U.navigation})}}async function _t(re,le,Re){Q&&Q.abort(),Q=null,H=re,Te=(Re&&Re.startUninterruptedRevalidation)===!0,Ke(U.location,U.matches),W=(Re&&Re.preventScrollReset)===!0;let Ge=f||u,bt=Re&&Re.overrideNavigation,tt=vm(Ge,le,p);if(!tt){let Jn=Ys(404,{pathname:le.pathname}),{matches:Er,route:oo}=dD(Ge);Ni(),At(le,{matches:Er,loaderData:{},errors:{[oo.id]:Jn}});return}if(U.initialized&&!Ve&&a9(U.location,le)&&!(Re&&Re.submission&&Dl(Re.submission.formMethod))){At(le,{matches:tt});return}Q=new AbortController;let Ct=D0(n.history,le,Q.signal,Re&&Re.submission),We,qe;if(Re&&Re.pendingError)qe={[mm(tt).route.id]:Re.pendingError};else if(Re&&Re.submission&&Dl(Re.submission.formMethod)){let Jn=await gn(Ct,le,Re.submission,tt,{replace:Re.replace});if(Jn.shortCircuited)return;We=Jn.pendingActionData,qe=Jn.pendingActionError,bt=MC(le,Re.submission),Ct=new Request(Ct.url,{signal:Ct.signal})}let{shortCircuited:cn,loaderData:zn,errors:_n}=await Lr(Ct,le,tt,bt,Re&&Re.submission,Re&&Re.fetcherSubmission,Re&&Re.replace,We,qe);cn||(Q=null,At(le,Vr({matches:tt},We?{actionData:We}:{},{loaderData:zn,errors:_n})))}async function gn(re,le,Re,Ge,bt){bt===void 0&&(bt={}),_r();let tt=d9(le,Re);De({navigation:tt});let Ct,We=Ex(Ge,le);if(!We.route.action&&!We.route.lazy)Ct={type:xi.error,error:Ys(405,{method:re.method,pathname:le.pathname,routeId:We.route.id})};else if(Ct=await P0("action",re,We,Ge,s,o,p),re.signal.aborted)return{shortCircuited:!0};if(gm(Ct)){let qe;return bt&&bt.replace!=null?qe=bt.replace:qe=Ct.location===U.location.pathname+U.location.search,await or(U,Ct,{submission:Re,replace:qe}),{shortCircuited:!0}}if(L0(Ct)){let qe=mm(Ge,We.route.id);return(bt&&bt.replace)!==!0&&(H=Kr.Push),{pendingActionData:{},pendingActionError:{[qe.route.id]:Ct.error}}}if(ip(Ct))throw Ys(400,{type:"defer-action"});return{pendingActionData:{[We.route.id]:Ct.data}}}async function Lr(re,le,Re,Ge,bt,tt,Ct,We,qe){let cn=Ge||MC(le,bt),zn=bt||tt||mD(cn),_n=f||u,[Jn,Er]=iD(n.history,U,Re,zn,le,Ve,ot,Me,pe,ve,_n,p,We,qe);if(Ni(Ee=>!(Re&&Re.some($e=>$e.route.id===Ee))||Jn&&Jn.some($e=>$e.route.id===Ee)),ee=++te,Jn.length===0&&Er.length===0){let Ee=io();return At(le,Vr({matches:Re,loaderData:{},errors:qe||null},We?{actionData:We}:{},Ee?{fetchers:new Map(U.fetchers)}:{})),{shortCircuited:!0}}if(!Te){Er.forEach($e=>{let Xe=U.fetchers.get($e.key),qt=U0(void 0,Xe?Xe.data:void 0);U.fetchers.set($e.key,qt)});let Ee=We||U.actionData;De(Vr({navigation:cn},Ee?Object.keys(Ee).length===0?{actionData:null}:{actionData:Ee}:{},Er.length>0?{fetchers:new Map(U.fetchers)}:{}))}Er.forEach(Ee=>{je.has(Ee.key)&&lr(Ee.key),Ee.controller&&je.set(Ee.key,Ee.controller)});let oo=()=>Er.forEach(Ee=>lr(Ee.key));Q&&Q.signal.addEventListener("abort",oo);let{results:Io,loaderResults:Mi,fetcherResults:fa}=await Qr(U.matches,Re,Jn,Er,re);if(re.signal.aborted)return{shortCircuited:!0};Q&&Q.signal.removeEventListener("abort",oo),Er.forEach(Ee=>je.delete(Ee.key));let Ur=fD(Io);if(Ur){if(Ur.idx>=Jn.length){let Ee=Er[Ur.idx-Jn.length].key;ve.add(Ee)}return await or(U,Ur.result,{replace:Ct}),{shortCircuited:!0}}let{loaderData:yi,errors:_i}=uD(U,Re,Jn,Mi,qe,Er,fa,K);K.forEach((Ee,$e)=>{Ee.subscribe(Xe=>{(Xe||Ee.done)&&K.delete($e)})});let ao=io(),ha=Ii(ee),q=ao||ha||Er.length>0;return Vr({loaderData:yi,errors:_i},q?{fetchers:new Map(U.fetchers)}:{})}function jn(re){return U.fetchers.get(re)||ZK}function at(re,le,Re,Ge){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");je.has(re)&&lr(re);let bt=f||u,tt=gx(U.location,U.matches,p,v.v7_prependBasename,Re,le,Ge==null?void 0:Ge.relative),Ct=vm(bt,tt,p);if(!Ct){Ai(re,le,Ys(404,{pathname:tt}));return}let{path:We,submission:qe,error:cn}=rD(v.v7_normalizeFormMethod,!0,tt,Ge);if(cn){Ai(re,le,cn);return}let zn=Ex(Ct,We);if(W=(Ge&&Ge.preventScrollReset)===!0,qe&&Dl(qe.formMethod)){Xn(re,le,We,zn,Ct,qe);return}pe.set(re,{routeId:le,path:We}),yr(re,le,We,zn,Ct,qe)}async function Xn(re,le,Re,Ge,bt,tt){if(_r(),pe.delete(re),!Ge.route.action&&!Ge.route.lazy){let kt=Ys(405,{method:tt.formMethod,pathname:Re,routeId:le});Ai(re,le,kt);return}let Ct=U.fetchers.get(re),We=f9(tt,Ct);U.fetchers.set(re,We),De({fetchers:new Map(U.fetchers)});let qe=new AbortController,cn=D0(n.history,Re,qe.signal,tt);je.set(re,qe);let zn=te,_n=await P0("action",cn,Ge,bt,s,o,p);if(cn.signal.aborted){je.get(re)===qe&&je.delete(re);return}if(gm(_n))if(je.delete(re),ee>zn){let kt=ym(void 0);U.fetchers.set(re,kt),De({fetchers:new Map(U.fetchers)});return}else{ve.add(re);let kt=U0(tt);return U.fetchers.set(re,kt),De({fetchers:new Map(U.fetchers)}),or(U,_n,{submission:tt,isFetchActionRedirect:!0})}if(L0(_n)){Ai(re,le,_n.error);return}if(ip(_n))throw Ys(400,{type:"defer-action"});let Jn=U.navigation.location||U.location,Er=D0(n.history,Jn,qe.signal),oo=f||u,Io=U.navigation.state!=="idle"?vm(oo,U.navigation.location,p):U.matches;$t(Io,"Didn't find any matches after fetcher action");let Mi=++te;ye.set(re,Mi);let fa=U0(tt,_n.data);U.fetchers.set(re,fa);let[Ur,yi]=iD(n.history,U,Io,tt,Jn,Ve,ot,Me,pe,ve,oo,p,{[Ge.route.id]:_n.data},void 0);yi.filter(kt=>kt.key!==re).forEach(kt=>{let Bt=kt.key,Rt=U.fetchers.get(Bt),Xr=U0(void 0,Rt?Rt.data:void 0);U.fetchers.set(Bt,Xr),je.has(Bt)&&lr(Bt),kt.controller&&je.set(Bt,kt.controller)}),De({fetchers:new Map(U.fetchers)});let _i=()=>yi.forEach(kt=>lr(kt.key));qe.signal.addEventListener("abort",_i);let{results:ao,loaderResults:ha,fetcherResults:q}=await Qr(U.matches,Io,Ur,yi,Er);if(qe.signal.aborted)return;qe.signal.removeEventListener("abort",_i),ye.delete(re),je.delete(re),yi.forEach(kt=>je.delete(kt.key));let Ee=fD(ao);if(Ee){if(Ee.idx>=Ur.length){let kt=yi[Ee.idx-Ur.length].key;ve.add(kt)}return or(U,Ee.result)}let{loaderData:$e,errors:Xe}=uD(U,U.matches,Ur,ha,void 0,yi,q,K);if(U.fetchers.has(re)){let kt=ym(_n.data);U.fetchers.set(re,kt)}let qt=Ii(Mi);U.navigation.state==="loading"&&Mi>ee?($t(H,"Expected pending action"),Q&&Q.abort(),At(U.navigation.location,{matches:Io,loaderData:$e,errors:Xe,fetchers:new Map(U.fetchers)})):(De(Vr({errors:Xe,loaderData:cD(U.loaderData,$e,Io,Xe)},qt||yi.length>0?{fetchers:new Map(U.fetchers)}:{})),Ve=!1)}async function yr(re,le,Re,Ge,bt,tt){let Ct=U.fetchers.get(re),We=U0(tt,Ct?Ct.data:void 0);U.fetchers.set(re,We),De({fetchers:new Map(U.fetchers)});let qe=new AbortController,cn=D0(n.history,Re,qe.signal);je.set(re,qe);let zn=te,_n=await P0("loader",cn,Ge,bt,s,o,p);if(ip(_n)&&(_n=await vD(_n,cn.signal,!0)||_n),je.get(re)===qe&&je.delete(re),cn.signal.aborted)return;if(gm(_n))if(ee>zn){let Er=ym(void 0);U.fetchers.set(re,Er),De({fetchers:new Map(U.fetchers)});return}else{ve.add(re),await or(U,_n);return}if(L0(_n)){let Er=mm(U.matches,le);U.fetchers.delete(re),De({fetchers:new Map(U.fetchers),errors:{[Er.route.id]:_n.error}});return}$t(!ip(_n),"Unhandled fetcher deferred data");let Jn=ym(_n.data);U.fetchers.set(re,Jn),De({fetchers:new Map(U.fetchers)})}async function or(re,le,Re){let{submission:Ge,replace:bt,isFetchActionRedirect:tt}=Re===void 0?{}:Re;le.revalidate&&(Ve=!0);let Ct=rp(re.location,le.location,Vr({_isRedirect:!0},tt?{_isFetchActionRedirect:!0}:{}));if($t(Ct,"Expected a location on the redirect navigation"),t){let cn=!1;if(le.reloadDocument)cn=!0;else if(nD.test(le.location)){const zn=n.history.createURL(le.location);cn=zn.origin!==e.location.origin||rf(zn.pathname,p)==null}if(cn){bt?e.location.replace(le.location):e.location.assign(le.location);return}}Q=null;let We=bt===!0?Kr.Replace:Kr.Push,qe=Ge||mD(re.navigation);if(JK.has(le.status)&&qe&&Dl(qe.formMethod))await _t(We,Ct,{submission:Vr({},qe,{formAction:le.location}),preventScrollReset:W});else if(tt)await _t(We,Ct,{overrideNavigation:MC(Ct),fetcherSubmission:qe,preventScrollReset:W});else{let cn=MC(Ct,qe);await _t(We,Ct,{overrideNavigation:cn,preventScrollReset:W})}}async function Qr(re,le,Re,Ge,bt){let tt=await Promise.all([...Re.map(qe=>P0("loader",bt,qe,le,s,o,p)),...Ge.map(qe=>qe.matches&&qe.match&&qe.controller?P0("loader",D0(n.history,qe.path,qe.controller.signal),qe.match,qe.matches,s,o,p):{type:xi.error,error:Ys(404,{pathname:qe.path})})]),Ct=tt.slice(0,Re.length),We=tt.slice(Re.length);return await Promise.all([pD(re,Re,Ct,Ct.map(()=>bt.signal),!1,U.loaderData),pD(re,Ge.map(qe=>qe.match),We,Ge.map(qe=>qe.controller?qe.controller.signal:null),!0)]),{results:tt,loaderResults:Ct,fetcherResults:We}}function _r(){Ve=!0,ot.push(...Ni()),pe.forEach((re,le)=>{je.has(le)&&(Me.push(le),lr(le))})}function Ai(re,le,Re){let Ge=mm(U.matches,le);zi(re),De({errors:{[Ge.route.id]:Re},fetchers:new Map(U.fetchers)})}function zi(re){let le=U.fetchers.get(re);je.has(re)&&!(le&&le.state==="loading"&&ye.has(re))&&lr(re),pe.delete(re),ye.delete(re),ve.delete(re),U.fetchers.delete(re)}function lr(re){let le=je.get(re);$t(le,"Expected fetch controller: "+re),le.abort(),je.delete(re)}function ki(re){for(let le of re){let Re=jn(le),Ge=ym(Re.data);U.fetchers.set(le,Ge)}}function io(){let re=[],le=!1;for(let Re of ve){let Ge=U.fetchers.get(Re);$t(Ge,"Expected fetcher: "+Re),Ge.state==="loading"&&(ve.delete(Re),re.push(Re),le=!0)}return ki(re),le}function Ii(re){let le=[];for(let[Re,Ge]of ye)if(Ge<re){let bt=U.fetchers.get(Re);$t(bt,"Expected fetcher: "+Re),bt.state==="loading"&&(lr(Re),ye.delete(Re),le.push(Re))}return ki(le),le.length>0}function Go(re,le){let Re=U.blockers.get(re)||M0;return ge.get(re)!==le&&ge.set(re,le),Re}function gi(re){U.blockers.delete(re),ge.delete(re)}function Oi(re,le){let Re=U.blockers.get(re)||M0;$t(Re.state==="unblocked"&&le.state==="blocked"||Re.state==="blocked"&&le.state==="blocked"||Re.state==="blocked"&&le.state==="proceeding"||Re.state==="blocked"&&le.state==="unblocked"||Re.state==="proceeding"&&le.state==="unblocked","Invalid blocker state transition: "+Re.state+" -> "+le.state);let Ge=new Map(U.blockers);Ge.set(re,le),De({blockers:Ge})}function hr(re){let{currentLocation:le,nextLocation:Re,historyAction:Ge}=re;if(ge.size===0)return;ge.size>1&&da(!1,"A router only supports one blocker at a time");let bt=Array.from(ge.entries()),[tt,Ct]=bt[bt.length-1],We=U.blockers.get(tt);if(!(We&&We.state==="proceeding")&&Ct({currentLocation:le,nextLocation:Re,historyAction:Ge}))return tt}function Ni(re){let le=[];return K.forEach((Re,Ge)=>{(!re||re(Ge))&&(Re.cancel(),le.push(Ge),K.delete(Ge))}),le}function rs(re,le,Re){if(w=re,A=le,S=Re||null,!k&&U.navigation===mx){k=!0;let Ge=Et(U.location,U.matches);Ge!=null&&De({restoreScrollPosition:Ge})}return()=>{w=null,A=null,S=null}}function ko(re,le){return S&&S(re,le.map(Ge=>c9(Ge,U.loaderData)))||re.key}function Ke(re,le){if(w&&A){let Re=ko(re,le);w[Re]=A()}}function Et(re,le){if(w){let Re=ko(re,le),Ge=w[Re];if(typeof Ge=="number")return Ge}return null}function tn(re){s={},f=hx(re,o,void 0,s)}return j={get basename(){return p},get state(){return U},get routes(){return u},initialize:ne,subscribe:ut,enableScrollRestoration:rs,navigate:Lt,fetch:at,revalidate:zt,createHref:re=>n.history.createHref(re),encodeLocation:re=>n.history.encodeLocation(re),getFetcher:jn,deleteFetcher:zi,dispose:ke,getBlocker:Go,deleteBlocker:gi,_internalFetchControllers:je,_internalActiveDeferreds:K,_internalSetRoutes:tn},j}function n9(n){return n!=null&&("formData"in n&&n.formData!=null||"body"in n&&n.body!==void 0)}function gx(n,e,t,r,o,s,u){let f,p;if(s!=null&&u!=="path"){f=[];for(let g of e)if(f.push(g),g.route.id===s){p=g;break}}else f=e,p=e[e.length-1];let v=vx(o||".",NC(f).map(g=>g.pathnameBase),rf(n.pathname,t)||n.pathname,u==="path");return o==null&&(v.search=n.search,v.hash=n.hash),(o==null||o===""||o===".")&&p&&p.route.index&&!_x(v.search)&&(v.search=v.search?v.search.replace(/^\?/,"?index&"):"?index"),r&&t!=="/"&&(v.pathname=v.pathname==="/"?t:Iu([t,v.pathname])),ku(v)}function rD(n,e,t,r){if(!r||!n9(r))return{path:t};if(r.formMethod&&!u9(r.formMethod))return{path:t,error:Ys(405,{method:r.formMethod})};let o=()=>({path:t,error:Ys(400,{type:"invalid-body"})}),s=r.formMethod||"get",u=n?s.toUpperCase():s.toLowerCase(),f=hD(t);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!Dl(u))return o();let w=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((S,A)=>{let[k,M]=A;return""+S+k+"="+M+`
278
+ `},""):String(r.body);return{path:t,submission:{formMethod:u,formAction:f,formEncType:r.formEncType,formData:void 0,json:void 0,text:w}}}else if(r.formEncType==="application/json"){if(!Dl(u))return o();try{let w=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:t,submission:{formMethod:u,formAction:f,formEncType:r.formEncType,formData:void 0,json:w,text:void 0}}}catch{return o()}}}$t(typeof FormData=="function","FormData is not available in this environment");let p,v;if(r.formData)p=yx(r.formData),v=r.formData;else if(r.body instanceof FormData)p=yx(r.body),v=r.body;else if(r.body instanceof URLSearchParams)p=r.body,v=lD(p);else if(r.body==null)p=new URLSearchParams,v=new FormData;else try{p=new URLSearchParams(r.body),v=lD(p)}catch{return o()}let g={formMethod:u,formAction:f,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:v,json:void 0,text:void 0};if(Dl(g.formMethod))return{path:t,submission:g};let E=Pl(t);return e&&E.search&&_x(E.search)&&p.append("index",""),E.search="?"+p,{path:ku(E),submission:g}}function r9(n,e){let t=n;if(e){let r=n.findIndex(o=>o.route.id===e);r>=0&&(t=n.slice(0,r))}return t}function iD(n,e,t,r,o,s,u,f,p,v,g,E,w,S){let A=S?Object.values(S)[0]:w?Object.values(w)[0]:void 0,k=n.createURL(e.location),M=n.createURL(o),P=S?Object.keys(S)[0]:void 0,j=r9(t,P).filter((H,W)=>{if(H.route.lazy)return!0;if(H.route.loader==null)return!1;if(i9(e.loaderData,e.matches[W],H)||u.some(Ve=>Ve===H.route.id))return!0;let Q=e.matches[W],Te=H;return aD(H,Vr({currentUrl:k,currentParams:Q.params,nextUrl:M,nextParams:Te.params},r,{actionResult:A,defaultShouldRevalidate:s||k.pathname+k.search===M.pathname+M.search||k.search!==M.search||oD(Q,Te)}))}),U=[];return p.forEach((H,W)=>{if(!t.some(Me=>Me.route.id===H.routeId))return;let Q=vm(g,H.path,E);if(!Q){U.push({key:W,routeId:H.routeId,path:H.path,matches:null,match:null,controller:null});return}let Te=e.fetchers.get(W),Ve=Ex(Q,H.path),ot=!1;v.has(W)?ot=!1:f.includes(W)?ot=!0:Te&&Te.state!=="idle"&&Te.data===void 0?ot=s:ot=aD(Ve,Vr({currentUrl:k,currentParams:e.matches[e.matches.length-1].params,nextUrl:M,nextParams:t[t.length-1].params},r,{actionResult:A,defaultShouldRevalidate:s})),ot&&U.push({key:W,routeId:H.routeId,path:H.path,matches:Q,match:Ve,controller:new AbortController})}),[j,U]}function i9(n,e,t){let r=!e||t.route.id!==e.route.id,o=n[t.route.id]===void 0;return r||o}function oD(n,e){let t=n.route.path;return n.pathname!==e.pathname||t!=null&&t.endsWith("*")&&n.params["*"]!==e.params["*"]}function aD(n,e){if(n.route.shouldRevalidate){let t=n.route.shouldRevalidate(e);if(typeof t=="boolean")return t}return e.defaultShouldRevalidate}async function sD(n,e,t){if(!n.lazy)return;let r=await n.lazy();if(!n.lazy)return;let o=t[n.id];$t(o,"No route found in manifest");let s={};for(let u in r){let p=o[u]!==void 0&&u!=="hasErrorBoundary";da(!p,'Route "'+o.id+'" has a static property "'+u+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+u+'" will be ignored.')),!p&&!xK.has(u)&&(s[u]=r[u])}Object.assign(o,s),Object.assign(o,Vr({},e(o),{lazy:void 0}))}async function P0(n,e,t,r,o,s,u,f){f===void 0&&(f={});let p,v,g,E=A=>{let k,M=new Promise((P,L)=>k=L);return g=()=>k(),e.signal.addEventListener("abort",g),Promise.race([A({request:e,params:t.params,context:f.requestContext}),M])};try{let A=t.route[n];if(t.route.lazy)if(A)v=(await Promise.all([E(A),sD(t.route,s,o)]))[0];else if(await sD(t.route,s,o),A=t.route[n],A)v=await E(A);else if(n==="action"){let k=new URL(e.url),M=k.pathname+k.search;throw Ys(405,{method:e.method,pathname:M,routeId:t.route.id})}else return{type:xi.data,data:void 0};else if(A)v=await E(A);else{let k=new URL(e.url),M=k.pathname+k.search;throw Ys(404,{pathname:M})}$t(v!==void 0,"You defined "+(n==="action"?"an action":"a loader")+" for route "+('"'+t.route.id+"\" but didn't return anything from your `"+n+"` ")+"function. Please return a value or `null`.")}catch(A){p=xi.error,v=A}finally{g&&e.signal.removeEventListener("abort",g)}if(l9(v)){let A=v.status;if(XK.has(A)){let P=v.headers.get("Location");if($t(P,"Redirects returned/thrown from loaders/actions must have a Location header"),!nD.test(P))P=gx(new URL(e.url),r.slice(0,r.indexOf(t)+1),u,!0,P);else if(!f.isStaticRequest){let L=new URL(e.url),j=P.startsWith("//")?new URL(L.protocol+P):new URL(P),U=rf(j.pathname,u)!=null;j.origin===L.origin&&U&&(P=j.pathname+j.search+j.hash)}if(f.isStaticRequest)throw v.headers.set("Location",P),v;return{type:xi.redirect,status:A,location:P,revalidate:v.headers.get("X-Remix-Revalidate")!==null,reloadDocument:v.headers.get("X-Remix-Reload-Document")!==null}}if(f.isRouteRequest)throw{type:p===xi.error?xi.error:xi.data,response:v};let k,M=v.headers.get("Content-Type");return M&&/\bapplication\/json\b/.test(M)?k=await v.json():k=await v.text(),p===xi.error?{type:p,error:new Z2(A,v.statusText,k),headers:v.headers}:{type:xi.data,data:k,statusCode:v.status,headers:v.headers}}if(p===xi.error)return{type:p,error:v};if(s9(v)){var w,S;return{type:xi.deferred,deferredData:v,statusCode:(w=v.init)==null?void 0:w.status,headers:((S=v.init)==null?void 0:S.headers)&&new Headers(v.init.headers)}}return{type:xi.data,data:v}}function D0(n,e,t,r){let o=n.createURL(hD(e)).toString(),s={signal:t};if(r&&Dl(r.formMethod)){let{formMethod:u,formEncType:f}=r;s.method=u.toUpperCase(),f==="application/json"?(s.headers=new Headers({"Content-Type":f}),s.body=JSON.stringify(r.json)):f==="text/plain"?s.body=r.text:f==="application/x-www-form-urlencoded"&&r.formData?s.body=yx(r.formData):s.body=r.formData}return new Request(o,s)}function yx(n){let e=new URLSearchParams;for(let[t,r]of n.entries())e.append(t,typeof r=="string"?r:r.name);return e}function lD(n){let e=new FormData;for(let[t,r]of n.entries())e.append(t,r);return e}function o9(n,e,t,r,o){let s={},u=null,f,p=!1,v={};return t.forEach((g,E)=>{let w=e[E].route.id;if($t(!gm(g),"Cannot handle redirect results in processLoaderData"),L0(g)){let S=mm(n,w),A=g.error;r&&(A=Object.values(r)[0],r=void 0),u=u||{},u[S.route.id]==null&&(u[S.route.id]=A),s[w]=void 0,p||(p=!0,f=eD(g.error)?g.error.status:500),g.headers&&(v[w]=g.headers)}else ip(g)?(o.set(w,g.deferredData),s[w]=g.deferredData.data):s[w]=g.data,g.statusCode!=null&&g.statusCode!==200&&!p&&(f=g.statusCode),g.headers&&(v[w]=g.headers)}),r&&(u=r,s[Object.keys(r)[0]]=void 0),{loaderData:s,errors:u,statusCode:f||200,loaderHeaders:v}}function uD(n,e,t,r,o,s,u,f){let{loaderData:p,errors:v}=o9(e,t,r,o,f);for(let g=0;g<s.length;g++){let{key:E,match:w,controller:S}=s[g];$t(u!==void 0&&u[g]!==void 0,"Did not find corresponding fetcher result");let A=u[g];if(!(S&&S.signal.aborted))if(L0(A)){let k=mm(n.matches,w==null?void 0:w.route.id);v&&v[k.route.id]||(v=Vr({},v,{[k.route.id]:A.error})),n.fetchers.delete(E)}else if(gm(A))$t(!1,"Unhandled fetcher revalidation redirect");else if(ip(A))$t(!1,"Unhandled fetcher deferred data");else{let k=ym(A.data);n.fetchers.set(E,k)}}return{loaderData:p,errors:v}}function cD(n,e,t,r){let o=Vr({},e);for(let s of t){let u=s.route.id;if(e.hasOwnProperty(u)?e[u]!==void 0&&(o[u]=e[u]):n[u]!==void 0&&s.route.loader&&(o[u]=n[u]),r&&r.hasOwnProperty(u))break}return o}function mm(n,e){return(e?n.slice(0,n.findIndex(r=>r.route.id===e)+1):[...n]).reverse().find(r=>r.route.hasErrorBoundary===!0)||n[0]}function dD(n){let e=n.find(t=>t.index||!t.path||t.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function Ys(n,e){let{pathname:t,routeId:r,method:o,type:s}=e===void 0?{}:e,u="Unknown Server Error",f="Unknown @remix-run/router error";return n===400?(u="Bad Request",o&&t&&r?f="You made a "+o+' request to "'+t+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":s==="defer-action"?f="defer() is not supported in actions":s==="invalid-body"&&(f="Unable to encode submission body")):n===403?(u="Forbidden",f='Route "'+r+'" does not match URL "'+t+'"'):n===404?(u="Not Found",f='No route matches URL "'+t+'"'):n===405&&(u="Method Not Allowed",o&&t&&r?f="You made a "+o.toUpperCase()+' request to "'+t+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":o&&(f='Invalid request method "'+o.toUpperCase()+'"')),new Z2(n||500,u,new Error(f),!0)}function fD(n){for(let e=n.length-1;e>=0;e--){let t=n[e];if(gm(t))return{result:t,idx:e}}}function hD(n){let e=typeof n=="string"?Pl(n):n;return ku(Vr({},e,{hash:""}))}function a9(n,e){return n.pathname!==e.pathname||n.search!==e.search?!1:n.hash===""?e.hash!=="":n.hash===e.hash?!0:e.hash!==""}function ip(n){return n.type===xi.deferred}function L0(n){return n.type===xi.error}function gm(n){return(n&&n.type)===xi.redirect}function s9(n){let e=n;return e&&typeof e=="object"&&typeof e.data=="object"&&typeof e.subscribe=="function"&&typeof e.cancel=="function"&&typeof e.resolveData=="function"}function l9(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.headers=="object"&&typeof n.body<"u"}function u9(n){return QK.has(n.toLowerCase())}function Dl(n){return WK.has(n.toLowerCase())}async function pD(n,e,t,r,o,s){for(let u=0;u<t.length;u++){let f=t[u],p=e[u];if(!p)continue;let v=n.find(E=>E.route.id===p.route.id),g=v!=null&&!oD(v,p)&&(s&&s[p.route.id])!==void 0;if(ip(f)&&(o||g)){let E=r[u];$t(E,"Expected an AbortSignal for revalidating fetcher deferred result"),await vD(f,E,o).then(w=>{w&&(t[u]=w||t[u])})}}}async function vD(n,e,t){if(t===void 0&&(t=!1),!await n.deferredData.resolveData(e)){if(t)try{return{type:xi.data,data:n.deferredData.unwrappedData}}catch(o){return{type:xi.error,error:o}}return{type:xi.data,data:n.deferredData.data}}}function _x(n){return new URLSearchParams(n).getAll("index").some(e=>e==="")}function c9(n,e){let{route:t,pathname:r,params:o}=n;return{id:t.id,pathname:r,params:o,data:e[t.id],handle:t.handle}}function Ex(n,e){let t=typeof e=="string"?Pl(e).search:e.search;if(n[n.length-1].route.index&&_x(t||""))return n[n.length-1];let r=NC(n);return r[r.length-1]}function mD(n){let{formMethod:e,formAction:t,formEncType:r,text:o,formData:s,json:u}=n;if(!(!e||!t||!r)){if(o!=null)return{formMethod:e,formAction:t,formEncType:r,formData:void 0,json:void 0,text:o};if(s!=null)return{formMethod:e,formAction:t,formEncType:r,formData:s,json:void 0,text:void 0};if(u!==void 0)return{formMethod:e,formAction:t,formEncType:r,formData:void 0,json:u,text:void 0}}}function MC(n,e){return e?{state:"loading",location:n,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}:{state:"loading",location:n,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function d9(n,e){return{state:"submitting",location:n,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text}}function U0(n,e){return n?{state:"loading",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:e," _hasFetcherDoneAnything ":!0}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e," _hasFetcherDoneAnything ":!0}}function f9(n,e){return{state:"submitting",formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text,data:e?e.data:void 0," _hasFetcherDoneAnything ":!0}}function ym(n){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n," _hasFetcherDoneAnything ":!0}}const h9=n=>{switch(n){case"hash":return TK({v5Compat:!0});case"memory":return wK({v5Compat:!0});case"browser":default:return SK({v5Compat:!0})}};var Wr=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},PC=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!o:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(n,t):o?o.value=t:e.set(n,t),t},Qs,DC,bx,LC,Ou,op;class p9 extends yn{get basename(){return Wr(this,DC,"f")}get origin(){return Wr(this,bx,"f")}get state(){return Wr(this,Ou,"f").asObservable()}get value(){return Wr(this,Ou,"f").value}get location(){return this.value.location}get action(){return this.value.action}constructor(e){super(o=>Wr(this,Ou,"f").subscribe(o)),Qs.set(this,void 0),DC.set(this,void 0),bx.set(this,window.location.origin),LC.set(this,new Ho),Ou.set(this,void 0),op.set(this,void 0);const{basename:t,history:r}=e;PC(this,op,e.logger||console,"f"),PC(this,DC,t,"f"),PC(this,Qs,r,"f"),PC(this,Ou,new Yy({action:Wr(this,Qs,"f").action,location:Wr(this,Qs,"f").location,delta:null}),"f"),Wr(this,LC,"f").add(Wr(this,Qs,"f").listen(o=>{o.location.key!==Wr(this,Ou,"f").value.location.key&&(Wr(this,op,"f").debug("Navigator::constructor","history changed",o,Wr(this,Ou,"f").value),Wr(this,Ou,"f").next(o))}))}encodeLocation(e){return Wr(this,Qs,"f").encodeLocation(e)}listen(e){Wr(this,op,"f").debug("Navigator::listen",e);const t=Wr(this,Ou,"f").pipe($5(1)).subscribe(r=>{Wr(this,op,"f").debug("Navigator::listen[onchange]"),e(r)});return()=>(Wr(this,op,"f").debug("Navigator::listen[unsubscribe]"),t.unsubscribe())}createHref(e){return Wr(this,Qs,"f").createHref(e)}go(e){Wr(this,Qs,"f").go(e)}push(e,t){return Wr(this,Qs,"f").push(e,t)}replace(e,t){return Wr(this,Qs,"f").replace(e,t)}createURL(e){return Wr(this,Qs,"f").createURL(e)}dispose(){Wr(this,LC,"f").unsubscribe()}}Qs=new WeakMap,DC=new WeakMap,bx=new WeakMap,LC=new WeakMap,Ou=new WeakMap,op=new WeakMap;var Xs=globalThis&&globalThis.__classPrivateFieldGet||function(n,e,t,r){if(t==="a"&&!r)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?n!==e||!r:!e.has(n))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?r:t==="a"?r.call(n):r?r.value:e.get(n)},gD=globalThis&&globalThis.__classPrivateFieldSet||function(n,e,t,r,o){if(r==="m")throw new TypeError("Private method is not writable");if(r==="a"&&!o)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?n!==e||!o:!e.has(n))throw new TypeError("Cannot write private member to an object whose class did not declare it");return r==="a"?o.call(n,t):o?o.value=t:e.set(n,t),t},Ll,ap;const yD=n=>n.replace(/\/+/g,"/");class v9 extends uP{get state$(){return Xs(this,Ll,"f").pipe(ln(e=>Xs(this,ap,"f")?e.location.pathname.startsWith(Xs(this,ap,"f")):!0),pn(({action:e,location:t})=>({action:e,location:this._localizePath(t)})))}get navigator(){return Xs(this,Ll,"f")}get path(){return this._localizePath(this.navigator.location)}constructor(e){super(e),Ll.set(this,void 0),ap.set(this,void 0);const{basename:t,history:r}=e.config;if(gD(this,ap,t,"f"),!r)throw Error("no history provided!");gD(this,Ll,new p9({basename:t,history:r}),"f"),this._addTeardown(()=>Xs(this,Ll,"f").dispose())}createRouter(e){const t=Xs(this,Ll,"f");console.debug("NavigationProvider::createRouter",e);const r=t9({basename:t.basename,history:t,routes:e,future:{v7_prependBasename:!0}});return r.initialize(),r}createHref(e){return Xs(this,Ll,"f").createHref(this._createToPath(e??this.path))}createURL(e){return Xs(this,Ll,"f").createURL(this._createToPath(e??this.path))}push(e,t){return Xs(this,Ll,"f").push(this._createToPath(e),t)}replace(e,t){return Xs(this,Ll,"f").replace(this._createToPath(e),t)}_localizePath(e){var t;const{pathname:r,search:o,hash:s}=e;return{pathname:yD(r.replace((t=Xs(this,ap,"f"))!==null&&t!==void 0?t:"","")),search:o,hash:s}}_createToPath(e){const{pathname:t,search:r,hash:o}=typeof e=="string"?{pathname:e,search:void 0,hash:void 0}:e;return{pathname:yD([Xs(this,ap,"f"),t==="/"?void 0:t].filter(s=>!!s).join("/")),search:r,hash:o}}}Ll=new WeakMap,ap=new WeakMap;const _D="3.0.5",m9="navigation",g9={version:new Wy(_D),name:m9,configure:n=>{const e=new CK;return n&&(e.history=n.navigation.navigator),e},initialize:({config:n})=>{var e;return(e=n.history)!==null&&e!==void 0||(n.history=h9()),new v9({version:_D,config:n})},dispose({instance:n}){n.dispose()}},y9=(n,e)=>{const t=typeof e=="string"?{configure:r=>{r.basename=e}}:e;n.addConfig(Object.assign({module:g9},t))},_9=async n=>{n.logger.level=2,n.configureServiceDiscovery({client:{baseUri:typeof document>"u"&&typeof location>"u"?require("url").pathToFileURL(__filename).href:typeof document>"u"?location.href:zr&&zr.src||new URL("roma-framework.umd.js",document.baseURI).href,defaultScopes:["83c0f0fa-eff6-4199-87a0-c25f28ca4bb3/.default"]}}),n.configureMsal({tenantId:"3aa4a235-b6e2-48d5-9195-7fcf05b459b0",clientId:"340d41e6-6293-4276-a623-4c7f1d1b0650",redirectUri:"/authentication/login-callback"},{requiresAuth:!0}),bK(n),y9(n),OG(n),n.onConfigured(()=>{console.log("framework config done")}),n.onInitialized(async e=>{e.auth.defaultClient.setLogger(new QP(4)),window.sessionStorage.clear(),e.event.subscribe(t=>console.log(`🔔🌍 [${t.type}]`,t.detail,t))})};function Wc(n){"@babel/helpers - typeof";return Wc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Wc(n)}function E9(n,e){if(Wc(n)!=="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e||"default");if(Wc(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function b9(n){var e=E9(n,"string");return Wc(e)==="symbol"?e:String(e)}function Cx(n,e,t){return e=b9(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function ED(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(o){return Object.getOwnPropertyDescriptor(n,o).enumerable})),t.push.apply(t,r)}return t}function he(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?ED(Object(t),!0).forEach(function(r){Cx(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):ED(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function C9(n,e){if(n==null)return{};var t={},r=Object.keys(n),o,s;for(s=0;s<r.length;s++)o=r[s],!(e.indexOf(o)>=0)&&(t[o]=n[o]);return t}function Qn(n,e){if(n==null)return{};var t=C9(n,e),r,o;if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(n);for(o=0;o<s.length;o++)r=s[o],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function w9(n){var e=Object.create(null);return function(t){return e[t]===void 0&&(e[t]=n(t)),e[t]}}var S9=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|abbr|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|enterKeyHint|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|translate|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|incremental|fallback|inert|itemProp|itemScope|itemType|itemID|itemRef|on|option|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRendering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,T9=w9(function(n){return S9.test(n)||n.charCodeAt(0)===111&&n.charCodeAt(1)===110&&n.charCodeAt(2)<91}),Pr="-ms-",F0="-moz-",nr="-webkit-",bD="comm",UC="rule",wx="decl",R9="@import",CD="@keyframes",x9="@layer",A9=Math.abs,Sx=String.fromCharCode,Tx=Object.assign;function k9(n,e){return xo(n,0)^45?(((e<<2^xo(n,0))<<2^xo(n,1))<<2^xo(n,2))<<2^xo(n,3):0}function wD(n){return n.trim()}function Yc(n,e){return(n=e.exec(n))?n[0]:n}function vn(n,e,t){return n.replace(e,t)}function FC(n,e){return n.indexOf(e)}function xo(n,e){return n.charCodeAt(e)|0}function _m(n,e,t){return n.slice(e,t)}function Nu(n){return n.length}function SD(n){return n.length}function H0(n,e){return e.push(n),n}function I9(n,e){return n.map(e).join("")}function TD(n,e){return n.filter(function(t){return!Yc(t,e)})}var HC=1,Em=1,RD=0,Js=0,ji=0,bm="";function $C(n,e,t,r,o,s,u,f){return{value:n,root:e,parent:t,type:r,props:o,children:s,line:HC,column:Em,length:u,return:"",siblings:f}}function of(n,e){return Tx($C("",null,null,"",null,null,0,n.siblings),n,{length:-n.length},e)}function Cm(n){for(;n.root;)n=of(n.root,{children:[n]});H0(n,n.siblings)}function O9(){return ji}function N9(){return ji=Js>0?xo(bm,--Js):0,Em--,ji===10&&(Em=1,HC--),ji}function Ul(){return ji=Js<RD?xo(bm,Js++):0,Em++,ji===10&&(Em=1,HC++),ji}function sp(){return xo(bm,Js)}function BC(){return Js}function jC(n,e){return _m(bm,n,e)}function Rx(n){switch(n){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 M9(n){return HC=Em=1,RD=Nu(bm=n),Js=0,[]}function P9(n){return bm="",n}function xx(n){return wD(jC(Js-1,Ax(n===91?n+2:n===40?n+1:n)))}function D9(n){for(;(ji=sp())&&ji<33;)Ul();return Rx(n)>2||Rx(ji)>3?"":" "}function L9(n,e){for(;--e&&Ul()&&!(ji<48||ji>102||ji>57&&ji<65||ji>70&&ji<97););return jC(n,BC()+(e<6&&sp()==32&&Ul()==32))}function Ax(n){for(;Ul();)switch(ji){case n:return Js;case 34:case 39:n!==34&&n!==39&&Ax(ji);break;case 40:n===41&&Ax(n);break;case 92:Ul();break}return Js}function U9(n,e){for(;Ul()&&n+ji!==47+10;)if(n+ji===42+42&&sp()===47)break;return"/*"+jC(e,Js-1)+"*"+Sx(n===47?n:Ul())}function F9(n){for(;!Rx(sp());)Ul();return jC(n,Js)}function H9(n){return P9(zC("",null,null,null,[""],n=M9(n),0,[0],n))}function zC(n,e,t,r,o,s,u,f,p){for(var v=0,g=0,E=u,w=0,S=0,A=0,k=1,M=1,P=1,L=0,j="",U=o,H=s,W=r,Q=j;M;)switch(A=L,L=Ul()){case 40:if(A!=108&&xo(Q,E-1)==58){FC(Q+=vn(xx(L),"&","&\f"),"&\f")!=-1&&(P=-1);break}case 34:case 39:case 91:Q+=xx(L);break;case 9:case 10:case 13:case 32:Q+=D9(A);break;case 92:Q+=L9(BC()-1,7);continue;case 47:switch(sp()){case 42:case 47:H0($9(U9(Ul(),BC()),e,t,p),p);break;default:Q+="/"}break;case 123*k:f[v++]=Nu(Q)*P;case 125*k:case 59:case 0:switch(L){case 0:case 125:M=0;case 59+g:P==-1&&(Q=vn(Q,/\f/g,"")),S>0&&Nu(Q)-E&&H0(S>32?AD(Q+";",r,t,E-1,p):AD(vn(Q," ","")+";",r,t,E-2,p),p);break;case 59:Q+=";";default:if(H0(W=xD(Q,e,t,v,g,o,f,j,U=[],H=[],E,s),s),L===123)if(g===0)zC(Q,e,W,W,U,s,E,f,H);else switch(w===99&&xo(Q,3)===110?100:w){case 100:case 108:case 109:case 115:zC(n,W,W,r&&H0(xD(n,W,W,0,0,o,f,j,o,U=[],E,H),H),o,H,E,f,r?U:H);break;default:zC(Q,W,W,W,[""],H,0,f,H)}}v=g=S=0,k=P=1,j=Q="",E=u;break;case 58:E=1+Nu(Q),S=A;default:if(k<1){if(L==123)--k;else if(L==125&&k++==0&&N9()==125)continue}switch(Q+=Sx(L),L*k){case 38:P=g>0?1:(Q+="\f",-1);break;case 44:f[v++]=(Nu(Q)-1)*P,P=1;break;case 64:sp()===45&&(Q+=xx(Ul())),w=sp(),g=E=Nu(j=Q+=F9(BC())),L++;break;case 45:A===45&&Nu(Q)==2&&(k=0)}}return s}function xD(n,e,t,r,o,s,u,f,p,v,g,E){for(var w=o-1,S=o===0?s:[""],A=SD(S),k=0,M=0,P=0;k<r;++k)for(var L=0,j=_m(n,w+1,w=A9(M=u[k])),U=n;L<A;++L)(U=wD(M>0?S[L]+" "+j:vn(j,/&\f/g,S[L])))&&(p[P++]=U);return $C(n,e,t,o===0?UC:f,p,v,g,E)}function $9(n,e,t,r){return $C(n,e,t,bD,Sx(O9()),_m(n,2,-2),0,r)}function AD(n,e,t,r,o){return $C(n,e,t,wx,_m(n,0,r),_m(n,r+1,-1),r,o)}function kD(n,e,t){switch(k9(n,e)){case 5103:return nr+"print-"+n+n;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return nr+n+n;case 4789:return F0+n+n;case 5349:case 4246:case 4810:case 6968:case 2756:return nr+n+F0+n+Pr+n+n;case 5936:switch(xo(n,e+11)){case 114:return nr+n+Pr+vn(n,/[svh]\w+-[tblr]{2}/,"tb")+n;case 108:return nr+n+Pr+vn(n,/[svh]\w+-[tblr]{2}/,"tb-rl")+n;case 45:return nr+n+Pr+vn(n,/[svh]\w+-[tblr]{2}/,"lr")+n}case 6828:case 4268:case 2903:return nr+n+Pr+n+n;case 6165:return nr+n+Pr+"flex-"+n+n;case 5187:return nr+n+vn(n,/(\w+).+(:[^]+)/,nr+"box-$1$2"+Pr+"flex-$1$2")+n;case 5443:return nr+n+Pr+"flex-item-"+vn(n,/flex-|-self/g,"")+(Yc(n,/flex-|baseline/)?"":Pr+"grid-row-"+vn(n,/flex-|-self/g,""))+n;case 4675:return nr+n+Pr+"flex-line-pack"+vn(n,/align-content|flex-|-self/g,"")+n;case 5548:return nr+n+Pr+vn(n,"shrink","negative")+n;case 5292:return nr+n+Pr+vn(n,"basis","preferred-size")+n;case 6060:return nr+"box-"+vn(n,"-grow","")+nr+n+Pr+vn(n,"grow","positive")+n;case 4554:return nr+vn(n,/([^-])(transform)/g,"$1"+nr+"$2")+n;case 6187:return vn(vn(vn(n,/(zoom-|grab)/,nr+"$1"),/(image-set)/,nr+"$1"),n,"")+n;case 5495:case 3959:return vn(n,/(image-set\([^]*)/,nr+"$1$`$1");case 4968:return vn(vn(n,/(.+:)(flex-)?(.*)/,nr+"box-pack:$3"+Pr+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+nr+n+n;case 4200:if(!Yc(n,/flex-|baseline/))return Pr+"grid-column-align"+_m(n,e)+n;break;case 2592:case 3360:return Pr+vn(n,"template-","")+n;case 4384:case 3616:return t&&t.some(function(r,o){return e=o,Yc(r.props,/grid-\w+-end/)})?~FC(n+(t=t[e].value),"span")?n:Pr+vn(n,"-start","")+n+Pr+"grid-row-span:"+(~FC(t,"span")?Yc(t,/\d+/):+Yc(t,/\d+/)-+Yc(n,/\d+/))+";":Pr+vn(n,"-start","")+n;case 4896:case 4128:return t&&t.some(function(r){return Yc(r.props,/grid-\w+-start/)})?n:Pr+vn(vn(n,"-end","-span"),"span ","")+n;case 4095:case 3583:case 4068:case 2532:return vn(n,/(.+)-inline(.+)/,nr+"$1$2")+n;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(Nu(n)-1-e>6)switch(xo(n,e+1)){case 109:if(xo(n,e+4)!==45)break;case 102:return vn(n,/(.+:)(.+)-([^]+)/,"$1"+nr+"$2-$3$1"+F0+(xo(n,e+3)==108?"$3":"$2-$3"))+n;case 115:return~FC(n,"stretch")?kD(vn(n,"stretch","fill-available"),e,t)+n:n}break;case 5152:case 5920:return vn(n,/(.+?):(\d+)(\s*\/\s*(span)?\s*(\d+))?(.*)/,function(r,o,s,u,f,p,v){return Pr+o+":"+s+v+(u?Pr+o+"-span:"+(f?p:+p-+s)+v:"")+n});case 4949:if(xo(n,e+6)===121)return vn(n,":",":"+nr)+n;break;case 6444:switch(xo(n,xo(n,14)===45?18:11)){case 120:return vn(n,/(.+:)([^;\s!]+)(;|(\s+)?!.+)?/,"$1"+nr+(xo(n,14)===45?"inline-":"")+"box$3$1"+nr+"$2$3$1"+Pr+"$2box$3")+n;case 100:return vn(n,":",":"+Pr)+n}break;case 5719:case 2647:case 2135:case 3927:case 2391:return vn(n,"scroll-","scroll-snap-")+n}return n}function qC(n,e){for(var t="",r=0;r<n.length;r++)t+=e(n[r],r,n,e)||"";return t}function B9(n,e,t,r){switch(n.type){case x9:if(n.children.length)break;case R9:case wx:return n.return=n.return||n.value;case bD:return"";case CD:return n.return=n.value+"{"+qC(n.children,r)+"}";case UC:if(!Nu(n.value=n.props.join(",")))return""}return Nu(t=qC(n.children,r))?n.return=n.value+"{"+t+"}":""}function j9(n){var e=SD(n);return function(t,r,o,s){for(var u="",f=0;f<e;f++)u+=n[f](t,r,o,s)||"";return u}}function z9(n){return function(e){e.root||(e=e.return)&&n(e)}}function q9(n,e,t,r){if(n.length>-1&&!n.return)switch(n.type){case wx:n.return=kD(n.value,n.length,t);return;case CD:return qC([of(n,{value:vn(n.value,"@","@"+nr)})],r);case UC:if(n.length)return I9(t=n.props,function(o){switch(Yc(o,r=/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":Cm(of(n,{props:[vn(o,/:(read-\w+)/,":"+F0+"$1")]})),Cm(of(n,{props:[o]})),Tx(n,{props:TD(t,r)});break;case"::placeholder":Cm(of(n,{props:[vn(o,/:(plac\w+)/,":"+nr+"input-$1")]})),Cm(of(n,{props:[vn(o,/:(plac\w+)/,":"+F0+"$1")]})),Cm(of(n,{props:[vn(o,/:(plac\w+)/,Pr+"input-$1")]})),Cm(of(n,{props:[o]})),Tx(n,{props:TD(t,r)});break}return""})}}var G9={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},lp=typeof process<"u"&&process.env!==void 0&&(process.env.REACT_APP_SC_ATTR||process.env.SC_ATTR)||"data-styled",kx=typeof window<"u"&&"HTMLElement"in window,V9=!!(typeof SC_DISABLE_SPEEDY=="boolean"?SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==void 0&&process.env.REACT_APP_SC_DISABLE_SPEEDY!==""?process.env.REACT_APP_SC_DISABLE_SPEEDY!=="false"&&process.env.REACT_APP_SC_DISABLE_SPEEDY:typeof process<"u"&&process.env!==void 0&&process.env.SC_DISABLE_SPEEDY!==void 0&&process.env.SC_DISABLE_SPEEDY!==""?process.env.SC_DISABLE_SPEEDY!=="false"&&process.env.SC_DISABLE_SPEEDY:process.env.NODE_ENV!=="production"),ID=/invalid hook call/i,GC=new Set,K9=function(n,e){if(process.env.NODE_ENV!=="production"){var t=e?' with the id of "'.concat(e,'"'):"",r="The component ".concat(n).concat(t,` has been created dynamically.
279
+ `)+`You may see this warning because you've called styled inside another component.
280
+ To resolve this only create new StyledComponents outside of any render method and function component.`,o=console.error;try{var s=!0;console.error=function(u){for(var f=[],p=1;p<arguments.length;p++)f[p-1]=arguments[p];ID.test(u)?(s=!1,GC.delete(r)):o.apply(void 0,gr([u],f,!1))},F.useRef(),s&&!GC.has(r)&&(console.warn(r),GC.add(r))}catch(u){ID.test(u.message)&&GC.delete(r)}finally{console.error=o}}},VC=Object.freeze([]),wm=Object.freeze({});function W9(n,e,t){return t===void 0&&(t=wm),n.theme!==t.theme&&n.theme||e||t.theme}var Ix=new Set(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","tr","track","u","ul","use","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"]),Y9=/[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g,Q9=/(^-|-$)/g;function OD(n){return n.replace(Y9,"-").replace(Q9,"")}var X9=/(a)(d)/gi,ND=function(n){return String.fromCharCode(n+(n>25?39:97))};function Ox(n){var e,t="";for(e=Math.abs(n);e>52;e=e/52|0)t=ND(e%52)+t;return(ND(e%52)+t).replace(X9,"$1-$2")}var Nx,up=function(n,e){for(var t=e.length;t;)n=33*n^e.charCodeAt(--t);return n},MD=function(n){return up(5381,n)};function PD(n){return Ox(MD(n)>>>0)}function DD(n){return process.env.NODE_ENV!=="production"&&typeof n=="string"&&n||n.displayName||n.name||"Component"}function Mx(n){return typeof n=="string"&&(process.env.NODE_ENV==="production"||n.charAt(0)===n.charAt(0).toLowerCase())}var LD=typeof Symbol=="function"&&Symbol.for,UD=LD?Symbol.for("react.memo"):60115,J9=LD?Symbol.for("react.forward_ref"):60112,Z9={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},e7={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},FD={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},t7=((Nx={})[J9]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},Nx[UD]=FD,Nx);function HD(n){return("type"in(e=n)&&e.type.$$typeof)===UD?FD:"$$typeof"in n?t7[n.$$typeof]:Z9;var e}var n7=Object.defineProperty,r7=Object.getOwnPropertyNames,$D=Object.getOwnPropertySymbols,i7=Object.getOwnPropertyDescriptor,o7=Object.getPrototypeOf,BD=Object.prototype;function jD(n,e,t){if(typeof e!="string"){if(BD){var r=o7(e);r&&r!==BD&&jD(n,r,t)}var o=r7(e);$D&&(o=o.concat($D(e)));for(var s=HD(n),u=HD(e),f=0;f<o.length;++f){var p=o[f];if(!(p in e7||t&&t[p]||u&&p in u||s&&p in s)){var v=i7(e,p);try{n7(n,p,v)}catch{}}}}return n}function cp(n){return typeof n=="function"}function Px(n){return typeof n=="object"&&"styledComponentId"in n}function dp(n,e){return n&&e?"".concat(n," ").concat(e):n||e||""}function Dx(n,e){if(n.length===0)return"";for(var t=n[0],r=1;r<n.length;r++)t+=e?e+n[r]:n[r];return t}function Sm(n){return n!==null&&typeof n=="object"&&n.constructor.name===Object.name&&!("props"in n&&n.$$typeof)}function Lx(n,e,t){if(t===void 0&&(t=!1),!t&&!Sm(n)&&!Array.isArray(n))return e;if(Array.isArray(e))for(var r=0;r<e.length;r++)n[r]=Lx(n[r],e[r]);else if(Sm(e))for(var r in e)n[r]=Lx(n[r],e[r]);return n}function Ux(n,e){Object.defineProperty(n,"toString",{value:e})}var a7=process.env.NODE_ENV!=="production"?{1:`Cannot create styled-component for component: %s.
281
+
282
+ `,2:`Can't collect styles once you've consumed a \`ServerStyleSheet\`'s styles! \`ServerStyleSheet\` is a one off instance for each server-side render cycle.
283
+
284
+ - Are you trying to reuse it across renders?
285
+ - Are you accidentally calling collectStyles twice?
286
+
287
+ `,3:`Streaming SSR is only supported in a Node.js environment; Please do not try to call this method in the browser.
288
+
289
+ `,4:`The \`StyleSheetManager\` expects a valid target or sheet prop!
290
+
291
+ - Does this error occur on the client and is your target falsy?
292
+ - Does this error occur on the server and is the sheet falsy?
293
+
294
+ `,5:`The clone method cannot be used on the client!
295
+
296
+ - Are you running in a client-like environment on the server?
297
+ - Are you trying to run SSR on the client?
298
+
299
+ `,6:`Trying to insert a new style tag, but the given Node is unmounted!
300
+
301
+ - Are you using a custom target that isn't mounted?
302
+ - Does your document not have a valid head element?
303
+ - Have you accidentally removed a style tag manually?
304
+
305
+ `,7:'ThemeProvider: Please return an object from your "theme" prop function, e.g.\n\n```js\ntheme={() => ({})}\n```\n\n',8:`ThemeProvider: Please make your "theme" prop an object.
306
+
307
+ `,9:"Missing document `<head>`\n\n",10:`Cannot find a StyleSheet instance. Usually this happens if there are multiple copies of styled-components loaded at once. Check out this issue for how to troubleshoot and fix the common cases where this situation can happen: https://github.com/styled-components/styled-components/issues/1941#issuecomment-417862021
308
+
309
+ `,11:`_This error was replaced with a dev-time warning, it will be deleted for v4 final._ [createGlobalStyle] received children which will not be rendered. Please use the component without passing children elements.
310
+
311
+ `,12:"It seems you are interpolating a keyframe declaration (%s) into an untagged string. This was supported in styled-components v3, but is not longer supported in v4 as keyframes are now injected on-demand. Please wrap your string in the css\\`\\` helper which ensures the styles are injected correctly. See https://www.styled-components.com/docs/api#css\n\n",13:`%s is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.
312
+
313
+ `,14:`ThemeProvider: "theme" prop is required.
314
+
315
+ `,15:"A stylis plugin has been supplied that is not named. We need a name for each plugin to be able to prevent styling collisions between different stylis configurations within the same app. Before you pass your plugin to `<StyleSheetManager stylisPlugins={[]}>`, please make sure each plugin is uniquely-named, e.g.\n\n```js\nObject.defineProperty(importedPlugin, 'name', { value: 'some-unique-name' });\n```\n\n",16:`Reached the limit of how many styled components may be created at group %s.
316
+ You may only create up to 1,073,741,824 components. If you're creating components dynamically,
317
+ as for instance in your render method then you may be running into this limitation.
318
+
319
+ `,17:`CSSStyleSheet could not be found on HTMLStyleElement.
320
+ Has styled-components' style tag been unmounted or altered by another script?
321
+ `,18:"ThemeProvider: Please make sure your useTheme hook is within a `<ThemeProvider>`"}:{};function s7(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];for(var t=n[0],r=[],o=1,s=n.length;o<s;o+=1)r.push(n[o]);return r.forEach(function(u){t=t.replace(/%[a-z]/,u)}),t}function Qc(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return process.env.NODE_ENV==="production"?new Error("An error occurred. See https://github.com/styled-components/styled-components/blob/main/packages/styled-components/src/utils/errors.md#".concat(n," for more information.").concat(e.length>0?" Args: ".concat(e.join(", ")):"")):new Error(s7.apply(void 0,gr([a7[n]],e,!1)).trim())}var l7=function(){function n(e){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=e}return n.prototype.indexOfGroup=function(e){for(var t=0,r=0;r<e;r++)t+=this.groupSizes[r];return t},n.prototype.insertRules=function(e,t){if(e>=this.groupSizes.length){for(var r=this.groupSizes,o=r.length,s=o;e>=s;)if((s<<=1)<0)throw Qc(16,"".concat(e));this.groupSizes=new Uint32Array(s),this.groupSizes.set(r),this.length=s;for(var u=o;u<s;u++)this.groupSizes[u]=0}for(var f=this.indexOfGroup(e+1),p=(u=0,t.length);u<p;u++)this.tag.insertRule(f,t[u])&&(this.groupSizes[e]++,f++)},n.prototype.clearGroup=function(e){if(e<this.length){var t=this.groupSizes[e],r=this.indexOfGroup(e),o=r+t;this.groupSizes[e]=0;for(var s=r;s<o;s++)this.tag.deleteRule(r)}},n.prototype.getGroup=function(e){var t="";if(e>=this.length||this.groupSizes[e]===0)return t;for(var r=this.groupSizes[e],o=this.indexOfGroup(e),s=o+r,u=o;u<s;u++)t+="".concat(this.tag.getRule(u)).concat(`/*!sc*/
322
+ `);return t},n}(),KC=new Map,WC=new Map,Fx=1,YC=function(n){if(KC.has(n))return KC.get(n);for(;WC.has(Fx);)Fx++;var e=Fx++;if(process.env.NODE_ENV!=="production"&&((0|e)<0||e>1073741824))throw Qc(16,"".concat(e));return KC.set(n,e),WC.set(e,n),e},u7=function(n,e){KC.set(n,e),WC.set(e,n)},c7="style[".concat(lp,"][").concat("data-styled-version",'="').concat("6.0.8",'"]'),d7=new RegExp("^".concat(lp,'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)')),f7=function(n,e,t){for(var r,o=t.split(","),s=0,u=o.length;s<u;s++)(r=o[s])&&n.registerName(e,r)},h7=function(n,e){for(var t,r=((t=e.textContent)!==null&&t!==void 0?t:"").split(`/*!sc*/
323
+ `),o=[],s=0,u=r.length;s<u;s++){var f=r[s].trim();if(f){var p=f.match(d7);if(p){var v=0|parseInt(p[1],10),g=p[2];v!==0&&(u7(g,v),f7(n,g,p[3]),n.getTag().insertRules(v,o)),o.length=0}else o.push(f)}}};function p7(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:null}var zD=function(n){var e=document.head,t=n||e,r=document.createElement("style"),o=function(f){var p=Array.from(f.querySelectorAll("style[".concat(lp,"]")));return p[p.length-1]}(t),s=o!==void 0?o.nextSibling:null;r.setAttribute(lp,"active"),r.setAttribute("data-styled-version","6.0.8");var u=p7();return u&&r.setAttribute("nonce",u),t.insertBefore(r,s),r},v7=function(){function n(e){this.element=zD(e),this.element.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var r=document.styleSheets,o=0,s=r.length;o<s;o++){var u=r[o];if(u.ownerNode===t)return u}throw Qc(17)}(this.element),this.length=0}return n.prototype.insertRule=function(e,t){try{return this.sheet.insertRule(t,e),this.length++,!0}catch{return!1}},n.prototype.deleteRule=function(e){this.sheet.deleteRule(e),this.length--},n.prototype.getRule=function(e){var t=this.sheet.cssRules[e];return t&&t.cssText?t.cssText:""},n}(),m7=function(){function n(e){this.element=zD(e),this.nodes=this.element.childNodes,this.length=0}return n.prototype.insertRule=function(e,t){if(e<=this.length&&e>=0){var r=document.createTextNode(t);return this.element.insertBefore(r,this.nodes[e]||null),this.length++,!0}return!1},n.prototype.deleteRule=function(e){this.element.removeChild(this.nodes[e]),this.length--},n.prototype.getRule=function(e){return e<this.length?this.nodes[e].textContent:""},n}(),g7=function(){function n(e){this.rules=[],this.length=0}return n.prototype.insertRule=function(e,t){return e<=this.length&&(this.rules.splice(e,0,t),this.length++,!0)},n.prototype.deleteRule=function(e){this.rules.splice(e,1),this.length--},n.prototype.getRule=function(e){return e<this.length?this.rules[e]:""},n}(),qD=kx,y7={isServer:!kx,useCSSOMInjection:!V9},GD=function(){function n(e,t,r){e===void 0&&(e=wm),t===void 0&&(t={});var o=this;this.options=Ye(Ye({},y7),e),this.gs=t,this.names=new Map(r),this.server=!!e.isServer,!this.server&&kx&&qD&&(qD=!1,function(s){for(var u=document.querySelectorAll(c7),f=0,p=u.length;f<p;f++){var v=u[f];v&&v.getAttribute(lp)!=="active"&&(h7(s,v),v.parentNode&&v.parentNode.removeChild(v))}}(this)),Ux(this,function(){return function(s){for(var u=s.getTag(),f=u.length,p="",v=function(E){var w=function(P){return WC.get(P)}(E);if(w===void 0)return"continue";var S=s.names.get(w),A=u.getGroup(E);if(S===void 0||A.length===0)return"continue";var k="".concat(lp,".g").concat(E,'[id="').concat(w,'"]'),M="";S!==void 0&&S.forEach(function(P){P.length>0&&(M+="".concat(P,","))}),p+="".concat(A).concat(k,'{content:"').concat(M,'"}').concat(`/*!sc*/
324
+ `)},g=0;g<f;g++)v(g);return p}(o)})}return n.registerId=function(e){return YC(e)},n.prototype.reconstructWithOptions=function(e,t){return t===void 0&&(t=!0),new n(Ye(Ye({},this.options),e),this.gs,t&&this.names||void 0)},n.prototype.allocateGSInstance=function(e){return this.gs[e]=(this.gs[e]||0)+1},n.prototype.getTag=function(){return this.tag||(this.tag=(e=function(t){var r=t.useCSSOMInjection,o=t.target;return t.isServer?new g7(o):r?new v7(o):new m7(o)}(this.options),new l7(e)));var e},n.prototype.hasNameForId=function(e,t){return this.names.has(e)&&this.names.get(e).has(t)},n.prototype.registerName=function(e,t){if(YC(e),this.names.has(e))this.names.get(e).add(t);else{var r=new Set;r.add(t),this.names.set(e,r)}},n.prototype.insertRules=function(e,t,r){this.registerName(e,t),this.getTag().insertRules(YC(e),r)},n.prototype.clearNames=function(e){this.names.has(e)&&this.names.get(e).clear()},n.prototype.clearRules=function(e){this.getTag().clearGroup(YC(e)),this.clearNames(e)},n.prototype.clearTag=function(){this.tag=void 0},n}(),_7=/&/g,E7=/^\s*\/\/.*$/gm;function VD(n,e){return n.map(function(t){return t.type==="rule"&&(t.value="".concat(e," ").concat(t.value),t.value=t.value.replaceAll(",",",".concat(e," ")),t.props=t.props.map(function(r){return"".concat(e," ").concat(r)})),Array.isArray(t.children)&&t.type!=="@keyframes"&&(t.children=VD(t.children,e)),t})}function b7(n){var e,t,r,o=n===void 0?wm:n,s=o.options,u=s===void 0?wm:s,f=o.plugins,p=f===void 0?VC:f,v=function(w,S,A){return A===t||A.startsWith(t)&&A.endsWith(t)&&A.replaceAll(t,"").length>0?".".concat(e):w},g=p.slice();g.push(function(w){w.type===UC&&w.value.includes("&")&&(w.props[0]=w.props[0].replace(_7,t).replace(r,v))}),u.prefix&&g.push(q9),g.push(B9);var E=function(w,S,A,k){S===void 0&&(S=""),A===void 0&&(A=""),k===void 0&&(k="&"),e=k,t=S,r=new RegExp("\\".concat(t,"\\b"),"g");var M=w.replace(E7,""),P=H9(A||S?"".concat(A," ").concat(S," { ").concat(M," }"):M);u.namespace&&(P=VD(P,u.namespace));var L=[];return qC(P,j9(g.concat(z9(function(j){return L.push(j)})))),L};return E.hash=p.length?p.reduce(function(w,S){return S.name||Qc(15),up(w,S.name)},5381).toString():"",E}var C7=new GD,Hx=b7(),KD=Mc.createContext({shouldForwardProp:void 0,styleSheet:C7,stylis:Hx});KD.Consumer,Mc.createContext(void 0);function WD(){return F.useContext(KD)}var $x=function(){function n(e,t){var r=this;this.inject=function(o,s){s===void 0&&(s=Hx);var u=r.name+s.hash;o.hasNameForId(r.id,u)||o.insertRules(r.id,u,s(r.rules,u,"@keyframes"))},this.name=e,this.id="sc-keyframes-".concat(e),this.rules=t,Ux(this,function(){throw Qc(12,String(r.name))})}return n.prototype.getName=function(e){return e===void 0&&(e=Hx),this.name+e.hash},n}(),w7=function(n){return n>="A"&&n<="Z"};function YD(n){for(var e="",t=0;t<n.length;t++){var r=n[t];if(t===1&&r==="-"&&n[0]==="-")return n;w7(r)?e+="-"+r.toLowerCase():e+=r}return e.startsWith("ms-")?"-"+e:e}var QD=function(n){return n==null||n===!1||n===""},XD=function(n){var e,t,r=[];for(var o in n){var s=n[o];n.hasOwnProperty(o)&&!QD(s)&&(Array.isArray(s)&&s.isCss||cp(s)?r.push("".concat(YD(o),":"),s,";"):Sm(s)?r.push.apply(r,gr(gr(["".concat(o," {")],XD(s),!1),["}"],!1)):r.push("".concat(YD(o),": ").concat((e=o,(t=s)==null||typeof t=="boolean"||t===""?"":typeof t!="number"||t===0||e in G9||e.startsWith("--")?String(t).trim():"".concat(t,"px")),";")))}return r};function fp(n,e,t,r){if(QD(n))return[];if(Px(n))return[".".concat(n.styledComponentId)];if(cp(n)){if(!cp(s=n)||s.prototype&&s.prototype.isReactComponent||!e)return[n];var o=n(e);return process.env.NODE_ENV==="production"||typeof o!="object"||Array.isArray(o)||o instanceof $x||Sm(o)||o===null||console.error("".concat(DD(n)," is not a styled component and cannot be referred to via component selector. See https://www.styled-components.com/docs/advanced#referring-to-other-components for more details.")),fp(o,e,t,r)}var s;return n instanceof $x?t?(n.inject(t,r),[n.getName(r)]):[n]:Sm(n)?XD(n):Array.isArray(n)?Array.prototype.concat.apply(VC,n.map(function(u){return fp(u,e,t,r)})):[n.toString()]}function S7(n){for(var e=0;e<n.length;e+=1){var t=n[e];if(cp(t)&&!Px(t))return!1}return!0}var T7=MD("6.0.8"),R7=function(){function n(e,t,r){this.rules=e,this.staticRulesId="",this.isStatic=process.env.NODE_ENV==="production"&&(r===void 0||r.isStatic)&&S7(e),this.componentId=t,this.baseHash=up(T7,t),this.baseStyle=r,GD.registerId(t)}return n.prototype.generateAndInjectStyles=function(e,t,r){var o=this.baseStyle?this.baseStyle.generateAndInjectStyles(e,t,r):"";if(this.isStatic&&!r.hash)if(this.staticRulesId&&t.hasNameForId(this.componentId,this.staticRulesId))o=dp(o,this.staticRulesId);else{var s=Dx(fp(this.rules,e,t,r)),u=Ox(up(this.baseHash,s)>>>0);if(!t.hasNameForId(this.componentId,u)){var f=r(s,".".concat(u),void 0,this.componentId);t.insertRules(this.componentId,u,f)}o=dp(o,u),this.staticRulesId=u}else{for(var p=up(this.baseHash,r.hash),v="",g=0;g<this.rules.length;g++){var E=this.rules[g];if(typeof E=="string")v+=E,process.env.NODE_ENV!=="production"&&(p=up(p,E));else if(E){var w=Dx(fp(E,e,t,r));p=up(p,w+g),v+=w}}if(v){var S=Ox(p>>>0);t.hasNameForId(this.componentId,S)||t.insertRules(this.componentId,S,r(v,".".concat(S),void 0,this.componentId)),o=dp(o,S)}}return o},n}(),QC=Mc.createContext(void 0);QC.Consumer;function XC(n){var e=Mc.useContext(QC),t=F.useMemo(function(){return function(r,o){if(!r)throw Qc(14);if(cp(r)){var s=r(o);if(process.env.NODE_ENV!=="production"&&(s===null||Array.isArray(s)||typeof s!="object"))throw Qc(7);return s}if(Array.isArray(r)||typeof r!="object")throw Qc(8);return o?Ye(Ye({},o),r):r}(n.theme,e)},[n.theme,e]);return n.children?Mc.createElement(QC.Provider,{value:t},n.children):null}var Bx={},JD=new Set;function x7(n,e,t){var r=Px(n),o=n,s=!Mx(n),u=e.attrs,f=u===void 0?VC:u,p=e.componentId,v=p===void 0?function(U,H){var W=typeof U!="string"?"sc":OD(U);Bx[W]=(Bx[W]||0)+1;var Q="".concat(W,"-").concat(PD("6.0.8"+W+Bx[W]));return H?"".concat(H,"-").concat(Q):Q}(e.displayName,e.parentComponentId):p,g=e.displayName,E=g===void 0?function(U){return Mx(U)?"styled.".concat(U):"Styled(".concat(DD(U),")")}(n):g,w=e.displayName&&e.componentId?"".concat(OD(e.displayName),"-").concat(e.componentId):e.componentId||v,S=r&&o.attrs?o.attrs.concat(f).filter(Boolean):f,A=e.shouldForwardProp;if(r&&o.shouldForwardProp){var k=o.shouldForwardProp;if(e.shouldForwardProp){var M=e.shouldForwardProp;A=function(U,H){return k(U,H)&&M(U,H)}}else A=k}var P=new R7(t,w,r?o.componentStyle:void 0);function L(U,H){return function(W,Q,Te){var Ve=W.attrs,ot=W.componentStyle,Me=W.defaultProps,je=W.foldedComponentIds,te=W.styledComponentId,ee=W.target,ye=Mc.useContext(QC),ve=WD(),pe=W.shouldForwardProp||ve.shouldForwardProp;process.env.NODE_ENV!=="production"&&F.useDebugValue(te);var K=function(De,At,Lt){for(var zt,_t=Ye(Ye({},At),{className:void 0,theme:Lt}),gn=0;gn<De.length;gn+=1){var Lr=cp(zt=De[gn])?zt(_t):zt;for(var jn in Lr)_t[jn]=jn==="className"?dp(_t[jn],Lr[jn]):jn==="style"?Ye(Ye({},_t[jn]),Lr[jn]):Lr[jn]}return At.className&&(_t.className=dp(_t.className,At.className)),_t}(Ve,Q,W9(Q,ye,Me)||wm),ge=K.as||ee,B={};for(var ne in K)K[ne]===void 0||ne[0]==="$"||ne==="as"||ne==="theme"||(ne==="forwardedAs"?B.as=K.forwardedAs:pe&&!pe(ne,ge)||(B[ne]=K[ne],pe||process.env.NODE_ENV!=="development"||T9(ne)||JD.has(ne)||!Ix.has(ge)||(JD.add(ne),console.warn('styled-components: it looks like an unknown prop "'.concat(ne,'" is being sent through to the DOM, which will likely trigger a React console error. If you would like automatic filtering of unknown props, you can opt-into that behavior via `<StyleSheetManager shouldForwardProp={...}>` (connect an API like `@emotion/is-prop-valid`) or consider using transient props (`$` prefix for automatic filtering.)')))));var ke=function(De,At){var Lt=WD(),zt=De.generateAndInjectStyles(At,Lt.styleSheet,Lt.stylis);return process.env.NODE_ENV!=="production"&&F.useDebugValue(zt),zt}(ot,K);process.env.NODE_ENV!=="production"&&W.warnTooManyClasses&&W.warnTooManyClasses(ke);var ut=dp(je,te);return ke&&(ut+=" "+ke),K.className&&(ut+=" "+K.className),B[Mx(ge)&&!Ix.has(ge)?"class":"className"]=ut,B.ref=Te,F.createElement(ge,B)}(j,U,H)}process.env.NODE_ENV!=="production"&&(L.displayName=E);var j=Mc.forwardRef(L);return j.attrs=S,j.componentStyle=P,j.shouldForwardProp=A,process.env.NODE_ENV!=="production"&&(j.displayName=E),j.foldedComponentIds=r?dp(o.foldedComponentIds,o.styledComponentId):"",j.styledComponentId=w,j.target=r?o.target:n,Object.defineProperty(j,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(U){this._foldedDefaultProps=r?function(H){for(var W=[],Q=1;Q<arguments.length;Q++)W[Q-1]=arguments[Q];for(var Te=0,Ve=W;Te<Ve.length;Te++)Lx(H,Ve[Te],!0);return H}({},o.defaultProps,U):U}}),process.env.NODE_ENV!=="production"&&(K9(E,w),j.warnTooManyClasses=function(U,H){var W={},Q=!1;return function(Te){if(!Q&&(W[Te]=!0,Object.keys(W).length>=200)){var Ve=H?' with the id of "'.concat(H,'"'):"";console.warn("Over ".concat(200," classes were generated for component ").concat(U).concat(Ve,`.
325
+ `)+`Consider using the attrs method, together with a style object for frequently changed styles.
326
+ Example:
327
+ const Component = styled.div.attrs(props => ({
328
+ style: {
329
+ background: props.background,
330
+ },
331
+ }))\`width: 100%;\`
332
+
333
+ <Component />`),Q=!0,W={}}}}(E,w)),Ux(j,function(){return".".concat(j.styledComponentId)}),s&&jD(j,n,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0}),j}function ZD(n,e){for(var t=[n[0]],r=0,o=e.length;r<o;r+=1)t.push(e[r],n[r+1]);return t}var eL=function(n){return Object.assign(n,{isCss:!0})};function mn(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(cp(n)||Sm(n)){var r=n;return eL(fp(ZD(VC,gr([r],e,!0))))}var o=n;return e.length===0&&o.length===1&&typeof o[0]=="string"?fp(o):eL(fp(ZD(o,e)))}function jx(n,e,t){if(t===void 0&&(t=wm),!e)throw Qc(1,e);var r=function(o){for(var s=[],u=1;u<arguments.length;u++)s[u-1]=arguments[u];return n(e,t,mn.apply(void 0,gr([o],s,!1)))};return r.attrs=function(o){return jx(n,e,Ye(Ye({},t),{attrs:Array.prototype.concat(t.attrs,o).filter(Boolean)}))},r.withConfig=function(o){return jx(n,e,Ye(Ye({},t),o))},r}var tL=function(n){return jx(x7,n)},Dt=tL;Ix.forEach(function(n){Dt[n]=tL(n)});function nL(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn("`keyframes` cannot be used on ReactNative, only on the web. To do animation in ReactNative please use Animated.");var r=Dx(mn.apply(void 0,gr([n],e,!1))),o=PD(r);return new $x(o,r)}process.env.NODE_ENV!=="production"&&typeof navigator<"u"&&navigator.product==="ReactNative"&&console.warn(`It looks like you've imported 'styled-components' on React Native.
334
+ Perhaps you're looking to import 'styled-components/native'?
335
+ Read more about this at https://www.styled-components.com/docs/basics#react-native`);var JC="__sc-".concat(lp,"__");process.env.NODE_ENV!=="production"&&process.env.NODE_ENV!=="test"&&typeof window<"u"&&(window[JC]||(window[JC]=0),window[JC]===1&&console.warn(`It looks like there are several instances of 'styled-components' initialized in this application. This may cause dynamic styles to not render properly, errors during the rehydration process, a missing theme prop, and makes your application bigger without good reason.
336
+
337
+ See https://s-c.sh/2BAXzed for more info.`),window[JC]+=1);var A7={jumbo__base:"88px",default__base:"48px",default__input:"56px",compact__standard:"32px",compact__input:"44px"},k7={text:{static_icons__default:{hex:"#3d3d3d",hsla:"hsla(0, 0%, 23.9%, 1)",rgba:"var(--eds_text__static_icons__default, rgba(61, 61, 61, 1))"},static_icons__secondary:{hex:"#565656",hsla:"hsla(0, 0%, 33.7%, 1)",rgba:"var(--eds_text__static_icons__secondary, rgba(86, 86, 86, 1))"},static_icons__tertiary:{hex:"#6f6f6f",hsla:"hsla(0, 0%, 43.5%, 1)",rgba:"var(--eds_text__static_icons__tertiary, rgba(111, 111, 111, 1))"},static_icons__primary_white:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_text__static_icons__primary_white, rgba(255, 255, 255, 1))"}},ui:{background__default:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_ui_background__default, rgba(255, 255, 255, 1))"},background__semitransparent:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"var(--eds_ui_background__semitransparent, rgba(255, 255, 255, 0.2))"},background__light:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"var(--eds_ui_background__light, rgba(247, 247, 247, 1))"},background__scrim:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.4)",rgba:"var(--eds_ui_background__scrim, rgba(0, 0, 0, 0.4))"},background__overlay:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.8)",rgba:"var(--eds_ui_background__overlay, rgba(0, 0, 0, 0.8))"},background__medium:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_ui_background__medium, rgba(220, 220, 220, 1))"},background__info:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_ui_background__info, rgba(213, 234, 244, 1))"},background__warning:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_ui_background__warning, rgba(255, 231, 214, 1))"},background__danger:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"var(--eds_ui_background__danger, rgba(255, 193, 193, 1))"}},infographic:{substitute__purple_berry:{hex:"#8c1159",hsla:"hsla(325, 78.3%, 30.8%, 1)",rgba:"var(--eds_infographic_substitute__purple_berry, rgba(140, 17, 89, 1))"},substitute__pink_rose:{hex:"#e24973",hsla:"hsla(344, 72.5%, 58.6%, 1)",rgba:"var(--eds_infographic_substitute__pink_rose, rgba(226, 73, 115, 1))"},substitute__pink_salmon:{hex:"#ff92a8",hsla:"hsla(348, 100%, 78.6%, 1)",rgba:"var(--eds_infographic_substitute__pink_salmon, rgba(255, 146, 168, 1))"},substitute__green_cucumber:{hex:"#005f57",hsla:"hsla(175, 100%, 18.6%, 1)",rgba:"var(--eds_infographic_substitute__green_cucumber, rgba(0, 95, 87, 1))"},substitute__green_succulent:{hex:"#00977b",hsla:"hsla(169, 100%, 29.6%, 1)",rgba:"var(--eds_infographic_substitute__green_succulent, rgba(0, 151, 123, 1))"},substitute__green_mint:{hex:"#40d38f",hsla:"hsla(152, 62.6%, 53.9%, 1)",rgba:"var(--eds_infographic_substitute__green_mint, rgba(64, 211, 143, 1))"},substitute__blue_ocean:{hex:"#004088",hsla:"hsla(212, 100%, 26.7%, 1)",rgba:"var(--eds_infographic_substitute__blue_ocean, rgba(0, 64, 136, 1))"},substitute__blue_overcast:{hex:"#0084c4",hsla:"hsla(200, 100%, 38.4%, 1)",rgba:"var(--eds_infographic_substitute__blue_overcast, rgba(0, 132, 196, 1))"},substitute__blue_sky:{hex:"#52c0ff",hsla:"hsla(202, 100%, 66.1%, 1)",rgba:"var(--eds_infographic_substitute__blue_sky, rgba(82, 192, 255, 1))"},primary__moss_green_100:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_infographic_primary__moss_green_100, rgba(0, 112, 121, 1))"},primary__moss_green_55:{hex:"#73b1b5",hsla:"hsla(184, 30.8%, 58%, 1)",rgba:"var(--eds_infographic_primary__moss_green_55, rgba(115, 177, 181, 1))"},primary__moss_green_34:{hex:"#a8ced1",hsla:"hsla(184, 30.8%, 73.9%, 1)",rgba:"var(--eds_infographic_primary__moss_green_34, rgba(168, 206, 209, 1))"},primary__moss_green_21:{hex:"#c9e0e2",hsla:"hsla(185, 30.1%, 83.7%, 1)",rgba:"var(--eds_infographic_primary__moss_green_21, rgba(201, 224, 226, 1))"},primary__moss_green_13:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"var(--eds_infographic_primary__moss_green_13, rgba(222, 237, 238, 1))"},primary__energy_red_100:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"var(--eds_infographic_primary__energy_red_100, rgba(235, 0, 55, 1))"},primary__energy_red_55:{hex:"#ff7d98",hsla:"hsla(348, 100%, 74.5%, 1)",rgba:"var(--eds_infographic_primary__energy_red_55, rgba(255, 125, 152, 1))"},primary__energy_red_34:{hex:"#ffaebf",hsla:"hsla(347, 100%, 84.1%, 1)",rgba:"var(--eds_infographic_primary__energy_red_34, rgba(255, 174, 191, 1))"},primary__energy_red_21:{hex:"#ffcdd7",hsla:"hsla(348, 100%, 90.2%, 1)",rgba:"var(--eds_infographic_primary__energy_red_21, rgba(255, 205, 215, 1))"},primary__energy_red_13:{hex:"#ffe0e7",hsla:"hsla(346, 100%, 93.9%, 1)",rgba:"var(--eds_infographic_primary__energy_red_13, rgba(255, 224, 231, 1))"},primary__weathered_red:{hex:"#7d0023",hsla:"hsla(343, 100%, 24.5%, 1)",rgba:"var(--eds_infographic_primary__weathered_red, rgba(125, 0, 35, 1))"},primary__slate_blue:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"var(--eds_infographic_primary__slate_blue, rgba(36, 55, 70, 1))"},primary__spruce_wood:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_infographic_primary__spruce_wood, rgba(255, 231, 214, 1))"},primary__mist_blue:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_infographic_primary__mist_blue, rgba(213, 234, 244, 1))"},primary__lichen_green:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_infographic_primary__lichen_green, rgba(230, 250, 236, 1))"}},logo:{fill_positive:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"var(--eds_logo__fill_positive, rgba(235, 0, 55, 1))"},fill_negative:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_logo__fill_negative, rgba(255, 255, 255, 1))"}},interactive:{primary__selected_highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_primary__selected_highlight, rgba(230, 250, 236, 1))"},primary__selected_hover:{hex:"#c3f3d2",hsla:"hsla(139, 66.7%, 85.9%, 1)",rgba:"var(--eds_interactive_primary__selected_hover, rgba(195, 243, 210, 1))"},primary__resting:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_interactive_primary__resting, rgba(0, 112, 121, 1))"},primary__hover:{hex:"#004f55",hsla:"hsla(184, 100%, 16.7%, 1)",rgba:"var(--eds_interactive_primary__hover, rgba(0, 79, 85, 1))"},primary__hover_alt:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"var(--eds_interactive_primary__hover_alt, rgba(222, 237, 238, 1))"},secondary__highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_interactive_secondary__highlight, rgba(213, 234, 244, 1))"},secondary__resting:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"var(--eds_interactive_secondary__resting, rgba(36, 55, 70, 1))"},secondary__link_hover:{hex:"#17242f",hsla:"hsla(208, 34.3%, 13.7%, 1)",rgba:"var(--eds_interactive_secondary__link_hover, rgba(23, 36, 47, 1))"},danger__highlight:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"var(--eds_interactive_danger__highlight, rgba(255, 193, 193, 1))"},danger__resting:{hex:"#eb0000",hsla:"hsla(0, 100%, 46.1%, 1)",rgba:"var(--eds_interactive_danger__resting, rgba(235, 0, 0, 1))"},danger__hover:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"var(--eds_interactive_danger__hover, rgba(179, 13, 47, 1))"},danger__text:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"var(--eds_interactive_danger__text, rgba(179, 13, 47, 1))"},warning__highlight:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"var(--eds_interactive_warning__highlight, rgba(255, 231, 214, 1))"},warning__resting:{hex:"#ff9200",hsla:"hsla(34, 100%, 50%, 1)",rgba:"var(--eds_interactive_warning__resting, rgba(255, 146, 0, 1))"},warning__hover:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"var(--eds_interactive_warning__hover, rgba(173, 98, 0, 1))"},warning__text:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"var(--eds_interactive_warning__text, rgba(173, 98, 0, 1))"},success__highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_success__highlight, rgba(230, 250, 236, 1))"},success__resting:{hex:"#4bb748",hsla:"hsla(118, 43.5%, 50%, 1)",rgba:"var(--eds_interactive_success__resting, rgba(75, 183, 72, 1))"},success__hover:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"var(--eds_interactive_success__hover, rgba(53, 129, 50, 1))"},success__text:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"var(--eds_interactive_success__text, rgba(53, 129, 50, 1))"},table__cell__fill_resting:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive_table__cell__fill_resting, rgba(255, 255, 255, 1))"},table__cell__fill_hover:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive_table__cell__fill_hover, rgba(234, 234, 234, 1))"},table__cell__fill_activated:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"var(--eds_interactive_table__cell__fill_activated, rgba(230, 250, 236, 1))"},table__header__fill_activated:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive_table__header__fill_activated, rgba(234, 234, 234, 1))"},table__header__fill_hover:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_interactive_table__header__fill_hover, rgba(220, 220, 220, 1))"},table__header__fill_resting:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"var(--eds_interactive_table__header__fill_resting, rgba(247, 247, 247, 1))"},disabled__text:{hex:"#bebebe",hsla:"hsla(0, 0%, 74.5%, 1)",rgba:"var(--eds_interactive__disabled__text, rgba(190, 190, 190, 1))"},text_highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"var(--eds_interactive__text_highlight, rgba(213, 234, 244, 1))"},focus:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"var(--eds_interactive__focus, rgba(0, 112, 121, 1))"},disabled__border:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"var(--eds_interactive__disabled__border, rgba(220, 220, 220, 1))"},disabled__fill:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"var(--eds_interactive__disabled__fill, rgba(234, 234, 234, 1))"},link_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive__link_on_interactive_colors, rgba(255, 255, 255, 1))"},icon_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"var(--eds_interactive__icon_on_interactive_colors, rgba(255, 255, 255, 1))"},link_in_snackbars:{hex:"#97cace",hsla:"hsla(184, 35.9%, 70%, 1)",rgba:"var(--eds_interactive__link_in_snackbars, rgba(151, 202, 206, 1))"},pressed_overlay_dark:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.2)",rgba:"var(--eds_interactive__pressed_overlay_dark, rgba(0, 0, 0, 0.2))"},pressed_overlay_light:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"var(--eds_interactive__pressed_overlay_light, rgba(255, 255, 255, 0.2))"}}},I7={raised:"0 1px 5px rgba(0, 0, 0, 0.2),0 3px 4px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",none:"0 0 1px rgba(0, 0, 0, 0.14)",overlay:"0 1px 10px rgba(0, 0, 0, 0.2),0 4px 5px rgba(0, 0, 0, 0.12),0 2px 4px rgba(0, 0, 0, 0.14)",sticky:"0 4px 5px rgba(0, 0, 0, 0.2),0 3px 14px rgba(0, 0, 0, 0.12),0 8px 10px rgba(0, 0, 0, 0.14)",temporary_nav:"0 7px 8px rgba(0, 0, 0, 0.2),0 5px 22px rgba(0, 0, 0, 0.12),0 12px 17px rgba(0, 0, 0, 0.14)",above_scrim:"0 11px 15px rgba(0, 0, 0, 0.2),0 9px 46px rgba(0, 0, 0, 0.12),0 24px 38px rgba(0, 0, 0, 0.14)"},O7={_modes:{compact:{pressed_dark_overlay:{blendMode:"pass_through",pressedColor:"transparent"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"2px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 1)"}}},pressed_dark_overlay:{blendMode:"darken",pressedColor:"rgba(0, 0, 0, 0.2)"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"2px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 0.2)"}},N7={_modes:{compact:{rounded:{minHeight:"24px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"24px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"32px",minWidth:"32px",borderRadius:"100px"},straight:{minHeight:"24px",minWidth:"112px",borderRadius:""},toggle_rounded_border:{minHeight:"24px",minWidth:"2px",borderRadius:""},toggle_straight_border:{minHeight:"24px",minWidth:"2px",borderRadius:""},circle:{minHeight:"24px",minWidth:"24px",borderRadius:"100px"}}},toggle_straight_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},toggle_rounded_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},circle:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},rounded:{minHeight:"40px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},field:{minHeight:"56px",minWidth:"294px",borderRadius:""},straight:{minHeight:"36px",minWidth:"112px",borderRadius:""},caret:{minHeight:"8px",minWidth:"6px",borderRadius:""}},M7={heading:{h1_bold:{color:"var(--eds_heading__h1_bold_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:700,lineHeight:"1.250em",textAlign:"left"},h1:{color:"var(--eds_heading__h1_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h2:{color:"var(--eds_heading__h2_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.750rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h3:{color:"var(--eds_heading__h3_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.500rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},h4:{color:"var(--eds_heading__h4_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.250rem",fontWeight:400,lineHeight:"1.600em",textAlign:"left"},h5:{color:"var(--eds_heading__h5_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"},h6:{color:"var(--eds_heading__h6_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.500em",textAlign:"left"}},navigation:{menu_title:{color:"var(--eds_navigation__menu_title_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},menu_tabs:{color:"var(--eds_navigation__menu_tabs_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},label:{color:"var(--eds_navigation__label_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},drawer_active:{color:"var(--eds_navigation__drawer_active_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,letterSpacing:"0.006em",lineHeight:"1.000em",textAlign:"left"},drawer_inactive:{color:"var(--eds_navigation__drawer_inactive_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},button:{color:"var(--eds_navigation__button_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb:{color:"var(--eds_navigation__breadcrumb_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb_hover:{color:"var(--eds_navigation__breadcrumb_hover_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"},menu_title_hover:{color:"var(--eds_navigation__menu_title_hover_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"}},input:{label:{color:"var(--eds_input__label_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},text:{color:"var(--eds_input__text_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.025em",lineHeight:"1.500em",textAlign:"left"},text_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"var(--eds_input__text_monospaced_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.063em",lineHeight:"1.500em",textAlign:"left"},helper:{color:"var(--eds_input__helper_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"}},paragraph:{body_short_italic:{color:"var(--eds_paragraph__body_short_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},caption:{color:"var(--eds_paragraph__caption_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},meta:{color:"var(--eds_paragraph__meta_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,lineHeight:"1.600em",textAlign:"left"},body_short:{color:"var(--eds_paragraph__body_short_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},body_short_bold_italic:{color:"var(--eds_paragraph__body_short_bold_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},body_short_bold:{color:"var(--eds_paragraph__body_short_bold_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",textAlign:"left"},body_short_link:{color:"var(--eds_paragraph__body_short_link_color, rgba(0, 112, 121, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textDecoration:"underline",textAlign:"left"},overline:{color:"var(--eds_paragraph__overline_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,letterSpacing:"0.069em",lineHeight:"1.600em",textTransform:"uppercase",textAlign:"left"},ingress:{color:"var(--eds_paragraph__ingress_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:400,lineHeight:"1.333em",textAlign:"left"},body_long:{color:"var(--eds_paragraph__body_long_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textAlign:"left"},body_long_link:{color:"var(--eds_paragraph__body_long_link_color, rgba(0, 112, 121, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textDecoration:"underline",textAlign:"left"},body_long_italic:{color:"var(--eds_paragraph__body_long_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"},body_long_bold:{color:"var(--eds_paragraph__body_long_bold_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",textAlign:"left"},body_long_bold_italic:{color:"var(--eds_paragraph__body_long_bold_italic_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"}},table:{cell_header:{color:"var(--eds_table__cell_header_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text:{color:"var(--eds_table__cell_text_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"},cell_text_bold:{color:"var(--eds_table__cell_text_bold_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text_link:{color:"var(--eds_table__cell_text_link_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textDecoration:"underline",textAlign:"left"},cell_numeric_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"var(--eds_table__cell_numeric_monospaced_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"}},_modes:{compact:{table:{cell_header:{color:"var(--eds_table__cell_header_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.143em",textAlign:"left"},cell_text:{color:"var(--eds_table__cell_text_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},cell_text_bold:{color:"var(--eds_table__cell_text_bold_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.143em",textAlign:"left"},cell_text_link:{color:"var(--eds_table__cell_text_link_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"},cell_numeric_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"var(--eds_table__cell_numeric_monospaced_color, rgba(0, 0, 0, 1))",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"}}}},ui:{tooltip:{color:"var(--eds_ui__tooltip_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},snackbar:{color:"var(--eds_ui__snackbar_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},accordion_header:{color:"var(--eds_ui__accordion_header_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,lineHeight:"1.500em",textAlign:"left"},chip__badge:{color:"var(--eds_ui__chip__badge_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},chart:{color:"var(--eds_ui__chart_color, rgba(61, 61, 61, 1))",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"}}},P7={comfortable:{xxx_large:"48px",xx_large:"40px",x_large:"32px",large:"24px",medium:"16px",medium_small:"12px",small:"8px",x_small:"4px",xx_small:"2px"}},sn={clickbounds:A7,colors:k7,elevation:I7,interactions:O7,shape:N7,typography:M7,spacings:P7},zx=sn.typography.navigation.button,qx=sn.colors.interactive,D7=qx.disabled__text.rgba,L7=qx.disabled__border.rgba,U7=qx.disabled__fill.rgba,rL=sn.spacings.comfortable.medium,iL=sn.shape,oL=iL.button,aL=oL.minHeight,sL=oL.borderRadius,lL=iL._modes.compact.button.minHeight,uL=sn.interactions.focused,cL=sn.clickbounds,dL=cL.default__base,fL=cL.compact__standard,ZC={background:"transparent",height:"var(--eds_button__height, ".concat(aL,")"),typography:he(he({},zx),{},{textAlign:"center",fontSize:"var(--eds_button__font_size, ".concat(zx.fontSize,")")}),border:{type:"border",width:"var(--eds_button__border_width, 1px)",color:"transparent",radius:"var(--eds_button__radius, ".concat(sL,")"),style:"solid"},spacings:{top:"var(--eds_button__padding_y, 0)",bottom:"var(--eds_button__padding_y, 0)",left:"var(--eds_button__padding_x, ".concat(rL,")"),right:"var(--eds_button__padding_x, ".concat(rL,")")},clickbound:{height:dL,width:"100%",offset:{top:"".concat((parseInt(dL)-parseInt(aL))/2+1,"px"),left:"0"}},entities:{icon:{height:"var(--eds_button__icon__size, 24px)",width:"var(--eds_button__icon__size, 24px)"}},states:{hover:{border:{type:"border",width:"1px",color:"transparent",radius:"var(--eds_button__radius, ".concat(sL,")"),style:"solid"}},focus:{outline:{type:"outline",offset:"3px",style:"dashed",color:uL.color,width:uL.width}},disabled:{background:U7,border:{type:"border",width:"1px",color:L7,style:"solid"},typography:he(he({},zx),{},{color:D7,textAlign:"center"})}},modes:{compact:{height:"var(--eds_button__height_compact, ".concat(lL,")"),spacings:{top:"var(--eds_button__padding_y_compact, 0)",bottom:"var(--eds_button__padding_y_compact, 0)"},clickbound:{height:fL,width:"100%",offset:{top:"".concat((parseInt(fL)-parseInt(lL))/2+1,"px"),left:"0"}}}}};function oi(n){return n!=null&&Wc(n)==="object"&&n["@@functional/placeholder"]===!0}function hp(n){return function e(t){return arguments.length===0||oi(t)?e:n.apply(this,arguments)}}function pp(n){return function e(t,r){switch(arguments.length){case 0:return e;case 1:return oi(t)?e:hp(function(o){return n(t,o)});default:return oi(t)&&oi(r)?e:oi(t)?hp(function(o){return n(o,r)}):oi(r)?hp(function(o){return n(t,o)}):n(t,r)}}}function hL(n){return function e(t,r,o){switch(arguments.length){case 0:return e;case 1:return oi(t)?e:pp(function(s,u){return n(t,s,u)});case 2:return oi(t)&&oi(r)?e:oi(t)?pp(function(s,u){return n(s,r,u)}):oi(r)?pp(function(s,u){return n(t,s,u)}):hp(function(s){return n(t,r,s)});default:return oi(t)&&oi(r)&&oi(o)?e:oi(t)&&oi(r)?pp(function(s,u){return n(s,u,o)}):oi(t)&&oi(o)?pp(function(s,u){return n(s,r,u)}):oi(r)&&oi(o)?pp(function(s,u){return n(t,s,u)}):oi(t)?hp(function(s){return n(s,r,o)}):oi(r)?hp(function(s){return n(t,s,o)}):oi(o)?hp(function(s){return n(t,r,s)}):n(t,r,o)}}}function pL(n){return Object.prototype.toString.call(n)==="[object Object]"}function ew(n,e){return Object.prototype.hasOwnProperty.call(e,n)}var F7=hL(function(e,t,r){var o={},s;t=t||{},r=r||{};for(s in t)ew(s,t)&&(o[s]=ew(s,r)?e(s,t[s],r[s]):t[s]);for(s in r)ew(s,r)&&!ew(s,o)&&(o[s]=r[s]);return o}),H7=hL(function n(e,t,r){return F7(function(o,s,u){return pL(s)&&pL(u)?n(e,s,u):e(o,s,u)},t,r)}),$7=pp(function(e,t){return H7(function(r,o,s){return s},e,t)}),Ma=$7,vL=sn.colors,B7=vL.text.static_icons__primary_white.rgba,Tm=vL.interactive,mL=Tm.primary__resting.rgba,j7=Tm.primary__hover.rgba,gL=Tm.secondary__resting.rgba,yL=Tm.secondary__link_hover.rgba,_L=Tm.danger__resting.rgba,EL=Tm.danger__hover.rgba,z7=sn.shape.button.borderRadius,tw=Ma(ZC,{background:mL,typography:{color:B7},border:{type:"border",style:"solid",width:"1px",color:mL,radius:"var(--eds_button__radius, ".concat(z7,")")},states:{hover:{background:j7}}}),bL=Ma(tw,{background:gL,border:{color:gL},states:{hover:{background:yL,border:{color:yL}}}}),CL=Ma(tw,{background:_L,border:{color:_L},states:{hover:{background:EL,border:{color:EL}}}}),Xc=sn.colors.interactive,wL=Xc.primary__resting.rgba,SL=Xc.primary__hover.rgba,q7=Xc.primary__hover_alt.rgba,TL=Xc.secondary__resting.rgba,RL=Xc.secondary__link_hover.rgba,G7=Xc.secondary__highlight.rgba,xL=Xc.danger__resting.rgba,AL=Xc.danger__hover.rgba,V7=Xc.danger__highlight.rgba,K7=sn.shape.button.borderRadius,Gx=Ma(ZC,{typography:{color:wL},border:{type:"border",style:"solid",width:"1px",color:wL,radius:"var(--eds_button__radius, ".concat(K7,")")},states:{hover:{typography:{color:SL},background:q7,border:{style:"solid",type:"border",width:"1px",color:SL}},disabled:{background:"transparent"}}}),W7=Ma(Gx,{typography:{color:TL},border:{color:TL},states:{hover:{background:G7,typography:{color:RL},border:{color:RL}}}}),Y7=Ma(Gx,{typography:{color:xL},border:{color:xL},states:{hover:{background:V7,typography:{color:AL},border:{color:AL}}}}),Jc=sn.colors.interactive,Q7=Jc.primary__resting.rgba,X7=Jc.primary__hover.rgba,J7=Jc.primary__hover_alt.rgba,Z7=Jc.secondary__resting.rgba,eW=Jc.secondary__link_hover.rgba,tW=Jc.secondary__highlight.rgba,nW=Jc.danger__resting.rgba,rW=Jc.danger__hover.rgba,iW=Jc.danger__highlight.rgba,Vx=Ma(ZC,{typography:{color:Q7},states:{hover:{background:J7,typography:{color:X7}},disabled:{background:"transparent",border:{color:"transparent"}}}}),oW=Ma(Vx,{typography:{color:Z7},states:{hover:{background:tW,typography:{color:eW}}}}),aW=Ma(Vx,{typography:{color:nW},states:{hover:{background:iW,typography:{color:rW}}}}),af=sn.colors.interactive,sW=af.primary__resting.rgba,lW=af.primary__hover_alt.rgba,uW=af.secondary__resting.rgba,cW=af.secondary__link_hover.rgba,dW=af.secondary__highlight.rgba,fW=af.danger__resting.rgba,hW=af.danger__hover.rgba,pW=af.danger__highlight.rgba,kL=sn.clickbounds,IL=kL.default__base,OL=kL.compact__standard,Rm=sn.shape,vW=sn.interactions.focused.width,Kx=Ma(ZC,{height:Rm.icon_button.minHeight,width:Rm.icon_button.minWidth,typography:{color:sW},border:{width:"0px",radius:"50%"},background:"transparent",spacings:{left:"0",right:"0"},clickbound:{width:IL,offset:{top:"0",left:"".concat((parseInt(IL)-parseInt(Rm.icon_button.minWidth))/2,"px")}},states:{hover:{background:lW,border:{width:"0px",radius:"50%"}},disabled:{background:"transparent",border:{color:"transparent"}},focus:{outline:{offset:"-".concat(parseInt(vW),"px")}}},modes:{compact:{height:Rm._modes.compact.icon_button.minHeight,width:Rm._modes.compact.icon_button.minWidth,clickbound:{width:OL,offset:{top:"0",left:"".concat((parseInt(OL)-parseInt(Rm._modes.compact.icon_button.minWidth))/2,"px")}}}}}),mW=Ma(Kx,{typography:{color:uW},states:{hover:{background:dW,typography:{color:cW}}}}),gW=Ma(Kx,{typography:{color:fW},states:{hover:{background:pW,typography:{color:hW}}}}),NL=sn.clickbounds,ML=NL.default__base,PL=NL.compact__standard,$0=sn.shape,Wx={height:$0.icon_button.minHeight,width:$0.icon_button.minWidth,border:{width:"0px",radius:"50%"},spacings:{left:"0",right:"0"},clickbound:{width:ML,offset:{top:"0",left:"".concat((parseInt(ML)-parseInt("40px"))/2,"px")}},states:{hover:{border:{width:"0px",radius:"50%"}}},modes:{compact:{height:$0._modes.compact.icon_button.minHeight,width:$0._modes.compact.icon_button.minWidth,clickbound:{width:PL,offset:{top:"0",left:"".concat((parseInt(PL)-parseInt($0._modes.compact.icon_button.minWidth))/2,"px")}}}}},yW=Ma(tw,Wx),_W=Ma(bL,Wx),EW=Ma(CL,Wx),Yx={primary:{contained:tw,outlined:Gx,ghost:Vx,ghost_icon:Kx,contained_icon:yW},secondary:{contained:bL,outlined:W7,ghost:oW,ghost_icon:mW,contained_icon:_W},danger:{contained:CL,outlined:Y7,ghost:aW,ghost_icon:gW,contained_icon:EW}},DL=function(e,t){F.useEffect(function(){var r=function(s){var u=s.key;switch(u){case e:t(s);break}};return document.addEventListener("keydown",r,!0),function(){document.removeEventListener("keydown",r,!0)}},[e,t])};function bW(n){if(Array.isArray(n))return n}function CW(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,o,s,u,f=[],p=!0,v=!1;try{if(s=(t=t.call(n)).next,e===0){if(Object(t)!==t)return;p=!1}else for(;!(p=(r=s.call(t)).done)&&(f.push(r.value),f.length!==e);p=!0);}catch(g){v=!0,o=g}finally{try{if(!p&&t.return!=null&&(u=t.return(),Object(u)!==u))return}finally{if(v)throw o}}return f}}function Qx(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=new Array(e);t<e;t++)r[t]=n[t];return r}function LL(n,e){if(n){if(typeof n=="string")return Qx(n,e);var t=Object.prototype.toString.call(n).slice(8,-1);if(t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set")return Array.from(n);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return Qx(n,e)}}function wW(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
338
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Mu(n,e){return bW(n)||CW(n,e)||LL(n,e)||wW()}var SW=function(e,t){var r=F.useState(e),o=Mu(r,2),s=o[0],u=o[1],f=e||s;return F.useEffect(function(){s==null&&u("eds-".concat(t?t+"-":"").concat(Math.round(Math.random()*1e5)))},[s,t]),f},TW=typeof window<"u"?F.useLayoutEffect:F.useEffect,UL=function(e){var t=F.useState(null),r=Mu(t,2),o=r[0],s=r[1];return F.useEffect(function(){e&&o===null&&s(!!e.closest("dialog"))},[e]),o};function ai(n){return n!=null&&Wc(n)==="object"&&n["@@functional/placeholder"]===!0}function vp(n){return function e(t){return arguments.length===0||ai(t)?e:n.apply(this,arguments)}}function mp(n){return function e(t,r){switch(arguments.length){case 0:return e;case 1:return ai(t)?e:vp(function(o){return n(t,o)});default:return ai(t)&&ai(r)?e:ai(t)?vp(function(o){return n(o,r)}):ai(r)?vp(function(o){return n(t,o)}):n(t,r)}}}function FL(n){return function e(t,r,o){switch(arguments.length){case 0:return e;case 1:return ai(t)?e:mp(function(s,u){return n(t,s,u)});case 2:return ai(t)&&ai(r)?e:ai(t)?mp(function(s,u){return n(s,r,u)}):ai(r)?mp(function(s,u){return n(t,s,u)}):vp(function(s){return n(t,r,s)});default:return ai(t)&&ai(r)&&ai(o)?e:ai(t)&&ai(r)?mp(function(s,u){return n(s,u,o)}):ai(t)&&ai(o)?mp(function(s,u){return n(s,r,u)}):ai(r)&&ai(o)?mp(function(s,u){return n(t,s,u)}):ai(t)?vp(function(s){return n(s,r,o)}):ai(r)?vp(function(s){return n(t,s,o)}):ai(o)?vp(function(s){return n(t,r,s)}):n(t,r,o)}}}function HL(n){return Object.prototype.toString.call(n)==="[object Object]"}function nw(n,e){return Object.prototype.hasOwnProperty.call(e,n)}var RW=FL(function(e,t,r){var o={},s;t=t||{},r=r||{};for(s in t)nw(s,t)&&(o[s]=nw(s,r)?e(s,t[s],r[s]):t[s]);for(s in r)nw(s,r)&&!nw(s,o)&&(o[s]=r[s]);return o}),xW=FL(function n(e,t,r){return RW(function(o,s,u){return HL(s)&&HL(u)?n(e,s,u):e(o,s,u)},t,r)}),AW=mp(function(e,t){return xW(function(r,o,s){return s},e,t)}),kW=AW,rw=function(e,t){return F.useCallback(function(){var r=e.density;return r==="compact"?kW(t,t.modes.compact):t},[e,t])},B0=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(o){return t.forEach(function(s){typeof s=="function"?s(o):s&&Wc(s)==="object"&&(s.current=o)})}},xm=function(e){if(e){var t=e.width,r=t===void 0?"":t,o=e.style,s=o===void 0?"":o,u=e.color,f=u===void 0?"":u;return r?"".concat(r," ").concat(s," ").concat(f):null}},Fl=function(e){var t,r,o,s;if(!e)return mn({});switch(e.type){case"border":return mn({border:xm(e),borderRadius:e.radius});case"bordergroup":return mn({borderBottom:xm(e.bottom),borderTop:xm(e.top),borderLeft:xm(e.left),borderRight:xm(e.right),borderBottomLeftRadius:e==null||(t=e.left)===null||t===void 0?void 0:t.radius,borderTopLeftRadius:e==null||(r=e.left)===null||r===void 0?void 0:r.radius,borderBottomRightRadius:e==null||(o=e.right)===null||o===void 0?void 0:o.radius,borderTopRightRadius:e==null||(s=e.right)===null||s===void 0?void 0:s.radius});default:return mn({})}},IW=sn.colors.interactive.focus.rgba,Zc=function(e){var t=e.color,r=t===void 0?IW:t,o=e.style,s=o===void 0?"dashed":o,u=e.width,f=u===void 0?"2px":u,p=e.offset,v=p===void 0?"0px":p,g=e.type,E={color:r,style:s,width:f,offset:v,type:g};return mn({outline:xm(E),outlineOffset:E.offset})},Am=function(e,t){if(!e)return"";var r=`
339
+ margin: 0;
340
+ color: `.concat(e.color,`;
341
+ font-family: `).concat(e.fontFamily,`;
342
+ font-size: `).concat(e.fontSize,`;
343
+ font-weight: `).concat(e.fontWeight,`;
344
+ line-height: `).concat(e.lineHeight,`;
345
+ `);return e.fontStyle&&(r+=`
346
+ font-style: `.concat(e.fontStyle,";")),e.letterSpacing&&(r+=`
347
+ letter-spacing: `.concat(e.letterSpacing,";")),e.textTransform&&(r+=`
348
+ text-transform: `.concat(e.textTransform,";")),e.textDecoration&&(r+=`
349
+ text-decoration: `.concat(e.textDecoration,";")),e.textAlign&&(r+=`
350
+ text-align: `.concat(e.textAlign,";")),e.fontFeature&&(r+=`
351
+ font-feature-settings: `.concat(e.fontFeature,";")),t&&(r+=`
352
+ cursor: pointer;`),r},km=function(e){var t=e.left,r=e.right,o=e.top,s=e.bottom;return mn({paddingLeft:t,paddingTop:o,paddingRight:r,paddingBottom:s})},OW=Dt.span.withConfig({displayName:"InnerFullWidth__FullWidthCenterContent",componentId:"sc-qeawkb-0"})(["text-align:center;flex:1;"]),NW=Dt.span.withConfig({displayName:"InnerFullWidth__FullWidthInner",componentId:"sc-qeawkb-1"})(["height:100%;display:flex;align-items:center;> :is(svg,img){margin-top:var(--eds_button__margin_y,inherit);margin-bottom:var(--eds_button__margin_y,inherit);}> :is(svg,img):first-child{margin-right:var(--eds_button__fullwidth__icon__margin_x,8px);}> :is(svg,img):last-child{margin-left:var(--eds_button__fullwidth__icon__margin_x,8px);}> :is(svg,img):only-child{margin-left:auto;margin-right:auto;}> span:first-child{margin-left:var(--eds_button__fullwidth__margin_x,32px);}> span:last-child{margin-right:var(--eds_button__fullwidth__margin_x,32px);}> span:only-child{margin-right:0;margin-left:0;}"]),MW=F.forwardRef(function(e,t){var r=e.children,o=F.Children.map(r,function(s){return Wc(s)!=="object"?se.jsx(OW,{children:s}):s});return se.jsx(NW,{ref:t,children:o})}),$L={density:"comfortable"},BL=F.createContext($L),PW=function(e){var t=e.children,r=e.density,o=F.useState(he(he({},$L),{},{density:r||"comfortable"})),s=Mu(o,2),u=s[0],f=s[1],p=function(E){return f(function(w){return he(he({},w),{},{density:E})})};F.useEffect(function(){typeof r<"u"&&r!==u.density&&p(r)},[r,u.density]);var v={density:u.density,setDensity:p};return se.jsx(BL.Provider,{value:v,children:t})},iw=function(){return F.useContext(BL)},DW=["color","variant","children","disabled","href","tabIndex","fullWidth"],Xx=function(e,t){switch(t){case"ghost":return e.ghost;case"ghost_icon":return e.ghost_icon;case"outlined":return e.outlined;case"contained_icon":return e.contained_icon;case"contained":default:return e.contained}},LW=function(e,t){switch(t){case"danger":return Xx(Yx.danger,e);case"secondary":return Xx(Yx.secondary,e);case"primary":default:return Xx(Yx.primary,e)}},UW=Dt.span.withConfig({displayName:"Button__Inner",componentId:"sc-1hs0myn-0"})(["display:grid;grid-gap:var(--eds_button__gap,8px);grid-auto-flow:column;align-items:center;height:100%;justify-content:center;& > :is(svg,img){margin-top:var(--eds_button__icon__margin_y,0);margin-bottom:var(--eds_button__icon__margin_y,0);}"]),FW=Dt.button.withConfig({displayName:"Button__ButtonBase",componentId:"sc-1hs0myn-1"})(function(n){var e,t,r,o=n.theme,s=o.states,u=o.clickbound,f=s.focus,p=s.hover,v=s.disabled;return mn(["box-sizing:border-box;margin:0;padding:0;text-decoration:none;position:relative;cursor:pointer;display:inline-block;background:",";height:",";width:",";svg{justify-self:center;}"," "," "," &::before{position:absolute;top:0;left:0;width:auto;min-height:auto;content:'';}&::after{position:absolute;top:-",";left:-",";width:",";height:",";content:'';}@media (hover:hover) and (pointer:fine){&:hover{background:",";color:",";",";}}&:focus{outline:none;}&[data-focus-visible-added]:focus{","}&:focus-visible{","}&::-moz-focus-inner{border:0;}&:disabled,&[aria-disabled='true']{cursor:not-allowed;background:",";",";",";@media (hover:hover) and (pointer:fine){&:hover{background:",";}}}"],o.background,o.height,o.width,km(o.spacings),Fl(o.border),Am(o.typography),u==null||(e=u.offset)===null||e===void 0?void 0:e.top,u==null||(t=u.offset)===null||t===void 0?void 0:t.left,u==null?void 0:u.width,u==null?void 0:u.height,p.background,(r=p.typography)===null||r===void 0?void 0:r.color,Fl(p==null?void 0:p.border),Zc(f.outline),Zc(f.outline),v.background,Fl(v.border),Am(v.typography),v.background)}),jL=F.forwardRef(function(e,t){var r=e.color,o=r===void 0?"primary":r,s=e.variant,u=s===void 0?"contained":s,f=e.children,p=e.disabled,v=p===void 0?!1:p,g=e.href,E=e.tabIndex,w=E===void 0?0:E,S=e.fullWidth,A=S===void 0?!1:S,k=Qn(e,DW),M=iw(),P=M.density,L=rw({density:P},LW(u,o)),j=g&&!v?"a":k.as?k.as:"button",U=g||k.as?void 0:"button";w=v?-1:w;var H=he({ref:t,as:j,href:g,type:U,disabled:v,tabIndex:w},k);return se.jsx(XC,{theme:L,children:se.jsx(FW,he(he({},H),{},{children:A?se.jsx(MW,{children:f}):se.jsx(UW,{children:f})}))})}),HW=sn.shape.corners.borderRadius,$W={border:{type:"border",radius:HW}},BW=["children","vertical"],jW=$W.border,sf=jW.radius,zW=Dt.div.withConfig({displayName:"ButtonGroup__ButtonGroupBase",componentId:"sc-1fn8jon-0"})(["display:inline-flex;> *{border-radius:0;@media (hover:hover) and (pointer:fine){&:hover{border-radius:0;}}}",""],function(n){var e=n.$vertical;return mn(e?["flex-direction:column;> :first-child{border-top-left-radius:",";border-top-right-radius:",";}> :last-child{border-bottom-left-radius:",";border-bottom-right-radius:",";}> :not(:last-child){border-bottom:none;}"]:["> :first-child{border-top-left-radius:",";border-bottom-left-radius:",";}> :last-child{border-top-right-radius:",";border-bottom-right-radius:",";}> :not(:last-child){border-right:none;}"],sf,sf,sf,sf)}),zL=F.forwardRef(function(e,t){var r=e.children,o=e.vertical,s=Qn(e,BW),u=he({ref:t,$vertical:o},s);return se.jsx(zW,he(he({role:"group"},u),{},{children:r}))});function qW(n){if(Array.isArray(n))return Qx(n)}function GW(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function VW(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
353
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function qL(n){return qW(n)||GW(n)||LL(n)||VW()}var GL=sn.colors,KW=GL.text.static_icons__primary_white.rgba,WW=GL.ui.background__overlay.rgba,YW=sn.typography.ui,VL=sn.spacings.comfortable,QW=VL.x_large,j0=VL.small,XW=sn.shape.corners.borderRadius,ed={typography:he(he({},YW.tooltip),{},{color:KW}),background:WW,border:{type:"border",radius:XW},entities:{tooltip:{height:QW},arrow:{width:"6px",height:j0,spacings:{bottom:"-6px",top:"-6px",left:"-6px",right:"-6px"}}},spacings:{left:j0,right:j0,top:j0,bottom:j0}};const lf=Math.min,ks=Math.max,ow=Math.round,aw=Math.floor,uf=n=>({x:n,y:n}),JW={left:"right",right:"left",bottom:"top",top:"bottom"},ZW={start:"end",end:"start"};function Jx(n,e,t){return ks(n,lf(e,t))}function Im(n,e){return typeof n=="function"?n(e):n}function cf(n){return n.split("-")[0]}function Om(n){return n.split("-")[1]}function KL(n){return n==="x"?"y":"x"}function Zx(n){return n==="y"?"height":"width"}function z0(n){return["top","bottom"].includes(cf(n))?"y":"x"}function eA(n){return KL(z0(n))}function eY(n,e,t){t===void 0&&(t=!1);const r=Om(n),o=eA(n),s=Zx(o);let u=o==="x"?r===(t?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(u=sw(u)),[u,sw(u)]}function tY(n){const e=sw(n);return[tA(n),e,tA(e)]}function tA(n){return n.replace(/start|end/g,e=>ZW[e])}function nY(n,e,t){const r=["left","right"],o=["right","left"],s=["top","bottom"],u=["bottom","top"];switch(n){case"top":case"bottom":return t?e?o:r:e?r:o;case"left":case"right":return e?s:u;default:return[]}}function rY(n,e,t,r){const o=Om(n);let s=nY(cf(n),t==="start",r);return o&&(s=s.map(u=>u+"-"+o),e&&(s=s.concat(s.map(tA)))),s}function sw(n){return n.replace(/left|right|bottom|top/g,e=>JW[e])}function iY(n){return{top:0,right:0,bottom:0,left:0,...n}}function WL(n){return typeof n!="number"?iY(n):{top:n,right:n,bottom:n,left:n}}function lw(n){return{...n,top:n.y,left:n.x,right:n.x+n.width,bottom:n.y+n.height}}function df(n){return YL(n)?(n.nodeName||"").toLowerCase():"#document"}function Is(n){var e;return(n==null||(e=n.ownerDocument)==null?void 0:e.defaultView)||window}function td(n){var e;return(e=(YL(n)?n.ownerDocument:n.document)||window.document)==null?void 0:e.documentElement}function YL(n){return n instanceof Node||n instanceof Is(n).Node}function Yr(n){return n instanceof Element||n instanceof Is(n).Element}function Zs(n){return n instanceof HTMLElement||n instanceof Is(n).HTMLElement}function nA(n){return typeof ShadowRoot>"u"?!1:n instanceof ShadowRoot||n instanceof Is(n).ShadowRoot}function q0(n){const{overflow:e,overflowX:t,overflowY:r,display:o}=Os(n);return/auto|scroll|overlay|hidden|clip/.test(e+r+t)&&!["inline","contents"].includes(o)}function oY(n){return["table","td","th"].includes(df(n))}function rA(n){const e=iA(),t=Os(n);return t.transform!=="none"||t.perspective!=="none"||(t.containerType?t.containerType!=="normal":!1)||!e&&(t.backdropFilter?t.backdropFilter!=="none":!1)||!e&&(t.filter?t.filter!=="none":!1)||["transform","perspective","filter"].some(r=>(t.willChange||"").includes(r))||["paint","layout","strict","content"].some(r=>(t.contain||"").includes(r))}function aY(n){let e=gp(n);for(;Zs(e)&&!G0(e);){if(rA(e))return e;e=gp(e)}return null}function iA(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function G0(n){return["html","body","#document"].includes(df(n))}function Os(n){return Is(n).getComputedStyle(n)}function uw(n){return Yr(n)?{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}:{scrollLeft:n.pageXOffset,scrollTop:n.pageYOffset}}function gp(n){if(df(n)==="html")return n;const e=n.assignedSlot||n.parentNode||nA(n)&&n.host||td(n);return nA(e)?e.host:e}function QL(n){const e=gp(n);return G0(e)?n.ownerDocument?n.ownerDocument.body:n.body:Zs(e)&&q0(e)?e:QL(e)}function ff(n,e){var t;e===void 0&&(e=[]);const r=QL(n),o=r===((t=n.ownerDocument)==null?void 0:t.body),s=Is(r);return o?e.concat(s,s.visualViewport||[],q0(r)?r:[],s.frameElement?ff(s.frameElement):[]):e.concat(r,ff(r))}function XL(n){let e=n.activeElement;for(;((t=e)==null||(r=t.shadowRoot)==null?void 0:r.activeElement)!=null;){var t,r;e=e.shadowRoot.activeElement}return e}function Nm(n,e){if(!n||!e)return!1;const t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&nA(t)){let r=e;for(;r;){if(n===r)return!0;r=r.parentNode||r.host}}return!1}function sY(){const n=navigator.userAgentData;return n!=null&&n.platform?n.platform:navigator.platform}function lY(){const n=navigator.userAgentData;return n&&Array.isArray(n.brands)?n.brands.map(e=>{let{brand:t,version:r}=e;return t+"/"+r}).join(" "):navigator.userAgent}function uY(n){if(n.mozInputSource===0&&n.isTrusted)return!0;const e=/Android/i;return(e.test(sY())||e.test(lY()))&&n.pointerType?n.type==="click"&&n.buttons===1:n.detail===0&&!n.pointerType}function cY(n){return n.width===0&&n.height===0||n.width===1&&n.height===1&&n.pressure===0&&n.detail===0&&n.pointerType!=="mouse"||n.width<1&&n.height<1&&n.pressure===0&&n.detail===0}function dY(){return/apple/i.test(navigator.vendor)}function JL(n,e){const t=["mouse","pen"];return e||t.push("",void 0),t.includes(n)}function fY(n){return"nativeEvent"in n}function hY(n){return n.matches("html,body")}function Pu(n){return(n==null?void 0:n.ownerDocument)||document}function cw(n,e){if(e==null)return!1;if("composedPath"in n)return n.composedPath().includes(e);const t=n;return t.target!=null&&e.contains(t.target)}function pY(n){return"composedPath"in n?n.composedPath()[0]:n.target}function ZL(n,e,t){let{reference:r,floating:o}=n;const s=z0(e),u=eA(e),f=Zx(u),p=cf(e),v=s==="y",g=r.x+r.width/2-o.width/2,E=r.y+r.height/2-o.height/2,w=r[f]/2-o[f]/2;let S;switch(p){case"top":S={x:g,y:r.y-o.height};break;case"bottom":S={x:g,y:r.y+r.height};break;case"right":S={x:r.x+r.width,y:E};break;case"left":S={x:r.x-o.width,y:E};break;default:S={x:r.x,y:r.y}}switch(Om(e)){case"start":S[u]-=w*(t&&v?-1:1);break;case"end":S[u]+=w*(t&&v?-1:1);break}return S}const vY=async(n,e,t)=>{const{placement:r="bottom",strategy:o="absolute",middleware:s=[],platform:u}=t,f=s.filter(Boolean),p=await(u.isRTL==null?void 0:u.isRTL(e));let v=await u.getElementRects({reference:n,floating:e,strategy:o}),{x:g,y:E}=ZL(v,r,p),w=r,S={},A=0;for(let k=0;k<f.length;k++){const{name:M,fn:P}=f[k],{x:L,y:j,data:U,reset:H}=await P({x:g,y:E,initialPlacement:r,placement:w,strategy:o,middlewareData:S,rects:v,platform:u,elements:{reference:n,floating:e}});if(g=L??g,E=j??E,S={...S,[M]:{...S[M],...U}},H&&A<=50){A++,typeof H=="object"&&(H.placement&&(w=H.placement),H.rects&&(v=H.rects===!0?await u.getElementRects({reference:n,floating:e,strategy:o}):H.rects),{x:g,y:E}=ZL(v,w,p)),k=-1;continue}}return{x:g,y:E,placement:w,strategy:o,middlewareData:S}};async function oA(n,e){var t;e===void 0&&(e={});const{x:r,y:o,platform:s,rects:u,elements:f,strategy:p}=n,{boundary:v="clippingAncestors",rootBoundary:g="viewport",elementContext:E="floating",altBoundary:w=!1,padding:S=0}=Im(e,n),A=WL(S),M=f[w?E==="floating"?"reference":"floating":E],P=lw(await s.getClippingRect({element:(t=await(s.isElement==null?void 0:s.isElement(M)))==null||t?M:M.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(f.floating)),boundary:v,rootBoundary:g,strategy:p})),L=E==="floating"?{...u.floating,x:r,y:o}:u.reference,j=await(s.getOffsetParent==null?void 0:s.getOffsetParent(f.floating)),U=await(s.isElement==null?void 0:s.isElement(j))?await(s.getScale==null?void 0:s.getScale(j))||{x:1,y:1}:{x:1,y:1},H=lw(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({rect:L,offsetParent:j,strategy:p}):L);return{top:(P.top-H.top+A.top)/U.y,bottom:(H.bottom-P.bottom+A.bottom)/U.y,left:(P.left-H.left+A.left)/U.x,right:(H.right-P.right+A.right)/U.x}}const eU=n=>({name:"arrow",options:n,async fn(e){const{x:t,y:r,placement:o,rects:s,platform:u,elements:f}=e,{element:p,padding:v=0}=Im(n,e)||{};if(p==null)return{};const g=WL(v),E={x:t,y:r},w=eA(o),S=Zx(w),A=await u.getDimensions(p),k=w==="y",M=k?"top":"left",P=k?"bottom":"right",L=k?"clientHeight":"clientWidth",j=s.reference[S]+s.reference[w]-E[w]-s.floating[S],U=E[w]-s.reference[w],H=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p));let W=H?H[L]:0;(!W||!await(u.isElement==null?void 0:u.isElement(H)))&&(W=f.floating[L]||s.floating[S]);const Q=j/2-U/2,Te=W/2-A[S]/2-1,Ve=lf(g[M],Te),ot=lf(g[P],Te),Me=Ve,je=W-A[S]-ot,te=W/2-A[S]/2+Q,ee=Jx(Me,te,je),ve=Om(o)!=null&&te!=ee&&s.reference[S]/2-(te<Me?Ve:ot)-A[S]/2<0?te<Me?Me-te:je-te:0;return{[w]:E[w]-ve,data:{[w]:ee,centerOffset:te-ee+ve}}}}),tU=function(n){return n===void 0&&(n={}),{name:"flip",options:n,async fn(e){var t;const{placement:r,middlewareData:o,rects:s,initialPlacement:u,platform:f,elements:p}=e,{mainAxis:v=!0,crossAxis:g=!0,fallbackPlacements:E,fallbackStrategy:w="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:A=!0,...k}=Im(n,e),M=cf(r),P=cf(u)===u,L=await(f.isRTL==null?void 0:f.isRTL(p.floating)),j=E||(P||!A?[sw(u)]:tY(u));!E&&S!=="none"&&j.push(...rY(u,A,S,L));const U=[u,...j],H=await oA(e,k),W=[];let Q=((t=o.flip)==null?void 0:t.overflows)||[];if(v&&W.push(H[M]),g){const Me=eY(r,s,L);W.push(H[Me[0]],H[Me[1]])}if(Q=[...Q,{placement:r,overflows:W}],!W.every(Me=>Me<=0)){var Te,Ve;const Me=(((Te=o.flip)==null?void 0:Te.index)||0)+1,je=U[Me];if(je)return{data:{index:Me,overflows:Q},reset:{placement:je}};let te=(Ve=Q.filter(ee=>ee.overflows[0]<=0).sort((ee,ye)=>ee.overflows[1]-ye.overflows[1])[0])==null?void 0:Ve.placement;if(!te)switch(w){case"bestFit":{var ot;const ee=(ot=Q.map(ye=>[ye.placement,ye.overflows.filter(ve=>ve>0).reduce((ve,pe)=>ve+pe,0)]).sort((ye,ve)=>ye[1]-ve[1])[0])==null?void 0:ot[0];ee&&(te=ee);break}case"initialPlacement":te=u;break}if(r!==te)return{reset:{placement:te}}}return{}}}};async function mY(n,e){const{placement:t,platform:r,elements:o}=n,s=await(r.isRTL==null?void 0:r.isRTL(o.floating)),u=cf(t),f=Om(t),p=z0(t)==="y",v=["left","top"].includes(u)?-1:1,g=s&&p?-1:1,E=Im(e,n);let{mainAxis:w,crossAxis:S,alignmentAxis:A}=typeof E=="number"?{mainAxis:E,crossAxis:0,alignmentAxis:null}:{mainAxis:0,crossAxis:0,alignmentAxis:null,...E};return f&&typeof A=="number"&&(S=f==="end"?A*-1:A),p?{x:S*g,y:w*v}:{x:w*v,y:S*g}}const nU=function(n){return n===void 0&&(n=0),{name:"offset",options:n,async fn(e){const{x:t,y:r}=e,o=await mY(e,n);return{x:t+o.x,y:r+o.y,data:o}}}},rU=function(n){return n===void 0&&(n={}),{name:"shift",options:n,async fn(e){const{x:t,y:r,placement:o}=e,{mainAxis:s=!0,crossAxis:u=!1,limiter:f={fn:M=>{let{x:P,y:L}=M;return{x:P,y:L}}},...p}=Im(n,e),v={x:t,y:r},g=await oA(e,p),E=z0(cf(o)),w=KL(E);let S=v[w],A=v[E];if(s){const M=w==="y"?"top":"left",P=w==="y"?"bottom":"right",L=S+g[M],j=S-g[P];S=Jx(L,S,j)}if(u){const M=E==="y"?"top":"left",P=E==="y"?"bottom":"right",L=A+g[M],j=A-g[P];A=Jx(L,A,j)}const k=f.fn({...e,[w]:S,[E]:A});return{...k,data:{x:k.x-t,y:k.y-r}}}}},gY=function(n){return n===void 0&&(n={}),{name:"size",options:n,async fn(e){const{placement:t,rects:r,platform:o,elements:s}=e,{apply:u=()=>{},...f}=Im(n,e),p=await oA(e,f),v=cf(t),g=Om(t),E=z0(t)==="y",{width:w,height:S}=r.floating;let A,k;v==="top"||v==="bottom"?(A=v,k=g===(await(o.isRTL==null?void 0:o.isRTL(s.floating))?"start":"end")?"left":"right"):(k=v,A=g==="end"?"top":"bottom");const M=S-p[A],P=w-p[k],L=!e.middlewareData.shift;let j=M,U=P;if(E){const W=w-p.left-p.right;U=g||L?lf(P,W):W}else{const W=S-p.top-p.bottom;j=g||L?lf(M,W):W}if(L&&!g){const W=ks(p.left,0),Q=ks(p.right,0),Te=ks(p.top,0),Ve=ks(p.bottom,0);E?U=w-2*(W!==0||Q!==0?W+Q:ks(p.left,p.right)):j=S-2*(Te!==0||Ve!==0?Te+Ve:ks(p.top,p.bottom))}await u({...e,availableWidth:U,availableHeight:j});const H=await o.getDimensions(s.floating);return w!==H.width||S!==H.height?{reset:{rects:!0}}:{}}}};function iU(n){const e=Os(n);let t=parseFloat(e.width)||0,r=parseFloat(e.height)||0;const o=Zs(n),s=o?n.offsetWidth:t,u=o?n.offsetHeight:r,f=ow(t)!==s||ow(r)!==u;return f&&(t=s,r=u),{width:t,height:r,$:f}}function aA(n){return Yr(n)?n:n.contextElement}function Mm(n){const e=aA(n);if(!Zs(e))return uf(1);const t=e.getBoundingClientRect(),{width:r,height:o,$:s}=iU(e);let u=(s?ow(t.width):t.width)/r,f=(s?ow(t.height):t.height)/o;return(!u||!Number.isFinite(u))&&(u=1),(!f||!Number.isFinite(f))&&(f=1),{x:u,y:f}}const yY=uf(0);function oU(n){const e=Is(n);return!iA()||!e.visualViewport?yY:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function _Y(n,e,t){return e===void 0&&(e=!1),!t||e&&t!==Is(n)?!1:e}function yp(n,e,t,r){e===void 0&&(e=!1),t===void 0&&(t=!1);const o=n.getBoundingClientRect(),s=aA(n);let u=uf(1);e&&(r?Yr(r)&&(u=Mm(r)):u=Mm(n));const f=_Y(s,t,r)?oU(s):uf(0);let p=(o.left+f.x)/u.x,v=(o.top+f.y)/u.y,g=o.width/u.x,E=o.height/u.y;if(s){const w=Is(s),S=r&&Yr(r)?Is(r):r;let A=w.frameElement;for(;A&&r&&S!==w;){const k=Mm(A),M=A.getBoundingClientRect(),P=Os(A),L=M.left+(A.clientLeft+parseFloat(P.paddingLeft))*k.x,j=M.top+(A.clientTop+parseFloat(P.paddingTop))*k.y;p*=k.x,v*=k.y,g*=k.x,E*=k.y,p+=L,v+=j,A=Is(A).frameElement}}return lw({width:g,height:E,x:p,y:v})}function EY(n){let{rect:e,offsetParent:t,strategy:r}=n;const o=Zs(t),s=td(t);if(t===s)return e;let u={scrollLeft:0,scrollTop:0},f=uf(1);const p=uf(0);if((o||!o&&r!=="fixed")&&((df(t)!=="body"||q0(s))&&(u=uw(t)),Zs(t))){const v=yp(t);f=Mm(t),p.x=v.x+t.clientLeft,p.y=v.y+t.clientTop}return{width:e.width*f.x,height:e.height*f.y,x:e.x*f.x-u.scrollLeft*f.x+p.x,y:e.y*f.y-u.scrollTop*f.y+p.y}}function bY(n){return Array.from(n.getClientRects())}function aU(n){return yp(td(n)).left+uw(n).scrollLeft}function CY(n){const e=td(n),t=uw(n),r=n.ownerDocument.body,o=ks(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),s=ks(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight);let u=-t.scrollLeft+aU(n);const f=-t.scrollTop;return Os(r).direction==="rtl"&&(u+=ks(e.clientWidth,r.clientWidth)-o),{width:o,height:s,x:u,y:f}}function wY(n,e){const t=Is(n),r=td(n),o=t.visualViewport;let s=r.clientWidth,u=r.clientHeight,f=0,p=0;if(o){s=o.width,u=o.height;const v=iA();(!v||v&&e==="fixed")&&(f=o.offsetLeft,p=o.offsetTop)}return{width:s,height:u,x:f,y:p}}function SY(n,e){const t=yp(n,!0,e==="fixed"),r=t.top+n.clientTop,o=t.left+n.clientLeft,s=Zs(n)?Mm(n):uf(1),u=n.clientWidth*s.x,f=n.clientHeight*s.y,p=o*s.x,v=r*s.y;return{width:u,height:f,x:p,y:v}}function sU(n,e,t){let r;if(e==="viewport")r=wY(n,t);else if(e==="document")r=CY(td(n));else if(Yr(e))r=SY(e,t);else{const o=oU(n);r={...e,x:e.x-o.x,y:e.y-o.y}}return lw(r)}function lU(n,e){const t=gp(n);return t===e||!Yr(t)||G0(t)?!1:Os(t).position==="fixed"||lU(t,e)}function TY(n,e){const t=e.get(n);if(t)return t;let r=ff(n).filter(f=>Yr(f)&&df(f)!=="body"),o=null;const s=Os(n).position==="fixed";let u=s?gp(n):n;for(;Yr(u)&&!G0(u);){const f=Os(u),p=rA(u);!p&&f.position==="fixed"&&(o=null),(s?!p&&!o:!p&&f.position==="static"&&!!o&&["absolute","fixed"].includes(o.position)||q0(u)&&!p&&lU(n,u))?r=r.filter(g=>g!==u):o=f,u=gp(u)}return e.set(n,r),r}function RY(n){let{element:e,boundary:t,rootBoundary:r,strategy:o}=n;const u=[...t==="clippingAncestors"?TY(e,this._c):[].concat(t),r],f=u[0],p=u.reduce((v,g)=>{const E=sU(e,g,o);return v.top=ks(E.top,v.top),v.right=lf(E.right,v.right),v.bottom=lf(E.bottom,v.bottom),v.left=ks(E.left,v.left),v},sU(e,f,o));return{width:p.right-p.left,height:p.bottom-p.top,x:p.left,y:p.top}}function xY(n){return iU(n)}function AY(n,e,t){const r=Zs(e),o=td(e),s=t==="fixed",u=yp(n,!0,s,e);let f={scrollLeft:0,scrollTop:0};const p=uf(0);if(r||!r&&!s)if((df(e)!=="body"||q0(o))&&(f=uw(e)),r){const v=yp(e,!0,s,e);p.x=v.x+e.clientLeft,p.y=v.y+e.clientTop}else o&&(p.x=aU(o));return{x:u.left+f.scrollLeft-p.x,y:u.top+f.scrollTop-p.y,width:u.width,height:u.height}}function uU(n,e){return!Zs(n)||Os(n).position==="fixed"?null:e?e(n):n.offsetParent}function cU(n,e){const t=Is(n);if(!Zs(n))return t;let r=uU(n,e);for(;r&&oY(r)&&Os(r).position==="static";)r=uU(r,e);return r&&(df(r)==="html"||df(r)==="body"&&Os(r).position==="static"&&!rA(r))?t:r||aY(n)||t}const kY=async function(n){let{reference:e,floating:t,strategy:r}=n;const o=this.getOffsetParent||cU,s=this.getDimensions;return{reference:AY(e,await o(t),r),floating:{x:0,y:0,...await s(t)}}};function IY(n){return Os(n).direction==="rtl"}const OY={convertOffsetParentRelativeRectToViewportRelativeRect:EY,getDocumentElement:td,getClippingRect:RY,getOffsetParent:cU,getElementRects:kY,getClientRects:bY,getDimensions:xY,getScale:Mm,isElement:Yr,isRTL:IY};function NY(n,e){let t=null,r;const o=td(n);function s(){clearTimeout(r),t&&t.disconnect(),t=null}function u(f,p){f===void 0&&(f=!1),p===void 0&&(p=1),s();const{left:v,top:g,width:E,height:w}=n.getBoundingClientRect();if(f||e(),!E||!w)return;const S=aw(g),A=aw(o.clientWidth-(v+E)),k=aw(o.clientHeight-(g+w)),M=aw(v),L={rootMargin:-S+"px "+-A+"px "+-k+"px "+-M+"px",threshold:ks(0,lf(1,p))||1};let j=!0;function U(H){const W=H[0].intersectionRatio;if(W!==p){if(!j)return u();W?u(!1,W):r=setTimeout(()=>{u(!1,1e-7)},100)}j=!1}try{t=new IntersectionObserver(U,{...L,root:o.ownerDocument})}catch{t=new IntersectionObserver(U,L)}t.observe(n)}return u(!0),s}function dU(n,e,t,r){r===void 0&&(r={});const{ancestorScroll:o=!0,ancestorResize:s=!0,elementResize:u=typeof ResizeObserver=="function",layoutShift:f=typeof IntersectionObserver=="function",animationFrame:p=!1}=r,v=aA(n),g=o||s?[...v?ff(v):[],...ff(e)]:[];g.forEach(P=>{o&&P.addEventListener("scroll",t,{passive:!0}),s&&P.addEventListener("resize",t)});const E=v&&f?NY(v,t):null;let w=-1,S=null;u&&(S=new ResizeObserver(P=>{let[L]=P;L&&L.target===v&&S&&(S.unobserve(e),cancelAnimationFrame(w),w=requestAnimationFrame(()=>{S&&S.observe(e)})),t()}),v&&!p&&S.observe(v),S.observe(e));let A,k=p?yp(n):null;p&&M();function M(){const P=yp(n);k&&(P.x!==k.x||P.y!==k.y||P.width!==k.width||P.height!==k.height)&&t(),k=P,A=requestAnimationFrame(M)}return t(),()=>{g.forEach(P=>{o&&P.removeEventListener("scroll",t),s&&P.removeEventListener("resize",t)}),E&&E(),S&&S.disconnect(),S=null,p&&cancelAnimationFrame(A)}}const MY=(n,e,t)=>{const r=new Map,o={platform:OY,...t},s={...o.platform,_c:r};return vY(n,e,{...o,platform:s})},PY=n=>{function e(t){return{}.hasOwnProperty.call(t,"current")}return{name:"arrow",options:n,fn(t){const{element:r,padding:o}=typeof n=="function"?n(t):n;return r&&e(r)?r.current!=null?eU({element:r.current,padding:o}).fn(t):{}:r?eU({element:r,padding:o}).fn(t):{}}}};var dw=typeof document<"u"?F.useLayoutEffect:F.useEffect;function fw(n,e){if(n===e)return!0;if(typeof n!=typeof e)return!1;if(typeof n=="function"&&n.toString()===e.toString())return!0;let t,r,o;if(n&&e&&typeof n=="object"){if(Array.isArray(n)){if(t=n.length,t!=e.length)return!1;for(r=t;r--!==0;)if(!fw(n[r],e[r]))return!1;return!0}if(o=Object.keys(n),t=o.length,t!==Object.keys(e).length)return!1;for(r=t;r--!==0;)if(!{}.hasOwnProperty.call(e,o[r]))return!1;for(r=t;r--!==0;){const s=o[r];if(!(s==="_owner"&&n.$$typeof)&&!fw(n[s],e[s]))return!1}return!0}return n!==n&&e!==e}function fU(n){return typeof window>"u"?1:(n.ownerDocument.defaultView||window).devicePixelRatio||1}function hU(n,e){const t=fU(n);return Math.round(e*t)/t}function pU(n){const e=F.useRef(n);return dw(()=>{e.current=n}),e}function DY(n){n===void 0&&(n={});const{placement:e="bottom",strategy:t="absolute",middleware:r=[],platform:o,elements:{reference:s,floating:u}={},transform:f=!0,whileElementsMounted:p,open:v}=n,[g,E]=F.useState({x:0,y:0,strategy:t,placement:e,middlewareData:{},isPositioned:!1}),[w,S]=F.useState(r);fw(w,r)||S(r);const[A,k]=F.useState(null),[M,P]=F.useState(null),L=F.useCallback(ve=>{ve!=W.current&&(W.current=ve,k(ve))},[k]),j=F.useCallback(ve=>{ve!==Q.current&&(Q.current=ve,P(ve))},[P]),U=s||A,H=u||M,W=F.useRef(null),Q=F.useRef(null),Te=F.useRef(g),Ve=pU(p),ot=pU(o),Me=F.useCallback(()=>{if(!W.current||!Q.current)return;const ve={placement:e,strategy:t,middleware:w};ot.current&&(ve.platform=ot.current),MY(W.current,Q.current,ve).then(pe=>{const K={...pe,isPositioned:!0};je.current&&!fw(Te.current,K)&&(Te.current=K,NR.flushSync(()=>{E(K)}))})},[w,e,t,ot]);dw(()=>{v===!1&&Te.current.isPositioned&&(Te.current.isPositioned=!1,E(ve=>({...ve,isPositioned:!1})))},[v]);const je=F.useRef(!1);dw(()=>(je.current=!0,()=>{je.current=!1}),[]),dw(()=>{if(U&&(W.current=U),H&&(Q.current=H),U&&H){if(Ve.current)return Ve.current(U,H,Me);Me()}},[U,H,Me,Ve]);const te=F.useMemo(()=>({reference:W,floating:Q,setReference:L,setFloating:j}),[L,j]),ee=F.useMemo(()=>({reference:U,floating:H}),[U,H]),ye=F.useMemo(()=>{const ve={position:t,left:0,top:0};if(!ee.floating)return ve;const pe=hU(ee.floating,g.x),K=hU(ee.floating,g.y);return f?{...ve,transform:"translate("+pe+"px, "+K+"px)",...fU(ee.floating)>=1.5&&{willChange:"transform"}}:{position:t,left:pe,top:K}},[t,f,ee.floating,g.x,g.y]);return F.useMemo(()=>({...g,update:Me,refs:te,elements:ee,floatingStyles:ye}),[g,Me,te,ee,ye])}/*!
354
+ * tabbable 6.2.0
355
+ * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
356
+ */var LY=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"],sA=LY.join(","),vU=typeof Element>"u",V0=vU?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,hw=!vU&&Element.prototype.getRootNode?function(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}:function(n){return n==null?void 0:n.ownerDocument},pw=function n(e,t){var r;t===void 0&&(t=!0);var o=e==null||(r=e.getAttribute)===null||r===void 0?void 0:r.call(e,"inert"),s=o===""||o==="true",u=s||t&&e&&n(e.parentNode);return u},UY=function(e){var t,r=e==null||(t=e.getAttribute)===null||t===void 0?void 0:t.call(e,"contenteditable");return r===""||r==="true"},FY=function(e,t,r){if(pw(e))return[];var o=Array.prototype.slice.apply(e.querySelectorAll(sA));return t&&V0.call(e,sA)&&o.unshift(e),o=o.filter(r),o},HY=function n(e,t,r){for(var o=[],s=Array.from(e);s.length;){var u=s.shift();if(!pw(u,!1))if(u.tagName==="SLOT"){var f=u.assignedElements(),p=f.length?f:u.children,v=n(p,!0,r);r.flatten?o.push.apply(o,v):o.push({scopeParent:u,candidates:v})}else{var g=V0.call(u,sA);g&&r.filter(u)&&(t||!e.includes(u))&&o.push(u);var E=u.shadowRoot||typeof r.getShadowRoot=="function"&&r.getShadowRoot(u),w=!pw(E,!1)&&(!r.shadowRootFilter||r.shadowRootFilter(u));if(E&&w){var S=n(E===!0?u.children:E.children,!0,r);r.flatten?o.push.apply(o,S):o.push({scopeParent:u,candidates:S})}else s.unshift.apply(s,u.children)}}return o},mU=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},gU=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||UY(e))&&!mU(e)?0:e.tabIndex},$Y=function(e,t){var r=gU(e);return r<0&&t&&!mU(e)?0:r},BY=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},yU=function(e){return e.tagName==="INPUT"},jY=function(e){return yU(e)&&e.type==="hidden"},zY=function(e){var t=e.tagName==="DETAILS"&&Array.prototype.slice.apply(e.children).some(function(r){return r.tagName==="SUMMARY"});return t},qY=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]},GY=function(e){if(!e.name)return!0;var t=e.form||hw(e),r=function(f){return t.querySelectorAll('input[type="radio"][name="'+f+'"]')},o;if(typeof window<"u"&&typeof window.CSS<"u"&&typeof window.CSS.escape=="function")o=r(window.CSS.escape(e.name));else try{o=r(e.name)}catch(u){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",u.message),!1}var s=qY(o,e.form);return!s||s===e},VY=function(e){return yU(e)&&e.type==="radio"},KY=function(e){return VY(e)&&!GY(e)},WY=function(e){var t,r=e&&hw(e),o=(t=r)===null||t===void 0?void 0:t.host,s=!1;if(r&&r!==e){var u,f,p;for(s=!!((u=o)!==null&&u!==void 0&&(f=u.ownerDocument)!==null&&f!==void 0&&f.contains(o)||e!=null&&(p=e.ownerDocument)!==null&&p!==void 0&&p.contains(e));!s&&o;){var v,g,E;r=hw(o),o=(v=r)===null||v===void 0?void 0:v.host,s=!!((g=o)!==null&&g!==void 0&&(E=g.ownerDocument)!==null&&E!==void 0&&E.contains(o))}}return s},_U=function(e){var t=e.getBoundingClientRect(),r=t.width,o=t.height;return r===0&&o===0},YY=function(e,t){var r=t.displayCheck,o=t.getShadowRoot;if(getComputedStyle(e).visibility==="hidden")return!0;var s=V0.call(e,"details>summary:first-of-type"),u=s?e.parentElement:e;if(V0.call(u,"details:not([open]) *"))return!0;if(!r||r==="full"||r==="legacy-full"){if(typeof o=="function"){for(var f=e;e;){var p=e.parentElement,v=hw(e);if(p&&!p.shadowRoot&&o(p)===!0)return _U(e);e.assignedSlot?e=e.assignedSlot:!p&&v!==e.ownerDocument?e=v.host:e=p}e=f}if(WY(e))return!e.getClientRects().length;if(r!=="legacy-full")return!0}else if(r==="non-zero-area")return _U(e);return!1},QY=function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if(t.tagName==="FIELDSET"&&t.disabled){for(var r=0;r<t.children.length;r++){var o=t.children.item(r);if(o.tagName==="LEGEND")return V0.call(t,"fieldset[disabled] *")?!0:!o.contains(e)}return!0}t=t.parentElement}return!1},XY=function(e,t){return!(t.disabled||pw(t)||jY(t)||YY(t,e)||zY(t)||QY(t))},EU=function(e,t){return!(KY(t)||gU(t)<0||!XY(e,t))},JY=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},ZY=function n(e){var t=[],r=[];return e.forEach(function(o,s){var u=!!o.scopeParent,f=u?o.scopeParent:o,p=$Y(f,u),v=u?n(o.candidates):f;p===0?u?t.push.apply(t,v):t.push(f):r.push({documentOrder:s,tabIndex:p,item:o,isScope:u,content:v})}),r.sort(BY).reduce(function(o,s){return s.isScope?o.push.apply(o,s.content):o.push(s.content),o},[]).concat(t)},bU=function(e,t){t=t||{};var r;return t.getShadowRoot?r=HY([e],t.includeContainer,{filter:EU.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:JY}):r=FY(e,t.includeContainer,EU.bind(null,t)),ZY(r)},hf=typeof document<"u"?F.useLayoutEffect:F.useEffect;function lA(){return lA=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},lA.apply(this,arguments)}let uA=!1,eQ=0;const CU=()=>"floating-ui-"+eQ++;function tQ(){const[n,e]=F.useState(()=>uA?CU():void 0);return hf(()=>{n==null&&e(CU())},[]),F.useEffect(()=>{uA||(uA=!0)},[]),n}const cA=AR["useId".toString()]||tQ;function nQ(){const n=new Map;return{emit(e,t){var r;(r=n.get(e))==null||r.forEach(o=>o(t))},on(e,t){n.set(e,[...n.get(e)||[],t])},off(e,t){var r;n.set(e,((r=n.get(e))==null?void 0:r.filter(o=>o!==t))||[])}}}const rQ=F.createContext(null),iQ=F.createContext(null),wU=()=>{var n;return((n=F.useContext(rQ))==null?void 0:n.id)||null},dA=()=>F.useContext(iQ);function K0(n){return"data-floating-ui-"+n}function SU(n){const e=F.useRef(n);return hf(()=>{e.current=n}),e}const TU=K0("safe-polygon");function fA(n,e,t){return t&&!JL(t)?0:typeof n=="number"?n:n==null?void 0:n[e]}function oQ(n,e){e===void 0&&(e={});const{open:t,onOpenChange:r,dataRef:o,events:s,elements:{domReference:u,floating:f},refs:p}=n,{enabled:v=!0,delay:g=0,handleClose:E=null,mouseOnly:w=!1,restMs:S=0,move:A=!0}=e,k=dA(),M=wU(),P=SU(E),L=SU(g),j=F.useRef(),U=F.useRef(),H=F.useRef(),W=F.useRef(),Q=F.useRef(!0),Te=F.useRef(!1),Ve=F.useRef(()=>{}),ot=F.useCallback(()=>{var ee;const ye=(ee=o.current.openEvent)==null?void 0:ee.type;return(ye==null?void 0:ye.includes("mouse"))&&ye!=="mousedown"},[o]);F.useEffect(()=>{if(!v)return;function ee(){clearTimeout(U.current),clearTimeout(W.current),Q.current=!0}return s.on("dismiss",ee),()=>{s.off("dismiss",ee)}},[v,s]),F.useEffect(()=>{if(!v||!P.current||!t)return;function ee(ve){ot()&&r(!1,ve)}const ye=Pu(f).documentElement;return ye.addEventListener("mouseleave",ee),()=>{ye.removeEventListener("mouseleave",ee)}},[f,t,r,v,P,o,ot]);const Me=F.useCallback(function(ee,ye){ye===void 0&&(ye=!0);const ve=fA(L.current,"close",j.current);ve&&!H.current?(clearTimeout(U.current),U.current=setTimeout(()=>r(!1,ee),ve)):ye&&(clearTimeout(U.current),r(!1,ee))},[L,r]),je=F.useCallback(()=>{Ve.current(),H.current=void 0},[]),te=F.useCallback(()=>{if(Te.current){const ee=Pu(p.floating.current).body;ee.style.pointerEvents="",ee.removeAttribute(TU),Te.current=!1}},[p]);return F.useEffect(()=>{if(!v)return;function ee(){return o.current.openEvent?["click","mousedown"].includes(o.current.openEvent.type):!1}function ye(K){if(clearTimeout(U.current),Q.current=!1,w&&!JL(j.current)||S>0&&fA(L.current,"open")===0)return;const ge=fA(L.current,"open",j.current);ge?U.current=setTimeout(()=>{r(!0,K)},ge):r(!0,K)}function ve(K){if(ee())return;Ve.current();const ge=Pu(f);if(clearTimeout(W.current),P.current){t||clearTimeout(U.current),H.current=P.current({...n,tree:k,x:K.clientX,y:K.clientY,onClose(){te(),je(),Me(K)}});const ne=H.current;ge.addEventListener("mousemove",ne),Ve.current=()=>{ge.removeEventListener("mousemove",ne)};return}(j.current==="touch"?!Nm(f,K.relatedTarget):!0)&&Me(K)}function pe(K){ee()||P.current==null||P.current({...n,tree:k,x:K.clientX,y:K.clientY,onClose(){te(),je(),Me(K)}})(K)}if(Yr(u)){const K=u;return t&&K.addEventListener("mouseleave",pe),f==null||f.addEventListener("mouseleave",pe),A&&K.addEventListener("mousemove",ye,{once:!0}),K.addEventListener("mouseenter",ye),K.addEventListener("mouseleave",ve),()=>{t&&K.removeEventListener("mouseleave",pe),f==null||f.removeEventListener("mouseleave",pe),A&&K.removeEventListener("mousemove",ye),K.removeEventListener("mouseenter",ye),K.removeEventListener("mouseleave",ve)}}},[u,f,v,n,w,S,A,Me,je,te,r,t,k,L,P,o]),hf(()=>{var ee;if(v&&t&&(ee=P.current)!=null&&ee.__options.blockPointerEvents&&ot()){const pe=Pu(f).body;if(pe.setAttribute(TU,""),pe.style.pointerEvents="none",Te.current=!0,Yr(u)&&f){var ye,ve;const K=u,ge=k==null||(ye=k.nodesRef.current.find(B=>B.id===M))==null||(ve=ye.context)==null?void 0:ve.elements.floating;return ge&&(ge.style.pointerEvents=""),K.style.pointerEvents="auto",f.style.pointerEvents="auto",()=>{K.style.pointerEvents="",f.style.pointerEvents=""}}}},[v,t,M,f,u,k,P,o,ot]),hf(()=>{t||(j.current=void 0,je(),te())},[t,je,te]),F.useEffect(()=>()=>{je(),clearTimeout(U.current),clearTimeout(W.current),te()},[v,u,je,te]),F.useMemo(()=>{if(!v)return{};function ee(ye){j.current=ye.pointerType}return{reference:{onPointerDown:ee,onPointerEnter:ee,onMouseMove(ye){t||S===0||(clearTimeout(W.current),W.current=setTimeout(()=>{Q.current||r(!0,ye.nativeEvent)},S))}},floating:{onMouseEnter(){clearTimeout(U.current)},onMouseLeave(ye){s.emit("dismiss",{type:"mouseLeave",data:{returnFocus:!1}}),Me(ye.nativeEvent,!1)}}}},[s,v,S,t,r,Me])}function hA(n,e){let t=n.filter(o=>{var s;return o.parentId===e&&((s=o.context)==null?void 0:s.open)}),r=t;for(;r.length;)r=n.filter(o=>{var s;return(s=r)==null?void 0:s.some(u=>{var f;return o.parentId===u.id&&((f=o.context)==null?void 0:f.open)})}),t=t.concat(r);return t}const RU=()=>({getShadowRoot:!0,displayCheck:typeof ResizeObserver=="function"&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function xU(n,e){const t=bU(n,RU());e==="prev"&&t.reverse();const r=t.indexOf(XL(Pu(n)));return t.slice(r+1)[0]}function aQ(){return xU(document.body,"next")}function sQ(){return xU(document.body,"prev")}function pA(n,e){const t=e||n.currentTarget,r=n.relatedTarget;return!r||!Nm(t,r)}function lQ(n){bU(n,RU()).forEach(t=>{t.dataset.tabindex=t.getAttribute("tabindex")||"",t.setAttribute("tabindex","-1")})}function uQ(n){n.querySelectorAll("[data-tabindex]").forEach(t=>{const r=t.dataset.tabindex;delete t.dataset.tabindex,r?t.setAttribute("tabindex",r):t.removeAttribute("tabindex")})}const AU={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};let cQ;function kU(n){n.key==="Tab"&&(n.target,clearTimeout(cQ))}const IU=F.forwardRef(function(e,t){const[r,o]=F.useState();hf(()=>(dY()&&o("button"),document.addEventListener("keydown",kU),()=>{document.removeEventListener("keydown",kU)}),[]);const s={ref:t,tabIndex:0,role:r,"aria-hidden":r?void 0:!0,[K0("focus-guard")]:"",style:AU};return F.createElement("span",lA({},e,s))}),OU=F.createContext(null);function dQ(n){let{id:e,root:t}=n===void 0?{}:n;const[r,o]=F.useState(null),s=cA(),u=fQ(),f=F.useMemo(()=>({id:e,root:t,portalContext:u,uniqueId:s}),[e,t,u,s]),p=F.useRef();return hf(()=>()=>{r==null||r.remove()},[r,f]),hf(()=>{if(p.current===f)return;p.current=f;const{id:v,root:g,portalContext:E,uniqueId:w}=f,S=v?document.getElementById(v):null,A=K0("portal");if(S){const k=document.createElement("div");k.id=w,k.setAttribute(A,""),S.appendChild(k),o(k)}else{let k=g||(E==null?void 0:E.portalNode);k&&!Yr(k)&&(k=k.current),k=k||document.body;let M=null;v&&(M=document.createElement("div"),M.id=v,k.appendChild(M));const P=document.createElement("div");P.id=w,P.setAttribute(A,""),k=M||k,k.appendChild(P),o(P)}},[f]),r}function NU(n){let{children:e,id:t,root:r=null,preserveTabOrder:o=!0}=n;const s=dQ({id:t,root:r}),[u,f]=F.useState(null),p=F.useRef(null),v=F.useRef(null),g=F.useRef(null),E=F.useRef(null),w=!!u&&!u.modal&&u.open&&o&&!!(r||s);return F.useEffect(()=>{if(!s||!o||u!=null&&u.modal)return;function S(A){s&&pA(A)&&(A.type==="focusin"?uQ:lQ)(s)}return s.addEventListener("focusin",S,!0),s.addEventListener("focusout",S,!0),()=>{s.removeEventListener("focusin",S,!0),s.removeEventListener("focusout",S,!0)}},[s,o,u==null?void 0:u.modal]),F.createElement(OU.Provider,{value:F.useMemo(()=>({preserveTabOrder:o,beforeOutsideRef:p,afterOutsideRef:v,beforeInsideRef:g,afterInsideRef:E,portalNode:s,setFocusManagerState:f}),[o,s])},w&&s&&F.createElement(IU,{"data-type":"outside",ref:p,onFocus:S=>{if(pA(S,s)){var A;(A=g.current)==null||A.focus()}else{const k=sQ()||(u==null?void 0:u.refs.domReference.current);k==null||k.focus()}}}),w&&s&&F.createElement("span",{"aria-owns":s.id,style:AU}),s&&NR.createPortal(e,s),w&&s&&F.createElement(IU,{"data-type":"outside",ref:v,onFocus:S=>{if(pA(S,s)){var A;(A=E.current)==null||A.focus()}else{const k=aQ()||(u==null?void 0:u.refs.domReference.current);k==null||k.focus(),u!=null&&u.closeOnFocusOut&&(u==null||u.onOpenChange(!1,S.nativeEvent))}}}))}const fQ=()=>F.useContext(OU),hQ=AR["useInsertionEffect".toString()]||(n=>n());function vw(n){const e=F.useRef(()=>{if(process.env.NODE_ENV!=="production")throw new Error("Cannot call an event handler while rendering.")});return hQ(()=>{e.current=n}),F.useCallback(function(){for(var t=arguments.length,r=new Array(t),o=0;o<t;o++)r[o]=arguments[o];return e.current==null?void 0:e.current(...r)},[])}const pQ={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},vQ={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},mQ=n=>{var e,t;return{escapeKeyBubbles:typeof n=="boolean"?n:(e=n==null?void 0:n.escapeKey)!=null?e:!1,outsidePressBubbles:typeof n=="boolean"?n:(t=n==null?void 0:n.outsidePress)!=null?t:!0}};function MU(n,e){e===void 0&&(e={});const{open:t,onOpenChange:r,events:o,nodeId:s,elements:{reference:u,domReference:f,floating:p},dataRef:v}=n,{enabled:g=!0,escapeKey:E=!0,outsidePress:w=!0,outsidePressEvent:S="pointerdown",referencePress:A=!1,referencePressEvent:k="pointerdown",ancestorScroll:M=!1,bubbles:P}=e,L=dA(),j=wU()!=null,U=vw(typeof w=="function"?w:()=>!1),H=typeof w=="function"?U:w,W=F.useRef(!1),{escapeKeyBubbles:Q,outsidePressBubbles:Te}=mQ(P),Ve=vw(Me=>{if(!t||!g||!E||Me.key!=="Escape")return;const je=L?hA(L.nodesRef.current,s):[];if(!Q&&(Me.stopPropagation(),je.length>0)){let te=!0;if(je.forEach(ee=>{var ye;if((ye=ee.context)!=null&&ye.open&&!ee.context.dataRef.current.__escapeKeyBubbles){te=!1;return}}),!te)return}o.emit("dismiss",{type:"escapeKey",data:{returnFocus:{preventScroll:!1}}}),r(!1,fY(Me)?Me.nativeEvent:Me)}),ot=vw(Me=>{const je=W.current;if(W.current=!1,je||typeof H=="function"&&!H(Me))return;const te=pY(Me),ee="["+K0("inert")+"]",ye=Pu(p).querySelectorAll(ee);let ve=Yr(te)?te:null;for(;ve&&!G0(ve);){const ge=gp(ve);if(ge===Pu(p).body||!Yr(ge))break;ve=ge}if(ye.length&&Yr(te)&&!hY(te)&&!Nm(te,p)&&Array.from(ye).every(ge=>!Nm(ve,ge)))return;if(Zs(te)&&p){const ge=te.clientWidth>0&&te.scrollWidth>te.clientWidth,B=te.clientHeight>0&&te.scrollHeight>te.clientHeight;let ne=B&&Me.offsetX>te.clientWidth;if(B&&Os(te).direction==="rtl"&&(ne=Me.offsetX<=te.offsetWidth-te.clientWidth),ne||ge&&Me.offsetY>te.clientHeight)return}const pe=L&&hA(L.nodesRef.current,s).some(ge=>{var B;return cw(Me,(B=ge.context)==null?void 0:B.elements.floating)});if(cw(Me,p)||cw(Me,f)||pe)return;const K=L?hA(L.nodesRef.current,s):[];if(K.length>0){let ge=!0;if(K.forEach(B=>{var ne;if((ne=B.context)!=null&&ne.open&&!B.context.dataRef.current.__outsidePressBubbles){ge=!1;return}}),!ge)return}o.emit("dismiss",{type:"outsidePress",data:{returnFocus:j?{preventScroll:!0}:uY(Me)||cY(Me)}}),r(!1,Me)});return F.useEffect(()=>{if(!t||!g)return;v.current.__escapeKeyBubbles=Q,v.current.__outsidePressBubbles=Te;function Me(ee){r(!1,ee)}const je=Pu(p);E&&je.addEventListener("keydown",Ve),H&&je.addEventListener(S,ot);let te=[];return M&&(Yr(f)&&(te=ff(f)),Yr(p)&&(te=te.concat(ff(p))),!Yr(u)&&u&&u.contextElement&&(te=te.concat(ff(u.contextElement)))),te=te.filter(ee=>{var ye;return ee!==((ye=je.defaultView)==null?void 0:ye.visualViewport)}),te.forEach(ee=>{ee.addEventListener("scroll",Me,{passive:!0})}),()=>{E&&je.removeEventListener("keydown",Ve),H&&je.removeEventListener(S,ot),te.forEach(ee=>{ee.removeEventListener("scroll",Me)})}},[v,p,f,u,E,H,S,t,r,M,g,Q,Te,Ve,ot]),F.useEffect(()=>{W.current=!1},[H,S]),F.useMemo(()=>g?{reference:{onKeyDown:Ve,[pQ[k]]:Me=>{A&&(o.emit("dismiss",{type:"referencePress",data:{returnFocus:!1}}),r(!1,Me.nativeEvent))}},floating:{onKeyDown:Ve,[vQ[S]]:()=>{W.current=!0}}}:{},[g,o,A,S,k,r,Ve])}let vA;process.env.NODE_ENV!=="production"&&(vA=new Set);function PU(n){var e;n===void 0&&(n={});const{open:t=!1,onOpenChange:r,nodeId:o}=n;if(process.env.NODE_ENV!=="production"){var s;const Q="Floating UI: Cannot pass a virtual element to the `elements.reference` option, as it must be a real DOM element. Use `refs.setPositionReference` instead.";if((s=n.elements)!=null&&s.reference&&!Yr(n.elements.reference)){var u;if(!((u=vA)!=null&&u.has(Q))){var f;(f=vA)==null||f.add(Q),console.error(Q)}}}const[p,v]=F.useState(null),g=((e=n.elements)==null?void 0:e.reference)||p,E=DY(n),w=dA(),S=vw((Q,Te)=>{Q&&(k.current.openEvent=Te),r==null||r(Q,Te)}),A=F.useRef(null),k=F.useRef({}),M=F.useState(()=>nQ())[0],P=cA(),L=F.useCallback(Q=>{const Te=Yr(Q)?{getBoundingClientRect:()=>Q.getBoundingClientRect(),contextElement:Q}:Q;E.refs.setReference(Te)},[E.refs]),j=F.useCallback(Q=>{(Yr(Q)||Q===null)&&(A.current=Q,v(Q)),(Yr(E.refs.reference.current)||E.refs.reference.current===null||Q!==null&&!Yr(Q))&&E.refs.setReference(Q)},[E.refs]),U=F.useMemo(()=>({...E.refs,setReference:j,setPositionReference:L,domReference:A}),[E.refs,j,L]),H=F.useMemo(()=>({...E.elements,domReference:g}),[E.elements,g]),W=F.useMemo(()=>({...E,refs:U,elements:H,dataRef:k,nodeId:o,floatingId:P,events:M,open:t,onOpenChange:S}),[E,o,P,M,t,S,U,H]);return hf(()=>{const Q=w==null?void 0:w.nodesRef.current.find(Te=>Te.id===o);Q&&(Q.context=W)}),F.useMemo(()=>({...E,context:W,refs:U,elements:H}),[E,U,H,W])}function gQ(n,e){e===void 0&&(e={});const{open:t,onOpenChange:r,dataRef:o,events:s,refs:u,elements:{floating:f,domReference:p}}=n,{enabled:v=!0,keyboardOnly:g=!0}=e,E=F.useRef(""),w=F.useRef(!1),S=F.useRef();return F.useEffect(()=>{if(!v)return;const k=Pu(f).defaultView||window;function M(){!t&&Zs(p)&&p===XL(Pu(p))&&(w.current=!0)}return k.addEventListener("blur",M),()=>{k.removeEventListener("blur",M)}},[f,p,t,v]),F.useEffect(()=>{if(!v)return;function A(k){(k.type==="referencePress"||k.type==="escapeKey")&&(w.current=!0)}return s.on("dismiss",A),()=>{s.off("dismiss",A)}},[s,v]),F.useEffect(()=>()=>{clearTimeout(S.current)},[]),F.useMemo(()=>v?{reference:{onPointerDown(A){let{pointerType:k}=A;E.current=k,w.current=!!(k&&g)},onMouseLeave(){w.current=!1},onFocus(A){var k;w.current||A.type==="focus"&&((k=o.current.openEvent)==null?void 0:k.type)==="mousedown"&&cw(o.current.openEvent,p)||r(!0,A.nativeEvent)},onBlur(A){w.current=!1;const k=A.relatedTarget,M=Yr(k)&&k.hasAttribute(K0("focus-guard"))&&k.getAttribute("data-type")==="outside";S.current=setTimeout(()=>{Nm(u.floating.current,k)||Nm(p,k)||M||r(!1,A.nativeEvent)})}}}:{},[v,g,p,u,o,r])}function mA(n,e,t){const r=new Map;return{...t==="floating"&&{tabIndex:-1},...n,...e.map(o=>o?o[t]:null).concat(n).reduce((o,s)=>(s&&Object.entries(s).forEach(u=>{let[f,p]=u;if(f.indexOf("on")===0){if(r.has(f)||r.set(f,[]),typeof p=="function"){var v;(v=r.get(f))==null||v.push(p),o[f]=function(){for(var g,E=arguments.length,w=new Array(E),S=0;S<E;S++)w[S]=arguments[S];return(g=r.get(f))==null?void 0:g.map(A=>A(...w)).find(A=>A!==void 0)}}}else o[f]=p}),o),{})}}function DU(n){n===void 0&&(n=[]);const e=n,t=F.useCallback(s=>mA(s,n,"reference"),e),r=F.useCallback(s=>mA(s,n,"floating"),e),o=F.useCallback(s=>mA(s,n,"item"),n.map(s=>s==null?void 0:s.item));return F.useMemo(()=>({getReferenceProps:t,getFloatingProps:r,getItemProps:o}),[t,r,o])}function yQ(n,e){e===void 0&&(e={});const{open:t,floatingId:r}=n,{enabled:o=!0,role:s="dialog"}=e,u=cA();return F.useMemo(()=>{const f={id:r,role:s};return o?s==="tooltip"?{reference:{"aria-describedby":t?r:void 0},floating:f}:{reference:{"aria-expanded":t?"true":"false","aria-haspopup":s==="alertdialog"?"dialog":s,"aria-controls":t?r:void 0,...s==="listbox"&&{role:"combobox"},...s==="menu"&&{id:u}},floating:{...f,...s==="menu"&&{"aria-labelledby":u}}}:{}},[o,s,t,r,u])}var _Q=["title","placement","children","style","enterDelay"],EQ=Dt.div.withConfig({displayName:"Tooltip__StyledTooltip",componentId:"sc-m2im2p-0"})([""," "," "," background:",";z-index:1500;white-space:nowrap;&::before{content:'; Has tooltip: ';clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;}"],Am(ed.typography),km(ed.spacings),Fl(ed.border),ed.background),bQ=Dt.div.withConfig({displayName:"Tooltip__ArrowWrapper",componentId:"sc-m2im2p-1"})(["position:absolute;width:",";height:",";z-index:-1;"],ed.entities.arrow.width,ed.entities.arrow.height),CQ=Dt.svg.withConfig({displayName:"Tooltip__TooltipArrow",componentId:"sc-m2im2p-2"})(["width:",";height:",";position:absolute;fill:",";"],ed.entities.arrow.width,ed.entities.arrow.height,ed.background),W0=F.forwardRef(function(e,t){var r=e.title,o=e.placement,s=o===void 0?"bottom":o,u=e.children,f=e.style,p=e.enterDelay,v=p===void 0?100:p,g=Qn(e,_Q),E=F.useRef(null),w=F.useState(!1),S=Mu(w,2),A=S[0],k=S[1],M=r!=="",P=PU({placement:s,open:A,onOpenChange:k,middleware:[nU(14),tU(),rU({padding:8}),PY({element:E})],whileElementsMounted:dU}),L=P.x,j=P.y,U=P.refs,H=P.strategy,W=P.context,Q=P.middlewareData.arrow,Te=Q===void 0?{}:Q,Ve=Te.x,ot=Te.y,Me=P.placement,je=F.useMemo(function(){return B0(U.setReference,u==null?void 0:u.ref)},[U.setReference,u==null?void 0:u.ref]),te=F.useMemo(function(){return B0(U.setFloating,t)},[U.setFloating,t]),ee=DU([oQ(W,{delay:{open:v}}),gQ(W),yQ(W,{role:"tooltip"}),MU(W)]),ye=ee.getReferenceProps,ve=ee.getFloatingProps;F.useEffect(function(){var B={top:"bottom",right:"left",bottom:"top",left:"right"}[Me.split("-")[0]],ne="none";switch(B){case"right":ne="rotateY(180deg)";break;case"left":ne="none";break;case"top":ne="rotate(90deg)";break;case"bottom":ne="rotate(-90deg)";break}if(E.current){var ke;Object.assign(E.current.style,(ke={left:Ve!=null?"".concat(Ve,"px"):"",top:ot!=null?"".concat(ot,"px"):"",right:"",bottom:""},Cx(ke,B,"-6px"),Cx(ke,"transform",ne),ke))}});var pe=F.cloneElement(u,he({},ye(he({ref:je},u.props)))),K=UL(U.domReference.current),ge=se.jsxs(EQ,he(he(he({},g),ve({ref:te,style:he(he({},f),{},{position:H,top:j||0,left:L||0})})),{},{children:[r,se.jsx(bQ,{ref:E,children:se.jsx(CQ,{className:"arrowSvg",children:se.jsx("path",{d:"M0.504838 4.86885C-0.168399 4.48524 -0.168399 3.51476 0.504838 3.13115L6 8.59227e-08L6 8L0.504838 4.86885Z"})})})]}));return se.jsxs(se.Fragment,{children:[K?se.jsx(se.Fragment,{children:M&&A&&ge}):se.jsx(NU,{id:"eds-tooltip-container",children:M&&A&&ge}),pe]})}),wQ=["children","multiple","selectedIndexes","onChange"],SQ=F.forwardRef(function(e,t){var r=e.children,o=e.multiple,s=e.selectedIndexes,u=e.onChange,f=Qn(e,wQ),p=F.useState(s||[]),v=Mu(p,2),g=v[0],E=v[1];F.useEffect(function(){Array.isArray(s)&&E(s)},[s]);function w(A,k,M){var P=A;if(F.isValidElement(A)&&A.type===jL){var L={"aria-pressed":k?!0:void 0,variant:k?"contained":"outlined",onClick:function(U){var H,W;(H=P.props)===null||H===void 0||(W=H.onClick)===null||W===void 0||W.call(H,U);var Q=[M];o&&(Q=g.includes(M)?g.filter(function(Te){return Te!==M}):[].concat(qL(g),[M])),E(Q),u&&u(Q)}};return F.cloneElement(A,L)}}var S=F.Children.map(r,function(A,k){var M=g.includes(k),P=A;if(F.isValidElement(A)&&A.type===W0){var L=F.Children.map(P.props.children,function(j){return w(j,M,k)});return F.cloneElement(P,null,L[0])}else return w(P,M,k)});return se.jsx(zL,he(he({ref:t},f),{},{children:S}))}),pf=jL;pf.Group=zL,pf.Toggle=SQ,pf.Group.displayName="Button.Group",pf.Toggle.displayName="Button.Toggle";function TQ(n){if(n==null)throw new TypeError("Cannot destructure "+n)}function gA(){return gA=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},gA.apply(this,arguments)}var yA={},LU=0,RQ=function(e){yA=he(he({},yA),e)},xQ=function(e){return LU+=1,{icon:yA[e],count:LU}},AQ=["size","color","name","rotation","title","data"],kQ=Dt.svg.attrs(function(n){var e=n.$height,t=n.$width,r=n.fill;return{name:null,xmlns:"http://www.w3.org/2000/svg",height:"".concat(e,"px"),width:"".concat(t,"px"),fill:r}}).withConfig({displayName:"Icon__StyledSvg",componentId:"sc-6evbi1-0"})(["transform:",";"],function(n){var e=n.$rotation;return e?"rotate(".concat(e,"deg)"):"none"}),IQ=Dt.path.attrs(function(n){var e=n.$height,t=n.$size;return{size:null,fillRule:"evenodd",clipRule:"evenodd",transform:t/e!==1?"scale(".concat(t/e,")"):null}}).withConfig({displayName:"Icon__StyledPath",componentId:"sc-6evbi1-1"})([""]),OQ=function(e){return{icon:e,count:Math.floor(Math.random()*1e3)}},NQ=function(e,t,r){var o=t?OQ(t):xQ(e),s=o.icon,u=o.count;if(r<24){var f;s=((f=s.sizes)===null||f===void 0?void 0:f.small)||s}return{icon:s,count:u}},MQ=F.forwardRef(function(e,t){var r=e.size,o=e.color,s=o===void 0?"currentColor":o,u=e.name,f=e.rotation,p=e.title,v=e.data,g=Qn(e,AQ),E=NQ(u,v,r),w=E.icon,S=E.count;if(typeof w>"u")throw Error('Icon "'.concat(u,'" not found. Have you added it using Icon.add() or using data props?'));var A=r||parseInt(w.width),k=r||parseInt(w.height),M={$height:A,$width:k,fill:s,viewBox:"0 0 ".concat(k," ").concat(A),$rotation:f,name:u,"aria-hidden":!0},P={d:w.svgPathData,$height:w.height?parseInt(w.height):r,$size:r||parseInt(w.height)},L="";return p&&(L="".concat(w.prefix,"-").concat(w.name,"-").concat(S),M=he(he({},M),{},{title:p,role:"img","aria-hidden":void 0,"aria-labelledby":L})),se.jsxs(kQ,he(he(he({},M),g),{},{ref:t,children:[p&&se.jsx("title",{id:L,children:p}),se.jsx(IQ,he({"data-testid":"eds-icon-path"},P))]}))}),el=MQ;el.add=RQ;var PQ={name:"business",prefix:"eds",height:"24",width:"24",svgPathData:"M12 7h10v14H2V3h10v4ZM4 19h2v-2H4v2Zm2-4H4v-2h2v2Zm-2-4h2V9H4v2Zm2-4H4V5h2v2Zm2 12h2v-2H8v2Zm2-4H8v-2h2v2Zm-2-4h2V9H8v2Zm2-4H8V5h2v2Zm10 12V9h-8v2h2v2h-2v2h2v2h-2v2h8Zm-2-8h-2v2h2v-2Zm-2 4h2v2h-2v-2Z"},DQ={name:"home",prefix:"eds",height:"24",width:"24",svgPathData:"M5 12.5H2l10-9 10 9h-3v8h-6v-6h-2v6H5v-8Zm12-1.81-5-4.5-5 4.5v7.81h2v-6h6v6h2v-7.81Z"},LQ={name:"expand",prefix:"eds",height:"24",width:"24",svgPathData:"M9.563 12 4 6.645 5.713 5 13 12l-7.287 7L4 17.355 9.563 12Zm7 0L11 6.645 12.713 5 20 12l-7.287 7L11 17.355 16.563 12Z"},UQ={name:"chevron_down",prefix:"eds",height:"24",width:"24",svgPathData:"m7.41 8.295 4.59 4.58 4.59-4.58L18 9.705l-6 6-6-6 1.41-1.41Z",sizes:{small:{name:"chevron_down_small",prefix:"eds",height:"18",width:"18",svgPathData:"M5.175 6 9 9.709 12.825 6 14 7.142 9 12 4 7.142 5.175 6Z"}}},FQ={name:"chevron_up",prefix:"eds",height:"24",width:"24",svgPathData:"m7.41 15.705 4.59-4.58 4.59 4.58 1.41-1.41-6-6-6 6 1.41 1.41Z",sizes:{small:{name:"chevron_up_small",prefix:"eds",height:"18",width:"18",svgPathData:"m5.174 12.002 3.825-3.709 3.825 3.709 1.175-1.142-5-4.859-5 4.859 1.175 1.142Z"}}},HQ={name:"arrow_drop_down",prefix:"eds",height:"24",width:"24",svgPathData:"m7 9.5 5 5 5-5H7Z",sizes:{small:{name:"arrow_drop_down_small",prefix:"eds",height:"18",width:"18",svgPathData:"m4 6.5 5 5 5-5H4Z"}}},$Q={name:"collapse",prefix:"eds",height:"24",width:"24",svgPathData:"M7.437 12 13 17.355 11.287 19 4 12l7.287-7L13 6.645 7.437 12Zm7 0L20 17.355 18.287 19 11 12l7.288-7L20 6.645 14.437 12Z"},BQ={name:"accessible",prefix:"eds",height:"24",width:"24",svgPathData:"M14 4c0 1.1-.9 2-2 2s-2-.9-2-2 .9-2 2-2 2 .9 2 2Zm-2 3c2.83 0 5.89-.3 8.5-1l.5 2c-1.86.5-4 .83-6 1v13h-2v-6h-2v6H9V9c-2-.17-4.14-.5-6-1l.5-2c2.61.7 5.67 1 8.5 1Z",sizes:{small:{name:"accessible_small",prefix:"eds",height:"18",width:"18",svgPathData:"M10.5 3c0 .825-.675 1.5-1.5 1.5S7.5 3.825 7.5 3 8.175 1.5 9 1.5s1.5.675 1.5 1.5ZM9 5.25c2.123 0 4.418-.225 6.375-.75L15.75 6c-1.395.375-3 .622-4.5.75v9.75h-1.5V12h-1.5v4.5h-1.5V6.75c-1.5-.128-3.105-.375-4.5-.75l.375-1.5c1.957.525 4.253.75 6.375.75Z"}}},mw=sn.colors.ui,jQ=mw.background__default.rgba,zQ=mw.background__info.rgba,qQ=mw.background__warning.rgba,GQ=mw.background__danger.rgba,gw=sn.spacings.comfortable.medium,VQ=sn.shape.corners.borderRadius,_p={background:jQ,border:{type:"border",radius:VQ},spacings:{left:gw,bottom:gw,right:gw,top:gw}},KQ={background:zQ},WQ={background:GQ},YQ={background:qQ};const QQ=Object.freeze(Object.defineProperty({__proto__:null,danger:WQ,info:KQ,primary:_p,warning:YQ},Symbol.toStringTag,{value:"Module"}));var XQ=sn.elevation,JQ=sn.colors.ui.background__default.rgba,ZQ={background:JQ},eX=["elevation"],tX=Dt.div.withConfig({displayName:"Paper__StyledPaper",componentId:"sc-6ncnv9-0"})(["background:",";box-shadow:",";"],ZQ.background,function(n){var e=n.$elevation;return e}),_A=F.forwardRef(function(e,t){var r,o=e.elevation,s=o===void 0?"none":o,u=Qn(e,eX),f=he(he({},u),{},{$elevation:(r=XQ[s])!==null&&r!==void 0?r:"none"});return se.jsx(tX,he(he({},f),{},{ref:t}))}),nX=["children","variant","elevation"],rX=_p,iX=Dt(_A).withConfig({displayName:"Card__StyledCard",componentId:"sc-bjucjn-0"})(["width:100%;position:relative;background-color:",";box-sizing:border-box;display:flex;flex-direction:column;grid-gap:16px;",";"],function(n){var e=n.$background;return e},Fl(rX.border)),oX=F.forwardRef(function(e,t){var r=e.children,o=e.variant,s=o===void 0?"default":o,u=e.elevation,f=u===void 0?"none":u,p=Qn(e,nX),v=s==="default"?"primary":s,g=QQ[v],E=he({ref:t,$background:g.background},p);return se.jsx(iX,he(he({elevation:f},E),{},{children:r}))}),EA=sn.typography,aX=sn.colors,sX=sn.interactions.focused.width,lX=EA.heading,uX=EA.paragraph,Ep=aX.interactive,cX=Ep.primary__resting.rgba,dX=Ep.secondary__resting.rgba,fX=Ep.danger__resting.rgba,hX=Ep.warning__resting.rgba,pX=Ep.success__resting.rgba,vX=Ep.disabled__text.rgba,mX=Ep.focus.rgba,UU={primary:cX,secondary:dX,danger:fX,warning:hX,success:pX,disabled:vX},FU=he(he({},lX),uX),HU={states:{focus:{outline:{width:sX,color:mX,style:"dashed",type:"outline",offset:"2px"}}}},gX=["variant","children","bold","italic","link","lines","color","group","token","as"],yX=function(e,t){if(t)return"a";switch(e){case"h1":case"h2":case"h3":case"h4":case"h5":case"h6":return e;case"caption":case"overline":case"ingress":case"meta":case"body_short":case"body_long":default:return"p"}},_X=function(e,t){return!t&&FU[e]?FU[e]:EA[t][e]},EX=function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return typeof UU[e]>"u"?e:UU[e]},bX=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return"".concat(e).concat(t?"_bold":"").concat(r?"_italic":"").concat(o?"_link":"")},CX=Dt.p.withConfig({displayName:"Typography__StyledTypography",componentId:"sc-179guof-0"})([""," "," "," ",""],function(n){var e=n.$typography,t=n.$link;return Am(e,t)},function(n){var e=n.$color;return mn({color:EX(e)})},function(n){var e=n.$lines;return e>0&&mn(["&{display:-webkit-box;-webkit-line-clamp:",";-webkit-box-orient:vertical;overflow:hidden;text-overflow:ellipsis;}"],e)},function(n){var e=n.$link;return e&&mn(["&:focus{outline:none;}&[data-focus-visible-added]:focus{","}&:focus-visible{","}"],Zc(HU.states.focus.outline),Zc(HU.states.focus.outline))}),bp=F.forwardRef(function(e,t){var r=e.variant,o=r===void 0?"body_short":r,s=e.children,u=e.bold,f=e.italic,p=e.link,v=e.lines,g=e.color,E=e.group,w=e.token,S=e.as,A=Qn(e,gX),k=S||yX(o,p),M=bX(o,u,f,p),P=_X(M,E);if(typeof P>"u")throw new Error('Typography variant not found for variant "'.concat(M,'" ("').concat(o,'") & group "').concat(E||"",'"'));return se.jsx(CX,he(he({as:k,$typography:he(he({},P),w),$link:p,$lines:v,ref:t,$color:g},A),{},{children:s}))}),wX=["children","alignRight","meta"],yw=_p.spacings,SX=Dt.div.withConfig({displayName:"CardActions__StyledCardActions",componentId:"sc-1d5vskp-0"})(["display:grid;grid-gap:8px;grid-auto-flow:column;align-items:center;justify-content:",";padding:0 "," 0 ",";margin-top:auto;&:first-child{padding-top:",";}&:last-child{padding-bottom:",";}"],function(n){var e=n.$justifyContent;return e},yw.right,yw.left,yw.top,yw.bottom),TX=F.forwardRef(function(e,t){var r=e.children,o=e.alignRight,s=o===void 0?!1:o,u=e.meta,f=u===void 0?"":u,p=Qn(e,wX),v=s?"flex-end":"flex-start",g=he({ref:t,$justifyContent:v},p);return se.jsxs(SX,he(he({},g),{},{children:[r,f!==""&&se.jsx(bp,{variant:"caption",children:f})]}))}),RX=["children"],bA=_p.spacings,xX=Dt.div.withConfig({displayName:"CardContent__StyledCardContent",componentId:"sc-esm4ym-0"})(["display:grid;padding:0 "," 0 ",";&:last-child{padding-bottom:",";}"],bA.right,bA.left,bA.bottom),AX=F.forwardRef(function(e,t){var r=e.children,o=Qn(e,RX);return se.jsx(xX,he(he({ref:t},o),{},{children:r}))}),kX=["children","fullWidth"],vf=_p.spacings,mf=_p.border,IX=Dt.div.withConfig({displayName:"CardMedia__StyledCardMedia",componentId:"sc-kr8q9c-0"})(["display:flex;width:auto;",""],function(n){var e=n.$fullWidth;return e?mn(["> *{width:100%;}&:first-child{img{border-top-right-radius:",";border-top-left-radius:",";}}&:last-child{img{border-bottom-right-radius:",";border-bottom-left-radius:",";}}"],mf.type==="border"&&mf.radius,mf.type==="border"&&mf.radius,mf.type==="border"&&mf.radius,mf.type==="border"&&mf.radius):mn(["padding:0 "," 0 ",";&:first-child{padding:"," "," 0 ",";}&:last-child{padding:0 "," "," ",";}> *{width:100%;}"],vf.right,vf.left,vf.top,vf.right,vf.left,vf.right,vf.bottom,vf.left)}),OX=F.forwardRef(function(e,t){var r=e.children,o=e.fullWidth,s=o===void 0?!1:o,u=Qn(e,kX),f=he(he({},u),{},{ref:t,$fullWidth:s});return se.jsx(IX,he(he({},f),{},{children:r}))}),NX=["children"],Y0=_p.spacings,MX=Dt.div.withConfig({displayName:"CardHeader__StyledCardHeader",componentId:"sc-15k8edh-0"})(["display:flex;justify-content:space-between;align-items:center;padding:0 "," 0 ",";> :not(:first-child){margin-left:",";}&:first-child{padding-top:",";}&:last-child{padding-bottom:",";}"],Y0.right,Y0.left,Y0.left,Y0.top,Y0.bottom),PX=F.forwardRef(function(e,t){var r=e.children,o=Qn(e,NX),s=he(he({},o),{},{ref:t});return se.jsx(MX,he(he({},s),{},{children:r}))}),DX=["children"],LX=Dt.div.withConfig({displayName:"CardHeaderTitle__StyledCardHeaderTitle",componentId:"sc-11m80r3-0"})(["display:grid;flex-grow:2;grid-auto-columns:auto;"]),UX=F.forwardRef(function(e,t){var r=e.children,o=Qn(e,DX),s=he(he({},o),{},{ref:t});return se.jsx(LX,he(he({},s),{},{children:r}))}),Ns=oX;Ns.Actions=TX,Ns.Content=AX,Ns.Header=PX,Ns.Media=OX,Ns.HeaderTitle=UX,Ns.Actions.displayName="Card.Actions",Ns.Content.displayName="Card.Content",Ns.Header.displayName="Card.Header",Ns.Media.displayName="Card.Media",Ns.HeaderTitle.displayName="Card.HeaderTitle";var $U=sn.colors,_w=sn.spacings.comfortable,FX=sn.typography.navigation,HX={height:"64px",background:$U.ui.background__default.rgba,typography:FX.menu_title,spacings:{left:_w.large,right:_w.large,top:_w.small,bottom:_w.small},border:{type:"bordergroup",bottom:{style:"solid",color:$U.ui.background__light.rgba,width:"2px"}},modes:{compact:{}}},$X=["children","elevation","sticky"],BX=Dt(_A).withConfig({displayName:"TopBar__StyledTopBar",componentId:"sc-1yj236q-0"})(function(n){var e=n.theme,t=n.$sticky;return mn(["height:",";background:",";box-sizing:border-box;display:grid;grid-column-gap:",";grid-template-columns:auto 1fr auto;grid-template-areas:'left center right';align-items:center;"," ",";"," ",""],e.height,e.background,e.spacings.left,Fl(e.border),km(e.spacings),Am(e.typography),t&&mn(["position:sticky;top:0;z-index:1100;"]))}),jX=F.forwardRef(function(e,t){var r=e.children,o=e.elevation,s=o===void 0?"none":o,u=e.sticky,f=u===void 0?!0:u,p=Qn(e,$X),v=iw(),g=v.density,E=rw({density:g},HX),w=he(he({},p),{},{ref:t});return se.jsx(XC,{theme:E,children:se.jsx(BX,he(he({forwardedAs:"header",elevation:s,$sticky:f},w),{},{children:r}))})}),zX=["children"],qX=Dt.div.withConfig({displayName:"Actions__StyledActions",componentId:"sc-1251ang-0"})(["grid-area:right;text-align:right;align-items:center;display:flex;"]),GX=F.forwardRef(function(e,t){var r=e.children,o=Qn(e,zX);return se.jsx(qX,he(he({ref:t},o),{},{children:r}))}),VX=["children"],KX=Dt.div.withConfig({displayName:"Header__StyledHeader",componentId:"sc-1fpllve-0"})(["grid-area:left;display:grid;grid-template-columns:auto auto;grid-gap:12px;align-items:center;"]),WX=F.forwardRef(function(e,t){var r=e.children,o=Qn(e,VX);return se.jsx(KX,he(he({ref:t},o),{},{children:r}))}),YX=["children"],QX=Dt.div.withConfig({displayName:"CustomContent__StyledCustomContent",componentId:"sc-d0e83a-0"})(["grid-area:center;"]),XX=F.forwardRef(function(e,t){var r=e.children,o=Qn(e,YX);return se.jsx(QX,he(he({ref:t},o),{},{children:r}))}),Du=jX;Du.Actions=GX,Du.Header=WX,Du.CustomContent=XX,Du.Actions.displayName="Topbar.Actions",Du.Header.displayName="Topbar.Header",Du.CustomContent.displayName="Topbar.CustomContent";var CA=sn.colors.ui,JX=CA.background__default.rgba,ZX=CA.background__light.rgba,eJ=CA.background__medium.rgba,BU=sn.spacings.comfortable,jU=BU.small,zU=BU.medium,qU={lighter:{background:JX},light:{background:ZX},mediumColor:{background:eJ}},tJ={spacings:{top:jU,bottom:jU}},nJ={spacings:{top:zU,bottom:zU}};const GU=Object.freeze(Object.defineProperty({__proto__:null,divider:qU,medium:nJ,small:tJ},Symbol.toStringTag,{value:"Module"}));var rJ=["color","variant","size"],iJ=qU,oJ=Dt.hr.withConfig({displayName:"Divider__StyledDivider",componentId:"sc-1d8osde-0"})(function(n){var e=n.$backgroundColor,t=n.$marginTop,r=n.$marginBottom,o=n.$dividerHeight;return mn(["border:none;background-color:",";margin-top:",";margin-bottom:calc("," - ","px);height:","px;"],e,t,r,o,o)}),wA=F.forwardRef(function(e,t){var r=e.color,o=r===void 0?"medium":r,s=e.variant,u=s===void 0?"medium":s,f=e.size,p=f===void 0?"1":f,v=Qn(e,rJ),g=o==="medium"?"mediumColor":o,E=he({$backgroundColor:iJ[g].background,$marginTop:GU[u].spacings.top,$marginBottom:GU[u].spacings.bottom,$dividerHeight:parseInt(p)},v);return se.jsx(oJ,he(he({},E),{},{ref:t}))}),aJ=sn.colors.logo.fill_positive.rgba,sJ={background:aJ},lJ=["variant","value","size"],Pm=nL(["0%{opacity:1;}20%{opacity:0.8;}40%{opacity:0.6;}60%{opacity:0.4;}80%{opacity:0.2;}100%{opacity:0.05;}"]),uJ=nL(["0%{opacity:0;}10%{opacity:0.05;}20%{opacity:0.2;}40%{opacity:0.4;}60%{opacity:0.6;}80%{opacity:0.8;}100%{opacity:1;}"]),cJ=Dt.svg.withConfig({displayName:"StarProgress__Svg",componentId:"sc-c0byj9-0"})(["fill:",";",""],sJ.background,function(n){var e=n.$variant,t=n.$progress;return e==="indeterminate"?mn(["path{&:nth-child(1){animation:"," 1.3s linear infinite;}&:nth-child(2){animation:"," 1.3s linear 0.3s infinite;}&:nth-child(3){animation:"," 1.3s linear 0.4s infinite;}&:nth-child(4){animation:"," 1.3s linear 0.6s infinite;}&:nth-child(5){animation:"," 1.3s linear 0.8s infinite;}&:nth-child(6){animation:"," 1.3s linear 1s infinite;}}"],Pm,Pm,Pm,Pm,Pm,Pm):mn(["path{animation:"," 1.3s linear;&:nth-child(6){animation-play-state:",";}&:nth-child(5){animation-play-state:",";}&:nth-child(4){animation-play-state:",";}&:nth-child(3){animation-play-state:",";}&:nth-child(2){animation-play-state:",";}&:nth-child(1){animation-play-state:",";}}"],uJ,t>90?"running":"paused",t>80?"running":"paused",t>60?"running":"paused",t>40?"running":"paused",t>20?"running":"paused",t<=20?"running":"paused")}),dJ=F.forwardRef(function(e,t){var r=e.variant,o=r===void 0?"indeterminate":r,s=e.value,u=s===void 0?null:s,f=e.size,p=f===void 0?48:f,v=Qn(e,lJ),g=Math.round(u),E=p*1.2,w=p,S=he(he({},v),{},{ref:t,$variant:o,$progress:g});return o==="determinate"&&u!==void 0&&(S["aria-valuenow"]=g,S["aria-valuemin"]=0,S["aria-valuemax"]=100),se.jsxs(cJ,he(he({},S),{},{role:"progressbar",width:w,height:E,viewBox:"0 0 40 48",fill:"none",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid meet",children:[se.jsx("path",{d:"M32.756 34.6798L29.482 36.5817C29.4139 36.6219 29.3295 36.6227 29.2606 36.5829L25.9476 34.7151C25.7975 34.6306 25.7967 34.4149 25.9456 34.3284L29.2397 32.4256C29.3077 32.3858 29.3914 32.3858 29.4603 32.4248L32.754 34.2931C32.9033 34.3784 32.9041 34.5929 32.756 34.6798Z"}),se.jsx("path",{d:"M25.9596 45.4706L22.6655 43.5867C22.5966 43.5469 22.554 43.4744 22.554 43.396V41.4289V39.5922C22.5519 39.4204 22.7381 39.3109 22.8878 39.397L26.1819 41.2981C26.25 41.3379 26.2926 41.4104 26.2934 41.4896V43.4268V45.2762C26.2947 45.4472 26.1085 45.5559 25.9596 45.4706Z"}),se.jsx("path",{d:"M12.3022 47.7037V44.9795V42.6544C12.3022 42.5495 12.3576 42.4515 12.4482 42.3986L14.1262 41.4062L16.8143 39.8188C17.0119 39.7019 17.2617 39.8442 17.2625 40.0739L17.2633 42.7627V45.1456C17.2633 45.251 17.2079 45.3486 17.1165 45.4015L12.7496 47.9587C12.552 48.0748 12.3031 47.9325 12.3022 47.7037Z"}),se.jsx("path",{d:"M0.221343 34.2106L6.76939 30.4056C6.90636 30.326 7.07449 30.3256 7.21227 30.4023L13.8378 34.1401C14.138 34.3095 14.14 34.7413 13.8415 34.9131L7.25492 38.7182C7.11795 38.7977 6.94941 38.7985 6.81204 38.7206L0.225854 34.9836C-0.0734986 34.8139 -0.075549 34.3833 0.221343 34.2106Z"}),se.jsx("path",{d:"M6.03876 9.125L16.9237 15.5151C17.1513 15.6484 17.2903 15.8912 17.2903 16.1549V28.8331C17.2903 29.4076 16.665 29.7647 16.1704 29.4728L5.28546 23.0264C5.05869 22.8919 4.92008 22.6479 4.9209 22.3855V9.76307C4.92254 9.1902 5.54503 8.83467 6.03876 9.125Z"}),se.jsx("path",{d:"M39.6262 1.07261V11.7603V19.3368C39.627 19.7178 39.4265 20.0709 39.0988 20.2644L31.4145 24.8195L23.3545 29.5964C22.6385 30.0192 21.7339 29.5029 21.7339 28.6717V10.3259C21.7339 9.94495 21.9356 9.5927 22.2641 9.39955L38.008 0.149533C38.7232 -0.270381 39.6241 0.24385 39.6262 1.07261Z"})]}))}),VU={focusedIndex:-1,initialFocus:null,onClose:null},KU=F.createContext(VU),fJ=function(e){var t=e.children,r=F.useState(VU),o=Mu(r,2),s=o[0],u=o[1],f=s.focusedIndex,p=s.initialFocus,v=s.onClose,g=function(k){u(function(M){return he(he({},M),{},{focusedIndex:k})})},E=function(k){u(function(M){return he(he({},M),{},{initialFocus:k})})},w=function(k){var M=function(){g(-1),E(null),k()};u(function(P){return he(he({},P),{},{onClose:M})})},S={setFocusedIndex:g,focusedIndex:f,setInitialFocus:E,initialFocus:p,setOnClose:w,onClose:v};return se.jsx(KU.Provider,{value:S,children:t})},SA=function(){return F.useContext(KU)},TA=sn.colors,hJ=TA.ui.background__default.rgba,Dm=TA.interactive,pJ=Dm.primary__selected_highlight.rgba,vJ=Dm.primary__resting.rgba,mJ=Dm.focus.rgba,gJ=Dm.disabled__fill.rgba,yJ=Dm.disabled__text.rgba,_J=Dm.table__header__fill_hover.rgba,EJ=TA.text.static_icons__default.rgba,RA=sn.spacings.comfortable,WU=RA.medium,Lm=RA.large,Um=RA.small,xA=sn.typography.navigation.menu_title,Fm={background:hJ,spacings:{top:Um,bottom:Um,left:"0px",right:"0px"},border:{type:"border",radius:"4px"},typography:he(he({},xA),{},{color:EJ}),entities:{icon:{states:{disabled:{typography:{color:gJ}}}},item:{spacings:{left:Lm,right:Lm,top:WU,bottom:WU},states:{active:{typography:he(he({},xA),{},{color:vJ}),background:pJ},focus:{outline:{color:mJ,style:"dashed",type:"outline",width:"2px",offset:"2px"}},hover:{background:_J},disabled:{typography:he(he({},xA),{},{color:yJ})}}},title:{spacings:{left:Lm,right:Lm,top:Um,bottom:Um}}},modes:{compact:{entities:{item:{spacings:{left:Lm,right:Lm,top:Um,bottom:Um}}}}}},bJ=["children","disabled","active","index","as","onClick","closeMenuOnClick"],CJ=Fm.typography,YU=Fm.entities,Ew=YU.item.states,QU=Ew.active,wJ=Ew.focus,SJ=Ew.hover,TJ=Ew.disabled,RJ=YU.icon,xJ=Dt.button.attrs(function(n){var e=n.$isFocused;return{role:"menuitem",tabIndex:e?-1:0}}).withConfig({displayName:"MenuItem__Item",componentId:"sc-1g9fpbe-0"})(["border:0;background-color:transparent;width:auto;position:relative;z-index:2;text-decoration:none;"," "," "," ",""],Am(CJ),function(n){var e=n.theme;return km(e.entities.item.spacings)},function(n){var e=n.$active;return e&&mn(["background:",";*{color:",";}"],QU.background,QU.typography.color)},function(n){var e=n.disabled;return e?mn(["*{color:",";}svg{fill:",";}&:focus{outline:none;}@media (hover:hover) and (pointer:fine){&:hover{cursor:not-allowed;}}"],TJ.typography.color,RJ.states.disabled.typography.color):mn(["@media (hover:hover) and (pointer:fine){&:hover{z-index:1;cursor:pointer;background:",";}}&:focus{z-index:3;","}"],SJ.background,Zc(wJ.outline))}),AJ=Dt.div.withConfig({displayName:"MenuItem__Content",componentId:"sc-1g9fpbe-1"})(["width:auto;display:grid;grid-gap:16px;grid-auto-flow:column;grid-auto-columns:max-content auto max-content;align-items:center;"]),bw=F.forwardRef(function(e,t){var r=e.children,o=e.disabled,s=e.active,u=e.index,f=u===void 0?0:u,p=e.as,v=p===void 0?"button":p,g=e.onClick,E=e.closeMenuOnClick,w=E===void 0?!0:E,S=Qn(e,bJ),A=SA(),k=A.focusedIndex,M=A.setFocusedIndex,P=A.onClose,L=function(W){k!==W&&M(W)},j=f===k,U=he(he({},S),{},{as:v,disabled:o,$isFocused:j});return se.jsx(xJ,he(he({},U),{},{$active:s,ref:B0(t,function(H){j&&requestAnimationFrame(function(){H!==null&&H.focus()})}),onFocus:function(){return L(f)},onClick:function(W){g&&(g(W),P!==null&&w&&P(W))},children:se.jsx(AJ,{children:r})}))});bw.displayName="MenuItem";var kJ=Dt.div.attrs(function(){return{tabIndex:0}}).withConfig({displayName:"MenuSection__Header",componentId:"sc-gfcbvg-0"})([""," &:focus{outline:none;}"],km(Fm.entities.title.spacings)),XU=F.memo(function(e){var t=e.children,r=e.title,o=e.index;return se.jsxs(se.Fragment,{children:[o!==0&&se.jsx("div",{children:se.jsx(wA,{variant:"small"})}),r&&se.jsx(kJ,{children:se.jsx(bp,{group:"navigation",variant:"label",children:r})}),t]})}),IJ=["addCloseMenuOnClickIndex","children"],OJ=Dt.div.withConfig({displayName:"MenuList__List",componentId:"sc-104rzof-0"})(["position:relative;list-style:none;display:flex;flex-direction:column;margin:0;"," li:first-child{z-index:3;}"],km(Fm.spacings));function JU(n){return!!(F.isValidElement(n)&&!n.props.disabled&&n.type===bw)}function NJ(n){return!!(F.isValidElement(n)&&n.type===bw&&n.props.closeMenuOnClick!==!1)}var MJ=F.forwardRef(function(e,t){var r=e.addCloseMenuOnClickIndex,o=e.children,s=Qn(e,IJ),u=SA(),f=u.focusedIndex,p=u.setFocusedIndex,v=u.initialFocus,g=-1,E=F.useMemo(function(){return[]},[]),w=F.useMemo(function(){return F.Children.map(o,function(P){if(!P)return P;if(P.type===XU){g++;var L=g,j=F.Children.map(P.props.children,function(U){return g++,JU(U)&&E.push(g),F.cloneElement(U,{index:g})});return F.cloneElement(P,{index:L},j)}else return g++,JU(P)&&E.push(g),NJ(P)&&r(g),F.cloneElement(P,{index:g})})},[o,E,g,r]),S=E[0],A=E[E.length-1];F.useEffect(function(){v==="first"&&p(S),v==="last"&&p(A)},[v,S,A]);var k=function(L,j){var U=L==="down"?1:-1,H=E.indexOf(f),W=E[H+U],Q=typeof W>"u"?j:W;p(Q)},M=function(L){var j=L.key;L.stopPropagation(),j==="ArrowDown"&&(L.preventDefault(),k("down",S)),j==="ArrowUp"&&(L.preventDefault(),k("up",A))};return se.jsx(OJ,he(he({onKeyDown:M,role:"menu"},s),{},{ref:t,children:w}))}),PJ=["children","anchorEl","onClose","open"],DJ=["anchorEl","open","placement","matchAnchorWidth","onClose","style","className"],LJ=Fm.border,UJ=Dt(_A).withConfig({displayName:"Menu__MenuPaper",componentId:"sc-1vlnqcj-0"})(["position:absolute;z-index:1400;width:fit-content;min-width:fit-content;",";",";"],Fl(LJ),function(n){var e=n.open;return mn({display:e?"block":"none"})}),FJ=F.forwardRef(function(e,t){var r=e.children,o=e.anchorEl,s=e.onClose,u=e.open,f=Qn(e,PJ),p=SA(),v=p.setOnClose,g=p.onClose,E=p.setInitialFocus,w=p.focusedIndex,S=F.useMemo(function(){return[]},[]);F.useEffect(function(){g===null&&s&&v(s)},[g,s,v]),F.useEffect(function(){var k=function(P){var L=P.key;switch((L==="ArrowDown"||L==="ArrowUp")&&(P.preventDefault(),P.stopPropagation(),o.dispatchEvent(new Event("click",{bubbles:!0}))),L){case"Enter":case"ArrowDown":E("first");break;case"ArrowUp":E("last");break}};return o&&o.addEventListener("keydown",k),function(){o&&o.removeEventListener("keydown",k)}},[o]),DL("Escape",function(){u&&g!==null&&(g(),o.focus())}),DL("Enter",function(){u&&g!==null&&S.includes(w)&&setTimeout(function(){window.document.contains(o)&&o.focus()},0)});var A=function(M){S.indexOf(M)<0&&S.push(M)};return se.jsx(MJ,he(he({addCloseMenuOnClickIndex:A},f),{},{ref:t,children:r}))}),HJ=F.forwardRef(function(e,t){var r=e.anchorEl,o=e.open,s=e.placement,u=s===void 0?"bottom":s,f=e.matchAnchorWidth,p=f===void 0?!1:f,v=e.onClose,g=e.style,E=e.className,w=Qn(e,DJ),S=iw(),A=S.density,k=rw({density:A},Fm),M=[nU(4),tU(),rU({padding:8})];p&&(M=[].concat(qL(M),[gY({apply:function(ve){var pe=ve.rects,K=ve.elements;Object.assign(K.floating.style,{width:"".concat(pe.reference.width,"px")})}})]));var P=PU({elements:{reference:r},placement:u,open:o,onOpenChange:v,middleware:M}),L=P.x,j=P.y,U=P.refs,H=P.update,W=P.strategy,Q=P.context,Te=F.useMemo(function(){return B0(U.setFloating,t)},[U.setFloating,t]);TW(function(){if(U.reference.current&&U.floating.current&&o)return dU(U.reference.current,U.floating.current,H)},[U.reference,U.floating,H,o]);var Ve=DU([MU(Q,{escapeKey:!1})]),ot=Ve.getFloatingProps,Me={open:o,className:E},je=he(he({},w),{},{onClose:v,anchorEl:r,open:o}),te=UL(r),ee=se.jsx(XC,{theme:k,children:se.jsx(UJ,he(he(he({elevation:"raised"},Me),ot({ref:Te,style:he(he({},g),{},{position:W,top:j||0,left:L||0})})),{},{children:se.jsx(fJ,{children:se.jsx(FJ,he(he({},je),{},{ref:t}))})}))});return se.jsx(se.Fragment,{children:te?ee:se.jsx(NU,{id:"eds-menu-container",children:ee})})}),Lu=HJ;Lu.Item=bw,Lu.Section=XU,Lu.Item.displayName="Menu.Item",Lu.Section.displayName="Menu.Section";var AA=sn.colors,kA=AA.ui,ZU=kA.background__light.rgba,$J=kA.background__medium.rgba,BJ=kA.background__default.rgba,Q0=AA.interactive,jJ=Q0.focus.rgba,zJ=Q0.primary__resting.rgba,qJ=Q0.primary__selected_highlight.rgba,GJ=Q0.disabled__fill.rgba,VJ=Q0.disabled__text.rgba,eF=AA.text,tF=eF.static_icons__default.rgba,KJ=eF.static_icons__primary_white.rgba,IA=sn.spacings.comfortable,nF=IA.medium,Cw=IA.large,rF=IA.small,gf={background:BJ,minWidth:"72px",maxWidth:"256px",spacings:{top:Cw,bottom:Cw},border:{type:"bordergroup",right:{color:ZU,width:"2px",style:"solid"}},entities:{actionButton:{typography:{color:KJ},spacings:{top:nF,bottom:nF,right:Cw,left:Cw}},sidebarItem:{minHeight:"48px",spacings:{top:"0",bottom:"0"},typography:{color:tF},border:{type:"bordergroup",bottom:{color:ZU,width:"2px",style:"solid"}},states:{active:{background:qJ,typography:{color:zJ}},hover:{background:$J},focus:{outline:{color:jJ,style:"dashed",type:"outline",width:"2px",offset:"-2px"}},disabled:{background:GJ,typography:{color:VJ}}}},toggleOpen:{spacings:{top:rF,bottom:rF},typography:{color:tF}}},modes:{compact:{entities:{}}}},iF={isOpen:!1,onToggle:null},oF=F.createContext(iF),WJ=function(e){var t=e.children,r=F.useState(iF),o=Mu(r,2),s=o[0],u=o[1],f=s.isOpen,p=s.onToggle,v=F.useCallback(function(w){u(function(S){return he(he({},S),{},{isOpen:w})}),p==null||p(w)},[p]),g=function(S){u(function(A){return he(he({},A),{},{onToggle:S})})},E={setIsOpen:v,setOnToggle:g,onToggle:p,isOpen:f};return se.jsx(oF.Provider,{value:E,children:t})},Hm=function(){return F.useContext(oF)},YJ=["onToggle","open","children"],QJ=["onToggle","open","children"],XJ=F.forwardRef(function(e,t){var r=e.onToggle,o=e.open,s=o===void 0?!1:o,u=e.children,f=Qn(e,YJ),p=Hm(),v=p.isOpen,g=p.setIsOpen,E=p.onToggle,w=p.setOnToggle;return F.useEffect(function(){E===null&&r&&w(r)},[E,r,w]),F.useEffect(function(){g(s)},[s]),se.jsx(JJ,he(he({},f),{},{open:v,ref:t,children:u}))}),JJ=Dt.div.withConfig({displayName:"SideBar__GridContainer",componentId:"sc-a84pkc-0"})(function(n){var e=n.theme,t=n.open;return mn(["box-sizing:content-box;"," display:grid;grid-template-rows:1fr auto;height:100%;grid-template-areas:'content' 'footer';background-color:",";overflow:auto;width:",";min-width:",";",""],Fl(e.border),e.background,t?e.maxWidth:e.minWidth,t?e.maxWidth:e.minWidth,!t&&mn(["scrollbar-width:none;&::-webkit-scrollbar{display:none;}"]))}),aF=F.forwardRef(function(n,e){var t=n.onToggle,r=n.open,o=r===void 0?!1:r,s=n.children,u=Qn(n,QJ),f=iw(),p=f.density,v=rw({density:p},gf),g=he({onToggle:t,open:o,children:s},u);return se.jsx(XC,{theme:v,children:se.jsx(WJ,{children:se.jsx(XJ,he(he({},g),{},{ref:e}))})})});aF.displayName="SideBar";var ZJ=["icon","label","active","onClick","as"],sF=gf.entities.sidebarItem,eZ=sF.typography.color,tZ=sF.states.active.typography.color,lF=Dt.a.withConfig({displayName:"SidebarLink__Container",componentId:"sc-gbehcj-0"})(function(n){var e=n.theme,t=n.$active,r=e.minWidth,o=e.entities.sidebarItem,s=o.minHeight,u=o.border,f=o.states,p=f.active.background,v=f.hover.background,g=f.focus,E=f.disabled,w=E.background,S=E.typography.color;return mn(["background-color:",";display:grid;grid-template-columns:"," 1fr;width:100%;padding:0;place-items:center;border:0;"," text-decoration:none;min-height:",";&:hover{cursor:pointer;background-color:",";}&:disabled{background-color:",";color:",";cursor:not-allowed;& > p{color:",";}& > svg{fill:",";}}&:focus-visible{",";}"],t?p:"transparent",r,Fl(u),s,t?p:v,w,S,S,S,Zc(g.outline))}),nZ=Dt(bp).withConfig({displayName:"SidebarLink__ItemText",componentId:"sc-gbehcj-1"})(function(n){var e=n.theme,t=n.$active,r=e.entities.sidebarItem,o=r.typography.color,s=r.states.active.typography.color;return mn(["justify-self:start;color:",";&::first-letter{text-transform:capitalize;}"],t?s:o)}),rZ=Dt(W0).withConfig({displayName:"SidebarLink__Tooltip",componentId:"sc-gbehcj-2"})(["text-transform:capitalize;"]),uF=F.forwardRef(function(e,t){var r=e.icon,o=e.label,s=e.active,u=e.onClick,f=e.as,p=f===void 0?"a":f,v=Qn(e,ZJ),g=Hm(),E=g.isOpen,w=function(){return s?tZ:eZ};return E?se.jsxs(lF,he(he({as:p,tabIndex:0,$active:s,onClick:u,ref:t},v),{},{children:[r&&se.jsx(el,{data:r,color:w()}),se.jsx(nZ,{variant:"cell_text",group:"table",$active:s,children:o})]})):se.jsx(rZ,{title:o,placement:"right",children:se.jsx(lF,he(he({tabIndex:0,as:p,$active:s,onClick:u,ref:t},v),{},{children:r&&se.jsx(el,{data:r,color:w()})}))})});uF.displayName="SidebarLink";var iZ=["children"],oZ=Dt.div.withConfig({displayName:"SideBarContent__StyledSideBarContent",componentId:"sc-kq9ra8-0"})(function(){return mn(["grid-area:content;"])}),aZ=F.forwardRef(function(e,t){var r=e.children,o=Qn(e,iZ),s=he({ref:t},o);return se.jsx(oZ,he(he({},s),{},{children:r}))}),sZ=["children"],lZ=Dt.div.withConfig({displayName:"SideBarFooter__StyledSideBarFooter",componentId:"sc-1hsu72u-0"})(function(){return mn(["grid-area:footer;"])}),uZ=F.forwardRef(function(e,t){var r=e.children,o=Qn(e,sZ),s=he({ref:t},o);return se.jsx(lZ,he(he({},s),{},{children:r}))}),cZ=gf.entities.toggleOpen.typography.color,dZ=Dt.div.withConfig({displayName:"SideBarToggle__ToggleContainer",componentId:"sc-1w5e44y-0"})(function(n){var e=n.theme,t=e.minWidth,r=e.entities.toggleOpen.spacings,o=r.top,s=r.bottom;return mn(["width:",";display:grid;place-items:center;margin-block-start:",";margin-block-end:",";"],t,o,s)}),fZ=F.forwardRef(function(e,t){var r=gA({},(TQ(e),e)),o=he(he({},r),{},{ref:t}),s=Hm(),u=s.isOpen,f=s.setIsOpen;return se.jsx(dZ,he(he({open:u},o),{},{children:se.jsx(W0,{title:u?"Collapse":"Expand",placement:"right",children:se.jsx(pf,{variant:"ghost_icon",onClick:function(){return f(!u)},"aria-label":u?"Collapse":"Expand",children:se.jsx(el,{size:24,data:u?$Q:LQ,color:cZ})})})}))}),hZ=["label","icon","style","className"],cF=gf.entities.actionButton.typography.color,dF=Dt.div.withConfig({displayName:"SideBarButton__MenuButtonContainer",componentId:"sc-15xlkyo-0"})(function(n){var e=n.open,t=n.theme,r=t.entities.actionButton.spacings,o=r.right,s=r.left,u=r.top,f=r.bottom;return mn(["display:",";grid-template-columns:"," 1fr ",";justify-content:center;align-items:center;margin-block-start:",";margin-block-end:",";box-sizing:border-box;"],e?"grid":"flex",s,o,u,f)}),pZ=Dt(pf).withConfig({displayName:"SideBarButton__ExtendedButton",componentId:"sc-15xlkyo-1"})(function(){return mn(["height:40px;grid-column:2;width:fit-content;"])}),vZ=F.forwardRef(function(e,t){var r=e.label,o=e.icon,s=e.style,u=e.className,f=Qn(e,hZ),p=he(he({},f),{},{ref:t}),v={style:s,className:u},g=Hm(),E=g.isOpen;return E?se.jsx(dF,he(he({open:E},v),{},{children:se.jsxs(pZ,he(he({open:!0,variant:"contained"},p),{},{children:[se.jsx(el,{data:o,color:cF})," ",r]}))})):se.jsx(W0,{title:r,placement:"right",children:se.jsx(dF,he(he({open:E},v),{},{children:se.jsx(pf,he(he({variant:"contained_icon"},p),{},{children:se.jsx(el,{data:o,color:cF})}))}))})}),mZ=["icon","label","isExpanded","id","active","toggleExpand","onClick","children","disabled"],fF=gf.minWidth,ww=gf.entities.sidebarItem,OA=ww.minHeight,hF=ww.border,gZ=ww.typography.color,Sw=ww.states,pF=Sw.active,NA=pF.background,yZ=pF.typography.color,vF=Sw.hover.background,mF=Sw.focus,gF=Sw.disabled,_Z=gF.background,EZ=gF.typography.color,yF=Dt.div.withConfig({displayName:"SideBarAccordion__MenuItem",componentId:"sc-1ekwnbi-0"})(function(n){var e=n.$isExpanded;return mn(["display:grid;grid-template-columns:1fr;place-items:center;text-decoration:none;min-height:",";",";&:hover{cursor:pointer;background-color:",";}&:focus-visible{",";}"],OA,!e&&Fl(hF),e?"none":vF,Zc(mF.outline))}),_F=Dt.h2.withConfig({displayName:"SideBarAccordion__AccordionHeader",componentId:"sc-1ekwnbi-1"})(function(n){var e=n.$active;return mn(["margin:0;width:100%;min-height:",";background-color:",";&:hover{cursor:pointer;background-color:",";}"],OA,e?NA:"none",e?NA:vF)}),EF=Dt.button.withConfig({displayName:"SideBarAccordion__Button",componentId:"sc-1ekwnbi-2"})(function(n){var e=n.$active;return mn(["width:100%;min-height:",";padding:0;border:none;background-color:",";cursor:pointer;display:grid;place-items:center;&:focus-visible{",";}&:disabled{background-color:",";cursor:auto;}"],OA,e?NA:"transparent",Zc(mF.outline),_Z)}),bZ=Dt(EF).withConfig({displayName:"SideBarAccordion__OpenSidebarButton",componentId:"sc-1ekwnbi-3"})(["grid-template-columns:"," 1fr 48px;"],fF),CZ=Dt(EF).withConfig({displayName:"SideBarAccordion__ClosedSidebarButton",componentId:"sc-1ekwnbi-4"})(["grid-template-columns:",";position:relative;overflow:hidden;"],fF),wZ=Dt(el).withConfig({displayName:"SideBarAccordion__AccordionIcon",componentId:"sc-1ekwnbi-5"})(["position:absolute;bottom:-10px;right:-10px;transform:rotate(-45deg);"]),SZ=Dt.div.withConfig({displayName:"SideBarAccordion__Panel",componentId:"sc-1ekwnbi-6"})(["width:100%;",""],Fl(hF)),TZ=Dt(bp).withConfig({displayName:"SideBarAccordion__ItemText",componentId:"sc-1ekwnbi-7"})(function(n){var e=n.$textColor;return mn(["justify-self:start;color:",";&::first-letter{text-transform:capitalize;}"],e)}),RZ=Dt(W0).withConfig({displayName:"SideBarAccordion__Tooltip",componentId:"sc-1ekwnbi-8"})(["text-transform:capitalize;"]),bF=F.forwardRef(function(e,t){var r=e.icon,o=e.label,s=e.isExpanded,u=e.id,f=e.active,p=e.toggleExpand,v=e.onClick,g=e.children,E=e.disabled,w=Qn(e,mZ),S=SW(u,"accordion"),A=F.useState(!1),k=Mu(A,2),M=k[0],P=k[1],L=F.useState(s),j=Mu(L,2),U=j[0],H=j[1],W=F.useState(null),Q=Mu(W,2),Te=Q[0],Ve=Q[1],ot=Hm(),Me=ot.isOpen,je=p!==void 0?s:U,te=F.useMemo(function(){if(f!==void 0)return f;var B=!1;return F.Children.forEach(g,function(ne){var ke=ne;ke.props.active&&(B=!0)}),Me?!je&&B:B},[f,g,je,Me]),ee=F.useMemo(function(){return B0(Ve,t)},[t]),ye=function(){P(!1)},ve=function(){p===void 0?H(!U):p(),v&&v()},pe=function(){P(!M),v&&v()},K=function(){return te?yZ:E?EZ:gZ};if(Me)return se.jsxs(yF,{$isExpanded:je,children:[se.jsx(_F,{$active:te,children:se.jsxs(bZ,he(he({ref:t,id:"header_".concat(S),"aria-expanded":je,"aria-controls":"panel_".concat(S),onClick:ve,disabled:E},w),{},{children:[r&&se.jsx(el,{data:r,color:K()}),se.jsx(TZ,{variant:"cell_text",group:"table",$textColor:K(),children:o}),se.jsx(el,{data:je?FQ:UQ,size:24,color:K()})]}))}),je&&se.jsx(SZ,{id:"panel_".concat(S),role:"region","aria-labelledby":"header_".concat(S),children:g})]});var ge=M?"":o;return se.jsxs(se.Fragment,{children:[se.jsx(RZ,{title:ge,placement:"right",children:se.jsx(yF,{$isExpanded:je,children:se.jsx(_F,{$active:te,children:se.jsxs(CZ,he(he({ref:ee,id:"anchor-default","aria-haspopup":"true","aria-expanded":M,"aria-controls":"menu-default",onClick:pe,disabled:E},w),{},{children:[r&&se.jsx(el,{data:r,color:K()}),se.jsx(wZ,{data:HQ,size:24,color:K()})]}))})})}),se.jsx(Lu,{open:M,placement:"right-start",onClose:ye,anchorEl:Te,children:F.Children.map(g,function(B){var ne=B;return se.jsx(Lu.Item,he(he({},B.props),{},{children:ne.props.label}))})})]})});bF.displayName="SidebarAccordion";var xZ=["label","active","onClick","as"],AZ=gf.minWidth,MA=gf.entities.sidebarItem,kZ=MA.minHeight,IZ=MA.typography.color,PA=MA.states,CF=PA.active,wF=CF.background,OZ=CF.typography.color,NZ=PA.focus,MZ=PA.hover.background,PZ=Dt.a.withConfig({displayName:"SideBarAccordionItem__Container",componentId:"sc-1aeo1e1-0"})(function(n){var e=n.$active;return mn(["display:grid;grid-template-columns:"," 1fr;justify-items:stretch;background-color:",";cursor:pointer;text-decoration:none;border:0;width:100%;padding:0;&:hover{background-color:",";}&:focus-visible{",";}"],AZ,e?wF:"transparent",e?wF:MZ,Zc(NZ.outline))}),DZ=Dt.div.withConfig({displayName:"SideBarAccordionItem__TextWrapper",componentId:"sc-1aeo1e1-1"})(["min-height:",";grid-column:2;justify-self:start;display:flex;align-items:center;width:100%;"],kZ),LZ=Dt(bp).withConfig({displayName:"SideBarAccordionItem__Text",componentId:"sc-1aeo1e1-2"})(function(n){var e=n.$active;return mn(["color:",";width:100%;&::first-letter{text-transform:capitalize;}"],e?OZ:IZ)}),SF=F.forwardRef(function(e,t){var r=e.label,o=e.active,s=e.onClick,u=e.as,f=u===void 0?"a":u,p=Qn(e,xZ),v=Hm(),g=v.isOpen;return g?se.jsx(PZ,he(he({as:f,tabIndex:0,$active:o,onClick:s,ref:t},p),{},{children:se.jsx(DZ,{children:se.jsx(LZ,{variant:"cell_text",group:"table",$active:o,children:r})})})):null});SF.displayName="SideBarAccordionItem";var no=aF;no.Link=uF,no.Content=aZ,no.Footer=uZ,no.Toggle=fZ,no.Button=vZ,no.Accordion=bF,no.AccordionItem=SF,no.Link.displayName="SideBar.Link",no.Content.displayName="SideBar.Content",no.Footer.displayName="SideBar.Footer",no.Toggle.displayName="SideBar.Toggle",no.Button.displayName="SideBar.Button",no.Accordion.displayName="SideBar.Accordion",no.AccordionItem.displayName="SideBar.AccordionItem";const Tw=({children:n,text:e})=>se.jsxs("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"80%",height:"80vh",overflow:"hidden",flexDirection:"column"},children:[se.jsx(dJ,{size:96*2,variant:"indeterminate",children:n}),se.jsx(bp,{variant:"h4",children:e})]});/**
357
+ * React Router v6.15.0
358
+ *
359
+ * Copyright (c) Remix Software Inc.
360
+ *
361
+ * This source code is licensed under the MIT license found in the
362
+ * LICENSE.md file in the root directory of this source tree.
363
+ *
364
+ * @license MIT
365
+ */function Rw(){return Rw=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Rw.apply(this,arguments)}const $m=F.createContext(null);process.env.NODE_ENV!=="production"&&($m.displayName="DataRouter");const xw=F.createContext(null);process.env.NODE_ENV!=="production"&&(xw.displayName="DataRouterState");const UZ=F.createContext(null);process.env.NODE_ENV!=="production"&&(UZ.displayName="Await");const Uu=F.createContext(null);process.env.NODE_ENV!=="production"&&(Uu.displayName="Navigation");const X0=F.createContext(null);process.env.NODE_ENV!=="production"&&(X0.displayName="Location");const Hl=F.createContext({outlet:null,matches:[],isDataRoute:!1});process.env.NODE_ENV!=="production"&&(Hl.displayName="Route");const DA=F.createContext(null);process.env.NODE_ENV!=="production"&&(DA.displayName="RouteError");function FZ(n,e){let{relative:t}=e===void 0?{}:e;J0()||(process.env.NODE_ENV!=="production"?$t(!1,"useHref() may be used only in the context of a <Router> component."):$t(!1));let{basename:r,navigator:o}=F.useContext(Uu),{hash:s,pathname:u,search:f}=Aw(n,{relative:t}),p=u;return r!=="/"&&(p=u==="/"?r:Iu([r,u])),o.createHref({pathname:p,search:f,hash:s})}function J0(){return F.useContext(X0)!=null}function Bm(){return J0()||(process.env.NODE_ENV!=="production"?$t(!1,"useLocation() may be used only in the context of a <Router> component."):$t(!1)),F.useContext(X0).location}const TF="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function RF(n){F.useContext(Uu).static||F.useLayoutEffect(n)}function HZ(){let{isDataRoute:n}=F.useContext(Hl);return n?tee():$Z()}function $Z(){J0()||(process.env.NODE_ENV!=="production"?$t(!1,"useNavigate() may be used only in the context of a <Router> component."):$t(!1));let n=F.useContext($m),{basename:e,navigator:t}=F.useContext(Uu),{matches:r}=F.useContext(Hl),{pathname:o}=Bm(),s=JSON.stringify(NC(r).map(p=>p.pathnameBase)),u=F.useRef(!1);return RF(()=>{u.current=!0}),F.useCallback(function(p,v){if(v===void 0&&(v={}),process.env.NODE_ENV!=="production"&&da(u.current,TF),!u.current)return;if(typeof p=="number"){t.go(p);return}let g=vx(p,JSON.parse(s),o,v.relative==="path");n==null&&e!=="/"&&(g.pathname=g.pathname==="/"?e:Iu([e,g.pathname])),(v.replace?t.replace:t.push)(g,v.state,v)},[e,t,s,o,n])}const BZ=F.createContext(null);function jZ(n){let e=F.useContext(Hl).outlet;return e&&F.createElement(BZ.Provider,{value:n},e)}function zZ(){let{matches:n}=F.useContext(Hl),e=n[n.length-1];return e?e.params:{}}function Aw(n,e){let{relative:t}=e===void 0?{}:e,{matches:r}=F.useContext(Hl),{pathname:o}=Bm(),s=JSON.stringify(NC(r).map(u=>u.pathnameBase));return F.useMemo(()=>vx(n,JSON.parse(s),o,t==="path"),[n,s,o,t])}function qZ(n,e,t){J0()||(process.env.NODE_ENV!=="production"?$t(!1,"useRoutes() may be used only in the context of a <Router> component."):$t(!1));let{navigator:r}=F.useContext(Uu),{matches:o}=F.useContext(Hl),s=o[o.length-1],u=s?s.params:{},f=s?s.pathname:"/",p=s?s.pathnameBase:"/",v=s&&s.route;if(process.env.NODE_ENV!=="production"){let P=v&&v.path||"";nee(f,!v||P.endsWith("*"),"You rendered descendant <Routes> (or called `useRoutes()`) at "+('"'+f+'" (under <Route path="'+P+'">) but the ')+`parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
366
+
367
+ `+('Please change the parent <Route path="'+P+'"> to <Route ')+('path="'+(P==="/"?"*":P+"/*")+'">.'))}let g=Bm(),E;if(e){var w;let P=typeof e=="string"?Pl(e):e;p==="/"||(w=P.pathname)!=null&&w.startsWith(p)||(process.env.NODE_ENV!=="production"?$t(!1,"When overriding the location using `<Routes location>` or `useRoutes(routes, location)`, the location pathname must begin with the portion of the URL pathname that was "+('matched by all parent routes. The current pathname base is "'+p+'" ')+('but pathname "'+P.pathname+'" was given in the `location` prop.')):$t(!1)),E=P}else E=g;let S=E.pathname||"/",A=p==="/"?S:S.slice(p.length)||"/",k=vm(n,{pathname:A});process.env.NODE_ENV!=="production"&&(process.env.NODE_ENV!=="production"&&da(v||k!=null,'No routes matched location "'+E.pathname+E.search+E.hash+'" '),process.env.NODE_ENV!=="production"&&da(k==null||k[k.length-1].route.element!==void 0||k[k.length-1].route.Component!==void 0,'Matched leaf route at location "'+E.pathname+E.search+E.hash+'" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.'));let M=YZ(k&&k.map(P=>Object.assign({},P,{params:Object.assign({},u,P.params),pathname:Iu([p,r.encodeLocation?r.encodeLocation(P.pathname).pathname:P.pathname]),pathnameBase:P.pathnameBase==="/"?p:Iu([p,r.encodeLocation?r.encodeLocation(P.pathnameBase).pathname:P.pathnameBase])})),o,t);return e&&M?F.createElement(X0.Provider,{value:{location:Rw({pathname:"/",search:"",hash:"",state:null,key:"default"},E),navigationType:Kr.Pop}},M):M}function GZ(){let n=eee(),e=eD(n)?n.status+" "+n.statusText:n instanceof Error?n.message:JSON.stringify(n),t=n instanceof Error?n.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},s={padding:"2px 4px",backgroundColor:r},u=null;return process.env.NODE_ENV!=="production"&&(console.error("Error handled by React Router default ErrorBoundary:",n),u=F.createElement(F.Fragment,null,F.createElement("p",null,"💿 Hey developer 👋"),F.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",F.createElement("code",{style:s},"ErrorBoundary")," or"," ",F.createElement("code",{style:s},"errorElement")," prop on your route."))),F.createElement(F.Fragment,null,F.createElement("h2",null,"Unexpected Application Error!"),F.createElement("h3",{style:{fontStyle:"italic"}},e),t?F.createElement("pre",{style:o},t):null,u)}const VZ=F.createElement(GZ,null);class KZ extends F.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error||t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?F.createElement(Hl.Provider,{value:this.props.routeContext},F.createElement(DA.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function WZ(n){let{routeContext:e,match:t,children:r}=n,o=F.useContext($m);return o&&o.static&&o.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(o.staticContext._deepestRenderedBoundaryId=t.route.id),F.createElement(Hl.Provider,{value:e},r)}function YZ(n,e,t){var r;if(e===void 0&&(e=[]),t===void 0&&(t=null),n==null){var o;if((o=t)!=null&&o.errors)n=t.matches;else return null}let s=n,u=(r=t)==null?void 0:r.errors;if(u!=null){let f=s.findIndex(p=>p.route.id&&(u==null?void 0:u[p.route.id]));f>=0||(process.env.NODE_ENV!=="production"?$t(!1,"Could not find a matching route for errors on route IDs: "+Object.keys(u).join(",")):$t(!1)),s=s.slice(0,Math.min(s.length,f+1))}return s.reduceRight((f,p,v)=>{let g=p.route.id?u==null?void 0:u[p.route.id]:null,E=null;t&&(E=p.route.errorElement||VZ);let w=e.concat(s.slice(0,v+1)),S=()=>{let A;return g?A=E:p.route.Component?A=F.createElement(p.route.Component,null):p.route.element?A=p.route.element:A=f,F.createElement(WZ,{match:p,routeContext:{outlet:f,matches:w,isDataRoute:t!=null},children:A})};return t&&(p.route.ErrorBoundary||p.route.errorElement||v===0)?F.createElement(KZ,{location:t.location,revalidation:t.revalidation,component:E,error:g,children:S(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):S()},null)}var xF=function(n){return n.UseBlocker="useBlocker",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n}(xF||{}),Z0=function(n){return n.UseBlocker="useBlocker",n.UseLoaderData="useLoaderData",n.UseActionData="useActionData",n.UseRouteError="useRouteError",n.UseNavigation="useNavigation",n.UseRouteLoaderData="useRouteLoaderData",n.UseMatches="useMatches",n.UseRevalidator="useRevalidator",n.UseNavigateStable="useNavigate",n.UseRouteId="useRouteId",n}(Z0||{});function LA(n){return n+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function QZ(n){let e=F.useContext($m);return e||(process.env.NODE_ENV!=="production"?$t(!1,LA(n)):$t(!1)),e}function XZ(n){let e=F.useContext(xw);return e||(process.env.NODE_ENV!=="production"?$t(!1,LA(n)):$t(!1)),e}function JZ(n){let e=F.useContext(Hl);return e||(process.env.NODE_ENV!=="production"?$t(!1,LA(n)):$t(!1)),e}function UA(n){let e=JZ(n),t=e.matches[e.matches.length-1];return t.route.id||(process.env.NODE_ENV!=="production"?$t(!1,n+' can only be used on routes that contain a unique "id"'):$t(!1)),t.route.id}function ZZ(){return UA(Z0.UseRouteId)}function eee(){var n;let e=F.useContext(DA),t=XZ(Z0.UseRouteError),r=UA(Z0.UseRouteError);return e||((n=t.errors)==null?void 0:n[r])}function tee(){let{router:n}=QZ(xF.UseNavigateStable),e=UA(Z0.UseNavigateStable),t=F.useRef(!1);return RF(()=>{t.current=!0}),F.useCallback(function(o,s){s===void 0&&(s={}),process.env.NODE_ENV!=="production"&&da(t.current,TF),t.current&&(typeof o=="number"?n.navigate(o):n.navigate(o,Rw({fromRouteId:e},s)))},[n,e])}const AF={};function nee(n,e,t){!e&&!AF[n]&&(AF[n]=!0,process.env.NODE_ENV!=="production"&&da(!1,t))}const kF=AR["startTransition"];function ree(n){let{fallbackElement:e,router:t,future:r}=n,[o,s]=F.useState(t.state),{v7_startTransition:u}=r||{},f=F.useCallback(E=>{u&&kF?kF(()=>s(E)):s(E)},[s,u]);F.useLayoutEffect(()=>t.subscribe(f),[t,f]);let p=F.useMemo(()=>({createHref:t.createHref,encodeLocation:t.encodeLocation,go:E=>t.navigate(E),push:(E,w,S)=>t.navigate(E,{state:w,preventScrollReset:S==null?void 0:S.preventScrollReset}),replace:(E,w,S)=>t.navigate(E,{replace:!0,state:w,preventScrollReset:S==null?void 0:S.preventScrollReset})}),[t]),v=t.basename||"/",g=F.useMemo(()=>({router:t,navigator:p,static:!1,basename:v}),[t,p,v]);return F.createElement(F.Fragment,null,F.createElement($m.Provider,{value:g},F.createElement(xw.Provider,{value:o},F.createElement(aee,{basename:v,location:o.location,navigationType:o.historyAction,navigator:p},o.initialized?F.createElement(iee,{routes:t.routes,state:o}):e))),null)}function iee(n){let{routes:e,state:t}=n;return qZ(e,void 0,t)}function oee(n){return jZ(n.context)}function aee(n){let{basename:e="/",children:t=null,location:r,navigationType:o=Kr.Pop,navigator:s,static:u=!1}=n;J0()&&(process.env.NODE_ENV!=="production"?$t(!1,"You cannot render a <Router> inside another <Router>. You should never have more than one in your app."):$t(!1));let f=e.replace(/^\/*/,"/"),p=F.useMemo(()=>({basename:f,navigator:s,static:u}),[f,s,u]);typeof r=="string"&&(r=Pl(r));let{pathname:v="/",search:g="",hash:E="",state:w=null,key:S="default"}=r,A=F.useMemo(()=>{let k=rf(v,f);return k==null?null:{location:{pathname:k,search:g,hash:E,state:w,key:S},navigationType:o}},[f,v,g,E,w,S,o]);return process.env.NODE_ENV!=="production"&&da(A!=null,'<Router basename="'+f+'"> is not able to match the URL '+('"'+v+g+E+'" because it does not start with the ')+"basename, so the <Router> won't render anything."),A==null?null:F.createElement(Uu.Provider,{value:p},F.createElement(X0.Provider,{children:t,value:A}))}new Promise(()=>{});/**
368
+ * React Router DOM v6.15.0
369
+ *
370
+ * Copyright (c) Remix Software Inc.
371
+ *
372
+ * This source code is licensed under the MIT license found in the
373
+ * LICENSE.md file in the root directory of this source tree.
374
+ *
375
+ * @license MIT
376
+ */function Cp(){return Cp=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},Cp.apply(this,arguments)}function FA(n,e){if(n==null)return{};var t={},r=Object.keys(n),o,s;for(s=0;s<r.length;s++)o=r[s],!(e.indexOf(o)>=0)&&(t[o]=n[o]);return t}const kw="get",Iw="application/x-www-form-urlencoded";function Ow(n){return n!=null&&typeof n.tagName=="string"}function see(n){return Ow(n)&&n.tagName.toLowerCase()==="button"}function lee(n){return Ow(n)&&n.tagName.toLowerCase()==="form"}function uee(n){return Ow(n)&&n.tagName.toLowerCase()==="input"}function cee(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function dee(n,e){return n.button===0&&(!e||e==="_self")&&!cee(n)}let Nw=null;function fee(){if(Nw===null)try{new FormData(document.createElement("form"),0),Nw=!1}catch{Nw=!0}return Nw}const hee=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function HA(n){return n!=null&&!hee.has(n)?(process.env.NODE_ENV!=="production"&&da(!1,'"'+n+'" is not a valid `encType` for `<Form>`/`<fetcher.Form>` '+('and will default to "'+Iw+'"')),null):n}function pee(n,e){let t,r,o,s,u;if(lee(n)){let f=n.getAttribute("action");r=f?rf(f,e):null,t=n.getAttribute("method")||kw,o=HA(n.getAttribute("enctype"))||Iw,s=new FormData(n)}else if(see(n)||uee(n)&&(n.type==="submit"||n.type==="image")){let f=n.form;if(f==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let p=n.getAttribute("formaction")||f.getAttribute("action");if(r=p?rf(p,e):null,t=n.getAttribute("formmethod")||f.getAttribute("method")||kw,o=HA(n.getAttribute("formenctype"))||HA(f.getAttribute("enctype"))||Iw,s=new FormData(f,n),!fee()){let{name:v,type:g,value:E}=n;if(g==="image"){let w=v?v+".":"";s.append(w+"x","0"),s.append(w+"y","0")}else v&&s.append(v,E)}}else{if(Ow(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');t=kw,r=null,o=Iw,u=n}return s&&o==="text/plain"&&(u=s,s=void 0),{action:r,method:t.toLowerCase(),encType:o,formData:s,body:u}}const vee=["onClick","relative","reloadDocument","replace","state","target","to","preventScrollReset"],mee=["aria-current","caseSensitive","className","end","style","to","children"],gee=["reloadDocument","replace","state","method","action","onSubmit","submit","relative","preventScrollReset"];process.env.NODE_ENV;const yee=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",_ee=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$A=F.forwardRef(function(e,t){let{onClick:r,relative:o,reloadDocument:s,replace:u,state:f,target:p,to:v,preventScrollReset:g}=e,E=FA(e,vee),{basename:w}=F.useContext(Uu),S,A=!1;if(typeof v=="string"&&_ee.test(v)&&(S=v,yee))try{let L=new URL(window.location.href),j=v.startsWith("//")?new URL(L.protocol+v):new URL(v),U=rf(j.pathname,w);j.origin===L.origin&&U!=null?v=U+j.search+j.hash:A=!0}catch{process.env.NODE_ENV!=="production"&&da(!1,'<Link to="'+v+'"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.')}let k=FZ(v,{relative:o}),M=See(v,{replace:u,state:f,target:p,preventScrollReset:g,relative:o});function P(L){r&&r(L),L.defaultPrevented||M(L)}return F.createElement("a",Cp({},E,{href:S||k,onClick:A||s?r:P,ref:t,target:p}))});process.env.NODE_ENV!=="production"&&($A.displayName="Link");const Eee=F.forwardRef(function(e,t){let{"aria-current":r="page",caseSensitive:o=!1,className:s="",end:u=!1,style:f,to:p,children:v}=e,g=FA(e,mee),E=Aw(p,{relative:g.relative}),w=Bm(),S=F.useContext(xw),{navigator:A}=F.useContext(Uu),k=A.encodeLocation?A.encodeLocation(E).pathname:E.pathname,M=w.pathname,P=S&&S.navigation&&S.navigation.location?S.navigation.location.pathname:null;o||(M=M.toLowerCase(),P=P?P.toLowerCase():null,k=k.toLowerCase());let L=M===k||!u&&M.startsWith(k)&&M.charAt(k.length)==="/",j=P!=null&&(P===k||!u&&P.startsWith(k)&&P.charAt(k.length)==="/"),U=L?r:void 0,H;typeof s=="function"?H=s({isActive:L,isPending:j}):H=[s,L?"active":null,j?"pending":null].filter(Boolean).join(" ");let W=typeof f=="function"?f({isActive:L,isPending:j}):f;return F.createElement($A,Cp({},g,{"aria-current":U,className:H,ref:t,style:W,to:p}),typeof v=="function"?v({isActive:L,isPending:j}):v)});process.env.NODE_ENV!=="production"&&(Eee.displayName="NavLink");const bee=F.forwardRef((n,e)=>{let t=Ree();return F.createElement(IF,Cp({},n,{submit:t,ref:e}))});process.env.NODE_ENV!=="production"&&(bee.displayName="Form");const IF=F.forwardRef((n,e)=>{let{reloadDocument:t,replace:r,state:o,method:s=kw,action:u,onSubmit:f,submit:p,relative:v,preventScrollReset:g}=n,E=FA(n,gee),w=s.toLowerCase()==="get"?"get":"post",S=xee(u,{relative:v}),A=k=>{if(f&&f(k),k.defaultPrevented)return;k.preventDefault();let M=k.nativeEvent.submitter,P=(M==null?void 0:M.getAttribute("formmethod"))||s;p(M||k.currentTarget,{method:P,replace:r,state:o,relative:v,preventScrollReset:g})};return F.createElement("form",Cp({ref:e,method:w,action:S,onSubmit:t?f:A},E))});process.env.NODE_ENV!=="production"&&(IF.displayName="FormImpl"),process.env.NODE_ENV;var BA;(function(n){n.UseScrollRestoration="useScrollRestoration",n.UseSubmit="useSubmit",n.UseSubmitFetcher="useSubmitFetcher",n.UseFetcher="useFetcher"})(BA||(BA={}));var OF;(function(n){n.UseFetchers="useFetchers",n.UseScrollRestoration="useScrollRestoration"})(OF||(OF={}));function Cee(n){return n+" must be used within a data router. See https://reactrouter.com/routers/picking-a-router."}function wee(n){let e=F.useContext($m);return e||(process.env.NODE_ENV!=="production"?$t(!1,Cee(n)):$t(!1)),e}function See(n,e){let{target:t,replace:r,state:o,preventScrollReset:s,relative:u}=e===void 0?{}:e,f=HZ(),p=Bm(),v=Aw(n,{relative:u});return F.useCallback(g=>{if(dee(g,t)){g.preventDefault();let E=r!==void 0?r:ku(p)===ku(v);f(n,{replace:E,state:o,preventScrollReset:s,relative:u})}},[p,f,v,r,o,t,n,s,u])}function Tee(){if(typeof document>"u")throw new Error("You are calling submit during the server render. Try calling submit within a `useEffect` or callback instead.")}function Ree(){let{router:n}=wee(BA.UseSubmit),{basename:e}=F.useContext(Uu),t=ZZ();return F.useCallback(function(r,o){o===void 0&&(o={}),Tee();let{action:s,method:u,encType:f,formData:p,body:v}=pee(r,e);n.navigate(o.action||s,{preventScrollReset:o.preventScrollReset,formData:p,body:v,formMethod:o.method||u,formEncType:o.encType||f,replace:o.replace,state:o.state,fromRouteId:t})},[n,e,t])}function xee(n,e){let{relative:t}=e===void 0?{}:e,{basename:r}=F.useContext(Uu),o=F.useContext(Hl);o||(process.env.NODE_ENV!=="production"?$t(!1,"useFormAction must be used inside a RouteContext"):$t(!1));let[s]=o.matches.slice(-1),u=Cp({},Aw(n||".",{relative:t})),f=Bm();if(n==null&&(u.search=f.search,s.route.index)){let p=new URLSearchParams(u.search);p.delete("index"),u.search=p.toString()?"?"+p.toString():""}return(!n||n===".")&&s.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),r!=="/"&&(u.pathname=u.pathname==="/"?r:Iu([r,u.pathname])),ku(u)}const jA=({error:n})=>se.jsxs(Ns,{variant:"warning",style:{width:800},children:[se.jsx(Ns.Header,{children:se.jsx(bp,{variant:"h4",color:"warning",children:n.message})}),se.jsx(Ns.Content,{children:se.jsx("pre",{style:{whiteSpace:"pre-wrap"},children:n.stack??"Error"})})]}),Aee=(n,e,t)=>{F.useLayoutEffect(()=>{const r=n.subscribe(e);return r.add(t),()=>r.unsubscribe()},[n,e])};function NF(n,e){const[t,r]=F.useState(()=>e!=null&&e.initial?"value"in n?n.value:e.initial:void 0),[o,s]=F.useState(null),[u,f]=F.useState(!1);F.useLayoutEffect(()=>{s(null),f(!1),r("value"in n?n.value:void 0)},[r,s,f,n]);const p=F.useMemo(()=>({next:r,error:s,complete:()=>f(!0)}),[r,s,f]);return Aee(n,p,e==null?void 0:e.teardown),{value:t,error:o,complete:u}}const MF=()=>{const n=x0().modules.app;if(!n)throw Error("Current framework does not have AppModule configured");const e=F.useMemo(()=>n.current$,[n]),{value:t,error:r}=NF(e);return{currentApp:t,setCurrentApp:F.useMemo(()=>n.setCurrentApp.bind(n),[n]),clearCurrentApp:F.useMemo(()=>n.clearCurrentApp.bind(n),[n]),error:r}},kee=()=>{const n=x0().modules.app;if(!n)throw Error("Current framework does not have AppModule configured");return n},PF=n=>{const e=kee(),{value:t,complete:r}=NF(F.useMemo(()=>e.getAllAppManifests(),[e]));return{apps:F.useMemo(()=>t&&!(n!=null&&n.includeHidden)?t.filter(s=>!s.hide):t,[n,t]),isLoading:!r}};var Mw=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(n){return this.listeners.add(n),this.onSubscribe(),()=>{this.listeners.delete(n),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Pw=typeof window>"u"||"Deno"in window;function $l(){}function Iee(n,e){return typeof n=="function"?n(e):n}function Oee(n){return typeof n=="number"&&n>=0&&n!==1/0}function Nee(n,e){return Math.max(n+(e||0)-Date.now(),0)}function DF(n,e){const{type:t="all",exact:r,fetchStatus:o,predicate:s,queryKey:u,stale:f}=n;if(u){if(r){if(e.queryHash!==zA(u,e.options))return!1}else if(!t_(e.queryKey,u))return!1}if(t!=="all"){const p=e.isActive();if(t==="active"&&!p||t==="inactive"&&p)return!1}return!(typeof f=="boolean"&&e.isStale()!==f||typeof o<"u"&&o!==e.state.fetchStatus||s&&!s(e))}function LF(n,e){const{exact:t,status:r,predicate:o,mutationKey:s}=n;if(s){if(!e.options.mutationKey)return!1;if(t){if(e_(e.options.mutationKey)!==e_(s))return!1}else if(!t_(e.options.mutationKey,s))return!1}return!(r&&e.state.status!==r||o&&!o(e))}function zA(n,e){return((e==null?void 0:e.queryKeyHashFn)||e_)(n)}function e_(n){return JSON.stringify(n,(e,t)=>qA(t)?Object.keys(t).sort().reduce((r,o)=>(r[o]=t[o],r),{}):t)}function t_(n,e){return n===e?!0:typeof n!=typeof e?!1:n&&e&&typeof n=="object"&&typeof e=="object"?!Object.keys(e).some(t=>!t_(n[t],e[t])):!1}function UF(n,e){if(n===e)return n;const t=FF(n)&&FF(e);if(t||qA(n)&&qA(e)){const r=t?n.length:Object.keys(n).length,o=t?e:Object.keys(e),s=o.length,u=t?[]:{};let f=0;for(let p=0;p<s;p++){const v=t?p:o[p];u[v]=UF(n[v],e[v]),u[v]===n[v]&&f++}return r===s&&f===r?n:u}return e}function FF(n){return Array.isArray(n)&&n.length===Object.keys(n).length}function qA(n){if(!HF(n))return!1;const e=n.constructor;if(typeof e>"u")return!0;const t=e.prototype;return!(!HF(t)||!t.hasOwnProperty("isPrototypeOf"))}function HF(n){return Object.prototype.toString.call(n)==="[object Object]"}function $F(n){return new Promise(e=>{setTimeout(e,n)})}function BF(n){$F(0).then(n)}function Mee(n,e,t){return typeof t.structuralSharing=="function"?t.structuralSharing(n,e):t.structuralSharing!==!1?UF(n,e):e}function Pee(n,e,t=0){const r=[...n,e];return t&&r.length>t?r.slice(1):r}function Dee(n,e,t=0){const r=[e,...n];return t&&r.length>t?r.slice(0,-1):r}var Lee=(BH=class extends Mw{constructor(){super();Pn(this,Rp,void 0);Pn(this,_f,void 0);Pn(this,zm,void 0);Xt(this,zm,e=>{if(!Pw&&window.addEventListener){const t=()=>e();return window.addEventListener("visibilitychange",t,!1),()=>{window.removeEventListener("visibilitychange",t)}}})}onSubscribe(){Ae(this,_f)||this.setEventListener(Ae(this,zm))}onUnsubscribe(){var e;this.hasListeners()||((e=Ae(this,_f))==null||e.call(this),Xt(this,_f,void 0))}setEventListener(e){var t;Xt(this,zm,e),(t=Ae(this,_f))==null||t.call(this),Xt(this,_f,e(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(e){Ae(this,Rp)!==e&&(Xt(this,Rp,e),this.onFocus())}onFocus(){this.listeners.forEach(e=>{e()})}isFocused(){var e;return typeof Ae(this,Rp)=="boolean"?Ae(this,Rp):((e=globalThis.document)==null?void 0:e.visibilityState)!=="hidden"}},Rp=new WeakMap,_f=new WeakMap,zm=new WeakMap,BH),GA=new Lee,Uee=(jH=class extends Mw{constructor(){super();Pn(this,qm,!0);Pn(this,Ef,void 0);Pn(this,Gm,void 0);Xt(this,Gm,e=>{if(!Pw&&window.addEventListener){const t=()=>e(!0),r=()=>e(!1);return window.addEventListener("online",t,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",t),window.removeEventListener("offline",r)}}})}onSubscribe(){Ae(this,Ef)||this.setEventListener(Ae(this,Gm))}onUnsubscribe(){var e;this.hasListeners()||((e=Ae(this,Ef))==null||e.call(this),Xt(this,Ef,void 0))}setEventListener(e){var t;Xt(this,Gm,e),(t=Ae(this,Ef))==null||t.call(this),Xt(this,Ef,e(this.setOnline.bind(this)))}setOnline(e){Ae(this,qm)!==e&&(Xt(this,qm,e),this.listeners.forEach(r=>{r(e)}))}isOnline(){return Ae(this,qm)}},qm=new WeakMap,Ef=new WeakMap,Gm=new WeakMap,jH),Dw=new Uee;function Fee(n){return Math.min(1e3*2**n,3e4)}function VA(n){return(n??"online")==="online"?Dw.isOnline():!0}var jF=class{constructor(n){this.revert=n==null?void 0:n.revert,this.silent=n==null?void 0:n.silent}};function KA(n){return n instanceof jF}function zF(n){let e=!1,t=0,r=!1,o,s,u;const f=new Promise((M,P)=>{s=M,u=P}),p=M=>{var P;r||(S(new jF(M)),(P=n.abort)==null||P.call(n))},v=()=>{e=!0},g=()=>{e=!1},E=()=>!GA.isFocused()||n.networkMode!=="always"&&!Dw.isOnline(),w=M=>{var P;r||(r=!0,(P=n.onSuccess)==null||P.call(n,M),o==null||o(),s(M))},S=M=>{var P;r||(r=!0,(P=n.onError)==null||P.call(n,M),o==null||o(),u(M))},A=()=>new Promise(M=>{var P;o=L=>{const j=r||!E();return j&&M(L),j},(P=n.onPause)==null||P.call(n)}).then(()=>{var M;o=void 0,r||(M=n.onContinue)==null||M.call(n)}),k=()=>{if(r)return;let M;try{M=n.fn()}catch(P){M=Promise.reject(P)}Promise.resolve(M).then(w).catch(P=>{var W;if(r)return;const L=n.retry??(Pw?0:3),j=n.retryDelay??Fee,U=typeof j=="function"?j(t,P):j,H=L===!0||typeof L=="number"&&t<L||typeof L=="function"&&L(t,P);if(e||!H){S(P);return}t++,(W=n.onFail)==null||W.call(n,t,P),$F(U).then(()=>{if(E())return A()}).then(()=>{e?S(P):k()})})};return VA(n.networkMode)?k():A().then(k),{promise:f,cancel:p,continue:()=>(o==null?void 0:o())?f:Promise.resolve(),cancelRetry:v,continueRetry:g}}function Hee(){let n=[],e=0,t=g=>{g()},r=g=>{g()};const o=g=>{let E;e++;try{E=g()}finally{e--,e||f()}return E},s=g=>{e?n.push(g):BF(()=>{t(g)})},u=g=>(...E)=>{s(()=>{g(...E)})},f=()=>{const g=n;n=[],g.length&&BF(()=>{r(()=>{g.forEach(E=>{t(E)})})})};return{batch:o,batchCalls:u,schedule:s,setNotifyFunction:g=>{t=g},setBatchNotifyFunction:g=>{r=g}}}var Pa=Hee(),qF=(zH=class{constructor(){Pn(this,xp,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),Oee(this.gcTime)&&Xt(this,xp,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(n){this.gcTime=Math.max(this.gcTime||0,n??(Pw?1/0:5*60*1e3))}clearGcTimeout(){Ae(this,xp)&&(clearTimeout(Ae(this,xp)),Xt(this,xp,void 0))}},xp=new WeakMap,zH),$ee=(qH=class extends qF{constructor(e){super();Pn(this,Wm);Pn(this,Bl);Pn(this,Vm,void 0);Pn(this,Km,void 0);Pn(this,nl,void 0);Pn(this,bf,void 0);Pn(this,rl,void 0);Pn(this,Ao,void 0);Pn(this,i_,void 0);Pn(this,Ap,void 0);Xt(this,Ap,!1),Xt(this,i_,e.defaultOptions),Eo(this,Wm,RR).call(this,e.options),Xt(this,Ao,[]),Xt(this,nl,e.cache),this.queryKey=e.queryKey,this.queryHash=e.queryHash,Xt(this,Vm,e.state||Bee(this.options)),this.state=Ae(this,Vm),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!Ae(this,Ao).length&&this.state.fetchStatus==="idle"&&Ae(this,nl).remove(this)}setData(e,t){const r=Mee(this.state.data,e,this.options);return Eo(this,Bl,Gd).call(this,{data:r,type:"success",dataUpdatedAt:t==null?void 0:t.updatedAt,manual:t==null?void 0:t.manual}),r}setState(e,t){Eo(this,Bl,Gd).call(this,{type:"setState",state:e,setStateOptions:t})}cancel(e){var r;const t=Ae(this,bf);return(r=Ae(this,rl))==null||r.cancel(e),t?t.then($l).catch($l):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Ae(this,Vm))}isActive(){return Ae(this,Ao).some(e=>e.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||Ae(this,Ao).some(e=>e.getCurrentResult().isStale)}isStaleByTime(e=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!Nee(this.state.dataUpdatedAt,e)}onFocus(){var t;const e=Ae(this,Ao).find(r=>r.shouldFetchOnWindowFocus());e==null||e.refetch({cancelRefetch:!1}),(t=Ae(this,rl))==null||t.continue()}onOnline(){var t;const e=Ae(this,Ao).find(r=>r.shouldFetchOnReconnect());e==null||e.refetch({cancelRefetch:!1}),(t=Ae(this,rl))==null||t.continue()}addObserver(e){Ae(this,Ao).includes(e)||(Ae(this,Ao).push(e),this.clearGcTimeout(),Ae(this,nl).notify({type:"observerAdded",query:this,observer:e}))}removeObserver(e){Ae(this,Ao).includes(e)&&(Xt(this,Ao,Ae(this,Ao).filter(t=>t!==e)),Ae(this,Ao).length||(Ae(this,rl)&&(Ae(this,Ap)?Ae(this,rl).cancel({revert:!0}):Ae(this,rl).cancelRetry()),this.scheduleGc()),Ae(this,nl).notify({type:"observerRemoved",query:this,observer:e}))}getObserversCount(){return Ae(this,Ao).length}invalidate(){this.state.isInvalidated||Eo(this,Bl,Gd).call(this,{type:"invalidate"})}fetch(e,t){var v,g,E,w;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(t!=null&&t.cancelRefetch))this.cancel({silent:!0});else if(Ae(this,bf))return(v=Ae(this,rl))==null||v.continueRetry(),Ae(this,bf)}if(e&&Eo(this,Wm,RR).call(this,e),!this.options.queryFn){const S=Ae(this,Ao).find(A=>A.options.queryFn);S&&Eo(this,Wm,RR).call(this,S.options)}process.env.NODE_ENV!=="production"&&(Array.isArray(this.options.queryKey)||console.error("As of v4, queryKey needs to be an Array. If you are using a string like 'repoData', please change it to an Array, e.g. ['repoData']"));const r=new AbortController,o={queryKey:this.queryKey,meta:this.meta},s=S=>{Object.defineProperty(S,"signal",{enumerable:!0,get:()=>(Xt(this,Ap,!0),r.signal)})};s(o);const u=()=>this.options.queryFn?(Xt(this,Ap,!1),this.options.persister?this.options.persister(this.options.queryFn,o,this):this.options.queryFn(o)):Promise.reject(new Error(`Missing queryFn: '${this.options.queryHash}'`)),f={fetchOptions:t,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:u};s(f),(g=this.options.behavior)==null||g.onFetch(f,this),Xt(this,Km,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((E=f.fetchOptions)==null?void 0:E.meta))&&Eo(this,Bl,Gd).call(this,{type:"fetch",meta:(w=f.fetchOptions)==null?void 0:w.meta});const p=S=>{var A,k,M,P;KA(S)&&S.silent||Eo(this,Bl,Gd).call(this,{type:"error",error:S}),KA(S)||((k=(A=Ae(this,nl).config).onError)==null||k.call(A,S,this),(P=(M=Ae(this,nl).config).onSettled)==null||P.call(M,this.state.data,S,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return Xt(this,rl,zF({fn:f.fetchFn,abort:r.abort.bind(r),onSuccess:S=>{var A,k,M,P;if(typeof S>"u"){process.env.NODE_ENV!=="production"&&console.error(`Query data cannot be undefined. Please make sure to return a value other than undefined from your query function. Affected query key: ${this.queryHash}`),p(new Error(`${this.queryHash} data is undefined`));return}this.setData(S),(k=(A=Ae(this,nl).config).onSuccess)==null||k.call(A,S,this),(P=(M=Ae(this,nl).config).onSettled)==null||P.call(M,S,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:p,onFail:(S,A)=>{Eo(this,Bl,Gd).call(this,{type:"failed",failureCount:S,error:A})},onPause:()=>{Eo(this,Bl,Gd).call(this,{type:"pause"})},onContinue:()=>{Eo(this,Bl,Gd).call(this,{type:"continue"})},retry:f.options.retry,retryDelay:f.options.retryDelay,networkMode:f.options.networkMode})),Xt(this,bf,Ae(this,rl).promise),Ae(this,bf)}},Vm=new WeakMap,Km=new WeakMap,nl=new WeakMap,bf=new WeakMap,rl=new WeakMap,Ao=new WeakMap,i_=new WeakMap,Ap=new WeakMap,Wm=new WeakSet,RR=function(e){this.options={...Ae(this,i_),...e},this.updateGcTime(this.options.gcTime)},Bl=new WeakSet,Gd=function(e){const t=r=>{switch(e.type){case"failed":return{...r,fetchFailureCount:e.failureCount,fetchFailureReason:e.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:e.meta??null,fetchStatus:VA(this.options.networkMode)?"fetching":"paused",...!r.dataUpdatedAt&&{error:null,status:"pending"}};case"success":return{...r,data:e.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:e.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!e.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const o=e.error;return KA(o)&&o.revert&&Ae(this,Km)?{...Ae(this,Km),fetchStatus:"idle"}:{...r,error:o,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:o,fetchStatus:"idle",status:"error"};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...e.state}}};this.state=t(this.state),Pa.batch(()=>{Ae(this,Ao).forEach(r=>{r.onQueryUpdate()}),Ae(this,nl).notify({query:this,type:"updated",action:e})})},qH);function Bee(n){const e=typeof n.initialData=="function"?n.initialData():n.initialData,t=typeof e<"u",r=t?typeof n.initialDataUpdatedAt=="function"?n.initialDataUpdatedAt():n.initialDataUpdatedAt:0;return{data:e,dataUpdateCount:0,dataUpdatedAt:t?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:t?"success":"pending",fetchStatus:"idle"}}var jee=(GH=class extends Mw{constructor(e={}){super();Pn(this,Bu,void 0);this.config=e,Xt(this,Bu,new Map)}build(e,t,r){const o=t.queryKey,s=t.queryHash??zA(o,t);let u=this.get(s);return u||(u=new $ee({cache:this,queryKey:o,queryHash:s,options:e.defaultQueryOptions(t),state:r,defaultOptions:e.getQueryDefaults(o)}),this.add(u)),u}add(e){Ae(this,Bu).has(e.queryHash)||(Ae(this,Bu).set(e.queryHash,e),this.notify({type:"added",query:e}))}remove(e){const t=Ae(this,Bu).get(e.queryHash);t&&(e.destroy(),t===e&&Ae(this,Bu).delete(e.queryHash),this.notify({type:"removed",query:e}))}clear(){Pa.batch(()=>{this.getAll().forEach(e=>{this.remove(e)})})}get(e){return Ae(this,Bu).get(e)}getAll(){return[...Ae(this,Bu).values()]}find(e){const t={exact:!0,...e};return this.getAll().find(r=>DF(t,r))}findAll(e={}){const t=this.getAll();return Object.keys(e).length>0?t.filter(r=>DF(e,r)):t}notify(e){Pa.batch(()=>{this.listeners.forEach(t=>{t(e)})})}onFocus(){Pa.batch(()=>{this.getAll().forEach(e=>{e.onFocus()})})}onOnline(){Pa.batch(()=>{this.getAll().forEach(e=>{e.onOnline()})})}},Bu=new WeakMap,GH),zee=(VH=class extends qF{constructor(e){super();Pn(this,zu);Pn(this,ju,void 0);Pn(this,o_,void 0);Pn(this,Ms,void 0);Pn(this,Ym,void 0);this.mutationId=e.mutationId,Xt(this,o_,e.defaultOptions),Xt(this,Ms,e.mutationCache),Xt(this,ju,[]),this.state=e.state||qee(),this.setOptions(e.options),this.scheduleGc()}setOptions(e){this.options={...Ae(this,o_),...e},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(e){Ae(this,ju).includes(e)||(Ae(this,ju).push(e),this.clearGcTimeout(),Ae(this,Ms).notify({type:"observerAdded",mutation:this,observer:e}))}removeObserver(e){Xt(this,ju,Ae(this,ju).filter(t=>t!==e)),this.scheduleGc(),Ae(this,Ms).notify({type:"observerRemoved",mutation:this,observer:e})}optionalRemove(){Ae(this,ju).length||(this.state.status==="pending"?this.scheduleGc():Ae(this,Ms).remove(this))}continue(){var e;return((e=Ae(this,Ym))==null?void 0:e.continue())??this.execute(this.state.variables)}async execute(e){var o,s,u,f,p,v,g,E,w,S,A,k,M,P,L,j,U,H,W,Q;const t=()=>(Xt(this,Ym,zF({fn:()=>this.options.mutationFn?this.options.mutationFn(e):Promise.reject(new Error("No mutationFn found")),onFail:(Te,Ve)=>{Eo(this,zu,Ih).call(this,{type:"failed",failureCount:Te,error:Ve})},onPause:()=>{Eo(this,zu,Ih).call(this,{type:"pause"})},onContinue:()=>{Eo(this,zu,Ih).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),Ae(this,Ym).promise),r=this.state.status==="pending";try{if(!r){Eo(this,zu,Ih).call(this,{type:"pending",variables:e}),await((s=(o=Ae(this,Ms).config).onMutate)==null?void 0:s.call(o,e,this));const Ve=await((f=(u=this.options).onMutate)==null?void 0:f.call(u,e));Ve!==this.state.context&&Eo(this,zu,Ih).call(this,{type:"pending",context:Ve,variables:e})}const Te=await t();return await((v=(p=Ae(this,Ms).config).onSuccess)==null?void 0:v.call(p,Te,e,this.state.context,this)),await((E=(g=this.options).onSuccess)==null?void 0:E.call(g,Te,e,this.state.context)),await((S=(w=Ae(this,Ms).config).onSettled)==null?void 0:S.call(w,Te,null,this.state.variables,this.state.context,this)),await((k=(A=this.options).onSettled)==null?void 0:k.call(A,Te,null,e,this.state.context)),Eo(this,zu,Ih).call(this,{type:"success",data:Te}),Te}catch(Te){try{throw await((P=(M=Ae(this,Ms).config).onError)==null?void 0:P.call(M,Te,e,this.state.context,this)),await((j=(L=this.options).onError)==null?void 0:j.call(L,Te,e,this.state.context)),await((H=(U=Ae(this,Ms).config).onSettled)==null?void 0:H.call(U,void 0,Te,this.state.variables,this.state.context,this)),await((Q=(W=this.options).onSettled)==null?void 0:Q.call(W,void 0,Te,e,this.state.context)),Te}finally{Eo(this,zu,Ih).call(this,{type:"error",error:Te})}}}},ju=new WeakMap,o_=new WeakMap,Ms=new WeakMap,Ym=new WeakMap,zu=new WeakSet,Ih=function(e){const t=r=>{switch(e.type){case"failed":return{...r,failureCount:e.failureCount,failureReason:e.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:e.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:!VA(this.options.networkMode),status:"pending",variables:e.variables,submittedAt:Date.now()};case"success":return{...r,data:e.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:e.error,failureCount:r.failureCount+1,failureReason:e.error,isPaused:!1,status:"error"}}};this.state=t(this.state),Pa.batch(()=>{Ae(this,ju).forEach(r=>{r.onMutationUpdate(e)}),Ae(this,Ms).notify({mutation:this,type:"updated",action:e})})},VH);function qee(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var Gee=(KH=class extends Mw{constructor(e={}){super();Pn(this,il,void 0);Pn(this,a_,void 0);Pn(this,kp,void 0);this.config=e,Xt(this,il,[]),Xt(this,a_,0)}build(e,t,r){const o=new zee({mutationCache:this,mutationId:++TR(this,a_)._,options:e.defaultMutationOptions(t),state:r});return this.add(o),o}add(e){Ae(this,il).push(e),this.notify({type:"added",mutation:e})}remove(e){Xt(this,il,Ae(this,il).filter(t=>t!==e)),this.notify({type:"removed",mutation:e})}clear(){Pa.batch(()=>{Ae(this,il).forEach(e=>{this.remove(e)})})}getAll(){return Ae(this,il)}find(e){const t={exact:!0,...e};return Ae(this,il).find(r=>LF(t,r))}findAll(e={}){return Ae(this,il).filter(t=>LF(e,t))}notify(e){Pa.batch(()=>{this.listeners.forEach(t=>{t(e)})})}resumePausedMutations(){return Xt(this,kp,(Ae(this,kp)??Promise.resolve()).then(()=>{const e=Ae(this,il).filter(t=>t.state.isPaused);return Pa.batch(()=>e.reduce((t,r)=>t.then(()=>r.continue().catch($l)),Promise.resolve()))}).then(()=>{Xt(this,kp,void 0)})),Ae(this,kp)}},il=new WeakMap,a_=new WeakMap,kp=new WeakMap,KH);function Vee(n){return{onFetch:(e,t)=>{const r=async()=>{var A,k,M,P,L;const o=e.options,s=(M=(k=(A=e.fetchOptions)==null?void 0:A.meta)==null?void 0:k.fetchMore)==null?void 0:M.direction,u=((P=e.state.data)==null?void 0:P.pages)||[],f=((L=e.state.data)==null?void 0:L.pageParams)||[],p={pages:[],pageParams:[]};let v=!1;const g=j=>{Object.defineProperty(j,"signal",{enumerable:!0,get:()=>(e.signal.aborted?v=!0:e.signal.addEventListener("abort",()=>{v=!0}),e.signal)})},E=e.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${e.options.queryHash}'`))),w=async(j,U,H)=>{if(v)return Promise.reject();if(U==null&&j.pages.length)return Promise.resolve(j);const W={queryKey:e.queryKey,pageParam:U,direction:H?"backward":"forward",meta:e.options.meta};g(W);const Q=await E(W),{maxPages:Te}=e.options,Ve=H?Dee:Pee;return{pages:Ve(j.pages,Q,Te),pageParams:Ve(j.pageParams,U,Te)}};let S;if(s&&u.length){const j=s==="backward",U=j?Kee:GF,H={pages:u,pageParams:f},W=U(o,H);S=await w(H,W,j)}else{S=await w(p,f[0]??o.initialPageParam);const j=n??u.length;for(let U=1;U<j;U++){const H=GF(o,S);S=await w(S,H)}}return S};e.options.persister?e.fetchFn=()=>{var o,s;return(s=(o=e.options).persister)==null?void 0:s.call(o,r,{queryKey:e.queryKey,meta:e.options.meta,signal:e.signal},t)}:e.fetchFn=r}}}function GF(n,{pages:e,pageParams:t}){const r=e.length-1;return n.getNextPageParam(e[r],e,t[r],t)}function Kee(n,{pages:e,pageParams:t}){var r;return(r=n.getPreviousPageParam)==null?void 0:r.call(n,e[0],e,t[0],t)}var Wee=(WH=class{constructor(n={}){Pn(this,ro,void 0);Pn(this,Cf,void 0);Pn(this,wf,void 0);Pn(this,Qm,void 0);Pn(this,Xm,void 0);Pn(this,Sf,void 0);Pn(this,Jm,void 0);Pn(this,Zm,void 0);Xt(this,ro,n.queryCache||new jee),Xt(this,Cf,n.mutationCache||new Gee),Xt(this,wf,n.defaultOptions||{}),Xt(this,Qm,new Map),Xt(this,Xm,new Map),Xt(this,Sf,0)}mount(){TR(this,Sf)._++,Ae(this,Sf)===1&&(Xt(this,Jm,GA.subscribe(()=>{GA.isFocused()&&(this.resumePausedMutations(),Ae(this,ro).onFocus())})),Xt(this,Zm,Dw.subscribe(()=>{Dw.isOnline()&&(this.resumePausedMutations(),Ae(this,ro).onOnline())})))}unmount(){var n,e;TR(this,Sf)._--,Ae(this,Sf)===0&&((n=Ae(this,Jm))==null||n.call(this),Xt(this,Jm,void 0),(e=Ae(this,Zm))==null||e.call(this),Xt(this,Zm,void 0))}isFetching(n){return Ae(this,ro).findAll({...n,fetchStatus:"fetching"}).length}isMutating(n){return Ae(this,Cf).findAll({...n,status:"pending"}).length}getQueryData(n){var e;return(e=Ae(this,ro).find({queryKey:n}))==null?void 0:e.state.data}ensureQueryData(n){const e=this.getQueryData(n.queryKey);return e?Promise.resolve(e):this.fetchQuery(n)}getQueriesData(n){return this.getQueryCache().findAll(n).map(({queryKey:e,state:t})=>{const r=t.data;return[e,r]})}setQueryData(n,e,t){const r=Ae(this,ro).find({queryKey:n}),o=r==null?void 0:r.state.data,s=Iee(e,o);if(typeof s>"u")return;const u=this.defaultQueryOptions({queryKey:n});return Ae(this,ro).build(this,u).setData(s,{...t,manual:!0})}setQueriesData(n,e,t){return Pa.batch(()=>this.getQueryCache().findAll(n).map(({queryKey:r})=>[r,this.setQueryData(r,e,t)]))}getQueryState(n){var e;return(e=Ae(this,ro).find({queryKey:n}))==null?void 0:e.state}removeQueries(n){const e=Ae(this,ro);Pa.batch(()=>{e.findAll(n).forEach(t=>{e.remove(t)})})}resetQueries(n,e){const t=Ae(this,ro),r={type:"active",...n};return Pa.batch(()=>(t.findAll(n).forEach(o=>{o.reset()}),this.refetchQueries(r,e)))}cancelQueries(n={},e={}){const t={revert:!0,...e},r=Pa.batch(()=>Ae(this,ro).findAll(n).map(o=>o.cancel(t)));return Promise.all(r).then($l).catch($l)}invalidateQueries(n={},e={}){return Pa.batch(()=>{if(Ae(this,ro).findAll(n).forEach(r=>{r.invalidate()}),n.refetchType==="none")return Promise.resolve();const t={...n,type:n.refetchType??n.type??"active"};return this.refetchQueries(t,e)})}refetchQueries(n={},e){const t={...e,cancelRefetch:(e==null?void 0:e.cancelRefetch)??!0},r=Pa.batch(()=>Ae(this,ro).findAll(n).filter(o=>!o.isDisabled()).map(o=>{let s=o.fetch(void 0,t);return t.throwOnError||(s=s.catch($l)),o.state.fetchStatus==="paused"?Promise.resolve():s}));return Promise.all(r).then($l)}fetchQuery(n){const e=this.defaultQueryOptions(n);typeof e.retry>"u"&&(e.retry=!1);const t=Ae(this,ro).build(this,e);return t.isStaleByTime(e.staleTime)?t.fetch(e):Promise.resolve(t.state.data)}prefetchQuery(n){return this.fetchQuery(n).then($l).catch($l)}fetchInfiniteQuery(n){return n.behavior=Vee(n.pages),this.fetchQuery(n)}prefetchInfiniteQuery(n){return this.fetchInfiniteQuery(n).then($l).catch($l)}resumePausedMutations(){return Ae(this,Cf).resumePausedMutations()}getQueryCache(){return Ae(this,ro)}getMutationCache(){return Ae(this,Cf)}getDefaultOptions(){return Ae(this,wf)}setDefaultOptions(n){Xt(this,wf,n)}setQueryDefaults(n,e){Ae(this,Qm).set(e_(n),{queryKey:n,defaultOptions:e})}getQueryDefaults(n){const e=[...Ae(this,Qm).values()];let t={};return e.forEach(r=>{t_(n,r.queryKey)&&(t={...t,...r.defaultOptions})}),t}setMutationDefaults(n,e){Ae(this,Xm).set(e_(n),{mutationKey:n,defaultOptions:e})}getMutationDefaults(n){const e=[...Ae(this,Xm).values()];let t={};return e.forEach(r=>{t_(n,r.mutationKey)&&(t={...t,...r.defaultOptions})}),t}defaultQueryOptions(n){if(n!=null&&n._defaulted)return n;const e={...Ae(this,wf).queries,...(n==null?void 0:n.queryKey)&&this.getQueryDefaults(n.queryKey),...n,_defaulted:!0};return e.queryHash||(e.queryHash=zA(e.queryKey,e)),typeof e.refetchOnReconnect>"u"&&(e.refetchOnReconnect=e.networkMode!=="always"),typeof e.throwOnError>"u"&&(e.throwOnError=!!e.suspense),typeof e.networkMode>"u"&&e.persister&&(e.networkMode="offlineFirst"),e}defaultMutationOptions(n){return n!=null&&n._defaulted?n:{...Ae(this,wf).mutations,...(n==null?void 0:n.mutationKey)&&this.getMutationDefaults(n.mutationKey),...n,_defaulted:!0}}clear(){Ae(this,ro).clear(),Ae(this,Cf).clear()}},ro=new WeakMap,Cf=new WeakMap,wf=new WeakMap,Qm=new WeakMap,Xm=new WeakMap,Sf=new WeakMap,Jm=new WeakMap,Zm=new WeakMap,WH),VF=F.createContext(void 0),Yee=n=>{const e=F.useContext(VF);if(n)return n;if(!e)throw new Error("No QueryClient set, use QueryClientProvider to set one");return e},Qee=({client:n,children:e})=>(F.useEffect(()=>(n.mount(),()=>{n.unmount()}),[n]),F.createElement(VF.Provider,{value:n},e));function Xee(n,e){const t={appKey:n.key,manifest:n,config:{environment:"development",endpoints:{}}},r=new G2(t,{provider:e.modules.app,event:e.modules.event}),o=r.initialize();return{appModule:r,appModuleScript:o}}function Jee({app:n,kind:e}){const t=Yee();e=e??"widget";const{setCurrentApp:r,clearCurrentApp:o}=MF(),s=x0(),[u,f]=F.useState(null),[p,v]=F.useState(!1),g=(S,A)=>{s.modules.event.dispatchEvent(S,new CustomEvent(S,A))};function E(S){const{appModule:A,appModuleScript:k}=Xee(n,s),[M]=window.location.pathname.match(/\/?apps\/[a-z|-]+(\/)?/g)??[""];return oa(k).then(P=>{const L=P.script;(L.renderApp??L.default)(S,{query:t,fusion:s,env:{manifest:n,config:{environment:"development",endpoints:{}},basename:M,props:{}}}),e==="app"&&r(n.key)}),A}F.useEffect(()=>{var M;if(f(null),!n){g("onAppInitializeFailed",{detail:"App not found"}),f(new Error("Selected application does not exist"));return}v(!0);const S=document.createElement("div");S.style.height="30%",(M=w.current)==null||M.appendChild(S);const A=E(S);v(!1);const k=w.current;return()=>{try{k==null||k.removeChild(S)}catch{}A.dispose(),o()}},[n]);const w=F.useRef(null);return se.jsxs("div",{ref:w,children:[p&&se.jsx(Tw,{text:`Loading ${e==="app"?"application":"widget"}`}),u&&se.jsx(jA,{error:u})]})}const Zee=()=>{const{appKey:n}=zZ(),{apps:e}=PF({includeHidden:!0}),t=F.useMemo(()=>e==null?void 0:e.find(r=>r.key===n),[n,e]);return e?t?se.jsx(Jee,{app:t,kind:"app"}):se.jsx(jA,{error:new Error("App not found")}):se.jsx(Tw,{text:"Loading apps..."})},ete={Title:Dt.div`
377
+ display: flex;
378
+ align-items: center;
379
+ gap: 0.75rem;
380
+ font-size: 1rem;
381
+ font-weight: 500;
382
+ margin-left: 1.5rem;
383
+ `},tte=()=>{const{currentApp:n}=MF(),{event:e}=x0().modules,[t,r]=F.useState(!1),o=F.useRef(null),[s,u]=F.useState(localStorage.getItem("roma__density")??"comfortable"),f=p=>{localStorage.setItem("roma__density",p),u(p);const v=new CustomEvent("onDensityChanged",{detail:p});e.dispatchEvent("onDensityChanged",v)};return se.jsxs(Du,{id:"cli-top-bar",sticky:!1,style:{padding:0,height:48},children:[se.jsx(Du.Header,{children:se.jsxs(ete.Title,{children:[se.jsx(el,{data:PQ}),se.jsx("span",{children:"Roma"})]})}),se.jsxs(Du.CustomContent,{children:["Dev Portal: ",(n==null?void 0:n.appKey)??""]}),se.jsxs(Du.Actions,{children:[se.jsx(pf,{onClick:()=>r(!0),ref:o,variant:"ghost_icon",children:se.jsx(el,{data:BQ})}),se.jsx(Lu,{onClose:()=>r(!1),anchorEl:o.current,open:t,children:se.jsxs(Lu.Section,{title:"Density",children:[se.jsx(Lu.Item,{active:s==="comfortable",onClick:()=>f("comfortable"),children:"Comfortable"}),se.jsx(Lu.Item,{active:s==="compact",onClick:()=>f("compact"),children:"Compact"})]})})]})]})},nte=({setOpen:n})=>se.jsxs(no,{onToggle:e=>n(e),children:[se.jsxs(no.Content,{children:[se.jsx(no.Toggle,{}),se.jsx(wA,{size:"2",color:"light",style:{marginBlockEnd:0}}),se.jsx(no.Link,{as:$A,label:"Home",icon:DQ,to:"/",children:"Home"})]}),se.jsx(no.Footer,{children:se.jsx(wA,{size:"2",color:"light",style:{marginBlockEnd:0}})})]}),KF={NavigationContainer:Dt.div`
384
+ display: grid;
385
+ grid-template-columns: ${n=>n.open?"286px 1fr 448px":"86px 1fr 448px"};
386
+ grid-column-gap: 24px;
387
+ `,RootContainer:Dt.div`
388
+ display: grid;
389
+ grid-template-columns: 1fr;
390
+ grid-template-rows: 48px 1fr;
391
+ height: calc(100vh);
392
+ `},rte=()=>{const[n,e]=F.useState(!1),{isLoading:t}=PF();return t?se.jsx(Tw,{text:"Loading apps..."}):se.jsxs(KF.RootContainer,{children:[se.jsx(tte,{}),se.jsxs(KF.NavigationContainer,{open:n,children:[se.jsx(nte,{setOpen:e}),se.jsx("div",{style:{paddingTop:"32px"},children:se.jsx(oee,{})})]})]})};var WA={exports:{}},rr={};/** @license React v16.13.1
393
+ * react-is.production.min.js
394
+ *
395
+ * Copyright (c) Facebook, Inc. and its affiliates.
396
+ *
397
+ * This source code is licensed under the MIT license found in the
398
+ * LICENSE file in the root directory of this source tree.
399
+ */var WF;function ite(){if(WF)return rr;WF=1;var n=typeof Symbol=="function"&&Symbol.for,e=n?Symbol.for("react.element"):60103,t=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,f=n?Symbol.for("react.context"):60110,p=n?Symbol.for("react.async_mode"):60111,v=n?Symbol.for("react.concurrent_mode"):60111,g=n?Symbol.for("react.forward_ref"):60112,E=n?Symbol.for("react.suspense"):60113,w=n?Symbol.for("react.suspense_list"):60120,S=n?Symbol.for("react.memo"):60115,A=n?Symbol.for("react.lazy"):60116,k=n?Symbol.for("react.block"):60121,M=n?Symbol.for("react.fundamental"):60117,P=n?Symbol.for("react.responder"):60118,L=n?Symbol.for("react.scope"):60119;function j(H){if(typeof H=="object"&&H!==null){var W=H.$$typeof;switch(W){case e:switch(H=H.type,H){case p:case v:case r:case s:case o:case E:return H;default:switch(H=H&&H.$$typeof,H){case f:case g:case A:case S:case u:return H;default:return W}}case t:return W}}}function U(H){return j(H)===v}return rr.AsyncMode=p,rr.ConcurrentMode=v,rr.ContextConsumer=f,rr.ContextProvider=u,rr.Element=e,rr.ForwardRef=g,rr.Fragment=r,rr.Lazy=A,rr.Memo=S,rr.Portal=t,rr.Profiler=s,rr.StrictMode=o,rr.Suspense=E,rr.isAsyncMode=function(H){return U(H)||j(H)===p},rr.isConcurrentMode=U,rr.isContextConsumer=function(H){return j(H)===f},rr.isContextProvider=function(H){return j(H)===u},rr.isElement=function(H){return typeof H=="object"&&H!==null&&H.$$typeof===e},rr.isForwardRef=function(H){return j(H)===g},rr.isFragment=function(H){return j(H)===r},rr.isLazy=function(H){return j(H)===A},rr.isMemo=function(H){return j(H)===S},rr.isPortal=function(H){return j(H)===t},rr.isProfiler=function(H){return j(H)===s},rr.isStrictMode=function(H){return j(H)===o},rr.isSuspense=function(H){return j(H)===E},rr.isValidElementType=function(H){return typeof H=="string"||typeof H=="function"||H===r||H===v||H===s||H===o||H===E||H===w||typeof H=="object"&&H!==null&&(H.$$typeof===A||H.$$typeof===S||H.$$typeof===u||H.$$typeof===f||H.$$typeof===g||H.$$typeof===M||H.$$typeof===P||H.$$typeof===L||H.$$typeof===k)},rr.typeOf=j,rr}var ir={};/** @license React v16.13.1
400
+ * react-is.development.js
401
+ *
402
+ * Copyright (c) Facebook, Inc. and its affiliates.
403
+ *
404
+ * This source code is licensed under the MIT license found in the
405
+ * LICENSE file in the root directory of this source tree.
406
+ */var YF;function ote(){return YF||(YF=1,process.env.NODE_ENV!=="production"&&function(){var n=typeof Symbol=="function"&&Symbol.for,e=n?Symbol.for("react.element"):60103,t=n?Symbol.for("react.portal"):60106,r=n?Symbol.for("react.fragment"):60107,o=n?Symbol.for("react.strict_mode"):60108,s=n?Symbol.for("react.profiler"):60114,u=n?Symbol.for("react.provider"):60109,f=n?Symbol.for("react.context"):60110,p=n?Symbol.for("react.async_mode"):60111,v=n?Symbol.for("react.concurrent_mode"):60111,g=n?Symbol.for("react.forward_ref"):60112,E=n?Symbol.for("react.suspense"):60113,w=n?Symbol.for("react.suspense_list"):60120,S=n?Symbol.for("react.memo"):60115,A=n?Symbol.for("react.lazy"):60116,k=n?Symbol.for("react.block"):60121,M=n?Symbol.for("react.fundamental"):60117,P=n?Symbol.for("react.responder"):60118,L=n?Symbol.for("react.scope"):60119;function j(at){return typeof at=="string"||typeof at=="function"||at===r||at===v||at===s||at===o||at===E||at===w||typeof at=="object"&&at!==null&&(at.$$typeof===A||at.$$typeof===S||at.$$typeof===u||at.$$typeof===f||at.$$typeof===g||at.$$typeof===M||at.$$typeof===P||at.$$typeof===L||at.$$typeof===k)}function U(at){if(typeof at=="object"&&at!==null){var Xn=at.$$typeof;switch(Xn){case e:var yr=at.type;switch(yr){case p:case v:case r:case s:case o:case E:return yr;default:var or=yr&&yr.$$typeof;switch(or){case f:case g:case A:case S:case u:return or;default:return Xn}}case t:return Xn}}}var H=p,W=v,Q=f,Te=u,Ve=e,ot=g,Me=r,je=A,te=S,ee=t,ye=s,ve=o,pe=E,K=!1;function ge(at){return K||(K=!0,console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")),B(at)||U(at)===p}function B(at){return U(at)===v}function ne(at){return U(at)===f}function ke(at){return U(at)===u}function ut(at){return typeof at=="object"&&at!==null&&at.$$typeof===e}function De(at){return U(at)===g}function At(at){return U(at)===r}function Lt(at){return U(at)===A}function zt(at){return U(at)===S}function _t(at){return U(at)===t}function gn(at){return U(at)===s}function Lr(at){return U(at)===o}function jn(at){return U(at)===E}ir.AsyncMode=H,ir.ConcurrentMode=W,ir.ContextConsumer=Q,ir.ContextProvider=Te,ir.Element=Ve,ir.ForwardRef=ot,ir.Fragment=Me,ir.Lazy=je,ir.Memo=te,ir.Portal=ee,ir.Profiler=ye,ir.StrictMode=ve,ir.Suspense=pe,ir.isAsyncMode=ge,ir.isConcurrentMode=B,ir.isContextConsumer=ne,ir.isContextProvider=ke,ir.isElement=ut,ir.isForwardRef=De,ir.isFragment=At,ir.isLazy=Lt,ir.isMemo=zt,ir.isPortal=_t,ir.isProfiler=gn,ir.isStrictMode=Lr,ir.isSuspense=jn,ir.isValidElementType=j,ir.typeOf=U}()),ir}process.env.NODE_ENV==="production"?WA.exports=ite():WA.exports=ote();var ate=WA.exports,QF=ate,ste={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},lte={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},XF={};XF[QF.ForwardRef]=ste,XF[QF.Memo]=lte;function JF(n,e,t){if(t===void 0&&(t=Error),!n)throw new t(e)}var Nn;(function(n){n[n.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",n[n.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",n[n.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",n[n.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",n[n.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",n[n.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",n[n.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",n[n.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",n[n.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",n[n.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",n[n.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",n[n.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",n[n.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",n[n.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",n[n.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",n[n.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",n[n.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",n[n.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",n[n.INVALID_TAG=23]="INVALID_TAG",n[n.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",n[n.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",n[n.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(Nn||(Nn={}));var Dr;(function(n){n[n.literal=0]="literal",n[n.argument=1]="argument",n[n.number=2]="number",n[n.date=3]="date",n[n.time=4]="time",n[n.select=5]="select",n[n.plural=6]="plural",n[n.pound=7]="pound",n[n.tag=8]="tag"})(Dr||(Dr={}));var jm;(function(n){n[n.number=0]="number",n[n.dateTime=1]="dateTime"})(jm||(jm={}));function ZF(n){return n.type===Dr.literal}function ute(n){return n.type===Dr.argument}function eH(n){return n.type===Dr.number}function tH(n){return n.type===Dr.date}function nH(n){return n.type===Dr.time}function rH(n){return n.type===Dr.select}function iH(n){return n.type===Dr.plural}function cte(n){return n.type===Dr.pound}function oH(n){return n.type===Dr.tag}function aH(n){return!!(n&&typeof n=="object"&&n.type===jm.number)}function YA(n){return!!(n&&typeof n=="object"&&n.type===jm.dateTime)}var sH=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,dte=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function fte(n){var e={};return n.replace(dte,function(t){var r=t.length;switch(t[0]){case"G":e.era=r===4?"long":r===5?"narrow":"short";break;case"y":e.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=r===4?"short":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][r-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][r-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][r-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][r-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][r-1];break;case"s":e.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),e}var hte=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function pte(n){if(n.length===0)throw new Error("Number skeleton cannot be empty");for(var e=n.split(hte).filter(function(w){return w.length>0}),t=[],r=0,o=e;r<o.length;r++){var s=o[r],u=s.split("/");if(u.length===0)throw new Error("Invalid number skeleton");for(var f=u[0],p=u.slice(1),v=0,g=p;v<g.length;v++){var E=g[v];if(E.length===0)throw new Error("Invalid number skeleton")}t.push({stem:f,options:p})}return t}function vte(n){return n.replace(/^(.*?)-/,"")}var lH=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,uH=/^(@+)?(\+|#+)?[rs]?$/g,mte=/(\*)(0+)|(#+)(0+)|(0+)/g,cH=/^(0+)$/;function dH(n){var e={};return n[n.length-1]==="r"?e.roundingPriority="morePrecision":n[n.length-1]==="s"&&(e.roundingPriority="lessPrecision"),n.replace(uH,function(t,r,o){return typeof o!="string"?(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length):o==="+"?e.minimumSignificantDigits=r.length:r[0]==="#"?e.maximumSignificantDigits=r.length:(e.minimumSignificantDigits=r.length,e.maximumSignificantDigits=r.length+(typeof o=="string"?o.length:0)),""}),e}function fH(n){switch(n){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function gte(n){var e;if(n[0]==="E"&&n[1]==="E"?(e={notation:"engineering"},n=n.slice(2)):n[0]==="E"&&(e={notation:"scientific"},n=n.slice(1)),e){var t=n.slice(0,2);if(t==="+!"?(e.signDisplay="always",n=n.slice(2)):t==="+?"&&(e.signDisplay="exceptZero",n=n.slice(2)),!cH.test(n))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=n.length}return e}function hH(n){var e={},t=fH(n);return t||e}function yte(n){for(var e={},t=0,r=n;t<r.length;t++){var o=r[t];switch(o.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=o.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=vte(o.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=Ye(Ye(Ye({},e),{notation:"scientific"}),o.options.reduce(function(p,v){return Ye(Ye({},p),hH(v))},{}));continue;case"engineering":e=Ye(Ye(Ye({},e),{notation:"engineering"}),o.options.reduce(function(p,v){return Ye(Ye({},p),hH(v))},{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(o.options[0]);continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(mte,function(p,v,g,E,w,S){if(v)e.minimumIntegerDigits=g.length;else{if(E&&w)throw new Error("We currently do not support maximum integer digits");if(S)throw new Error("We currently do not support exact integer digits")}return""});continue}if(cH.test(o.stem)){e.minimumIntegerDigits=o.stem.length;continue}if(lH.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(lH,function(p,v,g,E,w,S){return g==="*"?e.minimumFractionDigits=v.length:E&&E[0]==="#"?e.maximumFractionDigits=E.length:w&&S?(e.minimumFractionDigits=w.length,e.maximumFractionDigits=w.length+S.length):(e.minimumFractionDigits=v.length,e.maximumFractionDigits=v.length),""});var s=o.options[0];s==="w"?e=Ye(Ye({},e),{trailingZeroDisplay:"stripIfInteger"}):s&&(e=Ye(Ye({},e),dH(s)));continue}if(uH.test(o.stem)){e=Ye(Ye({},e),dH(o.stem));continue}var u=fH(o.stem);u&&(e=Ye(Ye({},e),u));var f=gte(o.stem);f&&(e=Ye(Ye({},e),f))}return e}var Lw={"001":["H","h"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["H","h","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["H","hB","h","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["H","h","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["H","h","hB","hb"],CU:["H","h","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["H","hB","h","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["H","h","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["H","h","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["H","h","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["H","h","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["H","hB","h","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["H","h","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["H","h","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["H","h","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"es-BO":["H","h","hB","hb"],"es-BR":["H","h","hB","hb"],"es-EC":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"es-PE":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function _te(n,e){for(var t="",r=0;r<n.length;r++){var o=n.charAt(r);if(o==="j"){for(var s=0;r+1<n.length&&n.charAt(r+1)===o;)s++,r++;var u=1+(s&1),f=s<2?1:3+(s>>1),p="a",v=Ete(e);for((v=="H"||v=="k")&&(f=0);f-- >0;)t+=p;for(;u-- >0;)t=v+t}else o==="J"?t+="H":t+=o}return t}function Ete(n){var e=n.hourCycle;if(e===void 0&&n.hourCycles&&n.hourCycles.length&&(e=n.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var t=n.language,r;t!=="root"&&(r=n.maximize().region);var o=Lw[r||""]||Lw[t||""]||Lw["".concat(t,"-001")]||Lw["001"];return o[0]}var QA,bte=new RegExp("^".concat(sH.source,"*")),Cte=new RegExp("".concat(sH.source,"*$"));function Dn(n,e){return{start:n,end:e}}var wte=!!String.prototype.startsWith&&"_a".startsWith("a",1),Ste=!!String.fromCodePoint,Tte=!!Object.fromEntries,Rte=!!String.prototype.codePointAt,xte=!!String.prototype.trimStart,Ate=!!String.prototype.trimEnd,kte=!!Number.isSafeInteger,Ite=kte?Number.isSafeInteger:function(n){return typeof n=="number"&&isFinite(n)&&Math.floor(n)===n&&Math.abs(n)<=9007199254740991},XA=!0;try{var Ote=gH("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");XA=((QA=Ote.exec("a"))===null||QA===void 0?void 0:QA[0])==="a"}catch{XA=!1}var pH=wte?function(e,t,r){return e.startsWith(t,r)}:function(e,t,r){return e.slice(r,r+t.length)===t},JA=Ste?String.fromCodePoint:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var r="",o=e.length,s=0,u;o>s;){if(u=e[s++],u>1114111)throw RangeError(u+" is not a valid code point");r+=u<65536?String.fromCharCode(u):String.fromCharCode(((u-=65536)>>10)+55296,u%1024+56320)}return r},vH=Tte?Object.fromEntries:function(e){for(var t={},r=0,o=e;r<o.length;r++){var s=o[r],u=s[0],f=s[1];t[u]=f}return t},mH=Rte?function(e,t){return e.codePointAt(t)}:function(e,t){var r=e.length;if(!(t<0||t>=r)){var o=e.charCodeAt(t),s;return o<55296||o>56319||t+1===r||(s=e.charCodeAt(t+1))<56320||s>57343?o:(o-55296<<10)+(s-56320)+65536}},Nte=xte?function(e){return e.trimStart()}:function(e){return e.replace(bte,"")},Mte=Ate?function(e){return e.trimEnd()}:function(e){return e.replace(Cte,"")};function gH(n,e){return new RegExp(n,e)}var ZA;if(XA){var yH=gH("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");ZA=function(e,t){var r;yH.lastIndex=t;var o=yH.exec(e);return(r=o[1])!==null&&r!==void 0?r:""}}else ZA=function(e,t){for(var r=[];;){var o=mH(e,t);if(o===void 0||_H(o)||Ute(o))break;r.push(o),t+=o>=65536?2:1}return JA.apply(void 0,r)};var Pte=function(){function n(e,t){t===void 0&&(t={}),this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}return n.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},n.prototype.parseMessage=function(e,t,r){for(var o=[];!this.isEOF();){var s=this.char();if(s===123){var u=this.parseArgument(e,r);if(u.err)return u;o.push(u.val)}else{if(s===125&&e>0)break;if(s===35&&(t==="plural"||t==="selectordinal")){var f=this.clonePosition();this.bump(),o.push({type:Dr.pound,location:Dn(f,this.clonePosition())})}else if(s===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(Nn.UNMATCHED_CLOSING_TAG,Dn(this.clonePosition(),this.clonePosition()))}else if(s===60&&!this.ignoreTag&&ek(this.peek()||0)){var u=this.parseTag(e,t);if(u.err)return u;o.push(u.val)}else{var u=this.parseLiteral(e,t);if(u.err)return u;o.push(u.val)}}}return{val:o,err:null}},n.prototype.parseTag=function(e,t){var r=this.clonePosition();this.bump();var o=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Dr.literal,value:"<".concat(o,"/>"),location:Dn(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var s=this.parseMessage(e+1,t,!0);if(s.err)return s;var u=s.val,f=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!ek(this.char()))return this.error(Nn.INVALID_TAG,Dn(f,this.clonePosition()));var p=this.clonePosition(),v=this.parseTagName();return o!==v?this.error(Nn.UNMATCHED_CLOSING_TAG,Dn(p,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Dr.tag,value:o,children:u,location:Dn(r,this.clonePosition())},err:null}:this.error(Nn.INVALID_TAG,Dn(f,this.clonePosition())))}else return this.error(Nn.UNCLOSED_TAG,Dn(r,this.clonePosition()))}else return this.error(Nn.INVALID_TAG,Dn(r,this.clonePosition()))},n.prototype.parseTagName=function(){var e=this.offset();for(this.bump();!this.isEOF()&&Lte(this.char());)this.bump();return this.message.slice(e,this.offset())},n.prototype.parseLiteral=function(e,t){for(var r=this.clonePosition(),o="";;){var s=this.tryParseQuote(t);if(s){o+=s;continue}var u=this.tryParseUnquoted(e,t);if(u){o+=u;continue}var f=this.tryParseLeftAngleBracket();if(f){o+=f;continue}break}var p=Dn(r,this.clonePosition());return{val:{type:Dr.literal,value:o,location:p},err:null}},n.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!Dte(this.peek()||0))?(this.bump(),"<"):null},n.prototype.tryParseQuote=function(e){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(e==="plural"||e==="selectordinal")break;return null;default:return null}this.bump();var t=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)t.push(39),this.bump();else{this.bump();break}else t.push(r);this.bump()}return JA.apply(void 0,t)},n.prototype.tryParseUnquoted=function(e,t){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(t==="plural"||t==="selectordinal")||r===125&&e>0?null:(this.bump(),JA(r))},n.prototype.parseArgument=function(e,t){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Nn.EXPECT_ARGUMENT_CLOSING_BRACE,Dn(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(Nn.EMPTY_ARGUMENT,Dn(r,this.clonePosition()));var o=this.parseIdentifierIfPossible().value;if(!o)return this.error(Nn.MALFORMED_ARGUMENT,Dn(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Nn.EXPECT_ARGUMENT_CLOSING_BRACE,Dn(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Dr.argument,value:o,location:Dn(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Nn.EXPECT_ARGUMENT_CLOSING_BRACE,Dn(r,this.clonePosition())):this.parseArgumentOptions(e,t,o,r);default:return this.error(Nn.MALFORMED_ARGUMENT,Dn(r,this.clonePosition()))}},n.prototype.parseIdentifierIfPossible=function(){var e=this.clonePosition(),t=this.offset(),r=ZA(this.message,t),o=t+r.length;this.bumpTo(o);var s=this.clonePosition(),u=Dn(e,s);return{value:r,location:u}},n.prototype.parseArgumentOptions=function(e,t,r,o){var s,u=this.clonePosition(),f=this.parseIdentifierIfPossible().value,p=this.clonePosition();switch(f){case"":return this.error(Nn.EXPECT_ARGUMENT_TYPE,Dn(u,p));case"number":case"date":case"time":{this.bumpSpace();var v=null;if(this.bumpIf(",")){this.bumpSpace();var g=this.clonePosition(),E=this.parseSimpleArgStyleIfPossible();if(E.err)return E;var w=Mte(E.val);if(w.length===0)return this.error(Nn.EXPECT_ARGUMENT_STYLE,Dn(this.clonePosition(),this.clonePosition()));var S=Dn(g,this.clonePosition());v={style:w,styleLocation:S}}var A=this.tryParseArgumentClose(o);if(A.err)return A;var k=Dn(o,this.clonePosition());if(v&&pH(v==null?void 0:v.style,"::",0)){var M=Nte(v.style.slice(2));if(f==="number"){var E=this.parseNumberSkeletonFromString(M,v.styleLocation);return E.err?E:{val:{type:Dr.number,value:r,location:k,style:E.val},err:null}}else{if(M.length===0)return this.error(Nn.EXPECT_DATE_TIME_SKELETON,k);var P=M;this.locale&&(P=_te(M,this.locale));var w={type:jm.dateTime,pattern:P,location:v.styleLocation,parsedOptions:this.shouldParseSkeletons?fte(P):{}},L=f==="date"?Dr.date:Dr.time;return{val:{type:L,value:r,location:k,style:w},err:null}}}return{val:{type:f==="number"?Dr.number:f==="date"?Dr.date:Dr.time,value:r,location:k,style:(s=v==null?void 0:v.style)!==null&&s!==void 0?s:null},err:null}}case"plural":case"selectordinal":case"select":{var j=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Nn.EXPECT_SELECT_ARGUMENT_OPTIONS,Dn(j,Ye({},j)));this.bumpSpace();var U=this.parseIdentifierIfPossible(),H=0;if(f!=="select"&&U.value==="offset"){if(!this.bumpIf(":"))return this.error(Nn.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Dn(this.clonePosition(),this.clonePosition()));this.bumpSpace();var E=this.tryParseDecimalInteger(Nn.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Nn.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(E.err)return E;this.bumpSpace(),U=this.parseIdentifierIfPossible(),H=E.val}var W=this.tryParsePluralOrSelectOptions(e,f,t,U);if(W.err)return W;var A=this.tryParseArgumentClose(o);if(A.err)return A;var Q=Dn(o,this.clonePosition());return f==="select"?{val:{type:Dr.select,value:r,options:vH(W.val),location:Q},err:null}:{val:{type:Dr.plural,value:r,options:vH(W.val),offset:H,pluralType:f==="plural"?"cardinal":"ordinal",location:Q},err:null}}default:return this.error(Nn.INVALID_ARGUMENT_TYPE,Dn(u,p))}},n.prototype.tryParseArgumentClose=function(e){return this.isEOF()||this.char()!==125?this.error(Nn.EXPECT_ARGUMENT_CLOSING_BRACE,Dn(e,this.clonePosition())):(this.bump(),{val:!0,err:null})},n.prototype.parseSimpleArgStyleIfPossible=function(){for(var e=0,t=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var o=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Nn.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Dn(o,this.clonePosition()));this.bump();break}case 123:{e+=1,this.bump();break}case 125:{if(e>0)e-=1;else return{val:this.message.slice(t.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(t.offset,this.offset()),err:null}},n.prototype.parseNumberSkeletonFromString=function(e,t){var r=[];try{r=pte(e)}catch{return this.error(Nn.INVALID_NUMBER_SKELETON,t)}return{val:{type:jm.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?yte(r):{}},err:null}},n.prototype.tryParsePluralOrSelectOptions=function(e,t,r,o){for(var s,u=!1,f=[],p=new Set,v=o.value,g=o.location;;){if(v.length===0){var E=this.clonePosition();if(t!=="select"&&this.bumpIf("=")){var w=this.tryParseDecimalInteger(Nn.EXPECT_PLURAL_ARGUMENT_SELECTOR,Nn.INVALID_PLURAL_ARGUMENT_SELECTOR);if(w.err)return w;g=Dn(E,this.clonePosition()),v=this.message.slice(E.offset,this.offset())}else break}if(p.has(v))return this.error(t==="select"?Nn.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Nn.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,g);v==="other"&&(u=!0),this.bumpSpace();var S=this.clonePosition();if(!this.bumpIf("{"))return this.error(t==="select"?Nn.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Nn.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Dn(this.clonePosition(),this.clonePosition()));var A=this.parseMessage(e+1,t,r);if(A.err)return A;var k=this.tryParseArgumentClose(S);if(k.err)return k;f.push([v,{value:A.val,location:Dn(S,this.clonePosition())}]),p.add(v),this.bumpSpace(),s=this.parseIdentifierIfPossible(),v=s.value,g=s.location}return f.length===0?this.error(t==="select"?Nn.EXPECT_SELECT_ARGUMENT_SELECTOR:Nn.EXPECT_PLURAL_ARGUMENT_SELECTOR,Dn(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!u?this.error(Nn.MISSING_OTHER_CLAUSE,Dn(this.clonePosition(),this.clonePosition())):{val:f,err:null}},n.prototype.tryParseDecimalInteger=function(e,t){var r=1,o=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var s=!1,u=0;!this.isEOF();){var f=this.char();if(f>=48&&f<=57)s=!0,u=u*10+(f-48),this.bump();else break}var p=Dn(o,this.clonePosition());return s?(u*=r,Ite(u)?{val:u,err:null}:this.error(t,p)):this.error(e,p)},n.prototype.offset=function(){return this.position.offset},n.prototype.isEOF=function(){return this.offset()===this.message.length},n.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},n.prototype.char=function(){var e=this.position.offset;if(e>=this.message.length)throw Error("out of bound");var t=mH(this.message,e);if(t===void 0)throw Error("Offset ".concat(e," is at invalid UTF-16 code unit boundary"));return t},n.prototype.error=function(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}},n.prototype.bump=function(){if(!this.isEOF()){var e=this.char();e===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}},n.prototype.bumpIf=function(e){if(pH(this.message,e,this.offset())){for(var t=0;t<e.length;t++)this.bump();return!0}return!1},n.prototype.bumpUntil=function(e){var t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},n.prototype.bumpTo=function(e){if(this.offset()>e)throw Error("targetOffset ".concat(e," must be greater than or equal to the current offset ").concat(this.offset()));for(e=Math.min(e,this.message.length);;){var t=this.offset();if(t===e)break;if(t>e)throw Error("targetOffset ".concat(e," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},n.prototype.bumpSpace=function(){for(;!this.isEOF()&&_H(this.char());)this.bump()},n.prototype.peek=function(){if(this.isEOF())return null;var e=this.char(),t=this.offset(),r=this.message.charCodeAt(t+(e>=65536?2:1));return r??null},n}();function ek(n){return n>=97&&n<=122||n>=65&&n<=90}function Dte(n){return ek(n)||n===47}function Lte(n){return n===45||n===46||n>=48&&n<=57||n===95||n>=97&&n<=122||n>=65&&n<=90||n==183||n>=192&&n<=214||n>=216&&n<=246||n>=248&&n<=893||n>=895&&n<=8191||n>=8204&&n<=8205||n>=8255&&n<=8256||n>=8304&&n<=8591||n>=11264&&n<=12271||n>=12289&&n<=55295||n>=63744&&n<=64975||n>=65008&&n<=65533||n>=65536&&n<=983039}function _H(n){return n>=9&&n<=13||n===32||n===133||n>=8206&&n<=8207||n===8232||n===8233}function Ute(n){return n>=33&&n<=35||n===36||n>=37&&n<=39||n===40||n===41||n===42||n===43||n===44||n===45||n>=46&&n<=47||n>=58&&n<=59||n>=60&&n<=62||n>=63&&n<=64||n===91||n===92||n===93||n===94||n===96||n===123||n===124||n===125||n===126||n===161||n>=162&&n<=165||n===166||n===167||n===169||n===171||n===172||n===174||n===176||n===177||n===182||n===187||n===191||n===215||n===247||n>=8208&&n<=8213||n>=8214&&n<=8215||n===8216||n===8217||n===8218||n>=8219&&n<=8220||n===8221||n===8222||n===8223||n>=8224&&n<=8231||n>=8240&&n<=8248||n===8249||n===8250||n>=8251&&n<=8254||n>=8257&&n<=8259||n===8260||n===8261||n===8262||n>=8263&&n<=8273||n===8274||n===8275||n>=8277&&n<=8286||n>=8592&&n<=8596||n>=8597&&n<=8601||n>=8602&&n<=8603||n>=8604&&n<=8607||n===8608||n>=8609&&n<=8610||n===8611||n>=8612&&n<=8613||n===8614||n>=8615&&n<=8621||n===8622||n>=8623&&n<=8653||n>=8654&&n<=8655||n>=8656&&n<=8657||n===8658||n===8659||n===8660||n>=8661&&n<=8691||n>=8692&&n<=8959||n>=8960&&n<=8967||n===8968||n===8969||n===8970||n===8971||n>=8972&&n<=8991||n>=8992&&n<=8993||n>=8994&&n<=9e3||n===9001||n===9002||n>=9003&&n<=9083||n===9084||n>=9085&&n<=9114||n>=9115&&n<=9139||n>=9140&&n<=9179||n>=9180&&n<=9185||n>=9186&&n<=9254||n>=9255&&n<=9279||n>=9280&&n<=9290||n>=9291&&n<=9311||n>=9472&&n<=9654||n===9655||n>=9656&&n<=9664||n===9665||n>=9666&&n<=9719||n>=9720&&n<=9727||n>=9728&&n<=9838||n===9839||n>=9840&&n<=10087||n===10088||n===10089||n===10090||n===10091||n===10092||n===10093||n===10094||n===10095||n===10096||n===10097||n===10098||n===10099||n===10100||n===10101||n>=10132&&n<=10175||n>=10176&&n<=10180||n===10181||n===10182||n>=10183&&n<=10213||n===10214||n===10215||n===10216||n===10217||n===10218||n===10219||n===10220||n===10221||n===10222||n===10223||n>=10224&&n<=10239||n>=10240&&n<=10495||n>=10496&&n<=10626||n===10627||n===10628||n===10629||n===10630||n===10631||n===10632||n===10633||n===10634||n===10635||n===10636||n===10637||n===10638||n===10639||n===10640||n===10641||n===10642||n===10643||n===10644||n===10645||n===10646||n===10647||n===10648||n>=10649&&n<=10711||n===10712||n===10713||n===10714||n===10715||n>=10716&&n<=10747||n===10748||n===10749||n>=10750&&n<=11007||n>=11008&&n<=11055||n>=11056&&n<=11076||n>=11077&&n<=11078||n>=11079&&n<=11084||n>=11085&&n<=11123||n>=11124&&n<=11125||n>=11126&&n<=11157||n===11158||n>=11159&&n<=11263||n>=11776&&n<=11777||n===11778||n===11779||n===11780||n===11781||n>=11782&&n<=11784||n===11785||n===11786||n===11787||n===11788||n===11789||n>=11790&&n<=11798||n===11799||n>=11800&&n<=11801||n===11802||n===11803||n===11804||n===11805||n>=11806&&n<=11807||n===11808||n===11809||n===11810||n===11811||n===11812||n===11813||n===11814||n===11815||n===11816||n===11817||n>=11818&&n<=11822||n===11823||n>=11824&&n<=11833||n>=11834&&n<=11835||n>=11836&&n<=11839||n===11840||n===11841||n===11842||n>=11843&&n<=11855||n>=11856&&n<=11857||n===11858||n>=11859&&n<=11903||n>=12289&&n<=12291||n===12296||n===12297||n===12298||n===12299||n===12300||n===12301||n===12302||n===12303||n===12304||n===12305||n>=12306&&n<=12307||n===12308||n===12309||n===12310||n===12311||n===12312||n===12313||n===12314||n===12315||n===12316||n===12317||n>=12318&&n<=12319||n===12320||n===12336||n===64830||n===64831||n>=65093&&n<=65094}function tk(n){n.forEach(function(e){if(delete e.location,rH(e)||iH(e))for(var t in e.options)delete e.options[t].location,tk(e.options[t].value);else eH(e)&&aH(e.style)||(tH(e)||nH(e))&&YA(e.style)?delete e.style.location:oH(e)&&tk(e.children)})}function Fte(n,e){e===void 0&&(e={}),e=Ye({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var t=new Pte(n,e).parse();if(t.err){var r=SyntaxError(Nn[t.err.kind]);throw r.location=t.err.location,r.originalMessage=t.err.message,r}return e!=null&&e.captureLocation||tk(t.val),t.val}function Fu(n,e){var t=e&&e.cache?e.cache:qte,r=e&&e.serializer?e.serializer:zte,o=e&&e.strategy?e.strategy:$te;return o(n,{cache:t,serializer:r})}function Hte(n){return n==null||typeof n=="number"||typeof n=="boolean"}function EH(n,e,t,r){var o=Hte(r)?r:t(r),s=e.get(o);return typeof s>"u"&&(s=n.call(this,r),e.set(o,s)),s}function bH(n,e,t){var r=Array.prototype.slice.call(arguments,3),o=t(r),s=e.get(o);return typeof s>"u"&&(s=n.apply(this,r),e.set(o,s)),s}function nk(n,e,t,r,o){return t.bind(e,n,r,o)}function $te(n,e){var t=n.length===1?EH:bH;return nk(n,this,t,e.cache.create(),e.serializer)}function Bte(n,e){return nk(n,this,bH,e.cache.create(),e.serializer)}function jte(n,e){return nk(n,this,EH,e.cache.create(),e.serializer)}var zte=function(){return JSON.stringify(arguments)};function rk(){this.cache=Object.create(null)}rk.prototype.get=function(n){return this.cache[n]},rk.prototype.set=function(n,e){this.cache[n]=e};var qte={create:function(){return new rk}},Hu={variadic:Bte,monadic:jte},$u;(function(n){n.MISSING_VALUE="MISSING_VALUE",n.INVALID_VALUE="INVALID_VALUE",n.MISSING_INTL_API="MISSING_INTL_API"})($u||($u={}));var yf=function(n){ci(e,n);function e(t,r,o){var s=n.call(this,t)||this;return s.code=r,s.originalMessage=o,s}return e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),CH=function(n){ci(e,n);function e(t,r,o,s){return n.call(this,'Invalid values for "'.concat(t,'": "').concat(r,'". Options are "').concat(Object.keys(o).join('", "'),'"'),$u.INVALID_VALUE,s)||this}return e}(yf),Gte=function(n){ci(e,n);function e(t,r,o){return n.call(this,'Value for "'.concat(t,'" must be of type ').concat(r),$u.INVALID_VALUE,o)||this}return e}(yf),Vte=function(n){ci(e,n);function e(t,r){return n.call(this,'The intl string context variable "'.concat(t,'" was not provided to the string "').concat(r,'"'),$u.MISSING_VALUE,r)||this}return e}(yf),Da;(function(n){n[n.literal=0]="literal",n[n.object=1]="object"})(Da||(Da={}));function Kte(n){return n.length<2?n:n.reduce(function(e,t){var r=e[e.length-1];return!r||r.type!==Da.literal||t.type!==Da.literal?e.push(t):r.value+=t.value,e},[])}function wH(n){return typeof n=="function"}function Uw(n,e,t,r,o,s,u){if(n.length===1&&ZF(n[0]))return[{type:Da.literal,value:n[0].value}];for(var f=[],p=0,v=n;p<v.length;p++){var g=v[p];if(ZF(g)){f.push({type:Da.literal,value:g.value});continue}if(cte(g)){typeof s=="number"&&f.push({type:Da.literal,value:t.getNumberFormat(e).format(s)});continue}var E=g.value;if(!(o&&E in o))throw new Vte(E,u);var w=o[E];if(ute(g)){(!w||typeof w=="string"||typeof w=="number")&&(w=typeof w=="string"||typeof w=="number"?String(w):""),f.push({type:typeof w=="string"?Da.literal:Da.object,value:w});continue}if(tH(g)){var S=typeof g.style=="string"?r.date[g.style]:YA(g.style)?g.style.parsedOptions:void 0;f.push({type:Da.literal,value:t.getDateTimeFormat(e,S).format(w)});continue}if(nH(g)){var S=typeof g.style=="string"?r.time[g.style]:YA(g.style)?g.style.parsedOptions:r.time.medium;f.push({type:Da.literal,value:t.getDateTimeFormat(e,S).format(w)});continue}if(eH(g)){var S=typeof g.style=="string"?r.number[g.style]:aH(g.style)?g.style.parsedOptions:void 0;S&&S.scale&&(w=w*(S.scale||1)),f.push({type:Da.literal,value:t.getNumberFormat(e,S).format(w)});continue}if(oH(g)){var A=g.children,k=g.value,M=o[k];if(!wH(M))throw new Gte(k,"function",u);var P=Uw(A,e,t,r,o,s),L=M(P.map(function(H){return H.value}));Array.isArray(L)||(L=[L]),f.push.apply(f,L.map(function(H){return{type:typeof H=="string"?Da.literal:Da.object,value:H}}))}if(rH(g)){var j=g.options[w]||g.options.other;if(!j)throw new CH(g.value,w,Object.keys(g.options),u);f.push.apply(f,Uw(j.value,e,t,r,o));continue}if(iH(g)){var j=g.options["=".concat(w)];if(!j){if(!Intl.PluralRules)throw new yf(`Intl.PluralRules is not available in this environment.
407
+ Try polyfilling it using "@formatjs/intl-pluralrules"
408
+ `,$u.MISSING_INTL_API,u);var U=t.getPluralRules(e,{type:g.pluralType}).select(w-(g.offset||0));j=g.options[U]||g.options.other}if(!j)throw new CH(g.value,w,Object.keys(g.options),u);f.push.apply(f,Uw(j.value,e,t,r,o,w-(g.offset||0)));continue}}return Kte(f)}function Wte(n,e){return e?Ye(Ye(Ye({},n||{}),e||{}),Object.keys(n).reduce(function(t,r){return t[r]=Ye(Ye({},n[r]),e[r]||{}),t},{})):n}function Yte(n,e){return e?Object.keys(n).reduce(function(t,r){return t[r]=Wte(n[r],e[r]),t},Ye({},n)):n}function ik(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}function Qte(n){return n===void 0&&(n={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Fu(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.NumberFormat).bind.apply(e,gr([void 0],t,!1)))},{cache:ik(n.number),strategy:Hu.variadic}),getDateTimeFormat:Fu(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.DateTimeFormat).bind.apply(e,gr([void 0],t,!1)))},{cache:ik(n.dateTime),strategy:Hu.variadic}),getPluralRules:Fu(function(){for(var e,t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];return new((e=Intl.PluralRules).bind.apply(e,gr([void 0],t,!1)))},{cache:ik(n.pluralRules),strategy:Hu.variadic})}}var SH=function(){function n(e,t,r,o){t===void 0&&(t=n.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(p){var v=s.formatToParts(p);if(v.length===1)return v[0].value;var g=v.reduce(function(E,w){return!E.length||w.type!==Da.literal||typeof E[E.length-1]!="string"?E.push(w.value):E[E.length-1]+=w.value,E},[]);return g.length<=1?g[0]||"":g},this.formatToParts=function(p){return Uw(s.ast,s.locales,s.formatters,s.formats,p,void 0,s.message)},this.resolvedOptions=function(){var p;return{locale:((p=s.resolvedLocale)===null||p===void 0?void 0:p.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=t,this.resolvedLocale=n.resolveLocale(t),typeof e=="string"){if(this.message=e,!n.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var u=o||{};u.formatters;var f=Fv(u,["formatters"]);this.ast=n.__parse(e,Ye(Ye({},f),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Yte(n.formats,r),this.formatters=o&&o.formatters||Qte(this.formatterCache)}return Object.defineProperty(n,"defaultLocale",{get:function(){return n.memoizedDefaultLocale||(n.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),n.memoizedDefaultLocale},enumerable:!1,configurable:!0}),n.memoizedDefaultLocale=null,n.resolveLocale=function(e){if(!(typeof Intl.Locale>"u")){var t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale(typeof e=="string"?e:e[0])}},n.__parse=Fte,n.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},n}(),wp;(function(n){n.FORMAT_ERROR="FORMAT_ERROR",n.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",n.INVALID_CONFIG="INVALID_CONFIG",n.MISSING_DATA="MISSING_DATA",n.MISSING_TRANSLATION="MISSING_TRANSLATION"})(wp||(wp={}));var n_=function(n){ci(e,n);function e(t,r,o){var s=this,u=o?o instanceof Error?o:new Error(String(o)):void 0;return s=n.call(this,"[@formatjs/intl Error ".concat(t,"] ").concat(r,`
409
+ `).concat(u?`
410
+ `.concat(u.message,`
411
+ `).concat(u.stack):""))||this,s.code=t,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(s,e),s}return e}(Error),Xte=function(n){ci(e,n);function e(t,r){return n.call(this,wp.UNSUPPORTED_FORMATTER,t,r)||this}return e}(n_),Jte=function(n){ci(e,n);function e(t,r){return n.call(this,wp.INVALID_CONFIG,t,r)||this}return e}(n_),TH=function(n){ci(e,n);function e(t,r){return n.call(this,wp.MISSING_DATA,t,r)||this}return e}(n_),tl=function(n){ci(e,n);function e(t,r,o){var s=n.call(this,wp.FORMAT_ERROR,"".concat(t,`
412
+ Locale: `).concat(r,`
413
+ `),o)||this;return s.locale=r,s}return e}(n_),ok=function(n){ci(e,n);function e(t,r,o,s){var u=n.call(this,"".concat(t,`
414
+ MessageID: `).concat(o==null?void 0:o.id,`
415
+ Default Message: `).concat(o==null?void 0:o.defaultMessage,`
416
+ Description: `).concat(o==null?void 0:o.description,`
417
+ `),r,s)||this;return u.descriptor=o,u.locale=r,u}return e}(tl),Zte=function(n){ci(e,n);function e(t,r){var o=n.call(this,wp.MISSING_TRANSLATION,'Missing message: "'.concat(t.id,'" for locale "').concat(r,'", using ').concat(t.defaultMessage?"default message (".concat(typeof t.defaultMessage=="string"?t.defaultMessage:t.defaultMessage.map(function(s){var u;return(u=s.value)!==null&&u!==void 0?u:JSON.stringify(s)}).join(),")"):"id"," as fallback."))||this;return o.descriptor=t,o}return e}(n_);function Sp(n,e,t){return t===void 0&&(t={}),e.reduce(function(r,o){return o in n?r[o]=n[o]:o in t&&(r[o]=t[o]),r},{})}var ene=function(n){process.env.NODE_ENV!=="production"&&console.error(n)},tne=function(n){process.env.NODE_ENV!=="production"&&console.warn(n)},RH={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:ene,onWarn:tne};function xH(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function Tp(n){return{create:function(){return{get:function(e){return n[e]},set:function(e,t){n[e]=t}}}}}function nne(n){n===void 0&&(n=xH());var e=Intl.RelativeTimeFormat,t=Intl.ListFormat,r=Intl.DisplayNames,o=Fu(function(){for(var f,p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];return new((f=Intl.DateTimeFormat).bind.apply(f,gr([void 0],p,!1)))},{cache:Tp(n.dateTime),strategy:Hu.variadic}),s=Fu(function(){for(var f,p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];return new((f=Intl.NumberFormat).bind.apply(f,gr([void 0],p,!1)))},{cache:Tp(n.number),strategy:Hu.variadic}),u=Fu(function(){for(var f,p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];return new((f=Intl.PluralRules).bind.apply(f,gr([void 0],p,!1)))},{cache:Tp(n.pluralRules),strategy:Hu.variadic});return{getDateTimeFormat:o,getNumberFormat:s,getMessageFormat:Fu(function(f,p,v,g){return new SH(f,p,v,Ye({formatters:{getNumberFormat:s,getDateTimeFormat:o,getPluralRules:u}},g||{}))},{cache:Tp(n.message),strategy:Hu.variadic}),getRelativeTimeFormat:Fu(function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];return new(e.bind.apply(e,gr([void 0],f,!1)))},{cache:Tp(n.relativeTime),strategy:Hu.variadic}),getPluralRules:u,getListFormat:Fu(function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];return new(t.bind.apply(t,gr([void 0],f,!1)))},{cache:Tp(n.list),strategy:Hu.variadic}),getDisplayNames:Fu(function(){for(var f=[],p=0;p<arguments.length;p++)f[p]=arguments[p];return new(r.bind.apply(r,gr([void 0],f,!1)))},{cache:Tp(n.displayNames),strategy:Hu.variadic})}}function ak(n,e,t,r){var o=n&&n[e],s;if(o&&(s=o[t]),s)return s;r(new Xte("No ".concat(e," format named: ").concat(t)))}function Fw(n,e){return Object.keys(n).reduce(function(t,r){return t[r]=Ye({timeZone:e},n[r]),t},{})}function AH(n,e){var t=Object.keys(Ye(Ye({},n),e));return t.reduce(function(r,o){return r[o]=Ye(Ye({},n[o]||{}),e[o]||{}),r},{})}function kH(n,e){if(!e)return n;var t=SH.formats;return Ye(Ye(Ye({},t),n),{date:AH(Fw(t.date,e),Fw(n.date||{},e)),time:AH(Fw(t.time,e),Fw(n.time||{},e))})}var sk=function(n,e,t,r,o){var s=n.locale,u=n.formats,f=n.messages,p=n.defaultLocale,v=n.defaultFormats,g=n.fallbackOnEmptyString,E=n.onError,w=n.timeZone,S=n.defaultRichTextElements;t===void 0&&(t={id:""});var A=t.id,k=t.defaultMessage;JF(!!A,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var M=String(A),P=f&&Object.prototype.hasOwnProperty.call(f,M)&&f[M];if(Array.isArray(P)&&P.length===1&&P[0].type===Dr.literal)return P[0].value;if(!r&&P&&typeof P=="string"&&!S)return P.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=Ye(Ye({},S),r||{}),u=kH(u,w),v=kH(v,w),!P){if(g===!1&&P==="")return P;if((!k||s&&s.toLowerCase()!==p.toLowerCase())&&E(new Zte(t,s)),k)try{var L=e.getMessageFormat(k,p,v,o);return L.format(r)}catch(j){return E(new ok('Error formatting default message for: "'.concat(M,'", rendering default message verbatim'),s,t,j)),typeof k=="string"?k:M}return M}try{var L=e.getMessageFormat(P,s,u,Ye({formatters:e},o||{}));return L.format(r)}catch(j){E(new ok('Error formatting message: "'.concat(M,'", using ').concat(k?"default message":"id"," as fallback."),s,t,j))}if(k)try{var L=e.getMessageFormat(k,p,v,o);return L.format(r)}catch(j){E(new ok('Error formatting the default message for: "'.concat(M,'", rendering message verbatim'),s,t,j))}return typeof P=="string"?P:typeof k=="string"?k:M},IH=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function Hw(n,e,t,r){var o=n.locale,s=n.formats,u=n.onError,f=n.timeZone;r===void 0&&(r={});var p=r.format,v=Ye(Ye({},f&&{timeZone:f}),p&&ak(s,e,p,u)),g=Sp(r,IH,v);return e==="time"&&!g.hour&&!g.minute&&!g.second&&!g.timeStyle&&!g.dateStyle&&(g=Ye(Ye({},g),{hour:"numeric",minute:"numeric"})),t(o,g)}function rne(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var o=t[0],s=t[1],u=s===void 0?{}:s,f=typeof o=="string"?new Date(o||0):o;try{return Hw(n,"date",e,u).format(f)}catch(p){n.onError(new tl("Error formatting date.",n.locale,p))}return String(f)}function ine(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var o=t[0],s=t[1],u=s===void 0?{}:s,f=typeof o=="string"?new Date(o||0):o;try{return Hw(n,"time",e,u).format(f)}catch(p){n.onError(new tl("Error formatting time.",n.locale,p))}return String(f)}function one(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var o=t[0],s=t[1],u=t[2],f=u===void 0?{}:u,p=n.timeZone,v=n.locale,g=n.onError,E=Sp(f,IH,p?{timeZone:p}:{});try{return e(v,E).formatRange(o,s)}catch(w){g(new tl("Error formatting date time range.",n.locale,w))}return String(o)}function ane(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var o=t[0],s=t[1],u=s===void 0?{}:s,f=typeof o=="string"?new Date(o||0):o;try{return Hw(n,"date",e,u).formatToParts(f)}catch(p){n.onError(new tl("Error formatting date.",n.locale,p))}return[]}function sne(n,e){for(var t=[],r=2;r<arguments.length;r++)t[r-2]=arguments[r];var o=t[0],s=t[1],u=s===void 0?{}:s,f=typeof o=="string"?new Date(o||0):o;try{return Hw(n,"time",e,u).formatToParts(f)}catch(p){n.onError(new tl("Error formatting time.",n.locale,p))}return[]}var lne=["style","type","fallback","languageDisplay"];function une(n,e,t,r){var o=n.locale,s=n.onError,u=Intl.DisplayNames;u||s(new yf(`Intl.DisplayNames is not available in this environment.
418
+ Try polyfilling it using "@formatjs/intl-displaynames"
419
+ `,$u.MISSING_INTL_API));var f=Sp(r,lne);try{return e(o,f).of(t)}catch(p){s(new tl("Error formatting display name.",o,p))}}var cne=["type","style"],OH=Date.now();function dne(n){return"".concat(OH,"_").concat(n,"_").concat(OH)}function fne(n,e,t,r){r===void 0&&(r={});var o=NH(n,e,t,r).reduce(function(s,u){var f=u.value;return typeof f!="string"?s.push(f):typeof s[s.length-1]=="string"?s[s.length-1]+=f:s.push(f),s},[]);return o.length===1?o[0]:o.length===0?"":o}function NH(n,e,t,r){var o=n.locale,s=n.onError;r===void 0&&(r={});var u=Intl.ListFormat;u||s(new yf(`Intl.ListFormat is not available in this environment.
420
+ Try polyfilling it using "@formatjs/intl-listformat"
421
+ `,$u.MISSING_INTL_API));var f=Sp(r,cne);try{var p={},v=t.map(function(g,E){if(typeof g=="object"){var w=dne(E);return p[w]=g,w}return String(g)});return e(o,f).formatToParts(v).map(function(g){return g.type==="literal"?g:Ye(Ye({},g),{value:p[g.value]||g.value})})}catch(g){s(new tl("Error formatting list.",o,g))}return t}var hne=["type"];function pne(n,e,t,r){var o=n.locale,s=n.onError;r===void 0&&(r={}),Intl.PluralRules||s(new yf(`Intl.PluralRules is not available in this environment.
422
+ Try polyfilling it using "@formatjs/intl-pluralrules"
423
+ `,$u.MISSING_INTL_API));var u=Sp(r,hne);try{return e(o,u).select(t)}catch(f){s(new tl("Error formatting plural.",o,f))}return"other"}var vne=["numeric","style"];function mne(n,e,t){var r=n.locale,o=n.formats,s=n.onError;t===void 0&&(t={});var u=t.format,f=!!u&&ak(o,"relative",u,s)||{},p=Sp(t,vne,f);return e(r,p)}function gne(n,e,t,r,o){o===void 0&&(o={}),r||(r="second");var s=Intl.RelativeTimeFormat;s||n.onError(new yf(`Intl.RelativeTimeFormat is not available in this environment.
424
+ Try polyfilling it using "@formatjs/intl-relativetimeformat"
425
+ `,$u.MISSING_INTL_API));try{return mne(n,e,o).format(t,r)}catch(u){n.onError(new tl("Error formatting relative time.",n.locale,u))}return String(t)}var yne=["style","currency","currencyDisplay","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem"];function MH(n,e,t){var r=n.locale,o=n.formats,s=n.onError;t===void 0&&(t={});var u=t.format,f=u&&ak(o,"number",u,s)||{},p=Sp(t,yne,f);return e(r,p)}function _ne(n,e,t,r){r===void 0&&(r={});try{return MH(n,e,r).format(t)}catch(o){n.onError(new tl("Error formatting number.",n.locale,o))}return String(t)}function Ene(n,e,t,r){r===void 0&&(r={});try{return MH(n,e,r).formatToParts(t)}catch(o){n.onError(new tl("Error formatting number.",n.locale,o))}return[]}function bne(n){var e=n?n[Object.keys(n)[0]]:void 0;return typeof e=="string"}function Cne(n){n.onWarn&&n.defaultRichTextElements&&bne(n.messages||{})&&n.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled.
426
+ Please consider using "@formatjs/cli" to pre-compile your messages for performance.
427
+ For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function wne(n,e){var t=nne(e),r=Ye(Ye({},RH),n),o=r.locale,s=r.defaultLocale,u=r.onError;return o?!Intl.NumberFormat.supportedLocalesOf(o).length&&u?u(new TH('Missing locale data for locale: "'.concat(o,'" in Intl.NumberFormat. Using default locale: "').concat(s,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(o).length&&u&&u(new TH('Missing locale data for locale: "'.concat(o,'" in Intl.DateTimeFormat. Using default locale: "').concat(s,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(u&&u(new Jte('"locale" was not configured, using "'.concat(s,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),Cne(r),Ye(Ye({},r),{formatters:t,formatNumber:_ne.bind(null,r,t.getNumberFormat),formatNumberToParts:Ene.bind(null,r,t.getNumberFormat),formatRelativeTime:gne.bind(null,r,t.getRelativeTimeFormat),formatDate:rne.bind(null,r,t.getDateTimeFormat),formatDateToParts:ane.bind(null,r,t.getDateTimeFormat),formatTime:ine.bind(null,r,t.getDateTimeFormat),formatDateTimeRange:one.bind(null,r,t.getDateTimeFormat),formatTimeToParts:sne.bind(null,r,t.getDateTimeFormat),formatPlural:pne.bind(null,r,t.getPluralRules),formatMessage:sk.bind(null,r,t),$t:sk.bind(null,r,t),formatList:fne.bind(null,r,t.getListFormat),formatListToParts:NH.bind(null,r,t.getListFormat),formatDisplayName:une.bind(null,r,t.getDisplayNames)})}function PH(n){JF(n,"[React Intl] Could not find required `intl` object. <IntlProvider> needs to exist in the component ancestry.")}var DH=Ye(Ye({},RH),{textComponent:F.Fragment});function Sne(n){return function(e){return n(F.Children.toArray(e))}}function Tne(n,e){if(n===e)return!0;if(!n||!e)return!1;var t=Object.keys(n),r=Object.keys(e),o=t.length;if(r.length!==o)return!1;for(var s=0;s<o;s++){var u=t[s];if(n[u]!==e[u]||!Object.prototype.hasOwnProperty.call(e,u))return!1}return!0}var lk=typeof window<"u"&&!window.__REACT_INTL_BYPASS_GLOBAL_CONTEXT__?window.__REACT_INTL_CONTEXT__||(window.__REACT_INTL_CONTEXT__=F.createContext(null)):F.createContext(null);lk.Consumer;var Rne=lk.Provider,xne=Rne,Ane=lk;function LH(){var n=F.useContext(Ane);return PH(n),n}var uk;(function(n){n.formatDate="FormattedDate",n.formatTime="FormattedTime",n.formatNumber="FormattedNumber",n.formatList="FormattedList",n.formatDisplayName="FormattedDisplayName"})(uk||(uk={}));var ck;(function(n){n.formatDate="FormattedDateParts",n.formatTime="FormattedTimeParts",n.formatNumber="FormattedNumberParts",n.formatList="FormattedListParts"})(ck||(ck={}));function UH(n){var e=function(t){var r=LH(),o=t.value,s=t.children,u=Fv(t,["value","children"]),f=typeof o=="string"?new Date(o||0):o,p=n==="formatDate"?r.formatDateToParts(f,u):r.formatTimeToParts(f,u);return s(p)};return e.displayName=ck[n],e}function r_(n){var e=function(t){var r=LH(),o=t.value,s=t.children,u=Fv(t,["value","children"]),f=r[n](o,u);if(typeof s=="function")return s(f);var p=r.textComponent||F.Fragment;return F.createElement(p,null,f)};return e.displayName=uk[n],e}function dk(n){return{locale:n.locale,timeZone:n.timeZone,fallbackOnEmptyString:n.fallbackOnEmptyString,formats:n.formats,textComponent:n.textComponent,messages:n.messages,defaultLocale:n.defaultLocale,defaultFormats:n.defaultFormats,onError:n.onError,onWarn:n.onWarn,wrapRichTextChunksInFragment:n.wrapRichTextChunksInFragment,defaultRichTextElements:n.defaultRichTextElements}}function FH(n){return n&&Object.keys(n).reduce(function(e,t){var r=n[t];return e[t]=wH(r)?Sne(r):r,e},{})}var HH=function(n,e,t,r){for(var o=[],s=4;s<arguments.length;s++)o[s-4]=arguments[s];var u=FH(r),f=sk.apply(void 0,gr([n,e,t,u],o,!1));return Array.isArray(f)?F.Children.toArray(f):f},$H=function(n,e){var t=n.defaultRichTextElements,r=Fv(n,["defaultRichTextElements"]),o=FH(t),s=wne(Ye(Ye(Ye({},DH),r),{defaultRichTextElements:o}),e),u={locale:s.locale,timeZone:s.timeZone,fallbackOnEmptyString:s.fallbackOnEmptyString,formats:s.formats,defaultLocale:s.defaultLocale,defaultFormats:s.defaultFormats,messages:s.messages,onError:s.onError,defaultRichTextElements:o};return Ye(Ye({},s),{formatMessage:HH.bind(null,u,s.formatters),$t:HH.bind(null,u,s.formatters)})},kne=function(n){ci(e,n);function e(){var t=n!==null&&n.apply(this,arguments)||this;return t.cache=xH(),t.state={cache:t.cache,intl:$H(dk(t.props),t.cache),prevConfig:dk(t.props)},t}return e.getDerivedStateFromProps=function(t,r){var o=r.prevConfig,s=r.cache,u=dk(t);return Tne(o,u)?null:{intl:$H(u,s),prevConfig:u}},e.prototype.render=function(){return PH(this.state.intl),F.createElement(xne,{value:this.state.intl},this.props.children)},e.displayName="IntlProvider",e.defaultProps=DH,e}(F.PureComponent);const Ine=kne;r_("formatDate"),r_("formatTime"),r_("formatNumber"),r_("formatList"),r_("formatDisplayName"),UH("formatDate"),UH("formatTime");const One=[{path:"/",element:se.jsx(rte,{}),children:[{path:"apps/:appKey/*",element:se.jsx(Zee,{})},{path:"*",element:se.jsx(jA,{error:new Error("404: Page not found")})}]}];function Nne(){const{navigation:n,event:e}=x0().modules,[t]=F.useState(()=>n.createRouter(One)),r=new Wee,[o,s]=F.useState(localStorage.getItem("roma__density")??"comfortable");return F.useEffect(()=>{const u=e.event$.pipe(ln(f=>f.type==="onDensityChanged")).subscribe(f=>{s(f.detail)});return()=>u.unsubscribe()},[e]),se.jsx(Ine,{locale:navigator.language,children:se.jsx(Qee,{client:r,children:se.jsx(PW,{density:o,children:se.jsx(ree,{router:t,fallbackElement:se.jsx("p",{children:"Invalid route."})})})})})}const Mne=document.getElementById("root");jy.createRoot(Mne).render(se.jsx(Mc.StrictMode,{children:se.jsx(q8,{configure:_9,fallback:se.jsx(Tw,{text:"Starting Roma Workbench..."}),children:se.jsx(Nne,{})})}))});