@equinor/fusion-framework-cli 6.0.2 → 6.0.3
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.
|
@@ -22,7 +22,7 @@ function Gp(r,e){for(var t=0;t<e.length;t++){const i=e[t];if(typeof i!="string"&
|
|
|
22
22
|
*
|
|
23
23
|
* This source code is licensed under the MIT license found in the
|
|
24
24
|
* LICENSE file in the root directory of this source tree.
|
|
25
|
-
*/(function(r){function e(B,le){var pe=B.length;B.push(le);e:for(;0<pe;){var Le=pe-1>>>1,ft=B[Le];if(0<n(ft,le))B[Le]=le,B[pe]=ft,pe=Le;else break e}}function t(B){return B.length===0?null:B[0]}function i(B){if(B.length===0)return null;var le=B[0],pe=B.pop();if(pe!==le){B[0]=pe;e:for(var Le=0,ft=B.length,Ba=ft>>>1;Le<Ba;){var jr=2*(Le+1)-1,jo=B[jr],pi=jr+1,ja=B[pi];if(0>n(jo,pe))pi<ft&&0>n(ja,jo)?(B[Le]=ja,B[pi]=pe,Le=pi):(B[Le]=jo,B[jr]=pe,Le=jr);else if(pi<ft&&0>n(ja,pe))B[Le]=ja,B[pi]=pe,Le=pi;else break e}}return le}function n(B,le){var pe=B.sortIndex-le.sortIndex;return pe!==0?pe:B.id-le.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;r.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();r.unstable_now=function(){return o.now()-s}}var c=[],l=[],h=1,d=null,u=3,v=!1,m=!1,f=!1,C=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function z(B){for(var le=t(l);le!==null;){if(le.callback===null)i(l);else if(le.startTime<=B)i(l),le.sortIndex=le.expirationTime,e(c,le);else break;le=t(l)}}function M(B){if(f=!1,z(B),!m)if(t(c)!==null)m=!0,Bo(A);else{var le=t(l);le!==null&&mt(M,le.startTime-B)}}function A(B,le){m=!1,f&&(f=!1,_(U),U=-1),v=!0;var pe=u;try{for(z(le),d=t(c);d!==null&&(!(d.expirationTime>le)||B&&!
|
|
25
|
+
*/(function(r){function e(B,le){var pe=B.length;B.push(le);e:for(;0<pe;){var Le=pe-1>>>1,ft=B[Le];if(0<n(ft,le))B[Le]=le,B[pe]=ft,pe=Le;else break e}}function t(B){return B.length===0?null:B[0]}function i(B){if(B.length===0)return null;var le=B[0],pe=B.pop();if(pe!==le){B[0]=pe;e:for(var Le=0,ft=B.length,Ba=ft>>>1;Le<Ba;){var jr=2*(Le+1)-1,jo=B[jr],pi=jr+1,ja=B[pi];if(0>n(jo,pe))pi<ft&&0>n(ja,jo)?(B[Le]=ja,B[pi]=pe,Le=pi):(B[Le]=jo,B[jr]=pe,Le=jr);else if(pi<ft&&0>n(ja,pe))B[Le]=ja,B[pi]=pe,Le=pi;else break e}}return le}function n(B,le){var pe=B.sortIndex-le.sortIndex;return pe!==0?pe:B.id-le.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;r.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();r.unstable_now=function(){return o.now()-s}}var c=[],l=[],h=1,d=null,u=3,v=!1,m=!1,f=!1,C=typeof setTimeout=="function"?setTimeout:null,_=typeof clearTimeout=="function"?clearTimeout:null,p=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function z(B){for(var le=t(l);le!==null;){if(le.callback===null)i(l);else if(le.startTime<=B)i(l),le.sortIndex=le.expirationTime,e(c,le);else break;le=t(l)}}function M(B){if(f=!1,z(B),!m)if(t(c)!==null)m=!0,Bo(A);else{var le=t(l);le!==null&&mt(M,le.startTime-B)}}function A(B,le){m=!1,f&&(f=!1,_(U),U=-1),v=!0;var pe=u;try{for(z(le),d=t(c);d!==null&&(!(d.expirationTime>le)||B&&!Je());){var Le=d.callback;if(typeof Le=="function"){d.callback=null,u=d.priorityLevel;var ft=Le(d.expirationTime<=le);le=r.unstable_now(),typeof ft=="function"?d.callback=ft:d===t(c)&&i(c),z(le)}else i(c);d=t(c)}if(d!==null)var Ba=!0;else{var jr=t(l);jr!==null&&mt(M,jr.startTime-le),Ba=!1}return Ba}finally{d=null,u=pe,v=!1}}var I=!1,N=null,U=-1,Se=5,ee=-1;function Je(){return!(r.unstable_now()-ee<Se)}function br(){if(N!==null){var B=r.unstable_now();ee=B;var le=!0;try{le=N(!0,B)}finally{le?fi():(I=!1,N=null)}}else I=!1}var fi;if(typeof p=="function")fi=function(){p(br)};else if(typeof MessageChannel<"u"){var bl=new MessageChannel,q4=bl.port2;bl.port1.onmessage=br,fi=function(){q4.postMessage(null)}}else fi=function(){C(br,0)};function Bo(B){N=B,I||(I=!0,fi())}function mt(B,le){U=C(function(){B(r.unstable_now())},le)}r.unstable_IdlePriority=5,r.unstable_ImmediatePriority=1,r.unstable_LowPriority=4,r.unstable_NormalPriority=3,r.unstable_Profiling=null,r.unstable_UserBlockingPriority=2,r.unstable_cancelCallback=function(B){B.callback=null},r.unstable_continueExecution=function(){m||v||(m=!0,Bo(A))},r.unstable_forceFrameRate=function(B){0>B||125<B?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):Se=0<B?Math.floor(1e3/B):5},r.unstable_getCurrentPriorityLevel=function(){return u},r.unstable_getFirstCallbackNode=function(){return t(c)},r.unstable_next=function(B){switch(u){case 1:case 2:case 3:var le=3;break;default:le=u}var pe=u;u=le;try{return B()}finally{u=pe}},r.unstable_pauseExecution=function(){},r.unstable_requestPaint=function(){},r.unstable_runWithPriority=function(B,le){switch(B){case 1:case 2:case 3:case 4:case 5:break;default:B=3}var pe=u;u=B;try{return le()}finally{u=pe}},r.unstable_scheduleCallback=function(B,le,pe){var Le=r.unstable_now();switch(typeof pe=="object"&&pe!==null?(pe=pe.delay,pe=typeof pe=="number"&&0<pe?Le+pe:Le):pe=Le,B){case 1:var ft=-1;break;case 2:ft=250;break;case 5:ft=1073741823;break;case 4:ft=1e4;break;default:ft=5e3}return ft=pe+ft,B={id:h++,callback:le,priorityLevel:B,startTime:pe,expirationTime:ft,sortIndex:-1},pe>Le?(B.sortIndex=pe,e(l,B),t(c)===null&&B===t(l)&&(f?(_(U),U=-1):f=!0,mt(M,pe-Le))):(B.sortIndex=ft,e(c,B),m||v||(m=!0,Bo(A))),B},r.unstable_shouldYield=Je,r.unstable_wrapCallback=function(B){var le=u;return function(){var pe=u;u=le;try{return B.apply(this,arguments)}finally{u=pe}}}})(t7);(function(r){r.exports=t7})(sb);/**
|
|
26
26
|
* @license React
|
|
27
27
|
* react-dom.production.min.js
|
|
28
28
|
*
|
|
@@ -30,17 +30,17 @@ function Gp(r,e){for(var t=0;t<e.length;t++){const i=e[t];if(typeof i!="string"&
|
|
|
30
30
|
*
|
|
31
31
|
* This source code is licensed under the MIT license found in the
|
|
32
32
|
* LICENSE file in the root directory of this source tree.
|
|
33
|
-
*/var r7=k,J1=B5;function D(r){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+r,t=1;t<arguments.length;t++)e+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+r+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i7=new Set,cc={};function Ta(r,e){W2(r,e),W2(r+"Capture",e)}function W2(r,e){for(cc[r]=e,r=0;r<e.length;r++)i7.add(e[r])}var
|
|
33
|
+
*/var r7=k,J1=B5;function D(r){for(var e="https://reactjs.org/docs/error-decoder.html?invariant="+r,t=1;t<arguments.length;t++)e+="&args[]="+encodeURIComponent(arguments[t]);return"Minified React error #"+r+"; visit "+e+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var i7=new Set,cc={};function Ta(r,e){W2(r,e),W2(r+"Capture",e)}function W2(r,e){for(cc[r]=e,r=0;r<e.length;r++)i7.add(e[r])}var Ii=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),j5=Object.prototype.hasOwnProperty,cb=/^[: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]*$/,Q6={},X6={};function lb(r){return j5.call(X6,r)?!0:j5.call(Q6,r)?!1:cb.test(r)?X6[r]=!0:(Q6[r]=!0,!1)}function hb(r,e,t,i){if(t!==null&&t.type===0)return!1;switch(typeof e){case"function":case"symbol":return!0;case"boolean":return i?!1:t!==null?!t.acceptsBooleans:(r=r.toLowerCase().slice(0,5),r!=="data-"&&r!=="aria-");default:return!1}}function db(r,e,t,i){if(e===null||typeof e>"u"||hb(r,e,t,i))return!0;if(i)return!1;if(t!==null)switch(t.type){case 3:return!e;case 4:return e===!1;case 5:return isNaN(e);case 6:return isNaN(e)||1>e}return!1}function b1(r,e,t,i,n,a,o){this.acceptsBooleans=e===2||e===3||e===4,this.attributeName=i,this.attributeNamespace=n,this.mustUseProperty=t,this.propertyName=r,this.type=e,this.sanitizeURL=a,this.removeEmptyString=o}var Qt={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(r){Qt[r]=new b1(r,0,!1,r,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(r){var e=r[0];Qt[e]=new b1(e,1,!1,r[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(r){Qt[r]=new b1(r,2,!1,r.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(r){Qt[r]=new b1(r,2,!1,r,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(r){Qt[r]=new b1(r,3,!1,r.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(r){Qt[r]=new b1(r,3,!0,r,null,!1,!1)});["capture","download"].forEach(function(r){Qt[r]=new b1(r,4,!1,r,null,!1,!1)});["cols","rows","size","span"].forEach(function(r){Qt[r]=new b1(r,6,!1,r,null,!1,!1)});["rowSpan","start"].forEach(function(r){Qt[r]=new b1(r,5,!1,r.toLowerCase(),null,!1,!1)});var av=/[\-:]([a-z])/g;function ov(r){return r[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(r){var e=r.replace(av,ov);Qt[e]=new b1(e,1,!1,r,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(r){var e=r.replace(av,ov);Qt[e]=new b1(e,1,!1,r,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(r){var e=r.replace(av,ov);Qt[e]=new b1(e,1,!1,r,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(r){Qt[r]=new b1(r,1,!1,r.toLowerCase(),null,!1,!1)});Qt.xlinkHref=new b1("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(r){Qt[r]=new b1(r,1,!1,r.toLowerCase(),null,!0,!0)});function sv(r,e,t,i){var n=Qt.hasOwnProperty(e)?Qt[e]:null;(n!==null?n.type!==0:i||!(2<e.length)||e[0]!=="o"&&e[0]!=="O"||e[1]!=="n"&&e[1]!=="N")&&(db(e,t,n,i)&&(t=null),i||n===null?lb(e)&&(t===null?r.removeAttribute(e):r.setAttribute(e,""+t)):n.mustUseProperty?r[n.propertyName]=t===null?n.type===3?!1:"":t:(e=n.attributeName,i=n.attributeNamespace,t===null?r.removeAttribute(e):(n=n.type,t=n===3||n===4&&t===!0?"":""+t,i?r.setAttributeNS(i,e,t):r.setAttribute(e,t))))}var ji=r7.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,Pl=Symbol.for("react.element"),c2=Symbol.for("react.portal"),l2=Symbol.for("react.fragment"),cv=Symbol.for("react.strict_mode"),q5=Symbol.for("react.profiler"),n7=Symbol.for("react.provider"),a7=Symbol.for("react.context"),lv=Symbol.for("react.forward_ref"),G5=Symbol.for("react.suspense"),K5=Symbol.for("react.suspense_list"),hv=Symbol.for("react.memo"),rn=Symbol.for("react.lazy"),o7=Symbol.for("react.offscreen"),J6=Symbol.iterator;function Wo(r){return r===null||typeof r!="object"?null:(r=J6&&r[J6]||r["@@iterator"],typeof r=="function"?r:null)}var nt=Object.assign,ed;function fs(r){if(ed===void 0)try{throw Error()}catch(t){var e=t.stack.trim().match(/\n( *(at )?)/);ed=e&&e[1]||""}return`
|
|
34
34
|
`+ed+r}var td=!1;function rd(r,e){if(!r||td)return"";td=!0;var t=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(e)if(e=function(){throw Error()},Object.defineProperty(e.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(e,[])}catch(l){var i=l}Reflect.construct(r,[],e)}else{try{e.call()}catch(l){i=l}r.call(e.prototype)}else{try{throw Error()}catch(l){i=l}r()}}catch(l){if(l&&i&&typeof l.stack=="string"){for(var n=l.stack.split(`
|
|
35
35
|
`),a=i.stack.split(`
|
|
36
36
|
`),o=n.length-1,s=a.length-1;1<=o&&0<=s&&n[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(n[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||n[o]!==a[s]){var c=`
|
|
37
|
-
`+n[o].replace(" at new "," at ");return r.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",r.displayName)),c}while(1<=o&&0<=s);break}}}finally{td=!1,Error.prepareStackTrace=t}return(r=r?r.displayName||r.name:"")?fs(r):""}function ub(r){switch(r.tag){case 5:return fs(r.type);case 16:return fs("Lazy");case 13:return fs("Suspense");case 19:return fs("SuspenseList");case 0:case 2:case 15:return r=rd(r.type,!1),r;case 11:return r=rd(r.type.render,!1),r;case 1:return r=rd(r.type,!0),r;default:return""}}function W5(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case l2:return"Fragment";case c2:return"Portal";case q5:return"Profiler";case cv:return"StrictMode";case G5:return"Suspense";case K5:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case a7:return(r.displayName||"Context")+".Consumer";case n7:return(r._context.displayName||"Context")+".Provider";case lv:var e=r.render;return r=r.displayName,r||(r=e.displayName||e.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case hv:return e=r.displayName||null,e!==null?e:W5(r.type)||"Memo";case tn:e=r._payload,r=r._init;try{return W5(r(e))}catch{}}return null}function vb(r){var e=r.type;switch(r.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=e.render,r=r.displayName||r.name||"",e.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W5(e);case 8:return e===cv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function En(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function s7(r){var e=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function mb(r){var e=s7(r)?"checked":"value",t=Object.getOwnPropertyDescriptor(r.constructor.prototype,e),i=""+r[e];if(!r.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var n=t.get,a=t.set;return Object.defineProperty(r,e,{configurable:!0,get:function(){return n.call(this)},set:function(o){i=""+o,a.call(this,o)}}),Object.defineProperty(r,e,{enumerable:t.enumerable}),{getValue:function(){return i},setValue:function(o){i=""+o},stopTracking:function(){r._valueTracker=null,delete r[e]}}}}function Al(r){r._valueTracker||(r._valueTracker=mb(r))}function c7(r){if(!r)return!1;var e=r._valueTracker;if(!e)return!0;var t=e.getValue(),i="";return r&&(i=s7(r)?r.checked?"true":"false":r.value),r=i,r!==t?(e.setValue(r),!0):!1}function Bh(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Y5(r,e){var t=e.checked;return nt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??r._wrapperState.initialChecked})}function Z6(r,e){var t=e.defaultValue==null?"":e.defaultValue,i=e.checked!=null?e.checked:e.defaultChecked;t=En(e.value!=null?e.value:t),r._wrapperState={initialChecked:i,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function l7(r,e){e=e.checked,e!=null&&sv(r,"checked",e,!1)}function Q5(r,e){l7(r,e);var t=En(e.value),i=e.type;if(t!=null)i==="number"?(t===0&&r.value===""||r.value!=t)&&(r.value=""+t):r.value!==""+t&&(r.value=""+t);else if(i==="submit"||i==="reset"){r.removeAttribute("value");return}e.hasOwnProperty("value")?X5(r,e.type,t):e.hasOwnProperty("defaultValue")&&X5(r,e.type,En(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(r.defaultChecked=!!e.defaultChecked)}function e8(r,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var i=e.type;if(!(i!=="submit"&&i!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+r._wrapperState.initialValue,t||e===r.value||(r.value=e),r.defaultValue=e}t=r.name,t!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,t!==""&&(r.name=t)}function X5(r,e,t){(e!=="number"||Bh(r.ownerDocument)!==r)&&(t==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+t&&(r.defaultValue=""+t))}var ps=Array.isArray;function E2(r,e,t,i){if(r=r.options,e){e={};for(var n=0;n<t.length;n++)e["$"+t[n]]=!0;for(t=0;t<r.length;t++)n=e.hasOwnProperty("$"+r[t].value),r[t].selected!==n&&(r[t].selected=n),n&&i&&(r[t].defaultSelected=!0)}else{for(t=""+En(t),e=null,n=0;n<r.length;n++){if(r[n].value===t){r[n].selected=!0,i&&(r[n].defaultSelected=!0);return}e!==null||r[n].disabled||(e=r[n])}e!==null&&(e.selected=!0)}}function J5(r,e){if(e.dangerouslySetInnerHTML!=null)throw Error(D(91));return nt({},e,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function t8(r,e){var t=e.value;if(t==null){if(t=e.children,e=e.defaultValue,t!=null){if(e!=null)throw Error(D(92));if(ps(t)){if(1<t.length)throw Error(D(93));t=t[0]}e=t}e==null&&(e=""),t=e}r._wrapperState={initialValue:En(t)}}function h7(r,e){var t=En(e.value),i=En(e.defaultValue);t!=null&&(t=""+t,t!==r.value&&(r.value=t),e.defaultValue==null&&r.defaultValue!==t&&(r.defaultValue=t)),i!=null&&(r.defaultValue=""+i)}function r8(r){var e=r.textContent;e===r._wrapperState.initialValue&&e!==""&&e!==null&&(r.value=e)}function d7(r){switch(r){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 Z5(r,e){return r==null||r==="http://www.w3.org/1999/xhtml"?d7(e):r==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var Vl,u7=function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,t,i,n){MSApp.execUnsafeLocalFunction(function(){return r(e,t,i,n)})}:r}(function(r,e){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=e;else{for(Vl=Vl||document.createElement("div"),Vl.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Vl.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;e.firstChild;)r.appendChild(e.firstChild)}});function lc(r,e){if(e){var t=r.firstChild;if(t&&t===r.lastChild&&t.nodeType===3){t.nodeValue=e;return}}r.textContent=e}var Is={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},fb=["Webkit","ms","Moz","O"];Object.keys(Is).forEach(function(r){fb.forEach(function(e){e=e+r.charAt(0).toUpperCase()+r.substring(1),Is[e]=Is[r]})});function v7(r,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||Is.hasOwnProperty(r)&&Is[r]?(""+e).trim():e+"px"}function m7(r,e){r=r.style;for(var t in e)if(e.hasOwnProperty(t)){var i=t.indexOf("--")===0,n=v7(t,e[t],i);t==="float"&&(t="cssFloat"),i?r.setProperty(t,n):r[t]=n}}var pb=nt({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 e3(r,e){if(e){if(pb[r]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(D(137,r));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(D(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(D(61))}if(e.style!=null&&typeof e.style!="object")throw Error(D(62))}}function t3(r,e){if(r.indexOf("-")===-1)return typeof e.is=="string";switch(r){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 r3=null;function dv(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var i3=null,P2=null,A2=null;function i8(r){if(r=el(r)){if(typeof i3!="function")throw Error(D(280));var e=r.stateNode;e&&(e=l4(e),i3(r.stateNode,r.type,e))}}function f7(r){P2?A2?A2.push(r):A2=[r]:P2=r}function p7(){if(P2){var r=P2,e=A2;if(A2=P2=null,i8(r),e)for(r=0;r<e.length;r++)i8(e[r])}}function g7(r,e){return r(e)}function _7(){}var id=!1;function z7(r,e,t){if(id)return r(e,t);id=!0;try{return g7(r,e,t)}finally{id=!1,(P2!==null||A2!==null)&&(_7(),p7())}}function hc(r,e){var t=r.stateNode;if(t===null)return null;var i=l4(t);if(i===null)return null;t=i[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(r=r.type,i=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!i;break e;default:r=!1}if(r)return null;if(t&&typeof t!="function")throw Error(D(231,e,typeof t));return t}var n3=!1;if(Ti)try{var Yo={};Object.defineProperty(Yo,"passive",{get:function(){n3=!0}}),window.addEventListener("test",Yo,Yo),window.removeEventListener("test",Yo,Yo)}catch{n3=!1}function gb(r,e,t,i,n,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{e.apply(t,l)}catch(h){this.onError(h)}}var Rs=!1,jh=null,qh=!1,a3=null,_b={onError:function(r){Rs=!0,jh=r}};function zb(r,e,t,i,n,a,o,s,c){Rs=!1,jh=null,gb.apply(_b,arguments)}function yb(r,e,t,i,n,a,o,s,c){if(zb.apply(this,arguments),Rs){if(Rs){var l=jh;Rs=!1,jh=null}else throw Error(D(198));qh||(qh=!0,a3=l)}}function Ia(r){var e=r,t=r;if(r.alternate)for(;e.return;)e=e.return;else{r=e;do e=r,e.flags&4098&&(t=e.return),r=e.return;while(r)}return e.tag===3?t:null}function y7(r){if(r.tag===13){var e=r.memoizedState;if(e===null&&(r=r.alternate,r!==null&&(e=r.memoizedState)),e!==null)return e.dehydrated}return null}function n8(r){if(Ia(r)!==r)throw Error(D(188))}function wb(r){var e=r.alternate;if(!e){if(e=Ia(r),e===null)throw Error(D(188));return e!==r?null:r}for(var t=r,i=e;;){var n=t.return;if(n===null)break;var a=n.alternate;if(a===null){if(i=n.return,i!==null){t=i;continue}break}if(n.child===a.child){for(a=n.child;a;){if(a===t)return n8(n),r;if(a===i)return n8(n),e;a=a.sibling}throw Error(D(188))}if(t.return!==i.return)t=n,i=a;else{for(var o=!1,s=n.child;s;){if(s===t){o=!0,t=n,i=a;break}if(s===i){o=!0,i=n,t=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===t){o=!0,t=a,i=n;break}if(s===i){o=!0,i=a,t=n;break}s=s.sibling}if(!o)throw Error(D(189))}}if(t.alternate!==i)throw Error(D(190))}if(t.tag!==3)throw Error(D(188));return t.stateNode.current===t?r:e}function w7(r){return r=wb(r),r!==null?b7(r):null}function b7(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var e=b7(r);if(e!==null)return e;r=r.sibling}return null}var x7=J1.unstable_scheduleCallback,a8=J1.unstable_cancelCallback,bb=J1.unstable_shouldYield,xb=J1.unstable_requestPaint,vt=J1.unstable_now,Mb=J1.unstable_getCurrentPriorityLevel,uv=J1.unstable_ImmediatePriority,M7=J1.unstable_UserBlockingPriority,Gh=J1.unstable_NormalPriority,Cb=J1.unstable_LowPriority,C7=J1.unstable_IdlePriority,a4=null,oi=null;function Hb(r){if(oi&&typeof oi.onCommitFiberRoot=="function")try{oi.onCommitFiberRoot(a4,r,void 0,(r.current.flags&128)===128)}catch{}}var Ir=Math.clz32?Math.clz32:Pb,kb=Math.log,Eb=Math.LN2;function Pb(r){return r>>>=0,r===0?32:31-(kb(r)/Eb|0)|0}var Sl=64,$l=4194304;function gs(r){switch(r&-r){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 r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function Kh(r,e){var t=r.pendingLanes;if(t===0)return 0;var i=0,n=r.suspendedLanes,a=r.pingedLanes,o=t&268435455;if(o!==0){var s=o&~n;s!==0?i=gs(s):(a&=o,a!==0&&(i=gs(a)))}else o=t&~n,o!==0?i=gs(o):a!==0&&(i=gs(a));if(i===0)return 0;if(e!==0&&e!==i&&!(e&n)&&(n=i&-i,a=e&-e,n>=a||n===16&&(a&4194240)!==0))return e;if(i&4&&(i|=t&16),e=r.entangledLanes,e!==0)for(r=r.entanglements,e&=i;0<e;)t=31-Ir(e),n=1<<t,i|=r[t],e&=~n;return i}function Ab(r,e){switch(r){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Vb(r,e){for(var t=r.suspendedLanes,i=r.pingedLanes,n=r.expirationTimes,a=r.pendingLanes;0<a;){var o=31-Ir(a),s=1<<o,c=n[o];c===-1?(!(s&t)||s&i)&&(n[o]=Ab(s,e)):c<=e&&(r.expiredLanes|=s),a&=~s}}function o3(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function H7(){var r=Sl;return Sl<<=1,!(Sl&4194240)&&(Sl=64),r}function nd(r){for(var e=[],t=0;31>t;t++)e.push(r);return e}function Jc(r,e,t){r.pendingLanes|=e,e!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,e=31-Ir(e),r[e]=t}function Sb(r,e){var t=r.pendingLanes&~e;r.pendingLanes=e,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=e,r.mutableReadLanes&=e,r.entangledLanes&=e,e=r.entanglements;var i=r.eventTimes;for(r=r.expirationTimes;0<t;){var n=31-Ir(t),a=1<<n;e[n]=0,i[n]=-1,r[n]=-1,t&=~a}}function vv(r,e){var t=r.entangledLanes|=e;for(r=r.entanglements;t;){var i=31-Ir(t),n=1<<i;n&e|r[i]&e&&(r[i]|=e),t&=~n}}var Oe=0;function k7(r){return r&=-r,1<r?4<r?r&268435455?16:536870912:4:1}var E7,mv,P7,A7,V7,s3=!1,Dl=[],_n=null,zn=null,yn=null,dc=new Map,uc=new Map,on=[],$b="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function o8(r,e){switch(r){case"focusin":case"focusout":_n=null;break;case"dragenter":case"dragleave":zn=null;break;case"mouseover":case"mouseout":yn=null;break;case"pointerover":case"pointerout":dc.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":uc.delete(e.pointerId)}}function Qo(r,e,t,i,n,a){return r===null||r.nativeEvent!==a?(r={blockedOn:e,domEventName:t,eventSystemFlags:i,nativeEvent:a,targetContainers:[n]},e!==null&&(e=el(e),e!==null&&mv(e)),r):(r.eventSystemFlags|=i,e=r.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),r)}function Db(r,e,t,i,n){switch(e){case"focusin":return _n=Qo(_n,r,e,t,i,n),!0;case"dragenter":return zn=Qo(zn,r,e,t,i,n),!0;case"mouseover":return yn=Qo(yn,r,e,t,i,n),!0;case"pointerover":var a=n.pointerId;return dc.set(a,Qo(dc.get(a)||null,r,e,t,i,n)),!0;case"gotpointercapture":return a=n.pointerId,uc.set(a,Qo(uc.get(a)||null,r,e,t,i,n)),!0}return!1}function S7(r){var e=ma(r.target);if(e!==null){var t=Ia(e);if(t!==null){if(e=t.tag,e===13){if(e=y7(t),e!==null){r.blockedOn=e,V7(r.priority,function(){P7(t)});return}}else if(e===3&&t.stateNode.current.memoizedState.isDehydrated){r.blockedOn=t.tag===3?t.stateNode.containerInfo:null;return}}}r.blockedOn=null}function dh(r){if(r.blockedOn!==null)return!1;for(var e=r.targetContainers;0<e.length;){var t=c3(r.domEventName,r.eventSystemFlags,e[0],r.nativeEvent);if(t===null){t=r.nativeEvent;var i=new t.constructor(t.type,t);r3=i,t.target.dispatchEvent(i),r3=null}else return e=el(t),e!==null&&mv(e),r.blockedOn=t,!1;e.shift()}return!0}function s8(r,e,t){dh(r)&&t.delete(e)}function Lb(){s3=!1,_n!==null&&dh(_n)&&(_n=null),zn!==null&&dh(zn)&&(zn=null),yn!==null&&dh(yn)&&(yn=null),dc.forEach(s8),uc.forEach(s8)}function Xo(r,e){r.blockedOn===e&&(r.blockedOn=null,s3||(s3=!0,J1.unstable_scheduleCallback(J1.unstable_NormalPriority,Lb)))}function vc(r){function e(n){return Xo(n,r)}if(0<Dl.length){Xo(Dl[0],r);for(var t=1;t<Dl.length;t++){var i=Dl[t];i.blockedOn===r&&(i.blockedOn=null)}}for(_n!==null&&Xo(_n,r),zn!==null&&Xo(zn,r),yn!==null&&Xo(yn,r),dc.forEach(e),uc.forEach(e),t=0;t<on.length;t++)i=on[t],i.blockedOn===r&&(i.blockedOn=null);for(;0<on.length&&(t=on[0],t.blockedOn===null);)S7(t),t.blockedOn===null&&on.shift()}var V2=Bi.ReactCurrentBatchConfig,Wh=!0;function Tb(r,e,t,i){var n=Oe,a=V2.transition;V2.transition=null;try{Oe=1,fv(r,e,t,i)}finally{Oe=n,V2.transition=a}}function Ib(r,e,t,i){var n=Oe,a=V2.transition;V2.transition=null;try{Oe=4,fv(r,e,t,i)}finally{Oe=n,V2.transition=a}}function fv(r,e,t,i){if(Wh){var n=c3(r,e,t,i);if(n===null)md(r,e,i,Yh,t),o8(r,i);else if(Db(n,r,e,t,i))i.stopPropagation();else if(o8(r,i),e&4&&-1<$b.indexOf(r)){for(;n!==null;){var a=el(n);if(a!==null&&E7(a),a=c3(r,e,t,i),a===null&&md(r,e,i,Yh,t),a===n)break;n=a}n!==null&&i.stopPropagation()}else md(r,e,i,null,t)}}var Yh=null;function c3(r,e,t,i){if(Yh=null,r=dv(i),r=ma(r),r!==null)if(e=Ia(r),e===null)r=null;else if(t=e.tag,t===13){if(r=y7(e),r!==null)return r;r=null}else if(t===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;r=null}else e!==r&&(r=null);return Yh=r,null}function $7(r){switch(r){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(Mb()){case uv:return 1;case M7:return 4;case Gh:case Cb:return 16;case C7:return 536870912;default:return 16}default:return 16}}var mn=null,pv=null,uh=null;function D7(){if(uh)return uh;var r,e=pv,t=e.length,i,n="value"in mn?mn.value:mn.textContent,a=n.length;for(r=0;r<t&&e[r]===n[r];r++);var o=t-r;for(i=1;i<=o&&e[t-i]===n[a-i];i++);return uh=n.slice(r,1<i?1-i:void 0)}function vh(r){var e=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&e===13&&(r=13)):r=e,r===10&&(r=13),32<=r||r===13?r:0}function Ll(){return!0}function c8(){return!1}function ir(r){function e(t,i,n,a,o){this._reactName=t,this._targetInst=n,this.type=i,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var s in r)r.hasOwnProperty(s)&&(t=r[s],this[s]=t?t(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Ll:c8,this.isPropagationStopped=c8,this}return nt(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():typeof t.returnValue!="unknown"&&(t.returnValue=!1),this.isDefaultPrevented=Ll)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():typeof t.cancelBubble!="unknown"&&(t.cancelBubble=!0),this.isPropagationStopped=Ll)},persist:function(){},isPersistent:Ll}),e}var So={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gv=ir(So),Zc=nt({},So,{view:0,detail:0}),Rb=ir(Zc),ad,od,Jo,o4=nt({},Zc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_v,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Jo&&(Jo&&r.type==="mousemove"?(ad=r.screenX-Jo.screenX,od=r.screenY-Jo.screenY):od=ad=0,Jo=r),ad)},movementY:function(r){return"movementY"in r?r.movementY:od}}),l8=ir(o4),Ob=nt({},o4,{dataTransfer:0}),Nb=ir(Ob),Ub=nt({},Zc,{relatedTarget:0}),sd=ir(Ub),Fb=nt({},So,{animationName:0,elapsedTime:0,pseudoElement:0}),Bb=ir(Fb),jb=nt({},So,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),qb=ir(jb),Gb=nt({},So,{data:0}),h8=ir(Gb),Kb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wb={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"},Yb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qb(r){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(r):(r=Yb[r])?!!e[r]:!1}function _v(){return Qb}var Xb=nt({},Zc,{key:function(r){if(r.key){var e=Kb[r.key]||r.key;if(e!=="Unidentified")return e}return r.type==="keypress"?(r=vh(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?Wb[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_v,charCode:function(r){return r.type==="keypress"?vh(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?vh(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),Jb=ir(Xb),Zb=nt({},o4,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),d8=ir(Zb),ex=nt({},Zc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_v}),tx=ir(ex),rx=nt({},So,{propertyName:0,elapsedTime:0,pseudoElement:0}),ix=ir(rx),nx=nt({},o4,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),ax=ir(nx),ox=[9,13,27,32],zv=Ti&&"CompositionEvent"in window,Os=null;Ti&&"documentMode"in document&&(Os=document.documentMode);var sx=Ti&&"TextEvent"in window&&!Os,L7=Ti&&(!zv||Os&&8<Os&&11>=Os),u8=String.fromCharCode(32),v8=!1;function T7(r,e){switch(r){case"keyup":return ox.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function I7(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var h2=!1;function cx(r,e){switch(r){case"compositionend":return I7(e);case"keypress":return e.which!==32?null:(v8=!0,u8);case"textInput":return r=e.data,r===u8&&v8?null:r;default:return null}}function lx(r,e){if(h2)return r==="compositionend"||!zv&&T7(r,e)?(r=D7(),uh=pv=mn=null,h2=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return L7&&e.locale!=="ko"?null:e.data;default:return null}}var hx={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 m8(r){var e=r&&r.nodeName&&r.nodeName.toLowerCase();return e==="input"?!!hx[r.type]:e==="textarea"}function R7(r,e,t,i){f7(i),e=Qh(e,"onChange"),0<e.length&&(t=new gv("onChange","change",null,t,i),r.push({event:t,listeners:e}))}var Ns=null,mc=null;function dx(r){Y7(r,0)}function s4(r){var e=v2(r);if(c7(e))return r}function ux(r,e){if(r==="change")return e}var O7=!1;if(Ti){var cd;if(Ti){var ld="oninput"in document;if(!ld){var f8=document.createElement("div");f8.setAttribute("oninput","return;"),ld=typeof f8.oninput=="function"}cd=ld}else cd=!1;O7=cd&&(!document.documentMode||9<document.documentMode)}function p8(){Ns&&(Ns.detachEvent("onpropertychange",N7),mc=Ns=null)}function N7(r){if(r.propertyName==="value"&&s4(mc)){var e=[];R7(e,mc,r,dv(r)),z7(dx,e)}}function vx(r,e,t){r==="focusin"?(p8(),Ns=e,mc=t,Ns.attachEvent("onpropertychange",N7)):r==="focusout"&&p8()}function mx(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return s4(mc)}function fx(r,e){if(r==="click")return s4(e)}function px(r,e){if(r==="input"||r==="change")return s4(e)}function gx(r,e){return r===e&&(r!==0||1/r===1/e)||r!==r&&e!==e}var Or=typeof Object.is=="function"?Object.is:gx;function fc(r,e){if(Or(r,e))return!0;if(typeof r!="object"||r===null||typeof e!="object"||e===null)return!1;var t=Object.keys(r),i=Object.keys(e);if(t.length!==i.length)return!1;for(i=0;i<t.length;i++){var n=t[i];if(!j5.call(e,n)||!Or(r[n],e[n]))return!1}return!0}function g8(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function _8(r,e){var t=g8(r);r=0;for(var i;t;){if(t.nodeType===3){if(i=r+t.textContent.length,r<=e&&i>=e)return{node:t,offset:e-r};r=i}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=g8(t)}}function U7(r,e){return r&&e?r===e?!0:r&&r.nodeType===3?!1:e&&e.nodeType===3?U7(r,e.parentNode):"contains"in r?r.contains(e):r.compareDocumentPosition?!!(r.compareDocumentPosition(e)&16):!1:!1}function F7(){for(var r=window,e=Bh();e instanceof r.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)r=e.contentWindow;else break;e=Bh(r.document)}return e}function yv(r){var e=r&&r.nodeName&&r.nodeName.toLowerCase();return e&&(e==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||e==="textarea"||r.contentEditable==="true")}function _x(r){var e=F7(),t=r.focusedElem,i=r.selectionRange;if(e!==t&&t&&t.ownerDocument&&U7(t.ownerDocument.documentElement,t)){if(i!==null&&yv(t)){if(e=i.start,r=i.end,r===void 0&&(r=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(r,t.value.length);else if(r=(e=t.ownerDocument||document)&&e.defaultView||window,r.getSelection){r=r.getSelection();var n=t.textContent.length,a=Math.min(i.start,n);i=i.end===void 0?a:Math.min(i.end,n),!r.extend&&a>i&&(n=i,i=a,a=n),n=_8(t,a);var o=_8(t,i);n&&o&&(r.rangeCount!==1||r.anchorNode!==n.node||r.anchorOffset!==n.offset||r.focusNode!==o.node||r.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(n.node,n.offset),r.removeAllRanges(),a>i?(r.addRange(e),r.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),r.addRange(e)))}}for(e=[],r=t;r=r.parentNode;)r.nodeType===1&&e.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t<e.length;t++)r=e[t],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var zx=Ti&&"documentMode"in document&&11>=document.documentMode,d2=null,l3=null,Us=null,h3=!1;function z8(r,e,t){var i=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;h3||d2==null||d2!==Bh(i)||(i=d2,"selectionStart"in i&&yv(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Us&&fc(Us,i)||(Us=i,i=Qh(l3,"onSelect"),0<i.length&&(e=new gv("onSelect","select",null,e,t),r.push({event:e,listeners:i}),e.target=d2)))}function Tl(r,e){var t={};return t[r.toLowerCase()]=e.toLowerCase(),t["Webkit"+r]="webkit"+e,t["Moz"+r]="moz"+e,t}var u2={animationend:Tl("Animation","AnimationEnd"),animationiteration:Tl("Animation","AnimationIteration"),animationstart:Tl("Animation","AnimationStart"),transitionend:Tl("Transition","TransitionEnd")},hd={},B7={};Ti&&(B7=document.createElement("div").style,"AnimationEvent"in window||(delete u2.animationend.animation,delete u2.animationiteration.animation,delete u2.animationstart.animation),"TransitionEvent"in window||delete u2.transitionend.transition);function c4(r){if(hd[r])return hd[r];if(!u2[r])return r;var e=u2[r],t;for(t in e)if(e.hasOwnProperty(t)&&t in B7)return hd[r]=e[t];return r}var j7=c4("animationend"),q7=c4("animationiteration"),G7=c4("animationstart"),K7=c4("transitionend"),W7=new Map,y8="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 Dn(r,e){W7.set(r,e),Ta(e,[r])}for(var dd=0;dd<y8.length;dd++){var ud=y8[dd],yx=ud.toLowerCase(),wx=ud[0].toUpperCase()+ud.slice(1);Dn(yx,"on"+wx)}Dn(j7,"onAnimationEnd");Dn(q7,"onAnimationIteration");Dn(G7,"onAnimationStart");Dn("dblclick","onDoubleClick");Dn("focusin","onFocus");Dn("focusout","onBlur");Dn(K7,"onTransitionEnd");W2("onMouseEnter",["mouseout","mouseover"]);W2("onMouseLeave",["mouseout","mouseover"]);W2("onPointerEnter",["pointerout","pointerover"]);W2("onPointerLeave",["pointerout","pointerover"]);Ta("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ta("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ta("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ta("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ta("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ta("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _s="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(" "),bx=new Set("cancel close invalid load scroll toggle".split(" ").concat(_s));function w8(r,e,t){var i=r.type||"unknown-event";r.currentTarget=t,yb(i,e,void 0,r),r.currentTarget=null}function Y7(r,e){e=(e&4)!==0;for(var t=0;t<r.length;t++){var i=r[t],n=i.event;i=i.listeners;e:{var a=void 0;if(e)for(var o=i.length-1;0<=o;o--){var s=i[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&n.isPropagationStopped())break e;w8(n,s,l),a=c}else for(o=0;o<i.length;o++){if(s=i[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&n.isPropagationStopped())break e;w8(n,s,l),a=c}}}if(qh)throw r=a3,qh=!1,a3=null,r}function Ke(r,e){var t=e[f3];t===void 0&&(t=e[f3]=new Set);var i=r+"__bubble";t.has(i)||(Q7(e,r,2,!1),t.add(i))}function vd(r,e,t){var i=0;e&&(i|=4),Q7(t,r,i,e)}var Il="_reactListening"+Math.random().toString(36).slice(2);function pc(r){if(!r[Il]){r[Il]=!0,i7.forEach(function(t){t!=="selectionchange"&&(bx.has(t)||vd(t,!1,r),vd(t,!0,r))});var e=r.nodeType===9?r:r.ownerDocument;e===null||e[Il]||(e[Il]=!0,vd("selectionchange",!1,e))}}function Q7(r,e,t,i){switch($7(e)){case 1:var n=Tb;break;case 4:n=Ib;break;default:n=fv}t=n.bind(null,e,t,r),n=void 0,!n3||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),i?n!==void 0?r.addEventListener(e,t,{capture:!0,passive:n}):r.addEventListener(e,t,!0):n!==void 0?r.addEventListener(e,t,{passive:n}):r.addEventListener(e,t,!1)}function md(r,e,t,i,n){var a=i;if(!(e&1)&&!(e&2)&&i!==null)e:for(;;){if(i===null)return;var o=i.tag;if(o===3||o===4){var s=i.stateNode.containerInfo;if(s===n||s.nodeType===8&&s.parentNode===n)break;if(o===4)for(o=i.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===n||c.nodeType===8&&c.parentNode===n))return;o=o.return}for(;s!==null;){if(o=ma(s),o===null)return;if(c=o.tag,c===5||c===6){i=a=o;continue e}s=s.parentNode}}i=i.return}z7(function(){var l=a,h=dv(t),d=[];e:{var u=W7.get(r);if(u!==void 0){var v=gv,m=r;switch(r){case"keypress":if(vh(t)===0)break e;case"keydown":case"keyup":v=Jb;break;case"focusin":m="focus",v=sd;break;case"focusout":m="blur",v=sd;break;case"beforeblur":case"afterblur":v=sd;break;case"click":if(t.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=l8;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=Nb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=tx;break;case j7:case q7:case G7:v=Bb;break;case K7:v=ix;break;case"scroll":v=Rb;break;case"wheel":v=ax;break;case"copy":case"cut":case"paste":v=qb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=d8}var f=(e&4)!==0,C=!f&&r==="scroll",_=f?u!==null?u+"Capture":null:u;f=[];for(var p=l,z;p!==null;){z=p;var M=z.stateNode;if(z.tag===5&&M!==null&&(z=M,_!==null&&(M=hc(p,_),M!=null&&f.push(gc(p,M,z)))),C)break;p=p.return}0<f.length&&(u=new v(u,m,null,t,h),d.push({event:u,listeners:f}))}}if(!(e&7)){e:{if(u=r==="mouseover"||r==="pointerover",v=r==="mouseout"||r==="pointerout",u&&t!==r3&&(m=t.relatedTarget||t.fromElement)&&(ma(m)||m[Ii]))break e;if((v||u)&&(u=h.window===h?h:(u=h.ownerDocument)?u.defaultView||u.parentWindow:window,v?(m=t.relatedTarget||t.toElement,v=l,m=m?ma(m):null,m!==null&&(C=Ia(m),m!==C||m.tag!==5&&m.tag!==6)&&(m=null)):(v=null,m=l),v!==m)){if(f=l8,M="onMouseLeave",_="onMouseEnter",p="mouse",(r==="pointerout"||r==="pointerover")&&(f=d8,M="onPointerLeave",_="onPointerEnter",p="pointer"),C=v==null?u:v2(v),z=m==null?u:v2(m),u=new f(M,p+"leave",v,t,h),u.target=C,u.relatedTarget=z,M=null,ma(h)===l&&(f=new f(_,p+"enter",m,t,h),f.target=z,f.relatedTarget=C,M=f),C=M,v&&m)t:{for(f=v,_=m,p=0,z=f;z;z=Ga(z))p++;for(z=0,M=_;M;M=Ga(M))z++;for(;0<p-z;)f=Ga(f),p--;for(;0<z-p;)_=Ga(_),z--;for(;p--;){if(f===_||_!==null&&f===_.alternate)break t;f=Ga(f),_=Ga(_)}f=null}else f=null;v!==null&&b8(d,u,v,f,!1),m!==null&&C!==null&&b8(d,C,m,f,!0)}}e:{if(u=l?v2(l):window,v=u.nodeName&&u.nodeName.toLowerCase(),v==="select"||v==="input"&&u.type==="file")var A=ux;else if(m8(u))if(O7)A=px;else{A=mx;var I=vx}else(v=u.nodeName)&&v.toLowerCase()==="input"&&(u.type==="checkbox"||u.type==="radio")&&(A=fx);if(A&&(A=A(r,l))){R7(d,A,t,h);break e}I&&I(r,u,l),r==="focusout"&&(I=u._wrapperState)&&I.controlled&&u.type==="number"&&X5(u,"number",u.value)}switch(I=l?v2(l):window,r){case"focusin":(m8(I)||I.contentEditable==="true")&&(d2=I,l3=l,Us=null);break;case"focusout":Us=l3=d2=null;break;case"mousedown":h3=!0;break;case"contextmenu":case"mouseup":case"dragend":h3=!1,z8(d,t,h);break;case"selectionchange":if(zx)break;case"keydown":case"keyup":z8(d,t,h)}var N;if(zv)e:{switch(r){case"compositionstart":var U="onCompositionStart";break e;case"compositionend":U="onCompositionEnd";break e;case"compositionupdate":U="onCompositionUpdate";break e}U=void 0}else h2?T7(r,t)&&(U="onCompositionEnd"):r==="keydown"&&t.keyCode===229&&(U="onCompositionStart");U&&(L7&&t.locale!=="ko"&&(h2||U!=="onCompositionStart"?U==="onCompositionEnd"&&h2&&(N=D7()):(mn=h,pv="value"in mn?mn.value:mn.textContent,h2=!0)),I=Qh(l,U),0<I.length&&(U=new h8(U,r,null,t,h),d.push({event:U,listeners:I}),N?U.data=N:(N=I7(t),N!==null&&(U.data=N)))),(N=sx?cx(r,t):lx(r,t))&&(l=Qh(l,"onBeforeInput"),0<l.length&&(h=new h8("onBeforeInput","beforeinput",null,t,h),d.push({event:h,listeners:l}),h.data=N))}Y7(d,e)})}function gc(r,e,t){return{instance:r,listener:e,currentTarget:t}}function Qh(r,e){for(var t=e+"Capture",i=[];r!==null;){var n=r,a=n.stateNode;n.tag===5&&a!==null&&(n=a,a=hc(r,t),a!=null&&i.unshift(gc(r,a,n)),a=hc(r,e),a!=null&&i.push(gc(r,a,n))),r=r.return}return i}function Ga(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function b8(r,e,t,i,n){for(var a=e._reactName,o=[];t!==null&&t!==i;){var s=t,c=s.alternate,l=s.stateNode;if(c!==null&&c===i)break;s.tag===5&&l!==null&&(s=l,n?(c=hc(t,a),c!=null&&o.unshift(gc(t,c,s))):n||(c=hc(t,a),c!=null&&o.push(gc(t,c,s)))),t=t.return}o.length!==0&&r.push({event:e,listeners:o})}var xx=/\r\n?/g,Mx=/\u0000|\uFFFD/g;function x8(r){return(typeof r=="string"?r:""+r).replace(xx,`
|
|
38
|
-
`).replace(Mx,"")}function Rl(r,e,t){if(e=x8(e),x8(r)!==e&&t)throw Error(D(425))}function Xh(){}var d3=null,u3=null;function v3(r,e){return r==="textarea"||r==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var m3=typeof setTimeout=="function"?setTimeout:void 0,Cx=typeof clearTimeout=="function"?clearTimeout:void 0,M8=typeof Promise=="function"?Promise:void 0,Hx=typeof queueMicrotask=="function"?queueMicrotask:typeof M8<"u"?function(r){return M8.resolve(null).then(r).catch(kx)}:m3;function kx(r){setTimeout(function(){throw r})}function fd(r,e){var t=e,i=0;do{var n=t.nextSibling;if(r.removeChild(t),n&&n.nodeType===8)if(t=n.data,t==="/$"){if(i===0){r.removeChild(n),vc(e);return}i--}else t!=="$"&&t!=="$?"&&t!=="$!"||i++;t=n}while(t);vc(e)}function wn(r){for(;r!=null;r=r.nextSibling){var e=r.nodeType;if(e===1||e===3)break;if(e===8){if(e=r.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return r}function C8(r){r=r.previousSibling;for(var e=0;r;){if(r.nodeType===8){var t=r.data;if(t==="$"||t==="$!"||t==="$?"){if(e===0)return r;e--}else t==="/$"&&e++}r=r.previousSibling}return null}var $o=Math.random().toString(36).slice(2),ri="__reactFiber$"+$o,_c="__reactProps$"+$o,Ii="__reactContainer$"+$o,f3="__reactEvents$"+$o,Ex="__reactListeners$"+$o,Px="__reactHandles$"+$o;function ma(r){var e=r[ri];if(e)return e;for(var t=r.parentNode;t;){if(e=t[Ii]||t[ri]){if(t=e.alternate,e.child!==null||t!==null&&t.child!==null)for(r=C8(r);r!==null;){if(t=r[ri])return t;r=C8(r)}return e}r=t,t=r.parentNode}return null}function el(r){return r=r[ri]||r[Ii],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function v2(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(D(33))}function l4(r){return r[_c]||null}var p3=[],m2=-1;function Ln(r){return{current:r}}function Qe(r){0>m2||(r.current=p3[m2],p3[m2]=null,m2--)}function qe(r,e){m2++,p3[m2]=r.current,r.current=e}var Pn={},u1=Ln(Pn),R1=Ln(!1),Ca=Pn;function Y2(r,e){var t=r.type.contextTypes;if(!t)return Pn;var i=r.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var n={},a;for(a in t)n[a]=e[a];return i&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=e,r.__reactInternalMemoizedMaskedChildContext=n),n}function O1(r){return r=r.childContextTypes,r!=null}function Jh(){Qe(R1),Qe(u1)}function H8(r,e,t){if(u1.current!==Pn)throw Error(D(168));qe(u1,e),qe(R1,t)}function X7(r,e,t){var i=r.stateNode;if(e=e.childContextTypes,typeof i.getChildContext!="function")return t;i=i.getChildContext();for(var n in i)if(!(n in e))throw Error(D(108,vb(r)||"Unknown",n));return nt({},t,i)}function Zh(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||Pn,Ca=u1.current,qe(u1,r),qe(R1,R1.current),!0}function k8(r,e,t){var i=r.stateNode;if(!i)throw Error(D(169));t?(r=X7(r,e,Ca),i.__reactInternalMemoizedMergedChildContext=r,Qe(R1),Qe(u1),qe(u1,r)):Qe(R1),qe(R1,t)}var Mi=null,h4=!1,pd=!1;function J7(r){Mi===null?Mi=[r]:Mi.push(r)}function Ax(r){h4=!0,J7(r)}function Tn(){if(!pd&&Mi!==null){pd=!0;var r=0,e=Oe;try{var t=Mi;for(Oe=1;r<t.length;r++){var i=t[r];do i=i(!0);while(i!==null)}Mi=null,h4=!1}catch(n){throw Mi!==null&&(Mi=Mi.slice(r+1)),x7(uv,Tn),n}finally{Oe=e,pd=!1}}return null}var f2=[],p2=0,e0=null,t0=0,lr=[],hr=0,Ha=null,Ei=1,Pi="";function ia(r,e){f2[p2++]=t0,f2[p2++]=e0,e0=r,t0=e}function Z7(r,e,t){lr[hr++]=Ei,lr[hr++]=Pi,lr[hr++]=Ha,Ha=r;var i=Ei;r=Pi;var n=32-Ir(i)-1;i&=~(1<<n),t+=1;var a=32-Ir(e)+n;if(30<a){var o=n-n%5;a=(i&(1<<o)-1).toString(32),i>>=o,n-=o,Ei=1<<32-Ir(e)+n|t<<n|i,Pi=a+r}else Ei=1<<a|t<<n|i,Pi=r}function wv(r){r.return!==null&&(ia(r,1),Z7(r,1,0))}function bv(r){for(;r===e0;)e0=f2[--p2],f2[p2]=null,t0=f2[--p2],f2[p2]=null;for(;r===Ha;)Ha=lr[--hr],lr[hr]=null,Pi=lr[--hr],lr[hr]=null,Ei=lr[--hr],lr[hr]=null}var Q1=null,W1=null,et=!1,Sr=null;function eg(r,e){var t=mr(5,null,null,0);t.elementType="DELETED",t.stateNode=e,t.return=r,e=r.deletions,e===null?(r.deletions=[t],r.flags|=16):e.push(t)}function E8(r,e){switch(r.tag){case 5:var t=r.type;return e=e.nodeType!==1||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(r.stateNode=e,Q1=r,W1=wn(e.firstChild),!0):!1;case 6:return e=r.pendingProps===""||e.nodeType!==3?null:e,e!==null?(r.stateNode=e,Q1=r,W1=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(t=Ha!==null?{id:Ei,overflow:Pi}:null,r.memoizedState={dehydrated:e,treeContext:t,retryLane:1073741824},t=mr(18,null,null,0),t.stateNode=e,t.return=r,r.child=t,Q1=r,W1=null,!0):!1;default:return!1}}function g3(r){return(r.mode&1)!==0&&(r.flags&128)===0}function _3(r){if(et){var e=W1;if(e){var t=e;if(!E8(r,e)){if(g3(r))throw Error(D(418));e=wn(t.nextSibling);var i=Q1;e&&E8(r,e)?eg(i,t):(r.flags=r.flags&-4097|2,et=!1,Q1=r)}}else{if(g3(r))throw Error(D(418));r.flags=r.flags&-4097|2,et=!1,Q1=r}}}function P8(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;Q1=r}function Ol(r){if(r!==Q1)return!1;if(!et)return P8(r),et=!0,!1;var e;if((e=r.tag!==3)&&!(e=r.tag!==5)&&(e=r.type,e=e!=="head"&&e!=="body"&&!v3(r.type,r.memoizedProps)),e&&(e=W1)){if(g3(r))throw tg(),Error(D(418));for(;e;)eg(r,e),e=wn(e.nextSibling)}if(P8(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(D(317));e:{for(r=r.nextSibling,e=0;r;){if(r.nodeType===8){var t=r.data;if(t==="/$"){if(e===0){W1=wn(r.nextSibling);break e}e--}else t!=="$"&&t!=="$!"&&t!=="$?"||e++}r=r.nextSibling}W1=null}}else W1=Q1?wn(r.stateNode.nextSibling):null;return!0}function tg(){for(var r=W1;r;)r=wn(r.nextSibling)}function Q2(){W1=Q1=null,et=!1}function xv(r){Sr===null?Sr=[r]:Sr.push(r)}var Vx=Bi.ReactCurrentBatchConfig;function Ar(r,e){if(r&&r.defaultProps){e=nt({},e),r=r.defaultProps;for(var t in r)e[t]===void 0&&(e[t]=r[t]);return e}return e}var r0=Ln(null),i0=null,g2=null,Mv=null;function Cv(){Mv=g2=i0=null}function Hv(r){var e=r0.current;Qe(r0),r._currentValue=e}function z3(r,e,t){for(;r!==null;){var i=r.alternate;if((r.childLanes&e)!==e?(r.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),r===t)break;r=r.return}}function S2(r,e){i0=r,Mv=g2=null,r=r.dependencies,r!==null&&r.firstContext!==null&&(r.lanes&e&&(D1=!0),r.firstContext=null)}function zr(r){var e=r._currentValue;if(Mv!==r)if(r={context:r,memoizedValue:e,next:null},g2===null){if(i0===null)throw Error(D(308));g2=r,i0.dependencies={lanes:0,firstContext:r}}else g2=g2.next=r;return e}var fa=null;function kv(r){fa===null?fa=[r]:fa.push(r)}function rg(r,e,t,i){var n=e.interleaved;return n===null?(t.next=t,kv(e)):(t.next=n.next,n.next=t),e.interleaved=t,Ri(r,i)}function Ri(r,e){r.lanes|=e;var t=r.alternate;for(t!==null&&(t.lanes|=e),t=r,r=r.return;r!==null;)r.childLanes|=e,t=r.alternate,t!==null&&(t.childLanes|=e),t=r,r=r.return;return t.tag===3?t.stateNode:null}var rn=!1;function Ev(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ig(r,e){r=r.updateQueue,e.updateQueue===r&&(e.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function Si(r,e){return{eventTime:r,lane:e,tag:0,payload:null,callback:null,next:null}}function bn(r,e,t){var i=r.updateQueue;if(i===null)return null;if(i=i.shared,He&2){var n=i.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),i.pending=e,Ri(r,t)}return n=i.interleaved,n===null?(e.next=e,kv(i)):(e.next=n.next,n.next=e),i.interleaved=e,Ri(r,t)}function mh(r,e,t){if(e=e.updateQueue,e!==null&&(e=e.shared,(t&4194240)!==0)){var i=e.lanes;i&=r.pendingLanes,t|=i,e.lanes=t,vv(r,t)}}function A8(r,e){var t=r.updateQueue,i=r.alternate;if(i!==null&&(i=i.updateQueue,t===i)){var n=null,a=null;if(t=t.firstBaseUpdate,t!==null){do{var o={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};a===null?n=a=o:a=a.next=o,t=t.next}while(t!==null);a===null?n=a=e:a=a.next=e}else n=a=e;t={baseState:i.baseState,firstBaseUpdate:n,lastBaseUpdate:a,shared:i.shared,effects:i.effects},r.updateQueue=t;return}r=t.lastBaseUpdate,r===null?t.firstBaseUpdate=e:r.next=e,t.lastBaseUpdate=e}function n0(r,e,t,i){var n=r.updateQueue;rn=!1;var a=n.firstBaseUpdate,o=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var h=r.alternate;h!==null&&(h=h.updateQueue,s=h.lastBaseUpdate,s!==o&&(s===null?h.firstBaseUpdate=l:s.next=l,h.lastBaseUpdate=c))}if(a!==null){var d=n.baseState;o=0,h=l=c=null,s=a;do{var u=s.lane,v=s.eventTime;if((i&u)===u){h!==null&&(h=h.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=r,f=s;switch(u=e,v=t,f.tag){case 1:if(m=f.payload,typeof m=="function"){d=m.call(v,d,u);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=f.payload,u=typeof m=="function"?m.call(v,d,u):m,u==null)break e;d=nt({},d,u);break e;case 2:rn=!0}}s.callback!==null&&s.lane!==0&&(r.flags|=64,u=n.effects,u===null?n.effects=[s]:u.push(s))}else v={eventTime:v,lane:u,tag:s.tag,payload:s.payload,callback:s.callback,next:null},h===null?(l=h=v,c=d):h=h.next=v,o|=u;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;u=s,s=u.next,u.next=null,n.lastBaseUpdate=u,n.shared.pending=null}}while(1);if(h===null&&(c=d),n.baseState=c,n.firstBaseUpdate=l,n.lastBaseUpdate=h,e=n.shared.interleaved,e!==null){n=e;do o|=n.lane,n=n.next;while(n!==e)}else a===null&&(n.shared.lanes=0);Ea|=o,r.lanes=o,r.memoizedState=d}}function V8(r,e,t){if(r=e.effects,e.effects=null,r!==null)for(e=0;e<r.length;e++){var i=r[e],n=i.callback;if(n!==null){if(i.callback=null,i=t,typeof n!="function")throw Error(D(191,n));n.call(i)}}}var ng=new r7.Component().refs;function y3(r,e,t,i){e=r.memoizedState,t=t(i,e),t=t==null?e:nt({},e,t),r.memoizedState=t,r.lanes===0&&(r.updateQueue.baseState=t)}var d4={isMounted:function(r){return(r=r._reactInternals)?Ia(r)===r:!1},enqueueSetState:function(r,e,t){r=r._reactInternals;var i=z1(),n=Mn(r),a=Si(i,n);a.payload=e,t!=null&&(a.callback=t),e=bn(r,a,n),e!==null&&(Rr(e,r,n,i),mh(e,r,n))},enqueueReplaceState:function(r,e,t){r=r._reactInternals;var i=z1(),n=Mn(r),a=Si(i,n);a.tag=1,a.payload=e,t!=null&&(a.callback=t),e=bn(r,a,n),e!==null&&(Rr(e,r,n,i),mh(e,r,n))},enqueueForceUpdate:function(r,e){r=r._reactInternals;var t=z1(),i=Mn(r),n=Si(t,i);n.tag=2,e!=null&&(n.callback=e),e=bn(r,n,i),e!==null&&(Rr(e,r,i,t),mh(e,r,i))}};function S8(r,e,t,i,n,a,o){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(i,a,o):e.prototype&&e.prototype.isPureReactComponent?!fc(t,i)||!fc(n,a):!0}function ag(r,e,t){var i=!1,n=Pn,a=e.contextType;return typeof a=="object"&&a!==null?a=zr(a):(n=O1(e)?Ca:u1.current,i=e.contextTypes,a=(i=i!=null)?Y2(r,n):Pn),e=new e(t,a),r.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=d4,r.stateNode=e,e._reactInternals=r,i&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=n,r.__reactInternalMemoizedMaskedChildContext=a),e}function $8(r,e,t,i){r=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(t,i),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(t,i),e.state!==r&&d4.enqueueReplaceState(e,e.state,null)}function w3(r,e,t,i){var n=r.stateNode;n.props=t,n.state=r.memoizedState,n.refs=ng,Ev(r);var a=e.contextType;typeof a=="object"&&a!==null?n.context=zr(a):(a=O1(e)?Ca:u1.current,n.context=Y2(r,a)),n.state=r.memoizedState,a=e.getDerivedStateFromProps,typeof a=="function"&&(y3(r,e,a,t),n.state=r.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(e=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),e!==n.state&&d4.enqueueReplaceState(n,n.state,null),n0(r,t,n,i),n.state=r.memoizedState),typeof n.componentDidMount=="function"&&(r.flags|=4194308)}function Zo(r,e,t){if(r=t.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(t._owner){if(t=t._owner,t){if(t.tag!==1)throw Error(D(309));var i=t.stateNode}if(!i)throw Error(D(147,r));var n=i,a=""+r;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===a?e.ref:(e=function(o){var s=n.refs;s===ng&&(s=n.refs={}),o===null?delete s[a]:s[a]=o},e._stringRef=a,e)}if(typeof r!="string")throw Error(D(284));if(!t._owner)throw Error(D(290,r))}return r}function Nl(r,e){throw r=Object.prototype.toString.call(e),Error(D(31,r==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":r))}function D8(r){var e=r._init;return e(r._payload)}function og(r){function e(_,p){if(r){var z=_.deletions;z===null?(_.deletions=[p],_.flags|=16):z.push(p)}}function t(_,p){if(!r)return null;for(;p!==null;)e(_,p),p=p.sibling;return null}function i(_,p){for(_=new Map;p!==null;)p.key!==null?_.set(p.key,p):_.set(p.index,p),p=p.sibling;return _}function n(_,p){return _=Cn(_,p),_.index=0,_.sibling=null,_}function a(_,p,z){return _.index=z,r?(z=_.alternate,z!==null?(z=z.index,z<p?(_.flags|=2,p):z):(_.flags|=2,p)):(_.flags|=1048576,p)}function o(_){return r&&_.alternate===null&&(_.flags|=2),_}function s(_,p,z,M){return p===null||p.tag!==6?(p=xd(z,_.mode,M),p.return=_,p):(p=n(p,z),p.return=_,p)}function c(_,p,z,M){var A=z.type;return A===l2?h(_,p,z.props.children,M,z.key):p!==null&&(p.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===tn&&D8(A)===p.type)?(M=n(p,z.props),M.ref=Zo(_,p,z),M.return=_,M):(M=yh(z.type,z.key,z.props,null,_.mode,M),M.ref=Zo(_,p,z),M.return=_,M)}function l(_,p,z,M){return p===null||p.tag!==4||p.stateNode.containerInfo!==z.containerInfo||p.stateNode.implementation!==z.implementation?(p=Md(z,_.mode,M),p.return=_,p):(p=n(p,z.children||[]),p.return=_,p)}function h(_,p,z,M,A){return p===null||p.tag!==7?(p=ya(z,_.mode,M,A),p.return=_,p):(p=n(p,z),p.return=_,p)}function d(_,p,z){if(typeof p=="string"&&p!==""||typeof p=="number")return p=xd(""+p,_.mode,z),p.return=_,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Pl:return z=yh(p.type,p.key,p.props,null,_.mode,z),z.ref=Zo(_,null,p),z.return=_,z;case c2:return p=Md(p,_.mode,z),p.return=_,p;case tn:var M=p._init;return d(_,M(p._payload),z)}if(ps(p)||Wo(p))return p=ya(p,_.mode,z,null),p.return=_,p;Nl(_,p)}return null}function u(_,p,z,M){var A=p!==null?p.key:null;if(typeof z=="string"&&z!==""||typeof z=="number")return A!==null?null:s(_,p,""+z,M);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case Pl:return z.key===A?c(_,p,z,M):null;case c2:return z.key===A?l(_,p,z,M):null;case tn:return A=z._init,u(_,p,A(z._payload),M)}if(ps(z)||Wo(z))return A!==null?null:h(_,p,z,M,null);Nl(_,z)}return null}function v(_,p,z,M,A){if(typeof M=="string"&&M!==""||typeof M=="number")return _=_.get(z)||null,s(p,_,""+M,A);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case Pl:return _=_.get(M.key===null?z:M.key)||null,c(p,_,M,A);case c2:return _=_.get(M.key===null?z:M.key)||null,l(p,_,M,A);case tn:var I=M._init;return v(_,p,z,I(M._payload),A)}if(ps(M)||Wo(M))return _=_.get(z)||null,h(p,_,M,A,null);Nl(p,M)}return null}function m(_,p,z,M){for(var A=null,I=null,N=p,U=p=0,Se=null;N!==null&&U<z.length;U++){N.index>U?(Se=N,N=null):Se=N.sibling;var ee=u(_,N,z[U],M);if(ee===null){N===null&&(N=Se);break}r&&N&&ee.alternate===null&&e(_,N),p=a(ee,p,U),I===null?A=ee:I.sibling=ee,I=ee,N=Se}if(U===z.length)return t(_,N),et&&ia(_,U),A;if(N===null){for(;U<z.length;U++)N=d(_,z[U],M),N!==null&&(p=a(N,p,U),I===null?A=N:I.sibling=N,I=N);return et&&ia(_,U),A}for(N=i(_,N);U<z.length;U++)Se=v(N,_,U,z[U],M),Se!==null&&(r&&Se.alternate!==null&&N.delete(Se.key===null?U:Se.key),p=a(Se,p,U),I===null?A=Se:I.sibling=Se,I=Se);return r&&N.forEach(function(Xe){return e(_,Xe)}),et&&ia(_,U),A}function f(_,p,z,M){var A=Wo(z);if(typeof A!="function")throw Error(D(150));if(z=A.call(z),z==null)throw Error(D(151));for(var I=A=null,N=p,U=p=0,Se=null,ee=z.next();N!==null&&!ee.done;U++,ee=z.next()){N.index>U?(Se=N,N=null):Se=N.sibling;var Xe=u(_,N,ee.value,M);if(Xe===null){N===null&&(N=Se);break}r&&N&&Xe.alternate===null&&e(_,N),p=a(Xe,p,U),I===null?A=Xe:I.sibling=Xe,I=Xe,N=Se}if(ee.done)return t(_,N),et&&ia(_,U),A;if(N===null){for(;!ee.done;U++,ee=z.next())ee=d(_,ee.value,M),ee!==null&&(p=a(ee,p,U),I===null?A=ee:I.sibling=ee,I=ee);return et&&ia(_,U),A}for(N=i(_,N);!ee.done;U++,ee=z.next())ee=v(N,_,U,ee.value,M),ee!==null&&(r&&ee.alternate!==null&&N.delete(ee.key===null?U:ee.key),p=a(ee,p,U),I===null?A=ee:I.sibling=ee,I=ee);return r&&N.forEach(function(br){return e(_,br)}),et&&ia(_,U),A}function C(_,p,z,M){if(typeof z=="object"&&z!==null&&z.type===l2&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case Pl:e:{for(var A=z.key,I=p;I!==null;){if(I.key===A){if(A=z.type,A===l2){if(I.tag===7){t(_,I.sibling),p=n(I,z.props.children),p.return=_,_=p;break e}}else if(I.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===tn&&D8(A)===I.type){t(_,I.sibling),p=n(I,z.props),p.ref=Zo(_,I,z),p.return=_,_=p;break e}t(_,I);break}else e(_,I);I=I.sibling}z.type===l2?(p=ya(z.props.children,_.mode,M,z.key),p.return=_,_=p):(M=yh(z.type,z.key,z.props,null,_.mode,M),M.ref=Zo(_,p,z),M.return=_,_=M)}return o(_);case c2:e:{for(I=z.key;p!==null;){if(p.key===I)if(p.tag===4&&p.stateNode.containerInfo===z.containerInfo&&p.stateNode.implementation===z.implementation){t(_,p.sibling),p=n(p,z.children||[]),p.return=_,_=p;break e}else{t(_,p);break}else e(_,p);p=p.sibling}p=Md(z,_.mode,M),p.return=_,_=p}return o(_);case tn:return I=z._init,C(_,p,I(z._payload),M)}if(ps(z))return m(_,p,z,M);if(Wo(z))return f(_,p,z,M);Nl(_,z)}return typeof z=="string"&&z!==""||typeof z=="number"?(z=""+z,p!==null&&p.tag===6?(t(_,p.sibling),p=n(p,z),p.return=_,_=p):(t(_,p),p=xd(z,_.mode,M),p.return=_,_=p),o(_)):t(_,p)}return C}var X2=og(!0),sg=og(!1),tl={},si=Ln(tl),zc=Ln(tl),yc=Ln(tl);function pa(r){if(r===tl)throw Error(D(174));return r}function Pv(r,e){switch(qe(yc,e),qe(zc,r),qe(si,tl),r=e.nodeType,r){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Z5(null,"");break;default:r=r===8?e.parentNode:e,e=r.namespaceURI||null,r=r.tagName,e=Z5(e,r)}Qe(si),qe(si,e)}function J2(){Qe(si),Qe(zc),Qe(yc)}function cg(r){pa(yc.current);var e=pa(si.current),t=Z5(e,r.type);e!==t&&(qe(zc,r),qe(si,t))}function Av(r){zc.current===r&&(Qe(si),Qe(zc))}var rt=Ln(0);function a0(r){for(var e=r;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===r)break;for(;e.sibling===null;){if(e.return===null||e.return===r)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var gd=[];function Vv(){for(var r=0;r<gd.length;r++)gd[r]._workInProgressVersionPrimary=null;gd.length=0}var fh=Bi.ReactCurrentDispatcher,_d=Bi.ReactCurrentBatchConfig,ka=0,it=null,Ht=null,Tt=null,o0=!1,Fs=!1,wc=0,Sx=0;function i1(){throw Error(D(321))}function Sv(r,e){if(e===null)return!1;for(var t=0;t<e.length&&t<r.length;t++)if(!Or(r[t],e[t]))return!1;return!0}function $v(r,e,t,i,n,a){if(ka=a,it=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,fh.current=r===null||r.memoizedState===null?Tx:Ix,r=t(i,n),Fs){a=0;do{if(Fs=!1,wc=0,25<=a)throw Error(D(301));a+=1,Tt=Ht=null,e.updateQueue=null,fh.current=Rx,r=t(i,n)}while(Fs)}if(fh.current=s0,e=Ht!==null&&Ht.next!==null,ka=0,Tt=Ht=it=null,o0=!1,e)throw Error(D(300));return r}function Dv(){var r=wc!==0;return wc=0,r}function Jr(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tt===null?it.memoizedState=Tt=r:Tt=Tt.next=r,Tt}function yr(){if(Ht===null){var r=it.alternate;r=r!==null?r.memoizedState:null}else r=Ht.next;var e=Tt===null?it.memoizedState:Tt.next;if(e!==null)Tt=e,Ht=r;else{if(r===null)throw Error(D(310));Ht=r,r={memoizedState:Ht.memoizedState,baseState:Ht.baseState,baseQueue:Ht.baseQueue,queue:Ht.queue,next:null},Tt===null?it.memoizedState=Tt=r:Tt=Tt.next=r}return Tt}function bc(r,e){return typeof e=="function"?e(r):e}function zd(r){var e=yr(),t=e.queue;if(t===null)throw Error(D(311));t.lastRenderedReducer=r;var i=Ht,n=i.baseQueue,a=t.pending;if(a!==null){if(n!==null){var o=n.next;n.next=a.next,a.next=o}i.baseQueue=n=a,t.pending=null}if(n!==null){a=n.next,i=i.baseState;var s=o=null,c=null,l=a;do{var h=l.lane;if((ka&h)===h)c!==null&&(c=c.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),i=l.hasEagerState?l.eagerState:r(i,l.action);else{var d={lane:h,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};c===null?(s=c=d,o=i):c=c.next=d,it.lanes|=h,Ea|=h}l=l.next}while(l!==null&&l!==a);c===null?o=i:c.next=s,Or(i,e.memoizedState)||(D1=!0),e.memoizedState=i,e.baseState=o,e.baseQueue=c,t.lastRenderedState=i}if(r=t.interleaved,r!==null){n=r;do a=n.lane,it.lanes|=a,Ea|=a,n=n.next;while(n!==r)}else n===null&&(t.lanes=0);return[e.memoizedState,t.dispatch]}function yd(r){var e=yr(),t=e.queue;if(t===null)throw Error(D(311));t.lastRenderedReducer=r;var i=t.dispatch,n=t.pending,a=e.memoizedState;if(n!==null){t.pending=null;var o=n=n.next;do a=r(a,o.action),o=o.next;while(o!==n);Or(a,e.memoizedState)||(D1=!0),e.memoizedState=a,e.baseQueue===null&&(e.baseState=a),t.lastRenderedState=a}return[a,i]}function lg(){}function hg(r,e){var t=it,i=yr(),n=e(),a=!Or(i.memoizedState,n);if(a&&(i.memoizedState=n,D1=!0),i=i.queue,Lv(vg.bind(null,t,i,r),[r]),i.getSnapshot!==e||a||Tt!==null&&Tt.memoizedState.tag&1){if(t.flags|=2048,xc(9,ug.bind(null,t,i,n,e),void 0,null),Ot===null)throw Error(D(349));ka&30||dg(t,e,n)}return n}function dg(r,e,t){r.flags|=16384,r={getSnapshot:e,value:t},e=it.updateQueue,e===null?(e={lastEffect:null,stores:null},it.updateQueue=e,e.stores=[r]):(t=e.stores,t===null?e.stores=[r]:t.push(r))}function ug(r,e,t,i){e.value=t,e.getSnapshot=i,mg(e)&&fg(r)}function vg(r,e,t){return t(function(){mg(e)&&fg(r)})}function mg(r){var e=r.getSnapshot;r=r.value;try{var t=e();return!Or(r,t)}catch{return!0}}function fg(r){var e=Ri(r,1);e!==null&&Rr(e,r,1,-1)}function L8(r){var e=Jr();return typeof r=="function"&&(r=r()),e.memoizedState=e.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bc,lastRenderedState:r},e.queue=r,r=r.dispatch=Lx.bind(null,it,r),[e.memoizedState,r]}function xc(r,e,t,i){return r={tag:r,create:e,destroy:t,deps:i,next:null},e=it.updateQueue,e===null?(e={lastEffect:null,stores:null},it.updateQueue=e,e.lastEffect=r.next=r):(t=e.lastEffect,t===null?e.lastEffect=r.next=r:(i=t.next,t.next=r,r.next=i,e.lastEffect=r)),r}function pg(){return yr().memoizedState}function ph(r,e,t,i){var n=Jr();it.flags|=r,n.memoizedState=xc(1|e,t,void 0,i===void 0?null:i)}function u4(r,e,t,i){var n=yr();i=i===void 0?null:i;var a=void 0;if(Ht!==null){var o=Ht.memoizedState;if(a=o.destroy,i!==null&&Sv(i,o.deps)){n.memoizedState=xc(e,t,a,i);return}}it.flags|=r,n.memoizedState=xc(1|e,t,a,i)}function T8(r,e){return ph(8390656,8,r,e)}function Lv(r,e){return u4(2048,8,r,e)}function gg(r,e){return u4(4,2,r,e)}function _g(r,e){return u4(4,4,r,e)}function zg(r,e){if(typeof e=="function")return r=r(),e(r),function(){e(null)};if(e!=null)return r=r(),e.current=r,function(){e.current=null}}function yg(r,e,t){return t=t!=null?t.concat([r]):null,u4(4,4,zg.bind(null,e,r),t)}function Tv(){}function wg(r,e){var t=yr();e=e===void 0?null:e;var i=t.memoizedState;return i!==null&&e!==null&&Sv(e,i[1])?i[0]:(t.memoizedState=[r,e],r)}function bg(r,e){var t=yr();e=e===void 0?null:e;var i=t.memoizedState;return i!==null&&e!==null&&Sv(e,i[1])?i[0]:(r=r(),t.memoizedState=[r,e],r)}function xg(r,e,t){return ka&21?(Or(t,e)||(t=H7(),it.lanes|=t,Ea|=t,r.baseState=!0),e):(r.baseState&&(r.baseState=!1,D1=!0),r.memoizedState=t)}function $x(r,e){var t=Oe;Oe=t!==0&&4>t?t:4,r(!0);var i=_d.transition;_d.transition={};try{r(!1),e()}finally{Oe=t,_d.transition=i}}function Mg(){return yr().memoizedState}function Dx(r,e,t){var i=Mn(r);if(t={lane:i,action:t,hasEagerState:!1,eagerState:null,next:null},Cg(r))Hg(e,t);else if(t=rg(r,e,t,i),t!==null){var n=z1();Rr(t,r,i,n),kg(t,e,i)}}function Lx(r,e,t){var i=Mn(r),n={lane:i,action:t,hasEagerState:!1,eagerState:null,next:null};if(Cg(r))Hg(e,n);else{var a=r.alternate;if(r.lanes===0&&(a===null||a.lanes===0)&&(a=e.lastRenderedReducer,a!==null))try{var o=e.lastRenderedState,s=a(o,t);if(n.hasEagerState=!0,n.eagerState=s,Or(s,o)){var c=e.interleaved;c===null?(n.next=n,kv(e)):(n.next=c.next,c.next=n),e.interleaved=n;return}}catch{}finally{}t=rg(r,e,n,i),t!==null&&(n=z1(),Rr(t,r,i,n),kg(t,e,i))}}function Cg(r){var e=r.alternate;return r===it||e!==null&&e===it}function Hg(r,e){Fs=o0=!0;var t=r.pending;t===null?e.next=e:(e.next=t.next,t.next=e),r.pending=e}function kg(r,e,t){if(t&4194240){var i=e.lanes;i&=r.pendingLanes,t|=i,e.lanes=t,vv(r,t)}}var s0={readContext:zr,useCallback:i1,useContext:i1,useEffect:i1,useImperativeHandle:i1,useInsertionEffect:i1,useLayoutEffect:i1,useMemo:i1,useReducer:i1,useRef:i1,useState:i1,useDebugValue:i1,useDeferredValue:i1,useTransition:i1,useMutableSource:i1,useSyncExternalStore:i1,useId:i1,unstable_isNewReconciler:!1},Tx={readContext:zr,useCallback:function(r,e){return Jr().memoizedState=[r,e===void 0?null:e],r},useContext:zr,useEffect:T8,useImperativeHandle:function(r,e,t){return t=t!=null?t.concat([r]):null,ph(4194308,4,zg.bind(null,e,r),t)},useLayoutEffect:function(r,e){return ph(4194308,4,r,e)},useInsertionEffect:function(r,e){return ph(4,2,r,e)},useMemo:function(r,e){var t=Jr();return e=e===void 0?null:e,r=r(),t.memoizedState=[r,e],r},useReducer:function(r,e,t){var i=Jr();return e=t!==void 0?t(e):e,i.memoizedState=i.baseState=e,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:e},i.queue=r,r=r.dispatch=Dx.bind(null,it,r),[i.memoizedState,r]},useRef:function(r){var e=Jr();return r={current:r},e.memoizedState=r},useState:L8,useDebugValue:Tv,useDeferredValue:function(r){return Jr().memoizedState=r},useTransition:function(){var r=L8(!1),e=r[0];return r=$x.bind(null,r[1]),Jr().memoizedState=r,[e,r]},useMutableSource:function(){},useSyncExternalStore:function(r,e,t){var i=it,n=Jr();if(et){if(t===void 0)throw Error(D(407));t=t()}else{if(t=e(),Ot===null)throw Error(D(349));ka&30||dg(i,e,t)}n.memoizedState=t;var a={value:t,getSnapshot:e};return n.queue=a,T8(vg.bind(null,i,a,r),[r]),i.flags|=2048,xc(9,ug.bind(null,i,a,t,e),void 0,null),t},useId:function(){var r=Jr(),e=Ot.identifierPrefix;if(et){var t=Pi,i=Ei;t=(i&~(1<<32-Ir(i)-1)).toString(32)+t,e=":"+e+"R"+t,t=wc++,0<t&&(e+="H"+t.toString(32)),e+=":"}else t=Sx++,e=":"+e+"r"+t.toString(32)+":";return r.memoizedState=e},unstable_isNewReconciler:!1},Ix={readContext:zr,useCallback:wg,useContext:zr,useEffect:Lv,useImperativeHandle:yg,useInsertionEffect:gg,useLayoutEffect:_g,useMemo:bg,useReducer:zd,useRef:pg,useState:function(){return zd(bc)},useDebugValue:Tv,useDeferredValue:function(r){var e=yr();return xg(e,Ht.memoizedState,r)},useTransition:function(){var r=zd(bc)[0],e=yr().memoizedState;return[r,e]},useMutableSource:lg,useSyncExternalStore:hg,useId:Mg,unstable_isNewReconciler:!1},Rx={readContext:zr,useCallback:wg,useContext:zr,useEffect:Lv,useImperativeHandle:yg,useInsertionEffect:gg,useLayoutEffect:_g,useMemo:bg,useReducer:yd,useRef:pg,useState:function(){return yd(bc)},useDebugValue:Tv,useDeferredValue:function(r){var e=yr();return Ht===null?e.memoizedState=r:xg(e,Ht.memoizedState,r)},useTransition:function(){var r=yd(bc)[0],e=yr().memoizedState;return[r,e]},useMutableSource:lg,useSyncExternalStore:hg,useId:Mg,unstable_isNewReconciler:!1};function Z2(r,e){try{var t="",i=e;do t+=ub(i),i=i.return;while(i);var n=t}catch(a){n=`
|
|
37
|
+
`+n[o].replace(" at new "," at ");return r.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",r.displayName)),c}while(1<=o&&0<=s);break}}}finally{td=!1,Error.prepareStackTrace=t}return(r=r?r.displayName||r.name:"")?fs(r):""}function ub(r){switch(r.tag){case 5:return fs(r.type);case 16:return fs("Lazy");case 13:return fs("Suspense");case 19:return fs("SuspenseList");case 0:case 2:case 15:return r=rd(r.type,!1),r;case 11:return r=rd(r.type.render,!1),r;case 1:return r=rd(r.type,!0),r;default:return""}}function W5(r){if(r==null)return null;if(typeof r=="function")return r.displayName||r.name||null;if(typeof r=="string")return r;switch(r){case l2:return"Fragment";case c2:return"Portal";case q5:return"Profiler";case cv:return"StrictMode";case G5:return"Suspense";case K5:return"SuspenseList"}if(typeof r=="object")switch(r.$$typeof){case a7:return(r.displayName||"Context")+".Consumer";case n7:return(r._context.displayName||"Context")+".Provider";case lv:var e=r.render;return r=r.displayName,r||(r=e.displayName||e.name||"",r=r!==""?"ForwardRef("+r+")":"ForwardRef"),r;case hv:return e=r.displayName||null,e!==null?e:W5(r.type)||"Memo";case rn:e=r._payload,r=r._init;try{return W5(r(e))}catch{}}return null}function vb(r){var e=r.type;switch(r.tag){case 24:return"Cache";case 9:return(e.displayName||"Context")+".Consumer";case 10:return(e._context.displayName||"Context")+".Provider";case 18:return"DehydratedFragment";case 11:return r=e.render,r=r.displayName||r.name||"",e.displayName||(r!==""?"ForwardRef("+r+")":"ForwardRef");case 7:return"Fragment";case 5:return e;case 4:return"Portal";case 3:return"Root";case 6:return"Text";case 16:return W5(e);case 8:return e===cv?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e}return null}function Pn(r){switch(typeof r){case"boolean":case"number":case"string":case"undefined":return r;case"object":return r;default:return""}}function s7(r){var e=r.type;return(r=r.nodeName)&&r.toLowerCase()==="input"&&(e==="checkbox"||e==="radio")}function mb(r){var e=s7(r)?"checked":"value",t=Object.getOwnPropertyDescriptor(r.constructor.prototype,e),i=""+r[e];if(!r.hasOwnProperty(e)&&typeof t<"u"&&typeof t.get=="function"&&typeof t.set=="function"){var n=t.get,a=t.set;return Object.defineProperty(r,e,{configurable:!0,get:function(){return n.call(this)},set:function(o){i=""+o,a.call(this,o)}}),Object.defineProperty(r,e,{enumerable:t.enumerable}),{getValue:function(){return i},setValue:function(o){i=""+o},stopTracking:function(){r._valueTracker=null,delete r[e]}}}}function Al(r){r._valueTracker||(r._valueTracker=mb(r))}function c7(r){if(!r)return!1;var e=r._valueTracker;if(!e)return!0;var t=e.getValue(),i="";return r&&(i=s7(r)?r.checked?"true":"false":r.value),r=i,r!==t?(e.setValue(r),!0):!1}function Bh(r){if(r=r||(typeof document<"u"?document:void 0),typeof r>"u")return null;try{return r.activeElement||r.body}catch{return r.body}}function Y5(r,e){var t=e.checked;return nt({},e,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:t??r._wrapperState.initialChecked})}function Z6(r,e){var t=e.defaultValue==null?"":e.defaultValue,i=e.checked!=null?e.checked:e.defaultChecked;t=Pn(e.value!=null?e.value:t),r._wrapperState={initialChecked:i,initialValue:t,controlled:e.type==="checkbox"||e.type==="radio"?e.checked!=null:e.value!=null}}function l7(r,e){e=e.checked,e!=null&&sv(r,"checked",e,!1)}function Q5(r,e){l7(r,e);var t=Pn(e.value),i=e.type;if(t!=null)i==="number"?(t===0&&r.value===""||r.value!=t)&&(r.value=""+t):r.value!==""+t&&(r.value=""+t);else if(i==="submit"||i==="reset"){r.removeAttribute("value");return}e.hasOwnProperty("value")?X5(r,e.type,t):e.hasOwnProperty("defaultValue")&&X5(r,e.type,Pn(e.defaultValue)),e.checked==null&&e.defaultChecked!=null&&(r.defaultChecked=!!e.defaultChecked)}function e8(r,e,t){if(e.hasOwnProperty("value")||e.hasOwnProperty("defaultValue")){var i=e.type;if(!(i!=="submit"&&i!=="reset"||e.value!==void 0&&e.value!==null))return;e=""+r._wrapperState.initialValue,t||e===r.value||(r.value=e),r.defaultValue=e}t=r.name,t!==""&&(r.name=""),r.defaultChecked=!!r._wrapperState.initialChecked,t!==""&&(r.name=t)}function X5(r,e,t){(e!=="number"||Bh(r.ownerDocument)!==r)&&(t==null?r.defaultValue=""+r._wrapperState.initialValue:r.defaultValue!==""+t&&(r.defaultValue=""+t))}var ps=Array.isArray;function E2(r,e,t,i){if(r=r.options,e){e={};for(var n=0;n<t.length;n++)e["$"+t[n]]=!0;for(t=0;t<r.length;t++)n=e.hasOwnProperty("$"+r[t].value),r[t].selected!==n&&(r[t].selected=n),n&&i&&(r[t].defaultSelected=!0)}else{for(t=""+Pn(t),e=null,n=0;n<r.length;n++){if(r[n].value===t){r[n].selected=!0,i&&(r[n].defaultSelected=!0);return}e!==null||r[n].disabled||(e=r[n])}e!==null&&(e.selected=!0)}}function J5(r,e){if(e.dangerouslySetInnerHTML!=null)throw Error(D(91));return nt({},e,{value:void 0,defaultValue:void 0,children:""+r._wrapperState.initialValue})}function t8(r,e){var t=e.value;if(t==null){if(t=e.children,e=e.defaultValue,t!=null){if(e!=null)throw Error(D(92));if(ps(t)){if(1<t.length)throw Error(D(93));t=t[0]}e=t}e==null&&(e=""),t=e}r._wrapperState={initialValue:Pn(t)}}function h7(r,e){var t=Pn(e.value),i=Pn(e.defaultValue);t!=null&&(t=""+t,t!==r.value&&(r.value=t),e.defaultValue==null&&r.defaultValue!==t&&(r.defaultValue=t)),i!=null&&(r.defaultValue=""+i)}function r8(r){var e=r.textContent;e===r._wrapperState.initialValue&&e!==""&&e!==null&&(r.value=e)}function d7(r){switch(r){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 Z5(r,e){return r==null||r==="http://www.w3.org/1999/xhtml"?d7(e):r==="http://www.w3.org/2000/svg"&&e==="foreignObject"?"http://www.w3.org/1999/xhtml":r}var Vl,u7=function(r){return typeof MSApp<"u"&&MSApp.execUnsafeLocalFunction?function(e,t,i,n){MSApp.execUnsafeLocalFunction(function(){return r(e,t,i,n)})}:r}(function(r,e){if(r.namespaceURI!=="http://www.w3.org/2000/svg"||"innerHTML"in r)r.innerHTML=e;else{for(Vl=Vl||document.createElement("div"),Vl.innerHTML="<svg>"+e.valueOf().toString()+"</svg>",e=Vl.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;e.firstChild;)r.appendChild(e.firstChild)}});function lc(r,e){if(e){var t=r.firstChild;if(t&&t===r.lastChild&&t.nodeType===3){t.nodeValue=e;return}}r.textContent=e}var Is={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},fb=["Webkit","ms","Moz","O"];Object.keys(Is).forEach(function(r){fb.forEach(function(e){e=e+r.charAt(0).toUpperCase()+r.substring(1),Is[e]=Is[r]})});function v7(r,e,t){return e==null||typeof e=="boolean"||e===""?"":t||typeof e!="number"||e===0||Is.hasOwnProperty(r)&&Is[r]?(""+e).trim():e+"px"}function m7(r,e){r=r.style;for(var t in e)if(e.hasOwnProperty(t)){var i=t.indexOf("--")===0,n=v7(t,e[t],i);t==="float"&&(t="cssFloat"),i?r.setProperty(t,n):r[t]=n}}var pb=nt({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 e3(r,e){if(e){if(pb[r]&&(e.children!=null||e.dangerouslySetInnerHTML!=null))throw Error(D(137,r));if(e.dangerouslySetInnerHTML!=null){if(e.children!=null)throw Error(D(60));if(typeof e.dangerouslySetInnerHTML!="object"||!("__html"in e.dangerouslySetInnerHTML))throw Error(D(61))}if(e.style!=null&&typeof e.style!="object")throw Error(D(62))}}function t3(r,e){if(r.indexOf("-")===-1)return typeof e.is=="string";switch(r){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 r3=null;function dv(r){return r=r.target||r.srcElement||window,r.correspondingUseElement&&(r=r.correspondingUseElement),r.nodeType===3?r.parentNode:r}var i3=null,P2=null,A2=null;function i8(r){if(r=el(r)){if(typeof i3!="function")throw Error(D(280));var e=r.stateNode;e&&(e=l4(e),i3(r.stateNode,r.type,e))}}function f7(r){P2?A2?A2.push(r):A2=[r]:P2=r}function p7(){if(P2){var r=P2,e=A2;if(A2=P2=null,i8(r),e)for(r=0;r<e.length;r++)i8(e[r])}}function g7(r,e){return r(e)}function _7(){}var id=!1;function z7(r,e,t){if(id)return r(e,t);id=!0;try{return g7(r,e,t)}finally{id=!1,(P2!==null||A2!==null)&&(_7(),p7())}}function hc(r,e){var t=r.stateNode;if(t===null)return null;var i=l4(t);if(i===null)return null;t=i[e];e:switch(e){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(i=!i.disabled)||(r=r.type,i=!(r==="button"||r==="input"||r==="select"||r==="textarea")),r=!i;break e;default:r=!1}if(r)return null;if(t&&typeof t!="function")throw Error(D(231,e,typeof t));return t}var n3=!1;if(Ii)try{var Yo={};Object.defineProperty(Yo,"passive",{get:function(){n3=!0}}),window.addEventListener("test",Yo,Yo),window.removeEventListener("test",Yo,Yo)}catch{n3=!1}function gb(r,e,t,i,n,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{e.apply(t,l)}catch(h){this.onError(h)}}var Rs=!1,jh=null,qh=!1,a3=null,_b={onError:function(r){Rs=!0,jh=r}};function zb(r,e,t,i,n,a,o,s,c){Rs=!1,jh=null,gb.apply(_b,arguments)}function yb(r,e,t,i,n,a,o,s,c){if(zb.apply(this,arguments),Rs){if(Rs){var l=jh;Rs=!1,jh=null}else throw Error(D(198));qh||(qh=!0,a3=l)}}function Ia(r){var e=r,t=r;if(r.alternate)for(;e.return;)e=e.return;else{r=e;do e=r,e.flags&4098&&(t=e.return),r=e.return;while(r)}return e.tag===3?t:null}function y7(r){if(r.tag===13){var e=r.memoizedState;if(e===null&&(r=r.alternate,r!==null&&(e=r.memoizedState)),e!==null)return e.dehydrated}return null}function n8(r){if(Ia(r)!==r)throw Error(D(188))}function wb(r){var e=r.alternate;if(!e){if(e=Ia(r),e===null)throw Error(D(188));return e!==r?null:r}for(var t=r,i=e;;){var n=t.return;if(n===null)break;var a=n.alternate;if(a===null){if(i=n.return,i!==null){t=i;continue}break}if(n.child===a.child){for(a=n.child;a;){if(a===t)return n8(n),r;if(a===i)return n8(n),e;a=a.sibling}throw Error(D(188))}if(t.return!==i.return)t=n,i=a;else{for(var o=!1,s=n.child;s;){if(s===t){o=!0,t=n,i=a;break}if(s===i){o=!0,i=n,t=a;break}s=s.sibling}if(!o){for(s=a.child;s;){if(s===t){o=!0,t=a,i=n;break}if(s===i){o=!0,i=a,t=n;break}s=s.sibling}if(!o)throw Error(D(189))}}if(t.alternate!==i)throw Error(D(190))}if(t.tag!==3)throw Error(D(188));return t.stateNode.current===t?r:e}function w7(r){return r=wb(r),r!==null?b7(r):null}function b7(r){if(r.tag===5||r.tag===6)return r;for(r=r.child;r!==null;){var e=b7(r);if(e!==null)return e;r=r.sibling}return null}var x7=J1.unstable_scheduleCallback,a8=J1.unstable_cancelCallback,bb=J1.unstable_shouldYield,xb=J1.unstable_requestPaint,vt=J1.unstable_now,Mb=J1.unstable_getCurrentPriorityLevel,uv=J1.unstable_ImmediatePriority,M7=J1.unstable_UserBlockingPriority,Gh=J1.unstable_NormalPriority,Cb=J1.unstable_LowPriority,C7=J1.unstable_IdlePriority,a4=null,oi=null;function Hb(r){if(oi&&typeof oi.onCommitFiberRoot=="function")try{oi.onCommitFiberRoot(a4,r,void 0,(r.current.flags&128)===128)}catch{}}var Ir=Math.clz32?Math.clz32:Pb,kb=Math.log,Eb=Math.LN2;function Pb(r){return r>>>=0,r===0?32:31-(kb(r)/Eb|0)|0}var Sl=64,$l=4194304;function gs(r){switch(r&-r){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 r&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return r&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return r}}function Kh(r,e){var t=r.pendingLanes;if(t===0)return 0;var i=0,n=r.suspendedLanes,a=r.pingedLanes,o=t&268435455;if(o!==0){var s=o&~n;s!==0?i=gs(s):(a&=o,a!==0&&(i=gs(a)))}else o=t&~n,o!==0?i=gs(o):a!==0&&(i=gs(a));if(i===0)return 0;if(e!==0&&e!==i&&!(e&n)&&(n=i&-i,a=e&-e,n>=a||n===16&&(a&4194240)!==0))return e;if(i&4&&(i|=t&16),e=r.entangledLanes,e!==0)for(r=r.entanglements,e&=i;0<e;)t=31-Ir(e),n=1<<t,i|=r[t],e&=~n;return i}function Ab(r,e){switch(r){case 1:case 2:case 4:return e+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Vb(r,e){for(var t=r.suspendedLanes,i=r.pingedLanes,n=r.expirationTimes,a=r.pendingLanes;0<a;){var o=31-Ir(a),s=1<<o,c=n[o];c===-1?(!(s&t)||s&i)&&(n[o]=Ab(s,e)):c<=e&&(r.expiredLanes|=s),a&=~s}}function o3(r){return r=r.pendingLanes&-1073741825,r!==0?r:r&1073741824?1073741824:0}function H7(){var r=Sl;return Sl<<=1,!(Sl&4194240)&&(Sl=64),r}function nd(r){for(var e=[],t=0;31>t;t++)e.push(r);return e}function Jc(r,e,t){r.pendingLanes|=e,e!==536870912&&(r.suspendedLanes=0,r.pingedLanes=0),r=r.eventTimes,e=31-Ir(e),r[e]=t}function Sb(r,e){var t=r.pendingLanes&~e;r.pendingLanes=e,r.suspendedLanes=0,r.pingedLanes=0,r.expiredLanes&=e,r.mutableReadLanes&=e,r.entangledLanes&=e,e=r.entanglements;var i=r.eventTimes;for(r=r.expirationTimes;0<t;){var n=31-Ir(t),a=1<<n;e[n]=0,i[n]=-1,r[n]=-1,t&=~a}}function vv(r,e){var t=r.entangledLanes|=e;for(r=r.entanglements;t;){var i=31-Ir(t),n=1<<i;n&e|r[i]&e&&(r[i]|=e),t&=~n}}var Oe=0;function k7(r){return r&=-r,1<r?4<r?r&268435455?16:536870912:4:1}var E7,mv,P7,A7,V7,s3=!1,Dl=[],zn=null,yn=null,wn=null,dc=new Map,uc=new Map,sn=[],$b="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset submit".split(" ");function o8(r,e){switch(r){case"focusin":case"focusout":zn=null;break;case"dragenter":case"dragleave":yn=null;break;case"mouseover":case"mouseout":wn=null;break;case"pointerover":case"pointerout":dc.delete(e.pointerId);break;case"gotpointercapture":case"lostpointercapture":uc.delete(e.pointerId)}}function Qo(r,e,t,i,n,a){return r===null||r.nativeEvent!==a?(r={blockedOn:e,domEventName:t,eventSystemFlags:i,nativeEvent:a,targetContainers:[n]},e!==null&&(e=el(e),e!==null&&mv(e)),r):(r.eventSystemFlags|=i,e=r.targetContainers,n!==null&&e.indexOf(n)===-1&&e.push(n),r)}function Db(r,e,t,i,n){switch(e){case"focusin":return zn=Qo(zn,r,e,t,i,n),!0;case"dragenter":return yn=Qo(yn,r,e,t,i,n),!0;case"mouseover":return wn=Qo(wn,r,e,t,i,n),!0;case"pointerover":var a=n.pointerId;return dc.set(a,Qo(dc.get(a)||null,r,e,t,i,n)),!0;case"gotpointercapture":return a=n.pointerId,uc.set(a,Qo(uc.get(a)||null,r,e,t,i,n)),!0}return!1}function S7(r){var e=ma(r.target);if(e!==null){var t=Ia(e);if(t!==null){if(e=t.tag,e===13){if(e=y7(t),e!==null){r.blockedOn=e,V7(r.priority,function(){P7(t)});return}}else if(e===3&&t.stateNode.current.memoizedState.isDehydrated){r.blockedOn=t.tag===3?t.stateNode.containerInfo:null;return}}}r.blockedOn=null}function dh(r){if(r.blockedOn!==null)return!1;for(var e=r.targetContainers;0<e.length;){var t=c3(r.domEventName,r.eventSystemFlags,e[0],r.nativeEvent);if(t===null){t=r.nativeEvent;var i=new t.constructor(t.type,t);r3=i,t.target.dispatchEvent(i),r3=null}else return e=el(t),e!==null&&mv(e),r.blockedOn=t,!1;e.shift()}return!0}function s8(r,e,t){dh(r)&&t.delete(e)}function Lb(){s3=!1,zn!==null&&dh(zn)&&(zn=null),yn!==null&&dh(yn)&&(yn=null),wn!==null&&dh(wn)&&(wn=null),dc.forEach(s8),uc.forEach(s8)}function Xo(r,e){r.blockedOn===e&&(r.blockedOn=null,s3||(s3=!0,J1.unstable_scheduleCallback(J1.unstable_NormalPriority,Lb)))}function vc(r){function e(n){return Xo(n,r)}if(0<Dl.length){Xo(Dl[0],r);for(var t=1;t<Dl.length;t++){var i=Dl[t];i.blockedOn===r&&(i.blockedOn=null)}}for(zn!==null&&Xo(zn,r),yn!==null&&Xo(yn,r),wn!==null&&Xo(wn,r),dc.forEach(e),uc.forEach(e),t=0;t<sn.length;t++)i=sn[t],i.blockedOn===r&&(i.blockedOn=null);for(;0<sn.length&&(t=sn[0],t.blockedOn===null);)S7(t),t.blockedOn===null&&sn.shift()}var V2=ji.ReactCurrentBatchConfig,Wh=!0;function Tb(r,e,t,i){var n=Oe,a=V2.transition;V2.transition=null;try{Oe=1,fv(r,e,t,i)}finally{Oe=n,V2.transition=a}}function Ib(r,e,t,i){var n=Oe,a=V2.transition;V2.transition=null;try{Oe=4,fv(r,e,t,i)}finally{Oe=n,V2.transition=a}}function fv(r,e,t,i){if(Wh){var n=c3(r,e,t,i);if(n===null)md(r,e,i,Yh,t),o8(r,i);else if(Db(n,r,e,t,i))i.stopPropagation();else if(o8(r,i),e&4&&-1<$b.indexOf(r)){for(;n!==null;){var a=el(n);if(a!==null&&E7(a),a=c3(r,e,t,i),a===null&&md(r,e,i,Yh,t),a===n)break;n=a}n!==null&&i.stopPropagation()}else md(r,e,i,null,t)}}var Yh=null;function c3(r,e,t,i){if(Yh=null,r=dv(i),r=ma(r),r!==null)if(e=Ia(r),e===null)r=null;else if(t=e.tag,t===13){if(r=y7(e),r!==null)return r;r=null}else if(t===3){if(e.stateNode.current.memoizedState.isDehydrated)return e.tag===3?e.stateNode.containerInfo:null;r=null}else e!==r&&(r=null);return Yh=r,null}function $7(r){switch(r){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(Mb()){case uv:return 1;case M7:return 4;case Gh:case Cb:return 16;case C7:return 536870912;default:return 16}default:return 16}}var fn=null,pv=null,uh=null;function D7(){if(uh)return uh;var r,e=pv,t=e.length,i,n="value"in fn?fn.value:fn.textContent,a=n.length;for(r=0;r<t&&e[r]===n[r];r++);var o=t-r;for(i=1;i<=o&&e[t-i]===n[a-i];i++);return uh=n.slice(r,1<i?1-i:void 0)}function vh(r){var e=r.keyCode;return"charCode"in r?(r=r.charCode,r===0&&e===13&&(r=13)):r=e,r===10&&(r=13),32<=r||r===13?r:0}function Ll(){return!0}function c8(){return!1}function ir(r){function e(t,i,n,a,o){this._reactName=t,this._targetInst=n,this.type=i,this.nativeEvent=a,this.target=o,this.currentTarget=null;for(var s in r)r.hasOwnProperty(s)&&(t=r[s],this[s]=t?t(a):a[s]);return this.isDefaultPrevented=(a.defaultPrevented!=null?a.defaultPrevented:a.returnValue===!1)?Ll:c8,this.isPropagationStopped=c8,this}return nt(e.prototype,{preventDefault:function(){this.defaultPrevented=!0;var t=this.nativeEvent;t&&(t.preventDefault?t.preventDefault():typeof t.returnValue!="unknown"&&(t.returnValue=!1),this.isDefaultPrevented=Ll)},stopPropagation:function(){var t=this.nativeEvent;t&&(t.stopPropagation?t.stopPropagation():typeof t.cancelBubble!="unknown"&&(t.cancelBubble=!0),this.isPropagationStopped=Ll)},persist:function(){},isPersistent:Ll}),e}var So={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(r){return r.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},gv=ir(So),Zc=nt({},So,{view:0,detail:0}),Rb=ir(Zc),ad,od,Jo,o4=nt({},Zc,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:_v,button:0,buttons:0,relatedTarget:function(r){return r.relatedTarget===void 0?r.fromElement===r.srcElement?r.toElement:r.fromElement:r.relatedTarget},movementX:function(r){return"movementX"in r?r.movementX:(r!==Jo&&(Jo&&r.type==="mousemove"?(ad=r.screenX-Jo.screenX,od=r.screenY-Jo.screenY):od=ad=0,Jo=r),ad)},movementY:function(r){return"movementY"in r?r.movementY:od}}),l8=ir(o4),Ob=nt({},o4,{dataTransfer:0}),Nb=ir(Ob),Ub=nt({},Zc,{relatedTarget:0}),sd=ir(Ub),Fb=nt({},So,{animationName:0,elapsedTime:0,pseudoElement:0}),Bb=ir(Fb),jb=nt({},So,{clipboardData:function(r){return"clipboardData"in r?r.clipboardData:window.clipboardData}}),qb=ir(jb),Gb=nt({},So,{data:0}),h8=ir(Gb),Kb={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Wb={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"},Yb={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Qb(r){var e=this.nativeEvent;return e.getModifierState?e.getModifierState(r):(r=Yb[r])?!!e[r]:!1}function _v(){return Qb}var Xb=nt({},Zc,{key:function(r){if(r.key){var e=Kb[r.key]||r.key;if(e!=="Unidentified")return e}return r.type==="keypress"?(r=vh(r),r===13?"Enter":String.fromCharCode(r)):r.type==="keydown"||r.type==="keyup"?Wb[r.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:_v,charCode:function(r){return r.type==="keypress"?vh(r):0},keyCode:function(r){return r.type==="keydown"||r.type==="keyup"?r.keyCode:0},which:function(r){return r.type==="keypress"?vh(r):r.type==="keydown"||r.type==="keyup"?r.keyCode:0}}),Jb=ir(Xb),Zb=nt({},o4,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),d8=ir(Zb),ex=nt({},Zc,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:_v}),tx=ir(ex),rx=nt({},So,{propertyName:0,elapsedTime:0,pseudoElement:0}),ix=ir(rx),nx=nt({},o4,{deltaX:function(r){return"deltaX"in r?r.deltaX:"wheelDeltaX"in r?-r.wheelDeltaX:0},deltaY:function(r){return"deltaY"in r?r.deltaY:"wheelDeltaY"in r?-r.wheelDeltaY:"wheelDelta"in r?-r.wheelDelta:0},deltaZ:0,deltaMode:0}),ax=ir(nx),ox=[9,13,27,32],zv=Ii&&"CompositionEvent"in window,Os=null;Ii&&"documentMode"in document&&(Os=document.documentMode);var sx=Ii&&"TextEvent"in window&&!Os,L7=Ii&&(!zv||Os&&8<Os&&11>=Os),u8=String.fromCharCode(32),v8=!1;function T7(r,e){switch(r){case"keyup":return ox.indexOf(e.keyCode)!==-1;case"keydown":return e.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function I7(r){return r=r.detail,typeof r=="object"&&"data"in r?r.data:null}var h2=!1;function cx(r,e){switch(r){case"compositionend":return I7(e);case"keypress":return e.which!==32?null:(v8=!0,u8);case"textInput":return r=e.data,r===u8&&v8?null:r;default:return null}}function lx(r,e){if(h2)return r==="compositionend"||!zv&&T7(r,e)?(r=D7(),uh=pv=fn=null,h2=!1,r):null;switch(r){case"paste":return null;case"keypress":if(!(e.ctrlKey||e.altKey||e.metaKey)||e.ctrlKey&&e.altKey){if(e.char&&1<e.char.length)return e.char;if(e.which)return String.fromCharCode(e.which)}return null;case"compositionend":return L7&&e.locale!=="ko"?null:e.data;default:return null}}var hx={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 m8(r){var e=r&&r.nodeName&&r.nodeName.toLowerCase();return e==="input"?!!hx[r.type]:e==="textarea"}function R7(r,e,t,i){f7(i),e=Qh(e,"onChange"),0<e.length&&(t=new gv("onChange","change",null,t,i),r.push({event:t,listeners:e}))}var Ns=null,mc=null;function dx(r){Y7(r,0)}function s4(r){var e=v2(r);if(c7(e))return r}function ux(r,e){if(r==="change")return e}var O7=!1;if(Ii){var cd;if(Ii){var ld="oninput"in document;if(!ld){var f8=document.createElement("div");f8.setAttribute("oninput","return;"),ld=typeof f8.oninput=="function"}cd=ld}else cd=!1;O7=cd&&(!document.documentMode||9<document.documentMode)}function p8(){Ns&&(Ns.detachEvent("onpropertychange",N7),mc=Ns=null)}function N7(r){if(r.propertyName==="value"&&s4(mc)){var e=[];R7(e,mc,r,dv(r)),z7(dx,e)}}function vx(r,e,t){r==="focusin"?(p8(),Ns=e,mc=t,Ns.attachEvent("onpropertychange",N7)):r==="focusout"&&p8()}function mx(r){if(r==="selectionchange"||r==="keyup"||r==="keydown")return s4(mc)}function fx(r,e){if(r==="click")return s4(e)}function px(r,e){if(r==="input"||r==="change")return s4(e)}function gx(r,e){return r===e&&(r!==0||1/r===1/e)||r!==r&&e!==e}var Or=typeof Object.is=="function"?Object.is:gx;function fc(r,e){if(Or(r,e))return!0;if(typeof r!="object"||r===null||typeof e!="object"||e===null)return!1;var t=Object.keys(r),i=Object.keys(e);if(t.length!==i.length)return!1;for(i=0;i<t.length;i++){var n=t[i];if(!j5.call(e,n)||!Or(r[n],e[n]))return!1}return!0}function g8(r){for(;r&&r.firstChild;)r=r.firstChild;return r}function _8(r,e){var t=g8(r);r=0;for(var i;t;){if(t.nodeType===3){if(i=r+t.textContent.length,r<=e&&i>=e)return{node:t,offset:e-r};r=i}e:{for(;t;){if(t.nextSibling){t=t.nextSibling;break e}t=t.parentNode}t=void 0}t=g8(t)}}function U7(r,e){return r&&e?r===e?!0:r&&r.nodeType===3?!1:e&&e.nodeType===3?U7(r,e.parentNode):"contains"in r?r.contains(e):r.compareDocumentPosition?!!(r.compareDocumentPosition(e)&16):!1:!1}function F7(){for(var r=window,e=Bh();e instanceof r.HTMLIFrameElement;){try{var t=typeof e.contentWindow.location.href=="string"}catch{t=!1}if(t)r=e.contentWindow;else break;e=Bh(r.document)}return e}function yv(r){var e=r&&r.nodeName&&r.nodeName.toLowerCase();return e&&(e==="input"&&(r.type==="text"||r.type==="search"||r.type==="tel"||r.type==="url"||r.type==="password")||e==="textarea"||r.contentEditable==="true")}function _x(r){var e=F7(),t=r.focusedElem,i=r.selectionRange;if(e!==t&&t&&t.ownerDocument&&U7(t.ownerDocument.documentElement,t)){if(i!==null&&yv(t)){if(e=i.start,r=i.end,r===void 0&&(r=e),"selectionStart"in t)t.selectionStart=e,t.selectionEnd=Math.min(r,t.value.length);else if(r=(e=t.ownerDocument||document)&&e.defaultView||window,r.getSelection){r=r.getSelection();var n=t.textContent.length,a=Math.min(i.start,n);i=i.end===void 0?a:Math.min(i.end,n),!r.extend&&a>i&&(n=i,i=a,a=n),n=_8(t,a);var o=_8(t,i);n&&o&&(r.rangeCount!==1||r.anchorNode!==n.node||r.anchorOffset!==n.offset||r.focusNode!==o.node||r.focusOffset!==o.offset)&&(e=e.createRange(),e.setStart(n.node,n.offset),r.removeAllRanges(),a>i?(r.addRange(e),r.extend(o.node,o.offset)):(e.setEnd(o.node,o.offset),r.addRange(e)))}}for(e=[],r=t;r=r.parentNode;)r.nodeType===1&&e.push({element:r,left:r.scrollLeft,top:r.scrollTop});for(typeof t.focus=="function"&&t.focus(),t=0;t<e.length;t++)r=e[t],r.element.scrollLeft=r.left,r.element.scrollTop=r.top}}var zx=Ii&&"documentMode"in document&&11>=document.documentMode,d2=null,l3=null,Us=null,h3=!1;function z8(r,e,t){var i=t.window===t?t.document:t.nodeType===9?t:t.ownerDocument;h3||d2==null||d2!==Bh(i)||(i=d2,"selectionStart"in i&&yv(i)?i={start:i.selectionStart,end:i.selectionEnd}:(i=(i.ownerDocument&&i.ownerDocument.defaultView||window).getSelection(),i={anchorNode:i.anchorNode,anchorOffset:i.anchorOffset,focusNode:i.focusNode,focusOffset:i.focusOffset}),Us&&fc(Us,i)||(Us=i,i=Qh(l3,"onSelect"),0<i.length&&(e=new gv("onSelect","select",null,e,t),r.push({event:e,listeners:i}),e.target=d2)))}function Tl(r,e){var t={};return t[r.toLowerCase()]=e.toLowerCase(),t["Webkit"+r]="webkit"+e,t["Moz"+r]="moz"+e,t}var u2={animationend:Tl("Animation","AnimationEnd"),animationiteration:Tl("Animation","AnimationIteration"),animationstart:Tl("Animation","AnimationStart"),transitionend:Tl("Transition","TransitionEnd")},hd={},B7={};Ii&&(B7=document.createElement("div").style,"AnimationEvent"in window||(delete u2.animationend.animation,delete u2.animationiteration.animation,delete u2.animationstart.animation),"TransitionEvent"in window||delete u2.transitionend.transition);function c4(r){if(hd[r])return hd[r];if(!u2[r])return r;var e=u2[r],t;for(t in e)if(e.hasOwnProperty(t)&&t in B7)return hd[r]=e[t];return r}var j7=c4("animationend"),q7=c4("animationiteration"),G7=c4("animationstart"),K7=c4("transitionend"),W7=new Map,y8="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 Ln(r,e){W7.set(r,e),Ta(e,[r])}for(var dd=0;dd<y8.length;dd++){var ud=y8[dd],yx=ud.toLowerCase(),wx=ud[0].toUpperCase()+ud.slice(1);Ln(yx,"on"+wx)}Ln(j7,"onAnimationEnd");Ln(q7,"onAnimationIteration");Ln(G7,"onAnimationStart");Ln("dblclick","onDoubleClick");Ln("focusin","onFocus");Ln("focusout","onBlur");Ln(K7,"onTransitionEnd");W2("onMouseEnter",["mouseout","mouseover"]);W2("onMouseLeave",["mouseout","mouseover"]);W2("onPointerEnter",["pointerout","pointerover"]);W2("onPointerLeave",["pointerout","pointerover"]);Ta("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ta("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ta("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ta("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ta("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ta("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var _s="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(" "),bx=new Set("cancel close invalid load scroll toggle".split(" ").concat(_s));function w8(r,e,t){var i=r.type||"unknown-event";r.currentTarget=t,yb(i,e,void 0,r),r.currentTarget=null}function Y7(r,e){e=(e&4)!==0;for(var t=0;t<r.length;t++){var i=r[t],n=i.event;i=i.listeners;e:{var a=void 0;if(e)for(var o=i.length-1;0<=o;o--){var s=i[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&n.isPropagationStopped())break e;w8(n,s,l),a=c}else for(o=0;o<i.length;o++){if(s=i[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&n.isPropagationStopped())break e;w8(n,s,l),a=c}}}if(qh)throw r=a3,qh=!1,a3=null,r}function We(r,e){var t=e[f3];t===void 0&&(t=e[f3]=new Set);var i=r+"__bubble";t.has(i)||(Q7(e,r,2,!1),t.add(i))}function vd(r,e,t){var i=0;e&&(i|=4),Q7(t,r,i,e)}var Il="_reactListening"+Math.random().toString(36).slice(2);function pc(r){if(!r[Il]){r[Il]=!0,i7.forEach(function(t){t!=="selectionchange"&&(bx.has(t)||vd(t,!1,r),vd(t,!0,r))});var e=r.nodeType===9?r:r.ownerDocument;e===null||e[Il]||(e[Il]=!0,vd("selectionchange",!1,e))}}function Q7(r,e,t,i){switch($7(e)){case 1:var n=Tb;break;case 4:n=Ib;break;default:n=fv}t=n.bind(null,e,t,r),n=void 0,!n3||e!=="touchstart"&&e!=="touchmove"&&e!=="wheel"||(n=!0),i?n!==void 0?r.addEventListener(e,t,{capture:!0,passive:n}):r.addEventListener(e,t,!0):n!==void 0?r.addEventListener(e,t,{passive:n}):r.addEventListener(e,t,!1)}function md(r,e,t,i,n){var a=i;if(!(e&1)&&!(e&2)&&i!==null)e:for(;;){if(i===null)return;var o=i.tag;if(o===3||o===4){var s=i.stateNode.containerInfo;if(s===n||s.nodeType===8&&s.parentNode===n)break;if(o===4)for(o=i.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===n||c.nodeType===8&&c.parentNode===n))return;o=o.return}for(;s!==null;){if(o=ma(s),o===null)return;if(c=o.tag,c===5||c===6){i=a=o;continue e}s=s.parentNode}}i=i.return}z7(function(){var l=a,h=dv(t),d=[];e:{var u=W7.get(r);if(u!==void 0){var v=gv,m=r;switch(r){case"keypress":if(vh(t)===0)break e;case"keydown":case"keyup":v=Jb;break;case"focusin":m="focus",v=sd;break;case"focusout":m="blur",v=sd;break;case"beforeblur":case"afterblur":v=sd;break;case"click":if(t.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":v=l8;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":v=Nb;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":v=tx;break;case j7:case q7:case G7:v=Bb;break;case K7:v=ix;break;case"scroll":v=Rb;break;case"wheel":v=ax;break;case"copy":case"cut":case"paste":v=qb;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":v=d8}var f=(e&4)!==0,C=!f&&r==="scroll",_=f?u!==null?u+"Capture":null:u;f=[];for(var p=l,z;p!==null;){z=p;var M=z.stateNode;if(z.tag===5&&M!==null&&(z=M,_!==null&&(M=hc(p,_),M!=null&&f.push(gc(p,M,z)))),C)break;p=p.return}0<f.length&&(u=new v(u,m,null,t,h),d.push({event:u,listeners:f}))}}if(!(e&7)){e:{if(u=r==="mouseover"||r==="pointerover",v=r==="mouseout"||r==="pointerout",u&&t!==r3&&(m=t.relatedTarget||t.fromElement)&&(ma(m)||m[Ri]))break e;if((v||u)&&(u=h.window===h?h:(u=h.ownerDocument)?u.defaultView||u.parentWindow:window,v?(m=t.relatedTarget||t.toElement,v=l,m=m?ma(m):null,m!==null&&(C=Ia(m),m!==C||m.tag!==5&&m.tag!==6)&&(m=null)):(v=null,m=l),v!==m)){if(f=l8,M="onMouseLeave",_="onMouseEnter",p="mouse",(r==="pointerout"||r==="pointerover")&&(f=d8,M="onPointerLeave",_="onPointerEnter",p="pointer"),C=v==null?u:v2(v),z=m==null?u:v2(m),u=new f(M,p+"leave",v,t,h),u.target=C,u.relatedTarget=z,M=null,ma(h)===l&&(f=new f(_,p+"enter",m,t,h),f.target=z,f.relatedTarget=C,M=f),C=M,v&&m)t:{for(f=v,_=m,p=0,z=f;z;z=Ga(z))p++;for(z=0,M=_;M;M=Ga(M))z++;for(;0<p-z;)f=Ga(f),p--;for(;0<z-p;)_=Ga(_),z--;for(;p--;){if(f===_||_!==null&&f===_.alternate)break t;f=Ga(f),_=Ga(_)}f=null}else f=null;v!==null&&b8(d,u,v,f,!1),m!==null&&C!==null&&b8(d,C,m,f,!0)}}e:{if(u=l?v2(l):window,v=u.nodeName&&u.nodeName.toLowerCase(),v==="select"||v==="input"&&u.type==="file")var A=ux;else if(m8(u))if(O7)A=px;else{A=mx;var I=vx}else(v=u.nodeName)&&v.toLowerCase()==="input"&&(u.type==="checkbox"||u.type==="radio")&&(A=fx);if(A&&(A=A(r,l))){R7(d,A,t,h);break e}I&&I(r,u,l),r==="focusout"&&(I=u._wrapperState)&&I.controlled&&u.type==="number"&&X5(u,"number",u.value)}switch(I=l?v2(l):window,r){case"focusin":(m8(I)||I.contentEditable==="true")&&(d2=I,l3=l,Us=null);break;case"focusout":Us=l3=d2=null;break;case"mousedown":h3=!0;break;case"contextmenu":case"mouseup":case"dragend":h3=!1,z8(d,t,h);break;case"selectionchange":if(zx)break;case"keydown":case"keyup":z8(d,t,h)}var N;if(zv)e:{switch(r){case"compositionstart":var U="onCompositionStart";break e;case"compositionend":U="onCompositionEnd";break e;case"compositionupdate":U="onCompositionUpdate";break e}U=void 0}else h2?T7(r,t)&&(U="onCompositionEnd"):r==="keydown"&&t.keyCode===229&&(U="onCompositionStart");U&&(L7&&t.locale!=="ko"&&(h2||U!=="onCompositionStart"?U==="onCompositionEnd"&&h2&&(N=D7()):(fn=h,pv="value"in fn?fn.value:fn.textContent,h2=!0)),I=Qh(l,U),0<I.length&&(U=new h8(U,r,null,t,h),d.push({event:U,listeners:I}),N?U.data=N:(N=I7(t),N!==null&&(U.data=N)))),(N=sx?cx(r,t):lx(r,t))&&(l=Qh(l,"onBeforeInput"),0<l.length&&(h=new h8("onBeforeInput","beforeinput",null,t,h),d.push({event:h,listeners:l}),h.data=N))}Y7(d,e)})}function gc(r,e,t){return{instance:r,listener:e,currentTarget:t}}function Qh(r,e){for(var t=e+"Capture",i=[];r!==null;){var n=r,a=n.stateNode;n.tag===5&&a!==null&&(n=a,a=hc(r,t),a!=null&&i.unshift(gc(r,a,n)),a=hc(r,e),a!=null&&i.push(gc(r,a,n))),r=r.return}return i}function Ga(r){if(r===null)return null;do r=r.return;while(r&&r.tag!==5);return r||null}function b8(r,e,t,i,n){for(var a=e._reactName,o=[];t!==null&&t!==i;){var s=t,c=s.alternate,l=s.stateNode;if(c!==null&&c===i)break;s.tag===5&&l!==null&&(s=l,n?(c=hc(t,a),c!=null&&o.unshift(gc(t,c,s))):n||(c=hc(t,a),c!=null&&o.push(gc(t,c,s)))),t=t.return}o.length!==0&&r.push({event:e,listeners:o})}var xx=/\r\n?/g,Mx=/\u0000|\uFFFD/g;function x8(r){return(typeof r=="string"?r:""+r).replace(xx,`
|
|
38
|
+
`).replace(Mx,"")}function Rl(r,e,t){if(e=x8(e),x8(r)!==e&&t)throw Error(D(425))}function Xh(){}var d3=null,u3=null;function v3(r,e){return r==="textarea"||r==="noscript"||typeof e.children=="string"||typeof e.children=="number"||typeof e.dangerouslySetInnerHTML=="object"&&e.dangerouslySetInnerHTML!==null&&e.dangerouslySetInnerHTML.__html!=null}var m3=typeof setTimeout=="function"?setTimeout:void 0,Cx=typeof clearTimeout=="function"?clearTimeout:void 0,M8=typeof Promise=="function"?Promise:void 0,Hx=typeof queueMicrotask=="function"?queueMicrotask:typeof M8<"u"?function(r){return M8.resolve(null).then(r).catch(kx)}:m3;function kx(r){setTimeout(function(){throw r})}function fd(r,e){var t=e,i=0;do{var n=t.nextSibling;if(r.removeChild(t),n&&n.nodeType===8)if(t=n.data,t==="/$"){if(i===0){r.removeChild(n),vc(e);return}i--}else t!=="$"&&t!=="$?"&&t!=="$!"||i++;t=n}while(t);vc(e)}function bn(r){for(;r!=null;r=r.nextSibling){var e=r.nodeType;if(e===1||e===3)break;if(e===8){if(e=r.data,e==="$"||e==="$!"||e==="$?")break;if(e==="/$")return null}}return r}function C8(r){r=r.previousSibling;for(var e=0;r;){if(r.nodeType===8){var t=r.data;if(t==="$"||t==="$!"||t==="$?"){if(e===0)return r;e--}else t==="/$"&&e++}r=r.previousSibling}return null}var $o=Math.random().toString(36).slice(2),ri="__reactFiber$"+$o,_c="__reactProps$"+$o,Ri="__reactContainer$"+$o,f3="__reactEvents$"+$o,Ex="__reactListeners$"+$o,Px="__reactHandles$"+$o;function ma(r){var e=r[ri];if(e)return e;for(var t=r.parentNode;t;){if(e=t[Ri]||t[ri]){if(t=e.alternate,e.child!==null||t!==null&&t.child!==null)for(r=C8(r);r!==null;){if(t=r[ri])return t;r=C8(r)}return e}r=t,t=r.parentNode}return null}function el(r){return r=r[ri]||r[Ri],!r||r.tag!==5&&r.tag!==6&&r.tag!==13&&r.tag!==3?null:r}function v2(r){if(r.tag===5||r.tag===6)return r.stateNode;throw Error(D(33))}function l4(r){return r[_c]||null}var p3=[],m2=-1;function Tn(r){return{current:r}}function Xe(r){0>m2||(r.current=p3[m2],p3[m2]=null,m2--)}function Ge(r,e){m2++,p3[m2]=r.current,r.current=e}var An={},u1=Tn(An),R1=Tn(!1),Ca=An;function Y2(r,e){var t=r.type.contextTypes;if(!t)return An;var i=r.stateNode;if(i&&i.__reactInternalMemoizedUnmaskedChildContext===e)return i.__reactInternalMemoizedMaskedChildContext;var n={},a;for(a in t)n[a]=e[a];return i&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=e,r.__reactInternalMemoizedMaskedChildContext=n),n}function O1(r){return r=r.childContextTypes,r!=null}function Jh(){Xe(R1),Xe(u1)}function H8(r,e,t){if(u1.current!==An)throw Error(D(168));Ge(u1,e),Ge(R1,t)}function X7(r,e,t){var i=r.stateNode;if(e=e.childContextTypes,typeof i.getChildContext!="function")return t;i=i.getChildContext();for(var n in i)if(!(n in e))throw Error(D(108,vb(r)||"Unknown",n));return nt({},t,i)}function Zh(r){return r=(r=r.stateNode)&&r.__reactInternalMemoizedMergedChildContext||An,Ca=u1.current,Ge(u1,r),Ge(R1,R1.current),!0}function k8(r,e,t){var i=r.stateNode;if(!i)throw Error(D(169));t?(r=X7(r,e,Ca),i.__reactInternalMemoizedMergedChildContext=r,Xe(R1),Xe(u1),Ge(u1,r)):Xe(R1),Ge(R1,t)}var Ci=null,h4=!1,pd=!1;function J7(r){Ci===null?Ci=[r]:Ci.push(r)}function Ax(r){h4=!0,J7(r)}function In(){if(!pd&&Ci!==null){pd=!0;var r=0,e=Oe;try{var t=Ci;for(Oe=1;r<t.length;r++){var i=t[r];do i=i(!0);while(i!==null)}Ci=null,h4=!1}catch(n){throw Ci!==null&&(Ci=Ci.slice(r+1)),x7(uv,In),n}finally{Oe=e,pd=!1}}return null}var f2=[],p2=0,e0=null,t0=0,lr=[],hr=0,Ha=null,Pi=1,Ai="";function na(r,e){f2[p2++]=t0,f2[p2++]=e0,e0=r,t0=e}function Z7(r,e,t){lr[hr++]=Pi,lr[hr++]=Ai,lr[hr++]=Ha,Ha=r;var i=Pi;r=Ai;var n=32-Ir(i)-1;i&=~(1<<n),t+=1;var a=32-Ir(e)+n;if(30<a){var o=n-n%5;a=(i&(1<<o)-1).toString(32),i>>=o,n-=o,Pi=1<<32-Ir(e)+n|t<<n|i,Ai=a+r}else Pi=1<<a|t<<n|i,Ai=r}function wv(r){r.return!==null&&(na(r,1),Z7(r,1,0))}function bv(r){for(;r===e0;)e0=f2[--p2],f2[p2]=null,t0=f2[--p2],f2[p2]=null;for(;r===Ha;)Ha=lr[--hr],lr[hr]=null,Ai=lr[--hr],lr[hr]=null,Pi=lr[--hr],lr[hr]=null}var Q1=null,W1=null,et=!1,Sr=null;function eg(r,e){var t=mr(5,null,null,0);t.elementType="DELETED",t.stateNode=e,t.return=r,e=r.deletions,e===null?(r.deletions=[t],r.flags|=16):e.push(t)}function E8(r,e){switch(r.tag){case 5:var t=r.type;return e=e.nodeType!==1||t.toLowerCase()!==e.nodeName.toLowerCase()?null:e,e!==null?(r.stateNode=e,Q1=r,W1=bn(e.firstChild),!0):!1;case 6:return e=r.pendingProps===""||e.nodeType!==3?null:e,e!==null?(r.stateNode=e,Q1=r,W1=null,!0):!1;case 13:return e=e.nodeType!==8?null:e,e!==null?(t=Ha!==null?{id:Pi,overflow:Ai}:null,r.memoizedState={dehydrated:e,treeContext:t,retryLane:1073741824},t=mr(18,null,null,0),t.stateNode=e,t.return=r,r.child=t,Q1=r,W1=null,!0):!1;default:return!1}}function g3(r){return(r.mode&1)!==0&&(r.flags&128)===0}function _3(r){if(et){var e=W1;if(e){var t=e;if(!E8(r,e)){if(g3(r))throw Error(D(418));e=bn(t.nextSibling);var i=Q1;e&&E8(r,e)?eg(i,t):(r.flags=r.flags&-4097|2,et=!1,Q1=r)}}else{if(g3(r))throw Error(D(418));r.flags=r.flags&-4097|2,et=!1,Q1=r}}}function P8(r){for(r=r.return;r!==null&&r.tag!==5&&r.tag!==3&&r.tag!==13;)r=r.return;Q1=r}function Ol(r){if(r!==Q1)return!1;if(!et)return P8(r),et=!0,!1;var e;if((e=r.tag!==3)&&!(e=r.tag!==5)&&(e=r.type,e=e!=="head"&&e!=="body"&&!v3(r.type,r.memoizedProps)),e&&(e=W1)){if(g3(r))throw tg(),Error(D(418));for(;e;)eg(r,e),e=bn(e.nextSibling)}if(P8(r),r.tag===13){if(r=r.memoizedState,r=r!==null?r.dehydrated:null,!r)throw Error(D(317));e:{for(r=r.nextSibling,e=0;r;){if(r.nodeType===8){var t=r.data;if(t==="/$"){if(e===0){W1=bn(r.nextSibling);break e}e--}else t!=="$"&&t!=="$!"&&t!=="$?"||e++}r=r.nextSibling}W1=null}}else W1=Q1?bn(r.stateNode.nextSibling):null;return!0}function tg(){for(var r=W1;r;)r=bn(r.nextSibling)}function Q2(){W1=Q1=null,et=!1}function xv(r){Sr===null?Sr=[r]:Sr.push(r)}var Vx=ji.ReactCurrentBatchConfig;function Ar(r,e){if(r&&r.defaultProps){e=nt({},e),r=r.defaultProps;for(var t in r)e[t]===void 0&&(e[t]=r[t]);return e}return e}var r0=Tn(null),i0=null,g2=null,Mv=null;function Cv(){Mv=g2=i0=null}function Hv(r){var e=r0.current;Xe(r0),r._currentValue=e}function z3(r,e,t){for(;r!==null;){var i=r.alternate;if((r.childLanes&e)!==e?(r.childLanes|=e,i!==null&&(i.childLanes|=e)):i!==null&&(i.childLanes&e)!==e&&(i.childLanes|=e),r===t)break;r=r.return}}function S2(r,e){i0=r,Mv=g2=null,r=r.dependencies,r!==null&&r.firstContext!==null&&(r.lanes&e&&(D1=!0),r.firstContext=null)}function zr(r){var e=r._currentValue;if(Mv!==r)if(r={context:r,memoizedValue:e,next:null},g2===null){if(i0===null)throw Error(D(308));g2=r,i0.dependencies={lanes:0,firstContext:r}}else g2=g2.next=r;return e}var fa=null;function kv(r){fa===null?fa=[r]:fa.push(r)}function rg(r,e,t,i){var n=e.interleaved;return n===null?(t.next=t,kv(e)):(t.next=n.next,n.next=t),e.interleaved=t,Oi(r,i)}function Oi(r,e){r.lanes|=e;var t=r.alternate;for(t!==null&&(t.lanes|=e),t=r,r=r.return;r!==null;)r.childLanes|=e,t=r.alternate,t!==null&&(t.childLanes|=e),t=r,r=r.return;return t.tag===3?t.stateNode:null}var nn=!1;function Ev(r){r.updateQueue={baseState:r.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function ig(r,e){r=r.updateQueue,e.updateQueue===r&&(e.updateQueue={baseState:r.baseState,firstBaseUpdate:r.firstBaseUpdate,lastBaseUpdate:r.lastBaseUpdate,shared:r.shared,effects:r.effects})}function $i(r,e){return{eventTime:r,lane:e,tag:0,payload:null,callback:null,next:null}}function xn(r,e,t){var i=r.updateQueue;if(i===null)return null;if(i=i.shared,He&2){var n=i.pending;return n===null?e.next=e:(e.next=n.next,n.next=e),i.pending=e,Oi(r,t)}return n=i.interleaved,n===null?(e.next=e,kv(i)):(e.next=n.next,n.next=e),i.interleaved=e,Oi(r,t)}function mh(r,e,t){if(e=e.updateQueue,e!==null&&(e=e.shared,(t&4194240)!==0)){var i=e.lanes;i&=r.pendingLanes,t|=i,e.lanes=t,vv(r,t)}}function A8(r,e){var t=r.updateQueue,i=r.alternate;if(i!==null&&(i=i.updateQueue,t===i)){var n=null,a=null;if(t=t.firstBaseUpdate,t!==null){do{var o={eventTime:t.eventTime,lane:t.lane,tag:t.tag,payload:t.payload,callback:t.callback,next:null};a===null?n=a=o:a=a.next=o,t=t.next}while(t!==null);a===null?n=a=e:a=a.next=e}else n=a=e;t={baseState:i.baseState,firstBaseUpdate:n,lastBaseUpdate:a,shared:i.shared,effects:i.effects},r.updateQueue=t;return}r=t.lastBaseUpdate,r===null?t.firstBaseUpdate=e:r.next=e,t.lastBaseUpdate=e}function n0(r,e,t,i){var n=r.updateQueue;nn=!1;var a=n.firstBaseUpdate,o=n.lastBaseUpdate,s=n.shared.pending;if(s!==null){n.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var h=r.alternate;h!==null&&(h=h.updateQueue,s=h.lastBaseUpdate,s!==o&&(s===null?h.firstBaseUpdate=l:s.next=l,h.lastBaseUpdate=c))}if(a!==null){var d=n.baseState;o=0,h=l=c=null,s=a;do{var u=s.lane,v=s.eventTime;if((i&u)===u){h!==null&&(h=h.next={eventTime:v,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var m=r,f=s;switch(u=e,v=t,f.tag){case 1:if(m=f.payload,typeof m=="function"){d=m.call(v,d,u);break e}d=m;break e;case 3:m.flags=m.flags&-65537|128;case 0:if(m=f.payload,u=typeof m=="function"?m.call(v,d,u):m,u==null)break e;d=nt({},d,u);break e;case 2:nn=!0}}s.callback!==null&&s.lane!==0&&(r.flags|=64,u=n.effects,u===null?n.effects=[s]:u.push(s))}else v={eventTime:v,lane:u,tag:s.tag,payload:s.payload,callback:s.callback,next:null},h===null?(l=h=v,c=d):h=h.next=v,o|=u;if(s=s.next,s===null){if(s=n.shared.pending,s===null)break;u=s,s=u.next,u.next=null,n.lastBaseUpdate=u,n.shared.pending=null}}while(1);if(h===null&&(c=d),n.baseState=c,n.firstBaseUpdate=l,n.lastBaseUpdate=h,e=n.shared.interleaved,e!==null){n=e;do o|=n.lane,n=n.next;while(n!==e)}else a===null&&(n.shared.lanes=0);Ea|=o,r.lanes=o,r.memoizedState=d}}function V8(r,e,t){if(r=e.effects,e.effects=null,r!==null)for(e=0;e<r.length;e++){var i=r[e],n=i.callback;if(n!==null){if(i.callback=null,i=t,typeof n!="function")throw Error(D(191,n));n.call(i)}}}var ng=new r7.Component().refs;function y3(r,e,t,i){e=r.memoizedState,t=t(i,e),t=t==null?e:nt({},e,t),r.memoizedState=t,r.lanes===0&&(r.updateQueue.baseState=t)}var d4={isMounted:function(r){return(r=r._reactInternals)?Ia(r)===r:!1},enqueueSetState:function(r,e,t){r=r._reactInternals;var i=z1(),n=Cn(r),a=$i(i,n);a.payload=e,t!=null&&(a.callback=t),e=xn(r,a,n),e!==null&&(Rr(e,r,n,i),mh(e,r,n))},enqueueReplaceState:function(r,e,t){r=r._reactInternals;var i=z1(),n=Cn(r),a=$i(i,n);a.tag=1,a.payload=e,t!=null&&(a.callback=t),e=xn(r,a,n),e!==null&&(Rr(e,r,n,i),mh(e,r,n))},enqueueForceUpdate:function(r,e){r=r._reactInternals;var t=z1(),i=Cn(r),n=$i(t,i);n.tag=2,e!=null&&(n.callback=e),e=xn(r,n,i),e!==null&&(Rr(e,r,i,t),mh(e,r,i))}};function S8(r,e,t,i,n,a,o){return r=r.stateNode,typeof r.shouldComponentUpdate=="function"?r.shouldComponentUpdate(i,a,o):e.prototype&&e.prototype.isPureReactComponent?!fc(t,i)||!fc(n,a):!0}function ag(r,e,t){var i=!1,n=An,a=e.contextType;return typeof a=="object"&&a!==null?a=zr(a):(n=O1(e)?Ca:u1.current,i=e.contextTypes,a=(i=i!=null)?Y2(r,n):An),e=new e(t,a),r.memoizedState=e.state!==null&&e.state!==void 0?e.state:null,e.updater=d4,r.stateNode=e,e._reactInternals=r,i&&(r=r.stateNode,r.__reactInternalMemoizedUnmaskedChildContext=n,r.__reactInternalMemoizedMaskedChildContext=a),e}function $8(r,e,t,i){r=e.state,typeof e.componentWillReceiveProps=="function"&&e.componentWillReceiveProps(t,i),typeof e.UNSAFE_componentWillReceiveProps=="function"&&e.UNSAFE_componentWillReceiveProps(t,i),e.state!==r&&d4.enqueueReplaceState(e,e.state,null)}function w3(r,e,t,i){var n=r.stateNode;n.props=t,n.state=r.memoizedState,n.refs=ng,Ev(r);var a=e.contextType;typeof a=="object"&&a!==null?n.context=zr(a):(a=O1(e)?Ca:u1.current,n.context=Y2(r,a)),n.state=r.memoizedState,a=e.getDerivedStateFromProps,typeof a=="function"&&(y3(r,e,a,t),n.state=r.memoizedState),typeof e.getDerivedStateFromProps=="function"||typeof n.getSnapshotBeforeUpdate=="function"||typeof n.UNSAFE_componentWillMount!="function"&&typeof n.componentWillMount!="function"||(e=n.state,typeof n.componentWillMount=="function"&&n.componentWillMount(),typeof n.UNSAFE_componentWillMount=="function"&&n.UNSAFE_componentWillMount(),e!==n.state&&d4.enqueueReplaceState(n,n.state,null),n0(r,t,n,i),n.state=r.memoizedState),typeof n.componentDidMount=="function"&&(r.flags|=4194308)}function Zo(r,e,t){if(r=t.ref,r!==null&&typeof r!="function"&&typeof r!="object"){if(t._owner){if(t=t._owner,t){if(t.tag!==1)throw Error(D(309));var i=t.stateNode}if(!i)throw Error(D(147,r));var n=i,a=""+r;return e!==null&&e.ref!==null&&typeof e.ref=="function"&&e.ref._stringRef===a?e.ref:(e=function(o){var s=n.refs;s===ng&&(s=n.refs={}),o===null?delete s[a]:s[a]=o},e._stringRef=a,e)}if(typeof r!="string")throw Error(D(284));if(!t._owner)throw Error(D(290,r))}return r}function Nl(r,e){throw r=Object.prototype.toString.call(e),Error(D(31,r==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":r))}function D8(r){var e=r._init;return e(r._payload)}function og(r){function e(_,p){if(r){var z=_.deletions;z===null?(_.deletions=[p],_.flags|=16):z.push(p)}}function t(_,p){if(!r)return null;for(;p!==null;)e(_,p),p=p.sibling;return null}function i(_,p){for(_=new Map;p!==null;)p.key!==null?_.set(p.key,p):_.set(p.index,p),p=p.sibling;return _}function n(_,p){return _=Hn(_,p),_.index=0,_.sibling=null,_}function a(_,p,z){return _.index=z,r?(z=_.alternate,z!==null?(z=z.index,z<p?(_.flags|=2,p):z):(_.flags|=2,p)):(_.flags|=1048576,p)}function o(_){return r&&_.alternate===null&&(_.flags|=2),_}function s(_,p,z,M){return p===null||p.tag!==6?(p=xd(z,_.mode,M),p.return=_,p):(p=n(p,z),p.return=_,p)}function c(_,p,z,M){var A=z.type;return A===l2?h(_,p,z.props.children,M,z.key):p!==null&&(p.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===rn&&D8(A)===p.type)?(M=n(p,z.props),M.ref=Zo(_,p,z),M.return=_,M):(M=yh(z.type,z.key,z.props,null,_.mode,M),M.ref=Zo(_,p,z),M.return=_,M)}function l(_,p,z,M){return p===null||p.tag!==4||p.stateNode.containerInfo!==z.containerInfo||p.stateNode.implementation!==z.implementation?(p=Md(z,_.mode,M),p.return=_,p):(p=n(p,z.children||[]),p.return=_,p)}function h(_,p,z,M,A){return p===null||p.tag!==7?(p=ya(z,_.mode,M,A),p.return=_,p):(p=n(p,z),p.return=_,p)}function d(_,p,z){if(typeof p=="string"&&p!==""||typeof p=="number")return p=xd(""+p,_.mode,z),p.return=_,p;if(typeof p=="object"&&p!==null){switch(p.$$typeof){case Pl:return z=yh(p.type,p.key,p.props,null,_.mode,z),z.ref=Zo(_,null,p),z.return=_,z;case c2:return p=Md(p,_.mode,z),p.return=_,p;case rn:var M=p._init;return d(_,M(p._payload),z)}if(ps(p)||Wo(p))return p=ya(p,_.mode,z,null),p.return=_,p;Nl(_,p)}return null}function u(_,p,z,M){var A=p!==null?p.key:null;if(typeof z=="string"&&z!==""||typeof z=="number")return A!==null?null:s(_,p,""+z,M);if(typeof z=="object"&&z!==null){switch(z.$$typeof){case Pl:return z.key===A?c(_,p,z,M):null;case c2:return z.key===A?l(_,p,z,M):null;case rn:return A=z._init,u(_,p,A(z._payload),M)}if(ps(z)||Wo(z))return A!==null?null:h(_,p,z,M,null);Nl(_,z)}return null}function v(_,p,z,M,A){if(typeof M=="string"&&M!==""||typeof M=="number")return _=_.get(z)||null,s(p,_,""+M,A);if(typeof M=="object"&&M!==null){switch(M.$$typeof){case Pl:return _=_.get(M.key===null?z:M.key)||null,c(p,_,M,A);case c2:return _=_.get(M.key===null?z:M.key)||null,l(p,_,M,A);case rn:var I=M._init;return v(_,p,z,I(M._payload),A)}if(ps(M)||Wo(M))return _=_.get(z)||null,h(p,_,M,A,null);Nl(p,M)}return null}function m(_,p,z,M){for(var A=null,I=null,N=p,U=p=0,Se=null;N!==null&&U<z.length;U++){N.index>U?(Se=N,N=null):Se=N.sibling;var ee=u(_,N,z[U],M);if(ee===null){N===null&&(N=Se);break}r&&N&&ee.alternate===null&&e(_,N),p=a(ee,p,U),I===null?A=ee:I.sibling=ee,I=ee,N=Se}if(U===z.length)return t(_,N),et&&na(_,U),A;if(N===null){for(;U<z.length;U++)N=d(_,z[U],M),N!==null&&(p=a(N,p,U),I===null?A=N:I.sibling=N,I=N);return et&&na(_,U),A}for(N=i(_,N);U<z.length;U++)Se=v(N,_,U,z[U],M),Se!==null&&(r&&Se.alternate!==null&&N.delete(Se.key===null?U:Se.key),p=a(Se,p,U),I===null?A=Se:I.sibling=Se,I=Se);return r&&N.forEach(function(Je){return e(_,Je)}),et&&na(_,U),A}function f(_,p,z,M){var A=Wo(z);if(typeof A!="function")throw Error(D(150));if(z=A.call(z),z==null)throw Error(D(151));for(var I=A=null,N=p,U=p=0,Se=null,ee=z.next();N!==null&&!ee.done;U++,ee=z.next()){N.index>U?(Se=N,N=null):Se=N.sibling;var Je=u(_,N,ee.value,M);if(Je===null){N===null&&(N=Se);break}r&&N&&Je.alternate===null&&e(_,N),p=a(Je,p,U),I===null?A=Je:I.sibling=Je,I=Je,N=Se}if(ee.done)return t(_,N),et&&na(_,U),A;if(N===null){for(;!ee.done;U++,ee=z.next())ee=d(_,ee.value,M),ee!==null&&(p=a(ee,p,U),I===null?A=ee:I.sibling=ee,I=ee);return et&&na(_,U),A}for(N=i(_,N);!ee.done;U++,ee=z.next())ee=v(N,_,U,ee.value,M),ee!==null&&(r&&ee.alternate!==null&&N.delete(ee.key===null?U:ee.key),p=a(ee,p,U),I===null?A=ee:I.sibling=ee,I=ee);return r&&N.forEach(function(br){return e(_,br)}),et&&na(_,U),A}function C(_,p,z,M){if(typeof z=="object"&&z!==null&&z.type===l2&&z.key===null&&(z=z.props.children),typeof z=="object"&&z!==null){switch(z.$$typeof){case Pl:e:{for(var A=z.key,I=p;I!==null;){if(I.key===A){if(A=z.type,A===l2){if(I.tag===7){t(_,I.sibling),p=n(I,z.props.children),p.return=_,_=p;break e}}else if(I.elementType===A||typeof A=="object"&&A!==null&&A.$$typeof===rn&&D8(A)===I.type){t(_,I.sibling),p=n(I,z.props),p.ref=Zo(_,I,z),p.return=_,_=p;break e}t(_,I);break}else e(_,I);I=I.sibling}z.type===l2?(p=ya(z.props.children,_.mode,M,z.key),p.return=_,_=p):(M=yh(z.type,z.key,z.props,null,_.mode,M),M.ref=Zo(_,p,z),M.return=_,_=M)}return o(_);case c2:e:{for(I=z.key;p!==null;){if(p.key===I)if(p.tag===4&&p.stateNode.containerInfo===z.containerInfo&&p.stateNode.implementation===z.implementation){t(_,p.sibling),p=n(p,z.children||[]),p.return=_,_=p;break e}else{t(_,p);break}else e(_,p);p=p.sibling}p=Md(z,_.mode,M),p.return=_,_=p}return o(_);case rn:return I=z._init,C(_,p,I(z._payload),M)}if(ps(z))return m(_,p,z,M);if(Wo(z))return f(_,p,z,M);Nl(_,z)}return typeof z=="string"&&z!==""||typeof z=="number"?(z=""+z,p!==null&&p.tag===6?(t(_,p.sibling),p=n(p,z),p.return=_,_=p):(t(_,p),p=xd(z,_.mode,M),p.return=_,_=p),o(_)):t(_,p)}return C}var X2=og(!0),sg=og(!1),tl={},si=Tn(tl),zc=Tn(tl),yc=Tn(tl);function pa(r){if(r===tl)throw Error(D(174));return r}function Pv(r,e){switch(Ge(yc,e),Ge(zc,r),Ge(si,tl),r=e.nodeType,r){case 9:case 11:e=(e=e.documentElement)?e.namespaceURI:Z5(null,"");break;default:r=r===8?e.parentNode:e,e=r.namespaceURI||null,r=r.tagName,e=Z5(e,r)}Xe(si),Ge(si,e)}function J2(){Xe(si),Xe(zc),Xe(yc)}function cg(r){pa(yc.current);var e=pa(si.current),t=Z5(e,r.type);e!==t&&(Ge(zc,r),Ge(si,t))}function Av(r){zc.current===r&&(Xe(si),Xe(zc))}var rt=Tn(0);function a0(r){for(var e=r;e!==null;){if(e.tag===13){var t=e.memoizedState;if(t!==null&&(t=t.dehydrated,t===null||t.data==="$?"||t.data==="$!"))return e}else if(e.tag===19&&e.memoizedProps.revealOrder!==void 0){if(e.flags&128)return e}else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===r)break;for(;e.sibling===null;){if(e.return===null||e.return===r)return null;e=e.return}e.sibling.return=e.return,e=e.sibling}return null}var gd=[];function Vv(){for(var r=0;r<gd.length;r++)gd[r]._workInProgressVersionPrimary=null;gd.length=0}var fh=ji.ReactCurrentDispatcher,_d=ji.ReactCurrentBatchConfig,ka=0,it=null,Ht=null,Tt=null,o0=!1,Fs=!1,wc=0,Sx=0;function i1(){throw Error(D(321))}function Sv(r,e){if(e===null)return!1;for(var t=0;t<e.length&&t<r.length;t++)if(!Or(r[t],e[t]))return!1;return!0}function $v(r,e,t,i,n,a){if(ka=a,it=e,e.memoizedState=null,e.updateQueue=null,e.lanes=0,fh.current=r===null||r.memoizedState===null?Tx:Ix,r=t(i,n),Fs){a=0;do{if(Fs=!1,wc=0,25<=a)throw Error(D(301));a+=1,Tt=Ht=null,e.updateQueue=null,fh.current=Rx,r=t(i,n)}while(Fs)}if(fh.current=s0,e=Ht!==null&&Ht.next!==null,ka=0,Tt=Ht=it=null,o0=!1,e)throw Error(D(300));return r}function Dv(){var r=wc!==0;return wc=0,r}function Jr(){var r={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Tt===null?it.memoizedState=Tt=r:Tt=Tt.next=r,Tt}function yr(){if(Ht===null){var r=it.alternate;r=r!==null?r.memoizedState:null}else r=Ht.next;var e=Tt===null?it.memoizedState:Tt.next;if(e!==null)Tt=e,Ht=r;else{if(r===null)throw Error(D(310));Ht=r,r={memoizedState:Ht.memoizedState,baseState:Ht.baseState,baseQueue:Ht.baseQueue,queue:Ht.queue,next:null},Tt===null?it.memoizedState=Tt=r:Tt=Tt.next=r}return Tt}function bc(r,e){return typeof e=="function"?e(r):e}function zd(r){var e=yr(),t=e.queue;if(t===null)throw Error(D(311));t.lastRenderedReducer=r;var i=Ht,n=i.baseQueue,a=t.pending;if(a!==null){if(n!==null){var o=n.next;n.next=a.next,a.next=o}i.baseQueue=n=a,t.pending=null}if(n!==null){a=n.next,i=i.baseState;var s=o=null,c=null,l=a;do{var h=l.lane;if((ka&h)===h)c!==null&&(c=c.next={lane:0,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null}),i=l.hasEagerState?l.eagerState:r(i,l.action);else{var d={lane:h,action:l.action,hasEagerState:l.hasEagerState,eagerState:l.eagerState,next:null};c===null?(s=c=d,o=i):c=c.next=d,it.lanes|=h,Ea|=h}l=l.next}while(l!==null&&l!==a);c===null?o=i:c.next=s,Or(i,e.memoizedState)||(D1=!0),e.memoizedState=i,e.baseState=o,e.baseQueue=c,t.lastRenderedState=i}if(r=t.interleaved,r!==null){n=r;do a=n.lane,it.lanes|=a,Ea|=a,n=n.next;while(n!==r)}else n===null&&(t.lanes=0);return[e.memoizedState,t.dispatch]}function yd(r){var e=yr(),t=e.queue;if(t===null)throw Error(D(311));t.lastRenderedReducer=r;var i=t.dispatch,n=t.pending,a=e.memoizedState;if(n!==null){t.pending=null;var o=n=n.next;do a=r(a,o.action),o=o.next;while(o!==n);Or(a,e.memoizedState)||(D1=!0),e.memoizedState=a,e.baseQueue===null&&(e.baseState=a),t.lastRenderedState=a}return[a,i]}function lg(){}function hg(r,e){var t=it,i=yr(),n=e(),a=!Or(i.memoizedState,n);if(a&&(i.memoizedState=n,D1=!0),i=i.queue,Lv(vg.bind(null,t,i,r),[r]),i.getSnapshot!==e||a||Tt!==null&&Tt.memoizedState.tag&1){if(t.flags|=2048,xc(9,ug.bind(null,t,i,n,e),void 0,null),Ot===null)throw Error(D(349));ka&30||dg(t,e,n)}return n}function dg(r,e,t){r.flags|=16384,r={getSnapshot:e,value:t},e=it.updateQueue,e===null?(e={lastEffect:null,stores:null},it.updateQueue=e,e.stores=[r]):(t=e.stores,t===null?e.stores=[r]:t.push(r))}function ug(r,e,t,i){e.value=t,e.getSnapshot=i,mg(e)&&fg(r)}function vg(r,e,t){return t(function(){mg(e)&&fg(r)})}function mg(r){var e=r.getSnapshot;r=r.value;try{var t=e();return!Or(r,t)}catch{return!0}}function fg(r){var e=Oi(r,1);e!==null&&Rr(e,r,1,-1)}function L8(r){var e=Jr();return typeof r=="function"&&(r=r()),e.memoizedState=e.baseState=r,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:bc,lastRenderedState:r},e.queue=r,r=r.dispatch=Lx.bind(null,it,r),[e.memoizedState,r]}function xc(r,e,t,i){return r={tag:r,create:e,destroy:t,deps:i,next:null},e=it.updateQueue,e===null?(e={lastEffect:null,stores:null},it.updateQueue=e,e.lastEffect=r.next=r):(t=e.lastEffect,t===null?e.lastEffect=r.next=r:(i=t.next,t.next=r,r.next=i,e.lastEffect=r)),r}function pg(){return yr().memoizedState}function ph(r,e,t,i){var n=Jr();it.flags|=r,n.memoizedState=xc(1|e,t,void 0,i===void 0?null:i)}function u4(r,e,t,i){var n=yr();i=i===void 0?null:i;var a=void 0;if(Ht!==null){var o=Ht.memoizedState;if(a=o.destroy,i!==null&&Sv(i,o.deps)){n.memoizedState=xc(e,t,a,i);return}}it.flags|=r,n.memoizedState=xc(1|e,t,a,i)}function T8(r,e){return ph(8390656,8,r,e)}function Lv(r,e){return u4(2048,8,r,e)}function gg(r,e){return u4(4,2,r,e)}function _g(r,e){return u4(4,4,r,e)}function zg(r,e){if(typeof e=="function")return r=r(),e(r),function(){e(null)};if(e!=null)return r=r(),e.current=r,function(){e.current=null}}function yg(r,e,t){return t=t!=null?t.concat([r]):null,u4(4,4,zg.bind(null,e,r),t)}function Tv(){}function wg(r,e){var t=yr();e=e===void 0?null:e;var i=t.memoizedState;return i!==null&&e!==null&&Sv(e,i[1])?i[0]:(t.memoizedState=[r,e],r)}function bg(r,e){var t=yr();e=e===void 0?null:e;var i=t.memoizedState;return i!==null&&e!==null&&Sv(e,i[1])?i[0]:(r=r(),t.memoizedState=[r,e],r)}function xg(r,e,t){return ka&21?(Or(t,e)||(t=H7(),it.lanes|=t,Ea|=t,r.baseState=!0),e):(r.baseState&&(r.baseState=!1,D1=!0),r.memoizedState=t)}function $x(r,e){var t=Oe;Oe=t!==0&&4>t?t:4,r(!0);var i=_d.transition;_d.transition={};try{r(!1),e()}finally{Oe=t,_d.transition=i}}function Mg(){return yr().memoizedState}function Dx(r,e,t){var i=Cn(r);if(t={lane:i,action:t,hasEagerState:!1,eagerState:null,next:null},Cg(r))Hg(e,t);else if(t=rg(r,e,t,i),t!==null){var n=z1();Rr(t,r,i,n),kg(t,e,i)}}function Lx(r,e,t){var i=Cn(r),n={lane:i,action:t,hasEagerState:!1,eagerState:null,next:null};if(Cg(r))Hg(e,n);else{var a=r.alternate;if(r.lanes===0&&(a===null||a.lanes===0)&&(a=e.lastRenderedReducer,a!==null))try{var o=e.lastRenderedState,s=a(o,t);if(n.hasEagerState=!0,n.eagerState=s,Or(s,o)){var c=e.interleaved;c===null?(n.next=n,kv(e)):(n.next=c.next,c.next=n),e.interleaved=n;return}}catch{}finally{}t=rg(r,e,n,i),t!==null&&(n=z1(),Rr(t,r,i,n),kg(t,e,i))}}function Cg(r){var e=r.alternate;return r===it||e!==null&&e===it}function Hg(r,e){Fs=o0=!0;var t=r.pending;t===null?e.next=e:(e.next=t.next,t.next=e),r.pending=e}function kg(r,e,t){if(t&4194240){var i=e.lanes;i&=r.pendingLanes,t|=i,e.lanes=t,vv(r,t)}}var s0={readContext:zr,useCallback:i1,useContext:i1,useEffect:i1,useImperativeHandle:i1,useInsertionEffect:i1,useLayoutEffect:i1,useMemo:i1,useReducer:i1,useRef:i1,useState:i1,useDebugValue:i1,useDeferredValue:i1,useTransition:i1,useMutableSource:i1,useSyncExternalStore:i1,useId:i1,unstable_isNewReconciler:!1},Tx={readContext:zr,useCallback:function(r,e){return Jr().memoizedState=[r,e===void 0?null:e],r},useContext:zr,useEffect:T8,useImperativeHandle:function(r,e,t){return t=t!=null?t.concat([r]):null,ph(4194308,4,zg.bind(null,e,r),t)},useLayoutEffect:function(r,e){return ph(4194308,4,r,e)},useInsertionEffect:function(r,e){return ph(4,2,r,e)},useMemo:function(r,e){var t=Jr();return e=e===void 0?null:e,r=r(),t.memoizedState=[r,e],r},useReducer:function(r,e,t){var i=Jr();return e=t!==void 0?t(e):e,i.memoizedState=i.baseState=e,r={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:r,lastRenderedState:e},i.queue=r,r=r.dispatch=Dx.bind(null,it,r),[i.memoizedState,r]},useRef:function(r){var e=Jr();return r={current:r},e.memoizedState=r},useState:L8,useDebugValue:Tv,useDeferredValue:function(r){return Jr().memoizedState=r},useTransition:function(){var r=L8(!1),e=r[0];return r=$x.bind(null,r[1]),Jr().memoizedState=r,[e,r]},useMutableSource:function(){},useSyncExternalStore:function(r,e,t){var i=it,n=Jr();if(et){if(t===void 0)throw Error(D(407));t=t()}else{if(t=e(),Ot===null)throw Error(D(349));ka&30||dg(i,e,t)}n.memoizedState=t;var a={value:t,getSnapshot:e};return n.queue=a,T8(vg.bind(null,i,a,r),[r]),i.flags|=2048,xc(9,ug.bind(null,i,a,t,e),void 0,null),t},useId:function(){var r=Jr(),e=Ot.identifierPrefix;if(et){var t=Ai,i=Pi;t=(i&~(1<<32-Ir(i)-1)).toString(32)+t,e=":"+e+"R"+t,t=wc++,0<t&&(e+="H"+t.toString(32)),e+=":"}else t=Sx++,e=":"+e+"r"+t.toString(32)+":";return r.memoizedState=e},unstable_isNewReconciler:!1},Ix={readContext:zr,useCallback:wg,useContext:zr,useEffect:Lv,useImperativeHandle:yg,useInsertionEffect:gg,useLayoutEffect:_g,useMemo:bg,useReducer:zd,useRef:pg,useState:function(){return zd(bc)},useDebugValue:Tv,useDeferredValue:function(r){var e=yr();return xg(e,Ht.memoizedState,r)},useTransition:function(){var r=zd(bc)[0],e=yr().memoizedState;return[r,e]},useMutableSource:lg,useSyncExternalStore:hg,useId:Mg,unstable_isNewReconciler:!1},Rx={readContext:zr,useCallback:wg,useContext:zr,useEffect:Lv,useImperativeHandle:yg,useInsertionEffect:gg,useLayoutEffect:_g,useMemo:bg,useReducer:yd,useRef:pg,useState:function(){return yd(bc)},useDebugValue:Tv,useDeferredValue:function(r){var e=yr();return Ht===null?e.memoizedState=r:xg(e,Ht.memoizedState,r)},useTransition:function(){var r=yd(bc)[0],e=yr().memoizedState;return[r,e]},useMutableSource:lg,useSyncExternalStore:hg,useId:Mg,unstable_isNewReconciler:!1};function Z2(r,e){try{var t="",i=e;do t+=ub(i),i=i.return;while(i);var n=t}catch(a){n=`
|
|
39
39
|
Error generating stack: `+a.message+`
|
|
40
|
-
`+a.stack}return{value:r,source:e,stack:n,digest:null}}function wd(r,e,t){return{value:r,source:null,stack:t??null,digest:e??null}}function b3(r,e){try{console.error(e.value)}catch(t){setTimeout(function(){throw t})}}var Ox=typeof WeakMap=="function"?WeakMap:Map;function Eg(r,e,t){t=Si(-1,t),t.tag=3,t.payload={element:null};var i=e.value;return t.callback=function(){l0||(l0=!0,S3=i),b3(r,e)},t}function Pg(r,e,t){t=Si(-1,t),t.tag=3;var i=r.type.getDerivedStateFromError;if(typeof i=="function"){var n=e.value;t.payload=function(){return i(n)},t.callback=function(){b3(r,e)}}var a=r.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(t.callback=function(){b3(r,e),typeof i!="function"&&(xn===null?xn=new Set([this]):xn.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),t}function I8(r,e,t){var i=r.pingCache;if(i===null){i=r.pingCache=new Ox;var n=new Set;i.set(e,n)}else n=i.get(e),n===void 0&&(n=new Set,i.set(e,n));n.has(t)||(n.add(t),r=Zx.bind(null,r,e,t),e.then(r,r))}function R8(r){do{var e;if((e=r.tag===13)&&(e=r.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return r;r=r.return}while(r!==null);return null}function O8(r,e,t,i,n){return r.mode&1?(r.flags|=65536,r.lanes=n,r):(r===e?r.flags|=65536:(r.flags|=128,t.flags|=131072,t.flags&=-52805,t.tag===1&&(t.alternate===null?t.tag=17:(e=Si(-1,1),e.tag=2,bn(t,e,1))),t.lanes|=1),r)}var Nx=Bi.ReactCurrentOwner,D1=!1;function f1(r,e,t,i){e.child=r===null?sg(e,null,t,i):X2(e,r.child,t,i)}function N8(r,e,t,i,n){t=t.render;var a=e.ref;return S2(e,n),i=$v(r,e,t,i,a,n),t=Dv(),r!==null&&!D1?(e.updateQueue=r.updateQueue,e.flags&=-2053,r.lanes&=~n,Oi(r,e,n)):(et&&t&&wv(e),e.flags|=1,f1(r,e,i,n),e.child)}function U8(r,e,t,i,n){if(r===null){var a=t.type;return typeof a=="function"&&!jv(a)&&a.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(e.tag=15,e.type=a,Ag(r,e,a,i,n)):(r=yh(t.type,null,i,e,e.mode,n),r.ref=e.ref,r.return=e,e.child=r)}if(a=r.child,!(r.lanes&n)){var o=a.memoizedProps;if(t=t.compare,t=t!==null?t:fc,t(o,i)&&r.ref===e.ref)return Oi(r,e,n)}return e.flags|=1,r=Cn(a,i),r.ref=e.ref,r.return=e,e.child=r}function Ag(r,e,t,i,n){if(r!==null){var a=r.memoizedProps;if(fc(a,i)&&r.ref===e.ref)if(D1=!1,e.pendingProps=i=a,(r.lanes&n)!==0)r.flags&131072&&(D1=!0);else return e.lanes=r.lanes,Oi(r,e,n)}return x3(r,e,t,i,n)}function Vg(r,e,t){var i=e.pendingProps,n=i.children,a=r!==null?r.memoizedState:null;if(i.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},qe(z2,G1),G1|=t;else{if(!(t&1073741824))return r=a!==null?a.baseLanes|t:t,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:r,cachePool:null,transitions:null},e.updateQueue=null,qe(z2,G1),G1|=r,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=a!==null?a.baseLanes:t,qe(z2,G1),G1|=i}else a!==null?(i=a.baseLanes|t,e.memoizedState=null):i=t,qe(z2,G1),G1|=i;return f1(r,e,n,t),e.child}function Sg(r,e){var t=e.ref;(r===null&&t!==null||r!==null&&r.ref!==t)&&(e.flags|=512,e.flags|=2097152)}function x3(r,e,t,i,n){var a=O1(t)?Ca:u1.current;return a=Y2(e,a),S2(e,n),t=$v(r,e,t,i,a,n),i=Dv(),r!==null&&!D1?(e.updateQueue=r.updateQueue,e.flags&=-2053,r.lanes&=~n,Oi(r,e,n)):(et&&i&&wv(e),e.flags|=1,f1(r,e,t,n),e.child)}function F8(r,e,t,i,n){if(O1(t)){var a=!0;Zh(e)}else a=!1;if(S2(e,n),e.stateNode===null)gh(r,e),ag(e,t,i),w3(e,t,i,n),i=!0;else if(r===null){var o=e.stateNode,s=e.memoizedProps;o.props=s;var c=o.context,l=t.contextType;typeof l=="object"&&l!==null?l=zr(l):(l=O1(t)?Ca:u1.current,l=Y2(e,l));var h=t.getDerivedStateFromProps,d=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==i||c!==l)&&$8(e,o,i,l),rn=!1;var u=e.memoizedState;o.state=u,n0(e,i,o,n),c=e.memoizedState,s!==i||u!==c||R1.current||rn?(typeof h=="function"&&(y3(e,t,h,i),c=e.memoizedState),(s=rn||S8(e,t,s,i,u,c,l))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=c),o.props=i,o.state=c,o.context=l,i=s):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{o=e.stateNode,ig(r,e),s=e.memoizedProps,l=e.type===e.elementType?s:Ar(e.type,s),o.props=l,d=e.pendingProps,u=o.context,c=t.contextType,typeof c=="object"&&c!==null?c=zr(c):(c=O1(t)?Ca:u1.current,c=Y2(e,c));var v=t.getDerivedStateFromProps;(h=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==d||u!==c)&&$8(e,o,i,c),rn=!1,u=e.memoizedState,o.state=u,n0(e,i,o,n);var m=e.memoizedState;s!==d||u!==m||R1.current||rn?(typeof v=="function"&&(y3(e,t,v,i),m=e.memoizedState),(l=rn||S8(e,t,l,i,u,m,c)||!1)?(h||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,m,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,m,c)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===r.memoizedProps&&u===r.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===r.memoizedProps&&u===r.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=m),o.props=i,o.state=m,o.context=c,i=l):(typeof o.componentDidUpdate!="function"||s===r.memoizedProps&&u===r.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===r.memoizedProps&&u===r.memoizedState||(e.flags|=1024),i=!1)}return M3(r,e,t,i,a,n)}function M3(r,e,t,i,n,a){Sg(r,e);var o=(e.flags&128)!==0;if(!i&&!o)return n&&k8(e,t,!1),Oi(r,e,a);i=e.stateNode,Nx.current=e;var s=o&&typeof t.getDerivedStateFromError!="function"?null:i.render();return e.flags|=1,r!==null&&o?(e.child=X2(e,r.child,null,a),e.child=X2(e,null,s,a)):f1(r,e,s,a),e.memoizedState=i.state,n&&k8(e,t,!0),e.child}function $g(r){var e=r.stateNode;e.pendingContext?H8(r,e.pendingContext,e.pendingContext!==e.context):e.context&&H8(r,e.context,!1),Pv(r,e.containerInfo)}function B8(r,e,t,i,n){return Q2(),xv(n),e.flags|=256,f1(r,e,t,i),e.child}var C3={dehydrated:null,treeContext:null,retryLane:0};function H3(r){return{baseLanes:r,cachePool:null,transitions:null}}function Dg(r,e,t){var i=e.pendingProps,n=rt.current,a=!1,o=(e.flags&128)!==0,s;if((s=o)||(s=r!==null&&r.memoizedState===null?!1:(n&2)!==0),s?(a=!0,e.flags&=-129):(r===null||r.memoizedState!==null)&&(n|=1),qe(rt,n&1),r===null)return _3(e),r=e.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?(e.mode&1?r.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=i.children,r=i.fallback,a?(i=e.mode,a=e.child,o={mode:"hidden",children:o},!(i&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=f4(o,i,0,null),r=ya(r,i,t,null),a.return=e,r.return=e,a.sibling=r,e.child=a,e.child.memoizedState=H3(t),e.memoizedState=C3,r):Iv(e,o));if(n=r.memoizedState,n!==null&&(s=n.dehydrated,s!==null))return Ux(r,e,o,i,s,n,t);if(a){a=i.fallback,o=e.mode,n=r.child,s=n.sibling;var c={mode:"hidden",children:i.children};return!(o&1)&&e.child!==n?(i=e.child,i.childLanes=0,i.pendingProps=c,e.deletions=null):(i=Cn(n,c),i.subtreeFlags=n.subtreeFlags&14680064),s!==null?a=Cn(s,a):(a=ya(a,o,t,null),a.flags|=2),a.return=e,i.return=e,i.sibling=a,e.child=i,i=a,a=e.child,o=r.child.memoizedState,o=o===null?H3(t):{baseLanes:o.baseLanes|t,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=r.childLanes&~t,e.memoizedState=C3,i}return a=r.child,r=a.sibling,i=Cn(a,{mode:"visible",children:i.children}),!(e.mode&1)&&(i.lanes=t),i.return=e,i.sibling=null,r!==null&&(t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)),e.child=i,e.memoizedState=null,i}function Iv(r,e){return e=f4({mode:"visible",children:e},r.mode,0,null),e.return=r,r.child=e}function Ul(r,e,t,i){return i!==null&&xv(i),X2(e,r.child,null,t),r=Iv(e,e.pendingProps.children),r.flags|=2,e.memoizedState=null,r}function Ux(r,e,t,i,n,a,o){if(t)return e.flags&256?(e.flags&=-257,i=wd(Error(D(422))),Ul(r,e,o,i)):e.memoizedState!==null?(e.child=r.child,e.flags|=128,null):(a=i.fallback,n=e.mode,i=f4({mode:"visible",children:i.children},n,0,null),a=ya(a,n,o,null),a.flags|=2,i.return=e,a.return=e,i.sibling=a,e.child=i,e.mode&1&&X2(e,r.child,null,o),e.child.memoizedState=H3(o),e.memoizedState=C3,a);if(!(e.mode&1))return Ul(r,e,o,null);if(n.data==="$!"){if(i=n.nextSibling&&n.nextSibling.dataset,i)var s=i.dgst;return i=s,a=Error(D(419)),i=wd(a,i,void 0),Ul(r,e,o,i)}if(s=(o&r.childLanes)!==0,D1||s){if(i=Ot,i!==null){switch(o&-o){case 4:n=2;break;case 16:n=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:n=32;break;case 536870912:n=268435456;break;default:n=0}n=n&(i.suspendedLanes|o)?0:n,n!==0&&n!==a.retryLane&&(a.retryLane=n,Ri(r,n),Rr(i,r,n,-1))}return Bv(),i=wd(Error(D(421))),Ul(r,e,o,i)}return n.data==="$?"?(e.flags|=128,e.child=r.child,e=eM.bind(null,r),n._reactRetry=e,null):(r=a.treeContext,W1=wn(n.nextSibling),Q1=e,et=!0,Sr=null,r!==null&&(lr[hr++]=Ei,lr[hr++]=Pi,lr[hr++]=Ha,Ei=r.id,Pi=r.overflow,Ha=e),e=Iv(e,i.children),e.flags|=4096,e)}function j8(r,e,t){r.lanes|=e;var i=r.alternate;i!==null&&(i.lanes|=e),z3(r.return,e,t)}function bd(r,e,t,i,n){var a=r.memoizedState;a===null?r.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:t,tailMode:n}:(a.isBackwards=e,a.rendering=null,a.renderingStartTime=0,a.last=i,a.tail=t,a.tailMode=n)}function Lg(r,e,t){var i=e.pendingProps,n=i.revealOrder,a=i.tail;if(f1(r,e,i.children,t),i=rt.current,i&2)i=i&1|2,e.flags|=128;else{if(r!==null&&r.flags&128)e:for(r=e.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&j8(r,t,e);else if(r.tag===19)j8(r,t,e);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break e;for(;r.sibling===null;){if(r.return===null||r.return===e)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}i&=1}if(qe(rt,i),!(e.mode&1))e.memoizedState=null;else switch(n){case"forwards":for(t=e.child,n=null;t!==null;)r=t.alternate,r!==null&&a0(r)===null&&(n=t),t=t.sibling;t=n,t===null?(n=e.child,e.child=null):(n=t.sibling,t.sibling=null),bd(e,!1,n,t,a);break;case"backwards":for(t=null,n=e.child,e.child=null;n!==null;){if(r=n.alternate,r!==null&&a0(r)===null){e.child=n;break}r=n.sibling,n.sibling=t,t=n,n=r}bd(e,!0,t,null,a);break;case"together":bd(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function gh(r,e){!(e.mode&1)&&r!==null&&(r.alternate=null,e.alternate=null,e.flags|=2)}function Oi(r,e,t){if(r!==null&&(e.dependencies=r.dependencies),Ea|=e.lanes,!(t&e.childLanes))return null;if(r!==null&&e.child!==r.child)throw Error(D(153));if(e.child!==null){for(r=e.child,t=Cn(r,r.pendingProps),e.child=t,t.return=e;r.sibling!==null;)r=r.sibling,t=t.sibling=Cn(r,r.pendingProps),t.return=e;t.sibling=null}return e.child}function Fx(r,e,t){switch(e.tag){case 3:$g(e),Q2();break;case 5:cg(e);break;case 1:O1(e.type)&&Zh(e);break;case 4:Pv(e,e.stateNode.containerInfo);break;case 10:var i=e.type._context,n=e.memoizedProps.value;qe(r0,i._currentValue),i._currentValue=n;break;case 13:if(i=e.memoizedState,i!==null)return i.dehydrated!==null?(qe(rt,rt.current&1),e.flags|=128,null):t&e.child.childLanes?Dg(r,e,t):(qe(rt,rt.current&1),r=Oi(r,e,t),r!==null?r.sibling:null);qe(rt,rt.current&1);break;case 19:if(i=(t&e.childLanes)!==0,r.flags&128){if(i)return Lg(r,e,t);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),qe(rt,rt.current),i)break;return null;case 22:case 23:return e.lanes=0,Vg(r,e,t)}return Oi(r,e,t)}var Tg,k3,Ig,Rg;Tg=function(r,e){for(var t=e.child;t!==null;){if(t.tag===5||t.tag===6)r.appendChild(t.stateNode);else if(t.tag!==4&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}};k3=function(){};Ig=function(r,e,t,i){var n=r.memoizedProps;if(n!==i){r=e.stateNode,pa(si.current);var a=null;switch(t){case"input":n=Y5(r,n),i=Y5(r,i),a=[];break;case"select":n=nt({},n,{value:void 0}),i=nt({},i,{value:void 0}),a=[];break;case"textarea":n=J5(r,n),i=J5(r,i),a=[];break;default:typeof n.onClick!="function"&&typeof i.onClick=="function"&&(r.onclick=Xh)}e3(t,i);var o;t=null;for(l in n)if(!i.hasOwnProperty(l)&&n.hasOwnProperty(l)&&n[l]!=null)if(l==="style"){var s=n[l];for(o in s)s.hasOwnProperty(o)&&(t||(t={}),t[o]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(cc.hasOwnProperty(l)?a||(a=[]):(a=a||[]).push(l,null));for(l in i){var c=i[l];if(s=n!=null?n[l]:void 0,i.hasOwnProperty(l)&&c!==s&&(c!=null||s!=null))if(l==="style")if(s){for(o in s)!s.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(t||(t={}),t[o]="");for(o in c)c.hasOwnProperty(o)&&s[o]!==c[o]&&(t||(t={}),t[o]=c[o])}else t||(a||(a=[]),a.push(l,t)),t=c;else l==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(a=a||[]).push(l,c)):l==="children"?typeof c!="string"&&typeof c!="number"||(a=a||[]).push(l,""+c):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(cc.hasOwnProperty(l)?(c!=null&&l==="onScroll"&&Ke("scroll",r),a||s===c||(a=[])):(a=a||[]).push(l,c))}t&&(a=a||[]).push("style",t);var l=a;(e.updateQueue=l)&&(e.flags|=4)}};Rg=function(r,e,t,i){t!==i&&(e.flags|=4)};function es(r,e){if(!et)switch(r.tailMode){case"hidden":e=r.tail;for(var t=null;e!==null;)e.alternate!==null&&(t=e),e=e.sibling;t===null?r.tail=null:t.sibling=null;break;case"collapsed":t=r.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e||r.tail===null?r.tail=null:r.tail.sibling=null:i.sibling=null}}function n1(r){var e=r.alternate!==null&&r.alternate.child===r.child,t=0,i=0;if(e)for(var n=r.child;n!==null;)t|=n.lanes|n.childLanes,i|=n.subtreeFlags&14680064,i|=n.flags&14680064,n.return=r,n=n.sibling;else for(n=r.child;n!==null;)t|=n.lanes|n.childLanes,i|=n.subtreeFlags,i|=n.flags,n.return=r,n=n.sibling;return r.subtreeFlags|=i,r.childLanes=t,e}function Bx(r,e,t){var i=e.pendingProps;switch(bv(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return n1(e),null;case 1:return O1(e.type)&&Jh(),n1(e),null;case 3:return i=e.stateNode,J2(),Qe(R1),Qe(u1),Vv(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(r===null||r.child===null)&&(Ol(e)?e.flags|=4:r===null||r.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Sr!==null&&(L3(Sr),Sr=null))),k3(r,e),n1(e),null;case 5:Av(e);var n=pa(yc.current);if(t=e.type,r!==null&&e.stateNode!=null)Ig(r,e,t,i,n),r.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!i){if(e.stateNode===null)throw Error(D(166));return n1(e),null}if(r=pa(si.current),Ol(e)){i=e.stateNode,t=e.type;var a=e.memoizedProps;switch(i[ri]=e,i[_c]=a,r=(e.mode&1)!==0,t){case"dialog":Ke("cancel",i),Ke("close",i);break;case"iframe":case"object":case"embed":Ke("load",i);break;case"video":case"audio":for(n=0;n<_s.length;n++)Ke(_s[n],i);break;case"source":Ke("error",i);break;case"img":case"image":case"link":Ke("error",i),Ke("load",i);break;case"details":Ke("toggle",i);break;case"input":Z6(i,a),Ke("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!a.multiple},Ke("invalid",i);break;case"textarea":t8(i,a),Ke("invalid",i)}e3(t,a),n=null;for(var o in a)if(a.hasOwnProperty(o)){var s=a[o];o==="children"?typeof s=="string"?i.textContent!==s&&(a.suppressHydrationWarning!==!0&&Rl(i.textContent,s,r),n=["children",s]):typeof s=="number"&&i.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&Rl(i.textContent,s,r),n=["children",""+s]):cc.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&Ke("scroll",i)}switch(t){case"input":Al(i),e8(i,a,!0);break;case"textarea":Al(i),r8(i);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(i.onclick=Xh)}i=n,e.updateQueue=i,i!==null&&(e.flags|=4)}else{o=n.nodeType===9?n:n.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=d7(t)),r==="http://www.w3.org/1999/xhtml"?t==="script"?(r=o.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof i.is=="string"?r=o.createElement(t,{is:i.is}):(r=o.createElement(t),t==="select"&&(o=r,i.multiple?o.multiple=!0:i.size&&(o.size=i.size))):r=o.createElementNS(r,t),r[ri]=e,r[_c]=i,Tg(r,e,!1,!1),e.stateNode=r;e:{switch(o=t3(t,i),t){case"dialog":Ke("cancel",r),Ke("close",r),n=i;break;case"iframe":case"object":case"embed":Ke("load",r),n=i;break;case"video":case"audio":for(n=0;n<_s.length;n++)Ke(_s[n],r);n=i;break;case"source":Ke("error",r),n=i;break;case"img":case"image":case"link":Ke("error",r),Ke("load",r),n=i;break;case"details":Ke("toggle",r),n=i;break;case"input":Z6(r,i),n=Y5(r,i),Ke("invalid",r);break;case"option":n=i;break;case"select":r._wrapperState={wasMultiple:!!i.multiple},n=nt({},i,{value:void 0}),Ke("invalid",r);break;case"textarea":t8(r,i),n=J5(r,i),Ke("invalid",r);break;default:n=i}e3(t,n),s=n;for(a in s)if(s.hasOwnProperty(a)){var c=s[a];a==="style"?m7(r,c):a==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&u7(r,c)):a==="children"?typeof c=="string"?(t!=="textarea"||c!=="")&&lc(r,c):typeof c=="number"&&lc(r,""+c):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(cc.hasOwnProperty(a)?c!=null&&a==="onScroll"&&Ke("scroll",r):c!=null&&sv(r,a,c,o))}switch(t){case"input":Al(r),e8(r,i,!1);break;case"textarea":Al(r),r8(r);break;case"option":i.value!=null&&r.setAttribute("value",""+En(i.value));break;case"select":r.multiple=!!i.multiple,a=i.value,a!=null?E2(r,!!i.multiple,a,!1):i.defaultValue!=null&&E2(r,!!i.multiple,i.defaultValue,!0);break;default:typeof n.onClick=="function"&&(r.onclick=Xh)}switch(t){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return n1(e),null;case 6:if(r&&e.stateNode!=null)Rg(r,e,r.memoizedProps,i);else{if(typeof i!="string"&&e.stateNode===null)throw Error(D(166));if(t=pa(yc.current),pa(si.current),Ol(e)){if(i=e.stateNode,t=e.memoizedProps,i[ri]=e,(a=i.nodeValue!==t)&&(r=Q1,r!==null))switch(r.tag){case 3:Rl(i.nodeValue,t,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Rl(i.nodeValue,t,(r.mode&1)!==0)}a&&(e.flags|=4)}else i=(t.nodeType===9?t:t.ownerDocument).createTextNode(i),i[ri]=e,e.stateNode=i}return n1(e),null;case 13:if(Qe(rt),i=e.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(et&&W1!==null&&e.mode&1&&!(e.flags&128))tg(),Q2(),e.flags|=98560,a=!1;else if(a=Ol(e),i!==null&&i.dehydrated!==null){if(r===null){if(!a)throw Error(D(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(D(317));a[ri]=e}else Q2(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;n1(e),a=!1}else Sr!==null&&(L3(Sr),Sr=null),a=!0;if(!a)return e.flags&65536?e:null}return e.flags&128?(e.lanes=t,e):(i=i!==null,i!==(r!==null&&r.memoizedState!==null)&&i&&(e.child.flags|=8192,e.mode&1&&(r===null||rt.current&1?Vt===0&&(Vt=3):Bv())),e.updateQueue!==null&&(e.flags|=4),n1(e),null);case 4:return J2(),k3(r,e),r===null&&pc(e.stateNode.containerInfo),n1(e),null;case 10:return Hv(e.type._context),n1(e),null;case 17:return O1(e.type)&&Jh(),n1(e),null;case 19:if(Qe(rt),a=e.memoizedState,a===null)return n1(e),null;if(i=(e.flags&128)!==0,o=a.rendering,o===null)if(i)es(a,!1);else{if(Vt!==0||r!==null&&r.flags&128)for(r=e.child;r!==null;){if(o=a0(r),o!==null){for(e.flags|=128,es(a,!1),i=o.updateQueue,i!==null&&(e.updateQueue=i,e.flags|=4),e.subtreeFlags=0,i=t,t=e.child;t!==null;)a=t,r=i,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=r,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,r=o.dependencies,a.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t=t.sibling;return qe(rt,rt.current&1|2),e.child}r=r.sibling}a.tail!==null&&vt()>eo&&(e.flags|=128,i=!0,es(a,!1),e.lanes=4194304)}else{if(!i)if(r=a0(o),r!==null){if(e.flags|=128,i=!0,t=r.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),es(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!et)return n1(e),null}else 2*vt()-a.renderingStartTime>eo&&t!==1073741824&&(e.flags|=128,i=!0,es(a,!1),e.lanes=4194304);a.isBackwards?(o.sibling=e.child,e.child=o):(t=a.last,t!==null?t.sibling=o:e.child=o,a.last=o)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=vt(),e.sibling=null,t=rt.current,qe(rt,i?t&1|2:t&1),e):(n1(e),null);case 22:case 23:return Fv(),i=e.memoizedState!==null,r!==null&&r.memoizedState!==null!==i&&(e.flags|=8192),i&&e.mode&1?G1&1073741824&&(n1(e),e.subtreeFlags&6&&(e.flags|=8192)):n1(e),null;case 24:return null;case 25:return null}throw Error(D(156,e.tag))}function jx(r,e){switch(bv(e),e.tag){case 1:return O1(e.type)&&Jh(),r=e.flags,r&65536?(e.flags=r&-65537|128,e):null;case 3:return J2(),Qe(R1),Qe(u1),Vv(),r=e.flags,r&65536&&!(r&128)?(e.flags=r&-65537|128,e):null;case 5:return Av(e),null;case 13:if(Qe(rt),r=e.memoizedState,r!==null&&r.dehydrated!==null){if(e.alternate===null)throw Error(D(340));Q2()}return r=e.flags,r&65536?(e.flags=r&-65537|128,e):null;case 19:return Qe(rt),null;case 4:return J2(),null;case 10:return Hv(e.type._context),null;case 22:case 23:return Fv(),null;case 24:return null;default:return null}}var Fl=!1,l1=!1,qx=typeof WeakSet=="function"?WeakSet:Set,q=null;function _2(r,e){var t=r.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(i){ct(r,e,i)}else t.current=null}function E3(r,e,t){try{t()}catch(i){ct(r,e,i)}}var q8=!1;function Gx(r,e){if(d3=Wh,r=F7(),yv(r)){if("selectionStart"in r)var t={start:r.selectionStart,end:r.selectionEnd};else e:{t=(t=r.ownerDocument)&&t.defaultView||window;var i=t.getSelection&&t.getSelection();if(i&&i.rangeCount!==0){t=i.anchorNode;var n=i.anchorOffset,a=i.focusNode;i=i.focusOffset;try{t.nodeType,a.nodeType}catch{t=null;break e}var o=0,s=-1,c=-1,l=0,h=0,d=r,u=null;t:for(;;){for(var v;d!==t||n!==0&&d.nodeType!==3||(s=o+n),d!==a||i!==0&&d.nodeType!==3||(c=o+i),d.nodeType===3&&(o+=d.nodeValue.length),(v=d.firstChild)!==null;)u=d,d=v;for(;;){if(d===r)break t;if(u===t&&++l===n&&(s=o),u===a&&++h===i&&(c=o),(v=d.nextSibling)!==null)break;d=u,u=d.parentNode}d=v}t=s===-1||c===-1?null:{start:s,end:c}}else t=null}t=t||{start:0,end:0}}else t=null;for(u3={focusedElem:r,selectionRange:t},Wh=!1,q=e;q!==null;)if(e=q,r=e.child,(e.subtreeFlags&1028)!==0&&r!==null)r.return=e,q=r;else for(;q!==null;){e=q;try{var m=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var f=m.memoizedProps,C=m.memoizedState,_=e.stateNode,p=_.getSnapshotBeforeUpdate(e.elementType===e.type?f:Ar(e.type,f),C);_.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var z=e.stateNode.containerInfo;z.nodeType===1?z.textContent="":z.nodeType===9&&z.documentElement&&z.removeChild(z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(M){ct(e,e.return,M)}if(r=e.sibling,r!==null){r.return=e.return,q=r;break}q=e.return}return m=q8,q8=!1,m}function Bs(r,e,t){var i=e.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var n=i=i.next;do{if((n.tag&r)===r){var a=n.destroy;n.destroy=void 0,a!==void 0&&E3(e,t,a)}n=n.next}while(n!==i)}}function v4(r,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&r)===r){var i=t.create;t.destroy=i()}t=t.next}while(t!==e)}}function P3(r){var e=r.ref;if(e!==null){var t=r.stateNode;switch(r.tag){case 5:r=t;break;default:r=t}typeof e=="function"?e(r):e.current=r}}function Og(r){var e=r.alternate;e!==null&&(r.alternate=null,Og(e)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(e=r.stateNode,e!==null&&(delete e[ri],delete e[_c],delete e[f3],delete e[Ex],delete e[Px])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function Ng(r){return r.tag===5||r.tag===3||r.tag===4}function G8(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Ng(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function A3(r,e,t){var i=r.tag;if(i===5||i===6)r=r.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(r,e):t.insertBefore(r,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(r,t)):(e=t,e.appendChild(r)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=Xh));else if(i!==4&&(r=r.child,r!==null))for(A3(r,e,t),r=r.sibling;r!==null;)A3(r,e,t),r=r.sibling}function V3(r,e,t){var i=r.tag;if(i===5||i===6)r=r.stateNode,e?t.insertBefore(r,e):t.appendChild(r);else if(i!==4&&(r=r.child,r!==null))for(V3(r,e,t),r=r.sibling;r!==null;)V3(r,e,t),r=r.sibling}var jt=null,Vr=!1;function Gi(r,e,t){for(t=t.child;t!==null;)Ug(r,e,t),t=t.sibling}function Ug(r,e,t){if(oi&&typeof oi.onCommitFiberUnmount=="function")try{oi.onCommitFiberUnmount(a4,t)}catch{}switch(t.tag){case 5:l1||_2(t,e);case 6:var i=jt,n=Vr;jt=null,Gi(r,e,t),jt=i,Vr=n,jt!==null&&(Vr?(r=jt,t=t.stateNode,r.nodeType===8?r.parentNode.removeChild(t):r.removeChild(t)):jt.removeChild(t.stateNode));break;case 18:jt!==null&&(Vr?(r=jt,t=t.stateNode,r.nodeType===8?fd(r.parentNode,t):r.nodeType===1&&fd(r,t),vc(r)):fd(jt,t.stateNode));break;case 4:i=jt,n=Vr,jt=t.stateNode.containerInfo,Vr=!0,Gi(r,e,t),jt=i,Vr=n;break;case 0:case 11:case 14:case 15:if(!l1&&(i=t.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){n=i=i.next;do{var a=n,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&E3(t,e,o),n=n.next}while(n!==i)}Gi(r,e,t);break;case 1:if(!l1&&(_2(t,e),i=t.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=t.memoizedProps,i.state=t.memoizedState,i.componentWillUnmount()}catch(s){ct(t,e,s)}Gi(r,e,t);break;case 21:Gi(r,e,t);break;case 22:t.mode&1?(l1=(i=l1)||t.memoizedState!==null,Gi(r,e,t),l1=i):Gi(r,e,t);break;default:Gi(r,e,t)}}function K8(r){var e=r.updateQueue;if(e!==null){r.updateQueue=null;var t=r.stateNode;t===null&&(t=r.stateNode=new qx),e.forEach(function(i){var n=tM.bind(null,r,i);t.has(i)||(t.add(i),i.then(n,n))})}}function Cr(r,e){var t=e.deletions;if(t!==null)for(var i=0;i<t.length;i++){var n=t[i];try{var a=r,o=e,s=o;e:for(;s!==null;){switch(s.tag){case 5:jt=s.stateNode,Vr=!1;break e;case 3:jt=s.stateNode.containerInfo,Vr=!0;break e;case 4:jt=s.stateNode.containerInfo,Vr=!0;break e}s=s.return}if(jt===null)throw Error(D(160));Ug(a,o,n),jt=null,Vr=!1;var c=n.alternate;c!==null&&(c.return=null),n.return=null}catch(l){ct(n,e,l)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)Fg(e,r),e=e.sibling}function Fg(r,e){var t=r.alternate,i=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(Cr(e,r),Gr(r),i&4){try{Bs(3,r,r.return),v4(3,r)}catch(f){ct(r,r.return,f)}try{Bs(5,r,r.return)}catch(f){ct(r,r.return,f)}}break;case 1:Cr(e,r),Gr(r),i&512&&t!==null&&_2(t,t.return);break;case 5:if(Cr(e,r),Gr(r),i&512&&t!==null&&_2(t,t.return),r.flags&32){var n=r.stateNode;try{lc(n,"")}catch(f){ct(r,r.return,f)}}if(i&4&&(n=r.stateNode,n!=null)){var a=r.memoizedProps,o=t!==null?t.memoizedProps:a,s=r.type,c=r.updateQueue;if(r.updateQueue=null,c!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&l7(n,a),t3(s,o);var l=t3(s,a);for(o=0;o<c.length;o+=2){var h=c[o],d=c[o+1];h==="style"?m7(n,d):h==="dangerouslySetInnerHTML"?u7(n,d):h==="children"?lc(n,d):sv(n,h,d,l)}switch(s){case"input":Q5(n,a);break;case"textarea":h7(n,a);break;case"select":var u=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!a.multiple;var v=a.value;v!=null?E2(n,!!a.multiple,v,!1):u!==!!a.multiple&&(a.defaultValue!=null?E2(n,!!a.multiple,a.defaultValue,!0):E2(n,!!a.multiple,a.multiple?[]:"",!1))}n[_c]=a}catch(f){ct(r,r.return,f)}}break;case 6:if(Cr(e,r),Gr(r),i&4){if(r.stateNode===null)throw Error(D(162));n=r.stateNode,a=r.memoizedProps;try{n.nodeValue=a}catch(f){ct(r,r.return,f)}}break;case 3:if(Cr(e,r),Gr(r),i&4&&t!==null&&t.memoizedState.isDehydrated)try{vc(e.containerInfo)}catch(f){ct(r,r.return,f)}break;case 4:Cr(e,r),Gr(r);break;case 13:Cr(e,r),Gr(r),n=r.child,n.flags&8192&&(a=n.memoizedState!==null,n.stateNode.isHidden=a,!a||n.alternate!==null&&n.alternate.memoizedState!==null||(Nv=vt())),i&4&&K8(r);break;case 22:if(h=t!==null&&t.memoizedState!==null,r.mode&1?(l1=(l=l1)||h,Cr(e,r),l1=l):Cr(e,r),Gr(r),i&8192){if(l=r.memoizedState!==null,(r.stateNode.isHidden=l)&&!h&&r.mode&1)for(q=r,h=r.child;h!==null;){for(d=q=h;q!==null;){switch(u=q,v=u.child,u.tag){case 0:case 11:case 14:case 15:Bs(4,u,u.return);break;case 1:_2(u,u.return);var m=u.stateNode;if(typeof m.componentWillUnmount=="function"){i=u,t=u.return;try{e=i,m.props=e.memoizedProps,m.state=e.memoizedState,m.componentWillUnmount()}catch(f){ct(i,t,f)}}break;case 5:_2(u,u.return);break;case 22:if(u.memoizedState!==null){Y8(d);continue}}v!==null?(v.return=u,q=v):Y8(d)}h=h.sibling}e:for(h=null,d=r;;){if(d.tag===5){if(h===null){h=d;try{n=d.stateNode,l?(a=n.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(s=d.stateNode,c=d.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,s.style.display=v7("display",o))}catch(f){ct(r,r.return,f)}}}else if(d.tag===6){if(h===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(f){ct(r,r.return,f)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===r)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===r)break e;for(;d.sibling===null;){if(d.return===null||d.return===r)break e;h===d&&(h=null),d=d.return}h===d&&(h=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Cr(e,r),Gr(r),i&4&&K8(r);break;case 21:break;default:Cr(e,r),Gr(r)}}function Gr(r){var e=r.flags;if(e&2){try{e:{for(var t=r.return;t!==null;){if(Ng(t)){var i=t;break e}t=t.return}throw Error(D(160))}switch(i.tag){case 5:var n=i.stateNode;i.flags&32&&(lc(n,""),i.flags&=-33);var a=G8(r);V3(r,a,n);break;case 3:case 4:var o=i.stateNode.containerInfo,s=G8(r);A3(r,s,o);break;default:throw Error(D(161))}}catch(c){ct(r,r.return,c)}r.flags&=-3}e&4096&&(r.flags&=-4097)}function Kx(r,e,t){q=r,Bg(r)}function Bg(r,e,t){for(var i=(r.mode&1)!==0;q!==null;){var n=q,a=n.child;if(n.tag===22&&i){var o=n.memoizedState!==null||Fl;if(!o){var s=n.alternate,c=s!==null&&s.memoizedState!==null||l1;s=Fl;var l=l1;if(Fl=o,(l1=c)&&!l)for(q=n;q!==null;)o=q,c=o.child,o.tag===22&&o.memoizedState!==null?Q8(n):c!==null?(c.return=o,q=c):Q8(n);for(;a!==null;)q=a,Bg(a),a=a.sibling;q=n,Fl=s,l1=l}W8(r)}else n.subtreeFlags&8772&&a!==null?(a.return=n,q=a):W8(r)}}function W8(r){for(;q!==null;){var e=q;if(e.flags&8772){var t=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:l1||v4(5,e);break;case 1:var i=e.stateNode;if(e.flags&4&&!l1)if(t===null)i.componentDidMount();else{var n=e.elementType===e.type?t.memoizedProps:Ar(e.type,t.memoizedProps);i.componentDidUpdate(n,t.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var a=e.updateQueue;a!==null&&V8(e,a,i);break;case 3:var o=e.updateQueue;if(o!==null){if(t=null,e.child!==null)switch(e.child.tag){case 5:t=e.child.stateNode;break;case 1:t=e.child.stateNode}V8(e,o,t)}break;case 5:var s=e.stateNode;if(t===null&&e.flags&4){t=s;var c=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&t.focus();break;case"img":c.src&&(t.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var l=e.alternate;if(l!==null){var h=l.memoizedState;if(h!==null){var d=h.dehydrated;d!==null&&vc(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(D(163))}l1||e.flags&512&&P3(e)}catch(u){ct(e,e.return,u)}}if(e===r){q=null;break}if(t=e.sibling,t!==null){t.return=e.return,q=t;break}q=e.return}}function Y8(r){for(;q!==null;){var e=q;if(e===r){q=null;break}var t=e.sibling;if(t!==null){t.return=e.return,q=t;break}q=e.return}}function Q8(r){for(;q!==null;){var e=q;try{switch(e.tag){case 0:case 11:case 15:var t=e.return;try{v4(4,e)}catch(c){ct(e,t,c)}break;case 1:var i=e.stateNode;if(typeof i.componentDidMount=="function"){var n=e.return;try{i.componentDidMount()}catch(c){ct(e,n,c)}}var a=e.return;try{P3(e)}catch(c){ct(e,a,c)}break;case 5:var o=e.return;try{P3(e)}catch(c){ct(e,o,c)}}}catch(c){ct(e,e.return,c)}if(e===r){q=null;break}var s=e.sibling;if(s!==null){s.return=e.return,q=s;break}q=e.return}}var Wx=Math.ceil,c0=Bi.ReactCurrentDispatcher,Rv=Bi.ReactCurrentOwner,pr=Bi.ReactCurrentBatchConfig,He=0,Ot=null,zt=null,Yt=0,G1=0,z2=Ln(0),Vt=0,Mc=null,Ea=0,m4=0,Ov=0,js=null,A1=null,Nv=0,eo=1/0,wi=null,l0=!1,S3=null,xn=null,Bl=!1,fn=null,h0=0,qs=0,$3=null,_h=-1,zh=0;function z1(){return He&6?vt():_h!==-1?_h:_h=vt()}function Mn(r){return r.mode&1?He&2&&Yt!==0?Yt&-Yt:Vx.transition!==null?(zh===0&&(zh=H7()),zh):(r=Oe,r!==0||(r=window.event,r=r===void 0?16:$7(r.type)),r):1}function Rr(r,e,t,i){if(50<qs)throw qs=0,$3=null,Error(D(185));Jc(r,t,i),(!(He&2)||r!==Ot)&&(r===Ot&&(!(He&2)&&(m4|=t),Vt===4&&sn(r,Yt)),N1(r,i),t===1&&He===0&&!(e.mode&1)&&(eo=vt()+500,h4&&Tn()))}function N1(r,e){var t=r.callbackNode;Vb(r,e);var i=Kh(r,r===Ot?Yt:0);if(i===0)t!==null&&a8(t),r.callbackNode=null,r.callbackPriority=0;else if(e=i&-i,r.callbackPriority!==e){if(t!=null&&a8(t),e===1)r.tag===0?Ax(X8.bind(null,r)):J7(X8.bind(null,r)),Hx(function(){!(He&6)&&Tn()}),t=null;else{switch(k7(i)){case 1:t=uv;break;case 4:t=M7;break;case 16:t=Gh;break;case 536870912:t=C7;break;default:t=Gh}t=Xg(t,jg.bind(null,r))}r.callbackPriority=e,r.callbackNode=t}}function jg(r,e){if(_h=-1,zh=0,He&6)throw Error(D(327));var t=r.callbackNode;if($2()&&r.callbackNode!==t)return null;var i=Kh(r,r===Ot?Yt:0);if(i===0)return null;if(i&30||i&r.expiredLanes||e)e=d0(r,i);else{e=i;var n=He;He|=2;var a=Gg();(Ot!==r||Yt!==e)&&(wi=null,eo=vt()+500,za(r,e));do try{Xx();break}catch(s){qg(r,s)}while(1);Cv(),c0.current=a,He=n,zt!==null?e=0:(Ot=null,Yt=0,e=Vt)}if(e!==0){if(e===2&&(n=o3(r),n!==0&&(i=n,e=D3(r,n))),e===1)throw t=Mc,za(r,0),sn(r,i),N1(r,vt()),t;if(e===6)sn(r,i);else{if(n=r.current.alternate,!(i&30)&&!Yx(n)&&(e=d0(r,i),e===2&&(a=o3(r),a!==0&&(i=a,e=D3(r,a))),e===1))throw t=Mc,za(r,0),sn(r,i),N1(r,vt()),t;switch(r.finishedWork=n,r.finishedLanes=i,e){case 0:case 1:throw Error(D(345));case 2:na(r,A1,wi);break;case 3:if(sn(r,i),(i&130023424)===i&&(e=Nv+500-vt(),10<e)){if(Kh(r,0)!==0)break;if(n=r.suspendedLanes,(n&i)!==i){z1(),r.pingedLanes|=r.suspendedLanes&n;break}r.timeoutHandle=m3(na.bind(null,r,A1,wi),e);break}na(r,A1,wi);break;case 4:if(sn(r,i),(i&4194240)===i)break;for(e=r.eventTimes,n=-1;0<i;){var o=31-Ir(i);a=1<<o,o=e[o],o>n&&(n=o),i&=~a}if(i=n,i=vt()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Wx(i/1960))-i,10<i){r.timeoutHandle=m3(na.bind(null,r,A1,wi),i);break}na(r,A1,wi);break;case 5:na(r,A1,wi);break;default:throw Error(D(329))}}}return N1(r,vt()),r.callbackNode===t?jg.bind(null,r):null}function D3(r,e){var t=js;return r.current.memoizedState.isDehydrated&&(za(r,e).flags|=256),r=d0(r,e),r!==2&&(e=A1,A1=t,e!==null&&L3(e)),r}function L3(r){A1===null?A1=r:A1.push.apply(A1,r)}function Yx(r){for(var e=r;;){if(e.flags&16384){var t=e.updateQueue;if(t!==null&&(t=t.stores,t!==null))for(var i=0;i<t.length;i++){var n=t[i],a=n.getSnapshot;n=n.value;try{if(!Or(a(),n))return!1}catch{return!1}}}if(t=e.child,e.subtreeFlags&16384&&t!==null)t.return=e,e=t;else{if(e===r)break;for(;e.sibling===null;){if(e.return===null||e.return===r)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function sn(r,e){for(e&=~Ov,e&=~m4,r.suspendedLanes|=e,r.pingedLanes&=~e,r=r.expirationTimes;0<e;){var t=31-Ir(e),i=1<<t;r[t]=-1,e&=~i}}function X8(r){if(He&6)throw Error(D(327));$2();var e=Kh(r,0);if(!(e&1))return N1(r,vt()),null;var t=d0(r,e);if(r.tag!==0&&t===2){var i=o3(r);i!==0&&(e=i,t=D3(r,i))}if(t===1)throw t=Mc,za(r,0),sn(r,e),N1(r,vt()),t;if(t===6)throw Error(D(345));return r.finishedWork=r.current.alternate,r.finishedLanes=e,na(r,A1,wi),N1(r,vt()),null}function Uv(r,e){var t=He;He|=1;try{return r(e)}finally{He=t,He===0&&(eo=vt()+500,h4&&Tn())}}function Pa(r){fn!==null&&fn.tag===0&&!(He&6)&&$2();var e=He;He|=1;var t=pr.transition,i=Oe;try{if(pr.transition=null,Oe=1,r)return r()}finally{Oe=i,pr.transition=t,He=e,!(He&6)&&Tn()}}function Fv(){G1=z2.current,Qe(z2)}function za(r,e){r.finishedWork=null,r.finishedLanes=0;var t=r.timeoutHandle;if(t!==-1&&(r.timeoutHandle=-1,Cx(t)),zt!==null)for(t=zt.return;t!==null;){var i=t;switch(bv(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&Jh();break;case 3:J2(),Qe(R1),Qe(u1),Vv();break;case 5:Av(i);break;case 4:J2();break;case 13:Qe(rt);break;case 19:Qe(rt);break;case 10:Hv(i.type._context);break;case 22:case 23:Fv()}t=t.return}if(Ot=r,zt=r=Cn(r.current,null),Yt=G1=e,Vt=0,Mc=null,Ov=m4=Ea=0,A1=js=null,fa!==null){for(e=0;e<fa.length;e++)if(t=fa[e],i=t.interleaved,i!==null){t.interleaved=null;var n=i.next,a=t.pending;if(a!==null){var o=a.next;a.next=n,i.next=o}t.pending=i}fa=null}return r}function qg(r,e){do{var t=zt;try{if(Cv(),fh.current=s0,o0){for(var i=it.memoizedState;i!==null;){var n=i.queue;n!==null&&(n.pending=null),i=i.next}o0=!1}if(ka=0,Tt=Ht=it=null,Fs=!1,wc=0,Rv.current=null,t===null||t.return===null){Vt=1,Mc=e,zt=null;break}e:{var a=r,o=t.return,s=t,c=e;if(e=Yt,s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var l=c,h=s,d=h.tag;if(!(h.mode&1)&&(d===0||d===11||d===15)){var u=h.alternate;u?(h.updateQueue=u.updateQueue,h.memoizedState=u.memoizedState,h.lanes=u.lanes):(h.updateQueue=null,h.memoizedState=null)}var v=R8(o);if(v!==null){v.flags&=-257,O8(v,o,s,a,e),v.mode&1&&I8(a,l,e),e=v,c=l;var m=e.updateQueue;if(m===null){var f=new Set;f.add(c),e.updateQueue=f}else m.add(c);break e}else{if(!(e&1)){I8(a,l,e),Bv();break e}c=Error(D(426))}}else if(et&&s.mode&1){var C=R8(o);if(C!==null){!(C.flags&65536)&&(C.flags|=256),O8(C,o,s,a,e),xv(Z2(c,s));break e}}a=c=Z2(c,s),Vt!==4&&(Vt=2),js===null?js=[a]:js.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,e&=-e,a.lanes|=e;var _=Eg(a,c,e);A8(a,_);break e;case 1:s=c;var p=a.type,z=a.stateNode;if(!(a.flags&128)&&(typeof p.getDerivedStateFromError=="function"||z!==null&&typeof z.componentDidCatch=="function"&&(xn===null||!xn.has(z)))){a.flags|=65536,e&=-e,a.lanes|=e;var M=Pg(a,s,e);A8(a,M);break e}}a=a.return}while(a!==null)}Wg(t)}catch(A){e=A,zt===t&&t!==null&&(zt=t=t.return);continue}break}while(1)}function Gg(){var r=c0.current;return c0.current=s0,r===null?s0:r}function Bv(){(Vt===0||Vt===3||Vt===2)&&(Vt=4),Ot===null||!(Ea&268435455)&&!(m4&268435455)||sn(Ot,Yt)}function d0(r,e){var t=He;He|=2;var i=Gg();(Ot!==r||Yt!==e)&&(wi=null,za(r,e));do try{Qx();break}catch(n){qg(r,n)}while(1);if(Cv(),He=t,c0.current=i,zt!==null)throw Error(D(261));return Ot=null,Yt=0,Vt}function Qx(){for(;zt!==null;)Kg(zt)}function Xx(){for(;zt!==null&&!bb();)Kg(zt)}function Kg(r){var e=Qg(r.alternate,r,G1);r.memoizedProps=r.pendingProps,e===null?Wg(r):zt=e,Rv.current=null}function Wg(r){var e=r;do{var t=e.alternate;if(r=e.return,e.flags&32768){if(t=jx(t,e),t!==null){t.flags&=32767,zt=t;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{Vt=6,zt=null;return}}else if(t=Bx(t,e,G1),t!==null){zt=t;return}if(e=e.sibling,e!==null){zt=e;return}zt=e=r}while(e!==null);Vt===0&&(Vt=5)}function na(r,e,t){var i=Oe,n=pr.transition;try{pr.transition=null,Oe=1,Jx(r,e,t,i)}finally{pr.transition=n,Oe=i}return null}function Jx(r,e,t,i){do $2();while(fn!==null);if(He&6)throw Error(D(327));t=r.finishedWork;var n=r.finishedLanes;if(t===null)return null;if(r.finishedWork=null,r.finishedLanes=0,t===r.current)throw Error(D(177));r.callbackNode=null,r.callbackPriority=0;var a=t.lanes|t.childLanes;if(Sb(r,a),r===Ot&&(zt=Ot=null,Yt=0),!(t.subtreeFlags&2064)&&!(t.flags&2064)||Bl||(Bl=!0,Xg(Gh,function(){return $2(),null})),a=(t.flags&15990)!==0,t.subtreeFlags&15990||a){a=pr.transition,pr.transition=null;var o=Oe;Oe=1;var s=He;He|=4,Rv.current=null,Gx(r,t),Fg(t,r),_x(u3),Wh=!!d3,u3=d3=null,r.current=t,Kx(t),xb(),He=s,Oe=o,pr.transition=a}else r.current=t;if(Bl&&(Bl=!1,fn=r,h0=n),a=r.pendingLanes,a===0&&(xn=null),Hb(t.stateNode),N1(r,vt()),e!==null)for(i=r.onRecoverableError,t=0;t<e.length;t++)n=e[t],i(n.value,{componentStack:n.stack,digest:n.digest});if(l0)throw l0=!1,r=S3,S3=null,r;return h0&1&&r.tag!==0&&$2(),a=r.pendingLanes,a&1?r===$3?qs++:(qs=0,$3=r):qs=0,Tn(),null}function $2(){if(fn!==null){var r=k7(h0),e=pr.transition,t=Oe;try{if(pr.transition=null,Oe=16>r?16:r,fn===null)var i=!1;else{if(r=fn,fn=null,h0=0,He&6)throw Error(D(331));var n=He;for(He|=4,q=r.current;q!==null;){var a=q,o=a.child;if(q.flags&16){var s=a.deletions;if(s!==null){for(var c=0;c<s.length;c++){var l=s[c];for(q=l;q!==null;){var h=q;switch(h.tag){case 0:case 11:case 15:Bs(8,h,a)}var d=h.child;if(d!==null)d.return=h,q=d;else for(;q!==null;){h=q;var u=h.sibling,v=h.return;if(Og(h),h===l){q=null;break}if(u!==null){u.return=v,q=u;break}q=v}}}var m=a.alternate;if(m!==null){var f=m.child;if(f!==null){m.child=null;do{var C=f.sibling;f.sibling=null,f=C}while(f!==null)}}q=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,q=o;else e:for(;q!==null;){if(a=q,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Bs(9,a,a.return)}var _=a.sibling;if(_!==null){_.return=a.return,q=_;break e}q=a.return}}var p=r.current;for(q=p;q!==null;){o=q;var z=o.child;if(o.subtreeFlags&2064&&z!==null)z.return=o,q=z;else e:for(o=p;q!==null;){if(s=q,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:v4(9,s)}}catch(A){ct(s,s.return,A)}if(s===o){q=null;break e}var M=s.sibling;if(M!==null){M.return=s.return,q=M;break e}q=s.return}}if(He=n,Tn(),oi&&typeof oi.onPostCommitFiberRoot=="function")try{oi.onPostCommitFiberRoot(a4,r)}catch{}i=!0}return i}finally{Oe=t,pr.transition=e}}return!1}function J8(r,e,t){e=Z2(t,e),e=Eg(r,e,1),r=bn(r,e,1),e=z1(),r!==null&&(Jc(r,1,e),N1(r,e))}function ct(r,e,t){if(r.tag===3)J8(r,r,t);else for(;e!==null;){if(e.tag===3){J8(e,r,t);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(xn===null||!xn.has(i))){r=Z2(t,r),r=Pg(e,r,1),e=bn(e,r,1),r=z1(),e!==null&&(Jc(e,1,r),N1(e,r));break}}e=e.return}}function Zx(r,e,t){var i=r.pingCache;i!==null&&i.delete(e),e=z1(),r.pingedLanes|=r.suspendedLanes&t,Ot===r&&(Yt&t)===t&&(Vt===4||Vt===3&&(Yt&130023424)===Yt&&500>vt()-Nv?za(r,0):Ov|=t),N1(r,e)}function Yg(r,e){e===0&&(r.mode&1?(e=$l,$l<<=1,!($l&130023424)&&($l=4194304)):e=1);var t=z1();r=Ri(r,e),r!==null&&(Jc(r,e,t),N1(r,t))}function eM(r){var e=r.memoizedState,t=0;e!==null&&(t=e.retryLane),Yg(r,t)}function tM(r,e){var t=0;switch(r.tag){case 13:var i=r.stateNode,n=r.memoizedState;n!==null&&(t=n.retryLane);break;case 19:i=r.stateNode;break;default:throw Error(D(314))}i!==null&&i.delete(e),Yg(r,t)}var Qg;Qg=function(r,e,t){if(r!==null)if(r.memoizedProps!==e.pendingProps||R1.current)D1=!0;else{if(!(r.lanes&t)&&!(e.flags&128))return D1=!1,Fx(r,e,t);D1=!!(r.flags&131072)}else D1=!1,et&&e.flags&1048576&&Z7(e,t0,e.index);switch(e.lanes=0,e.tag){case 2:var i=e.type;gh(r,e),r=e.pendingProps;var n=Y2(e,u1.current);S2(e,t),n=$v(null,e,i,r,n,t);var a=Dv();return e.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,O1(i)?(a=!0,Zh(e)):a=!1,e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,Ev(e),n.updater=d4,e.stateNode=n,n._reactInternals=e,w3(e,i,r,t),e=M3(null,e,i,!0,a,t)):(e.tag=0,et&&a&&wv(e),f1(null,e,n,t),e=e.child),e;case 16:i=e.elementType;e:{switch(gh(r,e),r=e.pendingProps,n=i._init,i=n(i._payload),e.type=i,n=e.tag=iM(i),r=Ar(i,r),n){case 0:e=x3(null,e,i,r,t);break e;case 1:e=F8(null,e,i,r,t);break e;case 11:e=N8(null,e,i,r,t);break e;case 14:e=U8(null,e,i,Ar(i.type,r),t);break e}throw Error(D(306,i,""))}return e;case 0:return i=e.type,n=e.pendingProps,n=e.elementType===i?n:Ar(i,n),x3(r,e,i,n,t);case 1:return i=e.type,n=e.pendingProps,n=e.elementType===i?n:Ar(i,n),F8(r,e,i,n,t);case 3:e:{if($g(e),r===null)throw Error(D(387));i=e.pendingProps,a=e.memoizedState,n=a.element,ig(r,e),n0(e,i,null,t);var o=e.memoizedState;if(i=o.element,a.isDehydrated)if(a={element:i,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=a,e.memoizedState=a,e.flags&256){n=Z2(Error(D(423)),e),e=B8(r,e,i,t,n);break e}else if(i!==n){n=Z2(Error(D(424)),e),e=B8(r,e,i,t,n);break e}else for(W1=wn(e.stateNode.containerInfo.firstChild),Q1=e,et=!0,Sr=null,t=sg(e,null,i,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(Q2(),i===n){e=Oi(r,e,t);break e}f1(r,e,i,t)}e=e.child}return e;case 5:return cg(e),r===null&&_3(e),i=e.type,n=e.pendingProps,a=r!==null?r.memoizedProps:null,o=n.children,v3(i,n)?o=null:a!==null&&v3(i,a)&&(e.flags|=32),Sg(r,e),f1(r,e,o,t),e.child;case 6:return r===null&&_3(e),null;case 13:return Dg(r,e,t);case 4:return Pv(e,e.stateNode.containerInfo),i=e.pendingProps,r===null?e.child=X2(e,null,i,t):f1(r,e,i,t),e.child;case 11:return i=e.type,n=e.pendingProps,n=e.elementType===i?n:Ar(i,n),N8(r,e,i,n,t);case 7:return f1(r,e,e.pendingProps,t),e.child;case 8:return f1(r,e,e.pendingProps.children,t),e.child;case 12:return f1(r,e,e.pendingProps.children,t),e.child;case 10:e:{if(i=e.type._context,n=e.pendingProps,a=e.memoizedProps,o=n.value,qe(r0,i._currentValue),i._currentValue=o,a!==null)if(Or(a.value,o)){if(a.children===n.children&&!R1.current){e=Oi(r,e,t);break e}}else for(a=e.child,a!==null&&(a.return=e);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var c=s.firstContext;c!==null;){if(c.context===i){if(a.tag===1){c=Si(-1,t&-t),c.tag=2;var l=a.updateQueue;if(l!==null){l=l.shared;var h=l.pending;h===null?c.next=c:(c.next=h.next,h.next=c),l.pending=c}}a.lanes|=t,c=a.alternate,c!==null&&(c.lanes|=t),z3(a.return,t,e),s.lanes|=t;break}c=c.next}}else if(a.tag===10)o=a.type===e.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(D(341));o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),z3(o,t,e),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===e){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}f1(r,e,n.children,t),e=e.child}return e;case 9:return n=e.type,i=e.pendingProps.children,S2(e,t),n=zr(n),i=i(n),e.flags|=1,f1(r,e,i,t),e.child;case 14:return i=e.type,n=Ar(i,e.pendingProps),n=Ar(i.type,n),U8(r,e,i,n,t);case 15:return Ag(r,e,e.type,e.pendingProps,t);case 17:return i=e.type,n=e.pendingProps,n=e.elementType===i?n:Ar(i,n),gh(r,e),e.tag=1,O1(i)?(r=!0,Zh(e)):r=!1,S2(e,t),ag(e,i,n),w3(e,i,n,t),M3(null,e,i,!0,r,t);case 19:return Lg(r,e,t);case 22:return Vg(r,e,t)}throw Error(D(156,e.tag))};function Xg(r,e){return x7(r,e)}function rM(r,e,t,i){this.tag=r,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mr(r,e,t,i){return new rM(r,e,t,i)}function jv(r){return r=r.prototype,!(!r||!r.isReactComponent)}function iM(r){if(typeof r=="function")return jv(r)?1:0;if(r!=null){if(r=r.$$typeof,r===lv)return 11;if(r===hv)return 14}return 2}function Cn(r,e){var t=r.alternate;return t===null?(t=mr(r.tag,e,r.key,r.mode),t.elementType=r.elementType,t.type=r.type,t.stateNode=r.stateNode,t.alternate=r,r.alternate=t):(t.pendingProps=e,t.type=r.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=r.flags&14680064,t.childLanes=r.childLanes,t.lanes=r.lanes,t.child=r.child,t.memoizedProps=r.memoizedProps,t.memoizedState=r.memoizedState,t.updateQueue=r.updateQueue,e=r.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=r.sibling,t.index=r.index,t.ref=r.ref,t}function yh(r,e,t,i,n,a){var o=2;if(i=r,typeof r=="function")jv(r)&&(o=1);else if(typeof r=="string")o=5;else e:switch(r){case l2:return ya(t.children,n,a,e);case cv:o=8,n|=8;break;case q5:return r=mr(12,t,e,n|2),r.elementType=q5,r.lanes=a,r;case G5:return r=mr(13,t,e,n),r.elementType=G5,r.lanes=a,r;case K5:return r=mr(19,t,e,n),r.elementType=K5,r.lanes=a,r;case o7:return f4(t,n,a,e);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case n7:o=10;break e;case a7:o=9;break e;case lv:o=11;break e;case hv:o=14;break e;case tn:o=16,i=null;break e}throw Error(D(130,r==null?r:typeof r,""))}return e=mr(o,t,e,n),e.elementType=r,e.type=i,e.lanes=a,e}function ya(r,e,t,i){return r=mr(7,r,i,e),r.lanes=t,r}function f4(r,e,t,i){return r=mr(22,r,i,e),r.elementType=o7,r.lanes=t,r.stateNode={isHidden:!1},r}function xd(r,e,t){return r=mr(6,r,null,e),r.lanes=t,r}function Md(r,e,t){return e=mr(4,r.children!==null?r.children:[],r.key,e),e.lanes=t,e.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},e}function nM(r,e,t,i,n){this.tag=e,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nd(0),this.expirationTimes=nd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nd(0),this.identifierPrefix=i,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function qv(r,e,t,i,n,a,o,s,c){return r=new nM(r,e,t,s,c),e===1?(e=1,a===!0&&(e|=8)):e=0,a=mr(3,null,null,e),r.current=a,a.stateNode=r,a.memoizedState={element:i,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ev(a),r}function aM(r,e,t){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c2,key:i==null?null:""+i,children:r,containerInfo:e,implementation:t}}function Jg(r){if(!r)return Pn;r=r._reactInternals;e:{if(Ia(r)!==r||r.tag!==1)throw Error(D(170));var e=r;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(O1(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(D(171))}if(r.tag===1){var t=r.type;if(O1(t))return X7(r,t,e)}return e}function Zg(r,e,t,i,n,a,o,s,c){return r=qv(t,i,!0,r,n,a,o,s,c),r.context=Jg(null),t=r.current,i=z1(),n=Mn(t),a=Si(i,n),a.callback=e??null,bn(t,a,n),r.current.lanes=n,Jc(r,n,i),N1(r,i),r}function p4(r,e,t,i){var n=e.current,a=z1(),o=Mn(n);return t=Jg(t),e.context===null?e.context=t:e.pendingContext=t,e=Si(a,o),e.payload={element:r},i=i===void 0?null:i,i!==null&&(e.callback=i),r=bn(n,e,o),r!==null&&(Rr(r,n,o,a),mh(r,n,o)),o}function u0(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function Z8(r,e){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var t=r.retryLane;r.retryLane=t!==0&&t<e?t:e}}function Gv(r,e){Z8(r,e),(r=r.alternate)&&Z8(r,e)}function oM(){return null}var e_=typeof reportError=="function"?reportError:function(r){console.error(r)};function Kv(r){this._internalRoot=r}g4.prototype.render=Kv.prototype.render=function(r){var e=this._internalRoot;if(e===null)throw Error(D(409));p4(r,e,null,null)};g4.prototype.unmount=Kv.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var e=r.containerInfo;Pa(function(){p4(null,r,null,null)}),e[Ii]=null}};function g4(r){this._internalRoot=r}g4.prototype.unstable_scheduleHydration=function(r){if(r){var e=A7();r={blockedOn:null,target:r,priority:e};for(var t=0;t<on.length&&e!==0&&e<on[t].priority;t++);on.splice(t,0,r),t===0&&S7(r)}};function Wv(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function _4(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function em(){}function sM(r,e,t,i,n){if(n){if(typeof i=="function"){var a=i;i=function(){var l=u0(o);a.call(l)}}var o=Zg(e,i,r,0,null,!1,!1,"",em);return r._reactRootContainer=o,r[Ii]=o.current,pc(r.nodeType===8?r.parentNode:r),Pa(),o}for(;n=r.lastChild;)r.removeChild(n);if(typeof i=="function"){var s=i;i=function(){var l=u0(c);s.call(l)}}var c=qv(r,0,!1,null,null,!1,!1,"",em);return r._reactRootContainer=c,r[Ii]=c.current,pc(r.nodeType===8?r.parentNode:r),Pa(function(){p4(e,c,t,i)}),c}function z4(r,e,t,i,n){var a=t._reactRootContainer;if(a){var o=a;if(typeof n=="function"){var s=n;n=function(){var c=u0(o);s.call(c)}}p4(e,o,r,n)}else o=sM(t,e,r,n,i);return u0(o)}E7=function(r){switch(r.tag){case 3:var e=r.stateNode;if(e.current.memoizedState.isDehydrated){var t=gs(e.pendingLanes);t!==0&&(vv(e,t|1),N1(e,vt()),!(He&6)&&(eo=vt()+500,Tn()))}break;case 13:Pa(function(){var i=Ri(r,1);if(i!==null){var n=z1();Rr(i,r,1,n)}}),Gv(r,1)}};mv=function(r){if(r.tag===13){var e=Ri(r,134217728);if(e!==null){var t=z1();Rr(e,r,134217728,t)}Gv(r,134217728)}};P7=function(r){if(r.tag===13){var e=Mn(r),t=Ri(r,e);if(t!==null){var i=z1();Rr(t,r,e,i)}Gv(r,e)}};A7=function(){return Oe};V7=function(r,e){var t=Oe;try{return Oe=r,e()}finally{Oe=t}};i3=function(r,e,t){switch(e){case"input":if(Q5(r,t),e=t.name,t.type==="radio"&&e!=null){for(t=r;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<t.length;e++){var i=t[e];if(i!==r&&i.form===r.form){var n=l4(i);if(!n)throw Error(D(90));c7(i),Q5(i,n)}}}break;case"textarea":h7(r,t);break;case"select":e=t.value,e!=null&&E2(r,!!t.multiple,e,!1)}};g7=Uv;_7=Pa;var cM={usingClientEntryPoint:!1,Events:[el,v2,l4,f7,p7,Uv]},ts={findFiberByHostInstance:ma,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},lM={bundleType:ts.bundleType,version:ts.version,rendererPackageName:ts.rendererPackageName,rendererConfig:ts.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:Bi.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=w7(r),r===null?null:r.stateNode},findFiberByHostInstance:ts.findFiberByHostInstance||oM,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 jl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!jl.isDisabled&&jl.supportsFiber)try{a4=jl.inject(lM),oi=jl}catch{}}rr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cM;rr.createPortal=function(r,e){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Wv(e))throw Error(D(200));return aM(r,e,null,t)};rr.createRoot=function(r,e){if(!Wv(r))throw Error(D(299));var t=!1,i="",n=e_;return e!=null&&(e.unstable_strictMode===!0&&(t=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onRecoverableError!==void 0&&(n=e.onRecoverableError)),e=qv(r,1,!1,null,null,t,!1,i,n),r[Ii]=e.current,pc(r.nodeType===8?r.parentNode:r),new Kv(e)};rr.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var e=r._reactInternals;if(e===void 0)throw typeof r.render=="function"?Error(D(188)):(r=Object.keys(r).join(","),Error(D(268,r)));return r=w7(e),r=r===null?null:r.stateNode,r};rr.flushSync=function(r){return Pa(r)};rr.hydrate=function(r,e,t){if(!_4(e))throw Error(D(200));return z4(null,r,e,!0,t)};rr.hydrateRoot=function(r,e,t){if(!Wv(r))throw Error(D(405));var i=t!=null&&t.hydratedSources||null,n=!1,a="",o=e_;if(t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),e=Zg(e,null,r,1,t??null,n,!1,a,o),r[Ii]=e.current,pc(r),i)for(r=0;r<i.length;r++)t=i[r],n=t._getVersion,n=n(t._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n);return new g4(e)};rr.render=function(r,e,t){if(!_4(e))throw Error(D(200));return z4(null,r,e,!1,t)};rr.unmountComponentAtNode=function(r){if(!_4(r))throw Error(D(40));return r._reactRootContainer?(Pa(function(){z4(null,null,r,!1,function(){r._reactRootContainer=null,r[Ii]=null})}),!0):!1};rr.unstable_batchedUpdates=Uv;rr.unstable_renderSubtreeIntoContainer=function(r,e,t,i){if(!_4(t))throw Error(D(200));if(r==null||r._reactInternals===void 0)throw Error(D(38));return z4(r,e,t,!1,i)};rr.version="18.2.0-next-9e3b772b8-20220608";(function(r){function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}e(),r.exports=rr})(ob);var tm=F5;U5.createRoot=tm.createRoot,U5.hydrateRoot=tm.hydrateRoot;let hM=class{constructor(e){this.domain=e,this.level=1}_createMessage(e){return[`%c FUSION FRAMEWORK %c ${this.domain} %c %s`,"background: rgb(179, 13, 47); color: white; padding: 1px;","background: rgb(244, 244, 244); color: rgb(36, 55, 70); padding: 1px;","background: none; color: inherit",...e.reduce((t,i)=>[...t,i,`
|
|
41
|
-
`],[])]}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 t_ extends hM{formatModuleName(e){return`📦\x1B[1;32m${(typeof e=="string"?e:e.name).replace(/([A-Z])/g," $1").toUpperCase()}\x1B[0m`}}var T3=function(r,e){return T3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},T3(r,e)};function v1(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");T3(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var wt=function(){return wt=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},wt.apply(this,arguments)};function r_(r,e){var t={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(r);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(r,i[n])&&(t[i[n]]=r[i[n]]);return t}function g(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var s=r.length-1;s>=0;s--)(o=r[s])&&(a=(n<3?o(a):n>3?o(e,t,a):o(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a}function y4(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})}function i_(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(h){return c([l,h])}}function c(l){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(t=0)),t;)try{if(i=1,n&&(a=l[0]&2?n.return:l[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,l[1])).done)return a;switch(n=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,n=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(r,t)}catch(h){l=[6,h],n=0}finally{i=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function _1(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function hi(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i=t.call(r),n,a=[],o;try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}function
|
|
40
|
+
`+a.stack}return{value:r,source:e,stack:n,digest:null}}function wd(r,e,t){return{value:r,source:null,stack:t??null,digest:e??null}}function b3(r,e){try{console.error(e.value)}catch(t){setTimeout(function(){throw t})}}var Ox=typeof WeakMap=="function"?WeakMap:Map;function Eg(r,e,t){t=$i(-1,t),t.tag=3,t.payload={element:null};var i=e.value;return t.callback=function(){l0||(l0=!0,S3=i),b3(r,e)},t}function Pg(r,e,t){t=$i(-1,t),t.tag=3;var i=r.type.getDerivedStateFromError;if(typeof i=="function"){var n=e.value;t.payload=function(){return i(n)},t.callback=function(){b3(r,e)}}var a=r.stateNode;return a!==null&&typeof a.componentDidCatch=="function"&&(t.callback=function(){b3(r,e),typeof i!="function"&&(Mn===null?Mn=new Set([this]):Mn.add(this));var o=e.stack;this.componentDidCatch(e.value,{componentStack:o!==null?o:""})}),t}function I8(r,e,t){var i=r.pingCache;if(i===null){i=r.pingCache=new Ox;var n=new Set;i.set(e,n)}else n=i.get(e),n===void 0&&(n=new Set,i.set(e,n));n.has(t)||(n.add(t),r=Zx.bind(null,r,e,t),e.then(r,r))}function R8(r){do{var e;if((e=r.tag===13)&&(e=r.memoizedState,e=e!==null?e.dehydrated!==null:!0),e)return r;r=r.return}while(r!==null);return null}function O8(r,e,t,i,n){return r.mode&1?(r.flags|=65536,r.lanes=n,r):(r===e?r.flags|=65536:(r.flags|=128,t.flags|=131072,t.flags&=-52805,t.tag===1&&(t.alternate===null?t.tag=17:(e=$i(-1,1),e.tag=2,xn(t,e,1))),t.lanes|=1),r)}var Nx=ji.ReactCurrentOwner,D1=!1;function f1(r,e,t,i){e.child=r===null?sg(e,null,t,i):X2(e,r.child,t,i)}function N8(r,e,t,i,n){t=t.render;var a=e.ref;return S2(e,n),i=$v(r,e,t,i,a,n),t=Dv(),r!==null&&!D1?(e.updateQueue=r.updateQueue,e.flags&=-2053,r.lanes&=~n,Ni(r,e,n)):(et&&t&&wv(e),e.flags|=1,f1(r,e,i,n),e.child)}function U8(r,e,t,i,n){if(r===null){var a=t.type;return typeof a=="function"&&!jv(a)&&a.defaultProps===void 0&&t.compare===null&&t.defaultProps===void 0?(e.tag=15,e.type=a,Ag(r,e,a,i,n)):(r=yh(t.type,null,i,e,e.mode,n),r.ref=e.ref,r.return=e,e.child=r)}if(a=r.child,!(r.lanes&n)){var o=a.memoizedProps;if(t=t.compare,t=t!==null?t:fc,t(o,i)&&r.ref===e.ref)return Ni(r,e,n)}return e.flags|=1,r=Hn(a,i),r.ref=e.ref,r.return=e,e.child=r}function Ag(r,e,t,i,n){if(r!==null){var a=r.memoizedProps;if(fc(a,i)&&r.ref===e.ref)if(D1=!1,e.pendingProps=i=a,(r.lanes&n)!==0)r.flags&131072&&(D1=!0);else return e.lanes=r.lanes,Ni(r,e,n)}return x3(r,e,t,i,n)}function Vg(r,e,t){var i=e.pendingProps,n=i.children,a=r!==null?r.memoizedState:null;if(i.mode==="hidden")if(!(e.mode&1))e.memoizedState={baseLanes:0,cachePool:null,transitions:null},Ge(z2,G1),G1|=t;else{if(!(t&1073741824))return r=a!==null?a.baseLanes|t:t,e.lanes=e.childLanes=1073741824,e.memoizedState={baseLanes:r,cachePool:null,transitions:null},e.updateQueue=null,Ge(z2,G1),G1|=r,null;e.memoizedState={baseLanes:0,cachePool:null,transitions:null},i=a!==null?a.baseLanes:t,Ge(z2,G1),G1|=i}else a!==null?(i=a.baseLanes|t,e.memoizedState=null):i=t,Ge(z2,G1),G1|=i;return f1(r,e,n,t),e.child}function Sg(r,e){var t=e.ref;(r===null&&t!==null||r!==null&&r.ref!==t)&&(e.flags|=512,e.flags|=2097152)}function x3(r,e,t,i,n){var a=O1(t)?Ca:u1.current;return a=Y2(e,a),S2(e,n),t=$v(r,e,t,i,a,n),i=Dv(),r!==null&&!D1?(e.updateQueue=r.updateQueue,e.flags&=-2053,r.lanes&=~n,Ni(r,e,n)):(et&&i&&wv(e),e.flags|=1,f1(r,e,t,n),e.child)}function F8(r,e,t,i,n){if(O1(t)){var a=!0;Zh(e)}else a=!1;if(S2(e,n),e.stateNode===null)gh(r,e),ag(e,t,i),w3(e,t,i,n),i=!0;else if(r===null){var o=e.stateNode,s=e.memoizedProps;o.props=s;var c=o.context,l=t.contextType;typeof l=="object"&&l!==null?l=zr(l):(l=O1(t)?Ca:u1.current,l=Y2(e,l));var h=t.getDerivedStateFromProps,d=typeof h=="function"||typeof o.getSnapshotBeforeUpdate=="function";d||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==i||c!==l)&&$8(e,o,i,l),nn=!1;var u=e.memoizedState;o.state=u,n0(e,i,o,n),c=e.memoizedState,s!==i||u!==c||R1.current||nn?(typeof h=="function"&&(y3(e,t,h,i),c=e.memoizedState),(s=nn||S8(e,t,s,i,u,c,l))?(d||typeof o.UNSAFE_componentWillMount!="function"&&typeof o.componentWillMount!="function"||(typeof o.componentWillMount=="function"&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount=="function"&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount=="function"&&(e.flags|=4194308)):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),e.memoizedProps=i,e.memoizedState=c),o.props=i,o.state=c,o.context=l,i=s):(typeof o.componentDidMount=="function"&&(e.flags|=4194308),i=!1)}else{o=e.stateNode,ig(r,e),s=e.memoizedProps,l=e.type===e.elementType?s:Ar(e.type,s),o.props=l,d=e.pendingProps,u=o.context,c=t.contextType,typeof c=="object"&&c!==null?c=zr(c):(c=O1(t)?Ca:u1.current,c=Y2(e,c));var v=t.getDerivedStateFromProps;(h=typeof v=="function"||typeof o.getSnapshotBeforeUpdate=="function")||typeof o.UNSAFE_componentWillReceiveProps!="function"&&typeof o.componentWillReceiveProps!="function"||(s!==d||u!==c)&&$8(e,o,i,c),nn=!1,u=e.memoizedState,o.state=u,n0(e,i,o,n);var m=e.memoizedState;s!==d||u!==m||R1.current||nn?(typeof v=="function"&&(y3(e,t,v,i),m=e.memoizedState),(l=nn||S8(e,t,l,i,u,m,c)||!1)?(h||typeof o.UNSAFE_componentWillUpdate!="function"&&typeof o.componentWillUpdate!="function"||(typeof o.componentWillUpdate=="function"&&o.componentWillUpdate(i,m,c),typeof o.UNSAFE_componentWillUpdate=="function"&&o.UNSAFE_componentWillUpdate(i,m,c)),typeof o.componentDidUpdate=="function"&&(e.flags|=4),typeof o.getSnapshotBeforeUpdate=="function"&&(e.flags|=1024)):(typeof o.componentDidUpdate!="function"||s===r.memoizedProps&&u===r.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===r.memoizedProps&&u===r.memoizedState||(e.flags|=1024),e.memoizedProps=i,e.memoizedState=m),o.props=i,o.state=m,o.context=c,i=l):(typeof o.componentDidUpdate!="function"||s===r.memoizedProps&&u===r.memoizedState||(e.flags|=4),typeof o.getSnapshotBeforeUpdate!="function"||s===r.memoizedProps&&u===r.memoizedState||(e.flags|=1024),i=!1)}return M3(r,e,t,i,a,n)}function M3(r,e,t,i,n,a){Sg(r,e);var o=(e.flags&128)!==0;if(!i&&!o)return n&&k8(e,t,!1),Ni(r,e,a);i=e.stateNode,Nx.current=e;var s=o&&typeof t.getDerivedStateFromError!="function"?null:i.render();return e.flags|=1,r!==null&&o?(e.child=X2(e,r.child,null,a),e.child=X2(e,null,s,a)):f1(r,e,s,a),e.memoizedState=i.state,n&&k8(e,t,!0),e.child}function $g(r){var e=r.stateNode;e.pendingContext?H8(r,e.pendingContext,e.pendingContext!==e.context):e.context&&H8(r,e.context,!1),Pv(r,e.containerInfo)}function B8(r,e,t,i,n){return Q2(),xv(n),e.flags|=256,f1(r,e,t,i),e.child}var C3={dehydrated:null,treeContext:null,retryLane:0};function H3(r){return{baseLanes:r,cachePool:null,transitions:null}}function Dg(r,e,t){var i=e.pendingProps,n=rt.current,a=!1,o=(e.flags&128)!==0,s;if((s=o)||(s=r!==null&&r.memoizedState===null?!1:(n&2)!==0),s?(a=!0,e.flags&=-129):(r===null||r.memoizedState!==null)&&(n|=1),Ge(rt,n&1),r===null)return _3(e),r=e.memoizedState,r!==null&&(r=r.dehydrated,r!==null)?(e.mode&1?r.data==="$!"?e.lanes=8:e.lanes=1073741824:e.lanes=1,null):(o=i.children,r=i.fallback,a?(i=e.mode,a=e.child,o={mode:"hidden",children:o},!(i&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=f4(o,i,0,null),r=ya(r,i,t,null),a.return=e,r.return=e,a.sibling=r,e.child=a,e.child.memoizedState=H3(t),e.memoizedState=C3,r):Iv(e,o));if(n=r.memoizedState,n!==null&&(s=n.dehydrated,s!==null))return Ux(r,e,o,i,s,n,t);if(a){a=i.fallback,o=e.mode,n=r.child,s=n.sibling;var c={mode:"hidden",children:i.children};return!(o&1)&&e.child!==n?(i=e.child,i.childLanes=0,i.pendingProps=c,e.deletions=null):(i=Hn(n,c),i.subtreeFlags=n.subtreeFlags&14680064),s!==null?a=Hn(s,a):(a=ya(a,o,t,null),a.flags|=2),a.return=e,i.return=e,i.sibling=a,e.child=i,i=a,a=e.child,o=r.child.memoizedState,o=o===null?H3(t):{baseLanes:o.baseLanes|t,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=r.childLanes&~t,e.memoizedState=C3,i}return a=r.child,r=a.sibling,i=Hn(a,{mode:"visible",children:i.children}),!(e.mode&1)&&(i.lanes=t),i.return=e,i.sibling=null,r!==null&&(t=e.deletions,t===null?(e.deletions=[r],e.flags|=16):t.push(r)),e.child=i,e.memoizedState=null,i}function Iv(r,e){return e=f4({mode:"visible",children:e},r.mode,0,null),e.return=r,r.child=e}function Ul(r,e,t,i){return i!==null&&xv(i),X2(e,r.child,null,t),r=Iv(e,e.pendingProps.children),r.flags|=2,e.memoizedState=null,r}function Ux(r,e,t,i,n,a,o){if(t)return e.flags&256?(e.flags&=-257,i=wd(Error(D(422))),Ul(r,e,o,i)):e.memoizedState!==null?(e.child=r.child,e.flags|=128,null):(a=i.fallback,n=e.mode,i=f4({mode:"visible",children:i.children},n,0,null),a=ya(a,n,o,null),a.flags|=2,i.return=e,a.return=e,i.sibling=a,e.child=i,e.mode&1&&X2(e,r.child,null,o),e.child.memoizedState=H3(o),e.memoizedState=C3,a);if(!(e.mode&1))return Ul(r,e,o,null);if(n.data==="$!"){if(i=n.nextSibling&&n.nextSibling.dataset,i)var s=i.dgst;return i=s,a=Error(D(419)),i=wd(a,i,void 0),Ul(r,e,o,i)}if(s=(o&r.childLanes)!==0,D1||s){if(i=Ot,i!==null){switch(o&-o){case 4:n=2;break;case 16:n=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:n=32;break;case 536870912:n=268435456;break;default:n=0}n=n&(i.suspendedLanes|o)?0:n,n!==0&&n!==a.retryLane&&(a.retryLane=n,Oi(r,n),Rr(i,r,n,-1))}return Bv(),i=wd(Error(D(421))),Ul(r,e,o,i)}return n.data==="$?"?(e.flags|=128,e.child=r.child,e=eM.bind(null,r),n._reactRetry=e,null):(r=a.treeContext,W1=bn(n.nextSibling),Q1=e,et=!0,Sr=null,r!==null&&(lr[hr++]=Pi,lr[hr++]=Ai,lr[hr++]=Ha,Pi=r.id,Ai=r.overflow,Ha=e),e=Iv(e,i.children),e.flags|=4096,e)}function j8(r,e,t){r.lanes|=e;var i=r.alternate;i!==null&&(i.lanes|=e),z3(r.return,e,t)}function bd(r,e,t,i,n){var a=r.memoizedState;a===null?r.memoizedState={isBackwards:e,rendering:null,renderingStartTime:0,last:i,tail:t,tailMode:n}:(a.isBackwards=e,a.rendering=null,a.renderingStartTime=0,a.last=i,a.tail=t,a.tailMode=n)}function Lg(r,e,t){var i=e.pendingProps,n=i.revealOrder,a=i.tail;if(f1(r,e,i.children,t),i=rt.current,i&2)i=i&1|2,e.flags|=128;else{if(r!==null&&r.flags&128)e:for(r=e.child;r!==null;){if(r.tag===13)r.memoizedState!==null&&j8(r,t,e);else if(r.tag===19)j8(r,t,e);else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break e;for(;r.sibling===null;){if(r.return===null||r.return===e)break e;r=r.return}r.sibling.return=r.return,r=r.sibling}i&=1}if(Ge(rt,i),!(e.mode&1))e.memoizedState=null;else switch(n){case"forwards":for(t=e.child,n=null;t!==null;)r=t.alternate,r!==null&&a0(r)===null&&(n=t),t=t.sibling;t=n,t===null?(n=e.child,e.child=null):(n=t.sibling,t.sibling=null),bd(e,!1,n,t,a);break;case"backwards":for(t=null,n=e.child,e.child=null;n!==null;){if(r=n.alternate,r!==null&&a0(r)===null){e.child=n;break}r=n.sibling,n.sibling=t,t=n,n=r}bd(e,!0,t,null,a);break;case"together":bd(e,!1,null,null,void 0);break;default:e.memoizedState=null}return e.child}function gh(r,e){!(e.mode&1)&&r!==null&&(r.alternate=null,e.alternate=null,e.flags|=2)}function Ni(r,e,t){if(r!==null&&(e.dependencies=r.dependencies),Ea|=e.lanes,!(t&e.childLanes))return null;if(r!==null&&e.child!==r.child)throw Error(D(153));if(e.child!==null){for(r=e.child,t=Hn(r,r.pendingProps),e.child=t,t.return=e;r.sibling!==null;)r=r.sibling,t=t.sibling=Hn(r,r.pendingProps),t.return=e;t.sibling=null}return e.child}function Fx(r,e,t){switch(e.tag){case 3:$g(e),Q2();break;case 5:cg(e);break;case 1:O1(e.type)&&Zh(e);break;case 4:Pv(e,e.stateNode.containerInfo);break;case 10:var i=e.type._context,n=e.memoizedProps.value;Ge(r0,i._currentValue),i._currentValue=n;break;case 13:if(i=e.memoizedState,i!==null)return i.dehydrated!==null?(Ge(rt,rt.current&1),e.flags|=128,null):t&e.child.childLanes?Dg(r,e,t):(Ge(rt,rt.current&1),r=Ni(r,e,t),r!==null?r.sibling:null);Ge(rt,rt.current&1);break;case 19:if(i=(t&e.childLanes)!==0,r.flags&128){if(i)return Lg(r,e,t);e.flags|=128}if(n=e.memoizedState,n!==null&&(n.rendering=null,n.tail=null,n.lastEffect=null),Ge(rt,rt.current),i)break;return null;case 22:case 23:return e.lanes=0,Vg(r,e,t)}return Ni(r,e,t)}var Tg,k3,Ig,Rg;Tg=function(r,e){for(var t=e.child;t!==null;){if(t.tag===5||t.tag===6)r.appendChild(t.stateNode);else if(t.tag!==4&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return;t=t.return}t.sibling.return=t.return,t=t.sibling}};k3=function(){};Ig=function(r,e,t,i){var n=r.memoizedProps;if(n!==i){r=e.stateNode,pa(si.current);var a=null;switch(t){case"input":n=Y5(r,n),i=Y5(r,i),a=[];break;case"select":n=nt({},n,{value:void 0}),i=nt({},i,{value:void 0}),a=[];break;case"textarea":n=J5(r,n),i=J5(r,i),a=[];break;default:typeof n.onClick!="function"&&typeof i.onClick=="function"&&(r.onclick=Xh)}e3(t,i);var o;t=null;for(l in n)if(!i.hasOwnProperty(l)&&n.hasOwnProperty(l)&&n[l]!=null)if(l==="style"){var s=n[l];for(o in s)s.hasOwnProperty(o)&&(t||(t={}),t[o]="")}else l!=="dangerouslySetInnerHTML"&&l!=="children"&&l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&l!=="autoFocus"&&(cc.hasOwnProperty(l)?a||(a=[]):(a=a||[]).push(l,null));for(l in i){var c=i[l];if(s=n!=null?n[l]:void 0,i.hasOwnProperty(l)&&c!==s&&(c!=null||s!=null))if(l==="style")if(s){for(o in s)!s.hasOwnProperty(o)||c&&c.hasOwnProperty(o)||(t||(t={}),t[o]="");for(o in c)c.hasOwnProperty(o)&&s[o]!==c[o]&&(t||(t={}),t[o]=c[o])}else t||(a||(a=[]),a.push(l,t)),t=c;else l==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,s=s?s.__html:void 0,c!=null&&s!==c&&(a=a||[]).push(l,c)):l==="children"?typeof c!="string"&&typeof c!="number"||(a=a||[]).push(l,""+c):l!=="suppressContentEditableWarning"&&l!=="suppressHydrationWarning"&&(cc.hasOwnProperty(l)?(c!=null&&l==="onScroll"&&We("scroll",r),a||s===c||(a=[])):(a=a||[]).push(l,c))}t&&(a=a||[]).push("style",t);var l=a;(e.updateQueue=l)&&(e.flags|=4)}};Rg=function(r,e,t,i){t!==i&&(e.flags|=4)};function es(r,e){if(!et)switch(r.tailMode){case"hidden":e=r.tail;for(var t=null;e!==null;)e.alternate!==null&&(t=e),e=e.sibling;t===null?r.tail=null:t.sibling=null;break;case"collapsed":t=r.tail;for(var i=null;t!==null;)t.alternate!==null&&(i=t),t=t.sibling;i===null?e||r.tail===null?r.tail=null:r.tail.sibling=null:i.sibling=null}}function n1(r){var e=r.alternate!==null&&r.alternate.child===r.child,t=0,i=0;if(e)for(var n=r.child;n!==null;)t|=n.lanes|n.childLanes,i|=n.subtreeFlags&14680064,i|=n.flags&14680064,n.return=r,n=n.sibling;else for(n=r.child;n!==null;)t|=n.lanes|n.childLanes,i|=n.subtreeFlags,i|=n.flags,n.return=r,n=n.sibling;return r.subtreeFlags|=i,r.childLanes=t,e}function Bx(r,e,t){var i=e.pendingProps;switch(bv(e),e.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return n1(e),null;case 1:return O1(e.type)&&Jh(),n1(e),null;case 3:return i=e.stateNode,J2(),Xe(R1),Xe(u1),Vv(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(r===null||r.child===null)&&(Ol(e)?e.flags|=4:r===null||r.memoizedState.isDehydrated&&!(e.flags&256)||(e.flags|=1024,Sr!==null&&(L3(Sr),Sr=null))),k3(r,e),n1(e),null;case 5:Av(e);var n=pa(yc.current);if(t=e.type,r!==null&&e.stateNode!=null)Ig(r,e,t,i,n),r.ref!==e.ref&&(e.flags|=512,e.flags|=2097152);else{if(!i){if(e.stateNode===null)throw Error(D(166));return n1(e),null}if(r=pa(si.current),Ol(e)){i=e.stateNode,t=e.type;var a=e.memoizedProps;switch(i[ri]=e,i[_c]=a,r=(e.mode&1)!==0,t){case"dialog":We("cancel",i),We("close",i);break;case"iframe":case"object":case"embed":We("load",i);break;case"video":case"audio":for(n=0;n<_s.length;n++)We(_s[n],i);break;case"source":We("error",i);break;case"img":case"image":case"link":We("error",i),We("load",i);break;case"details":We("toggle",i);break;case"input":Z6(i,a),We("invalid",i);break;case"select":i._wrapperState={wasMultiple:!!a.multiple},We("invalid",i);break;case"textarea":t8(i,a),We("invalid",i)}e3(t,a),n=null;for(var o in a)if(a.hasOwnProperty(o)){var s=a[o];o==="children"?typeof s=="string"?i.textContent!==s&&(a.suppressHydrationWarning!==!0&&Rl(i.textContent,s,r),n=["children",s]):typeof s=="number"&&i.textContent!==""+s&&(a.suppressHydrationWarning!==!0&&Rl(i.textContent,s,r),n=["children",""+s]):cc.hasOwnProperty(o)&&s!=null&&o==="onScroll"&&We("scroll",i)}switch(t){case"input":Al(i),e8(i,a,!0);break;case"textarea":Al(i),r8(i);break;case"select":case"option":break;default:typeof a.onClick=="function"&&(i.onclick=Xh)}i=n,e.updateQueue=i,i!==null&&(e.flags|=4)}else{o=n.nodeType===9?n:n.ownerDocument,r==="http://www.w3.org/1999/xhtml"&&(r=d7(t)),r==="http://www.w3.org/1999/xhtml"?t==="script"?(r=o.createElement("div"),r.innerHTML="<script><\/script>",r=r.removeChild(r.firstChild)):typeof i.is=="string"?r=o.createElement(t,{is:i.is}):(r=o.createElement(t),t==="select"&&(o=r,i.multiple?o.multiple=!0:i.size&&(o.size=i.size))):r=o.createElementNS(r,t),r[ri]=e,r[_c]=i,Tg(r,e,!1,!1),e.stateNode=r;e:{switch(o=t3(t,i),t){case"dialog":We("cancel",r),We("close",r),n=i;break;case"iframe":case"object":case"embed":We("load",r),n=i;break;case"video":case"audio":for(n=0;n<_s.length;n++)We(_s[n],r);n=i;break;case"source":We("error",r),n=i;break;case"img":case"image":case"link":We("error",r),We("load",r),n=i;break;case"details":We("toggle",r),n=i;break;case"input":Z6(r,i),n=Y5(r,i),We("invalid",r);break;case"option":n=i;break;case"select":r._wrapperState={wasMultiple:!!i.multiple},n=nt({},i,{value:void 0}),We("invalid",r);break;case"textarea":t8(r,i),n=J5(r,i),We("invalid",r);break;default:n=i}e3(t,n),s=n;for(a in s)if(s.hasOwnProperty(a)){var c=s[a];a==="style"?m7(r,c):a==="dangerouslySetInnerHTML"?(c=c?c.__html:void 0,c!=null&&u7(r,c)):a==="children"?typeof c=="string"?(t!=="textarea"||c!=="")&&lc(r,c):typeof c=="number"&&lc(r,""+c):a!=="suppressContentEditableWarning"&&a!=="suppressHydrationWarning"&&a!=="autoFocus"&&(cc.hasOwnProperty(a)?c!=null&&a==="onScroll"&&We("scroll",r):c!=null&&sv(r,a,c,o))}switch(t){case"input":Al(r),e8(r,i,!1);break;case"textarea":Al(r),r8(r);break;case"option":i.value!=null&&r.setAttribute("value",""+Pn(i.value));break;case"select":r.multiple=!!i.multiple,a=i.value,a!=null?E2(r,!!i.multiple,a,!1):i.defaultValue!=null&&E2(r,!!i.multiple,i.defaultValue,!0);break;default:typeof n.onClick=="function"&&(r.onclick=Xh)}switch(t){case"button":case"input":case"select":case"textarea":i=!!i.autoFocus;break e;case"img":i=!0;break e;default:i=!1}}i&&(e.flags|=4)}e.ref!==null&&(e.flags|=512,e.flags|=2097152)}return n1(e),null;case 6:if(r&&e.stateNode!=null)Rg(r,e,r.memoizedProps,i);else{if(typeof i!="string"&&e.stateNode===null)throw Error(D(166));if(t=pa(yc.current),pa(si.current),Ol(e)){if(i=e.stateNode,t=e.memoizedProps,i[ri]=e,(a=i.nodeValue!==t)&&(r=Q1,r!==null))switch(r.tag){case 3:Rl(i.nodeValue,t,(r.mode&1)!==0);break;case 5:r.memoizedProps.suppressHydrationWarning!==!0&&Rl(i.nodeValue,t,(r.mode&1)!==0)}a&&(e.flags|=4)}else i=(t.nodeType===9?t:t.ownerDocument).createTextNode(i),i[ri]=e,e.stateNode=i}return n1(e),null;case 13:if(Xe(rt),i=e.memoizedState,r===null||r.memoizedState!==null&&r.memoizedState.dehydrated!==null){if(et&&W1!==null&&e.mode&1&&!(e.flags&128))tg(),Q2(),e.flags|=98560,a=!1;else if(a=Ol(e),i!==null&&i.dehydrated!==null){if(r===null){if(!a)throw Error(D(318));if(a=e.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(D(317));a[ri]=e}else Q2(),!(e.flags&128)&&(e.memoizedState=null),e.flags|=4;n1(e),a=!1}else Sr!==null&&(L3(Sr),Sr=null),a=!0;if(!a)return e.flags&65536?e:null}return e.flags&128?(e.lanes=t,e):(i=i!==null,i!==(r!==null&&r.memoizedState!==null)&&i&&(e.child.flags|=8192,e.mode&1&&(r===null||rt.current&1?Vt===0&&(Vt=3):Bv())),e.updateQueue!==null&&(e.flags|=4),n1(e),null);case 4:return J2(),k3(r,e),r===null&&pc(e.stateNode.containerInfo),n1(e),null;case 10:return Hv(e.type._context),n1(e),null;case 17:return O1(e.type)&&Jh(),n1(e),null;case 19:if(Xe(rt),a=e.memoizedState,a===null)return n1(e),null;if(i=(e.flags&128)!==0,o=a.rendering,o===null)if(i)es(a,!1);else{if(Vt!==0||r!==null&&r.flags&128)for(r=e.child;r!==null;){if(o=a0(r),o!==null){for(e.flags|=128,es(a,!1),i=o.updateQueue,i!==null&&(e.updateQueue=i,e.flags|=4),e.subtreeFlags=0,i=t,t=e.child;t!==null;)a=t,r=i,a.flags&=14680066,o=a.alternate,o===null?(a.childLanes=0,a.lanes=r,a.child=null,a.subtreeFlags=0,a.memoizedProps=null,a.memoizedState=null,a.updateQueue=null,a.dependencies=null,a.stateNode=null):(a.childLanes=o.childLanes,a.lanes=o.lanes,a.child=o.child,a.subtreeFlags=0,a.deletions=null,a.memoizedProps=o.memoizedProps,a.memoizedState=o.memoizedState,a.updateQueue=o.updateQueue,a.type=o.type,r=o.dependencies,a.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),t=t.sibling;return Ge(rt,rt.current&1|2),e.child}r=r.sibling}a.tail!==null&&vt()>eo&&(e.flags|=128,i=!0,es(a,!1),e.lanes=4194304)}else{if(!i)if(r=a0(o),r!==null){if(e.flags|=128,i=!0,t=r.updateQueue,t!==null&&(e.updateQueue=t,e.flags|=4),es(a,!0),a.tail===null&&a.tailMode==="hidden"&&!o.alternate&&!et)return n1(e),null}else 2*vt()-a.renderingStartTime>eo&&t!==1073741824&&(e.flags|=128,i=!0,es(a,!1),e.lanes=4194304);a.isBackwards?(o.sibling=e.child,e.child=o):(t=a.last,t!==null?t.sibling=o:e.child=o,a.last=o)}return a.tail!==null?(e=a.tail,a.rendering=e,a.tail=e.sibling,a.renderingStartTime=vt(),e.sibling=null,t=rt.current,Ge(rt,i?t&1|2:t&1),e):(n1(e),null);case 22:case 23:return Fv(),i=e.memoizedState!==null,r!==null&&r.memoizedState!==null!==i&&(e.flags|=8192),i&&e.mode&1?G1&1073741824&&(n1(e),e.subtreeFlags&6&&(e.flags|=8192)):n1(e),null;case 24:return null;case 25:return null}throw Error(D(156,e.tag))}function jx(r,e){switch(bv(e),e.tag){case 1:return O1(e.type)&&Jh(),r=e.flags,r&65536?(e.flags=r&-65537|128,e):null;case 3:return J2(),Xe(R1),Xe(u1),Vv(),r=e.flags,r&65536&&!(r&128)?(e.flags=r&-65537|128,e):null;case 5:return Av(e),null;case 13:if(Xe(rt),r=e.memoizedState,r!==null&&r.dehydrated!==null){if(e.alternate===null)throw Error(D(340));Q2()}return r=e.flags,r&65536?(e.flags=r&-65537|128,e):null;case 19:return Xe(rt),null;case 4:return J2(),null;case 10:return Hv(e.type._context),null;case 22:case 23:return Fv(),null;case 24:return null;default:return null}}var Fl=!1,l1=!1,qx=typeof WeakSet=="function"?WeakSet:Set,q=null;function _2(r,e){var t=r.ref;if(t!==null)if(typeof t=="function")try{t(null)}catch(i){ct(r,e,i)}else t.current=null}function E3(r,e,t){try{t()}catch(i){ct(r,e,i)}}var q8=!1;function Gx(r,e){if(d3=Wh,r=F7(),yv(r)){if("selectionStart"in r)var t={start:r.selectionStart,end:r.selectionEnd};else e:{t=(t=r.ownerDocument)&&t.defaultView||window;var i=t.getSelection&&t.getSelection();if(i&&i.rangeCount!==0){t=i.anchorNode;var n=i.anchorOffset,a=i.focusNode;i=i.focusOffset;try{t.nodeType,a.nodeType}catch{t=null;break e}var o=0,s=-1,c=-1,l=0,h=0,d=r,u=null;t:for(;;){for(var v;d!==t||n!==0&&d.nodeType!==3||(s=o+n),d!==a||i!==0&&d.nodeType!==3||(c=o+i),d.nodeType===3&&(o+=d.nodeValue.length),(v=d.firstChild)!==null;)u=d,d=v;for(;;){if(d===r)break t;if(u===t&&++l===n&&(s=o),u===a&&++h===i&&(c=o),(v=d.nextSibling)!==null)break;d=u,u=d.parentNode}d=v}t=s===-1||c===-1?null:{start:s,end:c}}else t=null}t=t||{start:0,end:0}}else t=null;for(u3={focusedElem:r,selectionRange:t},Wh=!1,q=e;q!==null;)if(e=q,r=e.child,(e.subtreeFlags&1028)!==0&&r!==null)r.return=e,q=r;else for(;q!==null;){e=q;try{var m=e.alternate;if(e.flags&1024)switch(e.tag){case 0:case 11:case 15:break;case 1:if(m!==null){var f=m.memoizedProps,C=m.memoizedState,_=e.stateNode,p=_.getSnapshotBeforeUpdate(e.elementType===e.type?f:Ar(e.type,f),C);_.__reactInternalSnapshotBeforeUpdate=p}break;case 3:var z=e.stateNode.containerInfo;z.nodeType===1?z.textContent="":z.nodeType===9&&z.documentElement&&z.removeChild(z.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(D(163))}}catch(M){ct(e,e.return,M)}if(r=e.sibling,r!==null){r.return=e.return,q=r;break}q=e.return}return m=q8,q8=!1,m}function Bs(r,e,t){var i=e.updateQueue;if(i=i!==null?i.lastEffect:null,i!==null){var n=i=i.next;do{if((n.tag&r)===r){var a=n.destroy;n.destroy=void 0,a!==void 0&&E3(e,t,a)}n=n.next}while(n!==i)}}function v4(r,e){if(e=e.updateQueue,e=e!==null?e.lastEffect:null,e!==null){var t=e=e.next;do{if((t.tag&r)===r){var i=t.create;t.destroy=i()}t=t.next}while(t!==e)}}function P3(r){var e=r.ref;if(e!==null){var t=r.stateNode;switch(r.tag){case 5:r=t;break;default:r=t}typeof e=="function"?e(r):e.current=r}}function Og(r){var e=r.alternate;e!==null&&(r.alternate=null,Og(e)),r.child=null,r.deletions=null,r.sibling=null,r.tag===5&&(e=r.stateNode,e!==null&&(delete e[ri],delete e[_c],delete e[f3],delete e[Ex],delete e[Px])),r.stateNode=null,r.return=null,r.dependencies=null,r.memoizedProps=null,r.memoizedState=null,r.pendingProps=null,r.stateNode=null,r.updateQueue=null}function Ng(r){return r.tag===5||r.tag===3||r.tag===4}function G8(r){e:for(;;){for(;r.sibling===null;){if(r.return===null||Ng(r.return))return null;r=r.return}for(r.sibling.return=r.return,r=r.sibling;r.tag!==5&&r.tag!==6&&r.tag!==18;){if(r.flags&2||r.child===null||r.tag===4)continue e;r.child.return=r,r=r.child}if(!(r.flags&2))return r.stateNode}}function A3(r,e,t){var i=r.tag;if(i===5||i===6)r=r.stateNode,e?t.nodeType===8?t.parentNode.insertBefore(r,e):t.insertBefore(r,e):(t.nodeType===8?(e=t.parentNode,e.insertBefore(r,t)):(e=t,e.appendChild(r)),t=t._reactRootContainer,t!=null||e.onclick!==null||(e.onclick=Xh));else if(i!==4&&(r=r.child,r!==null))for(A3(r,e,t),r=r.sibling;r!==null;)A3(r,e,t),r=r.sibling}function V3(r,e,t){var i=r.tag;if(i===5||i===6)r=r.stateNode,e?t.insertBefore(r,e):t.appendChild(r);else if(i!==4&&(r=r.child,r!==null))for(V3(r,e,t),r=r.sibling;r!==null;)V3(r,e,t),r=r.sibling}var jt=null,Vr=!1;function Ki(r,e,t){for(t=t.child;t!==null;)Ug(r,e,t),t=t.sibling}function Ug(r,e,t){if(oi&&typeof oi.onCommitFiberUnmount=="function")try{oi.onCommitFiberUnmount(a4,t)}catch{}switch(t.tag){case 5:l1||_2(t,e);case 6:var i=jt,n=Vr;jt=null,Ki(r,e,t),jt=i,Vr=n,jt!==null&&(Vr?(r=jt,t=t.stateNode,r.nodeType===8?r.parentNode.removeChild(t):r.removeChild(t)):jt.removeChild(t.stateNode));break;case 18:jt!==null&&(Vr?(r=jt,t=t.stateNode,r.nodeType===8?fd(r.parentNode,t):r.nodeType===1&&fd(r,t),vc(r)):fd(jt,t.stateNode));break;case 4:i=jt,n=Vr,jt=t.stateNode.containerInfo,Vr=!0,Ki(r,e,t),jt=i,Vr=n;break;case 0:case 11:case 14:case 15:if(!l1&&(i=t.updateQueue,i!==null&&(i=i.lastEffect,i!==null))){n=i=i.next;do{var a=n,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&E3(t,e,o),n=n.next}while(n!==i)}Ki(r,e,t);break;case 1:if(!l1&&(_2(t,e),i=t.stateNode,typeof i.componentWillUnmount=="function"))try{i.props=t.memoizedProps,i.state=t.memoizedState,i.componentWillUnmount()}catch(s){ct(t,e,s)}Ki(r,e,t);break;case 21:Ki(r,e,t);break;case 22:t.mode&1?(l1=(i=l1)||t.memoizedState!==null,Ki(r,e,t),l1=i):Ki(r,e,t);break;default:Ki(r,e,t)}}function K8(r){var e=r.updateQueue;if(e!==null){r.updateQueue=null;var t=r.stateNode;t===null&&(t=r.stateNode=new qx),e.forEach(function(i){var n=tM.bind(null,r,i);t.has(i)||(t.add(i),i.then(n,n))})}}function Cr(r,e){var t=e.deletions;if(t!==null)for(var i=0;i<t.length;i++){var n=t[i];try{var a=r,o=e,s=o;e:for(;s!==null;){switch(s.tag){case 5:jt=s.stateNode,Vr=!1;break e;case 3:jt=s.stateNode.containerInfo,Vr=!0;break e;case 4:jt=s.stateNode.containerInfo,Vr=!0;break e}s=s.return}if(jt===null)throw Error(D(160));Ug(a,o,n),jt=null,Vr=!1;var c=n.alternate;c!==null&&(c.return=null),n.return=null}catch(l){ct(n,e,l)}}if(e.subtreeFlags&12854)for(e=e.child;e!==null;)Fg(e,r),e=e.sibling}function Fg(r,e){var t=r.alternate,i=r.flags;switch(r.tag){case 0:case 11:case 14:case 15:if(Cr(e,r),Gr(r),i&4){try{Bs(3,r,r.return),v4(3,r)}catch(f){ct(r,r.return,f)}try{Bs(5,r,r.return)}catch(f){ct(r,r.return,f)}}break;case 1:Cr(e,r),Gr(r),i&512&&t!==null&&_2(t,t.return);break;case 5:if(Cr(e,r),Gr(r),i&512&&t!==null&&_2(t,t.return),r.flags&32){var n=r.stateNode;try{lc(n,"")}catch(f){ct(r,r.return,f)}}if(i&4&&(n=r.stateNode,n!=null)){var a=r.memoizedProps,o=t!==null?t.memoizedProps:a,s=r.type,c=r.updateQueue;if(r.updateQueue=null,c!==null)try{s==="input"&&a.type==="radio"&&a.name!=null&&l7(n,a),t3(s,o);var l=t3(s,a);for(o=0;o<c.length;o+=2){var h=c[o],d=c[o+1];h==="style"?m7(n,d):h==="dangerouslySetInnerHTML"?u7(n,d):h==="children"?lc(n,d):sv(n,h,d,l)}switch(s){case"input":Q5(n,a);break;case"textarea":h7(n,a);break;case"select":var u=n._wrapperState.wasMultiple;n._wrapperState.wasMultiple=!!a.multiple;var v=a.value;v!=null?E2(n,!!a.multiple,v,!1):u!==!!a.multiple&&(a.defaultValue!=null?E2(n,!!a.multiple,a.defaultValue,!0):E2(n,!!a.multiple,a.multiple?[]:"",!1))}n[_c]=a}catch(f){ct(r,r.return,f)}}break;case 6:if(Cr(e,r),Gr(r),i&4){if(r.stateNode===null)throw Error(D(162));n=r.stateNode,a=r.memoizedProps;try{n.nodeValue=a}catch(f){ct(r,r.return,f)}}break;case 3:if(Cr(e,r),Gr(r),i&4&&t!==null&&t.memoizedState.isDehydrated)try{vc(e.containerInfo)}catch(f){ct(r,r.return,f)}break;case 4:Cr(e,r),Gr(r);break;case 13:Cr(e,r),Gr(r),n=r.child,n.flags&8192&&(a=n.memoizedState!==null,n.stateNode.isHidden=a,!a||n.alternate!==null&&n.alternate.memoizedState!==null||(Nv=vt())),i&4&&K8(r);break;case 22:if(h=t!==null&&t.memoizedState!==null,r.mode&1?(l1=(l=l1)||h,Cr(e,r),l1=l):Cr(e,r),Gr(r),i&8192){if(l=r.memoizedState!==null,(r.stateNode.isHidden=l)&&!h&&r.mode&1)for(q=r,h=r.child;h!==null;){for(d=q=h;q!==null;){switch(u=q,v=u.child,u.tag){case 0:case 11:case 14:case 15:Bs(4,u,u.return);break;case 1:_2(u,u.return);var m=u.stateNode;if(typeof m.componentWillUnmount=="function"){i=u,t=u.return;try{e=i,m.props=e.memoizedProps,m.state=e.memoizedState,m.componentWillUnmount()}catch(f){ct(i,t,f)}}break;case 5:_2(u,u.return);break;case 22:if(u.memoizedState!==null){Y8(d);continue}}v!==null?(v.return=u,q=v):Y8(d)}h=h.sibling}e:for(h=null,d=r;;){if(d.tag===5){if(h===null){h=d;try{n=d.stateNode,l?(a=n.style,typeof a.setProperty=="function"?a.setProperty("display","none","important"):a.display="none"):(s=d.stateNode,c=d.memoizedProps.style,o=c!=null&&c.hasOwnProperty("display")?c.display:null,s.style.display=v7("display",o))}catch(f){ct(r,r.return,f)}}}else if(d.tag===6){if(h===null)try{d.stateNode.nodeValue=l?"":d.memoizedProps}catch(f){ct(r,r.return,f)}}else if((d.tag!==22&&d.tag!==23||d.memoizedState===null||d===r)&&d.child!==null){d.child.return=d,d=d.child;continue}if(d===r)break e;for(;d.sibling===null;){if(d.return===null||d.return===r)break e;h===d&&(h=null),d=d.return}h===d&&(h=null),d.sibling.return=d.return,d=d.sibling}}break;case 19:Cr(e,r),Gr(r),i&4&&K8(r);break;case 21:break;default:Cr(e,r),Gr(r)}}function Gr(r){var e=r.flags;if(e&2){try{e:{for(var t=r.return;t!==null;){if(Ng(t)){var i=t;break e}t=t.return}throw Error(D(160))}switch(i.tag){case 5:var n=i.stateNode;i.flags&32&&(lc(n,""),i.flags&=-33);var a=G8(r);V3(r,a,n);break;case 3:case 4:var o=i.stateNode.containerInfo,s=G8(r);A3(r,s,o);break;default:throw Error(D(161))}}catch(c){ct(r,r.return,c)}r.flags&=-3}e&4096&&(r.flags&=-4097)}function Kx(r,e,t){q=r,Bg(r)}function Bg(r,e,t){for(var i=(r.mode&1)!==0;q!==null;){var n=q,a=n.child;if(n.tag===22&&i){var o=n.memoizedState!==null||Fl;if(!o){var s=n.alternate,c=s!==null&&s.memoizedState!==null||l1;s=Fl;var l=l1;if(Fl=o,(l1=c)&&!l)for(q=n;q!==null;)o=q,c=o.child,o.tag===22&&o.memoizedState!==null?Q8(n):c!==null?(c.return=o,q=c):Q8(n);for(;a!==null;)q=a,Bg(a),a=a.sibling;q=n,Fl=s,l1=l}W8(r)}else n.subtreeFlags&8772&&a!==null?(a.return=n,q=a):W8(r)}}function W8(r){for(;q!==null;){var e=q;if(e.flags&8772){var t=e.alternate;try{if(e.flags&8772)switch(e.tag){case 0:case 11:case 15:l1||v4(5,e);break;case 1:var i=e.stateNode;if(e.flags&4&&!l1)if(t===null)i.componentDidMount();else{var n=e.elementType===e.type?t.memoizedProps:Ar(e.type,t.memoizedProps);i.componentDidUpdate(n,t.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}var a=e.updateQueue;a!==null&&V8(e,a,i);break;case 3:var o=e.updateQueue;if(o!==null){if(t=null,e.child!==null)switch(e.child.tag){case 5:t=e.child.stateNode;break;case 1:t=e.child.stateNode}V8(e,o,t)}break;case 5:var s=e.stateNode;if(t===null&&e.flags&4){t=s;var c=e.memoizedProps;switch(e.type){case"button":case"input":case"select":case"textarea":c.autoFocus&&t.focus();break;case"img":c.src&&(t.src=c.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(e.memoizedState===null){var l=e.alternate;if(l!==null){var h=l.memoizedState;if(h!==null){var d=h.dehydrated;d!==null&&vc(d)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(D(163))}l1||e.flags&512&&P3(e)}catch(u){ct(e,e.return,u)}}if(e===r){q=null;break}if(t=e.sibling,t!==null){t.return=e.return,q=t;break}q=e.return}}function Y8(r){for(;q!==null;){var e=q;if(e===r){q=null;break}var t=e.sibling;if(t!==null){t.return=e.return,q=t;break}q=e.return}}function Q8(r){for(;q!==null;){var e=q;try{switch(e.tag){case 0:case 11:case 15:var t=e.return;try{v4(4,e)}catch(c){ct(e,t,c)}break;case 1:var i=e.stateNode;if(typeof i.componentDidMount=="function"){var n=e.return;try{i.componentDidMount()}catch(c){ct(e,n,c)}}var a=e.return;try{P3(e)}catch(c){ct(e,a,c)}break;case 5:var o=e.return;try{P3(e)}catch(c){ct(e,o,c)}}}catch(c){ct(e,e.return,c)}if(e===r){q=null;break}var s=e.sibling;if(s!==null){s.return=e.return,q=s;break}q=e.return}}var Wx=Math.ceil,c0=ji.ReactCurrentDispatcher,Rv=ji.ReactCurrentOwner,pr=ji.ReactCurrentBatchConfig,He=0,Ot=null,zt=null,Yt=0,G1=0,z2=Tn(0),Vt=0,Mc=null,Ea=0,m4=0,Ov=0,js=null,A1=null,Nv=0,eo=1/0,bi=null,l0=!1,S3=null,Mn=null,Bl=!1,pn=null,h0=0,qs=0,$3=null,_h=-1,zh=0;function z1(){return He&6?vt():_h!==-1?_h:_h=vt()}function Cn(r){return r.mode&1?He&2&&Yt!==0?Yt&-Yt:Vx.transition!==null?(zh===0&&(zh=H7()),zh):(r=Oe,r!==0||(r=window.event,r=r===void 0?16:$7(r.type)),r):1}function Rr(r,e,t,i){if(50<qs)throw qs=0,$3=null,Error(D(185));Jc(r,t,i),(!(He&2)||r!==Ot)&&(r===Ot&&(!(He&2)&&(m4|=t),Vt===4&&cn(r,Yt)),N1(r,i),t===1&&He===0&&!(e.mode&1)&&(eo=vt()+500,h4&&In()))}function N1(r,e){var t=r.callbackNode;Vb(r,e);var i=Kh(r,r===Ot?Yt:0);if(i===0)t!==null&&a8(t),r.callbackNode=null,r.callbackPriority=0;else if(e=i&-i,r.callbackPriority!==e){if(t!=null&&a8(t),e===1)r.tag===0?Ax(X8.bind(null,r)):J7(X8.bind(null,r)),Hx(function(){!(He&6)&&In()}),t=null;else{switch(k7(i)){case 1:t=uv;break;case 4:t=M7;break;case 16:t=Gh;break;case 536870912:t=C7;break;default:t=Gh}t=Xg(t,jg.bind(null,r))}r.callbackPriority=e,r.callbackNode=t}}function jg(r,e){if(_h=-1,zh=0,He&6)throw Error(D(327));var t=r.callbackNode;if($2()&&r.callbackNode!==t)return null;var i=Kh(r,r===Ot?Yt:0);if(i===0)return null;if(i&30||i&r.expiredLanes||e)e=d0(r,i);else{e=i;var n=He;He|=2;var a=Gg();(Ot!==r||Yt!==e)&&(bi=null,eo=vt()+500,za(r,e));do try{Xx();break}catch(s){qg(r,s)}while(1);Cv(),c0.current=a,He=n,zt!==null?e=0:(Ot=null,Yt=0,e=Vt)}if(e!==0){if(e===2&&(n=o3(r),n!==0&&(i=n,e=D3(r,n))),e===1)throw t=Mc,za(r,0),cn(r,i),N1(r,vt()),t;if(e===6)cn(r,i);else{if(n=r.current.alternate,!(i&30)&&!Yx(n)&&(e=d0(r,i),e===2&&(a=o3(r),a!==0&&(i=a,e=D3(r,a))),e===1))throw t=Mc,za(r,0),cn(r,i),N1(r,vt()),t;switch(r.finishedWork=n,r.finishedLanes=i,e){case 0:case 1:throw Error(D(345));case 2:aa(r,A1,bi);break;case 3:if(cn(r,i),(i&130023424)===i&&(e=Nv+500-vt(),10<e)){if(Kh(r,0)!==0)break;if(n=r.suspendedLanes,(n&i)!==i){z1(),r.pingedLanes|=r.suspendedLanes&n;break}r.timeoutHandle=m3(aa.bind(null,r,A1,bi),e);break}aa(r,A1,bi);break;case 4:if(cn(r,i),(i&4194240)===i)break;for(e=r.eventTimes,n=-1;0<i;){var o=31-Ir(i);a=1<<o,o=e[o],o>n&&(n=o),i&=~a}if(i=n,i=vt()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Wx(i/1960))-i,10<i){r.timeoutHandle=m3(aa.bind(null,r,A1,bi),i);break}aa(r,A1,bi);break;case 5:aa(r,A1,bi);break;default:throw Error(D(329))}}}return N1(r,vt()),r.callbackNode===t?jg.bind(null,r):null}function D3(r,e){var t=js;return r.current.memoizedState.isDehydrated&&(za(r,e).flags|=256),r=d0(r,e),r!==2&&(e=A1,A1=t,e!==null&&L3(e)),r}function L3(r){A1===null?A1=r:A1.push.apply(A1,r)}function Yx(r){for(var e=r;;){if(e.flags&16384){var t=e.updateQueue;if(t!==null&&(t=t.stores,t!==null))for(var i=0;i<t.length;i++){var n=t[i],a=n.getSnapshot;n=n.value;try{if(!Or(a(),n))return!1}catch{return!1}}}if(t=e.child,e.subtreeFlags&16384&&t!==null)t.return=e,e=t;else{if(e===r)break;for(;e.sibling===null;){if(e.return===null||e.return===r)return!0;e=e.return}e.sibling.return=e.return,e=e.sibling}}return!0}function cn(r,e){for(e&=~Ov,e&=~m4,r.suspendedLanes|=e,r.pingedLanes&=~e,r=r.expirationTimes;0<e;){var t=31-Ir(e),i=1<<t;r[t]=-1,e&=~i}}function X8(r){if(He&6)throw Error(D(327));$2();var e=Kh(r,0);if(!(e&1))return N1(r,vt()),null;var t=d0(r,e);if(r.tag!==0&&t===2){var i=o3(r);i!==0&&(e=i,t=D3(r,i))}if(t===1)throw t=Mc,za(r,0),cn(r,e),N1(r,vt()),t;if(t===6)throw Error(D(345));return r.finishedWork=r.current.alternate,r.finishedLanes=e,aa(r,A1,bi),N1(r,vt()),null}function Uv(r,e){var t=He;He|=1;try{return r(e)}finally{He=t,He===0&&(eo=vt()+500,h4&&In())}}function Pa(r){pn!==null&&pn.tag===0&&!(He&6)&&$2();var e=He;He|=1;var t=pr.transition,i=Oe;try{if(pr.transition=null,Oe=1,r)return r()}finally{Oe=i,pr.transition=t,He=e,!(He&6)&&In()}}function Fv(){G1=z2.current,Xe(z2)}function za(r,e){r.finishedWork=null,r.finishedLanes=0;var t=r.timeoutHandle;if(t!==-1&&(r.timeoutHandle=-1,Cx(t)),zt!==null)for(t=zt.return;t!==null;){var i=t;switch(bv(i),i.tag){case 1:i=i.type.childContextTypes,i!=null&&Jh();break;case 3:J2(),Xe(R1),Xe(u1),Vv();break;case 5:Av(i);break;case 4:J2();break;case 13:Xe(rt);break;case 19:Xe(rt);break;case 10:Hv(i.type._context);break;case 22:case 23:Fv()}t=t.return}if(Ot=r,zt=r=Hn(r.current,null),Yt=G1=e,Vt=0,Mc=null,Ov=m4=Ea=0,A1=js=null,fa!==null){for(e=0;e<fa.length;e++)if(t=fa[e],i=t.interleaved,i!==null){t.interleaved=null;var n=i.next,a=t.pending;if(a!==null){var o=a.next;a.next=n,i.next=o}t.pending=i}fa=null}return r}function qg(r,e){do{var t=zt;try{if(Cv(),fh.current=s0,o0){for(var i=it.memoizedState;i!==null;){var n=i.queue;n!==null&&(n.pending=null),i=i.next}o0=!1}if(ka=0,Tt=Ht=it=null,Fs=!1,wc=0,Rv.current=null,t===null||t.return===null){Vt=1,Mc=e,zt=null;break}e:{var a=r,o=t.return,s=t,c=e;if(e=Yt,s.flags|=32768,c!==null&&typeof c=="object"&&typeof c.then=="function"){var l=c,h=s,d=h.tag;if(!(h.mode&1)&&(d===0||d===11||d===15)){var u=h.alternate;u?(h.updateQueue=u.updateQueue,h.memoizedState=u.memoizedState,h.lanes=u.lanes):(h.updateQueue=null,h.memoizedState=null)}var v=R8(o);if(v!==null){v.flags&=-257,O8(v,o,s,a,e),v.mode&1&&I8(a,l,e),e=v,c=l;var m=e.updateQueue;if(m===null){var f=new Set;f.add(c),e.updateQueue=f}else m.add(c);break e}else{if(!(e&1)){I8(a,l,e),Bv();break e}c=Error(D(426))}}else if(et&&s.mode&1){var C=R8(o);if(C!==null){!(C.flags&65536)&&(C.flags|=256),O8(C,o,s,a,e),xv(Z2(c,s));break e}}a=c=Z2(c,s),Vt!==4&&(Vt=2),js===null?js=[a]:js.push(a),a=o;do{switch(a.tag){case 3:a.flags|=65536,e&=-e,a.lanes|=e;var _=Eg(a,c,e);A8(a,_);break e;case 1:s=c;var p=a.type,z=a.stateNode;if(!(a.flags&128)&&(typeof p.getDerivedStateFromError=="function"||z!==null&&typeof z.componentDidCatch=="function"&&(Mn===null||!Mn.has(z)))){a.flags|=65536,e&=-e,a.lanes|=e;var M=Pg(a,s,e);A8(a,M);break e}}a=a.return}while(a!==null)}Wg(t)}catch(A){e=A,zt===t&&t!==null&&(zt=t=t.return);continue}break}while(1)}function Gg(){var r=c0.current;return c0.current=s0,r===null?s0:r}function Bv(){(Vt===0||Vt===3||Vt===2)&&(Vt=4),Ot===null||!(Ea&268435455)&&!(m4&268435455)||cn(Ot,Yt)}function d0(r,e){var t=He;He|=2;var i=Gg();(Ot!==r||Yt!==e)&&(bi=null,za(r,e));do try{Qx();break}catch(n){qg(r,n)}while(1);if(Cv(),He=t,c0.current=i,zt!==null)throw Error(D(261));return Ot=null,Yt=0,Vt}function Qx(){for(;zt!==null;)Kg(zt)}function Xx(){for(;zt!==null&&!bb();)Kg(zt)}function Kg(r){var e=Qg(r.alternate,r,G1);r.memoizedProps=r.pendingProps,e===null?Wg(r):zt=e,Rv.current=null}function Wg(r){var e=r;do{var t=e.alternate;if(r=e.return,e.flags&32768){if(t=jx(t,e),t!==null){t.flags&=32767,zt=t;return}if(r!==null)r.flags|=32768,r.subtreeFlags=0,r.deletions=null;else{Vt=6,zt=null;return}}else if(t=Bx(t,e,G1),t!==null){zt=t;return}if(e=e.sibling,e!==null){zt=e;return}zt=e=r}while(e!==null);Vt===0&&(Vt=5)}function aa(r,e,t){var i=Oe,n=pr.transition;try{pr.transition=null,Oe=1,Jx(r,e,t,i)}finally{pr.transition=n,Oe=i}return null}function Jx(r,e,t,i){do $2();while(pn!==null);if(He&6)throw Error(D(327));t=r.finishedWork;var n=r.finishedLanes;if(t===null)return null;if(r.finishedWork=null,r.finishedLanes=0,t===r.current)throw Error(D(177));r.callbackNode=null,r.callbackPriority=0;var a=t.lanes|t.childLanes;if(Sb(r,a),r===Ot&&(zt=Ot=null,Yt=0),!(t.subtreeFlags&2064)&&!(t.flags&2064)||Bl||(Bl=!0,Xg(Gh,function(){return $2(),null})),a=(t.flags&15990)!==0,t.subtreeFlags&15990||a){a=pr.transition,pr.transition=null;var o=Oe;Oe=1;var s=He;He|=4,Rv.current=null,Gx(r,t),Fg(t,r),_x(u3),Wh=!!d3,u3=d3=null,r.current=t,Kx(t),xb(),He=s,Oe=o,pr.transition=a}else r.current=t;if(Bl&&(Bl=!1,pn=r,h0=n),a=r.pendingLanes,a===0&&(Mn=null),Hb(t.stateNode),N1(r,vt()),e!==null)for(i=r.onRecoverableError,t=0;t<e.length;t++)n=e[t],i(n.value,{componentStack:n.stack,digest:n.digest});if(l0)throw l0=!1,r=S3,S3=null,r;return h0&1&&r.tag!==0&&$2(),a=r.pendingLanes,a&1?r===$3?qs++:(qs=0,$3=r):qs=0,In(),null}function $2(){if(pn!==null){var r=k7(h0),e=pr.transition,t=Oe;try{if(pr.transition=null,Oe=16>r?16:r,pn===null)var i=!1;else{if(r=pn,pn=null,h0=0,He&6)throw Error(D(331));var n=He;for(He|=4,q=r.current;q!==null;){var a=q,o=a.child;if(q.flags&16){var s=a.deletions;if(s!==null){for(var c=0;c<s.length;c++){var l=s[c];for(q=l;q!==null;){var h=q;switch(h.tag){case 0:case 11:case 15:Bs(8,h,a)}var d=h.child;if(d!==null)d.return=h,q=d;else for(;q!==null;){h=q;var u=h.sibling,v=h.return;if(Og(h),h===l){q=null;break}if(u!==null){u.return=v,q=u;break}q=v}}}var m=a.alternate;if(m!==null){var f=m.child;if(f!==null){m.child=null;do{var C=f.sibling;f.sibling=null,f=C}while(f!==null)}}q=a}}if(a.subtreeFlags&2064&&o!==null)o.return=a,q=o;else e:for(;q!==null;){if(a=q,a.flags&2048)switch(a.tag){case 0:case 11:case 15:Bs(9,a,a.return)}var _=a.sibling;if(_!==null){_.return=a.return,q=_;break e}q=a.return}}var p=r.current;for(q=p;q!==null;){o=q;var z=o.child;if(o.subtreeFlags&2064&&z!==null)z.return=o,q=z;else e:for(o=p;q!==null;){if(s=q,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:v4(9,s)}}catch(A){ct(s,s.return,A)}if(s===o){q=null;break e}var M=s.sibling;if(M!==null){M.return=s.return,q=M;break e}q=s.return}}if(He=n,In(),oi&&typeof oi.onPostCommitFiberRoot=="function")try{oi.onPostCommitFiberRoot(a4,r)}catch{}i=!0}return i}finally{Oe=t,pr.transition=e}}return!1}function J8(r,e,t){e=Z2(t,e),e=Eg(r,e,1),r=xn(r,e,1),e=z1(),r!==null&&(Jc(r,1,e),N1(r,e))}function ct(r,e,t){if(r.tag===3)J8(r,r,t);else for(;e!==null;){if(e.tag===3){J8(e,r,t);break}else if(e.tag===1){var i=e.stateNode;if(typeof e.type.getDerivedStateFromError=="function"||typeof i.componentDidCatch=="function"&&(Mn===null||!Mn.has(i))){r=Z2(t,r),r=Pg(e,r,1),e=xn(e,r,1),r=z1(),e!==null&&(Jc(e,1,r),N1(e,r));break}}e=e.return}}function Zx(r,e,t){var i=r.pingCache;i!==null&&i.delete(e),e=z1(),r.pingedLanes|=r.suspendedLanes&t,Ot===r&&(Yt&t)===t&&(Vt===4||Vt===3&&(Yt&130023424)===Yt&&500>vt()-Nv?za(r,0):Ov|=t),N1(r,e)}function Yg(r,e){e===0&&(r.mode&1?(e=$l,$l<<=1,!($l&130023424)&&($l=4194304)):e=1);var t=z1();r=Oi(r,e),r!==null&&(Jc(r,e,t),N1(r,t))}function eM(r){var e=r.memoizedState,t=0;e!==null&&(t=e.retryLane),Yg(r,t)}function tM(r,e){var t=0;switch(r.tag){case 13:var i=r.stateNode,n=r.memoizedState;n!==null&&(t=n.retryLane);break;case 19:i=r.stateNode;break;default:throw Error(D(314))}i!==null&&i.delete(e),Yg(r,t)}var Qg;Qg=function(r,e,t){if(r!==null)if(r.memoizedProps!==e.pendingProps||R1.current)D1=!0;else{if(!(r.lanes&t)&&!(e.flags&128))return D1=!1,Fx(r,e,t);D1=!!(r.flags&131072)}else D1=!1,et&&e.flags&1048576&&Z7(e,t0,e.index);switch(e.lanes=0,e.tag){case 2:var i=e.type;gh(r,e),r=e.pendingProps;var n=Y2(e,u1.current);S2(e,t),n=$v(null,e,i,r,n,t);var a=Dv();return e.flags|=1,typeof n=="object"&&n!==null&&typeof n.render=="function"&&n.$$typeof===void 0?(e.tag=1,e.memoizedState=null,e.updateQueue=null,O1(i)?(a=!0,Zh(e)):a=!1,e.memoizedState=n.state!==null&&n.state!==void 0?n.state:null,Ev(e),n.updater=d4,e.stateNode=n,n._reactInternals=e,w3(e,i,r,t),e=M3(null,e,i,!0,a,t)):(e.tag=0,et&&a&&wv(e),f1(null,e,n,t),e=e.child),e;case 16:i=e.elementType;e:{switch(gh(r,e),r=e.pendingProps,n=i._init,i=n(i._payload),e.type=i,n=e.tag=iM(i),r=Ar(i,r),n){case 0:e=x3(null,e,i,r,t);break e;case 1:e=F8(null,e,i,r,t);break e;case 11:e=N8(null,e,i,r,t);break e;case 14:e=U8(null,e,i,Ar(i.type,r),t);break e}throw Error(D(306,i,""))}return e;case 0:return i=e.type,n=e.pendingProps,n=e.elementType===i?n:Ar(i,n),x3(r,e,i,n,t);case 1:return i=e.type,n=e.pendingProps,n=e.elementType===i?n:Ar(i,n),F8(r,e,i,n,t);case 3:e:{if($g(e),r===null)throw Error(D(387));i=e.pendingProps,a=e.memoizedState,n=a.element,ig(r,e),n0(e,i,null,t);var o=e.memoizedState;if(i=o.element,a.isDehydrated)if(a={element:i,isDehydrated:!1,cache:o.cache,pendingSuspenseBoundaries:o.pendingSuspenseBoundaries,transitions:o.transitions},e.updateQueue.baseState=a,e.memoizedState=a,e.flags&256){n=Z2(Error(D(423)),e),e=B8(r,e,i,t,n);break e}else if(i!==n){n=Z2(Error(D(424)),e),e=B8(r,e,i,t,n);break e}else for(W1=bn(e.stateNode.containerInfo.firstChild),Q1=e,et=!0,Sr=null,t=sg(e,null,i,t),e.child=t;t;)t.flags=t.flags&-3|4096,t=t.sibling;else{if(Q2(),i===n){e=Ni(r,e,t);break e}f1(r,e,i,t)}e=e.child}return e;case 5:return cg(e),r===null&&_3(e),i=e.type,n=e.pendingProps,a=r!==null?r.memoizedProps:null,o=n.children,v3(i,n)?o=null:a!==null&&v3(i,a)&&(e.flags|=32),Sg(r,e),f1(r,e,o,t),e.child;case 6:return r===null&&_3(e),null;case 13:return Dg(r,e,t);case 4:return Pv(e,e.stateNode.containerInfo),i=e.pendingProps,r===null?e.child=X2(e,null,i,t):f1(r,e,i,t),e.child;case 11:return i=e.type,n=e.pendingProps,n=e.elementType===i?n:Ar(i,n),N8(r,e,i,n,t);case 7:return f1(r,e,e.pendingProps,t),e.child;case 8:return f1(r,e,e.pendingProps.children,t),e.child;case 12:return f1(r,e,e.pendingProps.children,t),e.child;case 10:e:{if(i=e.type._context,n=e.pendingProps,a=e.memoizedProps,o=n.value,Ge(r0,i._currentValue),i._currentValue=o,a!==null)if(Or(a.value,o)){if(a.children===n.children&&!R1.current){e=Ni(r,e,t);break e}}else for(a=e.child,a!==null&&(a.return=e);a!==null;){var s=a.dependencies;if(s!==null){o=a.child;for(var c=s.firstContext;c!==null;){if(c.context===i){if(a.tag===1){c=$i(-1,t&-t),c.tag=2;var l=a.updateQueue;if(l!==null){l=l.shared;var h=l.pending;h===null?c.next=c:(c.next=h.next,h.next=c),l.pending=c}}a.lanes|=t,c=a.alternate,c!==null&&(c.lanes|=t),z3(a.return,t,e),s.lanes|=t;break}c=c.next}}else if(a.tag===10)o=a.type===e.type?null:a.child;else if(a.tag===18){if(o=a.return,o===null)throw Error(D(341));o.lanes|=t,s=o.alternate,s!==null&&(s.lanes|=t),z3(o,t,e),o=a.sibling}else o=a.child;if(o!==null)o.return=a;else for(o=a;o!==null;){if(o===e){o=null;break}if(a=o.sibling,a!==null){a.return=o.return,o=a;break}o=o.return}a=o}f1(r,e,n.children,t),e=e.child}return e;case 9:return n=e.type,i=e.pendingProps.children,S2(e,t),n=zr(n),i=i(n),e.flags|=1,f1(r,e,i,t),e.child;case 14:return i=e.type,n=Ar(i,e.pendingProps),n=Ar(i.type,n),U8(r,e,i,n,t);case 15:return Ag(r,e,e.type,e.pendingProps,t);case 17:return i=e.type,n=e.pendingProps,n=e.elementType===i?n:Ar(i,n),gh(r,e),e.tag=1,O1(i)?(r=!0,Zh(e)):r=!1,S2(e,t),ag(e,i,n),w3(e,i,n,t),M3(null,e,i,!0,r,t);case 19:return Lg(r,e,t);case 22:return Vg(r,e,t)}throw Error(D(156,e.tag))};function Xg(r,e){return x7(r,e)}function rM(r,e,t,i){this.tag=r,this.key=t,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=e,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=i,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function mr(r,e,t,i){return new rM(r,e,t,i)}function jv(r){return r=r.prototype,!(!r||!r.isReactComponent)}function iM(r){if(typeof r=="function")return jv(r)?1:0;if(r!=null){if(r=r.$$typeof,r===lv)return 11;if(r===hv)return 14}return 2}function Hn(r,e){var t=r.alternate;return t===null?(t=mr(r.tag,e,r.key,r.mode),t.elementType=r.elementType,t.type=r.type,t.stateNode=r.stateNode,t.alternate=r,r.alternate=t):(t.pendingProps=e,t.type=r.type,t.flags=0,t.subtreeFlags=0,t.deletions=null),t.flags=r.flags&14680064,t.childLanes=r.childLanes,t.lanes=r.lanes,t.child=r.child,t.memoizedProps=r.memoizedProps,t.memoizedState=r.memoizedState,t.updateQueue=r.updateQueue,e=r.dependencies,t.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext},t.sibling=r.sibling,t.index=r.index,t.ref=r.ref,t}function yh(r,e,t,i,n,a){var o=2;if(i=r,typeof r=="function")jv(r)&&(o=1);else if(typeof r=="string")o=5;else e:switch(r){case l2:return ya(t.children,n,a,e);case cv:o=8,n|=8;break;case q5:return r=mr(12,t,e,n|2),r.elementType=q5,r.lanes=a,r;case G5:return r=mr(13,t,e,n),r.elementType=G5,r.lanes=a,r;case K5:return r=mr(19,t,e,n),r.elementType=K5,r.lanes=a,r;case o7:return f4(t,n,a,e);default:if(typeof r=="object"&&r!==null)switch(r.$$typeof){case n7:o=10;break e;case a7:o=9;break e;case lv:o=11;break e;case hv:o=14;break e;case rn:o=16,i=null;break e}throw Error(D(130,r==null?r:typeof r,""))}return e=mr(o,t,e,n),e.elementType=r,e.type=i,e.lanes=a,e}function ya(r,e,t,i){return r=mr(7,r,i,e),r.lanes=t,r}function f4(r,e,t,i){return r=mr(22,r,i,e),r.elementType=o7,r.lanes=t,r.stateNode={isHidden:!1},r}function xd(r,e,t){return r=mr(6,r,null,e),r.lanes=t,r}function Md(r,e,t){return e=mr(4,r.children!==null?r.children:[],r.key,e),e.lanes=t,e.stateNode={containerInfo:r.containerInfo,pendingChildren:null,implementation:r.implementation},e}function nM(r,e,t,i,n){this.tag=e,this.containerInfo=r,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=nd(0),this.expirationTimes=nd(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=nd(0),this.identifierPrefix=i,this.onRecoverableError=n,this.mutableSourceEagerHydrationData=null}function qv(r,e,t,i,n,a,o,s,c){return r=new nM(r,e,t,s,c),e===1?(e=1,a===!0&&(e|=8)):e=0,a=mr(3,null,null,e),r.current=a,a.stateNode=r,a.memoizedState={element:i,isDehydrated:t,cache:null,transitions:null,pendingSuspenseBoundaries:null},Ev(a),r}function aM(r,e,t){var i=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:c2,key:i==null?null:""+i,children:r,containerInfo:e,implementation:t}}function Jg(r){if(!r)return An;r=r._reactInternals;e:{if(Ia(r)!==r||r.tag!==1)throw Error(D(170));var e=r;do{switch(e.tag){case 3:e=e.stateNode.context;break e;case 1:if(O1(e.type)){e=e.stateNode.__reactInternalMemoizedMergedChildContext;break e}}e=e.return}while(e!==null);throw Error(D(171))}if(r.tag===1){var t=r.type;if(O1(t))return X7(r,t,e)}return e}function Zg(r,e,t,i,n,a,o,s,c){return r=qv(t,i,!0,r,n,a,o,s,c),r.context=Jg(null),t=r.current,i=z1(),n=Cn(t),a=$i(i,n),a.callback=e??null,xn(t,a,n),r.current.lanes=n,Jc(r,n,i),N1(r,i),r}function p4(r,e,t,i){var n=e.current,a=z1(),o=Cn(n);return t=Jg(t),e.context===null?e.context=t:e.pendingContext=t,e=$i(a,o),e.payload={element:r},i=i===void 0?null:i,i!==null&&(e.callback=i),r=xn(n,e,o),r!==null&&(Rr(r,n,o,a),mh(r,n,o)),o}function u0(r){if(r=r.current,!r.child)return null;switch(r.child.tag){case 5:return r.child.stateNode;default:return r.child.stateNode}}function Z8(r,e){if(r=r.memoizedState,r!==null&&r.dehydrated!==null){var t=r.retryLane;r.retryLane=t!==0&&t<e?t:e}}function Gv(r,e){Z8(r,e),(r=r.alternate)&&Z8(r,e)}function oM(){return null}var e_=typeof reportError=="function"?reportError:function(r){console.error(r)};function Kv(r){this._internalRoot=r}g4.prototype.render=Kv.prototype.render=function(r){var e=this._internalRoot;if(e===null)throw Error(D(409));p4(r,e,null,null)};g4.prototype.unmount=Kv.prototype.unmount=function(){var r=this._internalRoot;if(r!==null){this._internalRoot=null;var e=r.containerInfo;Pa(function(){p4(null,r,null,null)}),e[Ri]=null}};function g4(r){this._internalRoot=r}g4.prototype.unstable_scheduleHydration=function(r){if(r){var e=A7();r={blockedOn:null,target:r,priority:e};for(var t=0;t<sn.length&&e!==0&&e<sn[t].priority;t++);sn.splice(t,0,r),t===0&&S7(r)}};function Wv(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11)}function _4(r){return!(!r||r.nodeType!==1&&r.nodeType!==9&&r.nodeType!==11&&(r.nodeType!==8||r.nodeValue!==" react-mount-point-unstable "))}function em(){}function sM(r,e,t,i,n){if(n){if(typeof i=="function"){var a=i;i=function(){var l=u0(o);a.call(l)}}var o=Zg(e,i,r,0,null,!1,!1,"",em);return r._reactRootContainer=o,r[Ri]=o.current,pc(r.nodeType===8?r.parentNode:r),Pa(),o}for(;n=r.lastChild;)r.removeChild(n);if(typeof i=="function"){var s=i;i=function(){var l=u0(c);s.call(l)}}var c=qv(r,0,!1,null,null,!1,!1,"",em);return r._reactRootContainer=c,r[Ri]=c.current,pc(r.nodeType===8?r.parentNode:r),Pa(function(){p4(e,c,t,i)}),c}function z4(r,e,t,i,n){var a=t._reactRootContainer;if(a){var o=a;if(typeof n=="function"){var s=n;n=function(){var c=u0(o);s.call(c)}}p4(e,o,r,n)}else o=sM(t,e,r,n,i);return u0(o)}E7=function(r){switch(r.tag){case 3:var e=r.stateNode;if(e.current.memoizedState.isDehydrated){var t=gs(e.pendingLanes);t!==0&&(vv(e,t|1),N1(e,vt()),!(He&6)&&(eo=vt()+500,In()))}break;case 13:Pa(function(){var i=Oi(r,1);if(i!==null){var n=z1();Rr(i,r,1,n)}}),Gv(r,1)}};mv=function(r){if(r.tag===13){var e=Oi(r,134217728);if(e!==null){var t=z1();Rr(e,r,134217728,t)}Gv(r,134217728)}};P7=function(r){if(r.tag===13){var e=Cn(r),t=Oi(r,e);if(t!==null){var i=z1();Rr(t,r,e,i)}Gv(r,e)}};A7=function(){return Oe};V7=function(r,e){var t=Oe;try{return Oe=r,e()}finally{Oe=t}};i3=function(r,e,t){switch(e){case"input":if(Q5(r,t),e=t.name,t.type==="radio"&&e!=null){for(t=r;t.parentNode;)t=t.parentNode;for(t=t.querySelectorAll("input[name="+JSON.stringify(""+e)+'][type="radio"]'),e=0;e<t.length;e++){var i=t[e];if(i!==r&&i.form===r.form){var n=l4(i);if(!n)throw Error(D(90));c7(i),Q5(i,n)}}}break;case"textarea":h7(r,t);break;case"select":e=t.value,e!=null&&E2(r,!!t.multiple,e,!1)}};g7=Uv;_7=Pa;var cM={usingClientEntryPoint:!1,Events:[el,v2,l4,f7,p7,Uv]},ts={findFiberByHostInstance:ma,bundleType:0,version:"18.2.0",rendererPackageName:"react-dom"},lM={bundleType:ts.bundleType,version:ts.version,rendererPackageName:ts.rendererPackageName,rendererConfig:ts.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ji.ReactCurrentDispatcher,findHostInstanceByFiber:function(r){return r=w7(r),r===null?null:r.stateNode},findFiberByHostInstance:ts.findFiberByHostInstance||oM,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 jl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!jl.isDisabled&&jl.supportsFiber)try{a4=jl.inject(lM),oi=jl}catch{}}rr.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=cM;rr.createPortal=function(r,e){var t=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Wv(e))throw Error(D(200));return aM(r,e,null,t)};rr.createRoot=function(r,e){if(!Wv(r))throw Error(D(299));var t=!1,i="",n=e_;return e!=null&&(e.unstable_strictMode===!0&&(t=!0),e.identifierPrefix!==void 0&&(i=e.identifierPrefix),e.onRecoverableError!==void 0&&(n=e.onRecoverableError)),e=qv(r,1,!1,null,null,t,!1,i,n),r[Ri]=e.current,pc(r.nodeType===8?r.parentNode:r),new Kv(e)};rr.findDOMNode=function(r){if(r==null)return null;if(r.nodeType===1)return r;var e=r._reactInternals;if(e===void 0)throw typeof r.render=="function"?Error(D(188)):(r=Object.keys(r).join(","),Error(D(268,r)));return r=w7(e),r=r===null?null:r.stateNode,r};rr.flushSync=function(r){return Pa(r)};rr.hydrate=function(r,e,t){if(!_4(e))throw Error(D(200));return z4(null,r,e,!0,t)};rr.hydrateRoot=function(r,e,t){if(!Wv(r))throw Error(D(405));var i=t!=null&&t.hydratedSources||null,n=!1,a="",o=e_;if(t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(a=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),e=Zg(e,null,r,1,t??null,n,!1,a,o),r[Ri]=e.current,pc(r),i)for(r=0;r<i.length;r++)t=i[r],n=t._getVersion,n=n(t._source),e.mutableSourceEagerHydrationData==null?e.mutableSourceEagerHydrationData=[t,n]:e.mutableSourceEagerHydrationData.push(t,n);return new g4(e)};rr.render=function(r,e,t){if(!_4(e))throw Error(D(200));return z4(null,r,e,!1,t)};rr.unmountComponentAtNode=function(r){if(!_4(r))throw Error(D(40));return r._reactRootContainer?(Pa(function(){z4(null,null,r,!1,function(){r._reactRootContainer=null,r[Ri]=null})}),!0):!1};rr.unstable_batchedUpdates=Uv;rr.unstable_renderSubtreeIntoContainer=function(r,e,t,i){if(!_4(t))throw Error(D(200));if(r==null||r._reactInternals===void 0)throw Error(D(38));return z4(r,e,t,!1,i)};rr.version="18.2.0-next-9e3b772b8-20220608";(function(r){function e(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}e(),r.exports=rr})(ob);var tm=F5;U5.createRoot=tm.createRoot,U5.hydrateRoot=tm.hydrateRoot;let hM=class{constructor(e){this.domain=e,this.level=1}_createMessage(e){return[`%c FUSION FRAMEWORK %c ${this.domain} %c %s`,"background: rgb(179, 13, 47); color: white; padding: 1px;","background: rgb(244, 244, 244); color: rgb(36, 55, 70); padding: 1px;","background: none; color: inherit",...e.reduce((t,i)=>[...t,i,`
|
|
41
|
+
`],[])]}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 t_ extends hM{formatModuleName(e){return`📦\x1B[1;32m${(typeof e=="string"?e:e.name).replace(/([A-Z])/g," $1").toUpperCase()}\x1B[0m`}}var T3=function(r,e){return T3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},T3(r,e)};function v1(r,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");T3(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var wt=function(){return wt=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},wt.apply(this,arguments)};function r_(r,e){var t={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(r);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(r,i[n])&&(t[i[n]]=r[i[n]]);return t}function g(r,e,t,i){var n=arguments.length,a=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,t):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")a=Reflect.decorate(r,e,t,i);else for(var s=r.length-1;s>=0;s--)(o=r[s])&&(a=(n<3?o(a):n>3?o(e,t,a):o(e,t))||a);return n>3&&a&&Object.defineProperty(e,t,a),a}function y4(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})}function i_(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(h){return c([l,h])}}function c(l){if(i)throw new TypeError("Generator is already executing.");for(;o&&(o=0,l[0]&&(t=0)),t;)try{if(i=1,n&&(a=l[0]&2?n.return:l[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,l[1])).done)return a;switch(n=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,n=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(r,t)}catch(h){l=[6,h],n=0}finally{i=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function _1(r){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&r[e],i=0;if(t)return t.call(r);if(r&&typeof r.length=="number")return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}function hi(r,e){var t=typeof Symbol=="function"&&r[Symbol.iterator];if(!t)return r;var i=t.call(r),n,a=[],o;try{for(;(e===void 0||e-- >0)&&!(n=i.next()).done;)a.push(n.value)}catch(s){o={error:s}}finally{try{n&&!n.done&&(t=i.return)&&t.call(i)}finally{if(o)throw o.error}}return a}function Ui(r,e,t){if(t||arguments.length===2)for(var i=0,n=e.length,a;i<n;i++)(a||!(i in e))&&(a||(a=Array.prototype.slice.call(e,0,i)),a[i]=e[i]);return r.concat(a||Array.prototype.slice.call(e))}function D2(r){return this instanceof D2?(this.v=r,this):new D2(r)}function dM(r,e,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i=t.apply(r,e||[]),n,a=[];return n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n;function o(u){i[u]&&(n[u]=function(v){return new Promise(function(m,f){a.push([u,v,m,f])>1||s(u,v)})})}function s(u,v){try{c(i[u](v))}catch(m){d(a[0][3],m)}}function c(u){u.value instanceof D2?Promise.resolve(u.value.v).then(l,h):d(a[0][2],u)}function l(u){s("next",u)}function h(u){s("throw",u)}function d(u,v){u(v),a.shift(),a.length&&s(a[0][0],a[0][1])}}function uM(r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e=r[Symbol.asyncIterator],t;return e?e.call(r):(r=typeof _1=="function"?_1(r):r[Symbol.iterator](),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(a){t[a]=r[a]&&function(o){return new Promise(function(s,c){o=r[a](o),n(s,c,o.done,o.value)})}}function n(a,o,s,c){Promise.resolve(c).then(function(l){a({value:l,done:s})},o)}}function _e(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)}function t2(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t}function De(r){return typeof r=="function"}function w4(r){var e=function(i){Error.call(i),i.stack=new Error().stack},t=r(e);return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}var Cd=w4(function(r){return function(t){r(this),this.message=t?t.length+` errors occurred during unsubscription:
|
|
42
42
|
`+t.map(function(i,n){return n+1+") "+i.toString()}).join(`
|
|
43
|
-
`):"",this.name="UnsubscriptionError",this.errors=t}});function v0(r,e){if(r){var t=r.indexOf(e);0<=t&&r.splice(t,1)}}var U1=function(){function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var e,t,i,n,a;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=_1(o),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(f){e={error:f}}finally{try{c&&!c.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);var h=this.initialTeardown;if(De(h))try{h()}catch(f){a=f instanceof Cd?f.errors:[f]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var u=_1(d),v=u.next();!v.done;v=u.next()){var m=v.value;try{rm(m)}catch(f){a=a??[],f instanceof Cd?a=Ni(Ni([],hi(a)),hi(f.errors)):a.push(f)}}}catch(f){i={error:f}}finally{try{v&&!v.done&&(n=u.return)&&n.call(u)}finally{if(i)throw i.error}}}if(a)throw new Cd(a)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)rm(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&v0(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&v0(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=function(){var e=new r;return e.closed=!0,e}(),r}(),n_=U1.EMPTY;function a_(r){return r instanceof U1||r&&"closed"in r&&De(r.remove)&&De(r.add)&&De(r.unsubscribe)}function rm(r){De(r)?r():r.unsubscribe()}var o_={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},I3={setTimeout:function(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];var n=I3.delegate;return n!=null&&n.setTimeout?n.setTimeout.apply(n,Ni([r,e],hi(t))):setTimeout.apply(void 0,Ni([r,e],hi(t)))},clearTimeout:function(r){var e=I3.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(r)},delegate:void 0};function s_(r){I3.setTimeout(function(){throw r})}function m0(){}function wh(r){r()}var Yv=function(r){v1(e,r);function e(t){var i=r.call(this)||this;return i.isStopped=!1,t?(i.destination=t,a_(t)&&t.add(i)):i.destination=pM,i}return e.create=function(t,i,n){return new f0(t,i,n)},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,r.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}(U1),vM=Function.prototype.bind;function Hd(r,e){return vM.call(r,e)}var mM=function(){function r(e){this.partialObserver=e}return r.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(i){ql(i)}},r.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(i){ql(i)}else ql(e)},r.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){ql(t)}},r}(),f0=function(r){v1(e,r);function e(t,i,n){var a=r.call(this)||this,o;if(De(t)||!t)o={next:t??void 0,error:i??void 0,complete:n??void 0};else{var s;a&&o_.useDeprecatedNextContext?(s=Object.create(t),s.unsubscribe=function(){return a.unsubscribe()},o={next:t.next&&Hd(t.next,s),error:t.error&&Hd(t.error,s),complete:t.complete&&Hd(t.complete,s)}):o=t}return a.destination=new mM(o),a}return e}(Yv);function ql(r){s_(r)}function fM(r){throw r}var pM={closed:!0,next:m0,error:fM,complete:m0},Qv=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function In(r){return r}function gM(r){return r.length===0?In:r.length===1?r[0]:function(t){return r.reduce(function(i,n){return n(i)},t)}}var Ee=function(){function r(e){e&&(this._subscribe=e)}return r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,i){var n=this,a=zM(e)?e:new f0(e,t,i);return wh(function(){var o=n,s=o.operator,c=o.source;a.add(s?s.call(a,c):c?n._subscribe(a):n._trySubscribe(a))}),a},r.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},r.prototype.forEach=function(e,t){var i=this;return t=im(t),new t(function(n,a){var o=new f0({next:function(s){try{e(s)}catch(c){a(c),o.unsubscribe()}},error:a,complete:n});i.subscribe(o)})},r.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},r.prototype[Qv]=function(){return this},r.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return gM(e)(this)},r.prototype.toPromise=function(e){var t=this;return e=im(e),new e(function(i,n){var a;t.subscribe(function(o){return a=o},function(o){return n(o)},function(){return i(a)})})},r.create=function(e){return new r(e)},r}();function im(r){var e;return(e=r??o_.Promise)!==null&&e!==void 0?e:Promise}function _M(r){return r&&De(r.next)&&De(r.error)&&De(r.complete)}function zM(r){return r&&r instanceof Yv||_M(r)&&a_(r)}function yM(r){return De(r==null?void 0:r.lift)}function $t(r){return function(e){if(yM(e))return e.lift(function(t){try{return r(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function ht(r,e,t,i,n){return new wM(r,e,t,i,n)}var wM=function(r){v1(e,r);function e(t,i,n,a,o,s){var c=r.call(this,t)||this;return c.onFinalize=o,c.shouldUnsubscribe=s,c._next=i?function(l){try{i(l)}catch(h){t.error(h)}}:r.prototype._next,c._error=a?function(l){try{a(l)}catch(h){t.error(h)}finally{this.unsubscribe()}}:r.prototype._error,c._complete=n?function(){try{n()}catch(l){t.error(l)}finally{this.unsubscribe()}}:r.prototype._complete,c}return e.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;r.prototype.unsubscribe.call(this),!i&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},e}(Yv),bM=w4(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),$i=function(r){v1(e,r);function e(){var t=r.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 i=new nm(this,this);return i.operator=t,i},e.prototype._throwIfClosed=function(){if(this.closed)throw new bM},e.prototype.next=function(t){var i=this;wh(function(){var n,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=_1(i.currentObservers),s=o.next();!s.done;s=o.next()){var c=s.value;c.next(t)}}catch(l){n={error:l}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(n)throw n.error}}}})},e.prototype.error=function(t){var i=this;wh(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var n=i.observers;n.length;)n.shift().error(t)}})},e.prototype.complete=function(){var t=this;wh(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var i=t.observers;i.length;)i.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(),r.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 i=this,n=this,a=n.hasError,o=n.isStopped,s=n.observers;return a||o?n_:(this.currentObservers=null,s.push(t),new U1(function(){i.currentObservers=null,v0(s,t)}))},e.prototype._checkFinalizedStatuses=function(t){var i=this,n=i.hasError,a=i.thrownError,o=i.isStopped;n?t.error(a):o&&t.complete()},e.prototype.asObservable=function(){var t=new Ee;return t.source=this,t},e.create=function(t,i){return new nm(t,i)},e}(Ee),nm=function(r){v1(e,r);function e(t,i){var n=r.call(this)||this;return n.destination=t,n.source=i,n}return e.prototype.next=function(t){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,t)},e.prototype.error=function(t){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,t)},e.prototype.complete=function(){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||i===void 0||i.call(t)},e.prototype._subscribe=function(t){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(t))!==null&&n!==void 0?n:n_},e}($i),Do=function(r){v1(e,r);function e(t){var i=r.call(this)||this;return i._value=t,i}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(t){var i=r.prototype._subscribe.call(this,t);return!i.closed&&t.next(this._value),i},e.prototype.getValue=function(){var t=this,i=t.hasError,n=t.thrownError,a=t._value;if(i)throw n;return this._throwIfClosed(),a},e.prototype.next=function(t){r.prototype.next.call(this,this._value=t)},e}($i),Xv={now:function(){return(Xv.delegate||Date).now()},delegate:void 0},c_=function(r){v1(e,r);function e(t,i,n){t===void 0&&(t=1/0),i===void 0&&(i=1/0),n===void 0&&(n=Xv);var a=r.call(this)||this;return a._bufferSize=t,a._windowTime=i,a._timestampProvider=n,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=i===1/0,a._bufferSize=Math.max(1,t),a._windowTime=Math.max(1,i),a}return e.prototype.next=function(t){var i=this,n=i.isStopped,a=i._buffer,o=i._infiniteTimeWindow,s=i._timestampProvider,c=i._windowTime;n||(a.push(t),!o&&a.push(s.now()+c)),this._trimBuffer(),r.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(t),n=this,a=n._infiniteTimeWindow,o=n._buffer,s=o.slice(),c=0;c<s.length&&!t.closed;c+=a?1:2)t.next(s[c]);return this._checkFinalizedStatuses(t),i},e.prototype._trimBuffer=function(){var t=this,i=t._bufferSize,n=t._timestampProvider,a=t._buffer,o=t._infiniteTimeWindow,s=(o?1:2)*i;if(i<1/0&&s<a.length&&a.splice(0,a.length-s),!o){for(var c=n.now(),l=0,h=1;h<a.length&&a[h]<=c;h+=2)l=h;l&&a.splice(0,l+1)}},e}($i),xM=function(r){v1(e,r);function e(t,i){return r.call(this)||this}return e.prototype.schedule=function(t,i){return this},e}(U1),p0={setInterval:function(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];var n=p0.delegate;return n!=null&&n.setInterval?n.setInterval.apply(n,Ni([r,e],hi(t))):setInterval.apply(void 0,Ni([r,e],hi(t)))},clearInterval:function(r){var e=p0.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(r)},delegate:void 0},MM=function(r){v1(e,r);function e(t,i){var n=r.call(this,t,i)||this;return n.scheduler=t,n.work=i,n.pending=!1,n}return e.prototype.schedule=function(t,i){var n;if(i===void 0&&(i=0),this.closed)return this;this.state=t;var a=this.id,o=this.scheduler;return a!=null&&(this.id=this.recycleAsyncId(o,a,i)),this.pending=!0,this.delay=i,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,i),this},e.prototype.requestAsyncId=function(t,i,n){return n===void 0&&(n=0),p0.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,i,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return i;i!=null&&p0.clearInterval(i)},e.prototype.execute=function(t,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,i);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,i){var n=!1,a;try{this.work(t)}catch(o){n=!0,a=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),a},e.prototype.unsubscribe=function(){if(!this.closed){var t=this,i=t.id,n=t.scheduler,a=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,v0(a,this),i!=null&&(this.id=this.recycleAsyncId(n,i,null)),this.delay=null,r.prototype.unsubscribe.call(this)}},e}(xM),am=function(){function r(e,t){t===void 0&&(t=r.now),this.schedulerActionCtor=e,this.now=t}return r.prototype.schedule=function(e,t,i){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(i,t)},r.now=Xv.now,r}(),CM=function(r){v1(e,r);function e(t,i){i===void 0&&(i=am.now);var n=r.call(this,t,i)||this;return n.actions=[],n._active=!1,n}return e.prototype.flush=function(t){var i=this.actions;if(this._active){i.push(t);return}var n;this._active=!0;do if(n=t.execute(t.state,t.delay))break;while(t=i.shift());if(this._active=!1,n){for(;t=i.shift();)t.unsubscribe();throw n}},e}(am),g0=new CM(MM),HM=g0,Ui=new Ee(function(r){return r.complete()});function l_(r){return r&&De(r.schedule)}function Jv(r){return r[r.length-1]}function h_(r){return De(Jv(r))?r.pop():void 0}function Zv(r){return l_(Jv(r))?r.pop():void 0}function kM(r,e){return typeof Jv(r)=="number"?r.pop():e}var e6=function(r){return r&&typeof r.length=="number"&&typeof r!="function"};function d_(r){return De(r==null?void 0:r.then)}function u_(r){return De(r[Qv])}function v_(r){return Symbol.asyncIterator&&De(r==null?void 0:r[Symbol.asyncIterator])}function m_(r){return new TypeError("You provided "+(r!==null&&typeof r=="object"?"an invalid object":"'"+r+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function EM(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var f_=EM();function p_(r){return De(r==null?void 0:r[f_])}function g_(r){return dM(this,arguments,function(){var t,i,n,a;return i_(this,function(o){switch(o.label){case 0:t=r.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,D2(t.read())];case 3:return i=o.sent(),n=i.value,a=i.done,a?[4,D2(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,D2(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function __(r){return De(r==null?void 0:r.getReader)}function nr(r){if(r instanceof Ee)return r;if(r!=null){if(u_(r))return PM(r);if(e6(r))return AM(r);if(d_(r))return VM(r);if(v_(r))return z_(r);if(p_(r))return SM(r);if(__(r))return $M(r)}throw m_(r)}function PM(r){return new Ee(function(e){var t=r[Qv]();if(De(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function AM(r){return new Ee(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()})}function VM(r){return new Ee(function(e){r.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,s_)})}function SM(r){return new Ee(function(e){var t,i;try{for(var n=_1(r),a=n.next();!a.done;a=n.next()){var o=a.value;if(e.next(o),e.closed)return}}catch(s){t={error:s}}finally{try{a&&!a.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}e.complete()})}function z_(r){return new Ee(function(e){DM(r,e).catch(function(t){return e.error(t)})})}function $M(r){return z_(g_(r))}function DM(r,e){var t,i,n,a;return y4(this,void 0,void 0,function(){var o,s;return i_(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),t=uM(r),c.label=1;case 1:return[4,t.next()];case 2:if(i=c.sent(),!!i.done)return[3,4];if(o=i.value,e.next(o),e.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=c.sent(),n={error:s},[3,11];case 6:return c.trys.push([6,,9,10]),i&&!i.done&&(a=t.return)?[4,a.call(t)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function ci(r,e,t,i,n){i===void 0&&(i=0),n===void 0&&(n=!1);var a=e.schedule(function(){t(),n?r.add(this.schedule(null,i)):this.unsubscribe()},i);if(r.add(a),!n)return a}function _0(r,e){return e===void 0&&(e=0),$t(function(t,i){t.subscribe(ht(i,function(n){return ci(i,r,function(){return i.next(n)},e)},function(){return ci(i,r,function(){return i.complete()},e)},function(n){return ci(i,r,function(){return i.error(n)},e)}))})}function y_(r,e){return e===void 0&&(e=0),$t(function(t,i){i.add(r.schedule(function(){return t.subscribe(i)},e))})}function LM(r,e){return nr(r).pipe(y_(e),_0(e))}function TM(r,e){return nr(r).pipe(y_(e),_0(e))}function IM(r,e){return new Ee(function(t){var i=0;return e.schedule(function(){i===r.length?t.complete():(t.next(r[i++]),t.closed||this.schedule())})})}function RM(r,e){return new Ee(function(t){var i;return ci(t,e,function(){i=r[f_](),ci(t,e,function(){var n,a,o;try{n=i.next(),a=n.value,o=n.done}catch(s){t.error(s);return}o?t.complete():t.next(a)},0,!0)}),function(){return De(i==null?void 0:i.return)&&i.return()}})}function w_(r,e){if(!r)throw new Error("Iterable cannot be null");return new Ee(function(t){ci(t,e,function(){var i=r[Symbol.asyncIterator]();ci(t,e,function(){i.next().then(function(n){n.done?t.complete():t.next(n.value)})},0,!0)})})}function OM(r,e){return w_(g_(r),e)}function NM(r,e){if(r!=null){if(u_(r))return LM(r,e);if(e6(r))return IM(r,e);if(d_(r))return TM(r,e);if(v_(r))return w_(r,e);if(p_(r))return RM(r,e);if(__(r))return OM(r,e)}throw m_(r)}function y1(r,e){return e?NM(r,e):nr(r)}function An(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=Zv(r);return y1(r,t)}function b_(r,e){var t=De(r)?r:function(){return r},i=function(n){return n.error(t())};return new Ee(e?function(n){return e.schedule(i,0,n)}:i)}var b4=w4(function(r){return function(){r(this),this.name="EmptyError",this.message="no elements in sequence"}});function V1(r,e){var t=typeof e=="object";return new Promise(function(i,n){var a=!1,o;r.subscribe({next:function(s){o=s,a=!0},error:n,complete:function(){a?i(o):t?i(e.defaultValue):n(new b4)}})})}function Lr(r,e){var t=typeof e=="object";return new Promise(function(i,n){var a=new f0({next:function(o){i(o),a.unsubscribe()},error:n,complete:function(){t?i(e.defaultValue):n(new b4)}});r.subscribe(a)})}function x_(r){return r instanceof Date&&!isNaN(r)}var UM=w4(function(r){return function(t){t===void 0&&(t=null),r(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function FM(r,e){var t=x_(r)?{first:r}:typeof r=="number"?{each:r}:r,i=t.first,n=t.each,a=t.with,o=a===void 0?BM:a,s=t.scheduler,c=s===void 0?e??g0:s,l=t.meta,h=l===void 0?null:l;if(i==null&&n==null)throw new TypeError("No timeout provided.");return $t(function(d,u){var v,m,f=null,C=0,_=function(p){m=ci(u,c,function(){try{v.unsubscribe(),nr(o({meta:h,lastValue:f,seen:C})).subscribe(u)}catch(z){u.error(z)}},p)};v=d.subscribe(ht(u,function(p){m==null||m.unsubscribe(),C++,u.next(f=p),n>0&&_(n)},void 0,void 0,function(){m!=null&&m.closed||m==null||m.unsubscribe(),f=null})),!C&&_(i!=null?typeof i=="number"?i:+i-c.now():n)})}function BM(r){throw new UM(r)}function $e(r,e){return $t(function(t,i){var n=0;t.subscribe(ht(i,function(a){i.next(r.call(e,a,n++))}))})}var jM=Array.isArray;function qM(r,e){return jM(e)?r.apply(void 0,Ni([],hi(e))):r(e)}function M_(r){return $e(function(e){return qM(r,e)})}var GM=Array.isArray,KM=Object.getPrototypeOf,WM=Object.prototype,YM=Object.keys;function QM(r){if(r.length===1){var e=r[0];if(GM(e))return{args:e,keys:null};if(XM(e)){var t=YM(e);return{args:t.map(function(i){return e[i]}),keys:t}}}return{args:r,keys:null}}function XM(r){return r&&typeof r=="object"&&KM(r)===WM}function JM(r,e){return r.reduce(function(t,i,n){return t[i]=e[n],t},{})}function ZM(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=Zv(r),i=h_(r),n=QM(r),a=n.args,o=n.keys;if(a.length===0)return y1([],t);var s=new Ee(eC(a,t,o?function(c){return JM(o,c)}:In));return i?s.pipe(M_(i)):s}function eC(r,e,t){return t===void 0&&(t=In),function(i){om(e,function(){for(var n=r.length,a=new Array(n),o=n,s=n,c=function(h){om(e,function(){var d=y1(r[h],e),u=!1;d.subscribe(ht(i,function(v){a[h]=v,u||(u=!0,s--),s||i.next(t(a.slice()))},function(){--o||i.complete()}))},i)},l=0;l<n;l++)c(l)},i)}}function om(r,e,t){r?ci(t,r,e):e()}function C_(r,e,t,i,n,a,o,s){var c=[],l=0,h=0,d=!1,u=function(){d&&!c.length&&!l&&e.complete()},v=function(f){return l<i?m(f):c.push(f)},m=function(f){a&&e.next(f),l++;var C=!1;nr(t(f,h++)).subscribe(ht(e,function(_){n==null||n(_),a?v(_):e.next(_)},function(){C=!0},void 0,function(){if(C)try{l--;for(var _=function(){var p=c.shift();o?ci(e,o,function(){return m(p)}):m(p)};c.length&&l<i;)_();u()}catch(p){e.error(p)}}))};return r.subscribe(ht(e,v,function(){d=!0,u()})),function(){s==null||s()}}function di(r,e,t){return t===void 0&&(t=1/0),De(e)?di(function(i,n){return $e(function(a,o){return e(i,a,n,o)})(nr(r(i,n)))},t):(typeof e=="number"&&(t=e),$t(function(i,n){return C_(i,n,r,t)}))}function tC(r){return r===void 0&&(r=1/0),di(In,r)}var rC=["addListener","removeListener"],iC=["addEventListener","removeEventListener"],nC=["on","off"];function R3(r,e,t,i){if(De(t)&&(i=t,t=void 0),i)return R3(r,e,t).pipe(M_(i));var n=hi(sC(r)?iC.map(function(s){return function(c){return r[s](e,c,t)}}):aC(r)?rC.map(sm(r,e)):oC(r)?nC.map(sm(r,e)):[],2),a=n[0],o=n[1];if(!a&&e6(r))return di(function(s){return R3(s,e,t)})(nr(r));if(!a)throw new TypeError("Invalid event target");return new Ee(function(s){var c=function(){for(var l=[],h=0;h<arguments.length;h++)l[h]=arguments[h];return s.next(1<l.length?l:l[0])};return a(c),function(){return o(c)}})}function sm(r,e){return function(t){return function(i){return r[t](e,i)}}}function aC(r){return De(r.addListener)&&De(r.removeListener)}function oC(r){return De(r.on)&&De(r.off)}function sC(r){return De(r.addEventListener)&&De(r.removeEventListener)}function cC(r,e,t){r===void 0&&(r=0),t===void 0&&(t=HM);var i=-1;return e!=null&&(l_(e)?t=e:i=e),new Ee(function(n){var a=x_(r)?+r-t.now():r;a<0&&(a=0);var o=0;return t.schedule(function(){n.closed||(n.next(o++),0<=i?this.schedule(void 0,i):n.complete())},a)})}function H_(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=Zv(r),i=kM(r,1/0),n=r;return n.length?n.length===1?nr(n[0]):tC(i)(y1(n,t)):Ui}function Xt(r,e){return $t(function(t,i){var n=0;t.subscribe(ht(i,function(a){return r.call(e,a,n++)&&i.next(a)}))})}function Z1(r){return $t(function(e,t){var i=null,n=!1,a;i=e.subscribe(ht(t,void 0,void 0,function(o){a=nr(r(o,Z1(r)(e))),i?(i.unsubscribe(),i=null,a.subscribe(t)):n=!0})),n&&(i.unsubscribe(),i=null,a.subscribe(t))})}function lC(r,e,t,i,n){return function(a,o){var s=t,c=e,l=0;a.subscribe(ht(o,function(h){var d=l++;c=s?r(c,h,d):(s=!0,h),i&&o.next(c)},n&&function(){s&&o.next(c),o.complete()}))}}function hC(r,e){return De(e)?di(r,e,1):di(r,1)}function dC(r){return $t(function(e,t){var i=!1;e.subscribe(ht(t,function(n){i=!0,t.next(n)},function(){i||t.next(r),t.complete()}))})}function k_(r,e){return e===void 0&&(e=In),r=r??uC,$t(function(t,i){var n,a=!0;t.subscribe(ht(i,function(o){var s=e(o);(a||!r(n,s))&&(a=!1,n=s,i.next(o))}))})}function uC(r,e){return r===e}function vC(r){return r===void 0&&(r=mC),$t(function(e,t){var i=!1;e.subscribe(ht(t,function(n){i=!0,t.next(n)},function(){return i?t.complete():t.error(r())}))})}function mC(){return new b4}function fC(r){return r<=0?function(){return Ui}:$t(function(e,t){var i=[];e.subscribe(ht(t,function(n){i.push(n),r<i.length&&i.shift()},function(){var n,a;try{for(var o=_1(i),s=o.next();!s.done;s=o.next()){var c=s.value;t.next(c)}}catch(l){n={error:l}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(n)throw n.error}}t.complete()},void 0,function(){i=null}))})}function t6(r,e){var t=arguments.length>=2;return function(i){return i.pipe(r?Xt(function(n,a){return r(n,a,i)}):In,fC(1),t?dC(e):vC(function(){return new b4}))}}function pC(r,e,t){return t===void 0&&(t=1/0),$t(function(i,n){var a=e;return C_(i,n,function(o,s){return r(a,o,s)},t,function(o){a=o},!1,void 0,function(){return a=null})})}function O3(){return $t(function(r,e){var t,i=!1;r.subscribe(ht(e,function(n){var a=t;t=n,i&&e.next([a,n]),i=!0}))})}function E_(r,e){return $t(lC(r,e,arguments.length>=2,!0))}function L1(r,e){return $t(function(t,i){var n=null,a=0,o=!1,s=function(){return o&&!n&&i.complete()};t.subscribe(ht(i,function(c){n==null||n.unsubscribe();var l=0,h=a++;nr(r(c,h)).subscribe(n=ht(i,function(d){return i.next(e?e(c,d,h,l++):d)},function(){n=null,s()}))},function(){o=!0,s()}))})}function gC(r){return $t(function(e,t){nr(r).subscribe(ht(t,function(){return t.complete()},m0)),!t.closed&&e.subscribe(t)})}function P_(r,e){return e===void 0&&(e=!1),$t(function(t,i){var n=0;t.subscribe(ht(i,function(a){var o=r(a,n++);(o||e)&&i.next(a),!o&&i.complete()}))})}function cm(r,e,t){var i=De(r)||e||t?{next:r,error:e,complete:t}:r;return i?$t(function(n,a){var o;(o=i.subscribe)===null||o===void 0||o.call(i);var s=!0;n.subscribe(ht(a,function(c){var l;(l=i.next)===null||l===void 0||l.call(i,c),a.next(c)},function(){var c;s=!1,(c=i.complete)===null||c===void 0||c.call(i),a.complete()},function(c){var l;s=!1,(l=i.error)===null||l===void 0||l.call(i,c),a.error(c)},function(){var c,l;s&&((c=i.unsubscribe)===null||c===void 0||c.call(i)),(l=i.finalize)===null||l===void 0||l.call(i)}))}):In}function A_(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=h_(r);return $t(function(i,n){for(var a=r.length,o=new Array(a),s=r.map(function(){return!1}),c=!1,l=function(d){nr(r[d]).subscribe(ht(n,function(u){o[d]=u,!c&&!s[d]&&(s[d]=!0,(c=s.every(In))&&(s=null))},m0))},h=0;h<a;h++)l(h);i.subscribe(ht(n,function(d){if(c){var u=Ni([d],hi(o));n.next(t?t.apply(void 0,Ni([],hi(u))):u)}}))})}var Kr=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};class _C extends Error{constructor(){super("It was too slow"),this.name="RequiredModuleTimeoutError"}}class zC{constructor(e){this.logger=new t_("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:i,afterInit:n,configure:a}=e;this._modules.add(t),a&&this._configs.push((o,s)=>a(o[t.name],s)),i&&this._afterConfiguration.push(o=>i(o[t.name])),n&&this._afterInit.push(o=>n(o[t.name]))}onConfigured(e){this._afterConfiguration.push(e)}onInitialized(e){this._afterInit.push(e)}initialize(e){return Kr(this,void 0,void 0,function*(){const t=yield this._configure(e),i=yield this._initialize(t,e);return yield this._postInitialize(i,e),Object.seal(Object.assign({},i,{dispose:()=>this.dispose(i)}))})}_configure(e){return Kr(this,void 0,void 0,function*(){const t=yield this._createConfig(e);return yield Promise.all(this._configs.map(i=>Promise.resolve(i(t,e)))),yield this._postConfigure(t),t})}_createConfig(e){const{modules:t,logger:i,_afterConfiguration:n,_afterInit:a}=this,o=y1(t).pipe(di(s=>Kr(this,void 0,void 0,function*(){var c;i.debug(`🛠 creating configurator ${i.formatModuleName(s)}`);try{const l=yield(c=s.configure)===null||c===void 0?void 0:c.call(s,e);return i.debug(`🛠 created configurator for ${i.formatModuleName(s)}`,l),{[s.name]:l}}catch(l){throw i.error(`🛠 Failed to created configurator for ${i.formatModuleName(s)}`,l),l}})),E_((s,c)=>Object.assign(s,c),{onAfterConfiguration(s){n.push(s)},onAfterInit(s){a.push(s)}}));return V1(o)}_postConfigure(e){return Kr(this,void 0,void 0,function*(){const{modules:t,logger:i,_afterConfiguration:n}=this;if(yield Promise.allSettled(t.filter(a=>!!a.postConfigure).map(a=>Kr(this,void 0,void 0,function*(){var o;try{yield(o=a.postConfigure)===null||o===void 0?void 0:o.call(a,e),i.debug(`🏗📌 post configured ${i.formatModuleName(a)}`,a)}catch{i.warn(`🏗📌 post configure failed ${i.formatModuleName(a)}`)}}))),n.length)try{i.debug(`🏗📌 post configure hooks [${n.length}]`),yield Promise.allSettled(n.map(a=>Promise.resolve(a(e)))),i.debug("🏗📌 post configure hooks complete")}catch(a){i.warn("🏗📌 post configure hook failed",a)}})}_initialize(e,t){return Kr(this,void 0,void 0,function*(){const{modules:i,logger:n}=this,a=i.map(h=>h.name),o=new Do({}),s=h=>a.includes(h),c=(h,d=60)=>{if(!a.includes(h))throw n.error(`🚀⌛️ Cannot not require ${n.formatModuleName(String(h))} since module is not defined!`),Error(`cannot not require [${String(h)}] since module is not defined!`);return o.value[h]?(n.debug(`🚀⌛️ ${n.formatModuleName(String(h))} is initiated, skipping queue`),Promise.resolve(o.value[h])):(n.debug(`🚀⌛️ Awaiting init ${n.formatModuleName(String(h))}, timeout ${d}s`),Lr(o.pipe(Xt(u=>!!u[h]),$e(u=>u[h]),FM({each:d*1e3,with:()=>b_(()=>new _C)}))))};y1(i).pipe(di(h=>{const d=h.name;return n.debug(`🚀 initializing ${n.formatModuleName(h)}`),y1(Promise.resolve(h.initialize({ref:t,config:e[d],requireInstance:c,hasModule:s}))).pipe($e(u=>(n.debug(`🚀 initialized ${n.formatModuleName(h)}`),[d,u])))})).subscribe({next:([h,d])=>{o.next(Object.assign(o.value,{[h]:d}))},complete:()=>o.complete()});const l=yield V1(o);return Object.seal(l),l})}_postInitialize(e,t){return Kr(this,void 0,void 0,function*(){const{modules:i,logger:n,_afterInit:a}=this;if(yield Promise.allSettled(i.filter(o=>!!o.postInitialize).map(o=>Kr(this,void 0,void 0,function*(){var s;try{n.debug(`🚀📌 post initializing moule ${n.formatModuleName(o)}`),yield(s=o.postInitialize)===null||s===void 0?void 0:s.call(o,{ref:t,modules:e,instance:e[o.name]}),n.debug(`🚀📌 post initialized moule ${n.formatModuleName(o)}`)}catch{n.warn(`🚀📌 post initialize failed moule ${n.formatModuleName(o)}`)}}))),a.length)try{n.debug(`🚀📌 post configure hooks [${a.length}]`),yield Promise.allSettled(a.map(o=>Promise.resolve(o(e)))),n.debug("🚀📌 post configure hooks complete")}catch(o){n.warn("🚀📌 post configure hook failed",o)}n.debug(`🎉 Modules initialized ${i.map(n.formatModuleName)}`,e),n.info("🟢 Modules initialized")})}dispose(e,t){return Kr(this,void 0,void 0,function*(){const{modules:i}=this;yield Promise.allSettled(i.filter(n=>!!n.dispose).map(n=>Kr(this,void 0,void 0,function*(){var a;yield(a=n.dispose)===null||a===void 0?void 0:a.call(n,{ref:t,modules:e,instance:e[n.name]})})))})}}globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__classPrivateFieldGet;var Ka=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},Bn=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},bh,xh,zs,Mh,ys,N3;class yC{constructor(e,t){this.__type=e,bh.set(this,void 0),xh.set(this,void 0),zs.set(this,!1),Mh.set(this,void 0),ys.set(this,void 0),N3.set(this,Date.now()),Ka(this,bh,t.detail,"f"),Ka(this,xh,t.source,"f"),Ka(this,Mh,!!t.cancelable,"f"),Ka(this,ys,t.canBubble===void 0?!0:t.canBubble,"f")}get bubbles(){return Bn(this,ys,"f")&&!Bn(this,zs,"f")}get created(){return Bn(this,N3,"f")}get cancelable(){return Bn(this,Mh,"f")}get canceled(){return Bn(this,zs,"f")}get detail(){return Bn(this,bh,"f")}get source(){return Bn(this,xh,"f")}get type(){return this.__type}preventDefault(){this.cancelable&&Ka(this,zs,!0,"f")}stopPropagation(){Ka(this,ys,!1,"f")}}bh=new WeakMap,xh=new WeakMap,zs=new WeakMap,Mh=new WeakMap,ys=new WeakMap,N3=new WeakMap;var wC=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};class bC{constructor({onDispatch:e,onBubble:t}){this.__onDispatch=e,this.__onBubble=t}dispatch(e,t){var i,n;return wC(this,void 0,void 0,function*(){try{yield(i=this.__onDispatch)===null||i===void 0?void 0:i.call(this,e)}catch(o){throw o}const a=e;if(!a.dispatcher)a.dispatcher=this;else if(a.dispatcher===this)throw Error("loop detected");for(const o of t)e.cancelable?e.canceled||(yield Promise.resolve(o(e))):o(e);if(e.bubbles)try{yield(n=this.__onBubble)===null||n===void 0?void 0:n.call(this,e)}catch(o){throw o}})}}var lm=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};class xC extends Ee{get closed(){return this.__event$.closed}constructor(e){super(t=>{this.__event$.subscribe(t)}),this.__listeners=[],this.__event$=new $i,this.__dispatcher=new bC({onDispatch:e.onDispatch,onBubble:e.onBubble})}addEventListener(e,t){if(this.closed)throw Error("Cannot listen to events when provider is closed!");const i={type:e,handler:t};return this.__listeners.push(i),()=>{const n=this.__listeners.indexOf(i);0<=n&&this.__listeners.splice(n,1)}}dispatchEvent(e,t){return lm(this,void 0,void 0,function*(){if(typeof e=="string"){if(!t)throw Error("invalid arguments, missing [FrameworkEventInit]");return this._dispatchEvent(new yC(e,t))}else return this._dispatchEvent(e)})}_dispatchEvent(e){return lm(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(i=>i.type===e.type).map(({handler:i})=>i);yield this.__dispatcher.dispatch(e,t)}catch(t){throw t}return e})}dispose(){this.__listeners=[],this.__event$.complete()}}var MC=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const CC="event",HC={name:CC,configure:r=>{const e={},t=r==null?void 0:r.event;return t&&(e.onBubble=i=>MC(void 0,void 0,void 0,function*(){yield t.dispatchEvent(i)})),e},initialize:({config:r})=>new xC(r),postInitialize({instance:r,modules:e}){r.dispatchEvent("onModulesLoaded",{detail:e,source:r})},dispose({instance:r}){r.dispose()}};class V_{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?y1(Object.values(this._operators)).pipe(pC((i,n)=>Promise.resolve(n(i)).then(a=>a??i),e,1),t6()):An(e)}}const kC=(r,e)=>t=>{const i=new Headers(t.headers);return i.append(r,e),Object.assign(Object.assign({},t),{headers:i})};class S_ extends V_{setHeader(e,t){const i=kC(e,t);return this.set("header-"+e,i)}}class EC extends V_{}class PC{get clients(){return Object.assign({},this._clients)}constructor(e){this._clients={},this.defaultHttpRequestHandler=new S_,this.defaultHttpClientCtor=e}hasClient(e){return Object.keys(this._clients).includes(e)}configureClient(e,t){const i=typeof t=="string"?a=>a.uri=String(t):t,n=typeof i=="function"?{onCreate:i}:i;return this._clients[e]=Object.assign(Object.assign({},this._clients[e]),n),this}}class AC extends Error{constructor(e){super(e)}}const VC=r=>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(r);class SC{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:i,defaultScopes:n=[],onCreate:a,ctor:o=this.config.defaultHttpClientCtor,requestHandler:s=this.defaultHttpRequestHandler}=t,c={requestHandler:s},l=new o(i||"",c);return Object.assign(l,{defaultScopes:n}),a&&a(l),l}createCustomClient(e){return this.createClient(e)}_resolveConfig(e){if(typeof e=="string"){const t=this.config.clients[e];if(!t&&VC(e))return{baseUri:e};if(!t)throw new AC(`No registered http client for key [${e}]`);return t}return e}}function $C(r,e){e===void 0&&(e={});var t=e.selector,i=r_(e,["selector"]);return new Ee(function(n){var a=new AbortController,o=a.signal,s=!0,c=i.signal;if(c)if(c.aborted)a.abort();else{var l=function(){o.aborted||a.abort()};c.addEventListener("abort",l),n.add(function(){return c.removeEventListener("abort",l)})}var h=wt(wt({},i),{signal:o}),d=function(u){s=!1,n.error(u)};return fetch(r,h).then(function(u){t?nr(t(u)).subscribe(ht(n,void 0,function(){s=!1,n.complete()},d)):(s=!1,n.next(u),n.complete())}).catch(d),function(){s&&a.abort()}})}const DC=r=>{if(!r.ok)throw new Error("network response was not OK");if(r.status===204)return Promise.resolve();try{return r.json()}catch{throw Error("failed to parse response")}};class U3 extends Error{constructor(e,t,i){super(e,i),this.message=e,this.response=t}}var hm=globalThis&&globalThis.__rest||function(r,e){var t={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(r);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(r,i[n])&&(t[i[n]]=r[i[n]]);return t};class LC{get request$(){return this._request$.asObservable()}get response$(){return this._response$.asObservable()}constructor(e,t){var i,n;this.uri=e,this._request$=new $i,this._response$=new $i,this._abort$=new $i,this.requestHandler=(i=t==null?void 0:t.requestHandler)!==null&&i!==void 0?i:new S_,this.responseHandler=(n=t==null?void 0:t.responseHandler)!==null&&n!==void 0?n:new EC,this._init()}_init(){}fetch$(e,t){return this._fetch$(e,t)}fetch(e,t){return Lr(this.fetch$(e,t))}fetchAsync(e,t){return this.fetch(e,t)}json$(e,t){var i;const n=typeof(t==null?void 0:t.body)=="object"?JSON.stringify(t==null?void 0:t.body):t==null?void 0:t.body,a=(i=t==null?void 0:t.selector)!==null&&i!==void 0?i:DC,o=new Headers(t==null?void 0:t.headers);return o.append("Content-Type","application/json"),this.fetch$(e,Object.assign(Object.assign({},t),{body:n,selector:a,headers:o}))}json(e,t){return Lr(this.json$(e,t))}jsonAsync(e,t){return this.json(e,t)}execute(e,t,i){return this[e](t,i)}abort(){this._abort$.next()}_fetch$(e,t){const i=t||{},{selector:n}=i,a=hm(i,["selector"]);return An(Object.assign(Object.assign({},a),{uri:this._resolveUrl(e)})).pipe(L1(s=>this._prepareRequest(s)),cm(s=>this._request$.next(s)),L1(s=>{var{uri:c,path:l}=s,h=hm(s,["uri","path"]);return $C(c,h)}),L1(s=>this._prepareResponse(s)),cm(s=>this._response$.next(s)),L1(s=>{if(n)try{return n(s)}catch(c){throw new U3("failed to execute response selector",s,{cause:c})}return An(s)}),gC(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 TC extends LC{constructor(){super(...arguments),this.defaultScopes=[]}fetch$(e,t){const i=Object.assign(t||{},{scopes:this.defaultScopes.concat((t==null?void 0:t.scopes)||[])});return super._fetch$(e,i)}}var dm=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const r6={name:"http",configure:()=>new PC(TC),initialize:({config:r,hasModule:e,requireInstance:t})=>dm(void 0,void 0,void 0,function*(){const i=new SC(r);if(e("auth")){const n=yield t("auth");i.defaultHttpRequestHandler.set("MSAL",a=>dm(void 0,void 0,void 0,function*(){const{scopes:o=[]}=a;if(o.length){const s=yield n.acquireToken({scopes:o});if(s){const c=new Headers(a.headers);return c.set("Authorization",`Bearer ${s.accessToken}`),Object.assign(Object.assign({},a),{headers:c})}}}))}return i})},IC=r=>({module:r6,configure:r}),$_=(r,e)=>({module:r6,configure:t=>{t.configureClient(r,e)}}),kd="default";class RC{constructor(){this._configs={},this.requiresAuth=!0}get defaultConfig(){return this._configs[kd]}getClientConfig(e){return this._configs[e]}configureClient(e,t){return this._configs[e]=t,this}configureDefault(e){if(this._configs[kd])throw Error("Default AuthClient already provided");this.configureClient(kd,e)}}/*! @azure/msal-browser v2.32.2 2023-01-10 *//*! *****************************************************************************
|
|
43
|
+
`):"",this.name="UnsubscriptionError",this.errors=t}});function v0(r,e){if(r){var t=r.indexOf(e);0<=t&&r.splice(t,1)}}var U1=function(){function r(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._finalizers=null}return r.prototype.unsubscribe=function(){var e,t,i,n,a;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var s=_1(o),c=s.next();!c.done;c=s.next()){var l=c.value;l.remove(this)}}catch(f){e={error:f}}finally{try{c&&!c.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}else o.remove(this);var h=this.initialTeardown;if(De(h))try{h()}catch(f){a=f instanceof Cd?f.errors:[f]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var u=_1(d),v=u.next();!v.done;v=u.next()){var m=v.value;try{rm(m)}catch(f){a=a??[],f instanceof Cd?a=Ui(Ui([],hi(a)),hi(f.errors)):a.push(f)}}}catch(f){i={error:f}}finally{try{v&&!v.done&&(n=u.return)&&n.call(u)}finally{if(i)throw i.error}}}if(a)throw new Cd(a)}},r.prototype.add=function(e){var t;if(e&&e!==this)if(this.closed)rm(e);else{if(e instanceof r){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._finalizers=(t=this._finalizers)!==null&&t!==void 0?t:[]).push(e)}},r.prototype._hasParent=function(e){var t=this._parentage;return t===e||Array.isArray(t)&&t.includes(e)},r.prototype._addParent=function(e){var t=this._parentage;this._parentage=Array.isArray(t)?(t.push(e),t):t?[t,e]:e},r.prototype._removeParent=function(e){var t=this._parentage;t===e?this._parentage=null:Array.isArray(t)&&v0(t,e)},r.prototype.remove=function(e){var t=this._finalizers;t&&v0(t,e),e instanceof r&&e._removeParent(this)},r.EMPTY=function(){var e=new r;return e.closed=!0,e}(),r}(),n_=U1.EMPTY;function a_(r){return r instanceof U1||r&&"closed"in r&&De(r.remove)&&De(r.add)&&De(r.unsubscribe)}function rm(r){De(r)?r():r.unsubscribe()}var o_={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},I3={setTimeout:function(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];var n=I3.delegate;return n!=null&&n.setTimeout?n.setTimeout.apply(n,Ui([r,e],hi(t))):setTimeout.apply(void 0,Ui([r,e],hi(t)))},clearTimeout:function(r){var e=I3.delegate;return((e==null?void 0:e.clearTimeout)||clearTimeout)(r)},delegate:void 0};function s_(r){I3.setTimeout(function(){throw r})}function m0(){}function wh(r){r()}var Yv=function(r){v1(e,r);function e(t){var i=r.call(this)||this;return i.isStopped=!1,t?(i.destination=t,a_(t)&&t.add(i)):i.destination=pM,i}return e.create=function(t,i,n){return new f0(t,i,n)},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,r.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}(U1),vM=Function.prototype.bind;function Hd(r,e){return vM.call(r,e)}var mM=function(){function r(e){this.partialObserver=e}return r.prototype.next=function(e){var t=this.partialObserver;if(t.next)try{t.next(e)}catch(i){ql(i)}},r.prototype.error=function(e){var t=this.partialObserver;if(t.error)try{t.error(e)}catch(i){ql(i)}else ql(e)},r.prototype.complete=function(){var e=this.partialObserver;if(e.complete)try{e.complete()}catch(t){ql(t)}},r}(),f0=function(r){v1(e,r);function e(t,i,n){var a=r.call(this)||this,o;if(De(t)||!t)o={next:t??void 0,error:i??void 0,complete:n??void 0};else{var s;a&&o_.useDeprecatedNextContext?(s=Object.create(t),s.unsubscribe=function(){return a.unsubscribe()},o={next:t.next&&Hd(t.next,s),error:t.error&&Hd(t.error,s),complete:t.complete&&Hd(t.complete,s)}):o=t}return a.destination=new mM(o),a}return e}(Yv);function ql(r){s_(r)}function fM(r){throw r}var pM={closed:!0,next:m0,error:fM,complete:m0},Qv=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Rn(r){return r}function gM(r){return r.length===0?Rn:r.length===1?r[0]:function(t){return r.reduce(function(i,n){return n(i)},t)}}var Ee=function(){function r(e){e&&(this._subscribe=e)}return r.prototype.lift=function(e){var t=new r;return t.source=this,t.operator=e,t},r.prototype.subscribe=function(e,t,i){var n=this,a=zM(e)?e:new f0(e,t,i);return wh(function(){var o=n,s=o.operator,c=o.source;a.add(s?s.call(a,c):c?n._subscribe(a):n._trySubscribe(a))}),a},r.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.error(t)}},r.prototype.forEach=function(e,t){var i=this;return t=im(t),new t(function(n,a){var o=new f0({next:function(s){try{e(s)}catch(c){a(c),o.unsubscribe()}},error:a,complete:n});i.subscribe(o)})},r.prototype._subscribe=function(e){var t;return(t=this.source)===null||t===void 0?void 0:t.subscribe(e)},r.prototype[Qv]=function(){return this},r.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return gM(e)(this)},r.prototype.toPromise=function(e){var t=this;return e=im(e),new e(function(i,n){var a;t.subscribe(function(o){return a=o},function(o){return n(o)},function(){return i(a)})})},r.create=function(e){return new r(e)},r}();function im(r){var e;return(e=r??o_.Promise)!==null&&e!==void 0?e:Promise}function _M(r){return r&&De(r.next)&&De(r.error)&&De(r.complete)}function zM(r){return r&&r instanceof Yv||_M(r)&&a_(r)}function yM(r){return De(r==null?void 0:r.lift)}function $t(r){return function(e){if(yM(e))return e.lift(function(t){try{return r(t,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function ht(r,e,t,i,n){return new wM(r,e,t,i,n)}var wM=function(r){v1(e,r);function e(t,i,n,a,o,s){var c=r.call(this,t)||this;return c.onFinalize=o,c.shouldUnsubscribe=s,c._next=i?function(l){try{i(l)}catch(h){t.error(h)}}:r.prototype._next,c._error=a?function(l){try{a(l)}catch(h){t.error(h)}finally{this.unsubscribe()}}:r.prototype._error,c._complete=n?function(){try{n()}catch(l){t.error(l)}finally{this.unsubscribe()}}:r.prototype._complete,c}return e.prototype.unsubscribe=function(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var i=this.closed;r.prototype.unsubscribe.call(this),!i&&((t=this.onFinalize)===null||t===void 0||t.call(this))}},e}(Yv),bM=w4(function(r){return function(){r(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Di=function(r){v1(e,r);function e(){var t=r.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 i=new nm(this,this);return i.operator=t,i},e.prototype._throwIfClosed=function(){if(this.closed)throw new bM},e.prototype.next=function(t){var i=this;wh(function(){var n,a;if(i._throwIfClosed(),!i.isStopped){i.currentObservers||(i.currentObservers=Array.from(i.observers));try{for(var o=_1(i.currentObservers),s=o.next();!s.done;s=o.next()){var c=s.value;c.next(t)}}catch(l){n={error:l}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(n)throw n.error}}}})},e.prototype.error=function(t){var i=this;wh(function(){if(i._throwIfClosed(),!i.isStopped){i.hasError=i.isStopped=!0,i.thrownError=t;for(var n=i.observers;n.length;)n.shift().error(t)}})},e.prototype.complete=function(){var t=this;wh(function(){if(t._throwIfClosed(),!t.isStopped){t.isStopped=!0;for(var i=t.observers;i.length;)i.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(),r.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 i=this,n=this,a=n.hasError,o=n.isStopped,s=n.observers;return a||o?n_:(this.currentObservers=null,s.push(t),new U1(function(){i.currentObservers=null,v0(s,t)}))},e.prototype._checkFinalizedStatuses=function(t){var i=this,n=i.hasError,a=i.thrownError,o=i.isStopped;n?t.error(a):o&&t.complete()},e.prototype.asObservable=function(){var t=new Ee;return t.source=this,t},e.create=function(t,i){return new nm(t,i)},e}(Ee),nm=function(r){v1(e,r);function e(t,i){var n=r.call(this)||this;return n.destination=t,n.source=i,n}return e.prototype.next=function(t){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.next)===null||n===void 0||n.call(i,t)},e.prototype.error=function(t){var i,n;(n=(i=this.destination)===null||i===void 0?void 0:i.error)===null||n===void 0||n.call(i,t)},e.prototype.complete=function(){var t,i;(i=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||i===void 0||i.call(t)},e.prototype._subscribe=function(t){var i,n;return(n=(i=this.source)===null||i===void 0?void 0:i.subscribe(t))!==null&&n!==void 0?n:n_},e}(Di),Do=function(r){v1(e,r);function e(t){var i=r.call(this)||this;return i._value=t,i}return Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),e.prototype._subscribe=function(t){var i=r.prototype._subscribe.call(this,t);return!i.closed&&t.next(this._value),i},e.prototype.getValue=function(){var t=this,i=t.hasError,n=t.thrownError,a=t._value;if(i)throw n;return this._throwIfClosed(),a},e.prototype.next=function(t){r.prototype.next.call(this,this._value=t)},e}(Di),Xv={now:function(){return(Xv.delegate||Date).now()},delegate:void 0},c_=function(r){v1(e,r);function e(t,i,n){t===void 0&&(t=1/0),i===void 0&&(i=1/0),n===void 0&&(n=Xv);var a=r.call(this)||this;return a._bufferSize=t,a._windowTime=i,a._timestampProvider=n,a._buffer=[],a._infiniteTimeWindow=!0,a._infiniteTimeWindow=i===1/0,a._bufferSize=Math.max(1,t),a._windowTime=Math.max(1,i),a}return e.prototype.next=function(t){var i=this,n=i.isStopped,a=i._buffer,o=i._infiniteTimeWindow,s=i._timestampProvider,c=i._windowTime;n||(a.push(t),!o&&a.push(s.now()+c)),this._trimBuffer(),r.prototype.next.call(this,t)},e.prototype._subscribe=function(t){this._throwIfClosed(),this._trimBuffer();for(var i=this._innerSubscribe(t),n=this,a=n._infiniteTimeWindow,o=n._buffer,s=o.slice(),c=0;c<s.length&&!t.closed;c+=a?1:2)t.next(s[c]);return this._checkFinalizedStatuses(t),i},e.prototype._trimBuffer=function(){var t=this,i=t._bufferSize,n=t._timestampProvider,a=t._buffer,o=t._infiniteTimeWindow,s=(o?1:2)*i;if(i<1/0&&s<a.length&&a.splice(0,a.length-s),!o){for(var c=n.now(),l=0,h=1;h<a.length&&a[h]<=c;h+=2)l=h;l&&a.splice(0,l+1)}},e}(Di),xM=function(r){v1(e,r);function e(t,i){return r.call(this)||this}return e.prototype.schedule=function(t,i){return this},e}(U1),p0={setInterval:function(r,e){for(var t=[],i=2;i<arguments.length;i++)t[i-2]=arguments[i];var n=p0.delegate;return n!=null&&n.setInterval?n.setInterval.apply(n,Ui([r,e],hi(t))):setInterval.apply(void 0,Ui([r,e],hi(t)))},clearInterval:function(r){var e=p0.delegate;return((e==null?void 0:e.clearInterval)||clearInterval)(r)},delegate:void 0},MM=function(r){v1(e,r);function e(t,i){var n=r.call(this,t,i)||this;return n.scheduler=t,n.work=i,n.pending=!1,n}return e.prototype.schedule=function(t,i){var n;if(i===void 0&&(i=0),this.closed)return this;this.state=t;var a=this.id,o=this.scheduler;return a!=null&&(this.id=this.recycleAsyncId(o,a,i)),this.pending=!0,this.delay=i,this.id=(n=this.id)!==null&&n!==void 0?n:this.requestAsyncId(o,this.id,i),this},e.prototype.requestAsyncId=function(t,i,n){return n===void 0&&(n=0),p0.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,i,n){if(n===void 0&&(n=0),n!=null&&this.delay===n&&this.pending===!1)return i;i!=null&&p0.clearInterval(i)},e.prototype.execute=function(t,i){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,i);if(n)return n;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,i){var n=!1,a;try{this.work(t)}catch(o){n=!0,a=o||new Error("Scheduled action threw falsy error")}if(n)return this.unsubscribe(),a},e.prototype.unsubscribe=function(){if(!this.closed){var t=this,i=t.id,n=t.scheduler,a=n.actions;this.work=this.state=this.scheduler=null,this.pending=!1,v0(a,this),i!=null&&(this.id=this.recycleAsyncId(n,i,null)),this.delay=null,r.prototype.unsubscribe.call(this)}},e}(xM),am=function(){function r(e,t){t===void 0&&(t=r.now),this.schedulerActionCtor=e,this.now=t}return r.prototype.schedule=function(e,t,i){return t===void 0&&(t=0),new this.schedulerActionCtor(this,e).schedule(i,t)},r.now=Xv.now,r}(),CM=function(r){v1(e,r);function e(t,i){i===void 0&&(i=am.now);var n=r.call(this,t,i)||this;return n.actions=[],n._active=!1,n}return e.prototype.flush=function(t){var i=this.actions;if(this._active){i.push(t);return}var n;this._active=!0;do if(n=t.execute(t.state,t.delay))break;while(t=i.shift());if(this._active=!1,n){for(;t=i.shift();)t.unsubscribe();throw n}},e}(am),g0=new CM(MM),HM=g0,Fi=new Ee(function(r){return r.complete()});function l_(r){return r&&De(r.schedule)}function Jv(r){return r[r.length-1]}function h_(r){return De(Jv(r))?r.pop():void 0}function Zv(r){return l_(Jv(r))?r.pop():void 0}function kM(r,e){return typeof Jv(r)=="number"?r.pop():e}var e6=function(r){return r&&typeof r.length=="number"&&typeof r!="function"};function d_(r){return De(r==null?void 0:r.then)}function u_(r){return De(r[Qv])}function v_(r){return Symbol.asyncIterator&&De(r==null?void 0:r[Symbol.asyncIterator])}function m_(r){return new TypeError("You provided "+(r!==null&&typeof r=="object"?"an invalid object":"'"+r+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function EM(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var f_=EM();function p_(r){return De(r==null?void 0:r[f_])}function g_(r){return dM(this,arguments,function(){var t,i,n,a;return i_(this,function(o){switch(o.label){case 0:t=r.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,D2(t.read())];case 3:return i=o.sent(),n=i.value,a=i.done,a?[4,D2(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,D2(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return t.releaseLock(),[7];case 10:return[2]}})})}function __(r){return De(r==null?void 0:r.getReader)}function nr(r){if(r instanceof Ee)return r;if(r!=null){if(u_(r))return PM(r);if(e6(r))return AM(r);if(d_(r))return VM(r);if(v_(r))return z_(r);if(p_(r))return SM(r);if(__(r))return $M(r)}throw m_(r)}function PM(r){return new Ee(function(e){var t=r[Qv]();if(De(t.subscribe))return t.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function AM(r){return new Ee(function(e){for(var t=0;t<r.length&&!e.closed;t++)e.next(r[t]);e.complete()})}function VM(r){return new Ee(function(e){r.then(function(t){e.closed||(e.next(t),e.complete())},function(t){return e.error(t)}).then(null,s_)})}function SM(r){return new Ee(function(e){var t,i;try{for(var n=_1(r),a=n.next();!a.done;a=n.next()){var o=a.value;if(e.next(o),e.closed)return}}catch(s){t={error:s}}finally{try{a&&!a.done&&(i=n.return)&&i.call(n)}finally{if(t)throw t.error}}e.complete()})}function z_(r){return new Ee(function(e){DM(r,e).catch(function(t){return e.error(t)})})}function $M(r){return z_(g_(r))}function DM(r,e){var t,i,n,a;return y4(this,void 0,void 0,function(){var o,s;return i_(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),t=uM(r),c.label=1;case 1:return[4,t.next()];case 2:if(i=c.sent(),!!i.done)return[3,4];if(o=i.value,e.next(o),e.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return s=c.sent(),n={error:s},[3,11];case 6:return c.trys.push([6,,9,10]),i&&!i.done&&(a=t.return)?[4,a.call(t)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return e.complete(),[2]}})})}function ci(r,e,t,i,n){i===void 0&&(i=0),n===void 0&&(n=!1);var a=e.schedule(function(){t(),n?r.add(this.schedule(null,i)):this.unsubscribe()},i);if(r.add(a),!n)return a}function _0(r,e){return e===void 0&&(e=0),$t(function(t,i){t.subscribe(ht(i,function(n){return ci(i,r,function(){return i.next(n)},e)},function(){return ci(i,r,function(){return i.complete()},e)},function(n){return ci(i,r,function(){return i.error(n)},e)}))})}function y_(r,e){return e===void 0&&(e=0),$t(function(t,i){i.add(r.schedule(function(){return t.subscribe(i)},e))})}function LM(r,e){return nr(r).pipe(y_(e),_0(e))}function TM(r,e){return nr(r).pipe(y_(e),_0(e))}function IM(r,e){return new Ee(function(t){var i=0;return e.schedule(function(){i===r.length?t.complete():(t.next(r[i++]),t.closed||this.schedule())})})}function RM(r,e){return new Ee(function(t){var i;return ci(t,e,function(){i=r[f_](),ci(t,e,function(){var n,a,o;try{n=i.next(),a=n.value,o=n.done}catch(s){t.error(s);return}o?t.complete():t.next(a)},0,!0)}),function(){return De(i==null?void 0:i.return)&&i.return()}})}function w_(r,e){if(!r)throw new Error("Iterable cannot be null");return new Ee(function(t){ci(t,e,function(){var i=r[Symbol.asyncIterator]();ci(t,e,function(){i.next().then(function(n){n.done?t.complete():t.next(n.value)})},0,!0)})})}function OM(r,e){return w_(g_(r),e)}function NM(r,e){if(r!=null){if(u_(r))return LM(r,e);if(e6(r))return IM(r,e);if(d_(r))return TM(r,e);if(v_(r))return w_(r,e);if(p_(r))return RM(r,e);if(__(r))return OM(r,e)}throw m_(r)}function y1(r,e){return e?NM(r,e):nr(r)}function Vn(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=Zv(r);return y1(r,t)}function b_(r,e){var t=De(r)?r:function(){return r},i=function(n){return n.error(t())};return new Ee(e?function(n){return e.schedule(i,0,n)}:i)}var b4=w4(function(r){return function(){r(this),this.name="EmptyError",this.message="no elements in sequence"}});function V1(r,e){var t=typeof e=="object";return new Promise(function(i,n){var a=!1,o;r.subscribe({next:function(s){o=s,a=!0},error:n,complete:function(){a?i(o):t?i(e.defaultValue):n(new b4)}})})}function Lr(r,e){var t=typeof e=="object";return new Promise(function(i,n){var a=new f0({next:function(o){i(o),a.unsubscribe()},error:n,complete:function(){t?i(e.defaultValue):n(new b4)}});r.subscribe(a)})}function x_(r){return r instanceof Date&&!isNaN(r)}var UM=w4(function(r){return function(t){t===void 0&&(t=null),r(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=t}});function FM(r,e){var t=x_(r)?{first:r}:typeof r=="number"?{each:r}:r,i=t.first,n=t.each,a=t.with,o=a===void 0?BM:a,s=t.scheduler,c=s===void 0?e??g0:s,l=t.meta,h=l===void 0?null:l;if(i==null&&n==null)throw new TypeError("No timeout provided.");return $t(function(d,u){var v,m,f=null,C=0,_=function(p){m=ci(u,c,function(){try{v.unsubscribe(),nr(o({meta:h,lastValue:f,seen:C})).subscribe(u)}catch(z){u.error(z)}},p)};v=d.subscribe(ht(u,function(p){m==null||m.unsubscribe(),C++,u.next(f=p),n>0&&_(n)},void 0,void 0,function(){m!=null&&m.closed||m==null||m.unsubscribe(),f=null})),!C&&_(i!=null?typeof i=="number"?i:+i-c.now():n)})}function BM(r){throw new UM(r)}function $e(r,e){return $t(function(t,i){var n=0;t.subscribe(ht(i,function(a){i.next(r.call(e,a,n++))}))})}var jM=Array.isArray;function qM(r,e){return jM(e)?r.apply(void 0,Ui([],hi(e))):r(e)}function M_(r){return $e(function(e){return qM(r,e)})}var GM=Array.isArray,KM=Object.getPrototypeOf,WM=Object.prototype,YM=Object.keys;function QM(r){if(r.length===1){var e=r[0];if(GM(e))return{args:e,keys:null};if(XM(e)){var t=YM(e);return{args:t.map(function(i){return e[i]}),keys:t}}}return{args:r,keys:null}}function XM(r){return r&&typeof r=="object"&&KM(r)===WM}function JM(r,e){return r.reduce(function(t,i,n){return t[i]=e[n],t},{})}function ZM(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=Zv(r),i=h_(r),n=QM(r),a=n.args,o=n.keys;if(a.length===0)return y1([],t);var s=new Ee(eC(a,t,o?function(c){return JM(o,c)}:Rn));return i?s.pipe(M_(i)):s}function eC(r,e,t){return t===void 0&&(t=Rn),function(i){om(e,function(){for(var n=r.length,a=new Array(n),o=n,s=n,c=function(h){om(e,function(){var d=y1(r[h],e),u=!1;d.subscribe(ht(i,function(v){a[h]=v,u||(u=!0,s--),s||i.next(t(a.slice()))},function(){--o||i.complete()}))},i)},l=0;l<n;l++)c(l)},i)}}function om(r,e,t){r?ci(t,r,e):e()}function C_(r,e,t,i,n,a,o,s){var c=[],l=0,h=0,d=!1,u=function(){d&&!c.length&&!l&&e.complete()},v=function(f){return l<i?m(f):c.push(f)},m=function(f){a&&e.next(f),l++;var C=!1;nr(t(f,h++)).subscribe(ht(e,function(_){n==null||n(_),a?v(_):e.next(_)},function(){C=!0},void 0,function(){if(C)try{l--;for(var _=function(){var p=c.shift();o?ci(e,o,function(){return m(p)}):m(p)};c.length&&l<i;)_();u()}catch(p){e.error(p)}}))};return r.subscribe(ht(e,v,function(){d=!0,u()})),function(){s==null||s()}}function di(r,e,t){return t===void 0&&(t=1/0),De(e)?di(function(i,n){return $e(function(a,o){return e(i,a,n,o)})(nr(r(i,n)))},t):(typeof e=="number"&&(t=e),$t(function(i,n){return C_(i,n,r,t)}))}function tC(r){return r===void 0&&(r=1/0),di(Rn,r)}var rC=["addListener","removeListener"],iC=["addEventListener","removeEventListener"],nC=["on","off"];function R3(r,e,t,i){if(De(t)&&(i=t,t=void 0),i)return R3(r,e,t).pipe(M_(i));var n=hi(sC(r)?iC.map(function(s){return function(c){return r[s](e,c,t)}}):aC(r)?rC.map(sm(r,e)):oC(r)?nC.map(sm(r,e)):[],2),a=n[0],o=n[1];if(!a&&e6(r))return di(function(s){return R3(s,e,t)})(nr(r));if(!a)throw new TypeError("Invalid event target");return new Ee(function(s){var c=function(){for(var l=[],h=0;h<arguments.length;h++)l[h]=arguments[h];return s.next(1<l.length?l:l[0])};return a(c),function(){return o(c)}})}function sm(r,e){return function(t){return function(i){return r[t](e,i)}}}function aC(r){return De(r.addListener)&&De(r.removeListener)}function oC(r){return De(r.on)&&De(r.off)}function sC(r){return De(r.addEventListener)&&De(r.removeEventListener)}function cC(r,e,t){r===void 0&&(r=0),t===void 0&&(t=HM);var i=-1;return e!=null&&(l_(e)?t=e:i=e),new Ee(function(n){var a=x_(r)?+r-t.now():r;a<0&&(a=0);var o=0;return t.schedule(function(){n.closed||(n.next(o++),0<=i?this.schedule(void 0,i):n.complete())},a)})}function H_(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=Zv(r),i=kM(r,1/0),n=r;return n.length?n.length===1?nr(n[0]):tC(i)(y1(n,t)):Fi}function Xt(r,e){return $t(function(t,i){var n=0;t.subscribe(ht(i,function(a){return r.call(e,a,n++)&&i.next(a)}))})}function Z1(r){return $t(function(e,t){var i=null,n=!1,a;i=e.subscribe(ht(t,void 0,void 0,function(o){a=nr(r(o,Z1(r)(e))),i?(i.unsubscribe(),i=null,a.subscribe(t)):n=!0})),n&&(i.unsubscribe(),i=null,a.subscribe(t))})}function lC(r,e,t,i,n){return function(a,o){var s=t,c=e,l=0;a.subscribe(ht(o,function(h){var d=l++;c=s?r(c,h,d):(s=!0,h),i&&o.next(c)},n&&function(){s&&o.next(c),o.complete()}))}}function hC(r,e){return De(e)?di(r,e,1):di(r,1)}function dC(r){return $t(function(e,t){var i=!1;e.subscribe(ht(t,function(n){i=!0,t.next(n)},function(){i||t.next(r),t.complete()}))})}function k_(r,e){return e===void 0&&(e=Rn),r=r??uC,$t(function(t,i){var n,a=!0;t.subscribe(ht(i,function(o){var s=e(o);(a||!r(n,s))&&(a=!1,n=s,i.next(o))}))})}function uC(r,e){return r===e}function vC(r){return r===void 0&&(r=mC),$t(function(e,t){var i=!1;e.subscribe(ht(t,function(n){i=!0,t.next(n)},function(){return i?t.complete():t.error(r())}))})}function mC(){return new b4}function fC(r){return r<=0?function(){return Fi}:$t(function(e,t){var i=[];e.subscribe(ht(t,function(n){i.push(n),r<i.length&&i.shift()},function(){var n,a;try{for(var o=_1(i),s=o.next();!s.done;s=o.next()){var c=s.value;t.next(c)}}catch(l){n={error:l}}finally{try{s&&!s.done&&(a=o.return)&&a.call(o)}finally{if(n)throw n.error}}t.complete()},void 0,function(){i=null}))})}function t6(r,e){var t=arguments.length>=2;return function(i){return i.pipe(r?Xt(function(n,a){return r(n,a,i)}):Rn,fC(1),t?dC(e):vC(function(){return new b4}))}}function pC(r,e,t){return t===void 0&&(t=1/0),$t(function(i,n){var a=e;return C_(i,n,function(o,s){return r(a,o,s)},t,function(o){a=o},!1,void 0,function(){return a=null})})}function O3(){return $t(function(r,e){var t,i=!1;r.subscribe(ht(e,function(n){var a=t;t=n,i&&e.next([a,n]),i=!0}))})}function E_(r,e){return $t(lC(r,e,arguments.length>=2,!0))}function L1(r,e){return $t(function(t,i){var n=null,a=0,o=!1,s=function(){return o&&!n&&i.complete()};t.subscribe(ht(i,function(c){n==null||n.unsubscribe();var l=0,h=a++;nr(r(c,h)).subscribe(n=ht(i,function(d){return i.next(e?e(c,d,h,l++):d)},function(){n=null,s()}))},function(){o=!0,s()}))})}function gC(r){return $t(function(e,t){nr(r).subscribe(ht(t,function(){return t.complete()},m0)),!t.closed&&e.subscribe(t)})}function P_(r,e){return e===void 0&&(e=!1),$t(function(t,i){var n=0;t.subscribe(ht(i,function(a){var o=r(a,n++);(o||e)&&i.next(a),!o&&i.complete()}))})}function cm(r,e,t){var i=De(r)||e||t?{next:r,error:e,complete:t}:r;return i?$t(function(n,a){var o;(o=i.subscribe)===null||o===void 0||o.call(i);var s=!0;n.subscribe(ht(a,function(c){var l;(l=i.next)===null||l===void 0||l.call(i,c),a.next(c)},function(){var c;s=!1,(c=i.complete)===null||c===void 0||c.call(i),a.complete()},function(c){var l;s=!1,(l=i.error)===null||l===void 0||l.call(i,c),a.error(c)},function(){var c,l;s&&((c=i.unsubscribe)===null||c===void 0||c.call(i)),(l=i.finalize)===null||l===void 0||l.call(i)}))}):Rn}function A_(){for(var r=[],e=0;e<arguments.length;e++)r[e]=arguments[e];var t=h_(r);return $t(function(i,n){for(var a=r.length,o=new Array(a),s=r.map(function(){return!1}),c=!1,l=function(d){nr(r[d]).subscribe(ht(n,function(u){o[d]=u,!c&&!s[d]&&(s[d]=!0,(c=s.every(Rn))&&(s=null))},m0))},h=0;h<a;h++)l(h);i.subscribe(ht(n,function(d){if(c){var u=Ui([d],hi(o));n.next(t?t.apply(void 0,Ui([],hi(u))):u)}}))})}var Kr=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};class _C extends Error{constructor(){super("It was too slow"),this.name="RequiredModuleTimeoutError"}}class zC{constructor(e){this.logger=new t_("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:i,afterInit:n,configure:a}=e;this._modules.add(t),a&&this._configs.push((o,s)=>a(o[t.name],s)),i&&this._afterConfiguration.push(o=>i(o[t.name])),n&&this._afterInit.push(o=>n(o[t.name]))}onConfigured(e){this._afterConfiguration.push(e)}onInitialized(e){this._afterInit.push(e)}initialize(e){return Kr(this,void 0,void 0,function*(){const t=yield this._configure(e),i=yield this._initialize(t,e);return yield this._postInitialize(i,e),Object.seal(Object.assign({},i,{dispose:()=>this.dispose(i)}))})}_configure(e){return Kr(this,void 0,void 0,function*(){const t=yield this._createConfig(e);return yield Promise.all(this._configs.map(i=>Promise.resolve(i(t,e)))),yield this._postConfigure(t),t})}_createConfig(e){const{modules:t,logger:i,_afterConfiguration:n,_afterInit:a}=this,o=y1(t).pipe(di(s=>Kr(this,void 0,void 0,function*(){var c;i.debug(`🛠 creating configurator ${i.formatModuleName(s)}`);try{const l=yield(c=s.configure)===null||c===void 0?void 0:c.call(s,e);return i.debug(`🛠 created configurator for ${i.formatModuleName(s)}`,l),{[s.name]:l}}catch(l){throw i.error(`🛠 Failed to created configurator for ${i.formatModuleName(s)}`,l),l}})),E_((s,c)=>Object.assign(s,c),{onAfterConfiguration(s){n.push(s)},onAfterInit(s){a.push(s)}}));return V1(o)}_postConfigure(e){return Kr(this,void 0,void 0,function*(){const{modules:t,logger:i,_afterConfiguration:n}=this;if(yield Promise.allSettled(t.filter(a=>!!a.postConfigure).map(a=>Kr(this,void 0,void 0,function*(){var o;try{yield(o=a.postConfigure)===null||o===void 0?void 0:o.call(a,e),i.debug(`🏗📌 post configured ${i.formatModuleName(a)}`,a)}catch{i.warn(`🏗📌 post configure failed ${i.formatModuleName(a)}`)}}))),n.length)try{i.debug(`🏗📌 post configure hooks [${n.length}]`),yield Promise.allSettled(n.map(a=>Promise.resolve(a(e)))),i.debug("🏗📌 post configure hooks complete")}catch(a){i.warn("🏗📌 post configure hook failed",a)}})}_initialize(e,t){return Kr(this,void 0,void 0,function*(){const{modules:i,logger:n}=this,a=i.map(h=>h.name),o=new Do({}),s=h=>a.includes(h),c=(h,d=60)=>{if(!a.includes(h))throw n.error(`🚀⌛️ Cannot not require ${n.formatModuleName(String(h))} since module is not defined!`),Error(`cannot not require [${String(h)}] since module is not defined!`);return o.value[h]?(n.debug(`🚀⌛️ ${n.formatModuleName(String(h))} is initiated, skipping queue`),Promise.resolve(o.value[h])):(n.debug(`🚀⌛️ Awaiting init ${n.formatModuleName(String(h))}, timeout ${d}s`),Lr(o.pipe(Xt(u=>!!u[h]),$e(u=>u[h]),FM({each:d*1e3,with:()=>b_(()=>new _C)}))))};y1(i).pipe(di(h=>{const d=h.name;return n.debug(`🚀 initializing ${n.formatModuleName(h)}`),y1(Promise.resolve(h.initialize({ref:t,config:e[d],requireInstance:c,hasModule:s}))).pipe($e(u=>(n.debug(`🚀 initialized ${n.formatModuleName(h)}`),[d,u])))})).subscribe({next:([h,d])=>{o.next(Object.assign(o.value,{[h]:d}))},complete:()=>o.complete()});const l=yield V1(o);return Object.seal(l),l})}_postInitialize(e,t){return Kr(this,void 0,void 0,function*(){const{modules:i,logger:n,_afterInit:a}=this;if(yield Promise.allSettled(i.filter(o=>!!o.postInitialize).map(o=>Kr(this,void 0,void 0,function*(){var s;try{n.debug(`🚀📌 post initializing moule ${n.formatModuleName(o)}`),yield(s=o.postInitialize)===null||s===void 0?void 0:s.call(o,{ref:t,modules:e,instance:e[o.name]}),n.debug(`🚀📌 post initialized moule ${n.formatModuleName(o)}`)}catch{n.warn(`🚀📌 post initialize failed moule ${n.formatModuleName(o)}`)}}))),a.length)try{n.debug(`🚀📌 post configure hooks [${a.length}]`),yield Promise.allSettled(a.map(o=>Promise.resolve(o(e)))),n.debug("🚀📌 post configure hooks complete")}catch(o){n.warn("🚀📌 post configure hook failed",o)}n.debug(`🎉 Modules initialized ${i.map(n.formatModuleName)}`,e),n.info("🟢 Modules initialized")})}dispose(e,t){return Kr(this,void 0,void 0,function*(){const{modules:i}=this;yield Promise.allSettled(i.filter(n=>!!n.dispose).map(n=>Kr(this,void 0,void 0,function*(){var a;yield(a=n.dispose)===null||a===void 0?void 0:a.call(n,{ref:t,modules:e,instance:e[n.name]})})))})}}globalThis&&globalThis.__classPrivateFieldSet;globalThis&&globalThis.__classPrivateFieldGet;var Ka=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},jn=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},bh,xh,zs,Mh,ys,N3;class yC{constructor(e,t){this.__type=e,bh.set(this,void 0),xh.set(this,void 0),zs.set(this,!1),Mh.set(this,void 0),ys.set(this,void 0),N3.set(this,Date.now()),Ka(this,bh,t.detail,"f"),Ka(this,xh,t.source,"f"),Ka(this,Mh,!!t.cancelable,"f"),Ka(this,ys,t.canBubble===void 0?!0:t.canBubble,"f")}get bubbles(){return jn(this,ys,"f")&&!jn(this,zs,"f")}get created(){return jn(this,N3,"f")}get cancelable(){return jn(this,Mh,"f")}get canceled(){return jn(this,zs,"f")}get detail(){return jn(this,bh,"f")}get source(){return jn(this,xh,"f")}get type(){return this.__type}preventDefault(){this.cancelable&&Ka(this,zs,!0,"f")}stopPropagation(){Ka(this,ys,!1,"f")}}bh=new WeakMap,xh=new WeakMap,zs=new WeakMap,Mh=new WeakMap,ys=new WeakMap,N3=new WeakMap;var wC=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};class bC{constructor({onDispatch:e,onBubble:t}){this.__onDispatch=e,this.__onBubble=t}dispatch(e,t){var i,n;return wC(this,void 0,void 0,function*(){try{yield(i=this.__onDispatch)===null||i===void 0?void 0:i.call(this,e)}catch(o){throw o}const a=e;if(!a.dispatcher)a.dispatcher=this;else if(a.dispatcher===this)throw Error("loop detected");for(const o of t)e.cancelable?e.canceled||(yield Promise.resolve(o(e))):o(e);if(e.bubbles)try{yield(n=this.__onBubble)===null||n===void 0?void 0:n.call(this,e)}catch(o){throw o}})}}var lm=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};class xC extends Ee{get closed(){return this.__event$.closed}constructor(e){super(t=>{this.__event$.subscribe(t)}),this.__listeners=[],this.__event$=new Di,this.__dispatcher=new bC({onDispatch:e.onDispatch,onBubble:e.onBubble})}addEventListener(e,t){if(this.closed)throw Error("Cannot listen to events when provider is closed!");const i={type:e,handler:t};return this.__listeners.push(i),()=>{const n=this.__listeners.indexOf(i);0<=n&&this.__listeners.splice(n,1)}}dispatchEvent(e,t){return lm(this,void 0,void 0,function*(){if(typeof e=="string"){if(!t)throw Error("invalid arguments, missing [FrameworkEventInit]");return this._dispatchEvent(new yC(e,t))}else return this._dispatchEvent(e)})}_dispatchEvent(e){return lm(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(i=>i.type===e.type).map(({handler:i})=>i);yield this.__dispatcher.dispatch(e,t)}catch(t){throw t}return e})}dispose(){this.__listeners=[],this.__event$.complete()}}var MC=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const CC="event",HC={name:CC,configure:r=>{const e={},t=r==null?void 0:r.event;return t&&(e.onBubble=i=>MC(void 0,void 0,void 0,function*(){yield t.dispatchEvent(i)})),e},initialize:({config:r})=>new xC(r),postInitialize({instance:r,modules:e}){r.dispatchEvent("onModulesLoaded",{detail:e,source:r})},dispose({instance:r}){r.dispose()}};class V_{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?y1(Object.values(this._operators)).pipe(pC((i,n)=>Promise.resolve(n(i)).then(a=>a??i),e,1),t6()):Vn(e)}}const kC=(r,e)=>t=>{const i=new Headers(t.headers);return i.append(r,e),Object.assign(Object.assign({},t),{headers:i})};class S_ extends V_{setHeader(e,t){const i=kC(e,t);return this.set("header-"+e,i)}}class EC extends V_{}class PC{get clients(){return Object.assign({},this._clients)}constructor(e){this._clients={},this.defaultHttpRequestHandler=new S_,this.defaultHttpClientCtor=e}hasClient(e){return Object.keys(this._clients).includes(e)}configureClient(e,t){const i=typeof t=="string"?a=>a.uri=String(t):t,n=typeof i=="function"?{onCreate:i}:i;return this._clients[e]=Object.assign(Object.assign({},this._clients[e]),n),this}}class AC extends Error{constructor(e){super(e)}}const VC=r=>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(r);class SC{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:i,defaultScopes:n=[],onCreate:a,ctor:o=this.config.defaultHttpClientCtor,requestHandler:s=this.defaultHttpRequestHandler}=t,c={requestHandler:s},l=new o(i||"",c);return Object.assign(l,{defaultScopes:n}),a&&a(l),l}createCustomClient(e){return this.createClient(e)}_resolveConfig(e){if(typeof e=="string"){const t=this.config.clients[e];if(!t&&VC(e))return{baseUri:e};if(!t)throw new AC(`No registered http client for key [${e}]`);return t}return e}}function $C(r,e){e===void 0&&(e={});var t=e.selector,i=r_(e,["selector"]);return new Ee(function(n){var a=new AbortController,o=a.signal,s=!0,c=i.signal;if(c)if(c.aborted)a.abort();else{var l=function(){o.aborted||a.abort()};c.addEventListener("abort",l),n.add(function(){return c.removeEventListener("abort",l)})}var h=wt(wt({},i),{signal:o}),d=function(u){s=!1,n.error(u)};return fetch(r,h).then(function(u){t?nr(t(u)).subscribe(ht(n,void 0,function(){s=!1,n.complete()},d)):(s=!1,n.next(u),n.complete())}).catch(d),function(){s&&a.abort()}})}const DC=r=>{if(!r.ok)throw new Error("network response was not OK");if(r.status===204)return Promise.resolve();try{return r.json()}catch{throw Error("failed to parse response")}};class U3 extends Error{constructor(e,t,i){super(e,i),this.message=e,this.response=t}}var hm=globalThis&&globalThis.__rest||function(r,e){var t={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(r);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(r,i[n])&&(t[i[n]]=r[i[n]]);return t};class LC{get request$(){return this._request$.asObservable()}get response$(){return this._response$.asObservable()}constructor(e,t){var i,n;this.uri=e,this._request$=new Di,this._response$=new Di,this._abort$=new Di,this.requestHandler=(i=t==null?void 0:t.requestHandler)!==null&&i!==void 0?i:new S_,this.responseHandler=(n=t==null?void 0:t.responseHandler)!==null&&n!==void 0?n:new EC,this._init()}_init(){}fetch$(e,t){return this._fetch$(e,t)}fetch(e,t){return Lr(this.fetch$(e,t))}fetchAsync(e,t){return this.fetch(e,t)}json$(e,t){var i;const n=typeof(t==null?void 0:t.body)=="object"?JSON.stringify(t==null?void 0:t.body):t==null?void 0:t.body,a=(i=t==null?void 0:t.selector)!==null&&i!==void 0?i:DC,o=new Headers(t==null?void 0:t.headers);return o.append("Content-Type","application/json"),this.fetch$(e,Object.assign(Object.assign({},t),{body:n,selector:a,headers:o}))}json(e,t){return Lr(this.json$(e,t))}jsonAsync(e,t){return this.json(e,t)}execute(e,t,i){return this[e](t,i)}abort(){this._abort$.next()}_fetch$(e,t){const i=t||{},{selector:n}=i,a=hm(i,["selector"]);return Vn(Object.assign(Object.assign({},a),{uri:this._resolveUrl(e)})).pipe(L1(s=>this._prepareRequest(s)),cm(s=>this._request$.next(s)),L1(s=>{var{uri:c,path:l}=s,h=hm(s,["uri","path"]);return $C(c,h)}),L1(s=>this._prepareResponse(s)),cm(s=>this._response$.next(s)),L1(s=>{if(n)try{return n(s)}catch(c){throw new U3("failed to execute response selector",s,{cause:c})}return Vn(s)}),gC(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 TC extends LC{constructor(){super(...arguments),this.defaultScopes=[]}fetch$(e,t){const i=Object.assign(t||{},{scopes:this.defaultScopes.concat((t==null?void 0:t.scopes)||[])});return super._fetch$(e,i)}}var dm=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const r6={name:"http",configure:()=>new PC(TC),initialize:({config:r,hasModule:e,requireInstance:t})=>dm(void 0,void 0,void 0,function*(){const i=new SC(r);if(e("auth")){const n=yield t("auth");i.defaultHttpRequestHandler.set("MSAL",a=>dm(void 0,void 0,void 0,function*(){const{scopes:o=[]}=a;if(o.length){const s=yield n.acquireToken({scopes:o});if(s){const c=new Headers(a.headers);return c.set("Authorization",`Bearer ${s.accessToken}`),Object.assign(Object.assign({},a),{headers:c})}}}))}return i})},IC=r=>({module:r6,configure:r}),$_=(r,e)=>({module:r6,configure:t=>{t.configureClient(r,e)}}),kd="default";class RC{constructor(){this._configs={},this.requiresAuth=!0}get defaultConfig(){return this._configs[kd]}getClientConfig(e){return this._configs[e]}configureClient(e,t){return this._configs[e]=t,this}configureDefault(e){if(this._configs[kd])throw Error("Default AuthClient already provided");this.configureClient(kd,e)}}/*! @azure/msal-browser v2.32.2 2023-01-10 *//*! *****************************************************************************
|
|
44
44
|
Copyright (c) Microsoft Corporation.
|
|
45
45
|
|
|
46
46
|
Permission to use, copy, modify, and/or distribute this software for any
|
|
@@ -66,11 +66,11 @@ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
|
66
66
|
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
67
67
|
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
68
68
|
PERFORMANCE OF THIS SOFTWARE.
|
|
69
|
-
***************************************************************************** */var B3=function(r,e){return B3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},B3(r,e)};function F1(r,e){B3(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Ue=function(){return Ue=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Ue.apply(this,arguments)};function ae(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})}function oe(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(h){return c([l,h])}}function c(l){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,n&&(a=l[0]&2?n.return:l[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,l[1])).done)return a;switch(n=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,n=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(r,t)}catch(h){l=[6,h],n=0}finally{i=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function x4(){for(var r=0,e=0,t=arguments.length;e<t;e++)r+=arguments[e].length;for(var i=Array(r),n=0,e=0;e<t;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,n++)i[n]=a[o];return i}/*! @azure/msal-common v9.1.1 2023-01-19 */var w={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",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"},rl=[w.OPENID_SCOPE,w.PROFILE_SCOPE,w.OFFLINE_ACCESS_SCOPE],vm=x4(rl,[w.EMAIL_SCOPE]),X1;(function(r){r.CONTENT_TYPE="Content-Type",r.RETRY_AFTER="Retry-After",r.CCS_HEADER="X-AnchorMailbox",r.WWWAuthenticate="WWW-Authenticate",r.AuthenticationInfo="Authentication-Info",r.X_MS_REQUEST_ID="x-ms-request-id",r.X_MS_HTTP_VERSION="x-ms-httpver"})(X1||(X1={}));var Ct;(function(r){r.ID_TOKEN="idtoken",r.CLIENT_INFO="client.info",r.ADAL_ID_TOKEN="adal.idtoken",r.ERROR="error",r.ERROR_DESC="error.description",r.ACTIVE_ACCOUNT="active-account",r.ACTIVE_ACCOUNT_FILTERS="active-account-filters"})(Ct||(Ct={}));var z0;(function(r){r.COMMON="common",r.ORGANIZATIONS="organizations",r.CONSUMERS="consumers"})(z0||(z0={}));var de;(function(r){r.CLIENT_ID="client_id",r.REDIRECT_URI="redirect_uri",r.RESPONSE_TYPE="response_type",r.RESPONSE_MODE="response_mode",r.GRANT_TYPE="grant_type",r.CLAIMS="claims",r.SCOPE="scope",r.ERROR="error",r.ERROR_DESCRIPTION="error_description",r.ACCESS_TOKEN="access_token",r.ID_TOKEN="id_token",r.REFRESH_TOKEN="refresh_token",r.EXPIRES_IN="expires_in",r.STATE="state",r.NONCE="nonce",r.PROMPT="prompt",r.SESSION_STATE="session_state",r.CLIENT_INFO="client_info",r.CODE="code",r.CODE_CHALLENGE="code_challenge",r.CODE_CHALLENGE_METHOD="code_challenge_method",r.CODE_VERIFIER="code_verifier",r.CLIENT_REQUEST_ID="client-request-id",r.X_CLIENT_SKU="x-client-SKU",r.X_CLIENT_VER="x-client-VER",r.X_CLIENT_OS="x-client-OS",r.X_CLIENT_CPU="x-client-CPU",r.X_CLIENT_CURR_TELEM="x-client-current-telemetry",r.X_CLIENT_LAST_TELEM="x-client-last-telemetry",r.X_MS_LIB_CAPABILITY="x-ms-lib-capability",r.X_APP_NAME="x-app-name",r.X_APP_VER="x-app-ver",r.POST_LOGOUT_URI="post_logout_redirect_uri",r.ID_TOKEN_HINT="id_token_hint",r.DEVICE_CODE="device_code",r.CLIENT_SECRET="client_secret",r.CLIENT_ASSERTION="client_assertion",r.CLIENT_ASSERTION_TYPE="client_assertion_type",r.TOKEN_TYPE="token_type",r.REQ_CNF="req_cnf",r.OBO_ASSERTION="assertion",r.REQUESTED_TOKEN_USE="requested_token_use",r.ON_BEHALF_OF="on_behalf_of",r.FOCI="foci",r.CCS_HEADER="X-AnchorMailbox",r.RETURN_SPA_CODE="return_spa_code",r.NATIVE_BROKER="nativebroker",r.LOGOUT_HINT="logout_hint"})(de||(de={}));var y2;(function(r){r.ACCESS_TOKEN="access_token",r.XMS_CC="xms_cc"})(y2||(y2={}));var d1={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},Gs;(function(r){r.ACCOUNT="account",r.SID="sid",r.LOGIN_HINT="login_hint",r.ID_TOKEN="id_token",r.DOMAIN_HINT="domain_hint",r.ORGANIZATIONS="organizations",r.CONSUMERS="consumers",r.ACCOUNT_ID="accountIdentifier",r.HOMEACCOUNT_ID="homeAccountIdentifier"})(Gs||(Gs={}));var mm={PLAIN:"plain",S256:"S256"},y0;(function(r){r.QUERY="query",r.FRAGMENT="fragment",r.FORM_POST="form_post"})(y0||(y0={}));var w0;(function(r){r.IMPLICIT_GRANT="implicit",r.AUTHORIZATION_CODE_GRANT="authorization_code",r.CLIENT_CREDENTIALS_GRANT="client_credentials",r.RESOURCE_OWNER_PASSWORD_GRANT="password",r.REFRESH_TOKEN_GRANT="refresh_token",r.DEVICE_CODE_GRANT="device_code",r.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"})(w0||(w0={}));var bi;(function(r){r.MSSTS_ACCOUNT_TYPE="MSSTS",r.ADFS_ACCOUNT_TYPE="ADFS",r.MSAV1_ACCOUNT_TYPE="MSA",r.GENERIC_ACCOUNT_TYPE="Generic"})(bi||(bi={}));var T1;(function(r){r.CACHE_KEY_SEPARATOR="-",r.CLIENT_INFO_SEPARATOR="."})(T1||(T1={}));var Me;(function(r){r.ID_TOKEN="IdToken",r.ACCESS_TOKEN="AccessToken",r.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",r.REFRESH_TOKEN="RefreshToken"})(Me||(Me={}));var wa;(function(r){r.ACCOUNT="Account",r.CREDENTIAL="Credential",r.ID_TOKEN="IdToken",r.ACCESS_TOKEN="AccessToken",r.REFRESH_TOKEN="RefreshToken",r.APP_METADATA="AppMetadata",r.TEMPORARY="TempCache",r.TELEMETRY="Telemetry",r.UNDEFINED="Undefined",r.THROTTLING="Throttling"})(wa||(wa={}));var Ai;(function(r){r[r.ADFS=1001]="ADFS",r[r.MSA=1002]="MSA",r[r.MSSTS=1003]="MSSTS",r[r.GENERIC=1004]="GENERIC",r[r.ACCESS_TOKEN=2001]="ACCESS_TOKEN",r[r.REFRESH_TOKEN=2002]="REFRESH_TOKEN",r[r.ID_TOKEN=2003]="ID_TOKEN",r[r.APP_METADATA=3001]="APP_METADATA",r[r.UNDEFINED=9999]="UNDEFINED"})(Ai||(Ai={}));var j3="appmetadata",NC="client_info",b0="1",Ks={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},cr;(function(r){r.CONFIG="config",r.CACHE="cache",r.NETWORK="network",r.HARDCODED_VALUES="hardcoded_values"})(cr||(cr={}));var Ut={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"},Ie;(function(r){r.BEARER="Bearer",r.POP="pop",r.SSH="ssh-cert"})(Ie||(Ie={}));var Ws={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},fm={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},x0;(function(r){r.username="username",r.password="password"})(x0||(x0={}));var w2;(function(r){r[r.httpSuccess=200]="httpSuccess",r[r.httpBadRequest=400]="httpBadRequest"})(w2||(w2={}));var nn;(function(r){r.FAILED_AUTO_DETECTION="1",r.INTERNAL_CACHE="2",r.ENVIRONMENT_VARIABLE="3",r.IMDS="4"})(nn||(nn={}));var ua;(function(r){r.CONFIGURED_MATCHES_DETECTED="1",r.CONFIGURED_NO_AUTO_DETECTION="2",r.CONFIGURED_NOT_DETECTED="3",r.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",r.AUTO_DETECTION_REQUESTED_FAILED="5"})(ua||(ua={}));var ga;(function(r){r.NO_CACHE_HIT="0",r.FORCE_REFRESH="1",r.NO_CACHED_ACCESS_TOKEN="2",r.CACHED_ACCESS_TOKEN_EXPIRED="3",r.REFRESH_CACHED_ACCESS_TOKEN="4"})(ga||(ga={}));var q3;(function(r){r.Jwt="JWT",r.Jwk="JWK"})(q3||(q3={}));/*! @azure/msal-common v9.1.1 2023-01-19 */var Gl={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."}},Q=function(r){F1(e,r);function e(t,i,n){var a=this,o=i?t+": "+i:t;return a=r.call(this,o)||this,Object.setPrototypeOf(a,e.prototype),a.errorCode=t||w.EMPTY_STRING,a.errorMessage=i||w.EMPTY_STRING,a.subError=n||w.EMPTY_STRING,a.name="AuthError",a}return e.prototype.setCorrelationId=function(t){this.correlationId=t},e.createUnexpectedError=function(t){return new e(Gl.unexpectedError.code,Gl.unexpectedError.desc+": "+t)},e.createPostRequestFailed=function(t){return new e(Gl.postRequestFailed.code,Gl.postRequestFailed.desc+": "+t)},e}(Error);/*! @azure/msal-common v9.1.1 2023-01-19 */var M0={createNewGuid:function(){var r="Crypto interface - createNewGuid() has not been implemented";throw Q.createUnexpectedError(r)},base64Decode:function(){var r="Crypto interface - base64Decode() has not been implemented";throw Q.createUnexpectedError(r)},base64Encode:function(){var r="Crypto interface - base64Encode() has not been implemented";throw Q.createUnexpectedError(r)},generatePkceCodes:function(){return ae(this,void 0,void 0,function(){var r;return oe(this,function(e){throw r="Crypto interface - generatePkceCodes() has not been implemented",Q.createUnexpectedError(r)})})},getPublicKeyThumbprint:function(){return ae(this,void 0,void 0,function(){var r;return oe(this,function(e){throw r="Crypto interface - getPublicKeyThumbprint() has not been implemented",Q.createUnexpectedError(r)})})},removeTokenBindingKey:function(){return ae(this,void 0,void 0,function(){var r;return oe(this,function(e){throw r="Crypto interface - removeTokenBindingKey() has not been implemented",Q.createUnexpectedError(r)})})},clearKeystore:function(){return ae(this,void 0,void 0,function(){var r;return oe(this,function(e){throw r="Crypto interface - clearKeystore() has not been implemented",Q.createUnexpectedError(r)})})},signJwt:function(){return ae(this,void 0,void 0,function(){var r;return oe(this,function(e){throw r="Crypto interface - signJwt() has not been implemented",Q.createUnexpectedError(r)})})},hashString:function(){return ae(this,void 0,void 0,function(){var r;return oe(this,function(e){throw r="Crypto interface - hashString() has not been implemented",Q.createUnexpectedError(r)})})}};/*! @azure/msal-common v9.1.1 2023-01-19 */var T={clientInfoDecodingError:{code:"client_info_decoding_error",desc:"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."},clientInfoEmptyError:{code:"client_info_empty_error",desc:"The client info was empty. Please review the trace to determine the root cause."},tokenParsingError:{code:"token_parsing_error",desc:"Token cannot be parsed. Please review stack trace to determine root cause."},nullOrEmptyToken:{code:"null_or_empty_token",desc:"The token is null or empty. Please review the trace to determine the root cause."},endpointResolutionError:{code:"endpoints_resolution_error",desc:"Error: could not resolve endpoints. Please check network and try again."},networkError:{code:"network_error",desc:"Network request failed. Please check network trace to determine root cause."},unableToGetOpenidConfigError:{code:"openid_config_error",desc:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints."},hashNotDeserialized:{code:"hash_not_deserialized",desc:"The hash parameters could not be deserialized. Please review the trace to determine the root cause."},blankGuidGenerated:{code:"blank_guid_generated",desc:"The guid generated was blank. Please review the trace to determine the root cause."},invalidStateError:{code:"invalid_state",desc:"State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState()."},stateMismatchError:{code:"state_mismatch",desc:"State mismatch error. Please check your network. Continued requests may cause cache overflow."},stateNotFoundError:{code:"state_not_found",desc:"State not found"},nonceMismatchError:{code:"nonce_mismatch",desc:"Nonce mismatch error. This may be caused by a race condition in concurrent requests."},nonceNotFoundError:{code:"nonce_not_found",desc:"nonce not found"},authTimeNotFoundError:{code:"auth_time_not_found",desc:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information."},maxAgeTranspiredError:{code:"max_age_transpired",desc:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication."},noTokensFoundError:{code:"no_tokens_found",desc:"No tokens were found for the given scopes, and no authorization code was passed to acquireToken. You must retrieve an authorization code before making a call to acquireToken()."},multipleMatchingTokens:{code:"multiple_matching_tokens",desc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account."},multipleMatchingAccounts:{code:"multiple_matching_accounts",desc:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account"},multipleMatchingAppMetadata:{code:"multiple_matching_appMetadata",desc:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata"},tokenRequestCannotBeMade:{code:"request_cannot_be_made",desc:"Token request cannot be made without authorization code or refresh token."},appendEmptyScopeError:{code:"cannot_append_empty_scope",desc:"Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info."},removeEmptyScopeError:{code:"cannot_remove_empty_scope",desc:"Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info."},appendScopeSetError:{code:"cannot_append_scopeset",desc:"Cannot append ScopeSet due to error."},emptyInputScopeSetError:{code:"empty_input_scopeset",desc:"Empty input ScopeSet cannot be processed."},DeviceCodePollingCancelled:{code:"device_code_polling_cancelled",desc:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true."},DeviceCodeExpired:{code:"device_code_expired",desc:"Device code is expired."},DeviceCodeUnknownError:{code:"device_code_unknown_error",desc:"Device code stopped polling for unknown reasons."},NoAccountInSilentRequest:{code:"no_account_in_silent_request",desc:"Please pass an account object, silent flow is not supported without account information"},invalidCacheRecord:{code:"invalid_cache_record",desc:"Cache record object was null or undefined."},invalidCacheEnvironment:{code:"invalid_cache_environment",desc:"Invalid environment when attempting to create cache entry"},noAccountFound:{code:"no_account_found",desc:"No account found in cache for given key."},CachePluginError:{code:"no cache plugin set on CacheManager",desc:"ICachePlugin needs to be set before using readFromStorage or writeFromStorage"},noCryptoObj:{code:"no_crypto_object",desc:"No crypto object detected. This is required for the following operation: "},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},unexpectedAccountType:{code:"unexpected_account_type",desc:"Unexpected account type."},unexpectedCredentialType:{code:"unexpected_credential_type",desc:"Unexpected credential type."},invalidAssertion:{code:"invalid_assertion",desc:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515"},invalidClientCredential:{code:"invalid_client_credential",desc:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential"},tokenRefreshRequired:{code:"token_refresh_required",desc:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired."},userTimeoutReached:{code:"user_timeout_reached",desc:"User defined timeout for device code polling reached"},tokenClaimsRequired:{code:"token_claims_cnf_required_for_signedjwt",desc:"Cannot generate a POP jwt if the token_claims are not populated"},noAuthorizationCodeFromServer:{code:"authorization_code_missing_from_server_response",desc:"Server response does not contain an authorization code to proceed"},noAzureRegionDetected:{code:"no_azure_region_detected",desc:"No azure region was detected and no fallback was made available"},accessTokenEntityNullError:{code:"access_token_entity_null",desc:"Access token entity is null, please check logs and cache to ensure a valid access token is present."},bindingKeyNotRemovedError:{code:"binding_key_not_removed",desc:"Could not remove the credential's binding key from storage."},logoutNotSupported:{code:"end_session_endpoint_not_supported",desc:"Provided authority does not support logout."},keyIdMissing:{code:"key_id_missing",desc:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key."}},j=function(r){F1(e,r);function e(t,i){var n=r.call(this,t,i)||this;return n.name="ClientAuthError",Object.setPrototypeOf(n,e.prototype),n}return e.createClientInfoDecodingError=function(t){return new e(T.clientInfoDecodingError.code,T.clientInfoDecodingError.desc+" Failed with error: "+t)},e.createClientInfoEmptyError=function(){return new e(T.clientInfoEmptyError.code,""+T.clientInfoEmptyError.desc)},e.createTokenParsingError=function(t){return new e(T.tokenParsingError.code,T.tokenParsingError.desc+" Failed with error: "+t)},e.createTokenNullOrEmptyError=function(t){return new e(T.nullOrEmptyToken.code,T.nullOrEmptyToken.desc+" Raw Token Value: "+t)},e.createEndpointDiscoveryIncompleteError=function(t){return new e(T.endpointResolutionError.code,T.endpointResolutionError.desc+" Detail: "+t)},e.createNetworkError=function(t,i){return new e(T.networkError.code,T.networkError.desc+" | Fetch client threw: "+i+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToGetOpenidConfigError=function(t){return new e(T.unableToGetOpenidConfigError.code,T.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+t)},e.createHashNotDeserializedError=function(t){return new e(T.hashNotDeserialized.code,T.hashNotDeserialized.desc+" Given Object: "+t)},e.createInvalidStateError=function(t,i){return new e(T.invalidStateError.code,T.invalidStateError.desc+" Invalid State: "+t+", Root Err: "+i)},e.createStateMismatchError=function(){return new e(T.stateMismatchError.code,T.stateMismatchError.desc)},e.createStateNotFoundError=function(t){return new e(T.stateNotFoundError.code,T.stateNotFoundError.desc+": "+t)},e.createNonceMismatchError=function(){return new e(T.nonceMismatchError.code,T.nonceMismatchError.desc)},e.createAuthTimeNotFoundError=function(){return new e(T.authTimeNotFoundError.code,T.authTimeNotFoundError.desc)},e.createMaxAgeTranspiredError=function(){return new e(T.maxAgeTranspiredError.code,T.maxAgeTranspiredError.desc)},e.createNonceNotFoundError=function(t){return new e(T.nonceNotFoundError.code,T.nonceNotFoundError.desc+": "+t)},e.createMultipleMatchingTokensInCacheError=function(){return new e(T.multipleMatchingTokens.code,T.multipleMatchingTokens.desc+".")},e.createMultipleMatchingAccountsInCacheError=function(){return new e(T.multipleMatchingAccounts.code,T.multipleMatchingAccounts.desc)},e.createMultipleMatchingAppMetadataInCacheError=function(){return new e(T.multipleMatchingAppMetadata.code,T.multipleMatchingAppMetadata.desc)},e.createTokenRequestCannotBeMadeError=function(){return new e(T.tokenRequestCannotBeMade.code,T.tokenRequestCannotBeMade.desc)},e.createAppendEmptyScopeToSetError=function(t){return new e(T.appendEmptyScopeError.code,T.appendEmptyScopeError.desc+" Given Scope: "+t)},e.createRemoveEmptyScopeFromSetError=function(t){return new e(T.removeEmptyScopeError.code,T.removeEmptyScopeError.desc+" Given Scope: "+t)},e.createAppendScopeSetError=function(t){return new e(T.appendScopeSetError.code,T.appendScopeSetError.desc+" Detail Error: "+t)},e.createEmptyInputScopeSetError=function(){return new e(T.emptyInputScopeSetError.code,""+T.emptyInputScopeSetError.desc)},e.createDeviceCodeCancelledError=function(){return new e(T.DeviceCodePollingCancelled.code,""+T.DeviceCodePollingCancelled.desc)},e.createDeviceCodeExpiredError=function(){return new e(T.DeviceCodeExpired.code,""+T.DeviceCodeExpired.desc)},e.createDeviceCodeUnknownError=function(){return new e(T.DeviceCodeUnknownError.code,""+T.DeviceCodeUnknownError.desc)},e.createNoAccountInSilentRequestError=function(){return new e(T.NoAccountInSilentRequest.code,""+T.NoAccountInSilentRequest.desc)},e.createNullOrUndefinedCacheRecord=function(){return new e(T.invalidCacheRecord.code,T.invalidCacheRecord.desc)},e.createInvalidCacheEnvironmentError=function(){return new e(T.invalidCacheEnvironment.code,T.invalidCacheEnvironment.desc)},e.createNoAccountFoundError=function(){return new e(T.noAccountFound.code,T.noAccountFound.desc)},e.createCachePluginError=function(){return new e(T.CachePluginError.code,""+T.CachePluginError.desc)},e.createNoCryptoObjectError=function(t){return new e(T.noCryptoObj.code,""+T.noCryptoObj.desc+t)},e.createInvalidCacheTypeError=function(){return new e(T.invalidCacheType.code,""+T.invalidCacheType.desc)},e.createUnexpectedAccountTypeError=function(){return new e(T.unexpectedAccountType.code,""+T.unexpectedAccountType.desc)},e.createUnexpectedCredentialTypeError=function(){return new e(T.unexpectedCredentialType.code,""+T.unexpectedCredentialType.desc)},e.createInvalidAssertionError=function(){return new e(T.invalidAssertion.code,""+T.invalidAssertion.desc)},e.createInvalidCredentialError=function(){return new e(T.invalidClientCredential.code,""+T.invalidClientCredential.desc)},e.createRefreshRequiredError=function(){return new e(T.tokenRefreshRequired.code,T.tokenRefreshRequired.desc)},e.createUserTimeoutReachedError=function(){return new e(T.userTimeoutReached.code,T.userTimeoutReached.desc)},e.createTokenClaimsRequiredError=function(){return new e(T.tokenClaimsRequired.code,T.tokenClaimsRequired.desc)},e.createNoAuthCodeInServerResponseError=function(){return new e(T.noAuthorizationCodeFromServer.code,T.noAuthorizationCodeFromServer.desc)},e.createBindingKeyNotRemovedError=function(){return new e(T.bindingKeyNotRemovedError.code,T.bindingKeyNotRemovedError.desc)},e.createLogoutNotSupportedError=function(){return new e(T.logoutNotSupported.code,T.logoutNotSupported.desc)},e.createKeyIdMissingError=function(){return new e(T.keyIdMissing.code,T.keyIdMissing.desc)},e}(Q);/*! @azure/msal-common v9.1.1 2023-01-19 */var F=function(){function r(){}return r.decodeAuthToken=function(e){if(r.isEmpty(e))throw j.createTokenNullOrEmptyError(e);var t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/,i=t.exec(e);if(!i||i.length<4)throw j.createTokenParsingError("Given token is malformed: "+JSON.stringify(e));var n={header:i[1],JWSPayload:i[2],JWSSig:i[3]};return n},r.isEmpty=function(e){return typeof e>"u"||!e||e.length===0},r.isEmptyObj=function(e){if(e&&!r.isEmpty(e))try{var t=JSON.parse(e);return Object.keys(t).length===0}catch{}return!0},r.startsWith=function(e,t){return e.indexOf(t)===0},r.endsWith=function(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length},r.queryStringToObject=function(e){var t={},i=e.split("&"),n=function(a){return decodeURIComponent(a.replace(/\+/g," "))};return i.forEach(function(a){if(a.trim()){var o=a.split(/=(.+)/g,2),s=o[0],c=o[1];s&&c&&(t[n(s)]=n(c))}}),t},r.trimArrayEntries=function(e){return e.map(function(t){return t.trim()})},r.removeEmptyStringsFromArray=function(e){return e.filter(function(t){return!r.isEmpty(t)})},r.jsonParseHelper=function(e){try{return JSON.parse(e)}catch{return null}},r.matchPattern=function(e,t){var i=new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?"));return i.test(t)},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var ot;(function(r){r[r.Error=0]="Error",r[r.Warning=1]="Warning",r[r.Info=2]="Info",r[r.Verbose=3]="Verbose",r[r.Trace=4]="Trace"})(ot||(ot={}));var n6=function(){function r(e,t,i){this.level=ot.Info;var n=function(){},a=e||r.createDefaultLoggerOptions();this.localCallback=a.loggerCallback||n,this.piiLoggingEnabled=a.piiLoggingEnabled||!1,this.level=typeof a.logLevel=="number"?a.logLevel:ot.Info,this.correlationId=a.correlationId||w.EMPTY_STRING,this.packageName=t||w.EMPTY_STRING,this.packageVersion=i||w.EMPTY_STRING}return r.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:ot.Info}},r.prototype.clone=function(e,t,i){return new r({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:i||this.correlationId},e,t)},r.prototype.logMessage=function(e,t){if(!(t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii)){var i=new Date().toUTCString(),n;F.isEmpty(t.correlationId)?F.isEmpty(this.correlationId)?n="["+i+"]":n="["+i+"] : ["+this.correlationId+"]":n="["+i+"] : ["+t.correlationId+"]";var a=n+" : "+this.packageName+"@"+this.packageVersion+" : "+ot[t.logLevel]+" - "+e;this.executeCallback(t.logLevel,a,t.containsPii||!1)}},r.prototype.executeCallback=function(e,t,i){this.localCallback&&this.localCallback(e,t,i)},r.prototype.error=function(e,t){this.logMessage(e,{logLevel:ot.Error,containsPii:!1,correlationId:t||w.EMPTY_STRING})},r.prototype.errorPii=function(e,t){this.logMessage(e,{logLevel:ot.Error,containsPii:!0,correlationId:t||w.EMPTY_STRING})},r.prototype.warning=function(e,t){this.logMessage(e,{logLevel:ot.Warning,containsPii:!1,correlationId:t||w.EMPTY_STRING})},r.prototype.warningPii=function(e,t){this.logMessage(e,{logLevel:ot.Warning,containsPii:!0,correlationId:t||w.EMPTY_STRING})},r.prototype.info=function(e,t){this.logMessage(e,{logLevel:ot.Info,containsPii:!1,correlationId:t||w.EMPTY_STRING})},r.prototype.infoPii=function(e,t){this.logMessage(e,{logLevel:ot.Info,containsPii:!0,correlationId:t||w.EMPTY_STRING})},r.prototype.verbose=function(e,t){this.logMessage(e,{logLevel:ot.Verbose,containsPii:!1,correlationId:t||w.EMPTY_STRING})},r.prototype.verbosePii=function(e,t){this.logMessage(e,{logLevel:ot.Verbose,containsPii:!0,correlationId:t||w.EMPTY_STRING})},r.prototype.trace=function(e,t){this.logMessage(e,{logLevel:ot.Trace,containsPii:!1,correlationId:t||w.EMPTY_STRING})},r.prototype.tracePii=function(e,t){this.logMessage(e,{logLevel:ot.Trace,containsPii:!0,correlationId:t||w.EMPTY_STRING})},r.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var UC="@azure/msal-common",D_="9.1.1";/*! @azure/msal-common v9.1.1 2023-01-19 */var Cc;(function(r){r[r.None=0]="None",r.AzurePublic="https://login.microsoftonline.com",r.AzurePpe="https://login.windows-ppe.net",r.AzureChina="https://login.chinacloudapi.cn",r.AzureGermany="https://login.microsoftonline.de",r.AzureUsGovernment="https://login.microsoftonline.us"})(Cc||(Cc={}));/*! @azure/msal-common v9.1.1 2023-01-19 */var Hc=function(){function r(){}return r.prototype.generateAccountId=function(){return r.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},r.prototype.generateCredentialId=function(){return r.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},r.prototype.generateTarget=function(){return r.generateTargetForCacheKey(this.target)},r.prototype.generateCredentialKey=function(){return r.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},r.prototype.generateType=function(){switch(this.credentialType){case Me.ID_TOKEN:return Ai.ID_TOKEN;case Me.ACCESS_TOKEN:case Me.ACCESS_TOKEN_WITH_AUTH_SCHEME:return Ai.ACCESS_TOKEN;case Me.REFRESH_TOKEN:return Ai.REFRESH_TOKEN;default:throw j.createUnexpectedCredentialTypeError()}},r.getCredentialType=function(e){for(var t=T1.CACHE_KEY_SEPARATOR,i="(https?:\\/\\/)?([\\w-]+\\.)*([\\w-]{1,63})(\\.(\\w{2,63}))(\\:[0-9]{4,5})?",n=0,a=Object.keys(Me);n<a.length;n++){var o=a[n],s=Me[o].toLowerCase();if(e.toLowerCase().search(""+t+i+t+s+t)!==-1)return Me[o]}return w.NOT_DEFINED},r.generateCredentialCacheKey=function(e,t,i,n,a,o,s,c,l){var h=[this.generateAccountIdForCacheKey(e,t),this.generateCredentialIdForCacheKey(i,n,a,s),this.generateTargetForCacheKey(o),this.generateClaimsHashForCacheKey(l),this.generateSchemeForCacheKey(c)];return h.join(T1.CACHE_KEY_SEPARATOR).toLowerCase()},r.generateAccountIdForCacheKey=function(e,t){var i=[e,t];return i.join(T1.CACHE_KEY_SEPARATOR).toLowerCase()},r.generateCredentialIdForCacheKey=function(e,t,i,n){var a=e===Me.REFRESH_TOKEN&&n||t,o=[e,a,i||w.EMPTY_STRING];return o.join(T1.CACHE_KEY_SEPARATOR).toLowerCase()},r.generateTargetForCacheKey=function(e){return(e||w.EMPTY_STRING).toLowerCase()},r.generateClaimsHashForCacheKey=function(e){return(e||w.EMPTY_STRING).toLowerCase()},r.generateSchemeForCacheKey=function(e){return e&&e.toLowerCase()!==Ie.BEARER.toLowerCase()?e.toLowerCase():w.EMPTY_STRING},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var he={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"}},Ye=function(r){F1(e,r);function e(t,i){var n=r.call(this,t,i)||this;return n.name="ClientConfigurationError",Object.setPrototypeOf(n,e.prototype),n}return e.createRedirectUriEmptyError=function(){return new e(he.redirectUriNotSet.code,he.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(he.postLogoutUriNotSet.code,he.postLogoutUriNotSet.desc)},e.createClaimsRequestParsingError=function(t){return new e(he.claimsRequestParsingError.code,he.claimsRequestParsingError.desc+" Given value: "+t)},e.createInsecureAuthorityUriError=function(t){return new e(he.authorityUriInsecure.code,he.authorityUriInsecure.desc+" Given URI: "+t)},e.createUrlParseError=function(t){return new e(he.urlParseError.code,he.urlParseError.desc+" Given Error: "+t)},e.createUrlEmptyError=function(){return new e(he.urlEmptyError.code,he.urlEmptyError.desc)},e.createEmptyScopesArrayError=function(){return new e(he.emptyScopesError.code,""+he.emptyScopesError.desc)},e.createClientIdSingleScopeError=function(t){return new e(he.clientIdSingleScopeError.code,he.clientIdSingleScopeError.desc+" Given Scopes: "+t)},e.createInvalidPromptError=function(t){return new e(he.invalidPrompt.code,he.invalidPrompt.desc+" Given value: "+t)},e.createInvalidClaimsRequestError=function(){return new e(he.invalidClaimsRequest.code,he.invalidClaimsRequest.desc)},e.createEmptyLogoutRequestError=function(){return new e(he.logoutRequestEmptyError.code,he.logoutRequestEmptyError.desc)},e.createEmptyTokenRequestError=function(){return new e(he.tokenRequestEmptyError.code,he.tokenRequestEmptyError.desc)},e.createInvalidCodeChallengeMethodError=function(){return new e(he.invalidCodeChallengeMethod.code,he.invalidCodeChallengeMethod.desc)},e.createInvalidCodeChallengeParamsError=function(){return new e(he.invalidCodeChallengeParams.code,he.invalidCodeChallengeParams.desc)},e.createInvalidCloudDiscoveryMetadataError=function(){return new e(he.invalidCloudDiscoveryMetadata.code,he.invalidCloudDiscoveryMetadata.desc)},e.createInvalidAuthorityMetadataError=function(){return new e(he.invalidAuthorityMetadata.code,he.invalidAuthorityMetadata.desc)},e.createUntrustedAuthorityError=function(){return new e(he.untrustedAuthority.code,he.untrustedAuthority.desc)},e.createInvalidAzureCloudInstanceError=function(){return new e(he.invalidAzureCloudInstance.code,he.invalidAzureCloudInstance.desc)},e.createMissingSshJwkError=function(){return new e(he.missingSshJwk.code,he.missingSshJwk.desc)},e.createMissingSshKidError=function(){return new e(he.missingSshKid.code,he.missingSshKid.desc)},e.createMissingNonceAuthenticationHeadersError=function(){return new e(he.missingNonceAuthenticationHeader.code,he.missingNonceAuthenticationHeader.desc)},e.createInvalidAuthenticationHeaderError=function(t,i){return new e(he.invalidAuthenticationHeader.code,he.invalidAuthenticationHeader.desc+". Invalid header: "+t+". Details: "+i)},e}(j);/*! @azure/msal-common v9.1.1 2023-01-19 */var g1=function(){function r(e){var t=this,i=e?F.trimArrayEntries(x4(e)):[],n=i?F.removeEmptyStringsFromArray(i):[];this.validateInputScopes(n),this.scopes=new Set,n.forEach(function(a){return t.scopes.add(a)})}return r.fromString=function(e){var t=e||w.EMPTY_STRING,i=t.split(" ");return new r(i)},r.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw Ye.createEmptyScopesArrayError()},r.prototype.containsScope=function(e){var t=this.printScopesLowerCase().split(" "),i=new r(t);return F.isEmpty(e)?!1:i.scopes.has(e.toLowerCase())},r.prototype.containsScopeSet=function(e){var t=this;return!e||e.scopes.size<=0?!1:this.scopes.size>=e.scopes.size&&e.asArray().every(function(i){return t.containsScope(i)})},r.prototype.containsOnlyOIDCScopes=function(){var e=this,t=0;return vm.forEach(function(i){e.containsScope(i)&&(t+=1)}),this.scopes.size===t},r.prototype.appendScope=function(e){F.isEmpty(e)||this.scopes.add(e.trim())},r.prototype.appendScopes=function(e){var t=this;try{e.forEach(function(i){return t.appendScope(i)})}catch(i){throw j.createAppendScopeSetError(i)}},r.prototype.removeScope=function(e){if(F.isEmpty(e))throw j.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},r.prototype.removeOIDCScopes=function(){var e=this;vm.forEach(function(t){e.scopes.delete(t)})},r.prototype.unionScopeSets=function(e){if(!e)throw j.createEmptyInputScopeSetError();var t=new Set;return e.scopes.forEach(function(i){return t.add(i.toLowerCase())}),this.scopes.forEach(function(i){return t.add(i.toLowerCase())}),t},r.prototype.intersectingScopeSets=function(e){if(!e)throw j.createEmptyInputScopeSetError();e.containsOnlyOIDCScopes()||e.removeOIDCScopes();var t=this.unionScopeSets(e),i=e.getScopeCount(),n=this.getScopeCount(),a=t.size;return a<n+i},r.prototype.getScopeCount=function(){return this.scopes.size},r.prototype.asArray=function(){var e=[];return this.scopes.forEach(function(t){return e.push(t)}),e},r.prototype.printScopes=function(){if(this.scopes){var e=this.asArray();return e.join(" ")}return w.EMPTY_STRING},r.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */function C0(r,e){if(F.isEmpty(r))throw j.createClientInfoEmptyError();try{var t=e.base64Decode(r);return JSON.parse(t)}catch(i){throw j.createClientInfoDecodingError(i.message)}}function b2(r){if(F.isEmpty(r))throw j.createClientInfoDecodingError("Home account ID was empty.");var e=r.split(T1.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?w.EMPTY_STRING:e[1]}}/*! @azure/msal-common v9.1.1 2023-01-19 */var ur;(function(r){r[r.Default=0]="Default",r[r.Adfs=1]="Adfs",r[r.Dsts=2]="Dsts"})(ur||(ur={}));/*! @azure/msal-common v9.1.1 2023-01-19 */var Wt=function(){function r(){}return r.prototype.generateAccountId=function(){var e=[this.homeAccountId,this.environment];return e.join(T1.CACHE_KEY_SEPARATOR).toLowerCase()},r.prototype.generateAccountKey=function(){return r.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},r.prototype.generateType=function(){switch(this.authorityType){case bi.ADFS_ACCOUNT_TYPE:return Ai.ADFS;case bi.MSAV1_ACCOUNT_TYPE:return Ai.MSA;case bi.MSSTS_ACCOUNT_TYPE:return Ai.MSSTS;case bi.GENERIC_ACCOUNT_TYPE:return Ai.GENERIC;default:throw j.createUnexpectedAccountTypeError()}},r.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}},r.generateAccountCacheKey=function(e){var t=[e.homeAccountId,e.environment||w.EMPTY_STRING,e.tenantId||w.EMPTY_STRING];return t.join(T1.CACHE_KEY_SEPARATOR).toLowerCase()},r.createAccount=function(e,t,i,n,a,o,s,c){var l,h,d,u,v,m,f=new r;f.authorityType=bi.MSSTS_ACCOUNT_TYPE,f.clientInfo=e,f.homeAccountId=t,f.nativeAccountId=c;var C=s||n&&n.getPreferredCache();if(!C)throw j.createInvalidCacheEnvironmentError();if(f.environment=C,f.realm=((l=i==null?void 0:i.claims)===null||l===void 0?void 0:l.tid)||w.EMPTY_STRING,i){f.idTokenClaims=i.claims,f.localAccountId=((h=i==null?void 0:i.claims)===null||h===void 0?void 0:h.oid)||((d=i==null?void 0:i.claims)===null||d===void 0?void 0:d.sub)||w.EMPTY_STRING;var _=(u=i==null?void 0:i.claims)===null||u===void 0?void 0:u.preferred_username,p=!((v=i==null?void 0:i.claims)===null||v===void 0)&&v.emails?i.claims.emails[0]:null;f.username=_||p||w.EMPTY_STRING,f.name=(m=i==null?void 0:i.claims)===null||m===void 0?void 0:m.name}return f.cloudGraphHostName=a,f.msGraphHost=o,f},r.createGenericAccount=function(e,t,i,n,a,o){var s,c,l,h,d=new r;d.authorityType=i&&i.authorityType===ur.Adfs?bi.ADFS_ACCOUNT_TYPE:bi.GENERIC_ACCOUNT_TYPE,d.homeAccountId=e,d.realm=w.EMPTY_STRING;var u=o||i&&i.getPreferredCache();if(!u)throw j.createInvalidCacheEnvironmentError();return t&&(d.localAccountId=((s=t==null?void 0:t.claims)===null||s===void 0?void 0:s.oid)||((c=t==null?void 0:t.claims)===null||c===void 0?void 0:c.sub)||w.EMPTY_STRING,d.username=((l=t==null?void 0:t.claims)===null||l===void 0?void 0:l.upn)||w.EMPTY_STRING,d.name=((h=t==null?void 0:t.claims)===null||h===void 0?void 0:h.name)||w.EMPTY_STRING,d.idTokenClaims=t==null?void 0:t.claims),d.environment=u,d.cloudGraphHostName=n,d.msGraphHost=a,d},r.generateHomeAccountId=function(e,t,i,n,a){var o,s=!((o=a==null?void 0:a.claims)===null||o===void 0)&&o.sub?a.claims.sub:w.EMPTY_STRING;if(t===ur.Adfs||t===ur.Dsts)return s;if(e)try{var c=C0(e,n);if(!F.isEmpty(c.uid)&&!F.isEmpty(c.utid))return""+c.uid+T1.CLIENT_INFO_SEPARATOR+c.utid}catch{}return i.verbose("No client info in response"),s},r.isAccountEntity=function(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1},r.accountInfoIsEqual=function(e,t,i){if(!e||!t)return!1;var n=!0;if(i){var a=e.idTokenClaims||{},o=t.idTokenClaims||{};n=a.iat===o.iat&&a.nonce===o.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&&n},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var ui=function(){function r(e,t){if(F.isEmpty(e))throw j.createTokenNullOrEmptyError(e);this.rawToken=e,this.claims=r.extractTokenClaims(e,t)}return r.extractTokenClaims=function(e,t){var i=F.decodeAuthToken(e);try{var n=i.JWSPayload,a=t.base64Decode(n);return JSON.parse(a)}catch(o){throw j.createTokenParsingError(o)}},r.checkMaxAge=function(e,t){var i=3e5;if(t===0||Date.now()-i>e+t)throw j.createMaxAgeTranspiredError()},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var Pr=function(){function r(e,t){this.clientId=e,this.cryptoImpl=t}return r.prototype.getAllAccounts=function(){var e=this,t=this.getAccountsFilteredBy(),i=Object.keys(t).map(function(o){return t[o]}),n=i.length;if(n<1)return[];var a=i.map(function(o){var s=r.toObject(new Wt,o),c=s.getAccountInfo(),l=e.readIdTokenFromCache(e.clientId,c);return l&&!c.idTokenClaims&&(c.idToken=l.secret,c.idTokenClaims=new ui(l.secret,e.cryptoImpl).claims),c});return a},r.prototype.saveCacheRecord=function(e){return ae(this,void 0,void 0,function(){return oe(this,function(t){switch(t.label){case 0:if(!e)throw j.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]}})})},r.prototype.saveAccessToken=function(e){return ae(this,void 0,void 0,function(){var t,i,n,a,o=this;return oe(this,function(s){switch(s.label){case 0:return t=this.getCredentialsFilteredBy({clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash}),i=g1.fromString(e.target),n=Object.keys(t.accessTokens).map(function(c){return t.accessTokens[c]}),n?(a=[],n.forEach(function(c){var l=g1.fromString(c.target);l.intersectingScopeSets(i)&&a.push(o.removeCredential(c))}),[4,Promise.all(a)]):[3,2];case 1:s.sent(),s.label=2;case 2:return this.setAccessTokenCredential(e),[2]}})})},r.prototype.getAccountsFilteredBy=function(e){return this.getAccountsFilteredByInternal(e?e.homeAccountId:w.EMPTY_STRING,e?e.environment:w.EMPTY_STRING,e?e.realm:w.EMPTY_STRING,e?e.nativeAccountId:w.EMPTY_STRING)},r.prototype.getAccountsFilteredByInternal=function(e,t,i,n){var a=this,o=this.getKeys(),s={};return o.forEach(function(c){var l=a.getAccount(c);l&&(e&&!a.matchHomeAccountId(l,e)||t&&!a.matchEnvironment(l,t)||i&&!a.matchRealm(l,i)||n&&!a.matchNativeAccountId(l,n)||(s[c]=l))}),s},r.prototype.getCredentialsFilteredBy=function(e){return this.getCredentialsFilteredByInternal(e.homeAccountId,e.environment,e.credentialType,e.clientId,e.familyId,e.realm,e.target,e.userAssertionHash,e.tokenType,e.keyId,e.requestedClaimsHash)},r.prototype.getCredentialsFilteredByInternal=function(e,t,i,n,a,o,s,c,l,h,d){var u=this,v=this.getKeys(),m={idTokens:{},accessTokens:{},refreshTokens:{}};return v.forEach(function(f){var C=Hc.getCredentialType(f);if(C!==w.NOT_DEFINED){var _=u.getSpecificCredential(f,C);if(_&&!(c&&!u.matchUserAssertionHash(_,c))&&!(typeof e=="string"&&!u.matchHomeAccountId(_,e))&&!(t&&!u.matchEnvironment(_,t))&&!(o&&!u.matchRealm(_,o))&&!(i&&!u.matchCredentialType(_,i))&&!(n&&!u.matchClientId(_,n))&&!(a&&!u.matchFamilyId(_,a))&&!(s&&!u.matchTarget(_,s))&&!((d||_.requestedClaimsHash)&&_.requestedClaimsHash!==d)&&!(i===Me.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(l&&!u.matchTokenType(_,l)||l===Ie.SSH&&h&&!u.matchKeyId(_,h)))){var p=u.updateCredentialCacheKey(f,_);switch(C){case Me.ID_TOKEN:m.idTokens[p]=_;break;case Me.ACCESS_TOKEN:case Me.ACCESS_TOKEN_WITH_AUTH_SCHEME:m.accessTokens[p]=_;break;case Me.REFRESH_TOKEN:m.refreshTokens[p]=_;break}}}}),m},r.prototype.getAppMetadataFilteredBy=function(e){return this.getAppMetadataFilteredByInternal(e.environment,e.clientId)},r.prototype.getAppMetadataFilteredByInternal=function(e,t){var i=this,n=this.getKeys(),a={};return n.forEach(function(o){if(i.isAppMetadata(o)){var s=i.getAppMetadata(o);s&&(e&&!i.matchEnvironment(s,e)||t&&!i.matchClientId(s,t)||(a[o]=s))}}),a},r.prototype.getAuthorityMetadataByAlias=function(e){var t=this,i=this.getAuthorityMetadataKeys(),n=null;return i.forEach(function(a){if(!(!t.isAuthorityMetadata(a)||a.indexOf(t.clientId)===-1)){var o=t.getAuthorityMetadata(a);o&&o.aliases.indexOf(e)!==-1&&(n=o)}}),n},r.prototype.removeAllAccounts=function(){return ae(this,void 0,void 0,function(){var e,t,i=this;return oe(this,function(n){switch(n.label){case 0:return e=this.getKeys(),t=[],e.forEach(function(a){var o=i.getAccount(a);o&&t.push(i.removeAccount(a))}),[4,Promise.all(t)];case 1:return n.sent(),[2,!0]}})})},r.prototype.removeAccount=function(e){return ae(this,void 0,void 0,function(){var t;return oe(this,function(i){switch(i.label){case 0:if(t=this.getAccount(e),!t)throw j.createNoAccountFoundError();return[4,this.removeAccountContext(t)];case 1:return[2,i.sent()&&this.removeItem(e,wa.ACCOUNT)]}})})},r.prototype.removeAccountContext=function(e){return ae(this,void 0,void 0,function(){var t,i,n,a=this;return oe(this,function(o){switch(o.label){case 0:return t=this.getKeys(),i=e.generateAccountId(),n=[],t.forEach(function(s){var c=Hc.getCredentialType(s);if(c!==w.NOT_DEFINED){var l=a.getSpecificCredential(s,c);l&&i===l.generateAccountId()&&n.push(a.removeCredential(l))}}),[4,Promise.all(n)];case 1:return o.sent(),[2,!0]}})})},r.prototype.removeCredential=function(e){return ae(this,void 0,void 0,function(){var t,i,n;return oe(this,function(a){switch(a.label){case 0:if(t=e.generateCredentialKey(),e.credentialType.toLowerCase()!==Me.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(e.tokenType!==Ie.POP)return[3,4];if(i=e,n=i.keyId,!n)return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.cryptoImpl.removeTokenBindingKey(n)];case 2:return a.sent(),[3,4];case 3:throw a.sent(),j.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(t,wa.CREDENTIAL)]}})})},r.prototype.removeAppMetadata=function(){var e=this,t=this.getKeys();return t.forEach(function(i){e.isAppMetadata(i)&&e.removeItem(i,wa.APP_METADATA)}),!0},r.prototype.readCacheRecord=function(e,t,i,n){var a=this.readAccountFromCache(e),o=this.readIdTokenFromCache(t,e),s=this.readAccessTokenFromCache(t,e,i),c=this.readRefreshTokenFromCache(t,e,!1),l=this.readAppMetadataFromCache(n,t);return a&&o&&(a.idTokenClaims=new ui(o.secret,this.cryptoImpl).claims),{account:a,idToken:o,accessToken:s,refreshToken:c,appMetadata:l}},r.prototype.readAccountFromCache=function(e){var t=Wt.generateAccountCacheKey(e);return this.getAccount(t)},r.prototype.readAccountFromCacheWithNativeAccountId=function(e){var t={nativeAccountId:e},i=this.getAccountsFilteredBy(t),n=Object.keys(i).map(function(a){return i[a]});if(n.length<1)return null;if(n.length>1)throw j.createMultipleMatchingAccountsInCacheError();return i[0]},r.prototype.readIdTokenFromCache=function(e,t){var i={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:Me.ID_TOKEN,clientId:e,realm:t.tenantId},n=this.getCredentialsFilteredBy(i),a=Object.keys(n.idTokens).map(function(s){return n.idTokens[s]}),o=a.length;if(o<1)return null;if(o>1)throw j.createMultipleMatchingTokensInCacheError();return a[0]},r.prototype.readAccessTokenFromCache=function(e,t,i){var n=new g1(i.scopes||[]),a=i.authenticationScheme||Ie.BEARER,o=a&&a.toLowerCase()!==Ie.BEARER.toLowerCase()?Me.ACCESS_TOKEN_WITH_AUTH_SCHEME:Me.ACCESS_TOKEN,s={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:o,clientId:e,realm:t.tenantId,target:n.printScopesLowerCase(),tokenType:a,keyId:i.sshKid,requestedClaimsHash:i.requestedClaimsHash},c=this.getCredentialsFilteredBy(s),l=Object.keys(c.accessTokens).map(function(d){return c.accessTokens[d]}),h=l.length;if(h<1)return null;if(h>1)throw j.createMultipleMatchingTokensInCacheError();return l[0]},r.prototype.readRefreshTokenFromCache=function(e,t,i){var n=i?b0:void 0,a={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:Me.REFRESH_TOKEN,clientId:e,familyId:n},o=this.getCredentialsFilteredBy(a),s=Object.keys(o.refreshTokens).map(function(l){return o.refreshTokens[l]}),c=s.length;return c<1?null:s[0]},r.prototype.readAppMetadataFromCache=function(e,t){var i={environment:e,clientId:t},n=this.getAppMetadataFilteredBy(i),a=Object.keys(n).map(function(s){return n[s]}),o=a.length;if(o<1)return null;if(o>1)throw j.createMultipleMatchingAppMetadataInCacheError();return a[0]},r.prototype.isAppMetadataFOCI=function(e,t){var i=this.readAppMetadataFromCache(e,t);return!!(i&&i.familyId===b0)},r.prototype.matchHomeAccountId=function(e,t){return typeof e.homeAccountId=="string"&&t===e.homeAccountId},r.prototype.matchUserAssertionHash=function(e,t){return!!(e.userAssertionHash&&t===e.userAssertionHash)},r.prototype.matchEnvironment=function(e,t){var i=this.getAuthorityMetadataByAlias(t);return!!(i&&i.aliases.indexOf(e.environment)>-1)},r.prototype.matchCredentialType=function(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()},r.prototype.matchClientId=function(e,t){return!!(e.clientId&&t===e.clientId)},r.prototype.matchFamilyId=function(e,t){return!!(e.familyId&&t===e.familyId)},r.prototype.matchRealm=function(e,t){return!!(e.realm&&t===e.realm)},r.prototype.matchNativeAccountId=function(e,t){return!!(e.nativeAccountId&&t===e.nativeAccountId)},r.prototype.matchTarget=function(e,t){var i=e.credentialType!==Me.ACCESS_TOKEN&&e.credentialType!==Me.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(i||!e.target)return!1;var n=g1.fromString(e.target),a=g1.fromString(t);return a.containsOnlyOIDCScopes()?a.removeScope(w.OFFLINE_ACCESS_SCOPE):a.removeOIDCScopes(),n.containsScopeSet(a)},r.prototype.matchTokenType=function(e,t){return!!(e.tokenType&&e.tokenType===t)},r.prototype.matchKeyId=function(e,t){return!!(e.keyId&&e.keyId===t)},r.prototype.isAppMetadata=function(e){return e.indexOf(j3)!==-1},r.prototype.isAuthorityMetadata=function(e){return e.indexOf(Ks.CACHE_KEY)!==-1},r.prototype.generateAuthorityMetadataCacheKey=function(e){return Ks.CACHE_KEY+"-"+this.clientId+"-"+e},r.prototype.getSpecificCredential=function(e,t){switch(t){case Me.ID_TOKEN:return this.getIdTokenCredential(e);case Me.ACCESS_TOKEN:case Me.ACCESS_TOKEN_WITH_AUTH_SCHEME:return this.getAccessTokenCredential(e);case Me.REFRESH_TOKEN:return this.getRefreshTokenCredential(e);default:return null}},r.toObject=function(e,t){for(var i in t)e[i]=t[i];return e},r}(),FC=function(r){F1(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.setAccount=function(){var t="Storage interface - setAccount() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.getAccount=function(){var t="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.setIdTokenCredential=function(){var t="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.getIdTokenCredential=function(){var t="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.setAccessTokenCredential=function(){var t="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.getAccessTokenCredential=function(){var t="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.setRefreshTokenCredential=function(){var t="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.getRefreshTokenCredential=function(){var t="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.setAppMetadata=function(){var t="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.getAppMetadata=function(){var t="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.setServerTelemetry=function(){var t="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.getServerTelemetry=function(){var t="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.setAuthorityMetadata=function(){var t="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.getAuthorityMetadata=function(){var t="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.getAuthorityMetadataKeys=function(){var t="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.setThrottlingCache=function(){var t="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.getThrottlingCache=function(){var t="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.removeItem=function(){var t="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.containsKey=function(){var t="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.getKeys=function(){var t="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.clear=function(){return ae(this,void 0,void 0,function(){var t;return oe(this,function(i){throw t="Storage interface - clear() has not been implemented for the cacheStorage interface.",Q.createUnexpectedError(t)})})},e.prototype.updateCredentialCacheKey=function(){var t="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e}(Pr);/*! @azure/msal-common v9.1.1 2023-01-19 */var BC=300,L_={tokenRenewalOffsetSeconds:BC,preventCorsPreflight:!1,proxyUrl:w.EMPTY_STRING},jC={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:ot.Info,correlationId:w.EMPTY_STRING},qC={sendGetRequestAsync:function(){return ae(this,void 0,void 0,function(){var r;return oe(this,function(e){throw r="Network interface - sendGetRequestAsync() has not been implemented",Q.createUnexpectedError(r)})})},sendPostRequestAsync:function(){return ae(this,void 0,void 0,function(){var r;return oe(this,function(e){throw r="Network interface - sendPostRequestAsync() has not been implemented",Q.createUnexpectedError(r)})})}},GC={sku:w.SKU,version:D_,cpu:w.EMPTY_STRING,os:w.EMPTY_STRING},KC={clientSecret:w.EMPTY_STRING,clientAssertion:void 0},WC={azureCloudInstance:Cc.None,tenant:""+w.DEFAULT_COMMON_TENANT},YC={application:{appName:"",appVersion:""}};function QC(r){var e=r.authOptions,t=r.systemOptions,i=r.loggerOptions,n=r.storageInterface,a=r.networkInterface,o=r.cryptoInterface,s=r.clientCredentials,c=r.libraryInfo,l=r.telemetry,h=r.serverTelemetryManager,d=r.persistencePlugin,u=r.serializableCache,v=Ue(Ue({},jC),i);return{authOptions:XC(e),systemOptions:Ue(Ue({},L_),t),loggerOptions:v,storageInterface:n||new FC(e.clientId,M0),networkInterface:a||qC,cryptoInterface:o||M0,clientCredentials:s||KC,libraryInfo:Ue(Ue({},GC),c),telemetry:Ue(Ue({},YC),l),serverTelemetryManager:h||null,persistencePlugin:d||null,serializableCache:u||null}}function XC(r){return Ue({clientCapabilities:[],azureCloudOptions:WC,skipAuthorityMetadataCache:!1},r)}/*! @azure/msal-common v9.1.1 2023-01-19 */var Aa=function(r){F1(e,r);function e(t,i,n){var a=r.call(this,t,i,n)||this;return a.name="ServerError",Object.setPrototypeOf(a,e.prototype),a}return e}(Q);/*! @azure/msal-common v9.1.1 2023-01-19 */var H0=function(){function r(){}return r.generateThrottlingStorageKey=function(e){return Ws.THROTTLING_PREFIX+"."+JSON.stringify(e)},r.preProcess=function(e,t){var i,n=r.generateThrottlingStorageKey(t),a=e.getThrottlingCache(n);if(a){if(a.throttleTime<Date.now()){e.removeItem(n,wa.THROTTLING);return}throw new Aa(((i=a.errorCodes)===null||i===void 0?void 0:i.join(" "))||w.EMPTY_STRING,a.errorMessage,a.subError)}},r.postProcess=function(e,t,i){if(r.checkResponseStatus(i)||r.checkResponseForRetryAfter(i)){var n={throttleTime:r.calculateThrottleTime(parseInt(i.headers[X1.RETRY_AFTER])),error:i.body.error,errorCodes:i.body.error_codes,errorMessage:i.body.error_description,subError:i.body.suberror};e.setThrottlingCache(r.generateThrottlingStorageKey(t),n)}},r.checkResponseStatus=function(e){return e.status===429||e.status>=500&&e.status<600},r.checkResponseForRetryAfter=function(e){return e.headers?e.headers.hasOwnProperty(X1.RETRY_AFTER)&&(e.status<200||e.status>=300):!1},r.calculateThrottleTime=function(e){var t=e<=0?0:e,i=Date.now()/1e3;return Math.floor(Math.min(i+(t||Ws.DEFAULT_THROTTLE_TIME_SECONDS),i+Ws.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)},r.removeThrottle=function(e,t,i,n){var a={clientId:t,authority:i.authority,scopes:i.scopes,homeAccountIdentifier:n,claims:i.claims,authenticationScheme:i.authenticationScheme,resourceRequestMethod:i.resourceRequestMethod,resourceRequestUri:i.resourceRequestUri,shrClaims:i.shrClaims,sshKid:i.sshKid},o=this.generateThrottlingStorageKey(a);return e.removeItem(o,wa.THROTTLING)},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var JC=function(){function r(e,t){this.networkClient=e,this.cacheManager=t}return r.prototype.sendPostRequest=function(e,t,i){return ae(this,void 0,void 0,function(){var n,a;return oe(this,function(o){switch(o.label){case 0:H0.preProcess(this.cacheManager,e),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(t,i)];case 2:return n=o.sent(),[3,4];case 3:throw a=o.sent(),a instanceof Q?a:j.createNetworkError(t,a);case 4:return H0.postProcess(this.cacheManager,e,n),[2,n]}})})},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var Y1;(function(r){r.HOME_ACCOUNT_ID="home_account_id",r.UPN="UPN"})(Y1||(Y1={}));/*! @azure/msal-common v9.1.1 2023-01-19 */var a6=function(){function r(e,t){this.config=QC(e),this.logger=new n6(this.config.loggerOptions,UC,D_),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new JC(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}return r.prototype.createTokenRequestHeaders=function(e){var t={};if(t[X1.CONTENT_TYPE]=w.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case Y1.HOME_ACCOUNT_ID:try{var i=b2(e.credential);t[X1.CCS_HEADER]="Oid:"+i.uid+"@"+i.utid}catch(n){this.logger.verbose("Could not parse home account ID for CCS Header: "+n)}break;case Y1.UPN:t[X1.CCS_HEADER]="UPN: "+e.credential;break}return t},r.prototype.executePostToTokenEndpoint=function(e,t,i,n){return ae(this,void 0,void 0,function(){var a;return oe(this,function(o){switch(o.label){case 0:return[4,this.networkManager.sendPostRequest(n,e,{body:t,headers:i,proxyUrl:this.config.systemOptions.proxyUrl})];case 1:return a=o.sent(),this.config.serverTelemetryManager&&a.status<500&&a.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,a]}})})},r.prototype.updateAuthority=function(e){if(!e.discoveryComplete())throw j.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var aa=function(){function r(){}return r.validateRedirectUri=function(e){if(F.isEmpty(e))throw Ye.createRedirectUriEmptyError()},r.validatePrompt=function(e){var t=[];for(var i in d1)t.push(d1[i]);if(t.indexOf(e)<0)throw Ye.createInvalidPromptError(e)},r.validateClaims=function(e){try{JSON.parse(e)}catch{throw Ye.createInvalidClaimsRequestError()}},r.validateCodeChallengeParams=function(e,t){if(F.isEmpty(e)||F.isEmpty(t))throw Ye.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(t)},r.validateCodeChallengeMethod=function(e){if([mm.PLAIN,mm.S256].indexOf(e)<0)throw Ye.createInvalidCodeChallengeMethodError()},r.sanitizeEQParams=function(e,t){return e?(t.forEach(function(i,n){e[n]&&delete e[n]}),e):{}},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var x2=function(){function r(){this.parameters=new Map}return r.prototype.addResponseTypeCode=function(){this.parameters.set(de.RESPONSE_TYPE,encodeURIComponent(w.CODE_RESPONSE_TYPE))},r.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(de.RESPONSE_TYPE,encodeURIComponent(w.TOKEN_RESPONSE_TYPE+" "+w.ID_TOKEN_RESPONSE_TYPE))},r.prototype.addResponseMode=function(e){this.parameters.set(de.RESPONSE_MODE,encodeURIComponent(e||y0.QUERY))},r.prototype.addNativeBroker=function(){this.parameters.set(de.NATIVE_BROKER,encodeURIComponent("1"))},r.prototype.addScopes=function(e,t){t===void 0&&(t=!0);var i=t?x4(e||[],rl):e||[],n=new g1(i);this.parameters.set(de.SCOPE,encodeURIComponent(n.printScopes()))},r.prototype.addClientId=function(e){this.parameters.set(de.CLIENT_ID,encodeURIComponent(e))},r.prototype.addRedirectUri=function(e){aa.validateRedirectUri(e),this.parameters.set(de.REDIRECT_URI,encodeURIComponent(e))},r.prototype.addPostLogoutRedirectUri=function(e){aa.validateRedirectUri(e),this.parameters.set(de.POST_LOGOUT_URI,encodeURIComponent(e))},r.prototype.addIdTokenHint=function(e){this.parameters.set(de.ID_TOKEN_HINT,encodeURIComponent(e))},r.prototype.addDomainHint=function(e){this.parameters.set(Gs.DOMAIN_HINT,encodeURIComponent(e))},r.prototype.addLoginHint=function(e){this.parameters.set(Gs.LOGIN_HINT,encodeURIComponent(e))},r.prototype.addCcsUpn=function(e){this.parameters.set(X1.CCS_HEADER,encodeURIComponent("UPN:"+e))},r.prototype.addCcsOid=function(e){this.parameters.set(X1.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},r.prototype.addSid=function(e){this.parameters.set(Gs.SID,encodeURIComponent(e))},r.prototype.addClaims=function(e,t){var i=this.addClientCapabilitiesToClaims(e,t);aa.validateClaims(i),this.parameters.set(de.CLAIMS,encodeURIComponent(i))},r.prototype.addCorrelationId=function(e){this.parameters.set(de.CLIENT_REQUEST_ID,encodeURIComponent(e))},r.prototype.addLibraryInfo=function(e){this.parameters.set(de.X_CLIENT_SKU,e.sku),this.parameters.set(de.X_CLIENT_VER,e.version),e.os&&this.parameters.set(de.X_CLIENT_OS,e.os),e.cpu&&this.parameters.set(de.X_CLIENT_CPU,e.cpu)},r.prototype.addApplicationTelemetry=function(e){e!=null&&e.appName&&this.parameters.set(de.X_APP_NAME,e.appName),e!=null&&e.appVersion&&this.parameters.set(de.X_APP_VER,e.appVersion)},r.prototype.addPrompt=function(e){aa.validatePrompt(e),this.parameters.set(""+de.PROMPT,encodeURIComponent(e))},r.prototype.addState=function(e){F.isEmpty(e)||this.parameters.set(de.STATE,encodeURIComponent(e))},r.prototype.addNonce=function(e){this.parameters.set(de.NONCE,encodeURIComponent(e))},r.prototype.addCodeChallengeParams=function(e,t){if(aa.validateCodeChallengeParams(e,t),e&&t)this.parameters.set(de.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(de.CODE_CHALLENGE_METHOD,encodeURIComponent(t));else throw Ye.createInvalidCodeChallengeParamsError()},r.prototype.addAuthorizationCode=function(e){this.parameters.set(de.CODE,encodeURIComponent(e))},r.prototype.addDeviceCode=function(e){this.parameters.set(de.DEVICE_CODE,encodeURIComponent(e))},r.prototype.addRefreshToken=function(e){this.parameters.set(de.REFRESH_TOKEN,encodeURIComponent(e))},r.prototype.addCodeVerifier=function(e){this.parameters.set(de.CODE_VERIFIER,encodeURIComponent(e))},r.prototype.addClientSecret=function(e){this.parameters.set(de.CLIENT_SECRET,encodeURIComponent(e))},r.prototype.addClientAssertion=function(e){F.isEmpty(e)||this.parameters.set(de.CLIENT_ASSERTION,encodeURIComponent(e))},r.prototype.addClientAssertionType=function(e){F.isEmpty(e)||this.parameters.set(de.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},r.prototype.addOboAssertion=function(e){this.parameters.set(de.OBO_ASSERTION,encodeURIComponent(e))},r.prototype.addRequestTokenUse=function(e){this.parameters.set(de.REQUESTED_TOKEN_USE,encodeURIComponent(e))},r.prototype.addGrantType=function(e){this.parameters.set(de.GRANT_TYPE,encodeURIComponent(e))},r.prototype.addClientInfo=function(){this.parameters.set(NC,"1")},r.prototype.addExtraQueryParameters=function(e){var t=this;aa.sanitizeEQParams(e,this.parameters),Object.keys(e).forEach(function(i){t.parameters.set(i,e[i])})},r.prototype.addClientCapabilitiesToClaims=function(e,t){var i;if(!e)i={};else try{i=JSON.parse(e)}catch{throw Ye.createInvalidClaimsRequestError()}return t&&t.length>0&&(i.hasOwnProperty(y2.ACCESS_TOKEN)||(i[y2.ACCESS_TOKEN]={}),i[y2.ACCESS_TOKEN][y2.XMS_CC]={values:t}),JSON.stringify(i)},r.prototype.addUsername=function(e){this.parameters.set(x0.username,encodeURIComponent(e))},r.prototype.addPassword=function(e){this.parameters.set(x0.password,encodeURIComponent(e))},r.prototype.addPopToken=function(e){F.isEmpty(e)||(this.parameters.set(de.TOKEN_TYPE,Ie.POP),this.parameters.set(de.REQ_CNF,encodeURIComponent(e)))},r.prototype.addSshJwk=function(e){F.isEmpty(e)||(this.parameters.set(de.TOKEN_TYPE,Ie.SSH),this.parameters.set(de.REQ_CNF,encodeURIComponent(e)))},r.prototype.addServerTelemetry=function(e){this.parameters.set(de.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(de.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},r.prototype.addThrottling=function(){this.parameters.set(de.X_MS_LIB_CAPABILITY,Ws.X_MS_LIB_CAPABILITY_VALUE)},r.prototype.addLogoutHint=function(e){this.parameters.set(de.LOGOUT_HINT,encodeURIComponent(e))},r.prototype.createQueryString=function(){var e=new Array;return this.parameters.forEach(function(t,i){e.push(i+"="+t)}),e.join("&")},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var kc=function(r){F1(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.createIdTokenEntity=function(t,i,n,a,o){var s=new e;return s.credentialType=Me.ID_TOKEN,s.homeAccountId=t,s.environment=i,s.clientId=a,s.secret=n,s.realm=o,s},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===Me.ID_TOKEN:!1},e}(Hc);/*! @azure/msal-common v9.1.1 2023-01-19 */var gr=function(){function r(){}return r.nowSeconds=function(){return Math.round(new Date().getTime()/1e3)},r.isTokenExpired=function(e,t){var i=Number(e)||0,n=r.nowSeconds()+t;return n>i},r.wasClockTurnedBack=function(e){var t=Number(e);return t>r.nowSeconds()},r.delay=function(e,t){return new Promise(function(i){return setTimeout(function(){return i(t)},e)})},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var Ec=function(r){F1(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.createAccessTokenEntity=function(t,i,n,a,o,s,c,l,h,d,u,v,m,f,C){var _,p,z=new e;z.homeAccountId=t,z.credentialType=Me.ACCESS_TOKEN,z.secret=n;var M=gr.nowSeconds();if(z.cachedAt=M.toString(),z.expiresOn=c.toString(),z.extendedExpiresOn=l.toString(),d&&(z.refreshOn=d.toString()),z.environment=i,z.clientId=a,z.realm=o,z.target=s,z.userAssertionHash=v,z.tokenType=F.isEmpty(u)?Ie.BEARER:u,f&&(z.requestedClaims=f,z.requestedClaimsHash=C),((_=z.tokenType)===null||_===void 0?void 0:_.toLowerCase())!==Ie.BEARER.toLowerCase())switch(z.credentialType=Me.ACCESS_TOKEN_WITH_AUTH_SCHEME,z.tokenType){case Ie.POP:var A=ui.extractTokenClaims(n,h);if(!(!((p=A==null?void 0:A.cnf)===null||p===void 0)&&p.kid))throw j.createTokenClaimsRequiredError();z.keyId=A.cnf.kid;break;case Ie.SSH:z.keyId=m}return z},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===Me.ACCESS_TOKEN||t.credentialType===Me.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1},e}(Hc);/*! @azure/msal-common v9.1.1 2023-01-19 */var k0=function(r){F1(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.createRefreshTokenEntity=function(t,i,n,a,o,s){var c=new e;return c.clientId=a,c.credentialType=Me.REFRESH_TOKEN,c.environment=i,c.homeAccountId=t,c.secret=n,c.userAssertionHash=s,o&&(c.familyId=o),c},e.isRefreshTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===Me.REFRESH_TOKEN:!1},e}(Hc);/*! @azure/msal-common v9.1.1 2023-01-19 */var pm=["interaction_required","consent_required","login_required"],ZC=["message_only","additional_action","basic_action","user_password_expired","consent_required"],ws={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."}},Tr=function(r){F1(e,r);function e(t,i,n){var a=r.call(this,t,i,n)||this;return a.name="InteractionRequiredAuthError",Object.setPrototypeOf(a,e.prototype),a}return e.isInteractionRequiredError=function(t,i,n){var a=!!t&&pm.indexOf(t)>-1,o=!!n&&ZC.indexOf(n)>-1,s=!!i&&pm.some(function(c){return i.indexOf(c)>-1});return a||s||o},e.createNoTokensFoundError=function(){return new e(ws.noTokensFoundError.code,ws.noTokensFoundError.desc)},e.createNativeAccountUnavailableError=function(){return new e(ws.native_account_unavailable.code,ws.native_account_unavailable.desc)},e}(Q);/*! @azure/msal-common v9.1.1 2023-01-19 */var Ch=function(){function r(e,t,i,n,a){this.account=e||null,this.idToken=t||null,this.accessToken=i||null,this.refreshToken=n||null,this.appMetadata=a||null}return r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var Di=function(){function r(){}return r.setRequestState=function(e,t,i){var n=r.generateLibraryState(e,i);return F.isEmpty(t)?n:""+n+w.RESOURCE_DELIM+t},r.generateLibraryState=function(e,t){if(!e)throw j.createNoCryptoObjectError("generateLibraryState");var i={id:e.createNewGuid()};t&&(i.meta=t);var n=JSON.stringify(i);return e.base64Encode(n)},r.parseRequestState=function(e,t){if(!e)throw j.createNoCryptoObjectError("parseRequestState");if(F.isEmpty(t))throw j.createInvalidStateError(t,"Null, undefined or empty state");try{var i=t.split(w.RESOURCE_DELIM),n=i[0],a=i.length>1?i.slice(1).join(w.RESOURCE_DELIM):w.EMPTY_STRING,o=e.base64Decode(n),s=JSON.parse(o);return{userRequestState:F.isEmpty(a)?w.EMPTY_STRING:a,libraryState:s}}catch(c){throw j.createInvalidStateError(t,c)}},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var ke=function(){function r(e){if(this._urlString=e,F.isEmpty(this._urlString))throw Ye.createUrlEmptyError();F.isEmpty(this.getHash())&&(this._urlString=r.canonicalizeUri(e))}return Object.defineProperty(r.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),r.canonicalizeUri=function(e){if(e){var t=e.toLowerCase();return F.endsWith(t,"?")?t=t.slice(0,-1):F.endsWith(t,"?/")&&(t=t.slice(0,-2)),F.endsWith(t,"/")||(t+="/"),t}return e},r.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(t){throw Ye.createUrlParseError(t)}if(!e.HostNameAndPort||!e.PathSegments)throw Ye.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw Ye.createInsecureAuthorityUriError(this.urlString)},r.appendQueryString=function(e,t){return F.isEmpty(t)?e:e.indexOf("?")<0?e+"?"+t:e+"&"+t},r.removeHashFromUrl=function(e){return r.canonicalizeUri(e.split("#")[0])},r.prototype.replaceTenantPath=function(e){var t=this.getUrlComponents(),i=t.PathSegments;return e&&i.length!==0&&(i[0]===z0.COMMON||i[0]===z0.ORGANIZATIONS)&&(i[0]=e),r.constructAuthorityUriFromObject(t)},r.prototype.getHash=function(){return r.parseHash(this.urlString)},r.prototype.getUrlComponents=function(){var e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw Ye.createUrlParseError("Given url string: "+this.urlString);var i={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]},n=i.AbsolutePath.split("/");return n=n.filter(function(a){return a&&a.length>0}),i.PathSegments=n,!F.isEmpty(i.QueryString)&&i.QueryString.endsWith("/")&&(i.QueryString=i.QueryString.substring(0,i.QueryString.length-1)),i},r.getDomainFromUrl=function(e){var t=RegExp("^([^:/?#]+://)?([^/?#]*)"),i=e.match(t);if(!i)throw Ye.createUrlParseError("Given url string: "+e);return i[2]},r.getAbsoluteUrl=function(e,t){if(e[0]===w.FORWARD_SLASH){var i=new r(t),n=i.getUrlComponents();return n.Protocol+"//"+n.HostNameAndPort+e}return e},r.parseHash=function(e){var t=e.indexOf("#"),i=e.indexOf("#/");return i>-1?e.substring(i+2):t>-1?e.substring(t+1):w.EMPTY_STRING},r.parseQueryString=function(e){var t=e.indexOf("?"),i=e.indexOf("/?");return i>-1?e.substring(i+2):t>-1?e.substring(t+1):w.EMPTY_STRING},r.constructAuthorityUriFromObject=function(e){return new r(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))},r.getDeserializedHash=function(e){if(F.isEmpty(e))return{};var t=r.parseHash(e),i=F.queryStringToObject(F.isEmpty(t)?e:t);if(!i)throw j.createHashNotDeserializedError(JSON.stringify(i));return i},r.getDeserializedQueryString=function(e){if(F.isEmpty(e))return{};var t=r.parseQueryString(e),i=F.queryStringToObject(F.isEmpty(t)?e:t);if(!i)throw j.createHashNotDeserializedError(JSON.stringify(i));return i},r.hashContainsKnownProperties=function(e){if(F.isEmpty(e)||e.indexOf("=")<0)return!1;var t=r.getDeserializedHash(e);return!!(t.code||t.error_description||t.error||t.state)},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var G3;(function(r){r.SW="sw",r.UHW="uhw"})(G3||(G3={}));var to=function(){function r(e){this.cryptoUtils=e}return r.prototype.generateCnf=function(e){return ae(this,void 0,void 0,function(){var t,i,n;return oe(this,function(a){switch(a.label){case 0:return[4,this.generateKid(e)];case 1:return t=a.sent(),i=this.cryptoUtils.base64Encode(JSON.stringify(t)),n={kid:t.kid,reqCnfString:i},[4,this.cryptoUtils.hashString(i)];case 2:return[2,(n.reqCnfHash=a.sent(),n)]}})})},r.prototype.generateKid=function(e){return ae(this,void 0,void 0,function(){var t;return oe(this,function(i){switch(i.label){case 0:return[4,this.cryptoUtils.getPublicKeyThumbprint(e)];case 1:return t=i.sent(),[2,{kid:t,xms_ksl:G3.SW}]}})})},r.prototype.signPopToken=function(e,t,i){return ae(this,void 0,void 0,function(){return oe(this,function(n){return[2,this.signPayload(e,t,i)]})})},r.prototype.signPayload=function(e,t,i,n){return ae(this,void 0,void 0,function(){var a,o,s,c,l,h;return oe(this,function(d){switch(d.label){case 0:return a=i.resourceRequestMethod,o=i.resourceRequestUri,s=i.shrClaims,c=i.shrNonce,l=o?new ke(o):void 0,h=l==null?void 0:l.getUrlComponents(),[4,this.cryptoUtils.signJwt(Ue({at:e,ts:gr.nowSeconds(),m:a==null?void 0:a.toUpperCase(),u:h==null?void 0:h.HostNameAndPort,nonce:c||this.cryptoUtils.createNewGuid(),p:h==null?void 0:h.AbsolutePath,q:h!=null&&h.QueryString?[[],h.QueryString]:void 0,client_claims:s||void 0},n),t,i.correlationId)];case 1:return[2,d.sent()]}})})},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var K3=function(){function r(){}return r.prototype.generateAppMetadataKey=function(){return r.generateAppMetadataCacheKey(this.environment,this.clientId)},r.generateAppMetadataCacheKey=function(e,t){var i=[j3,e,t];return i.join(T1.CACHE_KEY_SEPARATOR).toLowerCase()},r.createAppMetadataEntity=function(e,t,i){var n=new r;return n.clientId=e,n.environment=t,i&&(n.familyId=i),n},r.isAppMetadataEntity=function(e,t){return t?e.indexOf(j3)===0&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment"):!1},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var eH=function(){function r(e,t){this.cache=e,this.hasChanged=t}return Object.defineProperty(r.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var E0=function(){function r(e,t,i,n,a,o){this.clientId=e,this.cacheStorage=t,this.cryptoObj=i,this.logger=n,this.serializableCache=a,this.persistencePlugin=o}return r.prototype.validateServerAuthorizationCodeResponse=function(e,t,i){if(!e.state||!t)throw e.state?j.createStateNotFoundError("Cached State"):j.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(t))throw j.createStateMismatchError();if(e.error||e.error_description||e.suberror)throw Tr.isInteractionRequiredError(e.error,e.error_description,e.suberror)?new Tr(e.error||w.EMPTY_STRING,e.error_description,e.suberror):new Aa(e.error||w.EMPTY_STRING,e.error_description,e.suberror);e.client_info&&C0(e.client_info,i)},r.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(Tr.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new Tr(e.error,e.error_description,e.suberror);var t=e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id;throw new Aa(e.error,t,e.suberror)}},r.prototype.handleServerTokenResponse=function(e,t,i,n,a,o,s,c,l){return ae(this,void 0,void 0,function(){var h,d,u,v,m,f,C;return oe(this,function(_){switch(_.label){case 0:if(e.id_token){if(h=new ui(e.id_token||w.EMPTY_STRING,this.cryptoObj),a&&!F.isEmpty(a.nonce)&&h.claims.nonce!==a.nonce)throw j.createNonceMismatchError();if(n.maxAge||n.maxAge===0){if(d=h.claims.auth_time,!d)throw j.createAuthTimeNotFoundError();ui.checkMaxAge(d,n.maxAge)}}this.homeAccountIdentifier=Wt.generateHomeAccountId(e.client_info||w.EMPTY_STRING,t.authorityType,this.logger,this.cryptoObj,h),a&&a.state&&(u=Di.parseRequestState(this.cryptoObj,a.state)),e.key_id=e.key_id||n.sshKid||void 0,v=this.generateCacheRecord(e,t,i,n,h,o,a),_.label=1;case 1:return _.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),m=new eH(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(m)]):[3,3];case 2:_.sent(),_.label=3;case 3:return s&&!c&&v.account&&(f=v.account.generateAccountKey(),C=this.cacheStorage.getAccount(f),!C)?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,r.generateAuthenticationResult(this.cryptoObj,t,v,!1,n,h,u,void 0,l)]):[4,this.cacheStorage.saveCacheRecord(v)];case 4:return _.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&m?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(m)]):[3,7];case 6:_.sent(),_.label=7;case 7:return[7];case 8:return[2,r.generateAuthenticationResult(this.cryptoObj,t,v,!1,n,h,u,e.spa_code,l)]}})})},r.prototype.generateCacheRecord=function(e,t,i,n,a,o,s){var c=t.getPreferredCache();if(F.isEmpty(c))throw j.createInvalidCacheEnvironmentError();var l,h;!F.isEmpty(e.id_token)&&a&&(l=kc.createIdTokenEntity(this.homeAccountIdentifier,c,e.id_token||w.EMPTY_STRING,this.clientId,a.claims.tid||w.EMPTY_STRING),h=this.generateAccountEntity(e,a,t,s));var d=null;if(!F.isEmpty(e.access_token)){var u=e.scope?g1.fromString(e.scope):new g1(n.scopes||[]),v=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,m=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,f=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,C=i+v,_=C+m,p=f&&f>0?i+f:void 0;d=Ec.createAccessTokenEntity(this.homeAccountIdentifier,c,e.access_token||w.EMPTY_STRING,this.clientId,a?a.claims.tid||w.EMPTY_STRING:t.tenant,u.printScopes(),C,_,this.cryptoObj,p,e.token_type,o,e.key_id,n.claims,n.requestedClaimsHash)}var z=null;F.isEmpty(e.refresh_token)||(z=k0.createRefreshTokenEntity(this.homeAccountIdentifier,c,e.refresh_token||w.EMPTY_STRING,this.clientId,e.foci,o));var M=null;return F.isEmpty(e.foci)||(M=K3.createAppMetadataEntity(this.clientId,c,e.foci)),new Ch(h,l,d,z,M)},r.prototype.generateAccountEntity=function(e,t,i,n){var a=i.authorityType,o=n?n.cloud_graph_host_name:w.EMPTY_STRING,s=n?n.msgraph_host:w.EMPTY_STRING;if(a===ur.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),Wt.createGenericAccount(this.homeAccountIdentifier,t,i,o,s);if(F.isEmpty(e.client_info)&&i.protocolMode==="AAD")throw j.createClientInfoEmptyError();return e.client_info?Wt.createAccount(e.client_info,this.homeAccountIdentifier,t,i,o,s):Wt.createGenericAccount(this.homeAccountIdentifier,t,i,o,s)},r.generateAuthenticationResult=function(e,t,i,n,a,o,s,c,l){var h,d,u;return ae(this,void 0,void 0,function(){var v,m,f,C,_,p,z,M,A,I,N;return oe(this,function(U){switch(U.label){case 0:if(v=w.EMPTY_STRING,m=[],f=null,_=w.EMPTY_STRING,!i.accessToken)return[3,4];if(i.accessToken.tokenType!==Ie.POP)return[3,2];if(p=new to(e),z=i.accessToken,M=z.secret,A=z.keyId,!A)throw j.createKeyIdMissingError();return[4,p.signPopToken(M,A,a)];case 1:return v=U.sent(),[3,3];case 2:v=i.accessToken.secret,U.label=3;case 3:m=g1.fromString(i.accessToken.target).asArray(),f=new Date(Number(i.accessToken.expiresOn)*1e3),C=new Date(Number(i.accessToken.extendedExpiresOn)*1e3),U.label=4;case 4:return i.appMetadata&&(_=i.appMetadata.familyId===b0?b0:w.EMPTY_STRING),I=(o==null?void 0:o.claims.oid)||(o==null?void 0:o.claims.sub)||w.EMPTY_STRING,N=(o==null?void 0:o.claims.tid)||w.EMPTY_STRING,[2,{authority:t.canonicalAuthority,uniqueId:I,tenantId:N,scopes:m,account:i.account?i.account.getAccountInfo():null,idToken:o?o.rawToken:w.EMPTY_STRING,idTokenClaims:o?o.claims:{},accessToken:v,fromCache:n,expiresOn:f,correlationId:a.correlationId,requestId:l||w.EMPTY_STRING,extExpiresOn:C,familyId:_,tokenType:((h=i.accessToken)===null||h===void 0?void 0:h.tokenType)||w.EMPTY_STRING,state:s?s.userRequestState:w.EMPTY_STRING,cloudGraphHostName:((d=i.account)===null||d===void 0?void 0:d.cloudGraphHostName)||w.EMPTY_STRING,msGraphHost:((u=i.account)===null||u===void 0?void 0:u.msGraphHost)||w.EMPTY_STRING,code:c,fromNativeBroker:!1}]}})})},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var T_=function(r){F1(e,r);function e(t,i){var n=r.call(this,t,i)||this;return n.includeRedirectUri=!0,n}return e.prototype.getAuthCodeUrl=function(t){return ae(this,void 0,void 0,function(){var i;return oe(this,function(n){switch(n.label){case 0:return[4,this.createAuthCodeUrlQueryString(t)];case 1:return i=n.sent(),[2,ke.appendQueryString(this.authority.authorizationEndpoint,i)]}})})},e.prototype.acquireToken=function(t,i){var n,a,o;return ae(this,void 0,void 0,function(){var s,c,l,h,d,u,v=this;return oe(this,function(m){switch(m.label){case 0:if(s=(n=this.performanceClient)===null||n===void 0?void 0:n.startMeasurement("AuthCodeClientAcquireToken",t.correlationId),this.logger.info("in acquireToken call in auth-code client"),!t||F.isEmpty(t.code))throw j.createTokenRequestCannotBeMadeError();return c=gr.nowSeconds(),[4,this.executeTokenRequest(this.authority,t)];case 1:return l=m.sent(),h=(a=l.headers)===null||a===void 0?void 0:a[X1.X_MS_REQUEST_ID],d=(o=l.headers)===null||o===void 0?void 0:o[X1.X_MS_HTTP_VERSION],d&&(s==null||s.addStaticFields({httpVerAuthority:d})),u=new E0(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),u.validateTokenResponse(l.body),[2,u.handleServerTokenResponse(l.body,this.authority,c,t,i,void 0,void 0,void 0,h).then(function(f){return s==null||s.endMeasurement({success:!0}),f}).catch(function(f){throw v.logger.verbose("Error in fetching token in ACC",t.correlationId),s==null||s.endMeasurement({errorCode:f.errorCode,subErrorCode:f.subError,success:!1}),f})]}})})},e.prototype.handleFragmentResponse=function(t,i){var n=new E0(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),a=new ke(t),o=ke.getDeserializedHash(a.getHash());if(n.validateServerAuthorizationCodeResponse(o,i,this.cryptoUtils),!o.code)throw j.createNoAuthCodeInServerResponseError();return Ue(Ue({},o),{code:o.code})},e.prototype.getLogoutUri=function(t){if(!t)throw Ye.createEmptyLogoutRequestError();var i=this.createLogoutUrlQueryString(t);return ke.appendQueryString(this.authority.endSessionEndpoint,i)},e.prototype.executeTokenRequest=function(t,i){return ae(this,void 0,void 0,function(){var n,a,o,s,c,l,h;return oe(this,function(d){switch(d.label){case 0:return n={clientId:this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:i.scopes,claims:i.claims,authenticationScheme:i.authenticationScheme,resourceRequestMethod:i.resourceRequestMethod,resourceRequestUri:i.resourceRequestUri,shrClaims:i.shrClaims,sshKid:i.sshKid},[4,this.createTokenRequestBody(i)];case 1:if(a=d.sent(),o=this.createTokenQueryParameters(i),s=void 0,i.clientInfo)try{c=C0(i.clientInfo,this.cryptoUtils),s={credential:""+c.uid+T1.CLIENT_INFO_SEPARATOR+c.utid,type:Y1.HOME_ACCOUNT_ID}}catch(u){this.logger.verbose("Could not parse client info for CCS Header: "+u)}return l=this.createTokenRequestHeaders(s||i.ccsCredential),h=F.isEmpty(o)?t.tokenEndpoint:t.tokenEndpoint+"?"+o,[2,this.executePostToTokenEndpoint(h,a,l,n)]}})})},e.prototype.createTokenQueryParameters=function(t){var i=new x2;return t.tokenQueryParameters&&i.addExtraQueryParameters(t.tokenQueryParameters),i.createQueryString()},e.prototype.createTokenRequestBody=function(t){return ae(this,void 0,void 0,function(){var i,n,a,o,s,c,l,l,h;return oe(this,function(d){switch(d.label){case 0:return i=new x2,i.addClientId(this.config.authOptions.clientId),this.includeRedirectUri?i.addRedirectUri(t.redirectUri):aa.validateRedirectUri(t.redirectUri),i.addScopes(t.scopes),i.addAuthorizationCode(t.code),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addThrottling(),this.serverTelemetryManager&&i.addServerTelemetry(this.serverTelemetryManager),t.codeVerifier&&i.addCodeVerifier(t.codeVerifier),this.config.clientCredentials.clientSecret&&i.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(n=this.config.clientCredentials.clientAssertion,i.addClientAssertion(n.assertion),i.addClientAssertionType(n.assertionType)),i.addGrantType(w0.AUTHORIZATION_CODE_GRANT),i.addClientInfo(),t.authenticationScheme!==Ie.POP?[3,2]:(a=new to(this.cryptoUtils),[4,a.generateCnf(t)]);case 1:return o=d.sent(),i.addPopToken(o.reqCnfString),[3,3];case 2:if(t.authenticationScheme===Ie.SSH)if(t.sshJwk)i.addSshJwk(t.sshJwk);else throw Ye.createMissingSshJwkError();d.label=3;case 3:if(s=t.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(s),(!F.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&i.addClaims(t.claims,this.config.authOptions.clientCapabilities),c=void 0,t.clientInfo)try{l=C0(t.clientInfo,this.cryptoUtils),c={credential:""+l.uid+T1.CLIENT_INFO_SEPARATOR+l.utid,type:Y1.HOME_ACCOUNT_ID}}catch(u){this.logger.verbose("Could not parse client info for CCS Header: "+u)}else c=t.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&c)switch(c.type){case Y1.HOME_ACCOUNT_ID:try{l=b2(c.credential),i.addCcsOid(l)}catch(u){this.logger.verbose("Could not parse home account ID for CCS Header: "+u)}break;case Y1.UPN:i.addCcsUpn(c.credential);break}return t.tokenBodyParameters&&i.addExtraQueryParameters(t.tokenBodyParameters),t.enableSpaAuthorizationCode&&(!t.tokenBodyParameters||!t.tokenBodyParameters[de.RETURN_SPA_CODE])&&i.addExtraQueryParameters((h={},h[de.RETURN_SPA_CODE]="1",h)),[2,i.createQueryString()]}})})},e.prototype.createAuthCodeUrlQueryString=function(t){return ae(this,void 0,void 0,function(){var i,n,a,o,s,c,c,c,l,h;return oe(this,function(d){switch(d.label){case 0:if(i=new x2,i.addClientId(this.config.authOptions.clientId),n=x4(t.scopes||[],t.extraScopesToConsent||[]),i.addScopes(n),i.addRedirectUri(t.redirectUri),a=t.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(a),i.addResponseMode(t.responseMode),i.addResponseTypeCode(),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addClientInfo(),t.codeChallenge&&t.codeChallengeMethod&&i.addCodeChallengeParams(t.codeChallenge,t.codeChallengeMethod),t.prompt&&i.addPrompt(t.prompt),t.domainHint&&i.addDomainHint(t.domainHint),t.prompt!==d1.SELECT_ACCOUNT)if(t.sid&&t.prompt===d1.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),i.addSid(t.sid);else if(t.account){if(o=this.extractAccountSid(t.account),s=this.extractLoginHint(t.account),s){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),i.addLoginHint(s);try{c=b2(t.account.homeAccountId),i.addCcsOid(c)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(o&&t.prompt===d1.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),i.addSid(o);try{c=b2(t.account.homeAccountId),i.addCcsOid(c)}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"),i.addLoginHint(t.loginHint),i.addCcsUpn(t.loginHint);else if(t.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),i.addLoginHint(t.account.username);try{c=b2(t.account.homeAccountId),i.addCcsOid(c)}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"),i.addLoginHint(t.loginHint),i.addCcsUpn(t.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return t.nonce&&i.addNonce(t.nonce),t.state&&i.addState(t.state),(!F.isEmpty(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&i.addClaims(t.claims,this.config.authOptions.clientCapabilities),t.extraQueryParameters&&i.addExtraQueryParameters(t.extraQueryParameters),t.nativeBroker?(i.addNativeBroker(),t.authenticationScheme!==Ie.POP?[3,2]:(l=new to(this.cryptoUtils),[4,l.generateCnf(t)])):[3,2];case 1:h=d.sent(),i.addPopToken(h.reqCnfHash),d.label=2;case 2:return[2,i.createQueryString()]}})})},e.prototype.createLogoutUrlQueryString=function(t){var i=new x2;return t.postLogoutRedirectUri&&i.addPostLogoutRedirectUri(t.postLogoutRedirectUri),t.correlationId&&i.addCorrelationId(t.correlationId),t.idTokenHint&&i.addIdTokenHint(t.idTokenHint),t.state&&i.addState(t.state),t.logoutHint&&i.addLogoutHint(t.logoutHint),t.extraQueryParameters&&i.addExtraQueryParameters(t.extraQueryParameters),i.createQueryString()},e.prototype.extractAccountSid=function(t){var i;return((i=t.idTokenClaims)===null||i===void 0?void 0:i.sid)||null},e.prototype.extractLoginHint=function(t){var i;return((i=t.idTokenClaims)===null||i===void 0?void 0:i.login_hint)||null},e}(a6);/*! @azure/msal-common v9.1.1 2023-01-19 */var St;(function(r){r.AcquireTokenByCode="acquireTokenByCode",r.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",r.AcquireTokenSilent="acquireTokenSilent",r.AcquireTokenSilentAsync="acquireTokenSilentAsync",r.AcquireTokenPopup="acquireTokenPopup",r.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",r.CryptoOptsSignJwt="cryptoOptsSignJwt",r.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",r.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",r.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",r.SsoSilent="ssoSilent",r.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",r.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",r.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",r.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",r.BrokerHandhshake="brokerHandshake",r.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",r.AcquireTokenByBroker="acquireTokenByBroker",r.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",r.RefreshTokenClientAcquireToken="refreshTokenClientAcquireToken",r.RefreshTokenClientAcquireTokenWithCachedRefreshToken="refreshTokenClientAcquireTokenWithCachedRefreshToken",r.AcquireTokenByCodeAsync="acquireTokenByCodeAsync",r.GetEndpointMetadataFromNetwork="getEndpointMetadataFromNetwork",r.GetCloudDiscoveryMetadataFromNetworkMeasurement="getCloudDiscoveryMetadataFromNetworkMeasurement",r.HandleRedirectPromiseMeasurement="handleRedirectPromiseMeasurement",r.UpdateCloudDiscoveryMetadataMeasurement="updateCloudDiscoveryMetadataMeasurement",r.UsernamePasswordClientAcquireToken="usernamePasswordClientAcquireToken"})(St||(St={}));var M2;(function(r){r[r.NotStarted=0]="NotStarted",r[r.InProgress=1]="InProgress",r[r.Completed=2]="Completed"})(M2||(M2={}));/*! @azure/msal-common v9.1.1 2023-01-19 */var I_=function(r){F1(e,r);function e(t,i){return r.call(this,t,i)||this}return e.prototype.acquireToken=function(t){var i,n,a,o;return ae(this,void 0,void 0,function(){var s,c,l,h,d,u,v=this;return oe(this,function(m){switch(m.label){case 0:return s=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(St.RefreshTokenClientAcquireToken,t.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",t.correlationId),c=gr.nowSeconds(),[4,this.executeTokenRequest(t,this.authority)];case 1:return l=m.sent(),h=(n=l.headers)===null||n===void 0?void 0:n[X1.X_MS_HTTP_VERSION],s==null||s.addStaticFields({refreshTokenSize:((a=l.body.refresh_token)===null||a===void 0?void 0:a.length)||0}),h&&(s==null||s.addStaticFields({httpVerToken:h})),d=(o=l.headers)===null||o===void 0?void 0:o[X1.X_MS_REQUEST_ID],u=new E0(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),u.validateTokenResponse(l.body),[2,u.handleServerTokenResponse(l.body,this.authority,c,t,void 0,void 0,!0,t.forceCache,d).then(function(f){return s==null||s.endMeasurement({success:!0}),f}).catch(function(f){throw v.logger.verbose("Error in fetching refresh token",t.correlationId),s==null||s.endMeasurement({errorCode:f.errorCode,subErrorCode:f.subError,success:!1}),f})]}})})},e.prototype.acquireTokenByRefreshToken=function(t){return ae(this,void 0,void 0,function(){var i,n,a;return oe(this,function(o){if(!t)throw Ye.createEmptyTokenRequestError();if(!t.account)throw j.createNoAccountInSilentRequestError();if(i=this.cacheManager.isAppMetadataFOCI(t.account.environment,this.config.authOptions.clientId),i)try{return[2,this.acquireTokenWithCachedRefreshToken(t,!0)]}catch(s){if(n=s instanceof Tr&&s.errorCode===ws.noTokensFoundError.code,a=s instanceof Aa&&s.errorCode===fm.INVALID_GRANT_ERROR&&s.subError===fm.CLIENT_MISMATCH_ERROR,n||a)return[2,this.acquireTokenWithCachedRefreshToken(t,!1)];throw s}return[2,this.acquireTokenWithCachedRefreshToken(t,!1)]})})},e.prototype.acquireTokenWithCachedRefreshToken=function(t,i){var n;return ae(this,void 0,void 0,function(){var a,o,s;return oe(this,function(c){if(a=(n=this.performanceClient)===null||n===void 0?void 0:n.startMeasurement(St.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",t.correlationId),o=this.cacheManager.readRefreshTokenFromCache(this.config.authOptions.clientId,t.account,i),!o)throw a==null||a.discardMeasurement(),Tr.createNoTokensFoundError();return a==null||a.endMeasurement({success:!0}),s=Ue(Ue({},t),{refreshToken:o.secret,authenticationScheme:t.authenticationScheme||Ie.BEARER,ccsCredential:{credential:t.account.homeAccountId,type:Y1.HOME_ACCOUNT_ID}}),[2,this.acquireToken(s)]})})},e.prototype.executeTokenRequest=function(t,i){var n;return ae(this,void 0,void 0,function(){var a,o,s,c,l,h;return oe(this,function(d){switch(d.label){case 0:return a=(n=this.performanceClient)===null||n===void 0?void 0:n.startMeasurement(St.RefreshTokenClientExecuteTokenRequest,t.correlationId),[4,this.createTokenRequestBody(t)];case 1:return o=d.sent(),s=this.createTokenQueryParameters(t),c=this.createTokenRequestHeaders(t.ccsCredential),l={clientId:this.config.authOptions.clientId,authority:i.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},h=ke.appendQueryString(i.tokenEndpoint,s),[2,this.executePostToTokenEndpoint(h,o,c,l).then(function(u){return a==null||a.endMeasurement({success:!0}),u}).catch(function(u){throw a==null||a.endMeasurement({success:!1}),u})]}})})},e.prototype.createTokenQueryParameters=function(t){var i=new x2;return t.tokenQueryParameters&&i.addExtraQueryParameters(t.tokenQueryParameters),i.createQueryString()},e.prototype.createTokenRequestBody=function(t){var i;return ae(this,void 0,void 0,function(){var n,a,o,s,c,l,h;return oe(this,function(d){switch(d.label){case 0:return n=t.correlationId,a=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(St.BaseClientCreateTokenRequestHeaders,n),o=new x2,o.addClientId(this.config.authOptions.clientId),o.addScopes(t.scopes),o.addGrantType(w0.REFRESH_TOKEN_GRANT),o.addClientInfo(),o.addLibraryInfo(this.config.libraryInfo),o.addApplicationTelemetry(this.config.telemetry.application),o.addThrottling(),this.serverTelemetryManager&&o.addServerTelemetry(this.serverTelemetryManager),o.addCorrelationId(n),o.addRefreshToken(t.refreshToken),this.config.clientCredentials.clientSecret&&o.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(s=this.config.clientCredentials.clientAssertion,o.addClientAssertion(s.assertion),o.addClientAssertionType(s.assertionType)),t.authenticationScheme!==Ie.POP?[3,2]:(c=new to(this.cryptoUtils),[4,c.generateCnf(t)]);case 1:return l=d.sent(),o.addPopToken(l.reqCnfString),[3,3];case 2:if(t.authenticationScheme===Ie.SSH)if(t.sshJwk)o.addSshJwk(t.sshJwk);else throw a==null||a.endMeasurement({success:!1}),Ye.createMissingSshJwkError();d.label=3;case 3:if((!F.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&o.addClaims(t.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&t.ccsCredential)switch(t.ccsCredential.type){case Y1.HOME_ACCOUNT_ID:try{h=b2(t.ccsCredential.credential),o.addCcsOid(h)}catch(u){this.logger.verbose("Could not parse home account ID for CCS Header: "+u)}break;case Y1.UPN:o.addCcsUpn(t.ccsCredential.credential);break}return a==null||a.endMeasurement({success:!0}),[2,o.createQueryString()]}})})},e}(a6);/*! @azure/msal-common v9.1.1 2023-01-19 */var tH=function(r){F1(e,r);function e(t,i){return r.call(this,t,i)||this}return e.prototype.acquireToken=function(t){return ae(this,void 0,void 0,function(){var i,n;return oe(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,this.acquireCachedToken(t)];case 1:return[2,a.sent()];case 2:if(i=a.sent(),i instanceof j&&i.errorCode===T.tokenRefreshRequired.code)return n=new I_(this.config,this.performanceClient),[2,n.acquireTokenByRefreshToken(t)];throw i;case 3:return[2]}})})},e.prototype.acquireCachedToken=function(t){var i,n,a,o;return ae(this,void 0,void 0,function(){var s,c;return oe(this,function(l){switch(l.label){case 0:if(!t)throw Ye.createEmptyTokenRequestError();if(t.forceRefresh)throw(i=this.serverTelemetryManager)===null||i===void 0||i.setCacheOutcome(ga.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),j.createRefreshRequiredError();if(!t.account)throw j.createNoAccountInSilentRequestError();if(s=t.authority||this.authority.getPreferredCache(),c=this.cacheManager.readCacheRecord(t.account,this.config.authOptions.clientId,t,s),c.accessToken){if(gr.wasClockTurnedBack(c.accessToken.cachedAt)||gr.isTokenExpired(c.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw(a=this.serverTelemetryManager)===null||a===void 0||a.setCacheOutcome(ga.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),j.createRefreshRequiredError();if(c.accessToken.refreshOn&&gr.isTokenExpired(c.accessToken.refreshOn,0))throw(o=this.serverTelemetryManager)===null||o===void 0||o.setCacheOutcome(ga.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),j.createRefreshRequiredError()}else throw(n=this.serverTelemetryManager)===null||n===void 0||n.setCacheOutcome(ga.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),j.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(c,t)];case 1:return[2,l.sent()]}})})},e.prototype.generateResultFromCacheRecord=function(t,i){return ae(this,void 0,void 0,function(){var n,a;return oe(this,function(o){switch(o.label){case 0:if(t.idToken&&(n=new ui(t.idToken.secret,this.config.cryptoInterface)),i.maxAge||i.maxAge===0){if(a=n==null?void 0:n.claims.auth_time,!a)throw j.createAuthTimeNotFoundError();ui.checkMaxAge(a,i.maxAge)}return[4,E0.generateAuthenticationResult(this.cryptoUtils,this.authority,t,!0,i,n)];case 1:return[2,o.sent()]}})})},e}(a6);/*! @azure/msal-common v9.1.1 2023-01-19 */function rH(r){return r.hasOwnProperty("authorization_endpoint")&&r.hasOwnProperty("token_endpoint")&&r.hasOwnProperty("issuer")&&r.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v9.1.1 2023-01-19 */var R_={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"]}]}}},gm=R_.endpointMetadata,_m=R_.instanceDiscoveryMetadata;/*! @azure/msal-common v9.1.1 2023-01-19 */var P0;(function(r){r.AAD="AAD",r.OIDC="OIDC"})(P0||(P0={}));/*! @azure/msal-common v9.1.1 2023-01-19 */var W3=function(){function r(){this.expiresAt=gr.nowSeconds()+Ks.REFRESH_TIME_SECONDS}return r.prototype.updateCloudDiscoveryMetadata=function(e,t){this.aliases=e.aliases,this.preferred_cache=e.preferred_cache,this.preferred_network=e.preferred_network,this.aliasesFromNetwork=t},r.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},r.prototype.updateCanonicalAuthority=function(e){this.canonical_authority=e},r.prototype.resetExpiresAt=function(){this.expiresAt=gr.nowSeconds()+Ks.REFRESH_TIME_SECONDS},r.prototype.isExpired=function(){return this.expiresAt<=gr.nowSeconds()},r.isAuthorityMetadataEntity=function(e,t){return t?e.indexOf(Ks.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},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */function iH(r){return r.hasOwnProperty("tenant_discovery_endpoint")&&r.hasOwnProperty("metadata")}/*! @azure/msal-common v9.1.1 2023-01-19 */function nH(r){return r.hasOwnProperty("error")&&r.hasOwnProperty("error_description")}/*! @azure/msal-common v9.1.1 2023-01-19 */var aH=function(){function r(e){this.networkInterface=e}return r.prototype.detectRegion=function(e,t,i){return ae(this,void 0,void 0,function(){var n,a,o,s,c;return oe(this,function(l){switch(l.label){case 0:if(n=e,n)return[3,8];a=r.IMDS_OPTIONS,i&&(a.proxyUrl=i),l.label=1;case 1:return l.trys.push([1,6,,7]),[4,this.getRegionFromIMDS(w.IMDS_VERSION,a)];case 2:return o=l.sent(),o.status===w2.httpSuccess&&(n=o.body,t.region_source=nn.IMDS),o.status!==w2.httpBadRequest?[3,5]:[4,this.getCurrentVersion(a)];case 3:return s=l.sent(),s?[4,this.getRegionFromIMDS(s,a)]:(t.region_source=nn.FAILED_AUTO_DETECTION,[2,null]);case 4:c=l.sent(),c.status===w2.httpSuccess&&(n=c.body,t.region_source=nn.IMDS),l.label=5;case 5:return[3,7];case 6:return l.sent(),t.region_source=nn.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:t.region_source=nn.ENVIRONMENT_VARIABLE,l.label=9;case 9:return n||(t.region_source=nn.FAILED_AUTO_DETECTION),[2,n||null]}})})},r.prototype.getRegionFromIMDS=function(e,t){return ae(this,void 0,void 0,function(){return oe(this,function(i){return[2,this.networkInterface.sendGetRequestAsync(w.IMDS_ENDPOINT+"?api-version="+e+"&format=text",t,w.IMDS_TIMEOUT)]})})},r.prototype.getCurrentVersion=function(e){return ae(this,void 0,void 0,function(){var t;return oe(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.networkInterface.sendGetRequestAsync(w.IMDS_ENDPOINT+"?format=json",e)];case 1:return t=i.sent(),t.status===w2.httpBadRequest&&t.body&&t.body["newest-versions"]&&t.body["newest-versions"].length>0?[2,t.body["newest-versions"][0]]:[2,null];case 2:return i.sent(),[2,null];case 3:return[2]}})})},r.IMDS_OPTIONS={headers:{Metadata:"true"}},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var A0=function(){function r(e,t,i,n,a,o){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=i,this.authorityOptions=n,this.regionDiscovery=new aH(t),this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.proxyUrl=o||w.EMPTY_STRING,this.logger=a}return Object.defineProperty(r.prototype,"authorityType",{get:function(){var e=this.canonicalAuthorityUrlComponents.PathSegments;if(e.length)switch(e[0].toLowerCase()){case w.ADFS:return ur.Adfs;case w.DSTS:return ur.Dsts}return ur.Default},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(e){this._canonicalAuthority=new ke(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.authorization_endpoint);return this.replaceTenant(e)}else throw j.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.token_endpoint);return this.replaceTenant(e)}else throw j.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));return this.replaceTenant(e)}else throw j.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw j.createLogoutNotSupportedError();var e=this.replacePath(this.metadata.end_session_endpoint);return this.replaceTenant(e)}else throw j.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.issuer);return this.replaceTenant(e)}else throw j.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"jwksUri",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.jwks_uri);return this.replaceTenant(e)}else throw j.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),r.prototype.replaceTenant=function(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)},r.prototype.replacePath=function(e){var t=e,i=new ke(this.metadata.canonical_authority),n=i.getUrlComponents().PathSegments,a=this.canonicalAuthorityUrlComponents.PathSegments;return a.forEach(function(o,s){var c=n[s];o!==c&&(t=t.replace("/"+c+"/","/"+o+"/"))}),t},Object.defineProperty(r.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===ur.Adfs||this.authorityType===ur.Dsts||this.protocolMode===P0.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),r.prototype.discoveryComplete=function(){return!!this.metadata},r.prototype.resolveEndpointsAsync=function(){return ae(this,void 0,void 0,function(){var e,t,i,n;return oe(this,function(a){switch(a.label){case 0:return e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort),e||(e=new W3,e.updateCanonicalAuthority(this.canonicalAuthority)),[4,this.updateCloudDiscoveryMetadata(e)];case 1:return t=a.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,e.preferred_network),[4,this.updateEndpointMetadata(e)];case 2:return i=a.sent(),t!==cr.CACHE&&i!==cr.CACHE&&(e.resetExpiresAt(),e.updateCanonicalAuthority(this.canonicalAuthority)),n=this.cacheManager.generateAuthorityMetadataCacheKey(e.preferred_cache),this.cacheManager.setAuthorityMetadata(n,e),this.metadata=e,[2]}})})},r.prototype.updateEndpointMetadata=function(e){var t,i;return ae(this,void 0,void 0,function(){var n,a;return oe(this,function(o){switch(o.label){case 0:return n=this.getEndpointMetadataFromConfig(),n?(e.updateEndpointMetadata(n,!1),[2,cr.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,cr.CACHE]:(a=this.getEndpointMetadataFromHardcodedValues(),[4,this.getEndpointMetadataFromNetwork()]);case 1:return n=o.sent(),n?!((t=this.authorityOptions.azureRegionConfiguration)===null||t===void 0)&&t.azureRegion?[4,this.updateMetadataWithRegionalInformation(n)]:[3,3]:[3,4];case 2:n=o.sent(),o.label=3;case 3:return e.updateEndpointMetadata(n,!0),[2,cr.NETWORK];case 4:return a&&!this.authorityOptions.skipAuthorityMetadataCache?!((i=this.authorityOptions.azureRegionConfiguration)===null||i===void 0)&&i.azureRegion?[4,this.updateMetadataWithRegionalInformation(a)]:[3,6]:[3,7];case 5:a=o.sent(),o.label=6;case 6:return e.updateEndpointMetadata(a,!1),[2,cr.HARDCODED_VALUES];case 7:throw j.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},r.prototype.isAuthoritySameType=function(e){var t=new ke(e.canonical_authority),i=t.getUrlComponents().PathSegments;return i.length===this.canonicalAuthorityUrlComponents.PathSegments.length},r.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw Ye.createInvalidAuthorityMetadataError()}return null},r.prototype.getEndpointMetadataFromNetwork=function(){return ae(this,void 0,void 0,function(){var e,t;return oe(this,function(i){switch(i.label){case 0:e={},this.proxyUrl&&(e.proxyUrl=this.proxyUrl),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,e)];case 2:return t=i.sent(),[2,rH(t.body)?t.body:null];case 3:return i.sent(),[2,null];case 4:return[2]}})})},r.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in gm?gm[this.canonicalAuthority]:null},r.prototype.updateMetadataWithRegionalInformation=function(e){var t,i,n,a,o;return ae(this,void 0,void 0,function(){var s,c;return oe(this,function(l){switch(l.label){case 0:return[4,this.regionDiscovery.detectRegion((t=this.authorityOptions.azureRegionConfiguration)===null||t===void 0?void 0:t.environmentRegion,this.regionDiscoveryMetadata,this.proxyUrl)];case 1:return s=l.sent(),c=((i=this.authorityOptions.azureRegionConfiguration)===null||i===void 0?void 0:i.azureRegion)===w.AZURE_REGION_AUTO_DISCOVER_FLAG?s:(n=this.authorityOptions.azureRegionConfiguration)===null||n===void 0?void 0:n.azureRegion,((a=this.authorityOptions.azureRegionConfiguration)===null||a===void 0?void 0:a.azureRegion)===w.AZURE_REGION_AUTO_DISCOVER_FLAG?this.regionDiscoveryMetadata.region_outcome=s?ua.AUTO_DETECTION_REQUESTED_SUCCESSFUL:ua.AUTO_DETECTION_REQUESTED_FAILED:s?this.regionDiscoveryMetadata.region_outcome=((o=this.authorityOptions.azureRegionConfiguration)===null||o===void 0?void 0:o.azureRegion)===s?ua.CONFIGURED_MATCHES_DETECTED:ua.CONFIGURED_NOT_DETECTED:this.regionDiscoveryMetadata.region_outcome=ua.CONFIGURED_NO_AUTO_DETECTION,c?(this.regionDiscoveryMetadata.region_used=c,[2,r.replaceWithRegionalInformation(e,c)]):[2,e]}})})},r.prototype.updateCloudDiscoveryMetadata=function(e){return ae(this,void 0,void 0,function(){var t,i,n;return oe(this,function(a){switch(a.label){case 0:return this.logger.verbose("Attempting to get cloud discovery metadata in the config"),this.logger.verbosePii("Known Authorities: "+(this.authorityOptions.knownAuthorities||w.NOT_APPLICABLE)),this.logger.verbosePii("Authority Metadata: "+(this.authorityOptions.authorityMetadata||w.NOT_APPLICABLE)),this.logger.verbosePii("Canonical Authority: "+(e.canonical_authority||w.NOT_APPLICABLE)),t=this.getCloudDiscoveryMetadataFromConfig(),t?(this.logger.verbose("Found cloud discovery metadata in the config."),e.updateCloudDiscoveryMetadata(t,!1),[2,cr.CONFIG]):(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache."),i=e.isExpired(),this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!i?(this.logger.verbose("Found metadata in the cache."),[2,cr.CACHE]):(i&&this.logger.verbose("The metadata entity is expired."),this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network."),[4,this.getCloudDiscoveryMetadataFromNetwork()]));case 1:if(t=a.sent(),t)return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"),e.updateCloudDiscoveryMetadata(t,!0),[2,cr.NETWORK];if(this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."),n=this.getCloudDiscoveryMetadataFromHarcodedValues(),n&&!this.options.skipAuthorityMetadataCache)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),e.updateCloudDiscoveryMetadata(n,!1),[2,cr.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."),Ye.createUntrustedAuthorityError()}})})},r.prototype.getCloudDiscoveryMetadataFromConfig=function(){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=r.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."),Ye.createInvalidCloudDiscoveryMetadataError()}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),r.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null},r.prototype.getCloudDiscoveryMetadataFromNetwork=function(){return ae(this,void 0,void 0,function(){var e,t,i,n,a,o,s,c;return oe(this,function(l){switch(l.label){case 0:e=""+w.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",t={},this.proxyUrl&&(t.proxyUrl=this.proxyUrl),i=null,l.label=1;case 1:return l.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(e,t)];case 2:if(n=l.sent(),a=void 0,o=void 0,iH(n.body))a=n.body,o=a.metadata,this.logger.verbosePii("tenant_discovery_endpoint is: "+a.tenant_discovery_endpoint);else if(nH(n.body)){if(this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: "+n.status),a=n.body,a.error===w.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),[2,null];this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is "+a.error),this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is "+a.error_description),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),o=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),[2,null];return this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),i=r.getCloudDiscoveryMetadataFromNetworkResponse(o,this.hostnameAndPort),[3,4];case 3:return s=l.sent(),s instanceof Q?this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
|
|
69
|
+
***************************************************************************** */var B3=function(r,e){return B3=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,i){t.__proto__=i}||function(t,i){for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(t[n]=i[n])},B3(r,e)};function F1(r,e){B3(r,e);function t(){this.constructor=r}r.prototype=e===null?Object.create(e):(t.prototype=e.prototype,new t)}var Ue=function(){return Ue=Object.assign||function(e){for(var t,i=1,n=arguments.length;i<n;i++){t=arguments[i];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Ue.apply(this,arguments)};function ae(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})}function oe(r,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},i,n,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(l){return function(h){return c([l,h])}}function c(l){if(i)throw new TypeError("Generator is already executing.");for(;t;)try{if(i=1,n&&(a=l[0]&2?n.return:l[0]?n.throw||((a=n.return)&&a.call(n),0):n.next)&&!(a=a.call(n,l[1])).done)return a;switch(n=0,a&&(l=[l[0]&2,a.value]),l[0]){case 0:case 1:a=l;break;case 4:return t.label++,{value:l[1],done:!1};case 5:t.label++,n=l[1],l=[0];continue;case 7:l=t.ops.pop(),t.trys.pop();continue;default:if(a=t.trys,!(a=a.length>0&&a[a.length-1])&&(l[0]===6||l[0]===2)){t=0;continue}if(l[0]===3&&(!a||l[1]>a[0]&&l[1]<a[3])){t.label=l[1];break}if(l[0]===6&&t.label<a[1]){t.label=a[1],a=l;break}if(a&&t.label<a[2]){t.label=a[2],t.ops.push(l);break}a[2]&&t.ops.pop(),t.trys.pop();continue}l=e.call(r,t)}catch(h){l=[6,h],n=0}finally{i=a=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}}function x4(){for(var r=0,e=0,t=arguments.length;e<t;e++)r+=arguments[e].length;for(var i=Array(r),n=0,e=0;e<t;e++)for(var a=arguments[e],o=0,s=a.length;o<s;o++,n++)i[n]=a[o];return i}/*! @azure/msal-common v9.1.1 2023-01-19 */var w={LIBRARY_NAME:"MSAL.JS",SKU:"msal.js.common",CACHE_PREFIX:"msal",DEFAULT_AUTHORITY:"https://login.microsoftonline.com/common/",DEFAULT_AUTHORITY_HOST:"login.microsoftonline.com",DEFAULT_COMMON_TENANT:"common",ADFS:"adfs",DSTS:"dstsv2",AAD_INSTANCE_DISCOVERY_ENDPT:"https://login.microsoftonline.com/common/discovery/instance?api-version=1.1&authorization_endpoint=",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"},rl=[w.OPENID_SCOPE,w.PROFILE_SCOPE,w.OFFLINE_ACCESS_SCOPE],vm=x4(rl,[w.EMAIL_SCOPE]),X1;(function(r){r.CONTENT_TYPE="Content-Type",r.RETRY_AFTER="Retry-After",r.CCS_HEADER="X-AnchorMailbox",r.WWWAuthenticate="WWW-Authenticate",r.AuthenticationInfo="Authentication-Info",r.X_MS_REQUEST_ID="x-ms-request-id",r.X_MS_HTTP_VERSION="x-ms-httpver"})(X1||(X1={}));var Ct;(function(r){r.ID_TOKEN="idtoken",r.CLIENT_INFO="client.info",r.ADAL_ID_TOKEN="adal.idtoken",r.ERROR="error",r.ERROR_DESC="error.description",r.ACTIVE_ACCOUNT="active-account",r.ACTIVE_ACCOUNT_FILTERS="active-account-filters"})(Ct||(Ct={}));var z0;(function(r){r.COMMON="common",r.ORGANIZATIONS="organizations",r.CONSUMERS="consumers"})(z0||(z0={}));var de;(function(r){r.CLIENT_ID="client_id",r.REDIRECT_URI="redirect_uri",r.RESPONSE_TYPE="response_type",r.RESPONSE_MODE="response_mode",r.GRANT_TYPE="grant_type",r.CLAIMS="claims",r.SCOPE="scope",r.ERROR="error",r.ERROR_DESCRIPTION="error_description",r.ACCESS_TOKEN="access_token",r.ID_TOKEN="id_token",r.REFRESH_TOKEN="refresh_token",r.EXPIRES_IN="expires_in",r.STATE="state",r.NONCE="nonce",r.PROMPT="prompt",r.SESSION_STATE="session_state",r.CLIENT_INFO="client_info",r.CODE="code",r.CODE_CHALLENGE="code_challenge",r.CODE_CHALLENGE_METHOD="code_challenge_method",r.CODE_VERIFIER="code_verifier",r.CLIENT_REQUEST_ID="client-request-id",r.X_CLIENT_SKU="x-client-SKU",r.X_CLIENT_VER="x-client-VER",r.X_CLIENT_OS="x-client-OS",r.X_CLIENT_CPU="x-client-CPU",r.X_CLIENT_CURR_TELEM="x-client-current-telemetry",r.X_CLIENT_LAST_TELEM="x-client-last-telemetry",r.X_MS_LIB_CAPABILITY="x-ms-lib-capability",r.X_APP_NAME="x-app-name",r.X_APP_VER="x-app-ver",r.POST_LOGOUT_URI="post_logout_redirect_uri",r.ID_TOKEN_HINT="id_token_hint",r.DEVICE_CODE="device_code",r.CLIENT_SECRET="client_secret",r.CLIENT_ASSERTION="client_assertion",r.CLIENT_ASSERTION_TYPE="client_assertion_type",r.TOKEN_TYPE="token_type",r.REQ_CNF="req_cnf",r.OBO_ASSERTION="assertion",r.REQUESTED_TOKEN_USE="requested_token_use",r.ON_BEHALF_OF="on_behalf_of",r.FOCI="foci",r.CCS_HEADER="X-AnchorMailbox",r.RETURN_SPA_CODE="return_spa_code",r.NATIVE_BROKER="nativebroker",r.LOGOUT_HINT="logout_hint"})(de||(de={}));var y2;(function(r){r.ACCESS_TOKEN="access_token",r.XMS_CC="xms_cc"})(y2||(y2={}));var d1={LOGIN:"login",SELECT_ACCOUNT:"select_account",CONSENT:"consent",NONE:"none",CREATE:"create",NO_SESSION:"no_session"},Gs;(function(r){r.ACCOUNT="account",r.SID="sid",r.LOGIN_HINT="login_hint",r.ID_TOKEN="id_token",r.DOMAIN_HINT="domain_hint",r.ORGANIZATIONS="organizations",r.CONSUMERS="consumers",r.ACCOUNT_ID="accountIdentifier",r.HOMEACCOUNT_ID="homeAccountIdentifier"})(Gs||(Gs={}));var mm={PLAIN:"plain",S256:"S256"},y0;(function(r){r.QUERY="query",r.FRAGMENT="fragment",r.FORM_POST="form_post"})(y0||(y0={}));var w0;(function(r){r.IMPLICIT_GRANT="implicit",r.AUTHORIZATION_CODE_GRANT="authorization_code",r.CLIENT_CREDENTIALS_GRANT="client_credentials",r.RESOURCE_OWNER_PASSWORD_GRANT="password",r.REFRESH_TOKEN_GRANT="refresh_token",r.DEVICE_CODE_GRANT="device_code",r.JWT_BEARER="urn:ietf:params:oauth:grant-type:jwt-bearer"})(w0||(w0={}));var xi;(function(r){r.MSSTS_ACCOUNT_TYPE="MSSTS",r.ADFS_ACCOUNT_TYPE="ADFS",r.MSAV1_ACCOUNT_TYPE="MSA",r.GENERIC_ACCOUNT_TYPE="Generic"})(xi||(xi={}));var T1;(function(r){r.CACHE_KEY_SEPARATOR="-",r.CLIENT_INFO_SEPARATOR="."})(T1||(T1={}));var Me;(function(r){r.ID_TOKEN="IdToken",r.ACCESS_TOKEN="AccessToken",r.ACCESS_TOKEN_WITH_AUTH_SCHEME="AccessToken_With_AuthScheme",r.REFRESH_TOKEN="RefreshToken"})(Me||(Me={}));var wa;(function(r){r.ACCOUNT="Account",r.CREDENTIAL="Credential",r.ID_TOKEN="IdToken",r.ACCESS_TOKEN="AccessToken",r.REFRESH_TOKEN="RefreshToken",r.APP_METADATA="AppMetadata",r.TEMPORARY="TempCache",r.TELEMETRY="Telemetry",r.UNDEFINED="Undefined",r.THROTTLING="Throttling"})(wa||(wa={}));var Vi;(function(r){r[r.ADFS=1001]="ADFS",r[r.MSA=1002]="MSA",r[r.MSSTS=1003]="MSSTS",r[r.GENERIC=1004]="GENERIC",r[r.ACCESS_TOKEN=2001]="ACCESS_TOKEN",r[r.REFRESH_TOKEN=2002]="REFRESH_TOKEN",r[r.ID_TOKEN=2003]="ID_TOKEN",r[r.APP_METADATA=3001]="APP_METADATA",r[r.UNDEFINED=9999]="UNDEFINED"})(Vi||(Vi={}));var j3="appmetadata",NC="client_info",b0="1",Ks={CACHE_KEY:"authority-metadata",REFRESH_TIME_SECONDS:3600*24},cr;(function(r){r.CONFIG="config",r.CACHE="cache",r.NETWORK="network",r.HARDCODED_VALUES="hardcoded_values"})(cr||(cr={}));var Ut={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"},Ie;(function(r){r.BEARER="Bearer",r.POP="pop",r.SSH="ssh-cert"})(Ie||(Ie={}));var Ws={DEFAULT_THROTTLE_TIME_SECONDS:60,DEFAULT_MAX_THROTTLE_TIME_SECONDS:3600,THROTTLING_PREFIX:"throttling",X_MS_LIB_CAPABILITY_VALUE:"retry-after, h429"},fm={INVALID_GRANT_ERROR:"invalid_grant",CLIENT_MISMATCH_ERROR:"client_mismatch"},x0;(function(r){r.username="username",r.password="password"})(x0||(x0={}));var w2;(function(r){r[r.httpSuccess=200]="httpSuccess",r[r.httpBadRequest=400]="httpBadRequest"})(w2||(w2={}));var an;(function(r){r.FAILED_AUTO_DETECTION="1",r.INTERNAL_CACHE="2",r.ENVIRONMENT_VARIABLE="3",r.IMDS="4"})(an||(an={}));var ua;(function(r){r.CONFIGURED_MATCHES_DETECTED="1",r.CONFIGURED_NO_AUTO_DETECTION="2",r.CONFIGURED_NOT_DETECTED="3",r.AUTO_DETECTION_REQUESTED_SUCCESSFUL="4",r.AUTO_DETECTION_REQUESTED_FAILED="5"})(ua||(ua={}));var ga;(function(r){r.NO_CACHE_HIT="0",r.FORCE_REFRESH="1",r.NO_CACHED_ACCESS_TOKEN="2",r.CACHED_ACCESS_TOKEN_EXPIRED="3",r.REFRESH_CACHED_ACCESS_TOKEN="4"})(ga||(ga={}));var q3;(function(r){r.Jwt="JWT",r.Jwk="JWK"})(q3||(q3={}));/*! @azure/msal-common v9.1.1 2023-01-19 */var Gl={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."}},Q=function(r){F1(e,r);function e(t,i,n){var a=this,o=i?t+": "+i:t;return a=r.call(this,o)||this,Object.setPrototypeOf(a,e.prototype),a.errorCode=t||w.EMPTY_STRING,a.errorMessage=i||w.EMPTY_STRING,a.subError=n||w.EMPTY_STRING,a.name="AuthError",a}return e.prototype.setCorrelationId=function(t){this.correlationId=t},e.createUnexpectedError=function(t){return new e(Gl.unexpectedError.code,Gl.unexpectedError.desc+": "+t)},e.createPostRequestFailed=function(t){return new e(Gl.postRequestFailed.code,Gl.postRequestFailed.desc+": "+t)},e}(Error);/*! @azure/msal-common v9.1.1 2023-01-19 */var M0={createNewGuid:function(){var r="Crypto interface - createNewGuid() has not been implemented";throw Q.createUnexpectedError(r)},base64Decode:function(){var r="Crypto interface - base64Decode() has not been implemented";throw Q.createUnexpectedError(r)},base64Encode:function(){var r="Crypto interface - base64Encode() has not been implemented";throw Q.createUnexpectedError(r)},generatePkceCodes:function(){return ae(this,void 0,void 0,function(){var r;return oe(this,function(e){throw r="Crypto interface - generatePkceCodes() has not been implemented",Q.createUnexpectedError(r)})})},getPublicKeyThumbprint:function(){return ae(this,void 0,void 0,function(){var r;return oe(this,function(e){throw r="Crypto interface - getPublicKeyThumbprint() has not been implemented",Q.createUnexpectedError(r)})})},removeTokenBindingKey:function(){return ae(this,void 0,void 0,function(){var r;return oe(this,function(e){throw r="Crypto interface - removeTokenBindingKey() has not been implemented",Q.createUnexpectedError(r)})})},clearKeystore:function(){return ae(this,void 0,void 0,function(){var r;return oe(this,function(e){throw r="Crypto interface - clearKeystore() has not been implemented",Q.createUnexpectedError(r)})})},signJwt:function(){return ae(this,void 0,void 0,function(){var r;return oe(this,function(e){throw r="Crypto interface - signJwt() has not been implemented",Q.createUnexpectedError(r)})})},hashString:function(){return ae(this,void 0,void 0,function(){var r;return oe(this,function(e){throw r="Crypto interface - hashString() has not been implemented",Q.createUnexpectedError(r)})})}};/*! @azure/msal-common v9.1.1 2023-01-19 */var T={clientInfoDecodingError:{code:"client_info_decoding_error",desc:"The client info could not be parsed/decoded correctly. Please review the trace to determine the root cause."},clientInfoEmptyError:{code:"client_info_empty_error",desc:"The client info was empty. Please review the trace to determine the root cause."},tokenParsingError:{code:"token_parsing_error",desc:"Token cannot be parsed. Please review stack trace to determine root cause."},nullOrEmptyToken:{code:"null_or_empty_token",desc:"The token is null or empty. Please review the trace to determine the root cause."},endpointResolutionError:{code:"endpoints_resolution_error",desc:"Error: could not resolve endpoints. Please check network and try again."},networkError:{code:"network_error",desc:"Network request failed. Please check network trace to determine root cause."},unableToGetOpenidConfigError:{code:"openid_config_error",desc:"Could not retrieve endpoints. Check your authority and verify the .well-known/openid-configuration endpoint returns the required endpoints."},hashNotDeserialized:{code:"hash_not_deserialized",desc:"The hash parameters could not be deserialized. Please review the trace to determine the root cause."},blankGuidGenerated:{code:"blank_guid_generated",desc:"The guid generated was blank. Please review the trace to determine the root cause."},invalidStateError:{code:"invalid_state",desc:"State was not the expected format. Please check the logs to determine whether the request was sent using ProtocolUtils.setRequestState()."},stateMismatchError:{code:"state_mismatch",desc:"State mismatch error. Please check your network. Continued requests may cause cache overflow."},stateNotFoundError:{code:"state_not_found",desc:"State not found"},nonceMismatchError:{code:"nonce_mismatch",desc:"Nonce mismatch error. This may be caused by a race condition in concurrent requests."},nonceNotFoundError:{code:"nonce_not_found",desc:"nonce not found"},authTimeNotFoundError:{code:"auth_time_not_found",desc:"Max Age was requested and the ID token is missing the auth_time variable. auth_time is an optional claim and is not enabled by default - it must be enabled. See https://aka.ms/msaljs/optional-claims for more information."},maxAgeTranspiredError:{code:"max_age_transpired",desc:"Max Age is set to 0, or too much time has elapsed since the last end-user authentication."},noTokensFoundError:{code:"no_tokens_found",desc:"No tokens were found for the given scopes, and no authorization code was passed to acquireToken. You must retrieve an authorization code before making a call to acquireToken()."},multipleMatchingTokens:{code:"multiple_matching_tokens",desc:"The cache contains multiple tokens satisfying the requirements. Call AcquireToken again providing more requirements such as authority or account."},multipleMatchingAccounts:{code:"multiple_matching_accounts",desc:"The cache contains multiple accounts satisfying the given parameters. Please pass more info to obtain the correct account"},multipleMatchingAppMetadata:{code:"multiple_matching_appMetadata",desc:"The cache contains multiple appMetadata satisfying the given parameters. Please pass more info to obtain the correct appMetadata"},tokenRequestCannotBeMade:{code:"request_cannot_be_made",desc:"Token request cannot be made without authorization code or refresh token."},appendEmptyScopeError:{code:"cannot_append_empty_scope",desc:"Cannot append null or empty scope to ScopeSet. Please check the stack trace for more info."},removeEmptyScopeError:{code:"cannot_remove_empty_scope",desc:"Cannot remove null or empty scope from ScopeSet. Please check the stack trace for more info."},appendScopeSetError:{code:"cannot_append_scopeset",desc:"Cannot append ScopeSet due to error."},emptyInputScopeSetError:{code:"empty_input_scopeset",desc:"Empty input ScopeSet cannot be processed."},DeviceCodePollingCancelled:{code:"device_code_polling_cancelled",desc:"Caller has cancelled token endpoint polling during device code flow by setting DeviceCodeRequest.cancel = true."},DeviceCodeExpired:{code:"device_code_expired",desc:"Device code is expired."},DeviceCodeUnknownError:{code:"device_code_unknown_error",desc:"Device code stopped polling for unknown reasons."},NoAccountInSilentRequest:{code:"no_account_in_silent_request",desc:"Please pass an account object, silent flow is not supported without account information"},invalidCacheRecord:{code:"invalid_cache_record",desc:"Cache record object was null or undefined."},invalidCacheEnvironment:{code:"invalid_cache_environment",desc:"Invalid environment when attempting to create cache entry"},noAccountFound:{code:"no_account_found",desc:"No account found in cache for given key."},CachePluginError:{code:"no cache plugin set on CacheManager",desc:"ICachePlugin needs to be set before using readFromStorage or writeFromStorage"},noCryptoObj:{code:"no_crypto_object",desc:"No crypto object detected. This is required for the following operation: "},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},unexpectedAccountType:{code:"unexpected_account_type",desc:"Unexpected account type."},unexpectedCredentialType:{code:"unexpected_credential_type",desc:"Unexpected credential type."},invalidAssertion:{code:"invalid_assertion",desc:"Client assertion must meet requirements described in https://tools.ietf.org/html/rfc7515"},invalidClientCredential:{code:"invalid_client_credential",desc:"Client credential (secret, certificate, or assertion) must not be empty when creating a confidential client. An application should at most have one credential"},tokenRefreshRequired:{code:"token_refresh_required",desc:"Cannot return token from cache because it must be refreshed. This may be due to one of the following reasons: forceRefresh parameter is set to true, claims have been requested, there is no cached access token or it is expired."},userTimeoutReached:{code:"user_timeout_reached",desc:"User defined timeout for device code polling reached"},tokenClaimsRequired:{code:"token_claims_cnf_required_for_signedjwt",desc:"Cannot generate a POP jwt if the token_claims are not populated"},noAuthorizationCodeFromServer:{code:"authorization_code_missing_from_server_response",desc:"Server response does not contain an authorization code to proceed"},noAzureRegionDetected:{code:"no_azure_region_detected",desc:"No azure region was detected and no fallback was made available"},accessTokenEntityNullError:{code:"access_token_entity_null",desc:"Access token entity is null, please check logs and cache to ensure a valid access token is present."},bindingKeyNotRemovedError:{code:"binding_key_not_removed",desc:"Could not remove the credential's binding key from storage."},logoutNotSupported:{code:"end_session_endpoint_not_supported",desc:"Provided authority does not support logout."},keyIdMissing:{code:"key_id_missing",desc:"A keyId value is missing from the requested bound token's cache record and is required to match the token to it's stored binding key."}},j=function(r){F1(e,r);function e(t,i){var n=r.call(this,t,i)||this;return n.name="ClientAuthError",Object.setPrototypeOf(n,e.prototype),n}return e.createClientInfoDecodingError=function(t){return new e(T.clientInfoDecodingError.code,T.clientInfoDecodingError.desc+" Failed with error: "+t)},e.createClientInfoEmptyError=function(){return new e(T.clientInfoEmptyError.code,""+T.clientInfoEmptyError.desc)},e.createTokenParsingError=function(t){return new e(T.tokenParsingError.code,T.tokenParsingError.desc+" Failed with error: "+t)},e.createTokenNullOrEmptyError=function(t){return new e(T.nullOrEmptyToken.code,T.nullOrEmptyToken.desc+" Raw Token Value: "+t)},e.createEndpointDiscoveryIncompleteError=function(t){return new e(T.endpointResolutionError.code,T.endpointResolutionError.desc+" Detail: "+t)},e.createNetworkError=function(t,i){return new e(T.networkError.code,T.networkError.desc+" | Fetch client threw: "+i+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToGetOpenidConfigError=function(t){return new e(T.unableToGetOpenidConfigError.code,T.unableToGetOpenidConfigError.desc+" Attempted to retrieve endpoints from: "+t)},e.createHashNotDeserializedError=function(t){return new e(T.hashNotDeserialized.code,T.hashNotDeserialized.desc+" Given Object: "+t)},e.createInvalidStateError=function(t,i){return new e(T.invalidStateError.code,T.invalidStateError.desc+" Invalid State: "+t+", Root Err: "+i)},e.createStateMismatchError=function(){return new e(T.stateMismatchError.code,T.stateMismatchError.desc)},e.createStateNotFoundError=function(t){return new e(T.stateNotFoundError.code,T.stateNotFoundError.desc+": "+t)},e.createNonceMismatchError=function(){return new e(T.nonceMismatchError.code,T.nonceMismatchError.desc)},e.createAuthTimeNotFoundError=function(){return new e(T.authTimeNotFoundError.code,T.authTimeNotFoundError.desc)},e.createMaxAgeTranspiredError=function(){return new e(T.maxAgeTranspiredError.code,T.maxAgeTranspiredError.desc)},e.createNonceNotFoundError=function(t){return new e(T.nonceNotFoundError.code,T.nonceNotFoundError.desc+": "+t)},e.createMultipleMatchingTokensInCacheError=function(){return new e(T.multipleMatchingTokens.code,T.multipleMatchingTokens.desc+".")},e.createMultipleMatchingAccountsInCacheError=function(){return new e(T.multipleMatchingAccounts.code,T.multipleMatchingAccounts.desc)},e.createMultipleMatchingAppMetadataInCacheError=function(){return new e(T.multipleMatchingAppMetadata.code,T.multipleMatchingAppMetadata.desc)},e.createTokenRequestCannotBeMadeError=function(){return new e(T.tokenRequestCannotBeMade.code,T.tokenRequestCannotBeMade.desc)},e.createAppendEmptyScopeToSetError=function(t){return new e(T.appendEmptyScopeError.code,T.appendEmptyScopeError.desc+" Given Scope: "+t)},e.createRemoveEmptyScopeFromSetError=function(t){return new e(T.removeEmptyScopeError.code,T.removeEmptyScopeError.desc+" Given Scope: "+t)},e.createAppendScopeSetError=function(t){return new e(T.appendScopeSetError.code,T.appendScopeSetError.desc+" Detail Error: "+t)},e.createEmptyInputScopeSetError=function(){return new e(T.emptyInputScopeSetError.code,""+T.emptyInputScopeSetError.desc)},e.createDeviceCodeCancelledError=function(){return new e(T.DeviceCodePollingCancelled.code,""+T.DeviceCodePollingCancelled.desc)},e.createDeviceCodeExpiredError=function(){return new e(T.DeviceCodeExpired.code,""+T.DeviceCodeExpired.desc)},e.createDeviceCodeUnknownError=function(){return new e(T.DeviceCodeUnknownError.code,""+T.DeviceCodeUnknownError.desc)},e.createNoAccountInSilentRequestError=function(){return new e(T.NoAccountInSilentRequest.code,""+T.NoAccountInSilentRequest.desc)},e.createNullOrUndefinedCacheRecord=function(){return new e(T.invalidCacheRecord.code,T.invalidCacheRecord.desc)},e.createInvalidCacheEnvironmentError=function(){return new e(T.invalidCacheEnvironment.code,T.invalidCacheEnvironment.desc)},e.createNoAccountFoundError=function(){return new e(T.noAccountFound.code,T.noAccountFound.desc)},e.createCachePluginError=function(){return new e(T.CachePluginError.code,""+T.CachePluginError.desc)},e.createNoCryptoObjectError=function(t){return new e(T.noCryptoObj.code,""+T.noCryptoObj.desc+t)},e.createInvalidCacheTypeError=function(){return new e(T.invalidCacheType.code,""+T.invalidCacheType.desc)},e.createUnexpectedAccountTypeError=function(){return new e(T.unexpectedAccountType.code,""+T.unexpectedAccountType.desc)},e.createUnexpectedCredentialTypeError=function(){return new e(T.unexpectedCredentialType.code,""+T.unexpectedCredentialType.desc)},e.createInvalidAssertionError=function(){return new e(T.invalidAssertion.code,""+T.invalidAssertion.desc)},e.createInvalidCredentialError=function(){return new e(T.invalidClientCredential.code,""+T.invalidClientCredential.desc)},e.createRefreshRequiredError=function(){return new e(T.tokenRefreshRequired.code,T.tokenRefreshRequired.desc)},e.createUserTimeoutReachedError=function(){return new e(T.userTimeoutReached.code,T.userTimeoutReached.desc)},e.createTokenClaimsRequiredError=function(){return new e(T.tokenClaimsRequired.code,T.tokenClaimsRequired.desc)},e.createNoAuthCodeInServerResponseError=function(){return new e(T.noAuthorizationCodeFromServer.code,T.noAuthorizationCodeFromServer.desc)},e.createBindingKeyNotRemovedError=function(){return new e(T.bindingKeyNotRemovedError.code,T.bindingKeyNotRemovedError.desc)},e.createLogoutNotSupportedError=function(){return new e(T.logoutNotSupported.code,T.logoutNotSupported.desc)},e.createKeyIdMissingError=function(){return new e(T.keyIdMissing.code,T.keyIdMissing.desc)},e}(Q);/*! @azure/msal-common v9.1.1 2023-01-19 */var F=function(){function r(){}return r.decodeAuthToken=function(e){if(r.isEmpty(e))throw j.createTokenNullOrEmptyError(e);var t=/^([^\.\s]*)\.([^\.\s]+)\.([^\.\s]*)$/,i=t.exec(e);if(!i||i.length<4)throw j.createTokenParsingError("Given token is malformed: "+JSON.stringify(e));var n={header:i[1],JWSPayload:i[2],JWSSig:i[3]};return n},r.isEmpty=function(e){return typeof e>"u"||!e||e.length===0},r.isEmptyObj=function(e){if(e&&!r.isEmpty(e))try{var t=JSON.parse(e);return Object.keys(t).length===0}catch{}return!0},r.startsWith=function(e,t){return e.indexOf(t)===0},r.endsWith=function(e,t){return e.length>=t.length&&e.lastIndexOf(t)===e.length-t.length},r.queryStringToObject=function(e){var t={},i=e.split("&"),n=function(a){return decodeURIComponent(a.replace(/\+/g," "))};return i.forEach(function(a){if(a.trim()){var o=a.split(/=(.+)/g,2),s=o[0],c=o[1];s&&c&&(t[n(s)]=n(c))}}),t},r.trimArrayEntries=function(e){return e.map(function(t){return t.trim()})},r.removeEmptyStringsFromArray=function(e){return e.filter(function(t){return!r.isEmpty(t)})},r.jsonParseHelper=function(e){try{return JSON.parse(e)}catch{return null}},r.matchPattern=function(e,t){var i=new RegExp(e.replace(/\\/g,"\\\\").replace(/\*/g,"[^ ]*").replace(/\?/g,"\\?"));return i.test(t)},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var ot;(function(r){r[r.Error=0]="Error",r[r.Warning=1]="Warning",r[r.Info=2]="Info",r[r.Verbose=3]="Verbose",r[r.Trace=4]="Trace"})(ot||(ot={}));var n6=function(){function r(e,t,i){this.level=ot.Info;var n=function(){},a=e||r.createDefaultLoggerOptions();this.localCallback=a.loggerCallback||n,this.piiLoggingEnabled=a.piiLoggingEnabled||!1,this.level=typeof a.logLevel=="number"?a.logLevel:ot.Info,this.correlationId=a.correlationId||w.EMPTY_STRING,this.packageName=t||w.EMPTY_STRING,this.packageVersion=i||w.EMPTY_STRING}return r.createDefaultLoggerOptions=function(){return{loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:ot.Info}},r.prototype.clone=function(e,t,i){return new r({loggerCallback:this.localCallback,piiLoggingEnabled:this.piiLoggingEnabled,logLevel:this.level,correlationId:i||this.correlationId},e,t)},r.prototype.logMessage=function(e,t){if(!(t.logLevel>this.level||!this.piiLoggingEnabled&&t.containsPii)){var i=new Date().toUTCString(),n;F.isEmpty(t.correlationId)?F.isEmpty(this.correlationId)?n="["+i+"]":n="["+i+"] : ["+this.correlationId+"]":n="["+i+"] : ["+t.correlationId+"]";var a=n+" : "+this.packageName+"@"+this.packageVersion+" : "+ot[t.logLevel]+" - "+e;this.executeCallback(t.logLevel,a,t.containsPii||!1)}},r.prototype.executeCallback=function(e,t,i){this.localCallback&&this.localCallback(e,t,i)},r.prototype.error=function(e,t){this.logMessage(e,{logLevel:ot.Error,containsPii:!1,correlationId:t||w.EMPTY_STRING})},r.prototype.errorPii=function(e,t){this.logMessage(e,{logLevel:ot.Error,containsPii:!0,correlationId:t||w.EMPTY_STRING})},r.prototype.warning=function(e,t){this.logMessage(e,{logLevel:ot.Warning,containsPii:!1,correlationId:t||w.EMPTY_STRING})},r.prototype.warningPii=function(e,t){this.logMessage(e,{logLevel:ot.Warning,containsPii:!0,correlationId:t||w.EMPTY_STRING})},r.prototype.info=function(e,t){this.logMessage(e,{logLevel:ot.Info,containsPii:!1,correlationId:t||w.EMPTY_STRING})},r.prototype.infoPii=function(e,t){this.logMessage(e,{logLevel:ot.Info,containsPii:!0,correlationId:t||w.EMPTY_STRING})},r.prototype.verbose=function(e,t){this.logMessage(e,{logLevel:ot.Verbose,containsPii:!1,correlationId:t||w.EMPTY_STRING})},r.prototype.verbosePii=function(e,t){this.logMessage(e,{logLevel:ot.Verbose,containsPii:!0,correlationId:t||w.EMPTY_STRING})},r.prototype.trace=function(e,t){this.logMessage(e,{logLevel:ot.Trace,containsPii:!1,correlationId:t||w.EMPTY_STRING})},r.prototype.tracePii=function(e,t){this.logMessage(e,{logLevel:ot.Trace,containsPii:!0,correlationId:t||w.EMPTY_STRING})},r.prototype.isPiiLoggingEnabled=function(){return this.piiLoggingEnabled||!1},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var UC="@azure/msal-common",D_="9.1.1";/*! @azure/msal-common v9.1.1 2023-01-19 */var Cc;(function(r){r[r.None=0]="None",r.AzurePublic="https://login.microsoftonline.com",r.AzurePpe="https://login.windows-ppe.net",r.AzureChina="https://login.chinacloudapi.cn",r.AzureGermany="https://login.microsoftonline.de",r.AzureUsGovernment="https://login.microsoftonline.us"})(Cc||(Cc={}));/*! @azure/msal-common v9.1.1 2023-01-19 */var Hc=function(){function r(){}return r.prototype.generateAccountId=function(){return r.generateAccountIdForCacheKey(this.homeAccountId,this.environment)},r.prototype.generateCredentialId=function(){return r.generateCredentialIdForCacheKey(this.credentialType,this.clientId,this.realm,this.familyId)},r.prototype.generateTarget=function(){return r.generateTargetForCacheKey(this.target)},r.prototype.generateCredentialKey=function(){return r.generateCredentialCacheKey(this.homeAccountId,this.environment,this.credentialType,this.clientId,this.realm,this.target,this.familyId,this.tokenType,this.requestedClaimsHash)},r.prototype.generateType=function(){switch(this.credentialType){case Me.ID_TOKEN:return Vi.ID_TOKEN;case Me.ACCESS_TOKEN:case Me.ACCESS_TOKEN_WITH_AUTH_SCHEME:return Vi.ACCESS_TOKEN;case Me.REFRESH_TOKEN:return Vi.REFRESH_TOKEN;default:throw j.createUnexpectedCredentialTypeError()}},r.getCredentialType=function(e){for(var t=T1.CACHE_KEY_SEPARATOR,i="(https?:\\/\\/)?([\\w-]+\\.)*([\\w-]{1,63})(\\.(\\w{2,63}))(\\:[0-9]{4,5})?",n=0,a=Object.keys(Me);n<a.length;n++){var o=a[n],s=Me[o].toLowerCase();if(e.toLowerCase().search(""+t+i+t+s+t)!==-1)return Me[o]}return w.NOT_DEFINED},r.generateCredentialCacheKey=function(e,t,i,n,a,o,s,c,l){var h=[this.generateAccountIdForCacheKey(e,t),this.generateCredentialIdForCacheKey(i,n,a,s),this.generateTargetForCacheKey(o),this.generateClaimsHashForCacheKey(l),this.generateSchemeForCacheKey(c)];return h.join(T1.CACHE_KEY_SEPARATOR).toLowerCase()},r.generateAccountIdForCacheKey=function(e,t){var i=[e,t];return i.join(T1.CACHE_KEY_SEPARATOR).toLowerCase()},r.generateCredentialIdForCacheKey=function(e,t,i,n){var a=e===Me.REFRESH_TOKEN&&n||t,o=[e,a,i||w.EMPTY_STRING];return o.join(T1.CACHE_KEY_SEPARATOR).toLowerCase()},r.generateTargetForCacheKey=function(e){return(e||w.EMPTY_STRING).toLowerCase()},r.generateClaimsHashForCacheKey=function(e){return(e||w.EMPTY_STRING).toLowerCase()},r.generateSchemeForCacheKey=function(e){return e&&e.toLowerCase()!==Ie.BEARER.toLowerCase()?e.toLowerCase():w.EMPTY_STRING},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var he={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"}},Qe=function(r){F1(e,r);function e(t,i){var n=r.call(this,t,i)||this;return n.name="ClientConfigurationError",Object.setPrototypeOf(n,e.prototype),n}return e.createRedirectUriEmptyError=function(){return new e(he.redirectUriNotSet.code,he.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(he.postLogoutUriNotSet.code,he.postLogoutUriNotSet.desc)},e.createClaimsRequestParsingError=function(t){return new e(he.claimsRequestParsingError.code,he.claimsRequestParsingError.desc+" Given value: "+t)},e.createInsecureAuthorityUriError=function(t){return new e(he.authorityUriInsecure.code,he.authorityUriInsecure.desc+" Given URI: "+t)},e.createUrlParseError=function(t){return new e(he.urlParseError.code,he.urlParseError.desc+" Given Error: "+t)},e.createUrlEmptyError=function(){return new e(he.urlEmptyError.code,he.urlEmptyError.desc)},e.createEmptyScopesArrayError=function(){return new e(he.emptyScopesError.code,""+he.emptyScopesError.desc)},e.createClientIdSingleScopeError=function(t){return new e(he.clientIdSingleScopeError.code,he.clientIdSingleScopeError.desc+" Given Scopes: "+t)},e.createInvalidPromptError=function(t){return new e(he.invalidPrompt.code,he.invalidPrompt.desc+" Given value: "+t)},e.createInvalidClaimsRequestError=function(){return new e(he.invalidClaimsRequest.code,he.invalidClaimsRequest.desc)},e.createEmptyLogoutRequestError=function(){return new e(he.logoutRequestEmptyError.code,he.logoutRequestEmptyError.desc)},e.createEmptyTokenRequestError=function(){return new e(he.tokenRequestEmptyError.code,he.tokenRequestEmptyError.desc)},e.createInvalidCodeChallengeMethodError=function(){return new e(he.invalidCodeChallengeMethod.code,he.invalidCodeChallengeMethod.desc)},e.createInvalidCodeChallengeParamsError=function(){return new e(he.invalidCodeChallengeParams.code,he.invalidCodeChallengeParams.desc)},e.createInvalidCloudDiscoveryMetadataError=function(){return new e(he.invalidCloudDiscoveryMetadata.code,he.invalidCloudDiscoveryMetadata.desc)},e.createInvalidAuthorityMetadataError=function(){return new e(he.invalidAuthorityMetadata.code,he.invalidAuthorityMetadata.desc)},e.createUntrustedAuthorityError=function(){return new e(he.untrustedAuthority.code,he.untrustedAuthority.desc)},e.createInvalidAzureCloudInstanceError=function(){return new e(he.invalidAzureCloudInstance.code,he.invalidAzureCloudInstance.desc)},e.createMissingSshJwkError=function(){return new e(he.missingSshJwk.code,he.missingSshJwk.desc)},e.createMissingSshKidError=function(){return new e(he.missingSshKid.code,he.missingSshKid.desc)},e.createMissingNonceAuthenticationHeadersError=function(){return new e(he.missingNonceAuthenticationHeader.code,he.missingNonceAuthenticationHeader.desc)},e.createInvalidAuthenticationHeaderError=function(t,i){return new e(he.invalidAuthenticationHeader.code,he.invalidAuthenticationHeader.desc+". Invalid header: "+t+". Details: "+i)},e}(j);/*! @azure/msal-common v9.1.1 2023-01-19 */var g1=function(){function r(e){var t=this,i=e?F.trimArrayEntries(x4(e)):[],n=i?F.removeEmptyStringsFromArray(i):[];this.validateInputScopes(n),this.scopes=new Set,n.forEach(function(a){return t.scopes.add(a)})}return r.fromString=function(e){var t=e||w.EMPTY_STRING,i=t.split(" ");return new r(i)},r.prototype.validateInputScopes=function(e){if(!e||e.length<1)throw Qe.createEmptyScopesArrayError()},r.prototype.containsScope=function(e){var t=this.printScopesLowerCase().split(" "),i=new r(t);return F.isEmpty(e)?!1:i.scopes.has(e.toLowerCase())},r.prototype.containsScopeSet=function(e){var t=this;return!e||e.scopes.size<=0?!1:this.scopes.size>=e.scopes.size&&e.asArray().every(function(i){return t.containsScope(i)})},r.prototype.containsOnlyOIDCScopes=function(){var e=this,t=0;return vm.forEach(function(i){e.containsScope(i)&&(t+=1)}),this.scopes.size===t},r.prototype.appendScope=function(e){F.isEmpty(e)||this.scopes.add(e.trim())},r.prototype.appendScopes=function(e){var t=this;try{e.forEach(function(i){return t.appendScope(i)})}catch(i){throw j.createAppendScopeSetError(i)}},r.prototype.removeScope=function(e){if(F.isEmpty(e))throw j.createRemoveEmptyScopeFromSetError(e);this.scopes.delete(e.trim())},r.prototype.removeOIDCScopes=function(){var e=this;vm.forEach(function(t){e.scopes.delete(t)})},r.prototype.unionScopeSets=function(e){if(!e)throw j.createEmptyInputScopeSetError();var t=new Set;return e.scopes.forEach(function(i){return t.add(i.toLowerCase())}),this.scopes.forEach(function(i){return t.add(i.toLowerCase())}),t},r.prototype.intersectingScopeSets=function(e){if(!e)throw j.createEmptyInputScopeSetError();e.containsOnlyOIDCScopes()||e.removeOIDCScopes();var t=this.unionScopeSets(e),i=e.getScopeCount(),n=this.getScopeCount(),a=t.size;return a<n+i},r.prototype.getScopeCount=function(){return this.scopes.size},r.prototype.asArray=function(){var e=[];return this.scopes.forEach(function(t){return e.push(t)}),e},r.prototype.printScopes=function(){if(this.scopes){var e=this.asArray();return e.join(" ")}return w.EMPTY_STRING},r.prototype.printScopesLowerCase=function(){return this.printScopes().toLowerCase()},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */function C0(r,e){if(F.isEmpty(r))throw j.createClientInfoEmptyError();try{var t=e.base64Decode(r);return JSON.parse(t)}catch(i){throw j.createClientInfoDecodingError(i.message)}}function b2(r){if(F.isEmpty(r))throw j.createClientInfoDecodingError("Home account ID was empty.");var e=r.split(T1.CLIENT_INFO_SEPARATOR,2);return{uid:e[0],utid:e.length<2?w.EMPTY_STRING:e[1]}}/*! @azure/msal-common v9.1.1 2023-01-19 */var ur;(function(r){r[r.Default=0]="Default",r[r.Adfs=1]="Adfs",r[r.Dsts=2]="Dsts"})(ur||(ur={}));/*! @azure/msal-common v9.1.1 2023-01-19 */var Wt=function(){function r(){}return r.prototype.generateAccountId=function(){var e=[this.homeAccountId,this.environment];return e.join(T1.CACHE_KEY_SEPARATOR).toLowerCase()},r.prototype.generateAccountKey=function(){return r.generateAccountCacheKey({homeAccountId:this.homeAccountId,environment:this.environment,tenantId:this.realm,username:this.username,localAccountId:this.localAccountId})},r.prototype.generateType=function(){switch(this.authorityType){case xi.ADFS_ACCOUNT_TYPE:return Vi.ADFS;case xi.MSAV1_ACCOUNT_TYPE:return Vi.MSA;case xi.MSSTS_ACCOUNT_TYPE:return Vi.MSSTS;case xi.GENERIC_ACCOUNT_TYPE:return Vi.GENERIC;default:throw j.createUnexpectedAccountTypeError()}},r.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}},r.generateAccountCacheKey=function(e){var t=[e.homeAccountId,e.environment||w.EMPTY_STRING,e.tenantId||w.EMPTY_STRING];return t.join(T1.CACHE_KEY_SEPARATOR).toLowerCase()},r.createAccount=function(e,t,i,n,a,o,s,c){var l,h,d,u,v,m,f=new r;f.authorityType=xi.MSSTS_ACCOUNT_TYPE,f.clientInfo=e,f.homeAccountId=t,f.nativeAccountId=c;var C=s||n&&n.getPreferredCache();if(!C)throw j.createInvalidCacheEnvironmentError();if(f.environment=C,f.realm=((l=i==null?void 0:i.claims)===null||l===void 0?void 0:l.tid)||w.EMPTY_STRING,i){f.idTokenClaims=i.claims,f.localAccountId=((h=i==null?void 0:i.claims)===null||h===void 0?void 0:h.oid)||((d=i==null?void 0:i.claims)===null||d===void 0?void 0:d.sub)||w.EMPTY_STRING;var _=(u=i==null?void 0:i.claims)===null||u===void 0?void 0:u.preferred_username,p=!((v=i==null?void 0:i.claims)===null||v===void 0)&&v.emails?i.claims.emails[0]:null;f.username=_||p||w.EMPTY_STRING,f.name=(m=i==null?void 0:i.claims)===null||m===void 0?void 0:m.name}return f.cloudGraphHostName=a,f.msGraphHost=o,f},r.createGenericAccount=function(e,t,i,n,a,o){var s,c,l,h,d=new r;d.authorityType=i&&i.authorityType===ur.Adfs?xi.ADFS_ACCOUNT_TYPE:xi.GENERIC_ACCOUNT_TYPE,d.homeAccountId=e,d.realm=w.EMPTY_STRING;var u=o||i&&i.getPreferredCache();if(!u)throw j.createInvalidCacheEnvironmentError();return t&&(d.localAccountId=((s=t==null?void 0:t.claims)===null||s===void 0?void 0:s.oid)||((c=t==null?void 0:t.claims)===null||c===void 0?void 0:c.sub)||w.EMPTY_STRING,d.username=((l=t==null?void 0:t.claims)===null||l===void 0?void 0:l.upn)||w.EMPTY_STRING,d.name=((h=t==null?void 0:t.claims)===null||h===void 0?void 0:h.name)||w.EMPTY_STRING,d.idTokenClaims=t==null?void 0:t.claims),d.environment=u,d.cloudGraphHostName=n,d.msGraphHost=a,d},r.generateHomeAccountId=function(e,t,i,n,a){var o,s=!((o=a==null?void 0:a.claims)===null||o===void 0)&&o.sub?a.claims.sub:w.EMPTY_STRING;if(t===ur.Adfs||t===ur.Dsts)return s;if(e)try{var c=C0(e,n);if(!F.isEmpty(c.uid)&&!F.isEmpty(c.utid))return""+c.uid+T1.CLIENT_INFO_SEPARATOR+c.utid}catch{}return i.verbose("No client info in response"),s},r.isAccountEntity=function(e){return e?e.hasOwnProperty("homeAccountId")&&e.hasOwnProperty("environment")&&e.hasOwnProperty("realm")&&e.hasOwnProperty("localAccountId")&&e.hasOwnProperty("username")&&e.hasOwnProperty("authorityType"):!1},r.accountInfoIsEqual=function(e,t,i){if(!e||!t)return!1;var n=!0;if(i){var a=e.idTokenClaims||{},o=t.idTokenClaims||{};n=a.iat===o.iat&&a.nonce===o.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&&n},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var ui=function(){function r(e,t){if(F.isEmpty(e))throw j.createTokenNullOrEmptyError(e);this.rawToken=e,this.claims=r.extractTokenClaims(e,t)}return r.extractTokenClaims=function(e,t){var i=F.decodeAuthToken(e);try{var n=i.JWSPayload,a=t.base64Decode(n);return JSON.parse(a)}catch(o){throw j.createTokenParsingError(o)}},r.checkMaxAge=function(e,t){var i=3e5;if(t===0||Date.now()-i>e+t)throw j.createMaxAgeTranspiredError()},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var Pr=function(){function r(e,t){this.clientId=e,this.cryptoImpl=t}return r.prototype.getAllAccounts=function(){var e=this,t=this.getAccountsFilteredBy(),i=Object.keys(t).map(function(o){return t[o]}),n=i.length;if(n<1)return[];var a=i.map(function(o){var s=r.toObject(new Wt,o),c=s.getAccountInfo(),l=e.readIdTokenFromCache(e.clientId,c);return l&&!c.idTokenClaims&&(c.idToken=l.secret,c.idTokenClaims=new ui(l.secret,e.cryptoImpl).claims),c});return a},r.prototype.saveCacheRecord=function(e){return ae(this,void 0,void 0,function(){return oe(this,function(t){switch(t.label){case 0:if(!e)throw j.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]}})})},r.prototype.saveAccessToken=function(e){return ae(this,void 0,void 0,function(){var t,i,n,a,o=this;return oe(this,function(s){switch(s.label){case 0:return t=this.getCredentialsFilteredBy({clientId:e.clientId,credentialType:e.credentialType,environment:e.environment,homeAccountId:e.homeAccountId,realm:e.realm,tokenType:e.tokenType,requestedClaimsHash:e.requestedClaimsHash}),i=g1.fromString(e.target),n=Object.keys(t.accessTokens).map(function(c){return t.accessTokens[c]}),n?(a=[],n.forEach(function(c){var l=g1.fromString(c.target);l.intersectingScopeSets(i)&&a.push(o.removeCredential(c))}),[4,Promise.all(a)]):[3,2];case 1:s.sent(),s.label=2;case 2:return this.setAccessTokenCredential(e),[2]}})})},r.prototype.getAccountsFilteredBy=function(e){return this.getAccountsFilteredByInternal(e?e.homeAccountId:w.EMPTY_STRING,e?e.environment:w.EMPTY_STRING,e?e.realm:w.EMPTY_STRING,e?e.nativeAccountId:w.EMPTY_STRING)},r.prototype.getAccountsFilteredByInternal=function(e,t,i,n){var a=this,o=this.getKeys(),s={};return o.forEach(function(c){var l=a.getAccount(c);l&&(e&&!a.matchHomeAccountId(l,e)||t&&!a.matchEnvironment(l,t)||i&&!a.matchRealm(l,i)||n&&!a.matchNativeAccountId(l,n)||(s[c]=l))}),s},r.prototype.getCredentialsFilteredBy=function(e){return this.getCredentialsFilteredByInternal(e.homeAccountId,e.environment,e.credentialType,e.clientId,e.familyId,e.realm,e.target,e.userAssertionHash,e.tokenType,e.keyId,e.requestedClaimsHash)},r.prototype.getCredentialsFilteredByInternal=function(e,t,i,n,a,o,s,c,l,h,d){var u=this,v=this.getKeys(),m={idTokens:{},accessTokens:{},refreshTokens:{}};return v.forEach(function(f){var C=Hc.getCredentialType(f);if(C!==w.NOT_DEFINED){var _=u.getSpecificCredential(f,C);if(_&&!(c&&!u.matchUserAssertionHash(_,c))&&!(typeof e=="string"&&!u.matchHomeAccountId(_,e))&&!(t&&!u.matchEnvironment(_,t))&&!(o&&!u.matchRealm(_,o))&&!(i&&!u.matchCredentialType(_,i))&&!(n&&!u.matchClientId(_,n))&&!(a&&!u.matchFamilyId(_,a))&&!(s&&!u.matchTarget(_,s))&&!((d||_.requestedClaimsHash)&&_.requestedClaimsHash!==d)&&!(i===Me.ACCESS_TOKEN_WITH_AUTH_SCHEME&&(l&&!u.matchTokenType(_,l)||l===Ie.SSH&&h&&!u.matchKeyId(_,h)))){var p=u.updateCredentialCacheKey(f,_);switch(C){case Me.ID_TOKEN:m.idTokens[p]=_;break;case Me.ACCESS_TOKEN:case Me.ACCESS_TOKEN_WITH_AUTH_SCHEME:m.accessTokens[p]=_;break;case Me.REFRESH_TOKEN:m.refreshTokens[p]=_;break}}}}),m},r.prototype.getAppMetadataFilteredBy=function(e){return this.getAppMetadataFilteredByInternal(e.environment,e.clientId)},r.prototype.getAppMetadataFilteredByInternal=function(e,t){var i=this,n=this.getKeys(),a={};return n.forEach(function(o){if(i.isAppMetadata(o)){var s=i.getAppMetadata(o);s&&(e&&!i.matchEnvironment(s,e)||t&&!i.matchClientId(s,t)||(a[o]=s))}}),a},r.prototype.getAuthorityMetadataByAlias=function(e){var t=this,i=this.getAuthorityMetadataKeys(),n=null;return i.forEach(function(a){if(!(!t.isAuthorityMetadata(a)||a.indexOf(t.clientId)===-1)){var o=t.getAuthorityMetadata(a);o&&o.aliases.indexOf(e)!==-1&&(n=o)}}),n},r.prototype.removeAllAccounts=function(){return ae(this,void 0,void 0,function(){var e,t,i=this;return oe(this,function(n){switch(n.label){case 0:return e=this.getKeys(),t=[],e.forEach(function(a){var o=i.getAccount(a);o&&t.push(i.removeAccount(a))}),[4,Promise.all(t)];case 1:return n.sent(),[2,!0]}})})},r.prototype.removeAccount=function(e){return ae(this,void 0,void 0,function(){var t;return oe(this,function(i){switch(i.label){case 0:if(t=this.getAccount(e),!t)throw j.createNoAccountFoundError();return[4,this.removeAccountContext(t)];case 1:return[2,i.sent()&&this.removeItem(e,wa.ACCOUNT)]}})})},r.prototype.removeAccountContext=function(e){return ae(this,void 0,void 0,function(){var t,i,n,a=this;return oe(this,function(o){switch(o.label){case 0:return t=this.getKeys(),i=e.generateAccountId(),n=[],t.forEach(function(s){var c=Hc.getCredentialType(s);if(c!==w.NOT_DEFINED){var l=a.getSpecificCredential(s,c);l&&i===l.generateAccountId()&&n.push(a.removeCredential(l))}}),[4,Promise.all(n)];case 1:return o.sent(),[2,!0]}})})},r.prototype.removeCredential=function(e){return ae(this,void 0,void 0,function(){var t,i,n;return oe(this,function(a){switch(a.label){case 0:if(t=e.generateCredentialKey(),e.credentialType.toLowerCase()!==Me.ACCESS_TOKEN_WITH_AUTH_SCHEME.toLowerCase())return[3,4];if(e.tokenType!==Ie.POP)return[3,4];if(i=e,n=i.keyId,!n)return[3,4];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.cryptoImpl.removeTokenBindingKey(n)];case 2:return a.sent(),[3,4];case 3:throw a.sent(),j.createBindingKeyNotRemovedError();case 4:return[2,this.removeItem(t,wa.CREDENTIAL)]}})})},r.prototype.removeAppMetadata=function(){var e=this,t=this.getKeys();return t.forEach(function(i){e.isAppMetadata(i)&&e.removeItem(i,wa.APP_METADATA)}),!0},r.prototype.readCacheRecord=function(e,t,i,n){var a=this.readAccountFromCache(e),o=this.readIdTokenFromCache(t,e),s=this.readAccessTokenFromCache(t,e,i),c=this.readRefreshTokenFromCache(t,e,!1),l=this.readAppMetadataFromCache(n,t);return a&&o&&(a.idTokenClaims=new ui(o.secret,this.cryptoImpl).claims),{account:a,idToken:o,accessToken:s,refreshToken:c,appMetadata:l}},r.prototype.readAccountFromCache=function(e){var t=Wt.generateAccountCacheKey(e);return this.getAccount(t)},r.prototype.readAccountFromCacheWithNativeAccountId=function(e){var t={nativeAccountId:e},i=this.getAccountsFilteredBy(t),n=Object.keys(i).map(function(a){return i[a]});if(n.length<1)return null;if(n.length>1)throw j.createMultipleMatchingAccountsInCacheError();return i[0]},r.prototype.readIdTokenFromCache=function(e,t){var i={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:Me.ID_TOKEN,clientId:e,realm:t.tenantId},n=this.getCredentialsFilteredBy(i),a=Object.keys(n.idTokens).map(function(s){return n.idTokens[s]}),o=a.length;if(o<1)return null;if(o>1)throw j.createMultipleMatchingTokensInCacheError();return a[0]},r.prototype.readAccessTokenFromCache=function(e,t,i){var n=new g1(i.scopes||[]),a=i.authenticationScheme||Ie.BEARER,o=a&&a.toLowerCase()!==Ie.BEARER.toLowerCase()?Me.ACCESS_TOKEN_WITH_AUTH_SCHEME:Me.ACCESS_TOKEN,s={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:o,clientId:e,realm:t.tenantId,target:n.printScopesLowerCase(),tokenType:a,keyId:i.sshKid,requestedClaimsHash:i.requestedClaimsHash},c=this.getCredentialsFilteredBy(s),l=Object.keys(c.accessTokens).map(function(d){return c.accessTokens[d]}),h=l.length;if(h<1)return null;if(h>1)throw j.createMultipleMatchingTokensInCacheError();return l[0]},r.prototype.readRefreshTokenFromCache=function(e,t,i){var n=i?b0:void 0,a={homeAccountId:t.homeAccountId,environment:t.environment,credentialType:Me.REFRESH_TOKEN,clientId:e,familyId:n},o=this.getCredentialsFilteredBy(a),s=Object.keys(o.refreshTokens).map(function(l){return o.refreshTokens[l]}),c=s.length;return c<1?null:s[0]},r.prototype.readAppMetadataFromCache=function(e,t){var i={environment:e,clientId:t},n=this.getAppMetadataFilteredBy(i),a=Object.keys(n).map(function(s){return n[s]}),o=a.length;if(o<1)return null;if(o>1)throw j.createMultipleMatchingAppMetadataInCacheError();return a[0]},r.prototype.isAppMetadataFOCI=function(e,t){var i=this.readAppMetadataFromCache(e,t);return!!(i&&i.familyId===b0)},r.prototype.matchHomeAccountId=function(e,t){return typeof e.homeAccountId=="string"&&t===e.homeAccountId},r.prototype.matchUserAssertionHash=function(e,t){return!!(e.userAssertionHash&&t===e.userAssertionHash)},r.prototype.matchEnvironment=function(e,t){var i=this.getAuthorityMetadataByAlias(t);return!!(i&&i.aliases.indexOf(e.environment)>-1)},r.prototype.matchCredentialType=function(e,t){return e.credentialType&&t.toLowerCase()===e.credentialType.toLowerCase()},r.prototype.matchClientId=function(e,t){return!!(e.clientId&&t===e.clientId)},r.prototype.matchFamilyId=function(e,t){return!!(e.familyId&&t===e.familyId)},r.prototype.matchRealm=function(e,t){return!!(e.realm&&t===e.realm)},r.prototype.matchNativeAccountId=function(e,t){return!!(e.nativeAccountId&&t===e.nativeAccountId)},r.prototype.matchTarget=function(e,t){var i=e.credentialType!==Me.ACCESS_TOKEN&&e.credentialType!==Me.ACCESS_TOKEN_WITH_AUTH_SCHEME;if(i||!e.target)return!1;var n=g1.fromString(e.target),a=g1.fromString(t);return a.containsOnlyOIDCScopes()?a.removeScope(w.OFFLINE_ACCESS_SCOPE):a.removeOIDCScopes(),n.containsScopeSet(a)},r.prototype.matchTokenType=function(e,t){return!!(e.tokenType&&e.tokenType===t)},r.prototype.matchKeyId=function(e,t){return!!(e.keyId&&e.keyId===t)},r.prototype.isAppMetadata=function(e){return e.indexOf(j3)!==-1},r.prototype.isAuthorityMetadata=function(e){return e.indexOf(Ks.CACHE_KEY)!==-1},r.prototype.generateAuthorityMetadataCacheKey=function(e){return Ks.CACHE_KEY+"-"+this.clientId+"-"+e},r.prototype.getSpecificCredential=function(e,t){switch(t){case Me.ID_TOKEN:return this.getIdTokenCredential(e);case Me.ACCESS_TOKEN:case Me.ACCESS_TOKEN_WITH_AUTH_SCHEME:return this.getAccessTokenCredential(e);case Me.REFRESH_TOKEN:return this.getRefreshTokenCredential(e);default:return null}},r.toObject=function(e,t){for(var i in t)e[i]=t[i];return e},r}(),FC=function(r){F1(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.setAccount=function(){var t="Storage interface - setAccount() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.getAccount=function(){var t="Storage interface - getAccount() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.setIdTokenCredential=function(){var t="Storage interface - setIdTokenCredential() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.getIdTokenCredential=function(){var t="Storage interface - getIdTokenCredential() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.setAccessTokenCredential=function(){var t="Storage interface - setAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.getAccessTokenCredential=function(){var t="Storage interface - getAccessTokenCredential() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.setRefreshTokenCredential=function(){var t="Storage interface - setRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.getRefreshTokenCredential=function(){var t="Storage interface - getRefreshTokenCredential() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.setAppMetadata=function(){var t="Storage interface - setAppMetadata() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.getAppMetadata=function(){var t="Storage interface - getAppMetadata() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.setServerTelemetry=function(){var t="Storage interface - setServerTelemetry() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.getServerTelemetry=function(){var t="Storage interface - getServerTelemetry() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.setAuthorityMetadata=function(){var t="Storage interface - setAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.getAuthorityMetadata=function(){var t="Storage interface - getAuthorityMetadata() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.getAuthorityMetadataKeys=function(){var t="Storage interface - getAuthorityMetadataKeys() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.setThrottlingCache=function(){var t="Storage interface - setThrottlingCache() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.getThrottlingCache=function(){var t="Storage interface - getThrottlingCache() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.removeItem=function(){var t="Storage interface - removeItem() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.containsKey=function(){var t="Storage interface - containsKey() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.getKeys=function(){var t="Storage interface - getKeys() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e.prototype.clear=function(){return ae(this,void 0,void 0,function(){var t;return oe(this,function(i){throw t="Storage interface - clear() has not been implemented for the cacheStorage interface.",Q.createUnexpectedError(t)})})},e.prototype.updateCredentialCacheKey=function(){var t="Storage interface - updateCredentialCacheKey() has not been implemented for the cacheStorage interface.";throw Q.createUnexpectedError(t)},e}(Pr);/*! @azure/msal-common v9.1.1 2023-01-19 */var BC=300,L_={tokenRenewalOffsetSeconds:BC,preventCorsPreflight:!1,proxyUrl:w.EMPTY_STRING},jC={loggerCallback:function(){},piiLoggingEnabled:!1,logLevel:ot.Info,correlationId:w.EMPTY_STRING},qC={sendGetRequestAsync:function(){return ae(this,void 0,void 0,function(){var r;return oe(this,function(e){throw r="Network interface - sendGetRequestAsync() has not been implemented",Q.createUnexpectedError(r)})})},sendPostRequestAsync:function(){return ae(this,void 0,void 0,function(){var r;return oe(this,function(e){throw r="Network interface - sendPostRequestAsync() has not been implemented",Q.createUnexpectedError(r)})})}},GC={sku:w.SKU,version:D_,cpu:w.EMPTY_STRING,os:w.EMPTY_STRING},KC={clientSecret:w.EMPTY_STRING,clientAssertion:void 0},WC={azureCloudInstance:Cc.None,tenant:""+w.DEFAULT_COMMON_TENANT},YC={application:{appName:"",appVersion:""}};function QC(r){var e=r.authOptions,t=r.systemOptions,i=r.loggerOptions,n=r.storageInterface,a=r.networkInterface,o=r.cryptoInterface,s=r.clientCredentials,c=r.libraryInfo,l=r.telemetry,h=r.serverTelemetryManager,d=r.persistencePlugin,u=r.serializableCache,v=Ue(Ue({},jC),i);return{authOptions:XC(e),systemOptions:Ue(Ue({},L_),t),loggerOptions:v,storageInterface:n||new FC(e.clientId,M0),networkInterface:a||qC,cryptoInterface:o||M0,clientCredentials:s||KC,libraryInfo:Ue(Ue({},GC),c),telemetry:Ue(Ue({},YC),l),serverTelemetryManager:h||null,persistencePlugin:d||null,serializableCache:u||null}}function XC(r){return Ue({clientCapabilities:[],azureCloudOptions:WC,skipAuthorityMetadataCache:!1},r)}/*! @azure/msal-common v9.1.1 2023-01-19 */var Aa=function(r){F1(e,r);function e(t,i,n){var a=r.call(this,t,i,n)||this;return a.name="ServerError",Object.setPrototypeOf(a,e.prototype),a}return e}(Q);/*! @azure/msal-common v9.1.1 2023-01-19 */var H0=function(){function r(){}return r.generateThrottlingStorageKey=function(e){return Ws.THROTTLING_PREFIX+"."+JSON.stringify(e)},r.preProcess=function(e,t){var i,n=r.generateThrottlingStorageKey(t),a=e.getThrottlingCache(n);if(a){if(a.throttleTime<Date.now()){e.removeItem(n,wa.THROTTLING);return}throw new Aa(((i=a.errorCodes)===null||i===void 0?void 0:i.join(" "))||w.EMPTY_STRING,a.errorMessage,a.subError)}},r.postProcess=function(e,t,i){if(r.checkResponseStatus(i)||r.checkResponseForRetryAfter(i)){var n={throttleTime:r.calculateThrottleTime(parseInt(i.headers[X1.RETRY_AFTER])),error:i.body.error,errorCodes:i.body.error_codes,errorMessage:i.body.error_description,subError:i.body.suberror};e.setThrottlingCache(r.generateThrottlingStorageKey(t),n)}},r.checkResponseStatus=function(e){return e.status===429||e.status>=500&&e.status<600},r.checkResponseForRetryAfter=function(e){return e.headers?e.headers.hasOwnProperty(X1.RETRY_AFTER)&&(e.status<200||e.status>=300):!1},r.calculateThrottleTime=function(e){var t=e<=0?0:e,i=Date.now()/1e3;return Math.floor(Math.min(i+(t||Ws.DEFAULT_THROTTLE_TIME_SECONDS),i+Ws.DEFAULT_MAX_THROTTLE_TIME_SECONDS)*1e3)},r.removeThrottle=function(e,t,i,n){var a={clientId:t,authority:i.authority,scopes:i.scopes,homeAccountIdentifier:n,claims:i.claims,authenticationScheme:i.authenticationScheme,resourceRequestMethod:i.resourceRequestMethod,resourceRequestUri:i.resourceRequestUri,shrClaims:i.shrClaims,sshKid:i.sshKid},o=this.generateThrottlingStorageKey(a);return e.removeItem(o,wa.THROTTLING)},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var JC=function(){function r(e,t){this.networkClient=e,this.cacheManager=t}return r.prototype.sendPostRequest=function(e,t,i){return ae(this,void 0,void 0,function(){var n,a;return oe(this,function(o){switch(o.label){case 0:H0.preProcess(this.cacheManager,e),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,this.networkClient.sendPostRequestAsync(t,i)];case 2:return n=o.sent(),[3,4];case 3:throw a=o.sent(),a instanceof Q?a:j.createNetworkError(t,a);case 4:return H0.postProcess(this.cacheManager,e,n),[2,n]}})})},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var Y1;(function(r){r.HOME_ACCOUNT_ID="home_account_id",r.UPN="UPN"})(Y1||(Y1={}));/*! @azure/msal-common v9.1.1 2023-01-19 */var a6=function(){function r(e,t){this.config=QC(e),this.logger=new n6(this.config.loggerOptions,UC,D_),this.cryptoUtils=this.config.cryptoInterface,this.cacheManager=this.config.storageInterface,this.networkClient=this.config.networkInterface,this.networkManager=new JC(this.networkClient,this.cacheManager),this.serverTelemetryManager=this.config.serverTelemetryManager,this.authority=this.config.authOptions.authority,this.performanceClient=t}return r.prototype.createTokenRequestHeaders=function(e){var t={};if(t[X1.CONTENT_TYPE]=w.URL_FORM_CONTENT_TYPE,!this.config.systemOptions.preventCorsPreflight&&e)switch(e.type){case Y1.HOME_ACCOUNT_ID:try{var i=b2(e.credential);t[X1.CCS_HEADER]="Oid:"+i.uid+"@"+i.utid}catch(n){this.logger.verbose("Could not parse home account ID for CCS Header: "+n)}break;case Y1.UPN:t[X1.CCS_HEADER]="UPN: "+e.credential;break}return t},r.prototype.executePostToTokenEndpoint=function(e,t,i,n){return ae(this,void 0,void 0,function(){var a;return oe(this,function(o){switch(o.label){case 0:return[4,this.networkManager.sendPostRequest(n,e,{body:t,headers:i,proxyUrl:this.config.systemOptions.proxyUrl})];case 1:return a=o.sent(),this.config.serverTelemetryManager&&a.status<500&&a.status!==429&&this.config.serverTelemetryManager.clearTelemetryCache(),[2,a]}})})},r.prototype.updateAuthority=function(e){if(!e.discoveryComplete())throw j.createEndpointDiscoveryIncompleteError("Updated authority has not completed endpoint discovery.");this.authority=e},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var oa=function(){function r(){}return r.validateRedirectUri=function(e){if(F.isEmpty(e))throw Qe.createRedirectUriEmptyError()},r.validatePrompt=function(e){var t=[];for(var i in d1)t.push(d1[i]);if(t.indexOf(e)<0)throw Qe.createInvalidPromptError(e)},r.validateClaims=function(e){try{JSON.parse(e)}catch{throw Qe.createInvalidClaimsRequestError()}},r.validateCodeChallengeParams=function(e,t){if(F.isEmpty(e)||F.isEmpty(t))throw Qe.createInvalidCodeChallengeParamsError();this.validateCodeChallengeMethod(t)},r.validateCodeChallengeMethod=function(e){if([mm.PLAIN,mm.S256].indexOf(e)<0)throw Qe.createInvalidCodeChallengeMethodError()},r.sanitizeEQParams=function(e,t){return e?(t.forEach(function(i,n){e[n]&&delete e[n]}),e):{}},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var x2=function(){function r(){this.parameters=new Map}return r.prototype.addResponseTypeCode=function(){this.parameters.set(de.RESPONSE_TYPE,encodeURIComponent(w.CODE_RESPONSE_TYPE))},r.prototype.addResponseTypeForTokenAndIdToken=function(){this.parameters.set(de.RESPONSE_TYPE,encodeURIComponent(w.TOKEN_RESPONSE_TYPE+" "+w.ID_TOKEN_RESPONSE_TYPE))},r.prototype.addResponseMode=function(e){this.parameters.set(de.RESPONSE_MODE,encodeURIComponent(e||y0.QUERY))},r.prototype.addNativeBroker=function(){this.parameters.set(de.NATIVE_BROKER,encodeURIComponent("1"))},r.prototype.addScopes=function(e,t){t===void 0&&(t=!0);var i=t?x4(e||[],rl):e||[],n=new g1(i);this.parameters.set(de.SCOPE,encodeURIComponent(n.printScopes()))},r.prototype.addClientId=function(e){this.parameters.set(de.CLIENT_ID,encodeURIComponent(e))},r.prototype.addRedirectUri=function(e){oa.validateRedirectUri(e),this.parameters.set(de.REDIRECT_URI,encodeURIComponent(e))},r.prototype.addPostLogoutRedirectUri=function(e){oa.validateRedirectUri(e),this.parameters.set(de.POST_LOGOUT_URI,encodeURIComponent(e))},r.prototype.addIdTokenHint=function(e){this.parameters.set(de.ID_TOKEN_HINT,encodeURIComponent(e))},r.prototype.addDomainHint=function(e){this.parameters.set(Gs.DOMAIN_HINT,encodeURIComponent(e))},r.prototype.addLoginHint=function(e){this.parameters.set(Gs.LOGIN_HINT,encodeURIComponent(e))},r.prototype.addCcsUpn=function(e){this.parameters.set(X1.CCS_HEADER,encodeURIComponent("UPN:"+e))},r.prototype.addCcsOid=function(e){this.parameters.set(X1.CCS_HEADER,encodeURIComponent("Oid:"+e.uid+"@"+e.utid))},r.prototype.addSid=function(e){this.parameters.set(Gs.SID,encodeURIComponent(e))},r.prototype.addClaims=function(e,t){var i=this.addClientCapabilitiesToClaims(e,t);oa.validateClaims(i),this.parameters.set(de.CLAIMS,encodeURIComponent(i))},r.prototype.addCorrelationId=function(e){this.parameters.set(de.CLIENT_REQUEST_ID,encodeURIComponent(e))},r.prototype.addLibraryInfo=function(e){this.parameters.set(de.X_CLIENT_SKU,e.sku),this.parameters.set(de.X_CLIENT_VER,e.version),e.os&&this.parameters.set(de.X_CLIENT_OS,e.os),e.cpu&&this.parameters.set(de.X_CLIENT_CPU,e.cpu)},r.prototype.addApplicationTelemetry=function(e){e!=null&&e.appName&&this.parameters.set(de.X_APP_NAME,e.appName),e!=null&&e.appVersion&&this.parameters.set(de.X_APP_VER,e.appVersion)},r.prototype.addPrompt=function(e){oa.validatePrompt(e),this.parameters.set(""+de.PROMPT,encodeURIComponent(e))},r.prototype.addState=function(e){F.isEmpty(e)||this.parameters.set(de.STATE,encodeURIComponent(e))},r.prototype.addNonce=function(e){this.parameters.set(de.NONCE,encodeURIComponent(e))},r.prototype.addCodeChallengeParams=function(e,t){if(oa.validateCodeChallengeParams(e,t),e&&t)this.parameters.set(de.CODE_CHALLENGE,encodeURIComponent(e)),this.parameters.set(de.CODE_CHALLENGE_METHOD,encodeURIComponent(t));else throw Qe.createInvalidCodeChallengeParamsError()},r.prototype.addAuthorizationCode=function(e){this.parameters.set(de.CODE,encodeURIComponent(e))},r.prototype.addDeviceCode=function(e){this.parameters.set(de.DEVICE_CODE,encodeURIComponent(e))},r.prototype.addRefreshToken=function(e){this.parameters.set(de.REFRESH_TOKEN,encodeURIComponent(e))},r.prototype.addCodeVerifier=function(e){this.parameters.set(de.CODE_VERIFIER,encodeURIComponent(e))},r.prototype.addClientSecret=function(e){this.parameters.set(de.CLIENT_SECRET,encodeURIComponent(e))},r.prototype.addClientAssertion=function(e){F.isEmpty(e)||this.parameters.set(de.CLIENT_ASSERTION,encodeURIComponent(e))},r.prototype.addClientAssertionType=function(e){F.isEmpty(e)||this.parameters.set(de.CLIENT_ASSERTION_TYPE,encodeURIComponent(e))},r.prototype.addOboAssertion=function(e){this.parameters.set(de.OBO_ASSERTION,encodeURIComponent(e))},r.prototype.addRequestTokenUse=function(e){this.parameters.set(de.REQUESTED_TOKEN_USE,encodeURIComponent(e))},r.prototype.addGrantType=function(e){this.parameters.set(de.GRANT_TYPE,encodeURIComponent(e))},r.prototype.addClientInfo=function(){this.parameters.set(NC,"1")},r.prototype.addExtraQueryParameters=function(e){var t=this;oa.sanitizeEQParams(e,this.parameters),Object.keys(e).forEach(function(i){t.parameters.set(i,e[i])})},r.prototype.addClientCapabilitiesToClaims=function(e,t){var i;if(!e)i={};else try{i=JSON.parse(e)}catch{throw Qe.createInvalidClaimsRequestError()}return t&&t.length>0&&(i.hasOwnProperty(y2.ACCESS_TOKEN)||(i[y2.ACCESS_TOKEN]={}),i[y2.ACCESS_TOKEN][y2.XMS_CC]={values:t}),JSON.stringify(i)},r.prototype.addUsername=function(e){this.parameters.set(x0.username,encodeURIComponent(e))},r.prototype.addPassword=function(e){this.parameters.set(x0.password,encodeURIComponent(e))},r.prototype.addPopToken=function(e){F.isEmpty(e)||(this.parameters.set(de.TOKEN_TYPE,Ie.POP),this.parameters.set(de.REQ_CNF,encodeURIComponent(e)))},r.prototype.addSshJwk=function(e){F.isEmpty(e)||(this.parameters.set(de.TOKEN_TYPE,Ie.SSH),this.parameters.set(de.REQ_CNF,encodeURIComponent(e)))},r.prototype.addServerTelemetry=function(e){this.parameters.set(de.X_CLIENT_CURR_TELEM,e.generateCurrentRequestHeaderValue()),this.parameters.set(de.X_CLIENT_LAST_TELEM,e.generateLastRequestHeaderValue())},r.prototype.addThrottling=function(){this.parameters.set(de.X_MS_LIB_CAPABILITY,Ws.X_MS_LIB_CAPABILITY_VALUE)},r.prototype.addLogoutHint=function(e){this.parameters.set(de.LOGOUT_HINT,encodeURIComponent(e))},r.prototype.createQueryString=function(){var e=new Array;return this.parameters.forEach(function(t,i){e.push(i+"="+t)}),e.join("&")},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var kc=function(r){F1(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.createIdTokenEntity=function(t,i,n,a,o){var s=new e;return s.credentialType=Me.ID_TOKEN,s.homeAccountId=t,s.environment=i,s.clientId=a,s.secret=n,s.realm=o,s},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===Me.ID_TOKEN:!1},e}(Hc);/*! @azure/msal-common v9.1.1 2023-01-19 */var gr=function(){function r(){}return r.nowSeconds=function(){return Math.round(new Date().getTime()/1e3)},r.isTokenExpired=function(e,t){var i=Number(e)||0,n=r.nowSeconds()+t;return n>i},r.wasClockTurnedBack=function(e){var t=Number(e);return t>r.nowSeconds()},r.delay=function(e,t){return new Promise(function(i){return setTimeout(function(){return i(t)},e)})},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var Ec=function(r){F1(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.createAccessTokenEntity=function(t,i,n,a,o,s,c,l,h,d,u,v,m,f,C){var _,p,z=new e;z.homeAccountId=t,z.credentialType=Me.ACCESS_TOKEN,z.secret=n;var M=gr.nowSeconds();if(z.cachedAt=M.toString(),z.expiresOn=c.toString(),z.extendedExpiresOn=l.toString(),d&&(z.refreshOn=d.toString()),z.environment=i,z.clientId=a,z.realm=o,z.target=s,z.userAssertionHash=v,z.tokenType=F.isEmpty(u)?Ie.BEARER:u,f&&(z.requestedClaims=f,z.requestedClaimsHash=C),((_=z.tokenType)===null||_===void 0?void 0:_.toLowerCase())!==Ie.BEARER.toLowerCase())switch(z.credentialType=Me.ACCESS_TOKEN_WITH_AUTH_SCHEME,z.tokenType){case Ie.POP:var A=ui.extractTokenClaims(n,h);if(!(!((p=A==null?void 0:A.cnf)===null||p===void 0)&&p.kid))throw j.createTokenClaimsRequiredError();z.keyId=A.cnf.kid;break;case Ie.SSH:z.keyId=m}return z},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===Me.ACCESS_TOKEN||t.credentialType===Me.ACCESS_TOKEN_WITH_AUTH_SCHEME):!1},e}(Hc);/*! @azure/msal-common v9.1.1 2023-01-19 */var k0=function(r){F1(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.createRefreshTokenEntity=function(t,i,n,a,o,s){var c=new e;return c.clientId=a,c.credentialType=Me.REFRESH_TOKEN,c.environment=i,c.homeAccountId=t,c.secret=n,c.userAssertionHash=s,o&&(c.familyId=o),c},e.isRefreshTokenEntity=function(t){return t?t.hasOwnProperty("homeAccountId")&&t.hasOwnProperty("environment")&&t.hasOwnProperty("credentialType")&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("secret")&&t.credentialType===Me.REFRESH_TOKEN:!1},e}(Hc);/*! @azure/msal-common v9.1.1 2023-01-19 */var pm=["interaction_required","consent_required","login_required"],ZC=["message_only","additional_action","basic_action","user_password_expired","consent_required"],ws={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."}},Tr=function(r){F1(e,r);function e(t,i,n){var a=r.call(this,t,i,n)||this;return a.name="InteractionRequiredAuthError",Object.setPrototypeOf(a,e.prototype),a}return e.isInteractionRequiredError=function(t,i,n){var a=!!t&&pm.indexOf(t)>-1,o=!!n&&ZC.indexOf(n)>-1,s=!!i&&pm.some(function(c){return i.indexOf(c)>-1});return a||s||o},e.createNoTokensFoundError=function(){return new e(ws.noTokensFoundError.code,ws.noTokensFoundError.desc)},e.createNativeAccountUnavailableError=function(){return new e(ws.native_account_unavailable.code,ws.native_account_unavailable.desc)},e}(Q);/*! @azure/msal-common v9.1.1 2023-01-19 */var Ch=function(){function r(e,t,i,n,a){this.account=e||null,this.idToken=t||null,this.accessToken=i||null,this.refreshToken=n||null,this.appMetadata=a||null}return r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var Li=function(){function r(){}return r.setRequestState=function(e,t,i){var n=r.generateLibraryState(e,i);return F.isEmpty(t)?n:""+n+w.RESOURCE_DELIM+t},r.generateLibraryState=function(e,t){if(!e)throw j.createNoCryptoObjectError("generateLibraryState");var i={id:e.createNewGuid()};t&&(i.meta=t);var n=JSON.stringify(i);return e.base64Encode(n)},r.parseRequestState=function(e,t){if(!e)throw j.createNoCryptoObjectError("parseRequestState");if(F.isEmpty(t))throw j.createInvalidStateError(t,"Null, undefined or empty state");try{var i=t.split(w.RESOURCE_DELIM),n=i[0],a=i.length>1?i.slice(1).join(w.RESOURCE_DELIM):w.EMPTY_STRING,o=e.base64Decode(n),s=JSON.parse(o);return{userRequestState:F.isEmpty(a)?w.EMPTY_STRING:a,libraryState:s}}catch(c){throw j.createInvalidStateError(t,c)}},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var ke=function(){function r(e){if(this._urlString=e,F.isEmpty(this._urlString))throw Qe.createUrlEmptyError();F.isEmpty(this.getHash())&&(this._urlString=r.canonicalizeUri(e))}return Object.defineProperty(r.prototype,"urlString",{get:function(){return this._urlString},enumerable:!1,configurable:!0}),r.canonicalizeUri=function(e){if(e){var t=e.toLowerCase();return F.endsWith(t,"?")?t=t.slice(0,-1):F.endsWith(t,"?/")&&(t=t.slice(0,-2)),F.endsWith(t,"/")||(t+="/"),t}return e},r.prototype.validateAsUri=function(){var e;try{e=this.getUrlComponents()}catch(t){throw Qe.createUrlParseError(t)}if(!e.HostNameAndPort||!e.PathSegments)throw Qe.createUrlParseError("Given url string: "+this.urlString);if(!e.Protocol||e.Protocol.toLowerCase()!=="https:")throw Qe.createInsecureAuthorityUriError(this.urlString)},r.appendQueryString=function(e,t){return F.isEmpty(t)?e:e.indexOf("?")<0?e+"?"+t:e+"&"+t},r.removeHashFromUrl=function(e){return r.canonicalizeUri(e.split("#")[0])},r.prototype.replaceTenantPath=function(e){var t=this.getUrlComponents(),i=t.PathSegments;return e&&i.length!==0&&(i[0]===z0.COMMON||i[0]===z0.ORGANIZATIONS)&&(i[0]=e),r.constructAuthorityUriFromObject(t)},r.prototype.getHash=function(){return r.parseHash(this.urlString)},r.prototype.getUrlComponents=function(){var e=RegExp("^(([^:/?#]+):)?(//([^/?#]*))?([^?#]*)(\\?([^#]*))?(#(.*))?"),t=this.urlString.match(e);if(!t)throw Qe.createUrlParseError("Given url string: "+this.urlString);var i={Protocol:t[1],HostNameAndPort:t[4],AbsolutePath:t[5],QueryString:t[7]},n=i.AbsolutePath.split("/");return n=n.filter(function(a){return a&&a.length>0}),i.PathSegments=n,!F.isEmpty(i.QueryString)&&i.QueryString.endsWith("/")&&(i.QueryString=i.QueryString.substring(0,i.QueryString.length-1)),i},r.getDomainFromUrl=function(e){var t=RegExp("^([^:/?#]+://)?([^/?#]*)"),i=e.match(t);if(!i)throw Qe.createUrlParseError("Given url string: "+e);return i[2]},r.getAbsoluteUrl=function(e,t){if(e[0]===w.FORWARD_SLASH){var i=new r(t),n=i.getUrlComponents();return n.Protocol+"//"+n.HostNameAndPort+e}return e},r.parseHash=function(e){var t=e.indexOf("#"),i=e.indexOf("#/");return i>-1?e.substring(i+2):t>-1?e.substring(t+1):w.EMPTY_STRING},r.parseQueryString=function(e){var t=e.indexOf("?"),i=e.indexOf("/?");return i>-1?e.substring(i+2):t>-1?e.substring(t+1):w.EMPTY_STRING},r.constructAuthorityUriFromObject=function(e){return new r(e.Protocol+"//"+e.HostNameAndPort+"/"+e.PathSegments.join("/"))},r.getDeserializedHash=function(e){if(F.isEmpty(e))return{};var t=r.parseHash(e),i=F.queryStringToObject(F.isEmpty(t)?e:t);if(!i)throw j.createHashNotDeserializedError(JSON.stringify(i));return i},r.getDeserializedQueryString=function(e){if(F.isEmpty(e))return{};var t=r.parseQueryString(e),i=F.queryStringToObject(F.isEmpty(t)?e:t);if(!i)throw j.createHashNotDeserializedError(JSON.stringify(i));return i},r.hashContainsKnownProperties=function(e){if(F.isEmpty(e)||e.indexOf("=")<0)return!1;var t=r.getDeserializedHash(e);return!!(t.code||t.error_description||t.error||t.state)},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var G3;(function(r){r.SW="sw",r.UHW="uhw"})(G3||(G3={}));var to=function(){function r(e){this.cryptoUtils=e}return r.prototype.generateCnf=function(e){return ae(this,void 0,void 0,function(){var t,i,n;return oe(this,function(a){switch(a.label){case 0:return[4,this.generateKid(e)];case 1:return t=a.sent(),i=this.cryptoUtils.base64Encode(JSON.stringify(t)),n={kid:t.kid,reqCnfString:i},[4,this.cryptoUtils.hashString(i)];case 2:return[2,(n.reqCnfHash=a.sent(),n)]}})})},r.prototype.generateKid=function(e){return ae(this,void 0,void 0,function(){var t;return oe(this,function(i){switch(i.label){case 0:return[4,this.cryptoUtils.getPublicKeyThumbprint(e)];case 1:return t=i.sent(),[2,{kid:t,xms_ksl:G3.SW}]}})})},r.prototype.signPopToken=function(e,t,i){return ae(this,void 0,void 0,function(){return oe(this,function(n){return[2,this.signPayload(e,t,i)]})})},r.prototype.signPayload=function(e,t,i,n){return ae(this,void 0,void 0,function(){var a,o,s,c,l,h;return oe(this,function(d){switch(d.label){case 0:return a=i.resourceRequestMethod,o=i.resourceRequestUri,s=i.shrClaims,c=i.shrNonce,l=o?new ke(o):void 0,h=l==null?void 0:l.getUrlComponents(),[4,this.cryptoUtils.signJwt(Ue({at:e,ts:gr.nowSeconds(),m:a==null?void 0:a.toUpperCase(),u:h==null?void 0:h.HostNameAndPort,nonce:c||this.cryptoUtils.createNewGuid(),p:h==null?void 0:h.AbsolutePath,q:h!=null&&h.QueryString?[[],h.QueryString]:void 0,client_claims:s||void 0},n),t,i.correlationId)];case 1:return[2,d.sent()]}})})},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var K3=function(){function r(){}return r.prototype.generateAppMetadataKey=function(){return r.generateAppMetadataCacheKey(this.environment,this.clientId)},r.generateAppMetadataCacheKey=function(e,t){var i=[j3,e,t];return i.join(T1.CACHE_KEY_SEPARATOR).toLowerCase()},r.createAppMetadataEntity=function(e,t,i){var n=new r;return n.clientId=e,n.environment=t,i&&(n.familyId=i),n},r.isAppMetadataEntity=function(e,t){return t?e.indexOf(j3)===0&&t.hasOwnProperty("clientId")&&t.hasOwnProperty("environment"):!1},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var eH=function(){function r(e,t){this.cache=e,this.hasChanged=t}return Object.defineProperty(r.prototype,"cacheHasChanged",{get:function(){return this.hasChanged},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tokenCache",{get:function(){return this.cache},enumerable:!1,configurable:!0}),r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var E0=function(){function r(e,t,i,n,a,o){this.clientId=e,this.cacheStorage=t,this.cryptoObj=i,this.logger=n,this.serializableCache=a,this.persistencePlugin=o}return r.prototype.validateServerAuthorizationCodeResponse=function(e,t,i){if(!e.state||!t)throw e.state?j.createStateNotFoundError("Cached State"):j.createStateNotFoundError("Server State");if(decodeURIComponent(e.state)!==decodeURIComponent(t))throw j.createStateMismatchError();if(e.error||e.error_description||e.suberror)throw Tr.isInteractionRequiredError(e.error,e.error_description,e.suberror)?new Tr(e.error||w.EMPTY_STRING,e.error_description,e.suberror):new Aa(e.error||w.EMPTY_STRING,e.error_description,e.suberror);e.client_info&&C0(e.client_info,i)},r.prototype.validateTokenResponse=function(e){if(e.error||e.error_description||e.suberror){if(Tr.isInteractionRequiredError(e.error,e.error_description,e.suberror))throw new Tr(e.error,e.error_description,e.suberror);var t=e.error_codes+" - ["+e.timestamp+"]: "+e.error_description+" - Correlation ID: "+e.correlation_id+" - Trace ID: "+e.trace_id;throw new Aa(e.error,t,e.suberror)}},r.prototype.handleServerTokenResponse=function(e,t,i,n,a,o,s,c,l){return ae(this,void 0,void 0,function(){var h,d,u,v,m,f,C;return oe(this,function(_){switch(_.label){case 0:if(e.id_token){if(h=new ui(e.id_token||w.EMPTY_STRING,this.cryptoObj),a&&!F.isEmpty(a.nonce)&&h.claims.nonce!==a.nonce)throw j.createNonceMismatchError();if(n.maxAge||n.maxAge===0){if(d=h.claims.auth_time,!d)throw j.createAuthTimeNotFoundError();ui.checkMaxAge(d,n.maxAge)}}this.homeAccountIdentifier=Wt.generateHomeAccountId(e.client_info||w.EMPTY_STRING,t.authorityType,this.logger,this.cryptoObj,h),a&&a.state&&(u=Li.parseRequestState(this.cryptoObj,a.state)),e.key_id=e.key_id||n.sshKid||void 0,v=this.generateCacheRecord(e,t,i,n,h,o,a),_.label=1;case 1:return _.trys.push([1,,5,8]),this.persistencePlugin&&this.serializableCache?(this.logger.verbose("Persistence enabled, calling beforeCacheAccess"),m=new eH(this.serializableCache,!0),[4,this.persistencePlugin.beforeCacheAccess(m)]):[3,3];case 2:_.sent(),_.label=3;case 3:return s&&!c&&v.account&&(f=v.account.generateAccountKey(),C=this.cacheStorage.getAccount(f),!C)?(this.logger.warning("Account used to refresh tokens not in persistence, refreshed tokens will not be stored in the cache"),[2,r.generateAuthenticationResult(this.cryptoObj,t,v,!1,n,h,u,void 0,l)]):[4,this.cacheStorage.saveCacheRecord(v)];case 4:return _.sent(),[3,8];case 5:return this.persistencePlugin&&this.serializableCache&&m?(this.logger.verbose("Persistence enabled, calling afterCacheAccess"),[4,this.persistencePlugin.afterCacheAccess(m)]):[3,7];case 6:_.sent(),_.label=7;case 7:return[7];case 8:return[2,r.generateAuthenticationResult(this.cryptoObj,t,v,!1,n,h,u,e.spa_code,l)]}})})},r.prototype.generateCacheRecord=function(e,t,i,n,a,o,s){var c=t.getPreferredCache();if(F.isEmpty(c))throw j.createInvalidCacheEnvironmentError();var l,h;!F.isEmpty(e.id_token)&&a&&(l=kc.createIdTokenEntity(this.homeAccountIdentifier,c,e.id_token||w.EMPTY_STRING,this.clientId,a.claims.tid||w.EMPTY_STRING),h=this.generateAccountEntity(e,a,t,s));var d=null;if(!F.isEmpty(e.access_token)){var u=e.scope?g1.fromString(e.scope):new g1(n.scopes||[]),v=(typeof e.expires_in=="string"?parseInt(e.expires_in,10):e.expires_in)||0,m=(typeof e.ext_expires_in=="string"?parseInt(e.ext_expires_in,10):e.ext_expires_in)||0,f=(typeof e.refresh_in=="string"?parseInt(e.refresh_in,10):e.refresh_in)||void 0,C=i+v,_=C+m,p=f&&f>0?i+f:void 0;d=Ec.createAccessTokenEntity(this.homeAccountIdentifier,c,e.access_token||w.EMPTY_STRING,this.clientId,a?a.claims.tid||w.EMPTY_STRING:t.tenant,u.printScopes(),C,_,this.cryptoObj,p,e.token_type,o,e.key_id,n.claims,n.requestedClaimsHash)}var z=null;F.isEmpty(e.refresh_token)||(z=k0.createRefreshTokenEntity(this.homeAccountIdentifier,c,e.refresh_token||w.EMPTY_STRING,this.clientId,e.foci,o));var M=null;return F.isEmpty(e.foci)||(M=K3.createAppMetadataEntity(this.clientId,c,e.foci)),new Ch(h,l,d,z,M)},r.prototype.generateAccountEntity=function(e,t,i,n){var a=i.authorityType,o=n?n.cloud_graph_host_name:w.EMPTY_STRING,s=n?n.msgraph_host:w.EMPTY_STRING;if(a===ur.Adfs)return this.logger.verbose("Authority type is ADFS, creating ADFS account"),Wt.createGenericAccount(this.homeAccountIdentifier,t,i,o,s);if(F.isEmpty(e.client_info)&&i.protocolMode==="AAD")throw j.createClientInfoEmptyError();return e.client_info?Wt.createAccount(e.client_info,this.homeAccountIdentifier,t,i,o,s):Wt.createGenericAccount(this.homeAccountIdentifier,t,i,o,s)},r.generateAuthenticationResult=function(e,t,i,n,a,o,s,c,l){var h,d,u;return ae(this,void 0,void 0,function(){var v,m,f,C,_,p,z,M,A,I,N;return oe(this,function(U){switch(U.label){case 0:if(v=w.EMPTY_STRING,m=[],f=null,_=w.EMPTY_STRING,!i.accessToken)return[3,4];if(i.accessToken.tokenType!==Ie.POP)return[3,2];if(p=new to(e),z=i.accessToken,M=z.secret,A=z.keyId,!A)throw j.createKeyIdMissingError();return[4,p.signPopToken(M,A,a)];case 1:return v=U.sent(),[3,3];case 2:v=i.accessToken.secret,U.label=3;case 3:m=g1.fromString(i.accessToken.target).asArray(),f=new Date(Number(i.accessToken.expiresOn)*1e3),C=new Date(Number(i.accessToken.extendedExpiresOn)*1e3),U.label=4;case 4:return i.appMetadata&&(_=i.appMetadata.familyId===b0?b0:w.EMPTY_STRING),I=(o==null?void 0:o.claims.oid)||(o==null?void 0:o.claims.sub)||w.EMPTY_STRING,N=(o==null?void 0:o.claims.tid)||w.EMPTY_STRING,[2,{authority:t.canonicalAuthority,uniqueId:I,tenantId:N,scopes:m,account:i.account?i.account.getAccountInfo():null,idToken:o?o.rawToken:w.EMPTY_STRING,idTokenClaims:o?o.claims:{},accessToken:v,fromCache:n,expiresOn:f,correlationId:a.correlationId,requestId:l||w.EMPTY_STRING,extExpiresOn:C,familyId:_,tokenType:((h=i.accessToken)===null||h===void 0?void 0:h.tokenType)||w.EMPTY_STRING,state:s?s.userRequestState:w.EMPTY_STRING,cloudGraphHostName:((d=i.account)===null||d===void 0?void 0:d.cloudGraphHostName)||w.EMPTY_STRING,msGraphHost:((u=i.account)===null||u===void 0?void 0:u.msGraphHost)||w.EMPTY_STRING,code:c,fromNativeBroker:!1}]}})})},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var T_=function(r){F1(e,r);function e(t,i){var n=r.call(this,t,i)||this;return n.includeRedirectUri=!0,n}return e.prototype.getAuthCodeUrl=function(t){return ae(this,void 0,void 0,function(){var i;return oe(this,function(n){switch(n.label){case 0:return[4,this.createAuthCodeUrlQueryString(t)];case 1:return i=n.sent(),[2,ke.appendQueryString(this.authority.authorizationEndpoint,i)]}})})},e.prototype.acquireToken=function(t,i){var n,a,o;return ae(this,void 0,void 0,function(){var s,c,l,h,d,u,v=this;return oe(this,function(m){switch(m.label){case 0:if(s=(n=this.performanceClient)===null||n===void 0?void 0:n.startMeasurement("AuthCodeClientAcquireToken",t.correlationId),this.logger.info("in acquireToken call in auth-code client"),!t||F.isEmpty(t.code))throw j.createTokenRequestCannotBeMadeError();return c=gr.nowSeconds(),[4,this.executeTokenRequest(this.authority,t)];case 1:return l=m.sent(),h=(a=l.headers)===null||a===void 0?void 0:a[X1.X_MS_REQUEST_ID],d=(o=l.headers)===null||o===void 0?void 0:o[X1.X_MS_HTTP_VERSION],d&&(s==null||s.addStaticFields({httpVerAuthority:d})),u=new E0(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),u.validateTokenResponse(l.body),[2,u.handleServerTokenResponse(l.body,this.authority,c,t,i,void 0,void 0,void 0,h).then(function(f){return s==null||s.endMeasurement({success:!0}),f}).catch(function(f){throw v.logger.verbose("Error in fetching token in ACC",t.correlationId),s==null||s.endMeasurement({errorCode:f.errorCode,subErrorCode:f.subError,success:!1}),f})]}})})},e.prototype.handleFragmentResponse=function(t,i){var n=new E0(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,null,null),a=new ke(t),o=ke.getDeserializedHash(a.getHash());if(n.validateServerAuthorizationCodeResponse(o,i,this.cryptoUtils),!o.code)throw j.createNoAuthCodeInServerResponseError();return Ue(Ue({},o),{code:o.code})},e.prototype.getLogoutUri=function(t){if(!t)throw Qe.createEmptyLogoutRequestError();var i=this.createLogoutUrlQueryString(t);return ke.appendQueryString(this.authority.endSessionEndpoint,i)},e.prototype.executeTokenRequest=function(t,i){return ae(this,void 0,void 0,function(){var n,a,o,s,c,l,h;return oe(this,function(d){switch(d.label){case 0:return n={clientId:this.config.authOptions.clientId,authority:t.canonicalAuthority,scopes:i.scopes,claims:i.claims,authenticationScheme:i.authenticationScheme,resourceRequestMethod:i.resourceRequestMethod,resourceRequestUri:i.resourceRequestUri,shrClaims:i.shrClaims,sshKid:i.sshKid},[4,this.createTokenRequestBody(i)];case 1:if(a=d.sent(),o=this.createTokenQueryParameters(i),s=void 0,i.clientInfo)try{c=C0(i.clientInfo,this.cryptoUtils),s={credential:""+c.uid+T1.CLIENT_INFO_SEPARATOR+c.utid,type:Y1.HOME_ACCOUNT_ID}}catch(u){this.logger.verbose("Could not parse client info for CCS Header: "+u)}return l=this.createTokenRequestHeaders(s||i.ccsCredential),h=F.isEmpty(o)?t.tokenEndpoint:t.tokenEndpoint+"?"+o,[2,this.executePostToTokenEndpoint(h,a,l,n)]}})})},e.prototype.createTokenQueryParameters=function(t){var i=new x2;return t.tokenQueryParameters&&i.addExtraQueryParameters(t.tokenQueryParameters),i.createQueryString()},e.prototype.createTokenRequestBody=function(t){return ae(this,void 0,void 0,function(){var i,n,a,o,s,c,l,l,h;return oe(this,function(d){switch(d.label){case 0:return i=new x2,i.addClientId(this.config.authOptions.clientId),this.includeRedirectUri?i.addRedirectUri(t.redirectUri):oa.validateRedirectUri(t.redirectUri),i.addScopes(t.scopes),i.addAuthorizationCode(t.code),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addThrottling(),this.serverTelemetryManager&&i.addServerTelemetry(this.serverTelemetryManager),t.codeVerifier&&i.addCodeVerifier(t.codeVerifier),this.config.clientCredentials.clientSecret&&i.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(n=this.config.clientCredentials.clientAssertion,i.addClientAssertion(n.assertion),i.addClientAssertionType(n.assertionType)),i.addGrantType(w0.AUTHORIZATION_CODE_GRANT),i.addClientInfo(),t.authenticationScheme!==Ie.POP?[3,2]:(a=new to(this.cryptoUtils),[4,a.generateCnf(t)]);case 1:return o=d.sent(),i.addPopToken(o.reqCnfString),[3,3];case 2:if(t.authenticationScheme===Ie.SSH)if(t.sshJwk)i.addSshJwk(t.sshJwk);else throw Qe.createMissingSshJwkError();d.label=3;case 3:if(s=t.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(s),(!F.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&i.addClaims(t.claims,this.config.authOptions.clientCapabilities),c=void 0,t.clientInfo)try{l=C0(t.clientInfo,this.cryptoUtils),c={credential:""+l.uid+T1.CLIENT_INFO_SEPARATOR+l.utid,type:Y1.HOME_ACCOUNT_ID}}catch(u){this.logger.verbose("Could not parse client info for CCS Header: "+u)}else c=t.ccsCredential;if(this.config.systemOptions.preventCorsPreflight&&c)switch(c.type){case Y1.HOME_ACCOUNT_ID:try{l=b2(c.credential),i.addCcsOid(l)}catch(u){this.logger.verbose("Could not parse home account ID for CCS Header: "+u)}break;case Y1.UPN:i.addCcsUpn(c.credential);break}return t.tokenBodyParameters&&i.addExtraQueryParameters(t.tokenBodyParameters),t.enableSpaAuthorizationCode&&(!t.tokenBodyParameters||!t.tokenBodyParameters[de.RETURN_SPA_CODE])&&i.addExtraQueryParameters((h={},h[de.RETURN_SPA_CODE]="1",h)),[2,i.createQueryString()]}})})},e.prototype.createAuthCodeUrlQueryString=function(t){return ae(this,void 0,void 0,function(){var i,n,a,o,s,c,c,c,l,h;return oe(this,function(d){switch(d.label){case 0:if(i=new x2,i.addClientId(this.config.authOptions.clientId),n=x4(t.scopes||[],t.extraScopesToConsent||[]),i.addScopes(n),i.addRedirectUri(t.redirectUri),a=t.correlationId||this.config.cryptoInterface.createNewGuid(),i.addCorrelationId(a),i.addResponseMode(t.responseMode),i.addResponseTypeCode(),i.addLibraryInfo(this.config.libraryInfo),i.addApplicationTelemetry(this.config.telemetry.application),i.addClientInfo(),t.codeChallenge&&t.codeChallengeMethod&&i.addCodeChallengeParams(t.codeChallenge,t.codeChallengeMethod),t.prompt&&i.addPrompt(t.prompt),t.domainHint&&i.addDomainHint(t.domainHint),t.prompt!==d1.SELECT_ACCOUNT)if(t.sid&&t.prompt===d1.NONE)this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from request"),i.addSid(t.sid);else if(t.account){if(o=this.extractAccountSid(t.account),s=this.extractLoginHint(t.account),s){this.logger.verbose("createAuthCodeUrlQueryString: login_hint claim present on account"),i.addLoginHint(s);try{c=b2(t.account.homeAccountId),i.addCcsOid(c)}catch{this.logger.verbose("createAuthCodeUrlQueryString: Could not parse home account ID for CCS Header")}}else if(o&&t.prompt===d1.NONE){this.logger.verbose("createAuthCodeUrlQueryString: Prompt is none, adding sid from account"),i.addSid(o);try{c=b2(t.account.homeAccountId),i.addCcsOid(c)}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"),i.addLoginHint(t.loginHint),i.addCcsUpn(t.loginHint);else if(t.account.username){this.logger.verbose("createAuthCodeUrlQueryString: Adding login_hint from account"),i.addLoginHint(t.account.username);try{c=b2(t.account.homeAccountId),i.addCcsOid(c)}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"),i.addLoginHint(t.loginHint),i.addCcsUpn(t.loginHint));else this.logger.verbose("createAuthCodeUrlQueryString: Prompt is select_account, ignoring account hints");return t.nonce&&i.addNonce(t.nonce),t.state&&i.addState(t.state),(!F.isEmpty(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&i.addClaims(t.claims,this.config.authOptions.clientCapabilities),t.extraQueryParameters&&i.addExtraQueryParameters(t.extraQueryParameters),t.nativeBroker?(i.addNativeBroker(),t.authenticationScheme!==Ie.POP?[3,2]:(l=new to(this.cryptoUtils),[4,l.generateCnf(t)])):[3,2];case 1:h=d.sent(),i.addPopToken(h.reqCnfHash),d.label=2;case 2:return[2,i.createQueryString()]}})})},e.prototype.createLogoutUrlQueryString=function(t){var i=new x2;return t.postLogoutRedirectUri&&i.addPostLogoutRedirectUri(t.postLogoutRedirectUri),t.correlationId&&i.addCorrelationId(t.correlationId),t.idTokenHint&&i.addIdTokenHint(t.idTokenHint),t.state&&i.addState(t.state),t.logoutHint&&i.addLogoutHint(t.logoutHint),t.extraQueryParameters&&i.addExtraQueryParameters(t.extraQueryParameters),i.createQueryString()},e.prototype.extractAccountSid=function(t){var i;return((i=t.idTokenClaims)===null||i===void 0?void 0:i.sid)||null},e.prototype.extractLoginHint=function(t){var i;return((i=t.idTokenClaims)===null||i===void 0?void 0:i.login_hint)||null},e}(a6);/*! @azure/msal-common v9.1.1 2023-01-19 */var St;(function(r){r.AcquireTokenByCode="acquireTokenByCode",r.AcquireTokenByRefreshToken="acquireTokenByRefreshToken",r.AcquireTokenSilent="acquireTokenSilent",r.AcquireTokenSilentAsync="acquireTokenSilentAsync",r.AcquireTokenPopup="acquireTokenPopup",r.CryptoOptsGetPublicKeyThumbprint="cryptoOptsGetPublicKeyThumbprint",r.CryptoOptsSignJwt="cryptoOptsSignJwt",r.SilentCacheClientAcquireToken="silentCacheClientAcquireToken",r.SilentIframeClientAcquireToken="silentIframeClientAcquireToken",r.SilentRefreshClientAcquireToken="silentRefreshClientAcquireToken",r.SsoSilent="ssoSilent",r.StandardInteractionClientGetDiscoveredAuthority="standardInteractionClientGetDiscoveredAuthority",r.FetchAccountIdWithNativeBroker="fetchAccountIdWithNativeBroker",r.NativeInteractionClientAcquireToken="nativeInteractionClientAcquireToken",r.BaseClientCreateTokenRequestHeaders="baseClientCreateTokenRequestHeaders",r.BrokerHandhshake="brokerHandshake",r.AcquireTokenByRefreshTokenInBroker="acquireTokenByRefreshTokenInBroker",r.AcquireTokenByBroker="acquireTokenByBroker",r.RefreshTokenClientExecuteTokenRequest="refreshTokenClientExecuteTokenRequest",r.RefreshTokenClientAcquireToken="refreshTokenClientAcquireToken",r.RefreshTokenClientAcquireTokenWithCachedRefreshToken="refreshTokenClientAcquireTokenWithCachedRefreshToken",r.AcquireTokenByCodeAsync="acquireTokenByCodeAsync",r.GetEndpointMetadataFromNetwork="getEndpointMetadataFromNetwork",r.GetCloudDiscoveryMetadataFromNetworkMeasurement="getCloudDiscoveryMetadataFromNetworkMeasurement",r.HandleRedirectPromiseMeasurement="handleRedirectPromiseMeasurement",r.UpdateCloudDiscoveryMetadataMeasurement="updateCloudDiscoveryMetadataMeasurement",r.UsernamePasswordClientAcquireToken="usernamePasswordClientAcquireToken"})(St||(St={}));var M2;(function(r){r[r.NotStarted=0]="NotStarted",r[r.InProgress=1]="InProgress",r[r.Completed=2]="Completed"})(M2||(M2={}));/*! @azure/msal-common v9.1.1 2023-01-19 */var I_=function(r){F1(e,r);function e(t,i){return r.call(this,t,i)||this}return e.prototype.acquireToken=function(t){var i,n,a,o;return ae(this,void 0,void 0,function(){var s,c,l,h,d,u,v=this;return oe(this,function(m){switch(m.label){case 0:return s=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(St.RefreshTokenClientAcquireToken,t.correlationId),this.logger.verbose("RefreshTokenClientAcquireToken called",t.correlationId),c=gr.nowSeconds(),[4,this.executeTokenRequest(t,this.authority)];case 1:return l=m.sent(),h=(n=l.headers)===null||n===void 0?void 0:n[X1.X_MS_HTTP_VERSION],s==null||s.addStaticFields({refreshTokenSize:((a=l.body.refresh_token)===null||a===void 0?void 0:a.length)||0}),h&&(s==null||s.addStaticFields({httpVerToken:h})),d=(o=l.headers)===null||o===void 0?void 0:o[X1.X_MS_REQUEST_ID],u=new E0(this.config.authOptions.clientId,this.cacheManager,this.cryptoUtils,this.logger,this.config.serializableCache,this.config.persistencePlugin),u.validateTokenResponse(l.body),[2,u.handleServerTokenResponse(l.body,this.authority,c,t,void 0,void 0,!0,t.forceCache,d).then(function(f){return s==null||s.endMeasurement({success:!0}),f}).catch(function(f){throw v.logger.verbose("Error in fetching refresh token",t.correlationId),s==null||s.endMeasurement({errorCode:f.errorCode,subErrorCode:f.subError,success:!1}),f})]}})})},e.prototype.acquireTokenByRefreshToken=function(t){return ae(this,void 0,void 0,function(){var i,n,a;return oe(this,function(o){if(!t)throw Qe.createEmptyTokenRequestError();if(!t.account)throw j.createNoAccountInSilentRequestError();if(i=this.cacheManager.isAppMetadataFOCI(t.account.environment,this.config.authOptions.clientId),i)try{return[2,this.acquireTokenWithCachedRefreshToken(t,!0)]}catch(s){if(n=s instanceof Tr&&s.errorCode===ws.noTokensFoundError.code,a=s instanceof Aa&&s.errorCode===fm.INVALID_GRANT_ERROR&&s.subError===fm.CLIENT_MISMATCH_ERROR,n||a)return[2,this.acquireTokenWithCachedRefreshToken(t,!1)];throw s}return[2,this.acquireTokenWithCachedRefreshToken(t,!1)]})})},e.prototype.acquireTokenWithCachedRefreshToken=function(t,i){var n;return ae(this,void 0,void 0,function(){var a,o,s;return oe(this,function(c){if(a=(n=this.performanceClient)===null||n===void 0?void 0:n.startMeasurement(St.RefreshTokenClientAcquireTokenWithCachedRefreshToken,t.correlationId),this.logger.verbose("RefreshTokenClientAcquireTokenWithCachedRefreshToken called",t.correlationId),o=this.cacheManager.readRefreshTokenFromCache(this.config.authOptions.clientId,t.account,i),!o)throw a==null||a.discardMeasurement(),Tr.createNoTokensFoundError();return a==null||a.endMeasurement({success:!0}),s=Ue(Ue({},t),{refreshToken:o.secret,authenticationScheme:t.authenticationScheme||Ie.BEARER,ccsCredential:{credential:t.account.homeAccountId,type:Y1.HOME_ACCOUNT_ID}}),[2,this.acquireToken(s)]})})},e.prototype.executeTokenRequest=function(t,i){var n;return ae(this,void 0,void 0,function(){var a,o,s,c,l,h;return oe(this,function(d){switch(d.label){case 0:return a=(n=this.performanceClient)===null||n===void 0?void 0:n.startMeasurement(St.RefreshTokenClientExecuteTokenRequest,t.correlationId),[4,this.createTokenRequestBody(t)];case 1:return o=d.sent(),s=this.createTokenQueryParameters(t),c=this.createTokenRequestHeaders(t.ccsCredential),l={clientId:this.config.authOptions.clientId,authority:i.canonicalAuthority,scopes:t.scopes,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},h=ke.appendQueryString(i.tokenEndpoint,s),[2,this.executePostToTokenEndpoint(h,o,c,l).then(function(u){return a==null||a.endMeasurement({success:!0}),u}).catch(function(u){throw a==null||a.endMeasurement({success:!1}),u})]}})})},e.prototype.createTokenQueryParameters=function(t){var i=new x2;return t.tokenQueryParameters&&i.addExtraQueryParameters(t.tokenQueryParameters),i.createQueryString()},e.prototype.createTokenRequestBody=function(t){var i;return ae(this,void 0,void 0,function(){var n,a,o,s,c,l,h;return oe(this,function(d){switch(d.label){case 0:return n=t.correlationId,a=(i=this.performanceClient)===null||i===void 0?void 0:i.startMeasurement(St.BaseClientCreateTokenRequestHeaders,n),o=new x2,o.addClientId(this.config.authOptions.clientId),o.addScopes(t.scopes),o.addGrantType(w0.REFRESH_TOKEN_GRANT),o.addClientInfo(),o.addLibraryInfo(this.config.libraryInfo),o.addApplicationTelemetry(this.config.telemetry.application),o.addThrottling(),this.serverTelemetryManager&&o.addServerTelemetry(this.serverTelemetryManager),o.addCorrelationId(n),o.addRefreshToken(t.refreshToken),this.config.clientCredentials.clientSecret&&o.addClientSecret(this.config.clientCredentials.clientSecret),this.config.clientCredentials.clientAssertion&&(s=this.config.clientCredentials.clientAssertion,o.addClientAssertion(s.assertion),o.addClientAssertionType(s.assertionType)),t.authenticationScheme!==Ie.POP?[3,2]:(c=new to(this.cryptoUtils),[4,c.generateCnf(t)]);case 1:return l=d.sent(),o.addPopToken(l.reqCnfString),[3,3];case 2:if(t.authenticationScheme===Ie.SSH)if(t.sshJwk)o.addSshJwk(t.sshJwk);else throw a==null||a.endMeasurement({success:!1}),Qe.createMissingSshJwkError();d.label=3;case 3:if((!F.isEmptyObj(t.claims)||this.config.authOptions.clientCapabilities&&this.config.authOptions.clientCapabilities.length>0)&&o.addClaims(t.claims,this.config.authOptions.clientCapabilities),this.config.systemOptions.preventCorsPreflight&&t.ccsCredential)switch(t.ccsCredential.type){case Y1.HOME_ACCOUNT_ID:try{h=b2(t.ccsCredential.credential),o.addCcsOid(h)}catch(u){this.logger.verbose("Could not parse home account ID for CCS Header: "+u)}break;case Y1.UPN:o.addCcsUpn(t.ccsCredential.credential);break}return a==null||a.endMeasurement({success:!0}),[2,o.createQueryString()]}})})},e}(a6);/*! @azure/msal-common v9.1.1 2023-01-19 */var tH=function(r){F1(e,r);function e(t,i){return r.call(this,t,i)||this}return e.prototype.acquireToken=function(t){return ae(this,void 0,void 0,function(){var i,n;return oe(this,function(a){switch(a.label){case 0:return a.trys.push([0,2,,3]),[4,this.acquireCachedToken(t)];case 1:return[2,a.sent()];case 2:if(i=a.sent(),i instanceof j&&i.errorCode===T.tokenRefreshRequired.code)return n=new I_(this.config,this.performanceClient),[2,n.acquireTokenByRefreshToken(t)];throw i;case 3:return[2]}})})},e.prototype.acquireCachedToken=function(t){var i,n,a,o;return ae(this,void 0,void 0,function(){var s,c;return oe(this,function(l){switch(l.label){case 0:if(!t)throw Qe.createEmptyTokenRequestError();if(t.forceRefresh)throw(i=this.serverTelemetryManager)===null||i===void 0||i.setCacheOutcome(ga.FORCE_REFRESH),this.logger.info("SilentFlowClient:acquireCachedToken - Skipping cache because forceRefresh is true."),j.createRefreshRequiredError();if(!t.account)throw j.createNoAccountInSilentRequestError();if(s=t.authority||this.authority.getPreferredCache(),c=this.cacheManager.readCacheRecord(t.account,this.config.authOptions.clientId,t,s),c.accessToken){if(gr.wasClockTurnedBack(c.accessToken.cachedAt)||gr.isTokenExpired(c.accessToken.expiresOn,this.config.systemOptions.tokenRenewalOffsetSeconds))throw(a=this.serverTelemetryManager)===null||a===void 0||a.setCacheOutcome(ga.CACHED_ACCESS_TOKEN_EXPIRED),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token is expired or will expire within "+this.config.systemOptions.tokenRenewalOffsetSeconds+" seconds."),j.createRefreshRequiredError();if(c.accessToken.refreshOn&&gr.isTokenExpired(c.accessToken.refreshOn,0))throw(o=this.serverTelemetryManager)===null||o===void 0||o.setCacheOutcome(ga.REFRESH_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - Cached access token's refreshOn property has been exceeded'."),j.createRefreshRequiredError()}else throw(n=this.serverTelemetryManager)===null||n===void 0||n.setCacheOutcome(ga.NO_CACHED_ACCESS_TOKEN),this.logger.info("SilentFlowClient:acquireCachedToken - No access token found in cache for the given properties."),j.createRefreshRequiredError();return this.config.serverTelemetryManager&&this.config.serverTelemetryManager.incrementCacheHits(),[4,this.generateResultFromCacheRecord(c,t)];case 1:return[2,l.sent()]}})})},e.prototype.generateResultFromCacheRecord=function(t,i){return ae(this,void 0,void 0,function(){var n,a;return oe(this,function(o){switch(o.label){case 0:if(t.idToken&&(n=new ui(t.idToken.secret,this.config.cryptoInterface)),i.maxAge||i.maxAge===0){if(a=n==null?void 0:n.claims.auth_time,!a)throw j.createAuthTimeNotFoundError();ui.checkMaxAge(a,i.maxAge)}return[4,E0.generateAuthenticationResult(this.cryptoUtils,this.authority,t,!0,i,n)];case 1:return[2,o.sent()]}})})},e}(a6);/*! @azure/msal-common v9.1.1 2023-01-19 */function rH(r){return r.hasOwnProperty("authorization_endpoint")&&r.hasOwnProperty("token_endpoint")&&r.hasOwnProperty("issuer")&&r.hasOwnProperty("jwks_uri")}/*! @azure/msal-common v9.1.1 2023-01-19 */var R_={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"]}]}}},gm=R_.endpointMetadata,_m=R_.instanceDiscoveryMetadata;/*! @azure/msal-common v9.1.1 2023-01-19 */var P0;(function(r){r.AAD="AAD",r.OIDC="OIDC"})(P0||(P0={}));/*! @azure/msal-common v9.1.1 2023-01-19 */var W3=function(){function r(){this.expiresAt=gr.nowSeconds()+Ks.REFRESH_TIME_SECONDS}return r.prototype.updateCloudDiscoveryMetadata=function(e,t){this.aliases=e.aliases,this.preferred_cache=e.preferred_cache,this.preferred_network=e.preferred_network,this.aliasesFromNetwork=t},r.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},r.prototype.updateCanonicalAuthority=function(e){this.canonical_authority=e},r.prototype.resetExpiresAt=function(){this.expiresAt=gr.nowSeconds()+Ks.REFRESH_TIME_SECONDS},r.prototype.isExpired=function(){return this.expiresAt<=gr.nowSeconds()},r.isAuthorityMetadataEntity=function(e,t){return t?e.indexOf(Ks.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},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */function iH(r){return r.hasOwnProperty("tenant_discovery_endpoint")&&r.hasOwnProperty("metadata")}/*! @azure/msal-common v9.1.1 2023-01-19 */function nH(r){return r.hasOwnProperty("error")&&r.hasOwnProperty("error_description")}/*! @azure/msal-common v9.1.1 2023-01-19 */var aH=function(){function r(e){this.networkInterface=e}return r.prototype.detectRegion=function(e,t,i){return ae(this,void 0,void 0,function(){var n,a,o,s,c;return oe(this,function(l){switch(l.label){case 0:if(n=e,n)return[3,8];a=r.IMDS_OPTIONS,i&&(a.proxyUrl=i),l.label=1;case 1:return l.trys.push([1,6,,7]),[4,this.getRegionFromIMDS(w.IMDS_VERSION,a)];case 2:return o=l.sent(),o.status===w2.httpSuccess&&(n=o.body,t.region_source=an.IMDS),o.status!==w2.httpBadRequest?[3,5]:[4,this.getCurrentVersion(a)];case 3:return s=l.sent(),s?[4,this.getRegionFromIMDS(s,a)]:(t.region_source=an.FAILED_AUTO_DETECTION,[2,null]);case 4:c=l.sent(),c.status===w2.httpSuccess&&(n=c.body,t.region_source=an.IMDS),l.label=5;case 5:return[3,7];case 6:return l.sent(),t.region_source=an.FAILED_AUTO_DETECTION,[2,null];case 7:return[3,9];case 8:t.region_source=an.ENVIRONMENT_VARIABLE,l.label=9;case 9:return n||(t.region_source=an.FAILED_AUTO_DETECTION),[2,n||null]}})})},r.prototype.getRegionFromIMDS=function(e,t){return ae(this,void 0,void 0,function(){return oe(this,function(i){return[2,this.networkInterface.sendGetRequestAsync(w.IMDS_ENDPOINT+"?api-version="+e+"&format=text",t,w.IMDS_TIMEOUT)]})})},r.prototype.getCurrentVersion=function(e){return ae(this,void 0,void 0,function(){var t;return oe(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),[4,this.networkInterface.sendGetRequestAsync(w.IMDS_ENDPOINT+"?format=json",e)];case 1:return t=i.sent(),t.status===w2.httpBadRequest&&t.body&&t.body["newest-versions"]&&t.body["newest-versions"].length>0?[2,t.body["newest-versions"][0]]:[2,null];case 2:return i.sent(),[2,null];case 3:return[2]}})})},r.IMDS_OPTIONS={headers:{Metadata:"true"}},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var A0=function(){function r(e,t,i,n,a,o){this.canonicalAuthority=e,this._canonicalAuthority.validateAsUri(),this.networkInterface=t,this.cacheManager=i,this.authorityOptions=n,this.regionDiscovery=new aH(t),this.regionDiscoveryMetadata={region_used:void 0,region_source:void 0,region_outcome:void 0},this.proxyUrl=o||w.EMPTY_STRING,this.logger=a}return Object.defineProperty(r.prototype,"authorityType",{get:function(){var e=this.canonicalAuthorityUrlComponents.PathSegments;if(e.length)switch(e[0].toLowerCase()){case w.ADFS:return ur.Adfs;case w.DSTS:return ur.Dsts}return ur.Default},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"protocolMode",{get:function(){return this.authorityOptions.protocolMode},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"options",{get:function(){return this.authorityOptions},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"canonicalAuthority",{get:function(){return this._canonicalAuthority.urlString},set:function(e){this._canonicalAuthority=new ke(e),this._canonicalAuthority.validateAsUri(),this._canonicalAuthorityUrlComponents=null},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"canonicalAuthorityUrlComponents",{get:function(){return this._canonicalAuthorityUrlComponents||(this._canonicalAuthorityUrlComponents=this._canonicalAuthority.getUrlComponents()),this._canonicalAuthorityUrlComponents},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"hostnameAndPort",{get:function(){return this.canonicalAuthorityUrlComponents.HostNameAndPort.toLowerCase()},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tenant",{get:function(){return this.canonicalAuthorityUrlComponents.PathSegments[0]},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"authorizationEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.authorization_endpoint);return this.replaceTenant(e)}else throw j.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"tokenEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.token_endpoint);return this.replaceTenant(e)}else throw j.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"deviceCodeEndpoint",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.token_endpoint.replace("/token","/devicecode"));return this.replaceTenant(e)}else throw j.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"endSessionEndpoint",{get:function(){if(this.discoveryComplete()){if(!this.metadata.end_session_endpoint)throw j.createLogoutNotSupportedError();var e=this.replacePath(this.metadata.end_session_endpoint);return this.replaceTenant(e)}else throw j.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"selfSignedJwtAudience",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.issuer);return this.replaceTenant(e)}else throw j.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),Object.defineProperty(r.prototype,"jwksUri",{get:function(){if(this.discoveryComplete()){var e=this.replacePath(this.metadata.jwks_uri);return this.replaceTenant(e)}else throw j.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},enumerable:!1,configurable:!0}),r.prototype.replaceTenant=function(e){return e.replace(/{tenant}|{tenantid}/g,this.tenant)},r.prototype.replacePath=function(e){var t=e,i=new ke(this.metadata.canonical_authority),n=i.getUrlComponents().PathSegments,a=this.canonicalAuthorityUrlComponents.PathSegments;return a.forEach(function(o,s){var c=n[s];o!==c&&(t=t.replace("/"+c+"/","/"+o+"/"))}),t},Object.defineProperty(r.prototype,"defaultOpenIdConfigurationEndpoint",{get:function(){return this.authorityType===ur.Adfs||this.authorityType===ur.Dsts||this.protocolMode===P0.OIDC?this.canonicalAuthority+".well-known/openid-configuration":this.canonicalAuthority+"v2.0/.well-known/openid-configuration"},enumerable:!1,configurable:!0}),r.prototype.discoveryComplete=function(){return!!this.metadata},r.prototype.resolveEndpointsAsync=function(){return ae(this,void 0,void 0,function(){var e,t,i,n;return oe(this,function(a){switch(a.label){case 0:return e=this.cacheManager.getAuthorityMetadataByAlias(this.hostnameAndPort),e||(e=new W3,e.updateCanonicalAuthority(this.canonicalAuthority)),[4,this.updateCloudDiscoveryMetadata(e)];case 1:return t=a.sent(),this.canonicalAuthority=this.canonicalAuthority.replace(this.hostnameAndPort,e.preferred_network),[4,this.updateEndpointMetadata(e)];case 2:return i=a.sent(),t!==cr.CACHE&&i!==cr.CACHE&&(e.resetExpiresAt(),e.updateCanonicalAuthority(this.canonicalAuthority)),n=this.cacheManager.generateAuthorityMetadataCacheKey(e.preferred_cache),this.cacheManager.setAuthorityMetadata(n,e),this.metadata=e,[2]}})})},r.prototype.updateEndpointMetadata=function(e){var t,i;return ae(this,void 0,void 0,function(){var n,a;return oe(this,function(o){switch(o.label){case 0:return n=this.getEndpointMetadataFromConfig(),n?(e.updateEndpointMetadata(n,!1),[2,cr.CONFIG]):this.isAuthoritySameType(e)&&e.endpointsFromNetwork&&!e.isExpired()?[2,cr.CACHE]:(a=this.getEndpointMetadataFromHardcodedValues(),[4,this.getEndpointMetadataFromNetwork()]);case 1:return n=o.sent(),n?!((t=this.authorityOptions.azureRegionConfiguration)===null||t===void 0)&&t.azureRegion?[4,this.updateMetadataWithRegionalInformation(n)]:[3,3]:[3,4];case 2:n=o.sent(),o.label=3;case 3:return e.updateEndpointMetadata(n,!0),[2,cr.NETWORK];case 4:return a&&!this.authorityOptions.skipAuthorityMetadataCache?!((i=this.authorityOptions.azureRegionConfiguration)===null||i===void 0)&&i.azureRegion?[4,this.updateMetadataWithRegionalInformation(a)]:[3,6]:[3,7];case 5:a=o.sent(),o.label=6;case 6:return e.updateEndpointMetadata(a,!1),[2,cr.HARDCODED_VALUES];case 7:throw j.createUnableToGetOpenidConfigError(this.defaultOpenIdConfigurationEndpoint)}})})},r.prototype.isAuthoritySameType=function(e){var t=new ke(e.canonical_authority),i=t.getUrlComponents().PathSegments;return i.length===this.canonicalAuthorityUrlComponents.PathSegments.length},r.prototype.getEndpointMetadataFromConfig=function(){if(this.authorityOptions.authorityMetadata)try{return JSON.parse(this.authorityOptions.authorityMetadata)}catch{throw Qe.createInvalidAuthorityMetadataError()}return null},r.prototype.getEndpointMetadataFromNetwork=function(){return ae(this,void 0,void 0,function(){var e,t;return oe(this,function(i){switch(i.label){case 0:e={},this.proxyUrl&&(e.proxyUrl=this.proxyUrl),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(this.defaultOpenIdConfigurationEndpoint,e)];case 2:return t=i.sent(),[2,rH(t.body)?t.body:null];case 3:return i.sent(),[2,null];case 4:return[2]}})})},r.prototype.getEndpointMetadataFromHardcodedValues=function(){return this.canonicalAuthority in gm?gm[this.canonicalAuthority]:null},r.prototype.updateMetadataWithRegionalInformation=function(e){var t,i,n,a,o;return ae(this,void 0,void 0,function(){var s,c;return oe(this,function(l){switch(l.label){case 0:return[4,this.regionDiscovery.detectRegion((t=this.authorityOptions.azureRegionConfiguration)===null||t===void 0?void 0:t.environmentRegion,this.regionDiscoveryMetadata,this.proxyUrl)];case 1:return s=l.sent(),c=((i=this.authorityOptions.azureRegionConfiguration)===null||i===void 0?void 0:i.azureRegion)===w.AZURE_REGION_AUTO_DISCOVER_FLAG?s:(n=this.authorityOptions.azureRegionConfiguration)===null||n===void 0?void 0:n.azureRegion,((a=this.authorityOptions.azureRegionConfiguration)===null||a===void 0?void 0:a.azureRegion)===w.AZURE_REGION_AUTO_DISCOVER_FLAG?this.regionDiscoveryMetadata.region_outcome=s?ua.AUTO_DETECTION_REQUESTED_SUCCESSFUL:ua.AUTO_DETECTION_REQUESTED_FAILED:s?this.regionDiscoveryMetadata.region_outcome=((o=this.authorityOptions.azureRegionConfiguration)===null||o===void 0?void 0:o.azureRegion)===s?ua.CONFIGURED_MATCHES_DETECTED:ua.CONFIGURED_NOT_DETECTED:this.regionDiscoveryMetadata.region_outcome=ua.CONFIGURED_NO_AUTO_DETECTION,c?(this.regionDiscoveryMetadata.region_used=c,[2,r.replaceWithRegionalInformation(e,c)]):[2,e]}})})},r.prototype.updateCloudDiscoveryMetadata=function(e){return ae(this,void 0,void 0,function(){var t,i,n;return oe(this,function(a){switch(a.label){case 0:return this.logger.verbose("Attempting to get cloud discovery metadata in the config"),this.logger.verbosePii("Known Authorities: "+(this.authorityOptions.knownAuthorities||w.NOT_APPLICABLE)),this.logger.verbosePii("Authority Metadata: "+(this.authorityOptions.authorityMetadata||w.NOT_APPLICABLE)),this.logger.verbosePii("Canonical Authority: "+(e.canonical_authority||w.NOT_APPLICABLE)),t=this.getCloudDiscoveryMetadataFromConfig(),t?(this.logger.verbose("Found cloud discovery metadata in the config."),e.updateCloudDiscoveryMetadata(t,!1),[2,cr.CONFIG]):(this.logger.verbose("Did not find cloud discovery metadata in the config... Attempting to get cloud discovery metadata from the cache."),i=e.isExpired(),this.isAuthoritySameType(e)&&e.aliasesFromNetwork&&!i?(this.logger.verbose("Found metadata in the cache."),[2,cr.CACHE]):(i&&this.logger.verbose("The metadata entity is expired."),this.logger.verbose("Did not find cloud discovery metadata in the cache... Attempting to get cloud discovery metadata from the network."),[4,this.getCloudDiscoveryMetadataFromNetwork()]));case 1:if(t=a.sent(),t)return this.logger.verbose("cloud discovery metadata was successfully returned from getCloudDiscoveryMetadataFromNetwork()"),e.updateCloudDiscoveryMetadata(t,!0),[2,cr.NETWORK];if(this.logger.verbose("Did not find cloud discovery metadata from the network... Attempting to get cloud discovery metadata from hardcoded values."),n=this.getCloudDiscoveryMetadataFromHarcodedValues(),n&&!this.options.skipAuthorityMetadataCache)return this.logger.verbose("Found cloud discovery metadata from hardcoded values."),e.updateCloudDiscoveryMetadata(n,!1),[2,cr.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."),Qe.createUntrustedAuthorityError()}})})},r.prototype.getCloudDiscoveryMetadataFromConfig=function(){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=r.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."),Qe.createInvalidCloudDiscoveryMetadataError()}}return this.isInKnownAuthorities()?(this.logger.verbose("The host is included in knownAuthorities. Creating new cloud discovery metadata from the host."),r.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)):null},r.prototype.getCloudDiscoveryMetadataFromNetwork=function(){return ae(this,void 0,void 0,function(){var e,t,i,n,a,o,s,c;return oe(this,function(l){switch(l.label){case 0:e=""+w.AAD_INSTANCE_DISCOVERY_ENDPT+this.canonicalAuthority+"oauth2/v2.0/authorize",t={},this.proxyUrl&&(t.proxyUrl=this.proxyUrl),i=null,l.label=1;case 1:return l.trys.push([1,3,,4]),[4,this.networkInterface.sendGetRequestAsync(e,t)];case 2:if(n=l.sent(),a=void 0,o=void 0,iH(n.body))a=n.body,o=a.metadata,this.logger.verbosePii("tenant_discovery_endpoint is: "+a.tenant_discovery_endpoint);else if(nH(n.body)){if(this.logger.warning("A CloudInstanceDiscoveryErrorResponse was returned. The cloud instance discovery network request's status code is: "+n.status),a=n.body,a.error===w.INVALID_INSTANCE)return this.logger.error("The CloudInstanceDiscoveryErrorResponse error is invalid_instance."),[2,null];this.logger.warning("The CloudInstanceDiscoveryErrorResponse error is "+a.error),this.logger.warning("The CloudInstanceDiscoveryErrorResponse error description is "+a.error_description),this.logger.warning("Setting the value of the CloudInstanceDiscoveryMetadata (returned from the network) to []"),o=[]}else return this.logger.error("AAD did not return a CloudInstanceDiscoveryResponse or CloudInstanceDiscoveryErrorResponse"),[2,null];return this.logger.verbose("Attempting to find a match between the developer's authority and the CloudInstanceDiscoveryMetadata returned from the network request."),i=r.getCloudDiscoveryMetadataFromNetworkResponse(o,this.hostnameAndPort),[3,4];case 3:return s=l.sent(),s instanceof Q?this.logger.error(`There was a network error while attempting to get the cloud discovery instance metadata.
|
|
70
70
|
Error: `+s.errorCode+`
|
|
71
71
|
Error Description: `+s.errorMessage):(c=s,this.logger.error(`A non-MSALJS error was thrown while attempting to get the cloud instance discovery metadata.
|
|
72
72
|
Error: `+c.name+`
|
|
73
|
-
Error Description: `+c.message)),[2,null];case 4:return i||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),i=r.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,i]}})})},r.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in _m?_m[this.canonicalAuthority]:null},r.prototype.isInKnownAuthorities=function(){var e=this,t=this.authorityOptions.knownAuthorities.filter(function(i){return ke.getDomainFromUrl(i).toLowerCase()===e.hostnameAndPort});return t.length>0},r.generateAuthority=function(e,t){var i;if(t&&t.azureCloudInstance!==Cc.None){var n=t.tenant?t.tenant:w.DEFAULT_COMMON_TENANT;i=t.azureCloudInstance+"/"+n+"/"}return i||e},r.createCloudDiscoveryMetadataFromHost=function(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}},r.getCloudDiscoveryMetadataFromNetworkResponse=function(e,t){for(var i=0;i<e.length;i++){var n=e[i];if(n.aliases.indexOf(t)>-1)return n}return null},r.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw j.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},r.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},r.isPublicCloudAuthority=function(e){return w.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},r.buildRegionalAuthorityString=function(e,t,i){var n=new ke(e);n.validateAsUri();var a=n.getUrlComponents(),o=t+"."+a.HostNameAndPort;this.isPublicCloudAuthority(a.HostNameAndPort)&&(o=t+"."+w.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var s=ke.constructAuthorityUriFromObject(Ue(Ue({},n.getUrlComponents()),{HostNameAndPort:o})).urlString;return i?s+"?"+i:s},r.replaceWithRegionalInformation=function(e,t){return e.authorization_endpoint=r.buildRegionalAuthorityString(e.authorization_endpoint,t),e.token_endpoint=r.buildRegionalAuthorityString(e.token_endpoint,t,w.REGIONAL_AUTH_NON_MSI_QUERY_STRING),e.end_session_endpoint&&(e.end_session_endpoint=r.buildRegionalAuthorityString(e.end_session_endpoint,t)),e},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var V0=function(){function r(){}return r.createDiscoveredInstance=function(e,t,i,n,a,o){return ae(this,void 0,void 0,function(){var s,c;return oe(this,function(l){switch(l.label){case 0:s=r.createInstance(e,t,i,n,a,o),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,s.resolveEndpointsAsync()];case 2:return l.sent(),[2,s];case 3:throw c=l.sent(),j.createEndpointDiscoveryIncompleteError(c);case 4:return[2]}})})},r.createInstance=function(e,t,i,n,a,o){if(F.isEmpty(e))throw Ye.createUrlEmptyError();return new A0(e,t,i,n,a,o)},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var S0=function(){function r(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return r.isServerTelemetryEntity=function(e,t){var i=e.indexOf(Ut.CACHE_KEY)===0,n=!0;return t&&(n=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),i&&n},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var zm=function(){function r(){}return r.isThrottlingEntity=function(e,t){var i=!1;e&&(i=e.indexOf(Ws.THROTTLING_PREFIX)===0);var n=!0;return t&&(n=t.hasOwnProperty("throttleTime")),i&&n},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var oH={sendGetRequestAsync:function(){var r="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(Q.createUnexpectedError(r))},sendPostRequestAsync:function(){var r="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(Q.createUnexpectedError(r))}};/*! @azure/msal-common v9.1.1 2023-01-19 */var Kl={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."}},ym=function(r){F1(e,r);function e(t,i){var n=r.call(this,t,i)||this;return n.name="JoseHeaderError",Object.setPrototypeOf(n,e.prototype),n}return e.createMissingKidError=function(){return new e(Kl.missingKidError.code,Kl.missingKidError.desc)},e.createMissingAlgError=function(){return new e(Kl.missingAlgError.code,Kl.missingAlgError.desc)},e}(Q);/*! @azure/msal-common v9.1.1 2023-01-19 */var sH=function(){function r(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}return r.getShrHeaderString=function(e){if(!e.kid)throw ym.createMissingKidError();if(!e.alg)throw ym.createMissingAlgError();var t=new r({typ:e.typ||q3.Jwt,kid:e.kid,alg:e.alg});return JSON.stringify(t)},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var cH=function(){function r(e,t){this.cacheOutcome=ga.NO_CACHE_HIT,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||w.EMPTY_STRING,this.wrapperVer=e.wrapperVer||w.EMPTY_STRING,this.telemetryCacheKey=Ut.CACHE_KEY+T1.CACHE_KEY_SEPARATOR+e.clientId}return r.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+Ut.VALUE_SEPARATOR+this.cacheOutcome,t=[this.wrapperSKU,this.wrapperVer].join(Ut.VALUE_SEPARATOR),i=this.getRegionDiscoveryFields(),n=[e,i].join(Ut.VALUE_SEPARATOR);return[Ut.SCHEMA_VERSION,n,t].join(Ut.CATEGORY_SEPARATOR)},r.prototype.generateLastRequestHeaderValue=function(){var e=this.getLastRequests(),t=r.maxErrorsToSend(e),i=e.failedRequests.slice(0,2*t).join(Ut.VALUE_SEPARATOR),n=e.errors.slice(0,t).join(Ut.VALUE_SEPARATOR),a=e.errors.length,o=t<a?Ut.OVERFLOW_TRUE:Ut.OVERFLOW_FALSE,s=[a,o].join(Ut.VALUE_SEPARATOR);return[Ut.SCHEMA_VERSION,e.cacheHits,i,n,s].join(Ut.CATEGORY_SEPARATOR)},r.prototype.cacheFailedRequest=function(e){var t=this.getLastRequests();t.errors.length>=Ut.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),F.isEmpty(e.subError)?F.isEmpty(e.errorCode)?e&&e.toString()?t.errors.push(e.toString()):t.errors.push(Ut.UNKNOWN_ERROR):t.errors.push(e.errorCode):t.errors.push(e.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)},r.prototype.incrementCacheHits=function(){var e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits},r.prototype.getLastRequests=function(){var e=new S0,t=this.cacheManager.getServerTelemetry(this.telemetryCacheKey);return t||e},r.prototype.clearTelemetryCache=function(){var e=this.getLastRequests(),t=r.maxErrorsToSend(e),i=e.errors.length;if(t===i)this.cacheManager.removeItem(this.telemetryCacheKey);else{var n=new S0;n.failedRequests=e.failedRequests.slice(t*2),n.errors=e.errors.slice(t),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,n)}},r.maxErrorsToSend=function(e){var t,i=0,n=0,a=e.errors.length;for(t=0;t<a;t++){var o=e.failedRequests[2*t]||w.EMPTY_STRING,s=e.failedRequests[2*t+1]||w.EMPTY_STRING,c=e.errors[t]||w.EMPTY_STRING;if(n+=o.toString().length+s.toString().length+c.length+3,n<Ut.MAX_LAST_HEADER_BYTES)i+=1;else break}return i},r.prototype.getRegionDiscoveryFields=function(){var e=[];return e.push(this.regionUsed||w.EMPTY_STRING),e.push(this.regionSource||w.EMPTY_STRING),e.push(this.regionOutcome||w.EMPTY_STRING),e.join(",")},r.prototype.updateRegionDiscoveryMetadata=function(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome},r.prototype.setCacheOutcome=function(e){this.cacheOutcome=e},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var O_=function(){function r(e,t,i,n,a,o){this.authority=t,this.libraryName=n,this.libraryVersion=a,this.applicationTelemetry=o,this.clientId=e,this.logger=i,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.staticFieldsByCorrelationId=new Map,this.measurementsById=new Map,this.countersByCorrelationId=new Map}return r.prototype.startPerformanceMeasurement=function(e,t){return{}},r.prototype.startPerformanceMeasuremeant=function(e,t){return{}},r.prototype.startMeasurement=function(e,t){var i=this,n,a,o=t||this.generateId();t||this.logger.info("PerformanceClient: No correlation id provided for "+e+", generating",o),this.logger.trace("PerformanceClient: Performance measurement started for "+e,o);var s,c=this.startPerformanceMeasuremeant(e,o);if(c.startMeasurement)c.startMeasurement(),s=c;else{var l=this.startPerformanceMeasurement(e,o);l.startMeasurement(),s=l}var h={eventId:this.generateId(),status:M2.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:o};this.cacheEventByCorrelationId(h);var d={appName:(n=this.applicationTelemetry)===null||n===void 0?void 0:n.appName,appVersion:(a=this.applicationTelemetry)===null||a===void 0?void 0:a.appVersion};return this.addStaticFields(d,o),this.cacheMeasurement(h,s),{endMeasurement:function(u){var v=i.endMeasurement(Ue(Ue({},h),u));return v&&i.cacheEventByCorrelationId(v),v},flushMeasurement:function(){return i.flushMeasurements(h.name,h.correlationId)},discardMeasurement:function(){return i.discardMeasurements(h.correlationId)},addStaticFields:function(u){return i.addStaticFields(u,h.correlationId)},increment:function(u){return i.increment(u,h.correlationId)},measurement:s,event:h}},r.prototype.endMeasurement=function(e){var t=this.measurementsById.get(e.eventId);if(t){this.measurementsById.delete(e.eventId),t.endMeasurement();var i=t.flushMeasurement();if(i!==null){this.logger.trace("PerformanceClient: Performance measurement ended for "+e.name+": "+i+" ms",e.correlationId);var n=Ue(Ue({durationMs:Math.round(i)},e),{status:M2.Completed});return n}else this.logger.trace("PerformanceClient: Performance measurement not taken",e.correlationId)}else this.logger.trace("PerformanceClient: Measurement not found for "+e.eventId,e.correlationId);return null},r.prototype.addStaticFields=function(e,t){var i=this.staticFieldsByCorrelationId.get(t);i?(this.logger.trace("PerformanceClient: Updating static fields"),this.staticFieldsByCorrelationId.set(t,Ue(Ue({},i),e))):(this.logger.trace("PerformanceClient: Adding static fields"),this.staticFieldsByCorrelationId.set(t,e))},r.prototype.increment=function(e,t){var i=this.countersByCorrelationId.get(t);if(!i){this.logger.trace("PerformanceClient: Setting counters"),this.countersByCorrelationId.set(t,Ue({},e));return}this.logger.trace("PerformanceClient: Updating counters");for(var n in e)i.hasOwnProperty(n)||(i[n]=0),i[n]+=e[n]},r.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.set(e.eventId,e)):(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" started",e.correlationId),this.eventsByCorrelationId.set(e.correlationId,new Map().set(e.eventId,e)))},r.prototype.cacheMeasurement=function(e,t){this.measurementsById.set(e.eventId,t)},r.prototype.flushMeasurements=function(e,t){var i=this;this.logger.trace("PerformanceClient: Performance measurements flushed for "+e,t);var n=this.eventsByCorrelationId.get(t),a=this.staticFieldsByCorrelationId.get(t),o=this.countersByCorrelationId.get(t);if(n){this.discardCache(t);var s=[];n.forEach(function(v){if(v.name!==e&&v.status!==M2.Completed){i.logger.trace("PerformanceClient: Incomplete submeasurement "+v.name+" found for "+e,t);var m=i.endMeasurement(v);m&&s.push(m)}s.push(v)});var c=s.sort(function(v,m){return v.startTimeMs-m.startTimeMs}),l=c.filter(function(v){return v.name===e&&v.status===M2.Completed});if(l.length>0){l.length>1&&this.logger.verbose("PerformanceClient: Multiple distinct top-level performance events found, using the first",t);var h=l[0];this.logger.verbose("PerformanceClient: Measurement found for "+e,t);var d=c.reduce(function(v,m){if(m.name!==e){i.logger.trace("PerformanceClient: Complete submeasurement found for "+m.name,t);var f=m.name+"DurationMs";v[f]?i.logger.verbose("PerformanceClient: Submeasurement for "+e+" already exists for "+m.name+", ignoring",t):v[f]=m.durationMs}return v},h),u=Ue(Ue(Ue({},d),a),o);this.emitEvents([u],d.correlationId)}else this.logger.verbose("PerformanceClient: No completed top-level measurements found for "+e,t)}else this.logger.verbose("PerformanceClient: No measurements found",t)},r.prototype.discardMeasurements=function(e){this.logger.trace("PerformanceClient: Performance measurements discarded",e),this.eventsByCorrelationId.delete(e)},r.prototype.discardCache=function(e){this.discardMeasurements(e),this.logger.trace("PerformanceClient: Static fields discarded",e),this.staticFieldsByCorrelationId.delete(e),this.logger.trace("PerformanceClient: Counters discarded",e),this.countersByCorrelationId.delete(e)},r.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},r.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},r.prototype.emitEvents=function(e,t){var i=this;this.logger.verbose("PerformanceClient: Emitting performance events",t),this.callbacks.forEach(function(n,a){i.logger.trace("PerformanceClient: Emitting event to callback "+a,t),n.apply(null,[e])})},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var wm=function(){function r(){}return r.prototype.startMeasurement=function(){},r.prototype.endMeasurement=function(){},r.prototype.flushMeasurement=function(){return null},r}(),lH=function(r){F1(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.generateId=function(){return"callback-id"},e.prototype.startPerformanceMeasuremeant=function(){return new wm},e.prototype.startPerformanceMeasurement=function(){return new wm},e}(O_);/*! @azure/msal-browser v2.32.2 2023-01-10 */var L={pkceNotGenerated:{code:"pkce_not_created",desc:"The PKCE code challenge and verifier could not be generated."},cryptoDoesNotExist:{code:"crypto_nonexistent",desc:"The crypto object or function is not available."},httpMethodNotImplementedError:{code:"http_method_not_implemented",desc:"The HTTP method given has not been implemented in this library."},emptyNavigateUriError:{code:"empty_navigate_uri",desc:"Navigation URI is empty. Please check stack trace for more info."},hashEmptyError:{code:"hash_empty_error",desc:"Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors."},hashDoesNotContainStateError:{code:"no_state_in_hash",desc:"Hash does not contain state. Please verify that the request originated from msal."},hashDoesNotContainKnownPropertiesError:{code:"hash_does_not_contain_known_properties",desc:"Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors."},unableToParseStateError:{code:"unable_to_parse_state",desc:"Unable to parse state. Please verify that the request originated from msal."},stateInteractionTypeMismatchError:{code:"state_interaction_type_mismatch",desc:"Hash contains state but the interaction type does not match the caller."},interactionInProgress:{code:"interaction_in_progress",desc:"Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. For more visit: aka.ms/msaljs/browser-errors."},popupWindowError:{code:"popup_window_error",desc:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser."},emptyWindowError:{code:"empty_window_error",desc:"window.open returned null or undefined window object."},userCancelledError:{code:"user_cancelled",desc:"User cancelled the flow."},monitorPopupTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},monitorIframeTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},redirectInIframeError:{code:"redirect_in_iframe",desc:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs."},blockTokenRequestsInHiddenIframeError:{code:"block_iframe_reload",desc:"Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors"},blockAcquireTokenInPopupsError:{code:"block_nested_popups",desc:"Request was blocked inside a popup because MSAL detected it was running in a popup."},iframeClosedPrematurelyError:{code:"iframe_closed_prematurely",desc:"The iframe being monitored was closed prematurely."},silentLogoutUnsupportedError:{code:"silent_logout_unsupported",desc:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead."},noAccountError:{code:"no_account_error",desc:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request."},silentPromptValueError:{code:"silent_prompt_value_error",desc:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'."},noTokenRequestCacheError:{code:"no_token_request_cache_error",desc:"No token request found in cache."},unableToParseTokenRequestCacheError:{code:"unable_to_parse_token_request_cache_error",desc:"The cached token request could not be parsed."},noCachedAuthorityError:{code:"no_cached_authority_error",desc:"No cached authority found."},authRequestNotSet:{code:"auth_request_not_set_error",desc:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler"},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},notInBrowserEnvironment:{code:"non_browser_environment",desc:"Login and token requests are not supported in non-browser environments."},databaseNotOpen:{code:"database_not_open",desc:"Database is not open!"},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},postRequestFailed:{code:"post_request_failed",desc:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'"},getRequestFailed:{code:"get_request_failed",desc:"Network request failed. Please check the network trace to determine root cause."},failedToParseNetworkResponse:{code:"failed_to_parse_response",desc:"Failed to parse network response. Check network trace."},unableToLoadTokenError:{code:"unable_to_load_token",desc:"Error loading token to cache."},signingKeyNotFoundInStorage:{code:"crypto_key_not_found",desc:"Cryptographic Key or Keypair not found in browser storage."},authCodeRequired:{code:"auth_code_required",desc:"An authorization code must be provided (as the `code` property on the request) to this flow."},authCodeOrNativeAccountRequired:{code:"auth_code_or_nativeAccountId_required",desc:"An authorization code or nativeAccountId must be provided to this flow."},databaseUnavailable:{code:"database_unavailable",desc:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts."},unableToAcquireTokenFromNativePlatform:{code:"unable_to_acquire_token_from_native_platform",desc:"Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors."},nativeHandshakeTimeout:{code:"native_handshake_timeout",desc:"Timed out while attempting to establish connection to browser extension"},nativeExtensionNotInstalled:{code:"native_extension_not_installed",desc:"Native extension is not installed. If you think this is a mistake call the initialize function."},nativeConnectionNotEstablished:{code:"native_connection_not_established",desc:"Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors."},nativeBrokerCalledBeforeInitialize:{code:"native_broker_called_before_initialize",desc:"You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors."},nativePromptNotSupported:{code:"native_prompt_not_supported",desc:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow."}},R=function(r){Jt(e,r);function e(t,i){var n=r.call(this,t,i)||this;return Object.setPrototypeOf(n,e.prototype),n.name="BrowserAuthError",n}return e.createPkceNotGeneratedError=function(t){return new e(L.pkceNotGenerated.code,L.pkceNotGenerated.desc+" Detail:"+t)},e.createCryptoNotAvailableError=function(t){return new e(L.cryptoDoesNotExist.code,L.cryptoDoesNotExist.desc+" Detail:"+t)},e.createHttpMethodNotImplementedError=function(t){return new e(L.httpMethodNotImplementedError.code,L.httpMethodNotImplementedError.desc+" Given Method: "+t)},e.createEmptyNavigationUriError=function(){return new e(L.emptyNavigateUriError.code,L.emptyNavigateUriError.desc)},e.createEmptyHashError=function(t){return new e(L.hashEmptyError.code,L.hashEmptyError.desc+" Given Url: "+t)},e.createHashDoesNotContainStateError=function(){return new e(L.hashDoesNotContainStateError.code,L.hashDoesNotContainStateError.desc)},e.createHashDoesNotContainKnownPropertiesError=function(){return new e(L.hashDoesNotContainKnownPropertiesError.code,L.hashDoesNotContainKnownPropertiesError.desc)},e.createUnableToParseStateError=function(){return new e(L.unableToParseStateError.code,L.unableToParseStateError.desc)},e.createStateInteractionTypeMismatchError=function(){return new e(L.stateInteractionTypeMismatchError.code,L.stateInteractionTypeMismatchError.desc)},e.createInteractionInProgressError=function(){return new e(L.interactionInProgress.code,L.interactionInProgress.desc)},e.createPopupWindowError=function(t){var i=L.popupWindowError.desc;return i=F.isEmpty(t)?i:i+" Details: "+t,new e(L.popupWindowError.code,i)},e.createEmptyWindowCreatedError=function(){return new e(L.emptyWindowError.code,L.emptyWindowError.desc)},e.createUserCancelledError=function(){return new e(L.userCancelledError.code,L.userCancelledError.desc)},e.createMonitorPopupTimeoutError=function(){return new e(L.monitorPopupTimeoutError.code,L.monitorPopupTimeoutError.desc)},e.createMonitorIframeTimeoutError=function(){return new e(L.monitorIframeTimeoutError.code,L.monitorIframeTimeoutError.desc)},e.createRedirectInIframeError=function(t){return new e(L.redirectInIframeError.code,L.redirectInIframeError.desc+" (window.parent !== window) => "+t)},e.createBlockReloadInHiddenIframeError=function(){return new e(L.blockTokenRequestsInHiddenIframeError.code,L.blockTokenRequestsInHiddenIframeError.desc)},e.createBlockAcquireTokenInPopupsError=function(){return new e(L.blockAcquireTokenInPopupsError.code,L.blockAcquireTokenInPopupsError.desc)},e.createIframeClosedPrematurelyError=function(){return new e(L.iframeClosedPrematurelyError.code,L.iframeClosedPrematurelyError.desc)},e.createSilentLogoutUnsupportedError=function(){return new e(L.silentLogoutUnsupportedError.code,L.silentLogoutUnsupportedError.desc)},e.createNoAccountError=function(){return new e(L.noAccountError.code,L.noAccountError.desc)},e.createSilentPromptValueError=function(t){return new e(L.silentPromptValueError.code,L.silentPromptValueError.desc+" Given value: "+t)},e.createUnableToParseTokenRequestCacheError=function(){return new e(L.unableToParseTokenRequestCacheError.code,L.unableToParseTokenRequestCacheError.desc)},e.createNoTokenRequestCacheError=function(){return new e(L.noTokenRequestCacheError.code,L.noTokenRequestCacheError.desc)},e.createAuthRequestNotSetError=function(){return new e(L.authRequestNotSet.code,L.authRequestNotSet.desc)},e.createNoCachedAuthorityError=function(){return new e(L.noCachedAuthorityError.code,L.noCachedAuthorityError.desc)},e.createInvalidCacheTypeError=function(){return new e(L.invalidCacheType.code,""+L.invalidCacheType.desc)},e.createNonBrowserEnvironmentError=function(){return new e(L.notInBrowserEnvironment.code,L.notInBrowserEnvironment.desc)},e.createDatabaseNotOpenError=function(){return new e(L.databaseNotOpen.code,L.databaseNotOpen.desc)},e.createNoNetworkConnectivityError=function(){return new e(L.noNetworkConnectivity.code,L.noNetworkConnectivity.desc)},e.createPostRequestFailedError=function(t,i){return new e(L.postRequestFailed.code,L.postRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+i.split("?")[0])},e.createGetRequestFailedError=function(t,i){return new e(L.getRequestFailed.code,L.getRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+i.split("?")[0])},e.createFailedToParseNetworkResponseError=function(t){return new e(L.failedToParseNetworkResponse.code,L.failedToParseNetworkResponse.desc+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToLoadTokenError=function(t){return new e(L.unableToLoadTokenError.code,L.unableToLoadTokenError.desc+" | "+t)},e.createSigningKeyNotFoundInStorageError=function(t){return new e(L.signingKeyNotFoundInStorage.code,L.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+t)},e.createAuthCodeRequiredError=function(){return new e(L.authCodeRequired.code,L.authCodeRequired.desc)},e.createAuthCodeOrNativeAccountIdRequiredError=function(){return new e(L.authCodeOrNativeAccountRequired.code,L.authCodeOrNativeAccountRequired.desc)},e.createDatabaseUnavailableError=function(){return new e(L.databaseUnavailable.code,L.databaseUnavailable.desc)},e.createUnableToAcquireTokenFromNativePlatformError=function(){return new e(L.unableToAcquireTokenFromNativePlatform.code,L.unableToAcquireTokenFromNativePlatform.desc)},e.createNativeHandshakeTimeoutError=function(){return new e(L.nativeHandshakeTimeout.code,L.nativeHandshakeTimeout.desc)},e.createNativeExtensionNotInstalledError=function(){return new e(L.nativeExtensionNotInstalled.code,L.nativeExtensionNotInstalled.desc)},e.createNativeConnectionNotEstablishedError=function(){return new e(L.nativeConnectionNotEstablished.code,L.nativeConnectionNotEstablished.desc)},e.createNativeBrokerCalledBeforeInitialize=function(){return new e(L.nativeBrokerCalledBeforeInitialize.code,L.nativeBrokerCalledBeforeInitialize.desc)},e.createNativePromptParameterNotSupportedError=function(){return new e(L.nativePromptNotSupported.code,L.nativePromptNotSupported.desc)},e}(Q);/*! @azure/msal-browser v2.32.2 2023-01-10 */var $r={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"},bs={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},Vi;(function(r){r.HandshakeRequest="Handshake",r.HandshakeResponse="HandshakeResponse",r.GetToken="GetToken",r.Response="Response"})(Vi||(Vi={}));var c1;(function(r){r.LocalStorage="localStorage",r.SessionStorage="sessionStorage",r.MemoryStorage="memoryStorage"})(c1||(c1={}));var ti;(function(r){r.GET="GET",r.POST="POST"})(ti||(ti={}));var Ce;(function(r){r.AUTHORITY="authority",r.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",r.SESSION_STATE="session.state",r.REQUEST_STATE="request.state",r.NONCE_IDTOKEN="nonce.id_token",r.ORIGIN_URI="request.origin",r.RENEW_STATUS="token.renew.status",r.URL_HASH="urlHash",r.REQUEST_PARAMS="request.params",r.SCOPES="scopes",r.INTERACTION_STATUS_KEY="interaction.status",r.CCS_CREDENTIAL="ccs.credential",r.CORRELATION_ID="request.correlationId",r.NATIVE_REQUEST="request.native",r.REDIRECT_CONTEXT="request.redirect.context"})(Ce||(Ce={}));var C2;(function(r){r.WRAPPER_SKU="wrapper.sku",r.WRAPPER_VER="wrapper.version"})(C2||(C2={}));var je;(function(r){r[r.acquireTokenRedirect=861]="acquireTokenRedirect",r[r.acquireTokenPopup=862]="acquireTokenPopup",r[r.ssoSilent=863]="ssoSilent",r[r.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",r[r.handleRedirectPromise=865]="handleRedirectPromise",r[r.acquireTokenByCode=866]="acquireTokenByCode",r[r.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",r[r.logout=961]="logout",r[r.logoutPopup=962]="logoutPopup"})(je||(je={}));var W;(function(r){r.Redirect="redirect",r.Popup="popup",r.Silent="silent",r.None="none"})(W||(W={}));var bm;(function(r){r.Startup="startup",r.Login="login",r.Logout="logout",r.AcquireToken="acquireToken",r.SsoSilent="ssoSilent",r.HandleRedirect="handleRedirect",r.None="none"})(bm||(bm={}));var xm={scopes:rl},ro="jwk",Mm;(function(r){r.React="@azure/msal-react",r.Angular="@azure/msal-angular"})(Mm||(Mm={}));var Y3="msal.db",hH=1,dH=Y3+".keys",E1;(function(r){r[r.Default=0]="Default",r[r.AccessToken=1]="AccessToken",r[r.AccessTokenAndRefreshToken=2]="AccessTokenAndRefreshToken",r[r.RefreshToken=3]="RefreshToken",r[r.RefreshTokenAndNetwork=4]="RefreshTokenAndNetwork",r[r.Skip=5]="Skip"})(E1||(E1={}));/*! @azure/msal-browser v2.32.2 2023-01-10 */var H1={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."}},$0=function(r){Jt(e,r);function e(t,i){var n=r.call(this,t,i)||this;return n.name="BrowserConfigurationAuthError",Object.setPrototypeOf(n,e.prototype),n}return e.createRedirectUriEmptyError=function(){return new e(H1.redirectUriNotSet.code,H1.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(H1.postLogoutUriNotSet.code,H1.postLogoutUriNotSet.desc)},e.createStorageNotSupportedError=function(t){return new e(H1.storageNotSupportedError.code,H1.storageNotSupportedError.desc+" Given Location: "+t)},e.createRedirectCallbacksNotSetError=function(){return new e(H1.noRedirectCallbacksSet.code,H1.noRedirectCallbacksSet.desc)},e.createStubPcaInstanceCalledError=function(){return new e(H1.stubPcaInstanceCalled.code,H1.stubPcaInstanceCalled.desc)},e.createInMemoryRedirectUnavailableError=function(){return new e(H1.inMemRedirectUnavailable.code,H1.inMemRedirectUnavailable.desc)},e.createEntropyNotProvided=function(){return new e(H1.entropyNotProvided.code,H1.entropyNotProvided.desc)},e}(Q);/*! @azure/msal-browser v2.32.2 2023-01-10 */var Cm=function(){function r(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return r.prototype.validateWindowStorage=function(e){if(e!==c1.LocalStorage&&e!==c1.SessionStorage)throw $0.createStorageNotSupportedError(e);var t=!!window[e];if(!t)throw $0.createStorageNotSupportedError(e)},r.prototype.getItem=function(e){return this.windowStorage.getItem(e)},r.prototype.setItem=function(e,t){this.windowStorage.setItem(e,t)},r.prototype.removeItem=function(e){this.windowStorage.removeItem(e)},r.prototype.getKeys=function(){return Object.keys(this.windowStorage)},r.prototype.containsKey=function(e){return this.windowStorage.hasOwnProperty(e)},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var Q3=function(){function r(){this.cache=new Map}return r.prototype.getItem=function(e){return this.cache.get(e)||null},r.prototype.setItem=function(e,t){this.cache.set(e,t)},r.prototype.removeItem=function(e){this.cache.delete(e)},r.prototype.getKeys=function(){var e=[];return this.cache.forEach(function(t,i){e.push(i)}),e},r.prototype.containsKey=function(e){return this.cache.has(e)},r.prototype.clear=function(){this.cache.clear()},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var N_=function(){function r(){}return r.extractBrowserRequestState=function(e,t){if(F.isEmpty(t))return null;try{var i=Di.parseRequestState(e,t);return i.libraryState.meta}catch(n){throw j.createInvalidStateError(t,n)}},r.parseServerResponseFromHash=function(e){if(!e)return{};var t=new ke(e);return ke.getDeserializedHash(t.getHash())},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var X3=function(r){Jt(e,r);function e(t,i,n,a){var o=r.call(this,t,n)||this;return o.COOKIE_LIFE_MULTIPLIER=24*60*60*1e3,o.cacheConfig=i,o.logger=a,o.internalStorage=new Q3,o.browserStorage=o.setupBrowserStorage(o.cacheConfig.cacheLocation),o.temporaryCacheStorage=o.setupTemporaryCacheStorage(o.cacheConfig.cacheLocation),o.migrateCacheEntries(),o}return e.prototype.setupBrowserStorage=function(t){switch(t){case c1.LocalStorage:case c1.SessionStorage:try{return new Cm(t)}catch(i){this.logger.verbose(i);break}}return this.cacheConfig.cacheLocation=c1.MemoryStorage,new Q3},e.prototype.setupTemporaryCacheStorage=function(t){switch(t){case c1.LocalStorage:case c1.SessionStorage:try{return new Cm(c1.SessionStorage)}catch(i){return this.logger.verbose(i),this.internalStorage}case c1.MemoryStorage:default:return this.internalStorage}},e.prototype.migrateCacheEntries=function(){var t=this,i=w.CACHE_PREFIX+"."+Ct.ID_TOKEN,n=w.CACHE_PREFIX+"."+Ct.CLIENT_INFO,a=w.CACHE_PREFIX+"."+Ct.ERROR,o=w.CACHE_PREFIX+"."+Ct.ERROR_DESC,s=this.browserStorage.getItem(i),c=this.browserStorage.getItem(n),l=this.browserStorage.getItem(a),h=this.browserStorage.getItem(o),d=[s,c,l,h],u=[Ct.ID_TOKEN,Ct.CLIENT_INFO,Ct.ERROR,Ct.ERROR_DESC];u.forEach(function(v,m){return t.migrateCacheEntry(v,d[m])})},e.prototype.migrateCacheEntry=function(t,i){i&&this.setTemporaryCache(t,i,!0)},e.prototype.validateAndParseJson=function(t){try{var i=JSON.parse(t);return i&&typeof i=="object"?i:null}catch{return null}},e.prototype.getItem=function(t){return this.browserStorage.getItem(t)},e.prototype.setItem=function(t,i){this.browserStorage.setItem(t,i)},e.prototype.getAccount=function(t){var i=this.getItem(t);if(!i)return null;var n=this.validateAndParseJson(i);return!n||!Wt.isAccountEntity(n)?null:Pr.toObject(new Wt,n)},e.prototype.setAccount=function(t){this.logger.trace("BrowserCacheManager.setAccount called");var i=t.generateAccountKey();this.setItem(i,JSON.stringify(t))},e.prototype.getIdTokenCredential=function(t){var i=this.getItem(t);if(!i)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null;var n=this.validateAndParseJson(i);return!n||!kc.isIdTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),Pr.toObject(new kc,n))},e.prototype.setIdTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var i=t.generateCredentialKey();this.setItem(i,JSON.stringify(t))},e.prototype.getAccessTokenCredential=function(t){var i=this.getItem(t);if(!i)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null;var n=this.validateAndParseJson(i);return!n||!Ec.isAccessTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),Pr.toObject(new Ec,n))},e.prototype.setAccessTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var i=t.generateCredentialKey();this.setItem(i,JSON.stringify(t))},e.prototype.getRefreshTokenCredential=function(t){var i=this.getItem(t);if(!i)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null;var n=this.validateAndParseJson(i);return!n||!k0.isRefreshTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),Pr.toObject(new k0,n))},e.prototype.setRefreshTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var i=t.generateCredentialKey();this.setItem(i,JSON.stringify(t))},e.prototype.getAppMetadata=function(t){var i=this.getItem(t);if(!i)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var n=this.validateAndParseJson(i);return!n||!K3.isAppMetadataEntity(t,n)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),Pr.toObject(new K3,n))},e.prototype.setAppMetadata=function(t){this.logger.trace("BrowserCacheManager.setAppMetadata called");var i=t.generateAppMetadataKey();this.setItem(i,JSON.stringify(t))},e.prototype.getServerTelemetry=function(t){var i=this.getItem(t);if(!i)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var n=this.validateAndParseJson(i);return!n||!S0.isServerTelemetryEntity(t,n)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),Pr.toObject(new S0,n))},e.prototype.setServerTelemetry=function(t,i){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(t,JSON.stringify(i))},e.prototype.getAuthorityMetadata=function(t){var i=this.internalStorage.getItem(t);if(!i)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var n=this.validateAndParseJson(i);return n&&W3.isAuthorityMetadataEntity(t,n)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),Pr.toObject(new W3,n)):null},e.prototype.getAuthorityMetadataKeys=function(){var t=this,i=this.internalStorage.getKeys();return i.filter(function(n){return t.isAuthorityMetadata(n)})},e.prototype.setWrapperMetadata=function(t,i){this.internalStorage.setItem(C2.WRAPPER_SKU,t),this.internalStorage.setItem(C2.WRAPPER_VER,i)},e.prototype.getWrapperMetadata=function(){var t=this.internalStorage.getItem(C2.WRAPPER_SKU)||w.EMPTY_STRING,i=this.internalStorage.getItem(C2.WRAPPER_VER)||w.EMPTY_STRING;return[t,i]},e.prototype.setAuthorityMetadata=function(t,i){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(t,JSON.stringify(i))},e.prototype.getActiveAccount=function(){var t=this.generateCacheKey(Ct.ACTIVE_ACCOUNT_FILTERS),i=this.getItem(t);if(!i){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");var n=this.generateCacheKey(Ct.ACTIVE_ACCOUNT),a=this.getItem(n);if(!a)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;var o=this.getAccountInfoByFilter({localAccountId:a})[0]||null;return o?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(o),o):null}var s=this.validateAndParseJson(i);return s?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:s.homeAccountId,localAccountId:s.localAccountId})[0]||null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)},e.prototype.setActiveAccount=function(t){var i=this.generateCacheKey(Ct.ACTIVE_ACCOUNT_FILTERS),n=this.generateCacheKey(Ct.ACTIVE_ACCOUNT);if(t){this.logger.verbose("setActiveAccount: Active account set");var a={homeAccountId:t.homeAccountId,localAccountId:t.localAccountId};this.browserStorage.setItem(i,JSON.stringify(a)),this.browserStorage.setItem(n,t.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(i),this.browserStorage.removeItem(n)},e.prototype.getAccountInfoByFilter=function(t){var i=this.getAllAccounts();return this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total "+i.length+" accounts found"),i.filter(function(n){return!(t.username&&t.username.toLowerCase()!==n.username.toLowerCase()||t.homeAccountId&&t.homeAccountId!==n.homeAccountId||t.localAccountId&&t.localAccountId!==n.localAccountId||t.tenantId&&t.tenantId!==n.tenantId||t.environment&&t.environment!==n.environment)})},e.prototype.getAccountInfoByHints=function(t,i){var n=this.getAllAccounts().filter(function(a){if(i){var o=a.idTokenClaims&&a.idTokenClaims.sid;return i===o}return t?t===a.username:!1});if(n.length===1)return n[0];if(n.length>1)throw j.createMultipleMatchingAccountsInCacheError();return null},e.prototype.getThrottlingCache=function(t){var i=this.getItem(t);if(!i)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var n=this.validateAndParseJson(i);return!n||!zm.isThrottlingEntity(t,n)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),Pr.toObject(new zm,n))},e.prototype.setThrottlingCache=function(t,i){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(t,JSON.stringify(i))},e.prototype.getTemporaryCache=function(t,i){var n=i?this.generateCacheKey(t):t;if(this.cacheConfig.storeAuthStateInCookie){var a=this.getItemCookie(n);if(a)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),a}var o=this.temporaryCacheStorage.getItem(n);if(!o){if(this.cacheConfig.cacheLocation===c1.LocalStorage){var s=this.browserStorage.getItem(n);if(s)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),s}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),o},e.prototype.setTemporaryCache=function(t,i,n){var a=n?this.generateCacheKey(t):t;this.temporaryCacheStorage.setItem(a,i),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(a,i))},e.prototype.removeItem=function(t){return 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)),!0},e.prototype.containsKey=function(t){return this.browserStorage.containsKey(t)||this.temporaryCacheStorage.containsKey(t)},e.prototype.getKeys=function(){return i6(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},e.prototype.clear=function(){return V(this,void 0,void 0,function(){var t=this;return S(this,function(i){switch(i.label){case 0:return[4,this.removeAllAccounts()];case 1:return i.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(n){(t.browserStorage.containsKey(n)||t.temporaryCacheStorage.containsKey(n))&&(n.indexOf(w.CACHE_PREFIX)!==-1||n.indexOf(t.clientId)!==-1)&&t.removeItem(n)}),this.internalStorage.clear(),[2]}})})},e.prototype.setItemCookie=function(t,i,n){var a=encodeURIComponent(t)+"="+encodeURIComponent(i)+";path=/;SameSite=Lax;";if(n){var o=this.getCookieExpirationTime(n);a+="expires="+o+";"}this.cacheConfig.secureCookies&&(a+="Secure;"),document.cookie=a},e.prototype.getItemCookie=function(t){for(var i=encodeURIComponent(t)+"=",n=document.cookie.split(";"),a=0;a<n.length;a++){for(var o=n[a];o.charAt(0)===" ";)o=o.substring(1);if(o.indexOf(i)===0)return decodeURIComponent(o.substring(i.length,o.length))}return w.EMPTY_STRING},e.prototype.clearMsalCookies=function(){var t=this,i=w.CACHE_PREFIX+"."+this.clientId,n=document.cookie.split(";");n.forEach(function(a){for(;a.charAt(0)===" ";)a=a.substring(1);if(a.indexOf(i)===0){var o=a.split("=")[0];t.clearItemCookie(o)}})},e.prototype.clearItemCookie=function(t){this.setItemCookie(t,w.EMPTY_STRING,-1)},e.prototype.getCookieExpirationTime=function(t){var i=new Date,n=new Date(i.getTime()+t*this.COOKIE_LIFE_MULTIPLIER);return n.toUTCString()},e.prototype.getCache=function(){return this.browserStorage},e.prototype.setCache=function(){},e.prototype.generateCacheKey=function(t){var i=this.validateAndParseJson(t);return i?JSON.stringify(t):F.startsWith(t,w.CACHE_PREFIX)||F.startsWith(t,Ct.ADAL_ID_TOKEN)?t:w.CACHE_PREFIX+"."+this.clientId+"."+t},e.prototype.generateAuthorityKey=function(t){var i=Di.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(Ce.AUTHORITY+"."+i)},e.prototype.generateNonceKey=function(t){var i=Di.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(Ce.NONCE_IDTOKEN+"."+i)},e.prototype.generateStateKey=function(t){var i=Di.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(Ce.REQUEST_STATE+"."+i)},e.prototype.getCachedAuthority=function(t){var i=this.generateStateKey(t),n=this.getTemporaryCache(i);if(!n)return null;var a=this.generateAuthorityKey(n);return this.getTemporaryCache(a)},e.prototype.updateCacheEntries=function(t,i,n,a,o){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var s=this.generateStateKey(t);this.setTemporaryCache(s,t,!1);var c=this.generateNonceKey(t);this.setTemporaryCache(c,i,!1);var l=this.generateAuthorityKey(t);if(this.setTemporaryCache(l,n,!1),o){var h={credential:o.homeAccountId,type:Y1.HOME_ACCOUNT_ID};this.setTemporaryCache(Ce.CCS_CREDENTIAL,JSON.stringify(h),!0)}else if(!F.isEmpty(a)){var h={credential:a,type:Y1.UPN};this.setTemporaryCache(Ce.CCS_CREDENTIAL,JSON.stringify(h),!0)}},e.prototype.resetRequestCache=function(t){var i=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),F.isEmpty(t)||this.getKeys().forEach(function(n){n.indexOf(t)!==-1&&i.removeItem(n)}),t&&(this.removeItem(this.generateStateKey(t)),this.removeItem(this.generateNonceKey(t)),this.removeItem(this.generateAuthorityKey(t))),this.removeItem(this.generateCacheKey(Ce.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(Ce.ORIGIN_URI)),this.removeItem(this.generateCacheKey(Ce.URL_HASH)),this.removeItem(this.generateCacheKey(Ce.CORRELATION_ID)),this.removeItem(this.generateCacheKey(Ce.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(Ce.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},e.prototype.cleanRequestByState=function(t){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),t){var i=this.generateStateKey(t),n=this.temporaryCacheStorage.getItem(i);this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+n),this.resetRequestCache(n||w.EMPTY_STRING)}this.clearMsalCookies()},e.prototype.cleanRequestByInteractionType=function(t){var i=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(function(n){if(n.indexOf(Ce.REQUEST_STATE)!==-1){var a=i.temporaryCacheStorage.getItem(n);if(a){var o=N_.extractBrowserRequestState(i.cryptoImpl,a);o&&o.interactionType===t&&(i.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+a),i.resetRequestCache(a))}}}),this.clearMsalCookies(),this.setInteractionInProgress(!1)},e.prototype.cacheCodeRequest=function(t,i){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var n=i.base64Encode(JSON.stringify(t));this.setTemporaryCache(Ce.REQUEST_PARAMS,n,!0)},e.prototype.getCachedRequest=function(t,i){this.logger.trace("BrowserCacheManager.getCachedRequest called");var n=this.getTemporaryCache(Ce.REQUEST_PARAMS,!0);if(!n)throw R.createNoTokenRequestCacheError();var a=this.validateAndParseJson(i.base64Decode(n));if(!a)throw R.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(Ce.REQUEST_PARAMS)),F.isEmpty(a.authority)){var o=this.generateAuthorityKey(t),s=this.getTemporaryCache(o);if(!s)throw R.createNoCachedAuthorityError();a.authority=s}return a},e.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var t=this.getTemporaryCache(Ce.NATIVE_REQUEST,!0);if(!t)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;var i=this.validateAndParseJson(t);return i||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)},e.prototype.isInteractionInProgress=function(t){var i=this.getInteractionInProgress();return t?i===this.clientId:!!i},e.prototype.getInteractionInProgress=function(){var t=w.CACHE_PREFIX+"."+Ce.INTERACTION_STATUS_KEY;return this.getTemporaryCache(t,!1)},e.prototype.setInteractionInProgress=function(t){var i=w.CACHE_PREFIX+"."+Ce.INTERACTION_STATUS_KEY;if(t){if(this.getInteractionInProgress())throw R.createInteractionInProgressError();this.setTemporaryCache(i,this.clientId,!1)}else!t&&this.getInteractionInProgress()===this.clientId&&this.removeItem(i)},e.prototype.getLegacyLoginHint=function(){var t=this.getTemporaryCache(Ct.ADAL_ID_TOKEN);t&&(this.browserStorage.removeItem(Ct.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var i=this.getTemporaryCache(Ct.ID_TOKEN,!0);i&&(this.removeItem(this.generateCacheKey(Ct.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var n=i||t;if(n){var a=new ui(n,this.cryptoImpl);if(a.claims&&a.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"),a.claims.preferred_username;if(a.claims&&a.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),a.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,i){var n=i.generateCredentialKey();if(t!==n){var a=this.getItem(t);if(a)return this.removeItem(t),this.setItem(n,a),this.logger.verbose("Updated an outdated "+i.credentialType+" cache key"),n;this.logger.error("Attempted to update an outdated "+i.credentialType+" cache key but no item matching the outdated key was found in storage")}return t},e.prototype.getRedirectRequestContext=function(){return this.getTemporaryCache(Ce.REDIRECT_CONTEXT,!0)},e.prototype.setRedirectRequestContext=function(t){this.setTemporaryCache(Ce.REDIRECT_CONTEXT,t,!0)},e}(Pr),uH=function(r,e){var t={cacheLocation:c1.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1};return new X3(r,t,M0,e)};/*! @azure/msal-browser v2.32.2 2023-01-10 */var Ed="@azure/msal-browser",Ys="2.32.2";/*! @azure/msal-browser v2.32.2 2023-01-10 */var vH=function(){function r(){}return r.prototype.sendGetRequestAsync=function(e,t){return V(this,void 0,void 0,function(){var i,n,a;return S(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,fetch(e,{method:ti.GET,headers:this.getFetchHeaders(t)})];case 1:return i=o.sent(),[3,3];case 2:throw n=o.sent(),window.navigator.onLine?R.createGetRequestFailedError(n,e):R.createNoNetworkConnectivityError();case 3:return o.trys.push([3,5,,6]),a={headers:this.getHeaderDict(i.headers)},[4,i.json()];case 4:return[2,(a.body=o.sent(),a.status=i.status,a)];case 5:throw o.sent(),R.createFailedToParseNetworkResponseError(e);case 6:return[2]}})})},r.prototype.sendPostRequestAsync=function(e,t){return V(this,void 0,void 0,function(){var i,n,a,o;return S(this,function(s){switch(s.label){case 0:i=t&&t.body||w.EMPTY_STRING,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,fetch(e,{method:ti.POST,headers:this.getFetchHeaders(t),body:i})];case 2:return n=s.sent(),[3,4];case 3:throw a=s.sent(),window.navigator.onLine?R.createPostRequestFailedError(a,e):R.createNoNetworkConnectivityError();case 4:return s.trys.push([4,6,,7]),o={headers:this.getHeaderDict(n.headers)},[4,n.json()];case 5:return[2,(o.body=s.sent(),o.status=n.status,o)];case 6:throw s.sent(),R.createFailedToParseNetworkResponseError(e);case 7:return[2]}})})},r.prototype.getFetchHeaders=function(e){var t=new Headers;if(!(e&&e.headers))return t;var i=e.headers;return Object.keys(i).forEach(function(n){t.append(n,i[n])}),t},r.prototype.getHeaderDict=function(e){var t={};return e.forEach(function(i,n){t[n]=i}),t},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var mH=function(){function r(){}return r.prototype.sendGetRequestAsync=function(e,t){return V(this,void 0,void 0,function(){return S(this,function(i){return[2,this.sendRequestAsync(e,ti.GET,t)]})})},r.prototype.sendPostRequestAsync=function(e,t){return V(this,void 0,void 0,function(){return S(this,function(i){return[2,this.sendRequestAsync(e,ti.POST,t)]})})},r.prototype.sendRequestAsync=function(e,t,i){var n=this;return new Promise(function(a,o){var s=new XMLHttpRequest;if(s.open(t,e,!0),n.setXhrHeaders(s,i),s.onload=function(){(s.status<200||s.status>=300)&&(t===ti.POST?o(R.createPostRequestFailedError("Failed with status "+s.status,e)):o(R.createGetRequestFailedError("Failed with status "+s.status,e)));try{var c=JSON.parse(s.responseText),l={headers:n.getHeaderDict(s),body:c,status:s.status};a(l)}catch{o(R.createFailedToParseNetworkResponseError(e))}},s.onerror=function(){window.navigator.onLine?t===ti.POST?o(R.createPostRequestFailedError("Failed with status "+s.status,e)):o(R.createGetRequestFailedError("Failed with status "+s.status,e)):o(R.createNoNetworkConnectivityError())},t===ti.POST&&i&&i.body)s.send(i.body);else if(t===ti.GET)s.send();else throw R.createHttpMethodNotImplementedError(t)})},r.prototype.setXhrHeaders=function(e,t){if(t&&t.headers){var i=t.headers;Object.keys(i).forEach(function(n){e.setRequestHeader(n,i[n])})}},r.prototype.getHeaderDict=function(e){var t=e.getAllResponseHeaders(),i=t.trim().split(/[\r\n]+/),n={};return i.forEach(function(a){var o=a.split(": "),s=o.shift(),c=o.join(": ");s&&c&&(n[s]=c)}),n},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var lt=function(){function r(){}return r.clearHash=function(e){e.location.hash=w.EMPTY_STRING,typeof e.history.replaceState=="function"&&e.history.replaceState(null,w.EMPTY_STRING,""+e.location.origin+e.location.pathname+e.location.search)},r.replaceHash=function(e){var t=e.split("#");t.shift(),window.location.hash=t.length>0?t.join("#"):w.EMPTY_STRING},r.isInIframe=function(){return window.parent!==window},r.isInPopup=function(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf($r.POPUP_NAME_PREFIX+".")===0},r.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},r.getHomepage=function(){var e=new ke(window.location.href),t=e.getUrlComponents();return t.Protocol+"//"+t.HostNameAndPort+"/"},r.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new vH:new mH},r.blockReloadInHiddenIframes=function(){var e=ke.hashContainsKnownProperties(window.location.hash);if(e&&r.isInIframe())throw R.createBlockReloadInHiddenIframeError()},r.blockRedirectInIframe=function(e,t){var i=r.isInIframe();if(e===W.Redirect&&i&&!t)throw R.createRedirectInIframeError(i)},r.blockAcquireTokenInPopups=function(){if(r.isInPopup())throw R.createBlockAcquireTokenInPopupsError()},r.blockNonBrowserEnvironment=function(e){if(!e)throw R.createNonBrowserEnvironmentError()},r.blockNativeBrokerCalledBeforeInitialized=function(e,t){if(e&&!t)throw R.createNativeBrokerCalledBeforeInitialize()},r.detectIEOrEdge=function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),i=e.indexOf("Trident/"),n=e.indexOf("Edge/"),a=t>0||i>0,o=n>0;return a||o},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var U_=function(){function r(e,t,i,n,a,o,s,c,l){this.config=e,this.browserStorage=t,this.browserCrypto=i,this.networkClient=this.config.system.networkClient,this.eventHandler=a,this.navigationClient=o,this.nativeMessageHandler=c,this.correlationId=l||this.browserCrypto.createNewGuid(),this.logger=n.clone($r.MSAL_SKU,Ys,this.correlationId),this.performanceClient=s}return r.prototype.clearCacheOnLogout=function(e){return V(this,void 0,void 0,function(){return S(this,function(t){switch(t.label){case 0:if(!e)return[3,5];Wt.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(Wt.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]}})})},r.prototype.initializeBaseRequest=function(e){return V(this,void 0,void 0,function(){var t,i,n,a;return S(this,function(o){switch(o.label){case 0:if(this.logger.verbose("Initializing BaseAuthRequest"),t=e.authority||this.config.auth.authority,i=i6(e&&e.scopes||[]),n=Y(Y({},e),{correlationId:this.correlationId,authority:t,scopes:i}),!n.authenticationScheme)n.authenticationScheme=Ie.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(n.authenticationScheme===Ie.SSH){if(!e.sshJwk)throw Ye.createMissingSshJwkError();if(!e.sshKid)throw Ye.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+n.authenticationScheme+'" as configured in Auth request')}return e.claims&&!F.isEmpty(e.claims)?(a=n,[4,this.browserCrypto.hashString(e.claims)]):[3,2];case 1:a.requestedClaimsHash=o.sent(),o.label=2;case 2:return[2,n]}})})},r.prototype.getRedirectUri=function(e){this.logger.verbose("getRedirectUri called");var t=e||this.config.auth.redirectUri||lt.getCurrentUri();return ke.getAbsoluteUrl(t,lt.getCurrentUri())},r.prototype.initializeServerTelemetryManager=function(e,t){this.logger.verbose("initializeServerTelemetryManager called");var i={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 cH(i,this.browserStorage)},r.prototype.getDiscoveredAuthority=function(e){return V(this,void 0,void 0,function(){var t;return S(this,function(i){switch(i.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,V0.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,t,this.logger)]):[3,2];case 1:return[2,i.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,V0.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,t,this.logger)];case 3:return[2,i.sent()]}})})},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var Lo=function(r){Jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.initializeAuthorizationCodeRequest=function(t){return V(this,void 0,void 0,function(){var i,n;return S(this,function(a){switch(a.label){case 0:return this.logger.verbose("initializeAuthorizationRequest called",t.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return i=a.sent(),n=Y(Y({},t),{redirectUri:t.redirectUri,code:w.EMPTY_STRING,codeVerifier:i.verifier}),t.codeChallenge=i.challenge,t.codeChallengeMethod=w.S256_CODE_CHALLENGE_METHOD,[2,n]}})})},e.prototype.initializeLogoutRequest=function(t){this.logger.verbose("initializeLogoutRequest called",t==null?void 0:t.correlationId);var i=Y({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 n=this.getLogoutHintFromIdTokenClaims(t.account);n&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),i.logoutHint=n)}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",i.correlationId),i.postLogoutRedirectUri=ke.getAbsoluteUrl(t.postLogoutRedirectUri,lt.getCurrentUri())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",i.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",i.correlationId),i.postLogoutRedirectUri=ke.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,lt.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",i.correlationId),i.postLogoutRedirectUri=ke.getAbsoluteUrl(lt.getCurrentUri(),lt.getCurrentUri())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",i.correlationId),i},e.prototype.getLogoutHintFromIdTokenClaims=function(t){var i=t.idTokenClaims;if(i){if(i.login_hint)return i.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,i,n){return V(this,void 0,void 0,function(){var a;return S(this,function(o){switch(o.label){case 0:return[4,this.getClientConfiguration(t,i,n)];case 1:return a=o.sent(),[2,new T_(a)]}})})},e.prototype.getClientConfiguration=function(t,i,n){return V(this,void 0,void 0,function(){var a,o;return S(this,function(s){switch(s.label){case 0:return this.logger.verbose("getClientConfiguration called",this.correlationId),[4,this.getDiscoveredAuthority(i,n)];case 1:return a=s.sent(),o=this.config.system.loggerOptions,[2,{authOptions:{clientId:this.config.auth.clientId,authority:a,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:o.loggerCallback,piiLoggingEnabled:o.piiLoggingEnabled,logLevel:o.logLevel,correlationId:this.correlationId},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:t,libraryInfo:{sku:$r.MSAL_SKU,version:Ys,cpu:w.EMPTY_STRING,os:w.EMPTY_STRING},telemetry:this.config.telemetry}]}})})},e.prototype.validateAndExtractStateFromHash=function(t,i,n){if(this.logger.verbose("validateAndExtractStateFromHash called",n),!t.state)throw R.createHashDoesNotContainStateError();var a=N_.extractBrowserRequestState(this.browserCrypto,t.state);if(!a)throw R.createUnableToParseStateError();if(a.interactionType!==i)throw R.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",n),t.state},e.prototype.getDiscoveredAuthority=function(t,i){var n;return V(this,void 0,void 0,function(){var a,o,s,c;return S(this,function(l){switch(l.label){case 0:return this.logger.verbose("getDiscoveredAuthority called",this.correlationId),a=(n=this.performanceClient)===null||n===void 0?void 0:n.startMeasurement(St.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),o={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},s=t||this.config.auth.authority,c=A0.generateAuthority(s,i||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),[4,V0.createDiscoveredInstance(c,this.config.system.networkClient,this.browserStorage,o,this.logger).then(function(h){return a.endMeasurement({success:!0}),h}).catch(function(h){throw a.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1}),h})];case 1:return[2,l.sent()]}})})},e.prototype.initializeAuthorizationRequest=function(t,i){return V(this,void 0,void 0,function(){var n,a,o,s,c,l,h;return S(this,function(d){switch(d.label){case 0:return this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),n=this.getRedirectUri(t.redirectUri),a={interactionType:i},o=Di.setRequestState(this.browserCrypto,t&&t.state||w.EMPTY_STRING,a),c=[{}],[4,this.initializeBaseRequest(t)];case 1:return s=Y.apply(void 0,[Y.apply(void 0,c.concat([d.sent()])),{redirectUri:n,state:o,nonce:t.nonce||this.browserCrypto.createNewGuid(),responseMode:y0.FRAGMENT}]),l=t.account||this.browserStorage.getActiveAccount(),l&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+l.homeAccountId,this.correlationId),s.account=l),F.isEmpty(s.loginHint)&&!l&&(h=this.browserStorage.getLegacyLoginHint(),h&&(s.loginHint=h)),[2,s]}})})},e}(U_);/*! @azure/msal-browser v2.32.2 2023-01-10 */var o6=function(){function r(e,t,i,n){this.authModule=e,this.browserStorage=t,this.authCodeRequest=i,this.logger=n}return r.prototype.handleCodeResponseFromHash=function(e,t,i,n){return V(this,void 0,void 0,function(){var a,o,s;return S(this,function(c){if(this.logger.verbose("InteractionHandler.handleCodeResponse called"),F.isEmpty(e))throw R.createEmptyHashError(e);if(a=this.browserStorage.generateStateKey(t),o=this.browserStorage.getTemporaryCache(a),!o)throw j.createStateNotFoundError("Cached State");try{s=this.authModule.handleFragmentResponse(e,o)}catch(l){throw l instanceof Aa&&l.subError===L.userCancelledError.code?R.createUserCancelledError():l}return[2,this.handleCodeResponseFromServer(s,t,i,n)]})})},r.prototype.handleCodeResponseFromServer=function(e,t,i,n,a){return a===void 0&&(a=!0),V(this,void 0,void 0,function(){var o,s,c,l,h,d;return S(this,function(u){switch(u.label){case 0:if(this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),o=this.browserStorage.generateStateKey(t),s=this.browserStorage.getTemporaryCache(o),!s)throw j.createStateNotFoundError("Cached State");return c=this.browserStorage.generateNonceKey(s),l=this.browserStorage.getTemporaryCache(c),this.authCodeRequest.code=e.code,e.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(e.cloud_instance_host_name,i,n)]:[3,2];case 1:u.sent(),u.label=2;case 2:return a&&(e.nonce=l||void 0),e.state=s,e.client_info?this.authCodeRequest.clientInfo=e.client_info:(h=this.checkCcsCredentials(),h&&(this.authCodeRequest.ccsCredential=h)),[4,this.authModule.acquireToken(this.authCodeRequest,e)];case 3:return d=u.sent(),this.browserStorage.cleanRequestByState(t),[2,d]}})})},r.prototype.updateTokenEndpointAuthority=function(e,t,i){return V(this,void 0,void 0,function(){var n,a;return S(this,function(o){switch(o.label){case 0:return n="https://"+e+"/"+t.tenant+"/",[4,V0.createDiscoveredInstance(n,i,this.browserStorage,t.options,this.logger)];case 1:return a=o.sent(),this.authModule.updateAuthority(a),[2]}})})},r.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(Ce.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},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var Hm=function(r){Jt(e,r);function e(t,i,n,a,o){var s=r.call(this,t,i,n,a)||this;return s.browserCrypto=o,s}return e.prototype.initiateAuthRequest=function(t,i){return V(this,void 0,void 0,function(){var n,a;return S(this,function(o){switch(o.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),F.isEmpty(t)?[3,7]:(i.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(Ce.ORIGIN_URI,i.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(Ce.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+t),n={apiId:je.acquireTokenRedirect,timeout:i.redirectTimeout,noHistory:!1},typeof i.onRedirectNavigate!="function"?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),a=i.onRedirectNavigate(t),a===!1?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,i.navigationClient.navigateExternal(t,n)])));case 1:return o.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,i.navigationClient.navigateExternal(t,n)];case 5:return o.sent(),[2];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),R.createEmptyNavigationUriError();case 8:return[2]}})})},e.prototype.handleCodeResponseFromHash=function(t,i,n,a){return V(this,void 0,void 0,function(){var o,s,c,l,h,d,u;return S(this,function(v){switch(v.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),F.isEmpty(t))throw R.createEmptyHashError(t);if(this.browserStorage.setInteractionInProgress(!1),o=this.browserStorage.generateStateKey(i),s=this.browserStorage.getTemporaryCache(o),!s)throw j.createStateNotFoundError("Cached State");try{c=this.authModule.handleFragmentResponse(t,s)}catch(m){throw m instanceof Aa&&m.subError===L.userCancelledError.code?R.createUserCancelledError():m}return l=this.browserStorage.generateNonceKey(s),h=this.browserStorage.getTemporaryCache(l),this.authCodeRequest.code=c.code,c.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(c.cloud_instance_host_name,n,a)]:[3,2];case 1:v.sent(),v.label=2;case 2:return c.nonce=h||void 0,c.state=s,c.client_info?this.authCodeRequest.clientInfo=c.client_info:(d=this.checkCcsCredentials(),d&&(this.authCodeRequest.ccsCredential=d)),[4,this.authModule.acquireToken(this.authCodeRequest,c)];case 3:return u=v.sent(),this.browserStorage.cleanRequestByState(i),[2,u]}})})},e}(o6);/*! @azure/msal-browser v2.32.2 2023-01-10 */var ie;(function(r){r.INITIALIZE_START="msal:initializeStart",r.INITIALIZE_END="msal:initializeEnd",r.ACCOUNT_ADDED="msal:accountAdded",r.ACCOUNT_REMOVED="msal:accountRemoved",r.LOGIN_START="msal:loginStart",r.LOGIN_SUCCESS="msal:loginSuccess",r.LOGIN_FAILURE="msal:loginFailure",r.ACQUIRE_TOKEN_START="msal:acquireTokenStart",r.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",r.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",r.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",r.SSO_SILENT_START="msal:ssoSilentStart",r.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",r.SSO_SILENT_FAILURE="msal:ssoSilentFailure",r.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",r.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",r.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",r.HANDLE_REDIRECT_START="msal:handleRedirectStart",r.HANDLE_REDIRECT_END="msal:handleRedirectEnd",r.POPUP_OPENED="msal:popupOpened",r.LOGOUT_START="msal:logoutStart",r.LOGOUT_SUCCESS="msal:logoutSuccess",r.LOGOUT_FAILURE="msal:logoutFailure",r.LOGOUT_END="msal:logoutEnd"})(ie||(ie={}));/*! @azure/msal-browser v2.32.2 2023-01-10 */var an;(function(r){r.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",r.USER_CANCEL="USER_CANCEL",r.NO_NETWORK="NO_NETWORK",r.TRANSIENT_ERROR="TRANSIENT_ERROR",r.PERSISTENT_ERROR="PERSISTENT_ERROR",r.DISABLED="DISABLED",r.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"})(an||(an={}));var rs={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"}},ii=function(r){Jt(e,r);function e(t,i,n){var a=r.call(this,t,i)||this;return Object.setPrototypeOf(a,e.prototype),a.name="NativeAuthError",a.ext=n,a}return e.prototype.isFatal=function(){if(this.ext&&this.ext.status&&(this.ext.status===an.PERSISTENT_ERROR||this.ext.status===an.DISABLED))return!0;switch(this.errorCode){case rs.extensionError.code:return!0;default:return!1}},e.createError=function(t,i,n){if(n&&n.status)switch(n.status){case an.ACCOUNT_UNAVAILABLE:return Tr.createNativeAccountUnavailableError();case an.USER_INTERACTION_REQUIRED:return new Tr(t,i);case an.USER_CANCEL:return R.createUserCancelledError();case an.NO_NETWORK:return R.createNoNetworkConnectivityError()}return new e(t,i,n)},e.createUserSwitchError=function(){return new e(rs.userSwitch.code,rs.userSwitch.desc)},e.createTokensNotFoundInCacheError=function(){return new e(rs.tokensNotFoundInCache.code,rs.tokensNotFoundInCache.desc)},e}(Q);/*! @azure/msal-browser v2.32.2 2023-01-10 */var F_=function(r){Jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.acquireToken=function(t){return V(this,void 0,void 0,function(){var i,n,a,o,s;return S(this,function(c){switch(c.label){case 0:return i=this.performanceClient.startMeasurement(St.SilentCacheClientAcquireToken,t.correlationId),n=this.initializeServerTelemetryManager(je.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(n,t.authority,t.azureCloudOptions)];case 1:a=c.sent(),this.logger.verbose("Silent auth client created"),c.label=2;case 2:return c.trys.push([2,4,,5]),[4,a.acquireCachedToken(t)];case 3:return o=c.sent(),i.endMeasurement({success:!0,fromCache:!0}),[2,o];case 4:throw s=c.sent(),s instanceof R&&s.errorCode===L.signingKeyNotFoundInStorage.code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),i.endMeasurement({errorCode:s instanceof Q&&s.errorCode||void 0,subErrorCode:s instanceof Q&&s.subError||void 0,success:!1}),s;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(R.createSilentLogoutUnsupportedError())},e.prototype.createSilentFlowClient=function(t,i,n){return V(this,void 0,void 0,function(){var a;return S(this,function(o){switch(o.label){case 0:return[4,this.getClientConfiguration(t,i,n)];case 1:return a=o.sent(),[2,new tH(a,this.performanceClient)]}})})},e.prototype.initializeSilentRequest=function(t,i){return V(this,void 0,void 0,function(){var n;return S(this,function(a){switch(a.label){case 0:return n=[Y({},t)],[4,this.initializeBaseRequest(t)];case 1:return[2,Y.apply(void 0,[Y.apply(void 0,n.concat([a.sent()])),{account:i,forceRefresh:t.forceRefresh||!1}])]}})})},e}(Lo);/*! @azure/msal-browser v2.32.2 2023-01-10 */var L2=function(r){Jt(e,r);function e(t,i,n,a,o,s,c,l,h,d,u,v){var m=r.call(this,t,i,n,a,o,s,l,h,v)||this;return m.apiId=c,m.accountId=d,m.nativeMessageHandler=h,m.nativeStorageManager=u,m.silentCacheClient=new F_(t,m.nativeStorageManager,n,a,o,s,l,h,v),m}return e.prototype.acquireToken=function(t){return V(this,void 0,void 0,function(){var i,n,a,o,s,c,l;return S(this,function(h){switch(h.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),i=this.performanceClient.startMeasurement(St.NativeInteractionClientAcquireToken,t.correlationId),n=gr.nowSeconds(),[4,this.initializeNativeRequest(t)];case 1:a=h.sent(),h.label=2;case 2:return h.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,a)];case 3:return o=h.sent(),i.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,o];case 4:return h.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return s={method:Vi.GetToken,request:a},[4,this.nativeMessageHandler.sendMessage(s)];case 6:return c=h.sent(),l=this.validateNativeResponse(c),[2,this.handleNativeResponse(l,a,n).then(function(d){return i.endMeasurement({success:!0,isNativeBroker:!0,requestId:d.requestId}),d}).catch(function(d){throw i.endMeasurement({success:!1,errorCode:d.errorCode,subErrorCode:d.subError,isNativeBroker:!0}),d})]}})})},e.prototype.createSilentCacheRequest=function(t,i){return{authority:t.authority,correlationId:this.correlationId,scopes:g1.fromString(t.scope).asArray(),account:i,forceRefresh:!1}},e.prototype.acquireTokensFromCache=function(t,i){return V(this,void 0,void 0,function(){var n,a,o,s,c;return S(this,function(l){switch(l.label){case 0:if(n=this.browserStorage.readAccountFromCacheWithNativeAccountId(t),!n)throw j.createNoAccountFoundError();a=n.getAccountInfo(),l.label=1;case 1:return l.trys.push([1,3,,4]),o=this.createSilentCacheRequest(i,a),[4,this.silentCacheClient.acquireToken(o)];case 2:return s=l.sent(),[2,s];case 3:throw c=l.sent(),c;case 4:return[2]}})})},e.prototype.acquireTokenRedirect=function(t){return V(this,void 0,void 0,function(){var i,n,a,o,s,c;return S(this,function(l){switch(l.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(t)];case 1:i=l.sent(),n={method:Vi.GetToken,request:i},l.label=2;case 2:return l.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(n)];case 3:return a=l.sent(),this.validateNativeResponse(a),[3,5];case 4:if(o=l.sent(),o instanceof ii&&o.isFatal())throw o;return[3,5];case 5:return this.browserStorage.setTemporaryCache(Ce.NATIVE_REQUEST,JSON.stringify(i),!0),s={apiId:je.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},c=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(t.redirectUri),[4,this.navigationClient.navigateExternal(c,s)];case 6:return l.sent(),[2]}})})},e.prototype.handleRedirectPromise=function(){return V(this,void 0,void 0,function(){var t,i,n,a,o,s,c,l;return S(this,function(h){switch(h.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];i=t.prompt,n=um(t,["prompt"]),i&&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(Ce.NATIVE_REQUEST)),a={method:Vi.GetToken,request:n},o=gr.nowSeconds(),h.label=1;case 1:return h.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(a)];case 2:return s=h.sent(),this.validateNativeResponse(s),c=this.handleNativeResponse(s,n,o),this.browserStorage.setInteractionInProgress(!1),[2,c];case 3:throw l=h.sent(),this.browserStorage.setInteractionInProgress(!1),l;case 4:return[2]}})})},e.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},e.prototype.handleNativeResponse=function(t,i,n){return V(this,void 0,void 0,function(){var a,o,s,c,l,h,d,u,v,m,f,C,_,p,z,M,A,I,N,U,Se=this;return S(this,function(ee){switch(ee.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),a=this.getMATSFromResponse(t),this.performanceClient.addStaticFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:a?a.broker_version:void 0,matsAccountJoinOnStart:a?a.account_join_on_start:void 0,matsAccountJoinOnEnd:a?a.account_join_on_end:void 0,matsDeviceJoin:a?a.device_join:void 0,matsPromptBehavior:a?a.prompt_behavior:void 0,matsApiErrorCode:a?a.api_error_code:void 0,matsUiVisible:a?a.ui_visible:void 0,matsSilentCode:a?a.silent_code:void 0,matsSilentBiSubCode:a?a.silent_bi_sub_code:void 0,matsSilentMessage:a?a.silent_message:void 0,matsSilentStatus:a?a.silent_status:void 0,matsHttpStatus:a?a.http_status:void 0,matsHttpEventCount:a?a.http_event_count:void 0},this.correlationId),t.account.id!==i.accountId)throw ii.createUserSwitchError();return o=new ui(t.id_token||w.EMPTY_STRING,this.browserCrypto),[4,this.getDiscoveredAuthority(i.authority)];case 1:switch(s=ee.sent(),c=s.getPreferredCache(),l=Wt.generateHomeAccountId(t.client_info||w.EMPTY_STRING,ur.Default,this.logger,this.browserCrypto,o),h=Wt.createAccount(t.client_info,l,o,void 0,void 0,void 0,c,t.account.id),this.browserStorage.setAccount(h),d=t.scope?g1.fromString(t.scope):g1.fromString(i.scope),u=t.account.properties||{},v=u.UID||o.claims.oid||o.claims.sub||w.EMPTY_STRING,m=u.TenantId||o.claims.tid||w.EMPTY_STRING,C=Ie.BEARER,_=i.tokenType,_){case Ie.POP:return[3,2]}return[3,4];case 2:if(C=Ie.POP,t.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),f=t.shr,[3,5];if(p=new to(this.browserCrypto),z={resourceRequestMethod:i.resourceRequestMethod,resourceRequestUri:i.resourceRequestUri,shrClaims:i.shrClaims,shrNonce:i.shrNonce},!i.keyId)throw j.createKeyIdMissingError();return[4,p.signPopToken(t.access_token,i.keyId,z)];case 3:return f=ee.sent(),[3,5];case 4:f=t.access_token,ee.label=5;case 5:return M={authority:s.canonicalAuthority,uniqueId:v,tenantId:m,scopes:d.asArray(),account:h.getAccountInfo(),idToken:t.id_token,idTokenClaims:o.claims,accessToken:f,fromCache:a?this.isResponseFromCache(a):!1,expiresOn:new Date(Number(n+t.expires_in)*1e3),tokenType:C,correlationId:this.correlationId,state:t.state,fromNativeBroker:!0},A=kc.createIdTokenEntity(l,i.authority,t.id_token||w.EMPTY_STRING,i.clientId,o.claims.tid||w.EMPTY_STRING),this.nativeStorageManager.setIdTokenCredential(A),I=C===Ie.POP?w.SHR_NONCE_VALIDITY:(typeof t.expires_in=="string"?parseInt(t.expires_in,10):t.expires_in)||0,N=n+I,U=Ec.createAccessTokenEntity(l,i.authority,f,i.clientId,m,d.printScopes(),N,0,this.browserCrypto),this.nativeStorageManager.setAccessTokenCredential(U),this.browserStorage.removeAccountContext(h).catch(function(Xe){Se.logger.error("Error occurred while removing account context from browser storage. "+Xe)}),[2,M]}})})},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 ii.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 V(this,void 0,void 0,function(){var i,n,a,o,s,c,l,h,d,u,v=this;return S(this,function(m){switch(m.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),i=t.authority||this.config.auth.authority,n=new ke(i),n.validateAsUri(),a=t.scopes,o=um(t,["scopes"]),s=new g1(a||[]),s.appendScopes(rl),c=function(){switch(v.apiId){case je.ssoSilent:case je.acquireTokenSilent_silentFlow:return v.logger.trace("initializeNativeRequest: silent request sets prompt to none"),d1.NONE}if(!t.prompt){v.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(t.prompt){case d1.NONE:case d1.CONSENT:case d1.LOGIN:return v.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),t.prompt;default:throw v.logger.trace("initializeNativeRequest: prompt = "+t.prompt+" is not compatible with native flow"),R.createNativePromptParameterNotSupportedError()}},l=Y(Y({},o),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:n.urlString,scope:s.printScopes(),redirectUri:this.getRedirectUri(t.redirectUri),prompt:c(),correlationId:this.correlationId,tokenType:t.authenticationScheme,windowTitleSubstring:document.title,extraParameters:Y(Y(Y({},t.extraQueryParameters),t.tokenQueryParameters),{telemetry:bs.MATS_TELEMETRY}),extendedExpiryToken:!1}),t.authenticationScheme!==Ie.POP?[3,2]:(h={resourceRequestUri:t.resourceRequestUri,resourceRequestMethod:t.resourceRequestMethod,shrClaims:t.shrClaims,shrNonce:t.shrNonce},d=new to(this.browserCrypto),[4,d.generateCnf(h)]);case 1:u=m.sent(),l.reqCnf=u.reqCnfHash,l.keyId=u.kid,m.label=2;case 2:return[2,l]}})})},e}(U_);/*! @azure/msal-browser v2.32.2 2023-01-10 */var ba=function(){function r(e,t,i){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=i,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this)}return r.prototype.sendMessage=function(e){return V(this,void 0,void 0,function(){var t,i=this;return S(this,function(n){return this.logger.trace("NativeMessageHandler - sendMessage called."),t={channel:bs.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(a,o){i.resolvers.set(t.responseId,{resolve:a,reject:o})})]})})},r.createProvider=function(e,t){return V(this,void 0,void 0,function(){var i,n;return S(this,function(a){switch(a.label){case 0:e.trace("NativeMessageHandler - createProvider called."),a.label=1;case 1:return a.trys.push([1,3,,5]),i=new r(e,t,bs.PREFERRED_EXTENSION_ID),[4,i.sendHandshakeRequest()];case 2:return a.sent(),[2,i];case 3:return a.sent(),n=new r(e,t),[4,n.sendHandshakeRequest()];case 4:return a.sent(),[2,n];case 5:return[2]}})})},r.prototype.sendHandshakeRequest=function(){return V(this,void 0,void 0,function(){var e,t=this;return S(this,function(i){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:bs.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:Vi.HandshakeRequest}},this.messageChannel.port1.onmessage=function(n){t.onChannelMessage(n)},window.postMessage(e,window.origin,[this.messageChannel.port2]),[2,new Promise(function(n,a){t.handshakeResolvers.set(e.responseId,{resolve:n,reject:a}),t.timeoutId=window.setTimeout(function(){window.removeEventListener("message",t.windowListener,!1),t.messageChannel.port1.close(),t.messageChannel.port2.close(),a(R.createNativeHandshakeTimeoutError()),t.handshakeResolvers.delete(e.responseId)},t.handshakeTimeoutMs)})]})})},r.prototype.onWindowMessage=function(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source===window){var t=e.data;if(!(!t.channel||t.channel!==bs.CHANNEL_ID)&&!(t.extensionId&&t.extensionId!==this.extensionId)&&t.body.method===Vi.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 i=this.handshakeResolvers.get(t.responseId);i&&i.reject(R.createNativeExtensionNotInstalledError())}}},r.prototype.onChannelMessage=function(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var t=e.data,i=this.resolvers.get(t.responseId),n=this.handshakeResolvers.get(t.responseId);try{var a=t.body.method;if(a===Vi.Response){if(!i)return;var o=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(o)),o.status!=="Success")i.reject(ii.createError(o.code,o.description,o.ext));else if(o.result)o.result.code&&o.result.description?i.reject(ii.createError(o.result.code,o.result.description,o.result.ext)):i.resolve(o.result);else throw Q.createUnexpectedError("Event does not contain result.");this.resolvers.delete(t.responseId)}else if(a===Vi.HandshakeResponse){if(!n)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),n.resolve(),this.handshakeResolvers.delete(t.responseId)}}catch(s){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+s.toString()),this.logger.errorPii("Unable to parse "+e),i?i.reject(s):n&&n.reject(s)}},r.prototype.getExtensionId=function(){return this.extensionId},r.prototype.getExtensionVersion=function(){return this.extensionVersion},r.isNativeAvailable=function(e,t,i,n){if(t.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return t.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!i)return t.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(n)switch(n){case Ie.BEARER:case Ie.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},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var fH=function(r){Jt(e,r);function e(t,i,n,a,o,s,c,l,h,d){var u=r.call(this,t,i,n,a,o,s,c,h,d)||this;return u.nativeStorage=l,u}return e.prototype.acquireToken=function(t){return V(this,void 0,void 0,function(){var i,n,a,o,s,c,l,h,d,u=this;return S(this,function(v){switch(v.label){case 0:return[4,this.initializeAuthorizationRequest(t,W.Redirect)];case 1:i=v.sent(),this.browserStorage.updateCacheEntries(i.state,i.nonce,i.authority,i.loginHint||w.EMPTY_STRING,i.account||null),n=this.initializeServerTelemetryManager(je.acquireTokenRedirect),a=function(m){m.persisted&&(u.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),u.browserStorage.cleanRequestByState(i.state))},v.label=2;case 2:return v.trys.push([2,7,,8]),[4,this.initializeAuthorizationCodeRequest(i)];case 3:return o=v.sent(),[4,this.createAuthCodeClient(n,i.authority,i.azureCloudOptions)];case 4:return s=v.sent(),this.logger.verbose("Auth code client created"),c=new Hm(s,this.browserStorage,o,this.logger,this.browserCrypto),[4,s.getAuthCodeUrl(Y(Y({},i),{nativeBroker:ba.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}))];case 5:return l=v.sent(),h=this.getRedirectStartPage(t.redirectStartPage),this.logger.verbosePii("Redirect start page: "+h),window.addEventListener("pageshow",a),[4,c.initiateAuthRequest(l,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:h,onRedirectNavigate:t.onRedirectNavigate})];case 6:return[2,v.sent()];case 7:throw d=v.sent(),d instanceof Q&&d.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",a),n.cacheFailedRequest(d),this.browserStorage.cleanRequestByState(i.state),d;case 8:return[2]}})})},e.prototype.handleRedirectPromise=function(t){return V(this,void 0,void 0,function(){var i,n,a,o,s,c,l,h,d,u,v,m;return S(this,function(f){switch(f.label){case 0:i=this.initializeServerTelemetryManager(je.handleRedirectPromise),f.label=1;case 1:if(f.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(n=this.getRedirectResponseHash(t||window.location.hash),!n)return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(W.Redirect),[2,null];a=void 0;try{o=ke.getDeserializedHash(n),a=this.validateAndExtractStateFromHash(o,W.Redirect),this.logger.verbose("State extracted from hash")}catch(C){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+C),this.browserStorage.cleanRequestByInteractionType(W.Redirect),[2,null]}return s=this.browserStorage.getTemporaryCache(Ce.ORIGIN_URI,!0)||w.EMPTY_STRING,c=ke.removeHashFromUrl(s),l=ke.removeHashFromUrl(window.location.href),c===l&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(n,a,i)]):[3,3];case 2:return h=f.sent(),s.indexOf("#")>-1&<.replaceHash(s),[2,h];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(n,a,i)]);case 4:return!lt.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(Ce.URL_HASH,n,!0),d={apiId:je.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},u=!0,!s||s==="null"?(v=lt.getHomepage(),this.browserStorage.setTemporaryCache(Ce.ORIGIN_URI,v,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(v,d)]):[3,6]):[3,9];case 5:return u=f.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+s),[4,this.navigationClient.navigateInternal(s,d)];case 7:u=f.sent(),f.label=8;case 8:if(!u)return[2,this.handleHash(n,a,i)];f.label=9;case 9:return[2,null];case 10:throw m=f.sent(),m instanceof Q&&m.setCorrelationId(this.correlationId),i.cacheFailedRequest(m),this.browserStorage.cleanRequestByInteractionType(W.Redirect),m;case 11:return[2]}})})},e.prototype.getRedirectResponseHash=function(t){this.logger.verbose("getRedirectResponseHash called");var i=ke.hashContainsKnownProperties(t);if(i)return lt.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),t;var n=this.browserStorage.getTemporaryCache(Ce.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Ce.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),n},e.prototype.handleHash=function(t,i,n){return V(this,void 0,void 0,function(){var a,o,s,c,l,h,d,u=this;return S(this,function(v){switch(v.label){case 0:if(a=this.browserStorage.getCachedRequest(i,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),o=ke.getDeserializedHash(t),o.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw R.createNativeConnectionNotEstablishedError();return s=new L2(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,je.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,o.accountId,this.browserStorage,a.correlationId),c=Di.parseRequestState(this.browserCrypto,i).userRequestState,[2,s.acquireToken(Y(Y({},a),{state:c,prompt:void 0})).finally(function(){u.browserStorage.cleanRequestByState(i)})]}if(l=this.browserStorage.getCachedAuthority(i),!l)throw R.createNoCachedAuthorityError();return[4,this.createAuthCodeClient(n,l)];case 1:return h=v.sent(),this.logger.verbose("Auth code client created"),H0.removeThrottle(this.browserStorage,this.config.auth.clientId,a),d=new Hm(h,this.browserStorage,a,this.logger,this.browserCrypto),[4,d.handleCodeResponseFromHash(t,i,h.authority,this.networkClient)];case 2:return[2,v.sent()]}})})},e.prototype.logout=function(t){return V(this,void 0,void 0,function(){var i,n,a,o,s,c,l;return S(this,function(h){switch(h.label){case 0:this.logger.verbose("logoutRedirect called"),i=this.initializeLogoutRequest(t),n=this.initializeServerTelemetryManager(je.logout),h.label=1;case 1:return h.trys.push([1,10,,11]),this.eventHandler.emitEvent(ie.LOGOUT_START,W.Redirect,t),[4,this.clearCacheOnLogout(i.account)];case 2:return h.sent(),a={apiId:je.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},[4,this.createAuthCodeClient(n,t&&t.authority)];case 3:return o=h.sent(),this.logger.verbose("Auth code client created"),s=o.getLogoutUri(i),this.eventHandler.emitEvent(ie.LOGOUT_SUCCESS,W.Redirect,i),t&&typeof t.onRedirectNavigate=="function"?(c=t.onRedirectNavigate(s),c===!1?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(s,a)])):[3,7];case 4:return h.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),h.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(s,a)];case 8:return h.sent(),[2];case 9:return[3,11];case 10:throw l=h.sent(),l instanceof Q&&l.setCorrelationId(this.correlationId),n.cacheFailedRequest(l),this.eventHandler.emitEvent(ie.LOGOUT_FAILURE,W.Redirect,null,l),this.eventHandler.emitEvent(ie.LOGOUT_END,W.Redirect),l;case 11:return this.eventHandler.emitEvent(ie.LOGOUT_END,W.Redirect),[2]}})})},e.prototype.getRedirectStartPage=function(t){var i=t||window.location.href;return ke.getAbsoluteUrl(i,lt.getCurrentUri())},e}(Lo);/*! @azure/msal-browser v2.32.2 2023-01-10 */var pH=function(r){Jt(e,r);function e(t,i,n,a,o,s,c,l,h,d){var u=r.call(this,t,i,n,a,o,s,c,h,d)||this;return u.unloadWindow=u.unloadWindow.bind(u),u.nativeStorage=l,u}return e.prototype.acquireToken=function(t){try{var i=this.generatePopupName(t.scopes||rl,t.authority||this.config.auth.authority),n=t.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(t,i,n);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var a=this.openSizedPopup("about:blank",i,n);return this.acquireTokenPopupAsync(t,i,n,a)}catch(o){return Promise.reject(o)}},e.prototype.logout=function(t){try{this.logger.verbose("logoutPopup called");var i=this.initializeLogoutRequest(t),n=this.generateLogoutPopupName(i),a=t&&t.authority,o=t&&t.mainWindowRedirectUri,s=(t==null?void 0:t.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(i,n,s,a,void 0,o);this.logger.verbose("asyncPopup set to false, opening popup");var c=this.openSizedPopup("about:blank",n,s);return this.logoutPopupAsync(i,n,s,a,c,o)}catch(l){return Promise.reject(l)}},e.prototype.acquireTokenPopupAsync=function(t,i,n,a){return V(this,void 0,void 0,function(){var o,s,c,l,h,d,u,v,m,f,C,_,p,z,M,A,I,N=this;return S(this,function(U){switch(U.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),o=this.initializeServerTelemetryManager(je.acquireTokenPopup),[4,this.initializeAuthorizationRequest(t,W.Popup)];case 1:s=U.sent(),this.browserStorage.updateCacheEntries(s.state,s.nonce,s.authority,s.loginHint||w.EMPTY_STRING,s.account||null),U.label=2;case 2:return U.trys.push([2,8,,9]),[4,this.initializeAuthorizationCodeRequest(s)];case 3:return c=U.sent(),[4,this.createAuthCodeClient(o,s.authority,s.azureCloudOptions)];case 4:return l=U.sent(),this.logger.verbose("Auth code client created"),h=ba.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme),d=void 0,h&&(d=this.performanceClient.startMeasurement(St.FetchAccountIdWithNativeBroker,t.correlationId)),[4,l.getAuthCodeUrl(Y(Y({},s),{nativeBroker:h}))];case 5:return u=U.sent(),v=new o6(l,this.browserStorage,c,this.logger),m={popup:a,popupName:i,popupWindowAttributes:n},f=this.initiateAuthRequest(u,m),this.eventHandler.emitEvent(ie.POPUP_OPENED,W.Popup,{popupWindow:f},null),[4,this.monitorPopupForHash(f)];case 6:if(C=U.sent(),_=ke.getDeserializedHash(C),p=this.validateAndExtractStateFromHash(_,W.Popup,s.correlationId),H0.removeThrottle(this.browserStorage,this.config.auth.clientId,c),_.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),d&&d.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw R.createNativeConnectionNotEstablishedError();return z=new L2(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,je.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,_.accountId,this.nativeStorage,s.correlationId),M=Di.parseRequestState(this.browserCrypto,p).userRequestState,[2,z.acquireToken(Y(Y({},s),{state:M,prompt:void 0})).finally(function(){N.browserStorage.cleanRequestByState(p)})]}return[4,v.handleCodeResponseFromHash(C,p,l.authority,this.networkClient)];case 7:return A=U.sent(),[2,A];case 8:throw I=U.sent(),a&&a.close(),I instanceof Q&&I.setCorrelationId(this.correlationId),o.cacheFailedRequest(I),this.browserStorage.cleanRequestByState(s.state),I;case 9:return[2]}})})},e.prototype.logoutPopupAsync=function(t,i,n,a,o,s){return V(this,void 0,void 0,function(){var c,l,h,d,u,v,m;return S(this,function(f){switch(f.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(ie.LOGOUT_START,W.Popup,t),c=this.initializeServerTelemetryManager(je.logoutPopup),f.label=1;case 1:return f.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(t.account)];case 2:return f.sent(),[4,this.createAuthCodeClient(c,a)];case 3:return l=f.sent(),this.logger.verbose("Auth code client created"),h=l.getLogoutUri(t),this.eventHandler.emitEvent(ie.LOGOUT_SUCCESS,W.Popup,t),d=this.openPopup(h,{popupName:i,popupWindowAttributes:n,popup:o}),this.eventHandler.emitEvent(ie.POPUP_OPENED,W.Popup,{popupWindow:d},null),[4,this.waitForLogoutPopup(d)];case 4:return f.sent(),s?(u={apiId:je.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},v=ke.getAbsoluteUrl(s,lt.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+v),this.navigationClient.navigateInternal(v,u)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw m=f.sent(),o&&o.close(),m instanceof Q&&m.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(ie.LOGOUT_FAILURE,W.Popup,null,m),this.eventHandler.emitEvent(ie.LOGOUT_END,W.Popup),c.cacheFailedRequest(m),m;case 6:return this.eventHandler.emitEvent(ie.LOGOUT_END,W.Popup),[2]}})})},e.prototype.initiateAuthRequest=function(t,i){if(F.isEmpty(t))throw this.logger.error("Navigate url is empty"),R.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+t),this.openPopup(t,i)},e.prototype.monitorPopupForHash=function(t){var i=this;return new Promise(function(n,a){var o=i.config.system.windowHashTimeout/i.config.system.pollIntervalMilliseconds,s=0;i.logger.verbose("PopupHandler.monitorPopupForHash - polling started");var c=setInterval(function(){if(t.closed){i.logger.error("PopupHandler.monitorPopupForHash - window closed"),i.cleanPopup(),clearInterval(c),a(R.createUserCancelledError());return}var l=w.EMPTY_STRING,h=w.EMPTY_STRING;try{l=t.location.href,h=t.location.hash}catch{}F.isEmpty(l)||l==="about:blank"||(i.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),s++,h?(i.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(c),i.cleanPopup(t),ke.hashContainsKnownProperties(h)?(i.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),n(h)):(i.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."),i.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: "+h),a(R.createHashDoesNotContainKnownPropertiesError()))):s>o&&(i.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(c),a(R.createMonitorPopupTimeoutError())))},i.config.system.pollIntervalMilliseconds)})},e.prototype.waitForLogoutPopup=function(t){var i=this;return new Promise(function(n){i.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var a=setInterval(function(){t.closed&&(i.logger.error("PopupHandler.waitForLogoutPopup - window closed"),i.cleanPopup(),clearInterval(a),n());var o=w.EMPTY_STRING;try{o=t.location.href}catch{}F.isEmpty(o)||o==="about:blank"||(i.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(a),i.cleanPopup(t),n())},i.config.system.pollIntervalMilliseconds)})},e.prototype.openPopup=function(t,i){try{var n=void 0;if(i.popup?(n=i.popup,this.logger.verbosePii("Navigating popup window to: "+t),n.location.assign(t)):typeof i.popup>"u"&&(this.logger.verbosePii("Opening popup window to: "+t),n=this.openSizedPopup(t,i.popupName,i.popupWindowAttributes)),!n)throw R.createEmptyWindowCreatedError();return n.focus&&n.focus(),this.currentWindow=n,window.addEventListener("beforeunload",this.unloadWindow),n}catch(a){throw this.logger.error("error opening popup "+a.message),this.browserStorage.setInteractionInProgress(!1),R.createPopupWindowError(a.toString())}},e.prototype.openSizedPopup=function(t,i,n){var a,o,s,c,l=window.screenLeft?window.screenLeft:window.screenX,h=window.screenTop?window.screenTop:window.screenY,d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,u=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,v=(a=n.popupSize)===null||a===void 0?void 0:a.width,m=(o=n.popupSize)===null||o===void 0?void 0:o.height,f=(s=n.popupPosition)===null||s===void 0?void 0:s.top,C=(c=n.popupPosition)===null||c===void 0?void 0:c.left;return(!v||v<0||v>d)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),v=$r.POPUP_WIDTH),(!m||m<0||m>u)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),m=$r.POPUP_HEIGHT),(!f||f<0||f>u)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),f=Math.max(0,u/2-$r.POPUP_HEIGHT/2+h)),(!C||C<0||C>d)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),C=Math.max(0,d/2-$r.POPUP_WIDTH/2+l)),window.open(t,i,"width="+v+", height="+m+", top="+f+", left="+C+", scrollbars=yes")},e.prototype.unloadWindow=function(t){this.browserStorage.cleanRequestByInteractionType(W.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,i){return $r.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+t.join("-")+"."+i+"."+this.correlationId},e.prototype.generateLogoutPopupName=function(t){var i=t.account&&t.account.homeAccountId;return $r.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+i+"."+this.correlationId},e}(Lo);/*! @azure/msal-browser v2.32.2 2023-01-10 */var gH=function(){function r(){}return r.prototype.navigateInternal=function(e,t){return r.defaultNavigateWindow(e,t)},r.prototype.navigateExternal=function(e,t){return r.defaultNavigateWindow(e,t)},r.defaultNavigateWindow=function(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise(function(i){setTimeout(function(){i(!0)},t.timeout)})},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var _H=6e4,J3=6e3,zH=3e4,yH=2e3;function wH(r,e){var t=r.auth,i=r.cache,n=r.system,a=r.telemetry,o={clientId:w.EMPTY_STRING,authority:""+w.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:w.EMPTY_STRING,authorityMetadata:w.EMPTY_STRING,redirectUri:w.EMPTY_STRING,postLogoutRedirectUri:w.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:P0.AAD,azureCloudOptions:{azureCloudInstance:Cc.None,tenant:w.EMPTY_STRING},skipAuthorityMetadataCache:!1},s={cacheLocation:c1.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1},c={loggerCallback:function(){},logLevel:ot.Info,piiLoggingEnabled:!1},l=Y(Y({},L_),{loggerOptions:c,networkClient:e?lt.getBrowserNetworkClient():oH,navigationClient:new gH,loadFrameTimeout:0,windowHashTimeout:(n==null?void 0:n.loadFrameTimeout)||_H,iframeHashTimeout:(n==null?void 0:n.loadFrameTimeout)||J3,navigateFrameWait:e&<.detectIEOrEdge()?500:0,redirectNavigationTimeout:zH,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(n==null?void 0:n.nativeBrokerHandshakeTimeout)||yH,pollIntervalMilliseconds:$r.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),h=Y(Y({},n),{loggerOptions:(n==null?void 0:n.loggerOptions)||c}),d={application:{appName:w.EMPTY_STRING,appVersion:w.EMPTY_STRING}},u={auth:Y(Y({},o),t),cache:Y(Y({},s),i),system:Y(Y({},l),h),telemetry:Y(Y({},d),a)};return u}/*! @azure/msal-browser v2.32.2 2023-01-10 */var B_=function(r){Jt(e,r);function e(t,i,n,a,o){var s=r.call(this,t,i,n,a)||this;return s.navigateFrameWait=o.navigateFrameWait,s.pollIntervalMilliseconds=o.pollIntervalMilliseconds,s}return e.prototype.initiateAuthRequest=function(t){return V(this,void 0,void 0,function(){var i;return S(this,function(n){switch(n.label){case 0:if(F.isEmpty(t))throw this.logger.info("Navigate url is empty"),R.createEmptyNavigationUriError();return this.navigateFrameWait?[4,this.loadFrame(t)]:[3,2];case 1:return i=n.sent(),[3,3];case 2:i=this.loadFrameSync(t),n.label=3;case 3:return[2,i]}})})},e.prototype.monitorIframeForHash=function(t,i){var n=this;return new Promise(function(a,o){i<J3&&n.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+i+"ms) than the default ("+J3+"ms). This may result in timeouts.");var s=window.performance.now(),c=s+i,l=setInterval(function(){if(window.performance.now()>c){n.removeHiddenIframe(t),clearInterval(l),o(R.createMonitorIframeTimeoutError());return}var h=w.EMPTY_STRING,d=t.contentWindow;try{h=d?d.location.href:w.EMPTY_STRING}catch{}if(!F.isEmpty(h)){var u=d?d.location.hash:w.EMPTY_STRING;if(ke.hashContainsKnownProperties(u)){n.removeHiddenIframe(t),clearInterval(l),a(u);return}}},n.pollIntervalMilliseconds)})},e.prototype.loadFrame=function(t){var i=this;return new Promise(function(n,a){var o=i.createHiddenIframe();setTimeout(function(){if(!o){a("Unable to load iframe");return}o.src=t,n(o)},i.navigateFrameWait)})},e.prototype.loadFrameSync=function(t){var i=this.createHiddenIframe();return i.src=t,i},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}(o6);/*! @azure/msal-browser v2.32.2 2023-01-10 */var bH=function(r){Jt(e,r);function e(t,i,n,a,o,s,c,l,h,d,u){var v=r.call(this,t,i,n,a,o,s,l,d,u)||this;return v.apiId=c,v.nativeStorage=h,v}return e.prototype.acquireToken=function(t){return V(this,void 0,void 0,function(){var i,n,a,o,s;return S(this,function(c){switch(c.label){case 0:if(this.logger.verbose("acquireTokenByIframe called"),i=this.performanceClient.startMeasurement(St.SilentIframeClientAcquireToken,t.correlationId),F.isEmpty(t.loginHint)&&F.isEmpty(t.sid)&&(!t.account||F.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!==d1.NONE&&t.prompt!==d1.NO_SESSION)throw i.endMeasurement({success:!1}),R.createSilentPromptValueError(t.prompt);return[4,this.initializeAuthorizationRequest(Y(Y({},t),{prompt:t.prompt||d1.NONE}),W.Silent)];case 1:n=c.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||w.EMPTY_STRING,n.account||null),a=this.initializeServerTelemetryManager(this.apiId),c.label=2;case 2:return c.trys.push([2,5,,6]),[4,this.createAuthCodeClient(a,n.authority,n.azureCloudOptions)];case 3:return o=c.sent(),this.logger.verbose("Auth code client created"),[4,this.silentTokenHelper(o,n).then(function(l){return i.endMeasurement({success:!0,fromCache:!1,requestId:l.requestId}),l})];case 4:return[2,c.sent()];case 5:throw s=c.sent(),s instanceof Q&&s.setCorrelationId(this.correlationId),a.cacheFailedRequest(s),this.browserStorage.cleanRequestByState(n.state),i.endMeasurement({errorCode:s instanceof Q&&s.errorCode||void 0,subErrorCode:s instanceof Q&&s.subError||void 0,success:!1}),s;case 6:return[2]}})})},e.prototype.logout=function(){return Promise.reject(R.createSilentLogoutUnsupportedError())},e.prototype.silentTokenHelper=function(t,i){return V(this,void 0,void 0,function(){var n,a,o,s,c,l,h,d,u,v=this;return S(this,function(m){switch(m.label){case 0:return[4,this.initializeAuthorizationCodeRequest(i)];case 1:return n=m.sent(),[4,t.getAuthCodeUrl(Y(Y({},i),{nativeBroker:ba.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,i.authenticationScheme)}))];case 2:return a=m.sent(),o=new B_(t,this.browserStorage,n,this.logger,this.config.system),[4,o.initiateAuthRequest(a)];case 3:return s=m.sent(),[4,o.monitorIframeForHash(s,this.config.system.iframeHashTimeout)];case 4:if(c=m.sent(),l=ke.getDeserializedHash(c),h=this.validateAndExtractStateFromHash(l,W.Silent,n.correlationId),l.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw R.createNativeConnectionNotEstablishedError();return d=new L2(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,l.accountId,this.browserStorage,this.correlationId),u=Di.parseRequestState(this.browserCrypto,h).userRequestState,[2,d.acquireToken(Y(Y({},i),{state:u,prompt:i.prompt||d1.NONE})).finally(function(){v.browserStorage.cleanRequestByState(h)})]}return[2,o.handleCodeResponseFromHash(c,h,t.authority,this.networkClient)]}})})},e}(Lo);/*! @azure/msal-browser v2.32.2 2023-01-10 */var xH=function(r){Jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.acquireToken=function(t){return V(this,void 0,void 0,function(){var i,n,a,o,s,c=this;return S(this,function(l){switch(l.label){case 0:return n=[Y({},t)],[4,this.initializeBaseRequest(t)];case 1:return i=Y.apply(void 0,n.concat([l.sent()])),a=this.performanceClient.startMeasurement(St.SilentRefreshClientAcquireToken,i.correlationId),o=this.initializeServerTelemetryManager(je.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(o,i.authority,i.azureCloudOptions)];case 2:return s=l.sent(),this.logger.verbose("Refresh token client created"),[2,s.acquireTokenByRefreshToken(i).then(function(h){return a.endMeasurement({success:!0,fromCache:h.fromCache,requestId:h.requestId}),h}).catch(function(h){throw h instanceof Q&&h.setCorrelationId(c.correlationId),o.cacheFailedRequest(h),a.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1}),h})]}})})},e.prototype.logout=function(){return Promise.reject(R.createSilentLogoutUnsupportedError())},e.prototype.createRefreshTokenClient=function(t,i,n){return V(this,void 0,void 0,function(){var a;return S(this,function(o){switch(o.label){case 0:return[4,this.getClientConfiguration(t,i,n)];case 1:return a=o.sent(),[2,new I_(a,this.performanceClient)]}})})},e}(Lo);/*! @azure/msal-browser v2.32.2 2023-01-10 */var MH=function(){function r(e,t){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=t,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return r.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},r.prototype.removeEventCallback=function(e){this.eventCallbacks.delete(e),this.logger.verbose("Event callback "+e+" removed.")},r.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)))},r.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."))},r.prototype.emitEvent=function(e,t,i,n){var a=this;if(typeof window<"u"){var o={eventType:e,interactionType:t||null,payload:i||null,error:n||null,timestamp:Date.now()};this.logger.info("Emitting event: "+e),this.eventCallbacks.forEach(function(s,c){a.logger.verbose("Emitting event to callback "+c+": "+e),s.apply(null,[o])})}},r.prototype.handleAccountCacheChange=function(e){try{var t=e.newValue||e.oldValue;if(!t)return;var i=JSON.parse(t);if(typeof i!="object"||!Wt.isAccountEntity(i))return;var n=Pr.toObject(new Wt,i),a=n.getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(ie.ACCOUNT_ADDED,void 0,a)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(ie.ACCOUNT_REMOVED,void 0,a))}catch{return}},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var a1=function(){function r(){}return r.decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var j_=function(){function r(e){this.cryptoObj=e}return r.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,a1.decimalToHex(e[0])+a1.decimalToHex(e[1])+a1.decimalToHex(e[2])+a1.decimalToHex(e[3])+"-"+a1.decimalToHex(e[4])+a1.decimalToHex(e[5])+"-"+a1.decimalToHex(e[6])+a1.decimalToHex(e[7])+"-"+a1.decimalToHex(e[8])+a1.decimalToHex(e[9])+"-"+a1.decimalToHex(e[10])+a1.decimalToHex(e[11])+a1.decimalToHex(e[12])+a1.decimalToHex(e[13])+a1.decimalToHex(e[14])+a1.decimalToHex(e[15])}catch{for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",i="0123456789abcdef",n=0,a=w.EMPTY_STRING,o=0;o<36;o++)t[o]!=="-"&&t[o]!=="4"&&(n=Math.random()*16|0),t[o]==="x"?a+=i[n]:t[o]==="y"?(n&=3,n|=8,a+=i[n]):a+=t[o];return a}},r.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)},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var Li=function(){function r(){}return r.stringToUtf8Arr=function(e){for(var t,i=0,n=e.length,a=0;a<n;a++)t=e.charCodeAt(a),i+=t<128?1:t<2048?2:t<65536?3:t<2097152?4:t<67108864?5:6;for(var o=new Uint8Array(i),s=0,c=0;s<i;c++)t=e.charCodeAt(c),t<128?o[s++]=t:t<2048?(o[s++]=192+(t>>>6),o[s++]=128+(t&63)):t<65536?(o[s++]=224+(t>>>12),o[s++]=128+(t>>>6&63),o[s++]=128+(t&63)):t<2097152?(o[s++]=240+(t>>>18),o[s++]=128+(t>>>12&63),o[s++]=128+(t>>>6&63),o[s++]=128+(t&63)):t<67108864?(o[s++]=248+(t>>>24),o[s++]=128+(t>>>18&63),o[s++]=128+(t>>>12&63),o[s++]=128+(t>>>6&63),o[s++]=128+(t&63)):(o[s++]=252+(t>>>30),o[s++]=128+(t>>>24&63),o[s++]=128+(t>>>18&63),o[s++]=128+(t>>>12&63),o[s++]=128+(t>>>6&63),o[s++]=128+(t&63));return o},r.stringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),i=new Uint8Array(t),n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return t},r.utf8ArrToString=function(e){for(var t=w.EMPTY_STRING,i=void 0,n=e.length,a=0;a<n;a++)i=e[a],t+=String.fromCharCode(i>251&&i<254&&a+5<n?(i-252)*1073741824+(e[++a]-128<<24)+(e[++a]-128<<18)+(e[++a]-128<<12)+(e[++a]-128<<6)+e[++a]-128:i>247&&i<252&&a+4<n?(i-248<<24)+(e[++a]-128<<18)+(e[++a]-128<<12)+(e[++a]-128<<6)+e[++a]-128:i>239&&i<248&&a+3<n?(i-240<<18)+(e[++a]-128<<12)+(e[++a]-128<<6)+e[++a]-128:i>223&&i<240&&a+2<n?(i-224<<12)+(e[++a]-128<<6)+e[++a]-128:i>191&&i<224&&a+1<n?(i-192<<6)+e[++a]-128:i);return t},r.getSortedObjectString=function(e){return JSON.stringify(e,Object.keys(e).sort())},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var q_=function(){function r(){}return r.prototype.urlEncode=function(e){return encodeURIComponent(this.encode(e).replace(/=/g,w.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},r.prototype.urlEncodeArr=function(e){return this.base64EncArr(e).replace(/=/g,w.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},r.prototype.encode=function(e){var t=Li.stringToUtf8Arr(e);return this.base64EncArr(t)},r.prototype.base64EncArr=function(e){for(var t=(3-e.length%3)%3,i=w.EMPTY_STRING,n=void 0,a=e.length,o=0,s=0;s<a;s++)n=s%3,o|=e[s]<<(16>>>n&24),(n===2||e.length-s===1)&&(i+=String.fromCharCode(this.uint6ToB64(o>>>18&63),this.uint6ToB64(o>>>12&63),this.uint6ToB64(o>>>6&63),this.uint6ToB64(o&63)),o=0);return t===0?i:i.substring(0,i.length-t)+(t===1?"=":"==")},r.prototype.uint6ToB64=function(e){return e<26?e+65:e<52?e+71:e<62?e-4:e===62?43:e===63?47:65},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var CH=function(){function r(){}return r.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 i=this.base64DecToArr(t);return Li.utf8ArrToString(i)},r.prototype.base64DecToArr=function(e,t){for(var i=e.replace(/[^A-Za-z0-9\+\/]/g,w.EMPTY_STRING),n=i.length,a=t?Math.ceil((n*3+1>>>2)/t)*t:n*3+1>>>2,o=new Uint8Array(a),s=void 0,c=void 0,l=0,h=0,d=0;d<n;d++)if(c=d&3,l|=this.b64ToUint6(i.charCodeAt(d))<<18-6*c,c===3||n-d===1){for(s=0;s<3&&h<a;s++,h++)o[h]=l>>>(16>>>s&24)&255;l=0}return o},r.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},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var HH=32,kH=function(){function r(e){this.base64Encode=new q_,this.cryptoObj=e}return r.prototype.generateCodes=function(){return V(this,void 0,void 0,function(){var e,t;return S(this,function(i){switch(i.label){case 0:return e=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(e)];case 1:return t=i.sent(),[2,{verifier:e,challenge:t}]}})})},r.prototype.generateCodeVerifier=function(){try{var e=new Uint8Array(HH);this.cryptoObj.getRandomValues(e);var t=this.base64Encode.urlEncodeArr(e);return t}catch(i){throw R.createPkceNotGeneratedError(i)}},r.prototype.generateCodeChallengeFromVerifier=function(e){return V(this,void 0,void 0,function(){var t,i;return S(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(e)];case 1:return t=n.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(t))];case 2:throw i=n.sent(),R.createPkceNotGeneratedError(i);case 3:return[2]}})})},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var EH=function(){function r(){}return r.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},r.prototype.generateKey=function(e,t,i){return V(this,void 0,void 0,function(){return S(this,function(n){return[2,window.crypto.subtle.generateKey(e,t,i)]})})},r.prototype.exportKey=function(e){return V(this,void 0,void 0,function(){return S(this,function(t){return[2,window.crypto.subtle.exportKey(ro,e)]})})},r.prototype.importKey=function(e,t,i,n){return V(this,void 0,void 0,function(){return S(this,function(a){return[2,window.crypto.subtle.importKey(ro,e,t,i,n)]})})},r.prototype.sign=function(e,t,i){return V(this,void 0,void 0,function(){return S(this,function(n){return[2,window.crypto.subtle.sign(e,t,i)]})})},r.prototype.digest=function(e,t){return V(this,void 0,void 0,function(){return S(this,function(i){return[2,window.crypto.subtle.digest(e,t)]})})},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var PH=function(){function r(){}return r.prototype.initPrng=function(e){return window.msrCrypto.initPrng(i6(e))},r.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},r.prototype.generateKey=function(e,t,i){return V(this,void 0,void 0,function(){return S(this,function(n){return[2,window.msrCrypto.subtle.generateKey(e,t,i)]})})},r.prototype.exportKey=function(e){return V(this,void 0,void 0,function(){return S(this,function(t){return[2,window.msrCrypto.subtle.exportKey(ro,e)]})})},r.prototype.importKey=function(e,t,i,n){return V(this,void 0,void 0,function(){return S(this,function(a){return[2,window.msrCrypto.subtle.importKey(ro,e,t,i,n)]})})},r.prototype.sign=function(e,t,i){return V(this,void 0,void 0,function(){return S(this,function(n){return[2,window.msrCrypto.subtle.sign(e,t,i)]})})},r.prototype.digest=function(e,t){return V(this,void 0,void 0,function(){return S(this,function(i){return[2,window.msrCrypto.subtle.digest(e,t)]})})},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var AH=function(){function r(){}return r.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},r.prototype.generateKey=function(e,t,i){return V(this,void 0,void 0,function(){return S(this,function(n){return[2,new Promise(function(a,o){var s=window.msCrypto.subtle.generateKey(e,t,i);s.addEventListener("complete",function(c){a(c.target.result)}),s.addEventListener("error",function(c){o(c)})})]})})},r.prototype.exportKey=function(e){return V(this,void 0,void 0,function(){return S(this,function(t){return[2,new Promise(function(i,n){var a=window.msCrypto.subtle.exportKey(ro,e);a.addEventListener("complete",function(o){var s=o.target.result,c=Li.utf8ArrToString(new Uint8Array(s)).replace(/\r/g,w.EMPTY_STRING).replace(/\n/g,w.EMPTY_STRING).replace(/\t/g,w.EMPTY_STRING).split(" ").join(w.EMPTY_STRING).replace("\0",w.EMPTY_STRING);try{i(JSON.parse(c))}catch(l){n(l)}}),a.addEventListener("error",function(o){n(o)})})]})})},r.prototype.importKey=function(e,t,i,n){return V(this,void 0,void 0,function(){var a,o;return S(this,function(s){return a=Li.getSortedObjectString(e),o=Li.stringToArrayBuffer(a),[2,new Promise(function(c,l){var h=window.msCrypto.subtle.importKey(ro,o,t,i,n);h.addEventListener("complete",function(d){c(d.target.result)}),h.addEventListener("error",function(d){l(d)})})]})})},r.prototype.sign=function(e,t,i){return V(this,void 0,void 0,function(){return S(this,function(n){return[2,new Promise(function(a,o){var s=window.msCrypto.subtle.sign(e,t,i);s.addEventListener("complete",function(c){a(c.target.result)}),s.addEventListener("error",function(c){o(c)})})]})})},r.prototype.digest=function(e,t){return V(this,void 0,void 0,function(){return S(this,function(i){return[2,new Promise(function(n,a){var o=window.msCrypto.subtle.digest(e,t.buffer);o.addEventListener("complete",function(s){n(s.target.result)}),o.addEventListener("error",function(s){a(s)})})]})})},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var VH="RSASSA-PKCS1-v1_5",km="SHA-256",SH=2048,$H=new Uint8Array([1,0,1]),G_=function(){function r(e,t){var i,n;if(this.logger=e,this.cryptoOptions=t,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new EH;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new AH;else if(this.hasMsrCrypto()&&(!((i=this.cryptoOptions)===null||i===void 0)&&i.useMsrCrypto))this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new PH;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."),R.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");if(this.subtleCrypto.initPrng){if(this.logger.verbose("BrowserCrypto: Interface requires entropy"),!(!((n=this.cryptoOptions)===null||n===void 0)&&n.entropy))throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."),$0.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:VH,hash:km,modulusLength:SH,publicExponent:$H}}return r.prototype.hasIECrypto=function(){return"msCrypto"in window},r.prototype.hasBrowserCrypto=function(){return"crypto"in window},r.prototype.hasMsrCrypto=function(){return"msrCrypto"in window},r.prototype.sha256Digest=function(e){return V(this,void 0,void 0,function(){var t;return S(this,function(i){return t=Li.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:km},t)]})})},r.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},r.prototype.generateKeyPair=function(e,t){return V(this,void 0,void 0,function(){return S(this,function(i){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,t)]})})},r.prototype.exportJwk=function(e){return V(this,void 0,void 0,function(){return S(this,function(t){return[2,this.subtleCrypto.exportKey(e)]})})},r.prototype.importJwk=function(e,t,i){return V(this,void 0,void 0,function(){return S(this,function(n){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,t,i)]})})},r.prototype.sign=function(e,t){return V(this,void 0,void 0,function(){return S(this,function(i){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,t)]})})},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var DH=function(){function r(){this.dbName=Y3,this.version=hH,this.tableName=dH,this.dbOpen=!1}return r.prototype.open=function(){return V(this,void 0,void 0,function(){var e=this;return S(this,function(t){return[2,new Promise(function(i,n){var a=window.indexedDB.open(e.dbName,e.version);a.addEventListener("upgradeneeded",function(o){var s=o;s.target.result.createObjectStore(e.tableName)}),a.addEventListener("success",function(o){var s=o;e.db=s.target.result,e.dbOpen=!0,i()}),a.addEventListener("error",function(){return n(R.createDatabaseUnavailableError())})})]})})},r.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},r.prototype.validateDbIsOpen=function(){return V(this,void 0,void 0,function(){return S(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]}})})},r.prototype.getItem=function(e){return V(this,void 0,void 0,function(){var t=this;return S(this,function(i){switch(i.label){case 0:return[4,this.validateDbIsOpen()];case 1:return i.sent(),[2,new Promise(function(n,a){if(!t.db)return a(R.createDatabaseNotOpenError());var o=t.db.transaction([t.tableName],"readonly"),s=o.objectStore(t.tableName),c=s.get(e);c.addEventListener("success",function(l){var h=l;t.closeConnection(),n(h.target.result)}),c.addEventListener("error",function(l){t.closeConnection(),a(l)})})]}})})},r.prototype.setItem=function(e,t){return V(this,void 0,void 0,function(){var i=this;return S(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(a,o){if(!i.db)return o(R.createDatabaseNotOpenError());var s=i.db.transaction([i.tableName],"readwrite"),c=s.objectStore(i.tableName),l=c.put(t,e);l.addEventListener("success",function(){i.closeConnection(),a()}),l.addEventListener("error",function(h){i.closeConnection(),o(h)})})]}})})},r.prototype.removeItem=function(e){return V(this,void 0,void 0,function(){var t=this;return S(this,function(i){switch(i.label){case 0:return[4,this.validateDbIsOpen()];case 1:return i.sent(),[2,new Promise(function(n,a){if(!t.db)return a(R.createDatabaseNotOpenError());var o=t.db.transaction([t.tableName],"readwrite"),s=o.objectStore(t.tableName),c=s.delete(e);c.addEventListener("success",function(){t.closeConnection(),n()}),c.addEventListener("error",function(l){t.closeConnection(),a(l)})})]}})})},r.prototype.getKeys=function(){return V(this,void 0,void 0,function(){var e=this;return S(this,function(t){switch(t.label){case 0:return[4,this.validateDbIsOpen()];case 1:return t.sent(),[2,new Promise(function(i,n){if(!e.db)return n(R.createDatabaseNotOpenError());var a=e.db.transaction([e.tableName],"readonly"),o=a.objectStore(e.tableName),s=o.getAllKeys();s.addEventListener("success",function(c){var l=c;e.closeConnection(),i(l.target.result)}),s.addEventListener("error",function(c){e.closeConnection(),n(c)})})]}})})},r.prototype.containsKey=function(e){return V(this,void 0,void 0,function(){var t=this;return S(this,function(i){switch(i.label){case 0:return[4,this.validateDbIsOpen()];case 1:return i.sent(),[2,new Promise(function(n,a){if(!t.db)return a(R.createDatabaseNotOpenError());var o=t.db.transaction([t.tableName],"readonly"),s=o.objectStore(t.tableName),c=s.count(e);c.addEventListener("success",function(l){var h=l;t.closeConnection(),n(h.target.result===1)}),c.addEventListener("error",function(l){t.closeConnection(),a(l)})})]}})})},r.prototype.deleteDatabase=function(){return V(this,void 0,void 0,function(){return S(this,function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(t,i){var n=window.indexedDB.deleteDatabase(Y3);n.addEventListener("success",function(){return t(!0)}),n.addEventListener("blocked",function(){return t(!0)}),n.addEventListener("error",function(){return i(!1)})})]})})},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var Em=function(){function r(e,t){this.inMemoryCache=new Q3,this.indexedDBCache=new DH,this.logger=e,this.storeName=t}return r.prototype.handleDatabaseAccessError=function(e){if(e instanceof R&&e.errorCode===L.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},r.prototype.getItem=function(e){return V(this,void 0,void 0,function(){var t,i;return S(this,function(n){switch(n.label){case 0:if(t=this.inMemoryCache.getItem(e),t)return[3,4];n.label=1;case 1:return n.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,n.sent()];case 3:return i=n.sent(),this.handleDatabaseAccessError(i),[3,4];case 4:return[2,t]}})})},r.prototype.setItem=function(e,t){return V(this,void 0,void 0,function(){var i;return S(this,function(n){switch(n.label){case 0:this.inMemoryCache.setItem(e,t),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(e,t)];case 2:return n.sent(),[3,4];case 3:return i=n.sent(),this.handleDatabaseAccessError(i),[3,4];case 4:return[2]}})})},r.prototype.removeItem=function(e){return V(this,void 0,void 0,function(){var t;return S(this,function(i){switch(i.label){case 0:this.inMemoryCache.removeItem(e),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(e)];case 2:return i.sent(),[3,4];case 3:return t=i.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2]}})})},r.prototype.getKeys=function(){return V(this,void 0,void 0,function(){var e,t;return S(this,function(i){switch(i.label){case 0:if(e=this.inMemoryCache.getKeys(),e.length!==0)return[3,4];i.label=1;case 1:return i.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,i.sent()];case 3:return t=i.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2,e]}})})},r.prototype.containsKey=function(e){return V(this,void 0,void 0,function(){var t,i;return S(this,function(n){switch(n.label){case 0:if(t=this.inMemoryCache.containsKey(e),t)return[3,4];n.label=1;case 1:return n.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,n.sent()];case 3:return i=n.sent(),this.handleDatabaseAccessError(i),[3,4];case 4:return[2,t]}})})},r.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},r.prototype.clearPersistent=function(){return V(this,void 0,void 0,function(){var e,t;return S(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),this.logger.verbose("Deleting persistent keystore"),[4,this.indexedDBCache.deleteDatabase()];case 1:return e=i.sent(),e&&this.logger.verbose("Persistent keystore deleted"),[2,e];case 2:return t=i.sent(),this.handleDatabaseAccessError(t),[2,!1];case 3:return[2]}})})},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var D0;(function(r){r.asymmetricKeys="asymmetricKeys",r.symmetricKeys="symmetricKeys"})(D0||(D0={}));var LH=function(){function r(e){this.logger=e,this.asymmetricKeys=new Em(this.logger,D0.asymmetricKeys),this.symmetricKeys=new Em(this.logger,D0.symmetricKeys)}return r.prototype.clear=function(){return V(this,void 0,void 0,function(){var e;return S(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]}})})},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var TH=function(){function r(e,t,i){this.logger=e,this.browserCrypto=new G_(this.logger,i),this.b64Encode=new q_,this.b64Decode=new CH,this.guidGenerator=new j_(this.browserCrypto),this.pkceGenerator=new kH(this.browserCrypto),this.cache=new LH(this.logger),this.performanceClient=t}return r.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},r.prototype.base64Encode=function(e){return this.b64Encode.encode(e)},r.prototype.base64Decode=function(e){return this.b64Decode.decode(e)},r.prototype.generatePkceCodes=function(){return V(this,void 0,void 0,function(){return S(this,function(e){return[2,this.pkceGenerator.generateCodes()]})})},r.prototype.getPublicKeyThumbprint=function(e){var t;return V(this,void 0,void 0,function(){var i,n,a,o,s,c,l,h;return S(this,function(d){switch(d.label){case 0:return i=(t=this.performanceClient)===null||t===void 0?void 0:t.startMeasurement(St.CryptoOptsGetPublicKeyThumbprint,e.correlationId),[4,this.browserCrypto.generateKeyPair(r.EXTRACTABLE,r.POP_KEY_USAGES)];case 1:return n=d.sent(),[4,this.browserCrypto.exportJwk(n.publicKey)];case 2:return a=d.sent(),o={e:a.e,kty:a.kty,n:a.n},s=Li.getSortedObjectString(o),[4,this.hashString(s)];case 3:return c=d.sent(),[4,this.browserCrypto.exportJwk(n.privateKey)];case 4:return l=d.sent(),[4,this.browserCrypto.importJwk(l,!1,["sign"])];case 5:return h=d.sent(),[4,this.cache.asymmetricKeys.setItem(c,{privateKey:h,publicKey:n.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri})];case 6:return d.sent(),i&&i.endMeasurement({success:!0}),[2,c]}})})},r.prototype.removeTokenBindingKey=function(e){return V(this,void 0,void 0,function(){var t;return S(this,function(i){switch(i.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(e)];case 1:return i.sent(),[4,this.cache.asymmetricKeys.containsKey(e)];case 2:return t=i.sent(),[2,!t]}})})},r.prototype.clearKeystore=function(){return V(this,void 0,void 0,function(){return S(this,function(e){switch(e.label){case 0:return[4,this.cache.clear()];case 1:return[2,e.sent()]}})})},r.prototype.signJwt=function(e,t,i){var n;return V(this,void 0,void 0,function(){var a,o,s,c,l,h,d,u,v,m,f,C,_;return S(this,function(p){switch(p.label){case 0:return a=(n=this.performanceClient)===null||n===void 0?void 0:n.startMeasurement(St.CryptoOptsSignJwt,i),[4,this.cache.asymmetricKeys.getItem(t)];case 1:if(o=p.sent(),!o)throw R.createSigningKeyNotFoundInStorageError(t);return[4,this.browserCrypto.exportJwk(o.publicKey)];case 2:return s=p.sent(),c=Li.getSortedObjectString(s),l=this.b64Encode.urlEncode(JSON.stringify({kid:t})),h=sH.getShrHeaderString({kid:l,alg:s.alg}),d=this.b64Encode.urlEncode(h),e.cnf={jwk:JSON.parse(c)},u=this.b64Encode.urlEncode(JSON.stringify(e)),v=d+"."+u,m=Li.stringToArrayBuffer(v),[4,this.browserCrypto.sign(o.privateKey,m)];case 3:return f=p.sent(),C=this.b64Encode.urlEncodeArr(new Uint8Array(f)),_=v+"."+C,a&&a.endMeasurement({success:!0}),[2,_]}})})},r.prototype.hashString=function(e){return V(this,void 0,void 0,function(){var t,i;return S(this,function(n){switch(n.label){case 0:return[4,this.browserCrypto.sha256Digest(e)];case 1:return t=n.sent(),i=new Uint8Array(t),[2,this.b64Encode.urlEncodeArr(i)]}})})},r.POP_KEY_USAGES=["sign","verify"],r.EXTRACTABLE=!0,r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var IH=function(){function r(e,t,i,n){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=t,this.logger=i,this.cryptoObj=n}return r.prototype.loadExternalTokens=function(e,t,i){if(this.logger.info("TokenCache - loadExternalTokens called"),!t.id_token)throw R.createUnableToLoadTokenError("Please ensure server response includes id token.");var n=new ui(t.id_token,this.cryptoObj),a,o;if(e.account){var s=this.loadAccount(n,e.account.environment,void 0,void 0,e.account.homeAccountId);a=new Ch(s,this.loadIdToken(n,s.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,t,s.homeAccountId,e.account.environment,e.account.tenantId,i),this.loadRefreshToken(e,t,s.homeAccountId,e.account.environment))}else if(e.authority){var c=A0.generateAuthority(e.authority,e.azureCloudOptions),l={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache};if(o=new A0(c,this.config.system.networkClient,this.storage,l,this.logger),i.clientInfo){this.logger.trace("TokenCache - homeAccountId from options");var s=this.loadAccount(n,o.hostnameAndPort,i.clientInfo,o.authorityType);a=new Ch(s,this.loadIdToken(n,s.homeAccountId,o.hostnameAndPort,o.tenant),this.loadAccessToken(e,t,s.homeAccountId,o.hostnameAndPort,o.tenant,i),this.loadRefreshToken(e,t,s.homeAccountId,o.hostnameAndPort))}else if(t.client_info){this.logger.trace("TokenCache - homeAccountId from response");var s=this.loadAccount(n,o.hostnameAndPort,t.client_info,o.authorityType);a=new Ch(s,this.loadIdToken(n,s.homeAccountId,o.hostnameAndPort,o.tenant),this.loadAccessToken(e,t,s.homeAccountId,o.hostnameAndPort,o.tenant,i),this.loadRefreshToken(e,t,s.homeAccountId,o.hostnameAndPort))}else throw R.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw R.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");return this.generateAuthenticationResult(e,n,a,o)},r.prototype.loadAccount=function(e,t,i,n,a){var o;if(a?o=a:n!==void 0&&i&&(o=Wt.generateHomeAccountId(i,n,this.logger,this.cryptoObj,e)),!o)throw R.createUnableToLoadTokenError("Unexpected missing homeAccountId");var s=i?Wt.createAccount(i,o,e,void 0,void 0,void 0,t):Wt.createGenericAccount(o,e,void 0,void 0,void 0,t);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(s),s;throw R.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.loadIdToken=function(e,t,i,n){var a=kc.createIdTokenEntity(t,i,e.rawToken,this.config.auth.clientId,n);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(a),a;throw R.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.loadAccessToken=function(e,t,i,n,a,o){if(!t.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!t.expires_in)throw R.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!o.extendedExpiresOn)throw R.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var s=new g1(e.scopes).printScopes(),c=o.expiresOn||t.expires_in+new Date().getTime()/1e3,l=o.extendedExpiresOn,h=Ec.createAccessTokenEntity(i,n,t.access_token,this.config.auth.clientId,a,s,c,l,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(h),h;throw R.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.loadRefreshToken=function(e,t,i,n){if(!t.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;var a=k0.createRefreshTokenEntity(i,n,t.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(a),a;throw R.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.generateAuthenticationResult=function(e,t,i,n){var a,o,s,c=w.EMPTY_STRING,l=[],h=null,d;i!=null&&i.accessToken&&(c=i.accessToken.secret,l=g1.fromString(i.accessToken.target).asArray(),h=new Date(Number(i.accessToken.expiresOn)*1e3),d=new Date(Number(i.accessToken.extendedExpiresOn)*1e3));var u=(t==null?void 0:t.claims.oid)||(t==null?void 0:t.claims.sub)||w.EMPTY_STRING,v=(t==null?void 0:t.claims.tid)||w.EMPTY_STRING;return{authority:n?n.canonicalAuthority:w.EMPTY_STRING,uniqueId:u,tenantId:v,scopes:l,account:i!=null&&i.account?i.account.getAccountInfo():null,idToken:t?t.rawToken:w.EMPTY_STRING,idTokenClaims:t?t.claims:{},accessToken:c,fromCache:!0,expiresOn:h,correlationId:e.correlationId||w.EMPTY_STRING,requestId:w.EMPTY_STRING,extExpiresOn:d,familyId:w.EMPTY_STRING,tokenType:((a=i==null?void 0:i.accessToken)===null||a===void 0?void 0:a.tokenType)||w.EMPTY_STRING,state:w.EMPTY_STRING,cloudGraphHostName:((o=i==null?void 0:i.account)===null||o===void 0?void 0:o.cloudGraphHostName)||w.EMPTY_STRING,msGraphHost:((s=i==null?void 0:i.account)===null||s===void 0?void 0:s.msGraphHost)||w.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var RH=function(r){Jt(e,r);function e(t){var i=r.call(this,t)||this;return i.includeRedirectUri=!1,i}return e}(T_);/*! @azure/msal-browser v2.32.2 2023-01-10 */var OH=function(r){Jt(e,r);function e(t,i,n,a,o,s,c,l,h,d){var u=r.call(this,t,i,n,a,o,s,l,h,d)||this;return u.apiId=c,u}return e.prototype.acquireToken=function(t){return V(this,void 0,void 0,function(){var i,n,a,o,s,c,l;return S(this,function(h){switch(h.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!t.code)throw R.createAuthCodeRequiredError();return[4,this.initializeAuthorizationRequest(t,W.Silent)];case 1:i=h.sent(),this.browserStorage.updateCacheEntries(i.state,i.nonce,i.authority,i.loginHint||w.EMPTY_STRING,i.account||null),n=this.initializeServerTelemetryManager(this.apiId),h.label=2;case 2:return h.trys.push([2,4,,5]),a=Y(Y({},i),{code:t.code}),[4,this.getClientConfiguration(n,i.authority)];case 3:return o=h.sent(),s=new RH(o),this.logger.verbose("Auth code client created"),c=new B_(s,this.browserStorage,a,this.logger,this.config.system),[2,c.handleCodeResponseFromServer({code:t.code,msgraph_host:t.msGraphHost,cloud_graph_host_name:t.cloudGraphHostName,cloud_instance_host_name:t.cloudInstanceHostName},i.state,s.authority,this.networkClient,!1)];case 4:throw l=h.sent(),l instanceof Q&&l.setCorrelationId(this.correlationId),n.cacheFailedRequest(l),this.browserStorage.cleanRequestByState(i.state),l;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(R.createSilentLogoutUnsupportedError())},e}(Lo);/*! @azure/msal-browser v2.32.2 2023-01-10 */var NH=function(){function r(e,t){this.correlationId=t,this.measureName="msal.measure."+e+"."+this.correlationId,this.startMark="msal.start."+e+"."+this.correlationId,this.endMark="msal.end."+e+"."+this.correlationId}return r.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"},r.prototype.startMeasurement=function(){if(r.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch{}},r.prototype.endMeasurement=function(){if(r.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch{}},r.prototype.flushMeasurement=function(){if(r.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},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var UH=function(r){Jt(e,r);function e(t,i,n,a,o,s,c){var l=r.call(this,t,i,n,a,o,s)||this;return l.browserCrypto=new G_(l.logger,c),l.guidGenerator=new j_(l.browserCrypto),l}return e.prototype.startPerformanceMeasurement=function(t,i){return new NH(t,i)},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.startMeasurement=function(t,i){var n=this,a=this.getPageVisibility(),o=r.prototype.startMeasurement.call(this,t,i);return Y(Y({},o),{endMeasurement:function(s){return o.endMeasurement(Y({startPageVisibility:a,endPageVisibility:n.getPageVisibility()},s))}})},e}(O_);/*! @azure/msal-browser v2.32.2 2023-01-10 */var FH=function(){function r(e){this.isBrowserEnvironment=typeof window<"u",this.config=wH(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new n6(this.config.system.loggerOptions,Ed,Ys),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 UH(this.config.auth.clientId,this.config.auth.authority,this.logger,Ed,Ys,this.config.telemetry.application,this.config.system.cryptoOptions):new lH(this.config.auth.clientId,this.config.auth.authority,this.logger,Ed,Ys,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new TH(this.logger,this.performanceClient,this.config.system.cryptoOptions):M0,this.eventHandler=new MH(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new X3(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):uH(this.config.auth.clientId,this.logger);var t={cacheLocation:c1.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1};this.nativeInternalStorage=new X3(this.config.auth.clientId,t,this.browserCrypto,this.logger),this.tokenCache=new IH(this.config,this.browserStorage,this.logger,this.browserCrypto)}return r.prototype.initialize=function(){return V(this,void 0,void 0,function(){var e,t;return S(this,function(i){switch(i.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(this.eventHandler.emitEvent(ie.INITIALIZE_START),!this.config.system.allowNativeBroker)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),e=this,[4,ba.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout)];case 2:return e.nativeExtensionProvider=i.sent(),[3,4];case 3:return t=i.sent(),this.logger.verbose(t),[3,4];case 4:return this.initialized=!0,this.eventHandler.emitEvent(ie.INITIALIZE_END),[2]}})})},r.prototype.handleRedirectPromise=function(e){return V(this,void 0,void 0,function(){var t,i,n,a,o,s,c,l,h=this;return S(this,function(d){return this.logger.verbose("handleRedirectPromise called"),lt.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t=this.getAllAccounts(),this.isBrowserEnvironment?(i=e||w.EMPTY_STRING,n=this.redirectResponse.get(i),typeof n>"u"?(this.eventHandler.emitEvent(ie.HANDLE_REDIRECT_START,W.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),a=this.browserStorage.getCachedNativeRequest(),o=void 0,a&&ba.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),s=new L2(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,je.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,a.accountId,this.nativeInternalStorage,a.correlationId),o=s.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),c=this.browserStorage.getTemporaryCache(Ce.CORRELATION_ID,!0)||w.EMPTY_STRING,l=this.createRedirectClient(c),o=l.handleRedirectPromise(e)),n=o.then(function(u){if(u){var v=t.length<h.getAllAccounts().length;v?(h.eventHandler.emitEvent(ie.LOGIN_SUCCESS,W.Redirect,u),h.logger.verbose("handleRedirectResponse returned result, login success")):(h.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_SUCCESS,W.Redirect,u),h.logger.verbose("handleRedirectResponse returned result, acquire token success"))}return h.eventHandler.emitEvent(ie.HANDLE_REDIRECT_END,W.Redirect),u}).catch(function(u){throw t.length>0?h.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_FAILURE,W.Redirect,null,u):h.eventHandler.emitEvent(ie.LOGIN_FAILURE,W.Redirect,null,u),h.eventHandler.emitEvent(ie.HANDLE_REDIRECT_END,W.Redirect),u}),this.redirectResponse.set(i,n)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,n]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},r.prototype.acquireTokenRedirect=function(e){return V(this,void 0,void 0,function(){var t,i,n,a,o,s=this;return S(this,function(c){return t=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",t),this.preflightBrowserEnvironmentCheck(W.Redirect),i=this.getAllAccounts().length>0,i?this.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_START,W.Redirect,e):this.eventHandler.emitEvent(ie.LOGIN_START,W.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(a=new L2(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,je.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),n=a.acquireTokenRedirect(e).catch(function(l){if(l instanceof ii&&l.isFatal()){s.nativeExtensionProvider=void 0;var h=s.createRedirectClient(e.correlationId);return h.acquireToken(e)}else if(l instanceof Tr){s.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");var h=s.createRedirectClient(e.correlationId);return h.acquireToken(e)}throw s.browserStorage.setInteractionInProgress(!1),l})):(o=this.createRedirectClient(e.correlationId),n=o.acquireToken(e)),[2,n.catch(function(l){throw i?s.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_FAILURE,W.Redirect,null,l):s.eventHandler.emitEvent(ie.LOGIN_FAILURE,W.Redirect,null,l),l})]})})},r.prototype.acquireTokenPopup=function(e){var t=this,i=this.getRequestCorrelationId(e),n=this.performanceClient.startMeasurement(St.AcquireTokenPopup,i);try{this.logger.verbose("acquireTokenPopup called",i),this.preflightBrowserEnvironmentCheck(W.Popup)}catch(c){return Promise.reject(c)}var a=this.getAllAccounts();a.length>0?this.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_START,W.Popup,e):this.eventHandler.emitEvent(ie.LOGIN_START,W.Popup,e);var o;if(this.canUseNative(e))o=this.acquireTokenNative(e,je.acquireTokenPopup).then(function(c){return t.browserStorage.setInteractionInProgress(!1),n.endMeasurement({success:!0,isNativeBroker:!0,requestId:c.requestId}),n.flushMeasurement(),c}).catch(function(c){if(c instanceof ii&&c.isFatal()){t.nativeExtensionProvider=void 0;var l=t.createPopupClient(e.correlationId);return l.acquireToken(e)}else if(c instanceof Tr){t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");var l=t.createPopupClient(e.correlationId);return l.acquireToken(e)}throw t.browserStorage.setInteractionInProgress(!1),c});else{var s=this.createPopupClient(e.correlationId);o=s.acquireToken(e)}return o.then(function(c){var l=a.length<t.getAllAccounts().length;return l?t.eventHandler.emitEvent(ie.LOGIN_SUCCESS,W.Popup,c):t.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_SUCCESS,W.Popup,c),n.addStaticFields({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),n.endMeasurement({success:!0,requestId:c.requestId}),n.flushMeasurement(),c}).catch(function(c){return a.length>0?t.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_FAILURE,W.Popup,null,c):t.eventHandler.emitEvent(ie.LOGIN_FAILURE,W.Popup,null,c),n.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),n.flushMeasurement(),Promise.reject(c)})},r.prototype.ssoSilent=function(e){return V(this,void 0,void 0,function(){var t,i,n,a,o,s=this;return S(this,function(c){return t=this.getRequestCorrelationId(e),i=Y(Y({},e),{prompt:e.prompt,correlationId:t}),this.preflightBrowserEnvironmentCheck(W.Silent),n=this.performanceClient.startMeasurement(St.SsoSilent,t),this.logger.verbose("ssoSilent called",t),this.eventHandler.emitEvent(ie.SSO_SILENT_START,W.Silent,i),this.canUseNative(i)?a=this.acquireTokenNative(i,je.ssoSilent).catch(function(l){if(l instanceof ii&&l.isFatal()){s.nativeExtensionProvider=void 0;var h=s.createSilentIframeClient(i.correlationId);return h.acquireToken(i)}throw l}):(o=this.createSilentIframeClient(i.correlationId),a=o.acquireToken(i)),[2,a.then(function(l){return s.eventHandler.emitEvent(ie.SSO_SILENT_SUCCESS,W.Silent,l),n.addStaticFields({accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),n.endMeasurement({success:!0,isNativeBroker:l.fromNativeBroker,requestId:l.requestId}),n.flushMeasurement(),l}).catch(function(l){throw s.eventHandler.emitEvent(ie.SSO_SILENT_FAILURE,W.Silent,null,l),n.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),n.flushMeasurement(),l})]})})},r.prototype.acquireTokenByCode=function(e){return V(this,void 0,void 0,function(){var t,i,n,a,o=this;return S(this,function(s){t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(W.Silent),this.logger.trace("acquireTokenByCode called",t),this.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_BY_CODE_START,W.Silent,e),i=this.performanceClient.startMeasurement(St.AcquireTokenByCode,e.correlationId);try{if(e.code)return n=e.code,a=this.hybridAuthCodeResponses.get(n),a?(this.logger.verbose("Existing acquireTokenByCode request found",e.correlationId),i.endMeasurement({success:!0}),i.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",t),a=this.acquireTokenByCodeAsync(Y(Y({},e),{correlationId:t})).then(function(c){return o.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_BY_CODE_SUCCESS,W.Silent,c),o.hybridAuthCodeResponses.delete(n),i.addStaticFields({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),i.endMeasurement({success:!0,isNativeBroker:c.fromNativeBroker,requestId:c.requestId}),i.flushMeasurement(),c}).catch(function(c){throw o.hybridAuthCodeResponses.delete(n),o.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_BY_CODE_FAILURE,W.Silent,null,c),i.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),i.flushMeasurement(),c}),this.hybridAuthCodeResponses.set(n,a)),[2,a];if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return[2,this.acquireTokenNative(e,je.acquireTokenByCode,e.nativeAccountId).catch(function(c){throw c instanceof ii&&c.isFatal()&&(o.nativeExtensionProvider=void 0),c})];throw R.createUnableToAcquireTokenFromNativePlatformError()}else throw R.createAuthCodeOrNativeAccountIdRequiredError()}catch(c){throw this.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_BY_CODE_FAILURE,W.Silent,null,c),i.endMeasurement({errorCode:c instanceof Q&&c.errorCode||void 0,subErrorCode:c instanceof Q&&c.subError||void 0,success:!1}),c}return[2]})})},r.prototype.acquireTokenByCodeAsync=function(e){return V(this,void 0,void 0,function(){var t,i;return S(this,function(n){switch(n.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),t=this.createSilentAuthCodeClient(e.correlationId),[4,t.acquireToken(e)];case 1:return i=n.sent(),[2,i]}})})},r.prototype.acquireTokenFromCache=function(e,t,i){return V(this,void 0,void 0,function(){return S(this,function(n){switch(i.cacheLookupPolicy){case E1.Default:case E1.AccessToken:case E1.AccessTokenAndRefreshToken:return[2,e.acquireToken(t)];default:throw j.createRefreshRequiredError()}return[2]})})},r.prototype.acquireTokenByRefreshToken=function(e,t){return V(this,void 0,void 0,function(){var i;return S(this,function(n){switch(t.cacheLookupPolicy){case E1.Default:case E1.AccessTokenAndRefreshToken:case E1.RefreshToken:case E1.RefreshTokenAndNetwork:return i=this.createSilentRefreshClient(e.correlationId),[2,i.acquireToken(e)];default:throw j.createRefreshRequiredError()}return[2]})})},r.prototype.acquireTokenBySilentIframe=function(e){return V(this,void 0,void 0,function(){var t;return S(this,function(i){return t=this.createSilentIframeClient(e.correlationId),[2,t.acquireToken(e)]})})},r.prototype.logout=function(e){return V(this,void 0,void 0,function(){var t;return S(this,function(i){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(Y({correlationId:t},e))]})})},r.prototype.logoutRedirect=function(e){return V(this,void 0,void 0,function(){var t,i;return S(this,function(n){return t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(W.Redirect),i=this.createRedirectClient(t),[2,i.logout(e)]})})},r.prototype.logoutPopup=function(e){try{var t=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck(W.Popup);var i=this.createPopupClient(t);return i.logout(e)}catch(n){return Promise.reject(n)}},r.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},r.prototype.getAccountByUsername=function(e){var t=this.getAllAccounts();return!F.isEmpty(e)&&t&&t.length?(this.logger.verbose("Account matching username found, returning"),this.logger.verbosePii("Returning signed-in accounts matching username: "+e),t.filter(function(i){return i.username.toLowerCase()===e.toLowerCase()})[0]||null):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},r.prototype.getAccountByHomeId=function(e){var t=this.getAllAccounts();return!F.isEmpty(e)&&t&&t.length?(this.logger.verbose("Account matching homeAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching homeAccountId: "+e),t.filter(function(i){return i.homeAccountId===e})[0]||null):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},r.prototype.getAccountByLocalId=function(e){var t=this.getAllAccounts();return!F.isEmpty(e)&&t&&t.length?(this.logger.verbose("Account matching localAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching localAccountId: "+e),t.filter(function(i){return i.localAccountId===e})[0]||null):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},r.prototype.setActiveAccount=function(e){this.browserStorage.setActiveAccount(e)},r.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},r.prototype.preflightBrowserEnvironmentCheck=function(e,t){if(t===void 0&&(t=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),lt.blockNonBrowserEnvironment(this.isBrowserEnvironment),lt.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),lt.blockReloadInHiddenIframes(),lt.blockAcquireTokenInPopups(),lt.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===W.Redirect&&this.config.cache.cacheLocation===c1.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw $0.createInMemoryRedirectUnavailableError();(e===W.Redirect||e===W.Popup)&&this.preflightInteractiveRequest(t)},r.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),lt.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},r.prototype.acquireTokenNative=function(e,t,i){return V(this,void 0,void 0,function(){var n;return S(this,function(a){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw R.createNativeConnectionNotEstablishedError();return n=new L2(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.nativeExtensionProvider,i||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),[2,n.acquireToken(e)]})})},r.prototype.canUseNative=function(e,t){if(this.logger.trace("canUseNative called"),!ba.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 d1.NONE:case d1.CONSENT:case d1.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},r.prototype.getNativeAccountId=function(e){var t=e.account||this.browserStorage.getAccountInfoByHints(e.loginHint,e.sid)||this.getActiveAccount();return t&&t.nativeAccountId||""},r.prototype.createPopupClient=function(e){return new pH(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},r.prototype.createRedirectClient=function(e){return new fH(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},r.prototype.createSilentIframeClient=function(e){return new bH(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,je.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},r.prototype.createSilentCacheClient=function(e){return new F_(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},r.prototype.createSilentRefreshClient=function(e){return new xH(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},r.prototype.createSilentAuthCodeClient=function(e){return new OH(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,je.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)},r.prototype.addEventCallback=function(e){return this.eventHandler.addEventCallback(e)},r.prototype.removeEventCallback=function(e){this.eventHandler.removeEventCallback(e)},r.prototype.addPerformanceCallback=function(e){return this.performanceClient.addPerformanceCallback(e)},r.prototype.removePerformanceCallback=function(e){return this.performanceClient.removePerformanceCallback(e)},r.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},r.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},r.prototype.getTokenCache=function(){return this.tokenCache},r.prototype.getLogger=function(){return this.logger},r.prototype.setLogger=function(e){this.logger=e},r.prototype.initializeWrapperLibrary=function(e,t){this.browserStorage.setWrapperMetadata(e,t)},r.prototype.setNavigationClient=function(e){this.navigationClient=e},r.prototype.getConfiguration=function(){return this.config},r.prototype.getRequestCorrelationId=function(e){return e!=null&&e.correlationId?e.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():w.EMPTY_STRING},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var BH=function(r){Jt(e,r);function e(t){var i=r.call(this,t)||this;return i.activeSilentTokenRequests=new Map,i}return e.prototype.loginRedirect=function(t){return V(this,void 0,void 0,function(){var i;return S(this,function(n){return i=this.getRequestCorrelationId(t),this.logger.verbose("loginRedirect called",i),[2,this.acquireTokenRedirect(Y({correlationId:i},t||xm))]})})},e.prototype.loginPopup=function(t){var i=this.getRequestCorrelationId(t);return this.logger.verbose("loginPopup called",i),this.acquireTokenPopup(Y({correlationId:i},t||xm))},e.prototype.acquireTokenSilent=function(t){return V(this,void 0,void 0,function(){var i,n,a,o,s,c,l,h=this;return S(this,function(d){if(i=this.getRequestCorrelationId(t),n=this.performanceClient.startMeasurement(St.AcquireTokenSilent,i),n.addStaticFields({cacheLookupPolicy:t.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(W.Silent),this.logger.verbose("acquireTokenSilent called",i),a=t.account||this.getActiveAccount(),!a)throw R.createNoAccountError();return o={clientId:this.config.auth.clientId,authority:t.authority||w.EMPTY_STRING,scopes:t.scopes,homeAccountIdentifier:a.homeAccountId,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},s=JSON.stringify(o),c=this.activeSilentTokenRequests.get(s),typeof c>"u"?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",i),l=this.acquireTokenSilentAsync(Y(Y({},t),{correlationId:i}),a).then(function(u){return h.activeSilentTokenRequests.delete(s),n.addStaticFields({accessTokenSize:u.accessToken.length,idTokenSize:u.idToken.length}),n.endMeasurement({success:!0,fromCache:u.fromCache,isNativeBroker:u.fromNativeBroker,cacheLookupPolicy:t.cacheLookupPolicy,requestId:u.requestId}),n.flushMeasurement(),u}).catch(function(u){throw h.activeSilentTokenRequests.delete(s),n.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),n.flushMeasurement(),u}),this.activeSilentTokenRequests.set(s,l),[2,l]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",i),n.endMeasurement({success:!0}),n.discardMeasurement(),[2,c])})})},e.prototype.acquireTokenSilentAsync=function(t,i){return V(this,void 0,void 0,function(){var n,a,o,s,c,l,h=this;return S(this,function(d){switch(d.label){case 0:return this.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_START,W.Silent,t),n=this.performanceClient.startMeasurement(St.AcquireTokenSilentAsync,t.correlationId),ba.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,t.authenticationScheme)&&i.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),o=Y(Y({},t),{account:i}),a=this.acquireTokenNative(o,je.acquireTokenSilent_silentFlow).catch(function(u){return V(h,void 0,void 0,function(){var v;return S(this,function(m){if(u instanceof ii&&u.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,v=this.createSilentIframeClient(t.correlationId),[2,v.acquireToken(t)];throw u})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),s=this.createSilentCacheClient(t.correlationId),[4,s.initializeSilentRequest(t,i)];case 2:c=d.sent(),l=Y(Y({},t),{cacheLookupPolicy:t.cacheLookupPolicy||E1.Default}),a=this.acquireTokenFromCache(s,c,l).catch(function(u){if(l.cacheLookupPolicy===E1.AccessToken)throw u;return lt.blockReloadInHiddenIframes(),h.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_NETWORK_START,W.Silent,c),h.acquireTokenByRefreshToken(c,l).catch(function(v){var m=v instanceof Aa,f=v instanceof Tr,C=v.errorCode===$r.INVALID_GRANT_ERROR;if((!m||!C||f||l.cacheLookupPolicy===E1.AccessTokenAndRefreshToken||l.cacheLookupPolicy===E1.RefreshToken)&&l.cacheLookupPolicy!==E1.Skip)throw v;return h.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",t.correlationId),h.acquireTokenBySilentIframe(c)})}),d.label=3;case 3:return[2,a.then(function(u){return h.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_SUCCESS,W.Silent,u),n.endMeasurement({success:!0,fromCache:u.fromCache,isNativeBroker:u.fromNativeBroker,requestId:u.requestId}),u}).catch(function(u){throw h.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_FAILURE,W.Silent,null,u),n.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})]}})})},e}(FH);const Pm="redirect";var Am=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};class jH extends BH{get account(){return this.getAllAccounts().find(i=>{var n;return((n=i.idTokenClaims)===null||n===void 0?void 0:n.aud)===this.clientId})}get hasValidClaims(){var e;const t=(e=this.account)===null||e===void 0?void 0:e.idTokenClaims;if(t){const i=Math.ceil(Date.now()/1e3);return t.exp>i}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=Pm,i=!0){var n;return Am(this,void 0,void 0,function*(){const a=(e==null?void 0:e.loginHint)||((n=this.account)===null||n===void 0?void 0:n.username),o=(e==null?void 0:e.scopes)||[],s=Object.assign(Object.assign({},e),{loginHint:a,scopes:o});if(a&&i){this.logger.verbose("Attempting to login in silently");try{return yield this.ssoSilent(s)}catch{this.logger.verbose("Silent login attempt failed")}}switch(this.logger.verbose(`Attempting to login in by [${t}]`),t){case"popup":return this.loginPopup(s);case"redirect":return this.loginRedirect(s)}})}acquireToken(e={scopes:[]},t=Pm,i=!0){return Am(this,void 0,void 0,function*(){const n=yield this.account;if(i&&n){this.logger.verbose("Attempting to acquire token in silently");try{return yield this.acquireTokenSilent(Object.assign({account:n},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 qH=(r,e=window.location.origin)=>{r=r.match(/^http[s]?/)?r:e+r;const{origin:t,pathname:i}=new URL(r);return t+i.replace(/([^:]\/)\/+/g,"$1")},GH=(r,e,t,i,n)=>{const a=Object.assign({clientId:e,redirectUri:qH(t||""),navigateToLoginRequestUrl:!1,authority:`https://login.microsoftonline.com/${r}`},i==null?void 0:i.auth),o=Object.assign({cacheLocation:"localStorage"},i==null?void 0:i.cache),s=i==null?void 0:i.system;return new(n||jH)(r,{auth:a,cache:o,system:s})};class K_ extends n6{constructor(e){super({logLevel:e,loggerCallback:(...t)=>this.loggerCallback(...t)}),this.getLogType=t=>{switch(t){case ot.Error:return"error";case ot.Warning:return"warn";case ot.Info:return"info";case ot.Verbose:default:return"debug"}}}loggerCallback(e,t,i){console[this.getLogType(e)]("%c FUSION::MSAL %c %s","border: 1px solid;","border: none;",t)}}var Pd=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const KH="default";class WH{get defaultClient(){return this.getClient(KH)}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 i=GH(t.tenantId,t.clientId,t.redirectUri,t.config);return i.setLogger(new K_(0)),i}handleRedirect(){return Pd(this,void 0,void 0,function*(){const{redirectUri:e}=this.defaultConfig||{};if(window.location.pathname===e){const t=this.defaultClient,i=t.getLogger(),{requestOrigin:n}=t;yield t.handleRedirectPromise(),n===e?(i.warning(`detected callback loop from url ${e}, redirecting to root`),window.location.replace("/")):window.location.replace(n||"/")}return null})}acquireToken(e){return this.defaultClient.acquireToken(e)}acquireAccessToken(e){return Pd(this,void 0,void 0,function*(){const t=yield this.acquireToken(e);return t?t.accessToken:void 0})}login(){return Pd(this,void 0,void 0,function*(){yield this.defaultClient.login()})}}var YH=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const W_={name:"auth",configure:r=>{var e;const t=new RC;return!((e=r==null?void 0:r.auth)===null||e===void 0)&&e.defaultConfig&&t.configureDefault(r.auth.defaultConfig),t},initialize:({config:r})=>YH(void 0,void 0,void 0,function*(){const e=new WH(r);return r.requiresAuth&&(yield e.handleRedirect(),e.defaultAccount||(yield e.login())),e})},QH=(r,e)=>({module:W_,configure:t=>{t.configureDefault(r),(e==null?void 0:e.requiresAuth)!==void 0&&(t.requiresAuth=e==null?void 0:e.requiresAuth);const{clients:i}=e??{};i&&Object.entries(i).forEach(([n,a])=>t.configureClient(n,a))}});var s6=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const XH=r=>{var e;return{id:r.id,isChildType:r.isChildType,parentTypeIds:(e=r.parentTypeIds)!==null&&e!==void 0?e:[]}},c6=r=>{var e,t,i,n;return{id:r.id,externalId:(e=r.externalId)!==null&&e!==void 0?e:void 0,isActive:r.isActive,isDeleted:r.isDeleted,created:new Date(r.created),source:(t=r.source)!==null&&t!==void 0?t:void 0,title:(i=r.title)!==null&&i!==void 0?i:void 0,type:XH(r.type),value:(n=r.value)!==null&&n!==void 0?n:{}}},JH=r=>s6(void 0,void 0,void 0,function*(){const e=yield r.json();return c6(e)}),ZH=r=>s6(void 0,void 0,void 0,function*(){return(yield r.json()).map(c6)}),ek=r=>s6(void 0,void 0,void 0,function*(){return(yield r.json()).map(c6)});var tk=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},rk=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},Hh;class ik{constructor(e,t={}){this.config=t,Hh.set(this,void 0),tk(this,Hh,e,"f")}requireInstance(e){return rk(this,Hh,"f").requireInstance(e)}setContextType(e){this.config.contextType=e}setContextFilter(e){this.config.contextFilter=e}setContextParameterFn(e){this.config.contextParameterFn=e}setValidateContext(e){this.config.validateContext=e}setResolveContext(e){this.config.resolveContext=e}setContextClient(e,t=1*60*1e3){this.config.client={get:typeof e.get=="function"?{key:({id:i})=>i,client:{fn:e.get},expire:t}:e.get,query:typeof e.query=="function"?{key:i=>JSON.stringify(i),client:{fn:e.query},expire:t}:e.query},e.related&&(this.config.client.related=typeof e.related=="function"?{key:i=>JSON.stringify(i),client:{fn:e.related},expire:t}:e.related)}}Hh=new WeakMap;var Wl=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})},Vm=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},kh;class nk{constructor(){this.defaultExpireTime=1*60*1e3,kh.set(this,[])}addConfigBuilder(e){Vm(this,kh,"f").push(e)}_getServiceProvider(e){var t;return Wl(this,void 0,void 0,function*(){if(e.hasModule("services"))return e.requireInstance("services");{const i=(t=e.ref)===null||t===void 0?void 0:t.services;if(i)return i;throw Error("no service services provider configures [ServicesModule]")}})}createConfig(e){var t;return Wl(this,void 0,void 0,function*(){const i=yield Vm(this,kh,"f").reduce((n,a)=>Wl(this,void 0,void 0,function*(){const o=new ik(e,yield n);return yield Promise.resolve(a(o)),Object.assign(n,o.config)}),Promise.resolve({}));return(t=i.client)!==null&&t!==void 0||(i.client=yield(()=>Wl(this,void 0,void 0,function*(){const a=yield(yield this._getServiceProvider(e)).createContextClient("json$");return{get:{client:{fn:o=>a.get("v1",o,{selector:JH})},key:({id:o})=>o,expire:this.defaultExpireTime},query:{client:{fn:o=>a.query("v1",{query:o},{selector:ZH})},key:o=>JSON.stringify(o),expire:this.defaultExpireTime},related:{client:{fn:o=>a.related("v1",{id:o.item.id,query:{filter:o.filter}},{selector:ek})},key:o=>JSON.stringify(o),expire:this.defaultExpireTime}}}))()),i})}}kh=new WeakMap;var ak=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var i,n,a;if(Array.isArray(e)){if(i=e.length,i!=t.length)return!1;for(n=i;n--!==0;)if(!r(e[n],t[n]))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(a=Object.keys(e),i=a.length,i!==Object.keys(t).length)return!1;for(n=i;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=i;n--!==0;){var o=a[n];if(!r(e[o],t[o]))return!1}return!0}return e!==e&&t!==t},Sm;(function(r){r.IDLE="idle",r.ACTIVE="active",r.FAILED="failed",r.CANCELED="canceled"})(Sm||(Sm={}));const ok=r=>e=>e.pipe(hC(r)),sk=r=>e=>e.pipe(di(r)),ck=r=>e=>e.pipe(L1(r)),lk=r=>r.pipe($e(e=>e.value));var Yl,hk=new Uint8Array(16);function dk(){if(!Yl&&(Yl=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Yl))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Yl(hk)}const uk=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Y_(r){return typeof r=="string"&&uk.test(r)}var Ft=[];for(var Ad=0;Ad<256;++Ad)Ft.push((Ad+256).toString(16).substr(1));function Q_(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(Ft[r[e+0]]+Ft[r[e+1]]+Ft[r[e+2]]+Ft[r[e+3]]+"-"+Ft[r[e+4]]+Ft[r[e+5]]+"-"+Ft[r[e+6]]+Ft[r[e+7]]+"-"+Ft[r[e+8]]+Ft[r[e+9]]+"-"+Ft[r[e+10]]+Ft[r[e+11]]+Ft[r[e+12]]+Ft[r[e+13]]+Ft[r[e+14]]+Ft[r[e+15]]).toLowerCase();if(!Y_(t))throw TypeError("Stringified UUID is invalid");return t}function vk(r){if(!Y_(r))throw TypeError("Invalid UUID");var e,t=new Uint8Array(16);return t[0]=(e=parseInt(r.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(r.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(r.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(r.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(r.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 mk(r){r=unescape(encodeURIComponent(r));for(var e=[],t=0;t<r.length;++t)e.push(r.charCodeAt(t));return e}var fk="6ba7b810-9dad-11d1-80b4-00c04fd430c8",pk="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function gk(r,e,t){function i(n,a,o,s){if(typeof n=="string"&&(n=mk(n)),typeof a=="string"&&(a=vk(a)),a.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var c=new Uint8Array(16+n.length);if(c.set(a),c.set(n,a.length),c=t(c),c[6]=c[6]&15|e,c[8]=c[8]&63|128,o){s=s||0;for(var l=0;l<16;++l)o[s+l]=c[l];return o}return Q_(c)}try{i.name=r}catch{}return i.DNS=fk,i.URL=pk,i}function X_(r,e,t){r=r||{};var i=r.random||(r.rng||dk)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){t=t||0;for(var n=0;n<16;++n)e[t+n]=i[n];return e}return Q_(i)}function _k(r,e,t,i){switch(r){case 0:return e&t^~e&i;case 1:return e^t^i;case 2:return e&t^e&i^t&i;case 3:return e^t^i}}function Vd(r,e){return r<<e|r>>>32-e}function zk(r){var e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){var i=unescape(encodeURIComponent(r));r=[];for(var n=0;n<i.length;++n)r.push(i.charCodeAt(n))}else Array.isArray(r)||(r=Array.prototype.slice.call(r));r.push(128);for(var a=r.length/4+2,o=Math.ceil(a/16),s=new Array(o),c=0;c<o;++c){for(var l=new Uint32Array(16),h=0;h<16;++h)l[h]=r[c*64+h*4]<<24|r[c*64+h*4+1]<<16|r[c*64+h*4+2]<<8|r[c*64+h*4+3];s[c]=l}s[o-1][14]=(r.length-1)*8/Math.pow(2,32),s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=(r.length-1)*8&4294967295;for(var d=0;d<o;++d){for(var u=new Uint32Array(80),v=0;v<16;++v)u[v]=s[d][v];for(var m=16;m<80;++m)u[m]=Vd(u[m-3]^u[m-8]^u[m-14]^u[m-16],1);for(var f=t[0],C=t[1],_=t[2],p=t[3],z=t[4],M=0;M<80;++M){var A=Math.floor(M/20),I=Vd(f,5)+_k(A,C,_,p)+z+e[A]+u[M]>>>0;z=p,p=_,_=Vd(C,30)>>>0,C=f,f=I}t[0]=t[0]+f>>>0,t[1]=t[1]+C>>>0,t[2]=t[2]+_>>>0,t[3]=t[3]+p>>>0,t[4]=t[4]+z>>>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]}var yk=gk("v5",80,zk);const wk=yk;class Z3 extends Error{constructor(e,t){super(t.message,{cause:t.cause}),this.type=e,this.request=t.request}}const To=(...r)=>Xt(e=>r.includes(e.type));var o1=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},bk=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},Qr,kr;class M4 extends Ee{get action$(){return o1(this,Qr,"f").asObservable()}get value(){return o1(this,kr,"f").value}get closed(){return o1(this,kr,"f").closed||o1(this,Qr,"f").closed}constructor(e,t){super(n=>o1(this,kr,"f").subscribe(n)),Qr.set(this,new $i),kr.set(this,void 0);const i="getInitialState"in e?e.getInitialState():t;bk(this,kr,new Do(i),"f"),o1(this,Qr,"f").pipe(E_(e,i),k_()).subscribe(o1(this,kr,"f")),this.reset=()=>o1(this,kr,"f").next(i)}next(e){o1(this,Qr,"f").next(e)}addEffect(e,t){const i=typeof e=="string"?this.action$.pipe(To(e)):this.action$,n=t||e;return i.pipe(di(a=>y1(new Promise((o,s)=>{try{o(n(a,this.value))}catch(c){s(c)}})).pipe(Z1(o=>(console.warn("unhandled effect",o),Ui)))),Xt(a=>!!a),_0(g0)).subscribe(o1(this,Qr,"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(Z1(i=>(console.trace("unhandled exception, epic closed!",i),Ui)),_0(g0)).subscribe(o1(this,Qr,"f"))}unsubscribe(){o1(this,Qr,"f").unsubscribe(),o1(this,kr,"f").unsubscribe()}complete(){o1(this,Qr,"f").complete(),o1(this,kr,"f").complete()}asObservable(){return o1(this,kr,"f").asObservable()}}Qr=new WeakMap,kr=new WeakMap;const J_=(r,e)=>Object.entries(r).reduce((t,[i,n])=>Object.assign(t,{[i]:typeof n=="function"?(...a)=>e.next(n(...a)):J_(n,e)}),{});function Gt(r,e){function t(...i){if(e){const n=e(...i);if(!n)throw new Error("prepareAction did not return an object");return Object.assign(Object.assign({type:r,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:r,payload:i[0]}}return t.toString=()=>`${r}`,t.type=r,t.match=i=>i.type===r,t}const Eh="::",l6=r=>new RegExp(`${Eh}\\${r}$`),$m=r=>r.type.replace(l6("\\w+$"),"");function pn(r,e,t,i){const n=Gt([r,"request"].join(Eh),e);return t&&Object.assign(n,{success:Gt([r,"success"].join(Eh),t)}),i&&Object.assign(n,{failure:Gt([r,"failure"].join(Eh),i)}),n}const xk=r=>!!r.type.match(/::request$/),Mk=r=>!!r.type.match(l6("success")),Ck=r=>!!r.type.match(l6("failure")),Hk=r=>Mk(r)||Ck(r);function K1(r){for(var e=arguments.length,t=Array(e>1?e-1:0),i=1;i<e;i++)t[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map(function(n){return"'"+n+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Vn(r){return!!r&&!!r[Pe]}function Nr(r){var e;return!!r&&(function(t){if(!t||typeof t!="object")return!1;var i=Object.getPrototypeOf(t);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Tk}(r)||Array.isArray(r)||!!r[Um]||!!(!((e=r.constructor)===null||e===void 0)&&e[Um])||h6(r)||d6(r))}function Dm(r){return Vn(r)||K1(23,r),r[Pe].t}function io(r,e,t){t===void 0&&(t=!1),Io(r)===0?(t?Object.keys:p6)(r).forEach(function(i){t&&typeof i=="symbol"||e(i,r[i],r)}):r.forEach(function(i,n){return e(n,i,r)})}function Io(r){var e=r[Pe];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:h6(r)?2:d6(r)?3:0}function eu(r,e){return Io(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function kk(r,e){return Io(r)===2?r.get(e):r[e]}function Z_(r,e,t){var i=Io(r);i===2?r.set(e,t):i===3?r.add(t):r[e]=t}function Ek(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function h6(r){return Dk&&r instanceof Map}function d6(r){return Lk&&r instanceof Set}function Lt(r){return r.o||r.t}function u6(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=Ik(r);delete e[Pe];for(var t=p6(e),i=0;i<t.length;i++){var n=t[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),e)}function v6(r,e){return e===void 0&&(e=!1),m6(r)||Vn(r)||!Nr(r)||(Io(r)>1&&(r.set=r.add=r.clear=r.delete=Pk),Object.freeze(r),e&&io(r,function(t,i){return v6(i,!0)},!0)),r}function Pk(){K1(2)}function m6(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function li(r){var e=ru[r];return e||K1(18,r),e}function Ak(r,e){ru[r]||(ru[r]=e)}function L0(){return Ac}function Sd(r,e){e&&(li("Patches"),r.u=[],r.s=[],r.v=e)}function T0(r){tu(r),r.p.forEach(Vk),r.p=null}function tu(r){r===Ac&&(Ac=r.l)}function Lm(r){return Ac={p:[],l:Ac,h:r,m:!0,_:0}}function Vk(r){var e=r[Pe];e.i===0||e.i===1?e.j():e.O=!0}function $d(r,e){e._=e.p.length;var t=e.p[0],i=r!==void 0&&r!==t;return e.h.g||li("ES5").S(e,r,i),i?(t[Pe].P&&(T0(e),K1(4)),Nr(r)&&(r=I0(e,r),e.l||R0(e,r)),e.u&&li("Patches").M(t[Pe].t,r,e.u,e.s)):r=I0(e,t,[]),T0(e),e.u&&e.v(e.u,e.s),r!==ez?r:void 0}function I0(r,e,t){if(m6(e))return e;var i=e[Pe];if(!i)return io(e,function(s,c){return Tm(r,i,e,s,c,t)},!0),e;if(i.A!==r)return e;if(!i.P)return R0(r,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=u6(i.k):i.o,a=n,o=!1;i.i===3&&(a=new Set(n),n.clear(),o=!0),io(a,function(s,c){return Tm(r,i,n,s,c,t,o)}),R0(r,n,!1),t&&r.u&&li("Patches").N(i,t,r.u,r.s)}return i.o}function Tm(r,e,t,i,n,a,o){if(Vn(n)){var s=I0(r,n,a&&e&&e.i!==3&&!eu(e.R,i)?a.concat(i):void 0);if(Z_(t,i,s),!Vn(s))return;r.m=!1}else o&&t.add(n);if(Nr(n)&&!m6(n)){if(!r.h.D&&r._<1)return;I0(r,n),e&&e.A.l||R0(r,n)}}function R0(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&v6(e,t)}function Dd(r,e){var t=r[Pe];return(t?Lt(t):r)[e]}function Im(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var i=Object.getOwnPropertyDescriptor(t,e);if(i)return i;t=Object.getPrototypeOf(t)}}function Ci(r){r.P||(r.P=!0,r.l&&Ci(r.l))}function Ld(r){r.o||(r.o=u6(r.t))}function Pc(r,e,t){var i=h6(e)?li("MapSet").F(e,t):d6(e)?li("MapSet").T(e,t):r.g?function(n,a){var o=Array.isArray(n),s={i:o?1:0,A:a?a.A:L0(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},c=s,l=iu;o&&(c=[s],l=xs);var h=Proxy.revocable(c,l),d=h.revoke,u=h.proxy;return s.k=u,s.j=d,u}(e,t):li("ES5").J(e,t);return(t?t.A:L0()).p.push(i),i}function Sk(r){return Vn(r)||K1(22,r),function e(t){if(!Nr(t))return t;var i,n=t[Pe],a=Io(t);if(n){if(!n.P&&(n.i<4||!li("ES5").K(n)))return n.t;n.I=!0,i=Rm(t,a),n.I=!1}else i=Rm(t,a);return io(i,function(o,s){n&&kk(n.t,o)===s||Z_(i,o,e(s))}),a===3?new Set(i):i}(r)}function Rm(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return u6(r)}function $k(){function r(s,c){function l(){this.constructor=s}n(s,c),s.prototype=(l.prototype=c.prototype,new l)}function e(s){s.o||(s.R=new Map,s.o=new Map(s.t))}function t(s){s.o||(s.o=new Set,s.t.forEach(function(c){if(Nr(c)){var l=Pc(s.A.h,c,s);s.p.set(c,l),s.o.add(l)}else s.o.add(c)}))}function i(s){s.O&&K1(3,JSON.stringify(Lt(s)))}var n=function(s,c){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var d in h)h.hasOwnProperty(d)&&(l[d]=h[d])})(s,c)},a=function(){function s(l,h){return this[Pe]={i:2,l:h,A:h?h.A:L0(),P:!1,I:!1,o:void 0,R:void 0,t:l,k:this,C:!1,O:!1},this}r(s,Map);var c=s.prototype;return Object.defineProperty(c,"size",{get:function(){return Lt(this[Pe]).size}}),c.has=function(l){return Lt(this[Pe]).has(l)},c.set=function(l,h){var d=this[Pe];return i(d),Lt(d).has(l)&&Lt(d).get(l)===h||(e(d),Ci(d),d.R.set(l,!0),d.o.set(l,h),d.R.set(l,!0)),this},c.delete=function(l){if(!this.has(l))return!1;var h=this[Pe];return i(h),e(h),Ci(h),h.t.has(l)?h.R.set(l,!1):h.R.delete(l),h.o.delete(l),!0},c.clear=function(){var l=this[Pe];i(l),Lt(l).size&&(e(l),Ci(l),l.R=new Map,io(l.t,function(h){l.R.set(h,!1)}),l.o.clear())},c.forEach=function(l,h){var d=this;Lt(this[Pe]).forEach(function(u,v){l.call(h,d.get(v),v,d)})},c.get=function(l){var h=this[Pe];i(h);var d=Lt(h).get(l);if(h.I||!Nr(d)||d!==h.t.get(l))return d;var u=Pc(h.A.h,d,h);return e(h),h.o.set(l,u),u},c.keys=function(){return Lt(this[Pe]).keys()},c.values=function(){var l,h=this,d=this.keys();return(l={})[Ql]=function(){return h.values()},l.next=function(){var u=d.next();return u.done?u:{done:!1,value:h.get(u.value)}},l},c.entries=function(){var l,h=this,d=this.keys();return(l={})[Ql]=function(){return h.entries()},l.next=function(){var u=d.next();if(u.done)return u;var v=h.get(u.value);return{done:!1,value:[u.value,v]}},l},c[Ql]=function(){return this.entries()},s}(),o=function(){function s(l,h){return this[Pe]={i:3,l:h,A:h?h.A:L0(),P:!1,I:!1,o:void 0,t:l,k:this,p:new Map,O:!1,C:!1},this}r(s,Set);var c=s.prototype;return Object.defineProperty(c,"size",{get:function(){return Lt(this[Pe]).size}}),c.has=function(l){var h=this[Pe];return i(h),h.o?!!h.o.has(l)||!(!h.p.has(l)||!h.o.has(h.p.get(l))):h.t.has(l)},c.add=function(l){var h=this[Pe];return i(h),this.has(l)||(t(h),Ci(h),h.o.add(l)),this},c.delete=function(l){if(!this.has(l))return!1;var h=this[Pe];return i(h),t(h),Ci(h),h.o.delete(l)||!!h.p.has(l)&&h.o.delete(h.p.get(l))},c.clear=function(){var l=this[Pe];i(l),Lt(l).size&&(t(l),Ci(l),l.o.clear())},c.values=function(){var l=this[Pe];return i(l),t(l),l.o.values()},c.entries=function(){var l=this[Pe];return i(l),t(l),l.o.entries()},c.keys=function(){return this.values()},c[Ql]=function(){return this.values()},c.forEach=function(l,h){for(var d=this.values(),u=d.next();!u.done;)l.call(h,u.value,u.value,this),u=d.next()},s}();Ak("MapSet",{F:function(s,c){return new a(s,c)},T:function(s,c){return new o(s,c)}})}var Om,Ac,f6=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Dk=typeof Map<"u",Lk=typeof Set<"u",Nm=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ez=f6?Symbol.for("immer-nothing"):((Om={})["immer-nothing"]=!0,Om),Um=f6?Symbol.for("immer-draftable"):"__$immer_draftable",Pe=f6?Symbol.for("immer-state"):"__$immer_state",Ql=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",Tk=""+Object.prototype.constructor,p6=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Ik=Object.getOwnPropertyDescriptors||function(r){var e={};return p6(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},ru={},iu={get:function(r,e){if(e===Pe)return r;var t=Lt(r);if(!eu(t,e))return function(n,a,o){var s,c=Im(a,o);return c?"value"in c?c.value:(s=c.get)===null||s===void 0?void 0:s.call(n.k):void 0}(r,t,e);var i=t[e];return r.I||!Nr(i)?i:i===Dd(r.t,e)?(Ld(r),r.o[e]=Pc(r.A.h,i,r)):i},has:function(r,e){return e in Lt(r)},ownKeys:function(r){return Reflect.ownKeys(Lt(r))},set:function(r,e,t){var i=Im(Lt(r),e);if(i!=null&&i.set)return i.set.call(r.k,t),!0;if(!r.P){var n=Dd(Lt(r),e),a=n==null?void 0:n[Pe];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(Ek(t,n)&&(t!==void 0||eu(r.t,e)))return!0;Ld(r),Ci(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return Dd(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,Ld(r),Ci(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=Lt(r),i=Reflect.getOwnPropertyDescriptor(t,e);return i&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:i.enumerable,value:t[e]}},defineProperty:function(){K1(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){K1(12)}},xs={};io(iu,function(r,e){xs[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),xs.deleteProperty=function(r,e){return xs.set.call(this,r,e,void 0)},xs.set=function(r,e,t){return iu.set.call(this,r[0],e,t,r[0])};var Rk=function(){function r(t){var i=this;this.g=Nm,this.D=!0,this.produce=function(n,a,o){if(typeof n=="function"&&typeof a!="function"){var s=a;a=n;var c=i;return function(f){var C=this;f===void 0&&(f=s);for(var _=arguments.length,p=Array(_>1?_-1:0),z=1;z<_;z++)p[z-1]=arguments[z];return c.produce(f,function(M){var A;return(A=a).call.apply(A,[C,M].concat(p))})}}var l;if(typeof a!="function"&&K1(6),o!==void 0&&typeof o!="function"&&K1(7),Nr(n)){var h=Lm(i),d=Pc(i,n,void 0),u=!0;try{l=a(d),u=!1}finally{u?T0(h):tu(h)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(f){return Sd(h,o),$d(f,h)},function(f){throw T0(h),f}):(Sd(h,o),$d(l,h))}if(!n||typeof n!="object"){if((l=a(n))===void 0&&(l=n),l===ez&&(l=void 0),i.D&&v6(l,!0),o){var v=[],m=[];li("Patches").M(n,l,v,m),o(v,m)}return l}K1(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(l){for(var h=arguments.length,d=Array(h>1?h-1:0),u=1;u<h;u++)d[u-1]=arguments[u];return i.produceWithPatches(l,function(v){return n.apply(void 0,[v].concat(d))})};var o,s,c=i.produce(n,a,function(l,h){o=l,s=h});return typeof Promise<"u"&&c instanceof Promise?c.then(function(l){return[l,o,s]}):[c,o,s]},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=r.prototype;return e.createDraft=function(t){Nr(t)||K1(8),Vn(t)&&(t=Sk(t));var i=Lm(this),n=Pc(this,t,void 0);return n[Pe].C=!0,tu(i),n},e.finishDraft=function(t,i){var n=t&&t[Pe],a=n.A;return Sd(a,i),$d(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Nm&&K1(20),this.g=t},e.applyPatches=function(t,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(i=i.slice(n+1));var o=li("Patches").$;return Vn(t)?o(t,i):this.produce(t,function(s){return o(s,i)})},r}(),er=new Rk,tz=er.produce;er.produceWithPatches.bind(er);er.setAutoFreeze.bind(er);er.setUseProxies.bind(er);er.applyPatches.bind(er);er.createDraft.bind(er);er.finishDraft.bind(er);function Fm(r){return Nr(r)?tz(r,()=>{}):r}function Ok(r){return typeof r=="function"}function il(r,e){const[t,i,n]=Nk(e);let a;if(Ok(r))a=()=>Fm(r());else{const s=Fm(r);a=()=>s}function o(s=a(),c){let l=[t[c.type],...i.filter(({matcher:h})=>h(c)).map(({reducer:h})=>h)];return l.filter(h=>!!h).length===0&&(l=[n]),l.reduce((h,d)=>{if(d)if(Vn(h)){const v=d(h,c);return v===void 0?h:v}else{if(Nr(h))return tz(h,u=>d(u,c));{const u=d(h,c);if(u===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return u}}return h},s)}return o.getInitialState=a,o}function Nk(r){const e={},t=[];let i;const n={addCase(a,o){const s=typeof a=="string"?a:a.type;if(s in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[s]=o,n},addMatcher(a,o){return t.push({matcher:a,reducer:o}),n},addDefaultCase(a){return i=a,n}};return r(n),[e,t,i]}function Uk(r,e){const t=typeof e=="function"?e:il(e.initial,a=>e.builder(a,r)),i=new M4(t),n=J_(r,i);return{actions:r,dispatch:n,subject:i}}const Fk=()=>({request:Gt("client/request",(e,t)=>{var i,n,a,o;return t??(t={}),(i=t.transaction)!==null&&i!==void 0||(t.transaction=X_()),(n=t.created)!==null&&n!==void 0||(t.created=Date.now()),(a=t.controller)!==null&&a!==void 0||(t.controller=new AbortController),(o=t.task)!==null&&o!==void 0||(t.task=new c_),{payload:e,meta:t}}),retry:Gt("client/retry",e=>({payload:e})),success:Gt("client/success",(e,t)=>({payload:e,meta:t})),cancel:Gt("client/cancel",e=>({payload:e})),failure:Gt("client/failure",(e,t)=>({payload:e,meta:t})),error:Gt("client/error",(e,t)=>({payload:e,meta:t}))}),gt=Fk(),rz=r=>e=>e.pipe(Xt(gt.request.match),di(t=>{const{meta:{controller:i,transaction:n}}=t;return new Ee(a=>{if(i.signal.aborted)return a.next(gt.cancel({transaction:n,reason:`request [${n}] was aborted!`})),a.complete();a.add(e.pipe(Xt(gt.cancel.match)).subscribe(o=>{o.payload.transaction===n&&(i.signal.aborted||i.abort(),a.complete())})),a.add(R3(i.signal,"abort").subscribe(()=>{a.next(gt.cancel({transaction:n,reason:`request [${n}] was aborted!`})),a.complete()})),a.add(y1(r(t)).subscribe({next:o=>a.next(o),error:o=>a.next(gt.error(o,{request:t})),complete:()=>a.complete()}))})})),Bk=r=>(r=Object.assign({},{count:0,delay:0},r),(e,t)=>e.pipe(rz(i=>e.pipe(Xt(gt.failure.match),Xt(n=>n.meta.request===i),A_(t),L1(([n,a])=>{var o,s;const{transaction:c}=i.meta,l=a[c];if(!l)return Ui;const h=(s=(o=l.retry)===null||o===void 0?void 0:o.length)!==null&&s!==void 0?s:0,d=Object.assign({},r,i.meta.retry);if(h>=d.count)throw d.count?Error("maximum retries executed!",{cause:n.payload}):n.payload;return(typeof d.delay=="function"?y1(d.delay(n.payload.cause)).pipe(Z1(v=>{throw Error("failed to resolve delay",{cause:v})})):cC(d.delay)).pipe($e(()=>gt.retry(i)))}))))),jk=r=>e=>e.pipe(rz(t=>y1(r(t.payload,t.meta.controller.signal)).pipe($e(i=>gt.success(i,{request:t})),Z1(i=>An(gt.failure(Error(`failed to execute request for transaction ${t.meta.transaction}`,{cause:i}),{request:t})))))),qk=r=>r.pipe(Xt(gt.retry.match),$e(e=>e.payload)),iz=()=>Xt(r=>r.status==="complete"),Gk=(r={})=>il(r,e=>e.addCase(gt.request,(t,i)=>{const{transaction:n,task:a,ref:o,created:s}=i.meta;t[n]={transaction:n,task:a,ref:o,created:s}}).addCase(gt.success,(t,i)=>{const{request:n}=i.meta,{transaction:a,ref:o}=n.meta,s=t[a];if(s){const c={status:"complete",transaction:a,ref:o,value:i.payload,args:n.payload,created:s.created,completed:Date.now()};s.task.next(c),s.task.complete()}delete t[a]}).addCase(gt.retry,(t,i)=>{var n;const{transaction:a}=i.payload.meta,o=t[a];o&&((n=o.retry)!==null&&n!==void 0||(o.retry=[]),o.retry.push(Date.now()))}).addCase(gt.cancel,(t,i)=>{const{transaction:n,reason:a}=i.payload;if(t[n]){const o=Object.assign({},Dm(t[n]));o.task.error(new Z3("abort",{request:o,message:a??"request was canceled"})),delete t[n]}}).addCase(gt.failure,(t,i)=>{var n;const{payload:a,meta:o}=i,{transaction:s}=o.request.meta,c=t[s];c&&((n=c.errors)!==null&&n!==void 0||(c.errors=[]),c.errors.push(a))}).addCase(gt.error,(t,i)=>{const{payload:n,meta:a}=i,{transaction:o}=a.request.meta;if(t[o]){const s=Object.assign({},Dm(t[o]));s.task.error(new Z3("error",{request:s,message:`failed to process task [${o}]`,cause:n.cause})),delete t[o]}}));var Kk=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})},dt=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},Bm=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},pt,oa;class jm extends Ee{get closed(){return dt(this,pt,"f").closed}get state$(){return dt(this,pt,"f")}get action$(){return dt(this,pt,"f").action$}get success$(){return this.action$.pipe(Xt(gt.success.match),$e(({payload:e})=>e))}get error$(){return this.action$.pipe(To("client/error"),A_(dt(this,pt,"f")),$e(([e,t])=>{const{payload:i,meta:n}=e,{transaction:a}=n.request.meta,o=t[e.meta.request.meta.transaction];return new Z3("error",{request:o,message:`failed to process task [${a}]`,cause:i})}))}constructor(e,t){super(a=>dt(this,pt,"f").subscribe(a)),pt.set(this,void 0),oa.set(this,void 0);const i={};Bm(this,pt,new M4(Gk(i)),"f"),Bm(this,oa,new U1(()=>dt(this,pt,"f").complete()),"f"),dt(this,oa,"f").add(dt(this,pt,"f").addFlow(jk(e))),dt(this,oa,"f").add(dt(this,pt,"f").addFlow(qk));const n=Object.assign({count:0,delay:0},t==null?void 0:t.retry);dt(this,oa,"f").add(dt(this,pt,"f").addFlow(Bk(n)))}next(e,t){const i=gt.request(e,t);return dt(this,pt,"f").next(i),i.meta}nextAsync(e,t){return Kk(this,void 0,void 0,function*(){return Lr(this.next(e,t).task.pipe(iz()))})}getTaskByTransaction(e){const t=dt(this,pt,"f").value[e];return t&&t.task}getTaskByRef(e){const t=Object.values(dt(this,pt,"f").value).find(i=>i.ref===e);return t&&t.task}cancel(e,t){if(e)e&&dt(this,pt,"f").value[e]&&(t??(t=`[${e}]: transaction canceled`),dt(this,pt,"f").next(gt.cancel({transaction:e,reason:t})));else for(const i of Object.keys(dt(this,pt,"f").value))this.cancel(i,"all transactions canceled")}on(e,t){return dt(this,pt,"f").addEffect(gt[e].type,i=>{t(i,this)})}complete(){dt(this,oa,"f").unsubscribe()}asObservable(){return dt(this,pt,"f").asObservable()}}pt=new WeakMap,oa=new WeakMap;function Wk(){return{set:Gt("cache/set",(r,e)=>({payload:{key:r,entry:e}})),remove:Gt("cache/remove",r=>({payload:r})),invalidate:Gt("cache/invalidate",r=>({payload:r})),trim:Gt("cache/trim",r=>({payload:r}))}}const Wa=Wk(),Yk=(r,e)=>{var t,i;return((t=e.updated)!==null&&t!==void 0?t:0)-((i=r.updated)!==null&&i!==void 0?i:0)};function Qk(r,e={}){return il(e,t=>t.addCase(r.set,(i,n)=>{var a;const{key:o,entry:s}=n.payload,c=i[o];c?(c.updated=Date.now(),(a=c.updates)!==null&&a!==void 0||(c.updates=0),c.updates++):i[o]=Object.assign(Object.assign({},s),{created:Date.now()})}).addCase(r.remove,(i,n)=>{delete i[n.payload]}).addCase(r.invalidate,(i,n)=>{const a=i[n.payload];a&&delete a.updated}).addCase(r.trim,(i,n)=>{var a,o;const{payload:s}=n,c=(a=s.sort)!==null&&a!==void 0?a:Yk,l=Object.keys(i),h=Object.entries(i).filter(([d,u])=>!s.validate||s.validate(u)).sort((d,u)=>c(d[1],u[1])).slice(0,(o=s.size)!==null&&o!==void 0?o:Number.MAX_SAFE_INTEGER).map(([d])=>d);if(l.length!==h.length)for(const d of l){const u=h.indexOf(d);u!==-1?h.splice(u,1):delete i[d]}}))}var Wr=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},Xk=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},q1;class qm{get state$(){return Wr(this,q1,"f").asObservable()}constructor(e){q1.set(this,void 0);const{trimming:t,initial:i}=e;Xk(this,q1,new M4(Qk(Wa,i)),"f"),t&&Wr(this,q1,"f").addEffect("cache/set",()=>Wr(this,q1,"f").next(Wa.trim(t)))}setItem(...e){Wr(this,q1,"f").next(Wa.set(...e))}getItem(e){return Wr(this,q1,"f").value[e]}removeItem(e){Wr(this,q1,"f").next(Wa.remove(e))}invalidate(e){Wr(this,q1,"f").next(Wa.invalidate(e))}trim(e){Wr(this,q1,"f").next(Wa.trim(e))}reset(){Wr(this,q1,"f").reset()}complete(){Wr(this,q1,"f").complete()}}q1=new WeakMap;var Ge=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},Ya=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},Jk=globalThis&&globalThis.__rest||function(r,e){var t={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(r);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(r,i[n])&&(t[i[n]]=r[i[n]]);return t},sa,Er,Yi,r2,i2,Ph,nu;const Zk=(r=0)=>e=>{var t;return((t=e.updated)!==null&&t!==void 0?t:0)+r>Date.now()},eE=r=>{if(typeof r=="function")return r;switch(r){case"concat":return ok;case"merge":return sk;case"switch":default:return ck}};class h1{get client(){return Ge(this,Er,"f")}get cache(){return Ge(this,Yi,"f")}constructor(e){var t;sa.set(this,new U1),Er.set(this,void 0),Yi.set(this,void 0),r2.set(this,new $i),i2.set(this,void 0),Ph.set(this,void 0),nu.set(this,X_()),Ya(this,i2,n=>wk(e.key(n),Ge(this,nu,"f")),"f"),Ya(this,Ph,(t=e==null?void 0:e.validate)!==null&&t!==void 0?t:Zk(e==null?void 0:e.expire),"f"),e.client instanceof jm?Ya(this,Er,e.client,"f"):(Ya(this,Er,new jm(e.client.fn,e.client.options),"f"),Ge(this,sa,"f").add(()=>Ge(this,Er,"f").complete())),e.cache instanceof qm?Ya(this,Yi,e.cache,"f"):(Ya(this,Yi,new qm(e.cache||{}),"f"),Ge(this,sa,"f").add(()=>Ge(this,Yi,"f").complete()));const i=eE(e.queueOperator);Ge(this,sa,"f").add(()=>Ge(this,r2,"f").complete()),Ge(this,sa,"f").add(Ge(this,r2,"f").pipe(i(({args:n,options:a})=>new Ee(o=>{const{task:s,transaction:c}=Ge(this,Er,"f").next(n,a);o.add(s.pipe(Z1(()=>Ui)).subscribe(o)),o.add(()=>{setTimeout(()=>Ge(this,Er,"f").cancel(c))})})),iz(),P_(()=>!Ge(this,Er,"f").closed)).subscribe(n=>{const{args:a,value:o,transaction:s,ref:c}=n,l=c??Ge(this,i2,"f").call(this,a);Ge(this,Yi,"f").setItem(l,{value:o,args:a,transaction:s})}))}next(e,t){Ge(this,r2,"f").next({args:e,options:t})}query(e,t){var i;const n=Ge(this,i2,"f").call(this,e);return(i=Ge(this,Er,"f").getTaskByRef(n))!==null&&i!==void 0?i:this._createTask(n,e,t)}queryAsync(e,t){const i=t||{},{awaitResolve:n}=i,a=Jk(i,["awaitResolve"]);return(n?V1:Lr)(this._query(e,a))}complete(){Ge(this,sa,"f").unsubscribe()}_query(e,t){var i;const n=Ge(this,i2,"f").call(this,e);return(i=Ge(this,Er,"f").getTaskByRef(n))!==null&&i!==void 0?i:this._createTask(n,e,t)}_createTask(e,t,i){var n;const a=new c_,o=Ge(this,Yi,"f").getItem(e);if(o){const{value:l,args:h,created:d,updated:u,updates:v,transaction:m}=o,f={status:"cache",value:l,args:h,created:d,updated:u,updates:v,transaction:m};a.next(f)}const s=((n=i==null?void 0:i.cache)===null||n===void 0?void 0:n.validate)||Ge(this,Ph,"f");return o&&s(o,t)?a.complete():Ge(this,r2,"f").next({args:t,options:{ref:e,task:a}}),a.asObservable()}}sa=new WeakMap,Er=new WeakMap,Yi=new WeakMap,r2=new WeakMap,i2=new WeakMap,Ph=new WeakMap,nu=new WeakMap;h1.extractQueryValue=lk;var jn=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},Gm=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},Ms,Qi;class tE extends Ee{get currentContext(){return jn(this,Qi,"f").value}get currentContext$(){return jn(this,Qi,"f").asObservable()}get client(){return jn(this,Ms,"f")}constructor(e){super(t=>jn(this,Qi,"f").subscribe(t)),Ms.set(this,void 0),Qi.set(this,void 0),Gm(this,Ms,new h1(e),"f"),Gm(this,Qi,new Do(void 0),"f")}setCurrentContext(e){typeof e=="string"?this.resolveContext(e).pipe(Z1(()=>Ui)).subscribe(t=>this.setCurrentContext(t)):ak(e,jn(this,Qi,"f").value)||jn(this,Qi,"f").next(e)}resolveContext(e){return jn(this,Ms,"f").query({id:e}).pipe($e(t=>t.value))}}Ms=new WeakMap,Qi=new WeakMap;var Td=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})},Je=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},qn=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},yi,Ah,Cs,ca,n2,la,Hs,Vh;let rE=class{get contextClient(){return Je(this,yi,"f")}get queryClient(){return Je(this,Ah,"f")}get currentContext$(){return Je(this,yi,"f").currentContext$}get currentContext(){return Je(this,yi,"f").currentContext}set currentContext(e){e?this.setCurrentContext(e):this.clearCurrentContext()}constructor(e){var t,i,n;yi.set(this,void 0),Ah.set(this,void 0),Cs.set(this,void 0),ca.set(this,void 0),n2.set(this,new U1),la.set(this,void 0),Hs.set(this,void 0),Vh.set(this,void 0);const{config:a,event:o,parentContext:s}=e;a.resolveContext&&(this.resolveContext=(t=a.resolveContext)===null||t===void 0?void 0:t.bind(this)),a.validateContext&&(this.validateContext=(i=a.validateContext)===null||i===void 0?void 0:i.bind(this)),qn(this,la,a.contextType,"f"),qn(this,Hs,a.contextFilter,"f"),qn(this,yi,new tE(a.client.get),"f"),qn(this,Ah,new h1(a.client.query),"f"),a.client.related&&qn(this,Cs,new h1(a.client.related),"f"),qn(this,Vh,(n=a.contextParameterFn)!==null&&n!==void 0?n:c=>({search:c.search,filter:{type:c.type}}),"f"),o&&(qn(this,ca,o,"f"),Je(this,n2,"f").add(Je(this,yi,"f").currentContext$.pipe(O3()).subscribe(([c,l])=>{o.dispatchEvent("onCurrentContextChanged",{source:this,canBubble:!0,detail:{previous:c,next:l}})})),Je(this,n2,"f").add(o.addEventListener("onCurrentContextChanged",c=>{c.source!==this&&(this.currentContext=c.detail.next)}))),s&&Je(this,n2,"f").add(s.contextClient.currentContext$.pipe(L1(c=>Td(this,void 0,void 0,function*(){var l;if(c){const h=yield(l=Je(this,ca,"f"))===null||l===void 0?void 0:l.dispatchEvent("onParentContextChanged",{source:this,detail:c,cancelable:!0});return{next:c,canceled:h==null?void 0:h.canceled}}return{next:c}})),Xt(c=>!c.canceled),$e(({next:c})=>c)).subscribe(c=>Td(this,void 0,void 0,function*(){if(c)try{yield this.setCurrentContext(c,{validate:!0,resolve:!0})}catch(l){console.warn("ContextProvider::onParentContextChanged",l)}else this.clearCurrentContext()})))}setCurrentContext(e,t){var i,n,a;return Td(this,void 0,void 0,function*(){if(e===this.currentContext)return e;if(t!=null&&t.validate&&!this.validateContext(e)){if(t.resolve){const s=yield(i=Je(this,ca,"f"))===null||i===void 0?void 0:i.dispatchEvent("onSetContextResolve",{source:this,cancelable:!0,detail:{context:e}});if(s!=null&&s.canceled)throw Error("resolving of context was canceled");try{const c=yield this.resolveContextAsync(e),l=yield(n=Je(this,ca,"f"))===null||n===void 0?void 0:n.dispatchEvent("onSetContextResolved",{source:this,cancelable:!0,detail:{input:e,result:c}});if(l!=null&&l.canceled)throw Error("resolving of context was canceled");return this.setCurrentContext(c)}catch(c){console.error("failed to resolve context",e,c)}}throw Error("failed to validate provided context")}const o=yield(a=Je(this,ca,"f"))===null||a===void 0?void 0:a.dispatchEvent("onCurrentContextChange",{source:this,canBubble:!0,cancelable:!0,detail:{context:e}});if(o!=null&&o.canceled)throw Error("change of context was aborted");return Je(this,yi,"f").setCurrentContext(e),e})}queryContext(e){const t=this.queryClient.query(Je(this,Vh,"f").call(this,{search:e,type:Je(this,la,"f")})).pipe($e(i=>i.value));return Je(this,Hs,"f")?t.pipe($e(Je(this,Hs,"f"))):t}queryContextAsync(e){return V1(this.queryContext(e))}validateContext(e){return Je(this,la,"f")?Je(this,la,"f").map(t=>t.toLowerCase()).includes(e.type.id.toLowerCase()):!0}resolveContext(e){return this.relatedContexts({item:e,filter:{type:Je(this,la,"f")}}).pipe($e(t=>t.filter(i=>this.validateContext(i))),$e(t=>{const i=t.shift();if(!i)throw Error("failed to resolve context");return t.length&&console.warn("ContextProvider::relatedContext","multiple items found 🤣",t),i}))}resolveContextAsync(e){return V1(this.resolveContext(e))}relatedContexts(e){return Je(this,Cs,"f")?Je(this,Cs,"f").query(e).pipe($e(({value:t})=>t)):b_(()=>Error("ContextProvider::relatedContexts - no client defined for resolving related context"))}relatedContextsAsync(e){return V1(this.relatedContexts(e))}clearCurrentContext(){Je(this,yi,"f").setCurrentContext(void 0)}dispose(){Je(this,n2,"f").unsubscribe()}};yi=new WeakMap,Ah=new WeakMap,Cs=new WeakMap,ca=new WeakMap,n2=new WeakMap,la=new WeakMap,Hs=new WeakMap,Vh=new WeakMap;var iE=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const nE="context",aE={name:nE,configure:()=>new nk,initialize:r=>iE(void 0,void 0,void 0,function*(){var e;const t=yield r.config.createConfig(r),i=r.hasModule("event")?yield r.requireInstance("event"):void 0,n=(e=r.ref)===null||e===void 0?void 0:e.context;return new rE({config:t,event:i,parentContext:n})}),dispose:r=>{r.instance.dispose()}};var Km=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};class oE{constructor(e){this.clientKey=e.clientKey,this.endpoint=e.endpoint,this.clientCtor=e.clientCtor}createHttpClientClient(e){return Km(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 Km(this,void 0,void 0,function*(){if(!this.endpoint)throw Error("no endpoint defined!");return new this.clientCtor({http:e,endpoint:this.endpoint})})}}var Id=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};class sE{constructor(e,t){this._client=e,this._http=t}get environment(){return this._client.environment}resolveServices(){return this._client.fetchEnvironment()}resolveService(e){return Id(this,void 0,void 0,function*(){return this._client.resolveService(e)})}createClient(e,t){return Id(this,void 0,void 0,function*(){const i=yield this.resolveService(e);if(!i)throw Error(`Could not load configuration of service [${e}]`);return this._http.createClient(Object.assign(Object.assign({},t),{baseUri:i.uri,defaultScopes:i.defaultScopes}))})}configureClient(e,t){return Id(this,void 0,void 0,function*(){const{key:i,alias:n}=typeof e=="string"?{key:e,alias:e}:e,{uri:a,defaultScopes:o}=yield this.resolveService(i);t.addConfig($_(n,{baseUri:a,defaultScopes:o}))})}}var Rd=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})},Wm=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},cE=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},ks;const Ym="services";class lE{get environment(){var e;const t=(e=Wm(this,ks,"f").cache.getItem(Ym))===null||e===void 0?void 0:e.value;if(!t)throw Error("no cached environment found");return t}constructor({http:e,endpoint:t}){ks.set(this,void 0),this.http=e,this.endpoint=t,cE(this,ks,new h1({client:{fn:()=>e.fetch$(t,{selector:this.selector.bind(this)})},key:()=>Ym,expire:5*60*1e3}),"f")}fetchEnvironment(){return Rd(this,void 0,void 0,function*(){return Lr(h1.extractQueryValue(Wm(this,ks,"f").query(void 0,{cache:{suppressInvalid:!0}})))})}selector(e){return Rd(this,void 0,void 0,function*(){const t=yield e.json(),i=t.services.reduce((n,a)=>Object.assign(n,{[a.key]:{clientId:t.clientId,uri:a.uri,defaultScopes:[t.clientId+"/.default"]}}),{});return Object.assign(Object.assign({},t),{services:i})})}resolveService(e){return Rd(this,void 0,void 0,function*(){try{const{services:t}=yield this.fetchEnvironment();return t[e]}catch(t){throw console.error(t),t}})}}ks=new WeakMap;const hE="serviceDiscovery";var dE=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const uE={name:hE,configure:()=>new oE({clientCtor:lE,clientKey:"service_discovery",endpoint:"/_discovery/environments/current"}),initialize:({config:r,requireInstance:e})=>dE(void 0,void 0,void 0,function*(){const t=yield e("http"),i=yield r.createHttpClientClient(t),n=yield r.createClient(i);return new sE(n,t)})};class vE{}class vi extends Error{constructor(e,t){super(`unsupported version ${e}`,{cause:t}),this.version=e}}const mE=(r,e)=>{var t;const i=(t=_r[r])!==null&&t!==void 0?t:r;switch(i){case _r.v2:throw new vi(r);case _r.v1:default:{const{id:n}=e,a=new URLSearchParams;return a.append("api-version",i),`/contexts/${n}/?${String(a)}`}}},fE=(r,e,t)=>[mE(r,e),t],pE=(r,e,t="json")=>(i,n)=>r[t](...fE(e,i,n));var gE=["eq","ne","gt","ge","lt","le"],Xl=["and","or","not"],_E=["any","all"],zE=["startswith","endswith","contains"],yE=["expand","levels","select","skip","top","count","orderby","filter"],Qm=/\((.*)\)/,Xm=/(?!indexof)\((\w+)\)/,Jm;(function(r){r.sum="sum",r.min="min",r.max="max",r.average="average",r.countdistinct="countdistinct"})(Jm||(Jm={}));var _i="";function nz(r){var e=r===void 0?{}:r,t=e.select,i=e.search,n=e.skiptoken,a=e.format,o=e.top,s=e.skip,c=e.filter,l=e.transform,h=e.orderBy,d=e.key,u=e.count,v=e.expand,m=e.action,f=e.func,C="",_=[],p={};if(d!=null&&(C+="(".concat(ni(d,_),")")),(c||typeof u=="object")&&(p.$filter=Vc(typeof u=="object"?u:c,_)),l&&(p.$apply=az(l)),v&&(p.$expand=Sh(v)),h&&(p.$orderby=g6(h)),u&&(typeof u=="boolean"?p.$count=!0:C+="/$count"),typeof o=="number"&&(p.$top=o),typeof s=="number"&&(p.$skip=s),m&&(C+="/".concat(m)),f){if(typeof f=="string")C+="/".concat(f);else if(typeof f=="object"){var z=Object.keys(f)[0],M=ni(f[z],_);C+="/".concat(z),M!==""&&(C+="(".concat(M,")"))}}return _.length>0&&Object.assign(p,_.reduce(function(A,I){var N;return Object.assign(A,(N={},N["@".concat(I.name)]=ni(I.value),N))},{})),CE(C,wt({$select:t,$search:i,$skiptoken:n,$format:a},p))}function Od(r,e,t){return t===void 0&&(t=[]),"".concat(r," eq ").concat(ni(e,t))}function Vc(r,e,t){return r===void 0&&(r={}),e===void 0&&(e=[]),t===void 0&&(t=""),(Array.isArray(r)?r:[r]).reduce(function(a,o){if(o){var s=i(o,e,t);s&&a.push(s)}return a},[]).join(" and ");function i(a,o,s){a===void 0&&(a={}),o===void 0&&(o=[]),s===void 0&&(s="");var c="";if(typeof a=="string")c=a;else if(a&&typeof a=="object"){var l=Object.keys(a).reduce(function(h,d){var u=a[d];if(u===void 0)return h;var v="";if(s?d===_i?v=s:Xm.test(d)?v=d.replace(Xm,function(p,z){return z.trim()===_i?"(".concat(s,")"):"(".concat(s,"/").concat(z.trim(),")")}):Qm.test(d)?v=d.replace(Qm,function(p,z){return z.trim()===_i?"(".concat(s,")"):"(".concat(s,"/").concat(z.trim(),")")}):v="".concat(s,"/").concat(d):v=d,d===_i&&Array.isArray(u))return h.concat(u.map(function(p){return Od(v,p)}));if(["number","string","boolean"].indexOf(typeof u)!==-1||u instanceof Date||u===null)h.push(Od(v,u,o));else if(Array.isArray(u)){var m=d,f=u.map(function(p){return Vc(p,o,s)}).filter(function(p){return p}).map(function(p){return Xl.indexOf(m)!==-1?"(".concat(p,")"):p});f.length&&(Xl.indexOf(m)!==-1?f.length&&(m==="not"?h.push(Zm(f)):h.push("(".concat(f.join(" ".concat(m," ")),")"))):h.push(f.join(" ".concat(m," "))))}else if(Xl.indexOf(v)!==-1){var C=v,f=Object.keys(u).map(function(z){var M;return i((M={},M[z]=u[z],M))});f.length&&(C==="not"?h.push(Zm(f)):h.push("(".concat(f.join(" ".concat(C," ")),")")))}else if(typeof u=="object")if("type"in u)h.push(Od(v,u,o));else{var _=Object.keys(u);_.forEach(function(p){if(u[p]!==void 0)if(gE.indexOf(p)!==-1)h.push("".concat(v," ").concat(p," ").concat(ni(u[p],o)));else if(Xl.indexOf(p)!==-1)Array.isArray(u[p])?h.push(u[p].map(function(I){return"("+i(I,o,v)+")"}).join(" ".concat(p," "))):h.push("("+i(u[p],o,v)+")");else if(_E.indexOf(p)!==-1){var z=n(d.toLowerCase(),u[p],p,v);z&&h.push(z)}else if(p==="has")h.push("".concat(v," ").concat(p," ").concat(ni(u[p],o)));else if(p==="in"){var M=Array.isArray(u[p])?u[p]:u[p].value.map(function(I){return{type:u[p].type,value:I}});h.push(v+" in ("+M.map(function(I){return ni(I,o)}).join(",")+")")}else if(zE.indexOf(p)!==-1)h.push("".concat(p,"(").concat(v,",").concat(ni(u[p],o),")"));else{var A=i(u,o,v);A&&h.push(A)}})}else throw new Error("Unexpected value type: ".concat(u));return h},[]);c=l.join(" and ")}return c}function n(a,o,s,c){var l="";if(typeof o=="string"||o instanceof String)l=wE(a,o,s,c);else if(o){var h=Array.isArray(o)?o.reduce(function(u,v){return v.hasOwnProperty(_i)?(u.hasOwnProperty(_i)||(u[_i]=[]),u[_i].push(v[_i]),u):wt(wt({},u),v)},{}):o,d=i(h,e,a);l="".concat(c,"/").concat(s,"(").concat(d?"".concat(a,":").concat(d):"",")")}return l}}function wE(r,e,t,i){var n="",a=t=="all"?"ne":"eq";return n="".concat(i,"/").concat(t,"(").concat(r,": ").concat(r," ").concat(a," '").concat(e,"')"),n}function bE(r){return r=r.replace(/%/g,"%25"),r=r.replace(/\+/g,"%2B"),r=r.replace(/\//g,"%2F"),r=r.replace(/\?/g,"%3F"),r=r.replace(/#/g,"%23"),r=r.replace(/&/g,"%26"),r=r.replace(/'/g,"''"),r}function ni(r,e){if(typeof r=="string")return"'".concat(bE(r),"'");if(r instanceof Date)return r.toISOString();if(typeof r=="number")return r;if(Array.isArray(r))return"[".concat(r.map(function(t){return ni(t)}).join(","),"]");if(r===null)return r;if(typeof r=="object")switch(r.type){case"raw":case"guid":return r.value;case"duration":return"duration'".concat(r.value,"'");case"binary":return"binary'".concat(r.value,"'");case"alias":return Array.isArray(e)&&e.push(r),"@".concat(r.name);case"json":return escape(JSON.stringify(r.value));case"decimal":return"".concat(r.value,"M");default:return Object.entries(r).filter(function(t){var i=t[1];return i!==void 0}).map(function(t){var i=t[0],n=t[1];return"".concat(i,"=").concat(ni(n,e))}).join(",")}return r}function Sh(r){if(typeof r=="number")return r;if(typeof r=="string")return r.indexOf("/")===-1?r:r.split("/").reverse().reduce(function(t,i,n,a){return n===0?"$expand=".concat(i):n===a.length-1?"".concat(i,"(").concat(t,")"):"$expand=".concat(i,"(").concat(t,")")},"");if(Array.isArray(r))return"".concat(r.map(function(t){return Sh(t)}).join(","));if(typeof r=="object"){var e=Object.keys(r);return e.some(function(t){return yE.indexOf(t.toLowerCase())!==-1})?e.map(function(t){var i;switch(t){case"filter":i=Vc(r[t]);break;case"orderBy":i=g6(r[t]);break;case"levels":case"count":case"skip":case"top":i="".concat(r[t]);break;default:i=Sh(r[t])}return"$".concat(t.toLowerCase(),"=").concat(i)}).join(";"):e.map(function(t){var i=Sh(r[t]);return i?"".concat(t,"(").concat(i,")"):t}).join(",")}return""}function az(r){var e=Array.isArray(r)?r:[r],t=e.reduce(function(i,n){var a=n.aggregate,o=n.filter,s=n.groupBy,c=r_(n,["aggregate","filter","groupBy"]),l=Object.keys(c);if(l.length)throw new Error("Unsupported transform(s): ".concat(l));if(a&&i.push("aggregate(".concat(xE(a),")")),o){var h=Vc(o);h&&i.push("filter(".concat(Vc(h),")"))}return s&&i.push("groupby(".concat(ME(s),")")),i},[]);return t.join("/")||void 0}function xE(r){var e=Array.isArray(r)?r:[r];return e.map(function(t){return typeof t=="string"?t:Object.keys(t).map(function(i){var n=t[i];if(!n.with)throw new Error("'with' property required for '".concat(i,"'"));if(!n.as)throw new Error("'as' property required for '".concat(i,"'"));return"".concat(i," with ").concat(n.with," as ").concat(n.as)})}).join(",")}function ME(r){if(!r.properties)throw new Error("'properties' property required for groupBy");var e="(".concat(r.properties.join(","),")");return r.transform&&(e+=",".concat(az(r.transform))),e}function g6(r,e){return e===void 0&&(e=""),Array.isArray(r)?r.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 r=="object"?Object.entries(r).map(function(t){var i=t[0],n=t[1];return g6(n,"".concat(i,"/"))}).map(function(t){return"".concat(e).concat(t)}).join(","):"".concat(e).concat(String(r))}function CE(r,e){var t=Object.getOwnPropertyNames(e).filter(function(i){return e[i]!==void 0&&e[i]!==""}).map(function(i){return"".concat(i,"=").concat(e[i])});return t.length?"".concat(r,"?").concat(t.join("&")):r}function Zm(r){return"not(".concat(r.join(" and "),")")}const HE=r=>Object.keys(r).reduce((e,t)=>{var i;switch(t){case"type":return!((i=r[t])===null||i===void 0)&&i.length?Object.assign(Object.assign({},e),{[t]:{in:r[t]}}):e;default:return Object.assign(Object.assign({},e),{[t]:r[t]})}},{}),kE=r=>Object.entries(r).filter(([e,t])=>!!t).reduce((e,[t,i])=>{switch(t){case"filter":return Object.assign(Object.assign({},e),{[t]:HE(i)});default:return Object.assign(Object.assign({},e),{[t]:r[t]})}},{}),EE=r=>typeof r=="string"?r:nz(kE(r)),PE=(r,e)=>{var t;const i=(t=_r[r])!==null&&t!==void 0?t:r;switch(i){case _r.v2:throw new vi(r);case _r.v1:default:{const{query:n,includeDeleted:a}=e,o=new URLSearchParams(EE(n));return o.append("api-version",i),a&&o.append("includeDeleted","true"),`/contexts/?${String(o)}`}}},AE=(r,e,t)=>[PE(r,e),t],VE=(r,e,t="json")=>(i,n)=>r[t](...AE(e,i,n)),SE=r=>Object.keys(r).reduce((e,t)=>{var i;switch(t){case"type":return!((i=r[t])===null||i===void 0)&&i.length?Object.assign(Object.assign({},e),{[t]:{in:r[t]}}):e;default:return Object.assign(Object.assign({},e),{[t]:r[t]})}},{}),$E=r=>Object.entries(r).filter(([e,t])=>!!t).reduce((e,[t,i])=>{switch(t){case"filter":return Object.assign(Object.assign({},e),{[t]:SE(i)});default:return Object.assign(Object.assign({},e),{[t]:r[t]})}},{}),DE=r=>typeof r=="string"?r:nz($E(r)),LE=(r,e)=>{var t;const i=(t=_r[r])!==null&&t!==void 0?t:r;switch(i){case _r.v2:throw new vi(r);case _r.v1:default:{const{id:n,query:a}=e,o=new URLSearchParams(DE(a||""));return o.append("api-version",i),`/contexts/${n}/relations?${String(o)}`}}},TE=(r,e,t)=>[LE(r,e),t],IE=(r,e,t="json")=>(i,n)=>r[t](...TE(e,i,n));class RE{get Version(){return _r}constructor(e,t){this._client=e,this._method=t}get(e,...t){return pE(this._client,e,this._method)(...t)}query(e,...t){return VE(this._client,e,this._method)(...t)}related(e,...t){return IE(this._client,e,this._method)(...t)}}var _r;(function(r){r.v1="1.0",r.v2="2.0"})(_r||(_r={}));const OE=(r,e)=>{switch(r){case"v1":{const{id:t}=e,i=new URLSearchParams;return i.append("api-version","1.0"),`/bookmarks/${t}/?${String(i)}`}default:{const{id:t}=e,i=new URLSearchParams;return i.append("api-version",r),`/bookmarks/${t}/?${String(i)}`}}},NE=(r,e,t)=>{const i=OE(r,e),n=Object.assign({},{method:"Delete"},t);return[i,n]},UE=(r,e,t="fetch")=>(i,n)=>r[t](...NE(e,i,n)),FE=UE,BE=(r,e)=>{switch(r){case"v1":{const{id:t}=e,i=new URLSearchParams;return i.append("api-version","1.0"),`/bookmarks/${t}/?${String(i)}`}default:{const{id:t}=e,i=new URLSearchParams;return i.append("api-version",r),`/bookmarks/${t}/?${String(i)}`}}},jE=(r,e,t)=>[BE(r,e),t],qE=(r,e,t="json")=>(i,n)=>r[t](...jE(e,i,n)),GE=qE,KE=(r,e)=>{switch(r){case"v1":default:{const t=new URLSearchParams;return t.append("api-version",r),`/bookmarks?${String(t)}`}}},WE=(r,e,t)=>{const i=KE(r),n=new Headers;n.append("content-type","application/json");const a=Object.assign({},{method:"post",body:JSON.stringify(e),headers:n},t);return[i,a]},YE=(r,e,t="json")=>(i,n)=>r[t](...WE(e,i,n)),QE=YE,XE=(r,e)=>{switch(r){case"v1":default:{const t=new URLSearchParams;return t.append("api-version",r),`/bookmarks/${e.id}?${String(t)}`}}},JE=(r,e,t)=>{const i=XE(r,e),n=new Headers;n.append("content-type","application/json");const a=Object.assign({},{method:"patch",body:JSON.stringify(e),headers:n},t);return[i,a]},ZE=(r,e,t="json")=>(i,n)=>r[t](...JE(e,i,n)),eP=ZE,tP=r=>{switch(r){case"v1":default:{const e=new URLSearchParams;return e.append("api-version",r),`persons/me/bookmarks/?${String(e)}`}}},rP=(r,e)=>[tP(r),e],iP=(r,e,t="json")=>i=>r[t](...rP(e,i)),nP=iP,aP=(r,e)=>{switch(r){case"v1":default:{const t=new URLSearchParams;return t.append("api-version",r),`/persons/me/bookmarks/favorites?${String(t)}`}}},oP=(r,e,t)=>{const i=aP(r),n=new Headers;n.append("content-type","application/json");const a=Object.assign({},{method:"post",body:JSON.stringify(e),headers:n},t);return[i,a]},sP=(r,e,t="json")=>(i,n)=>r[t](...oP(e,i,n)),cP=sP,lP=(r,e)=>{switch(r){case"v1":default:{const{bookmarkId:t}=e,i=new URLSearchParams;return i.append("api-version","1.0"),`/persons/me/bookmarks/favorites/${t}/?${String(i)}`}}},hP=(r,e,t)=>{const i=lP(r,e),n=Object.assign({},{method:"Delete"},t);return[i,n]},dP=(r,e,t="fetch")=>(i,n)=>r[t](...hP(e,i,n)),uP=dP,vP=(r,e)=>{switch(r){case"v1":default:{const{bookmarkId:t}=e,i=new URLSearchParams;return i.append("api-version",r),`/persons/me/bookmarks/favorites/${t}?${String(i)}`}}},mP=(r,e,t)=>{const i=vP(r,e),n=new Headers;n.append("content-type","application/json");const a=Object.assign({},{method:"head",headers:n},t);return[i,a]},fP=(r,e,t="json")=>(i,n)=>r[t](...mP(e,i,n)),pP=fP;class gP{constructor(e,t){this._client=e,this._method=t}get(e,...t){return GE(this._client,e,this._method)(...t)}getAll(e){return nP(this._client,e,this._method)()}post(e,...t){return QE(this._client,e,this._method)(...t)}patch(e,...t){return eP(this._client,e,this._method)(...t)}delete(e,...t){return FE(this._client,e,this._method)(...t)}addFavorite(e,...t){return cP(this._client,e,this._method)(...t)}removeFavorite(e,...t){return uP(this._client,e,this._method)(...t)}verifyFavorite(e,...t){return pP(this._client,e,this._method)(...t)}}const _P=gP,zP=(r,e)=>{var t;const i=(t=tt[r])!==null&&t!==void 0?t:r;switch(i){case tt.v2:throw new vi(r);case tt.v1:default:{const{id:n}=e,a=new URLSearchParams;return a.append("api-version",i),`/notification/${n}/?${String(a)}`}}},yP=(r,e,t)=>[zP(r,e),t],wP=(r,e,t="json")=>(i,n)=>r[t](...yP(e,i,n)),bP=(r,e)=>{var t;const i=(t=tt[r])!==null&&t!==void 0?t:r;switch(i){case tt.v2:throw new vi(r);case tt.v1:default:{const{userId:n}=e,a=new URLSearchParams;return a.append("api-version",i),`/person/${n}/notifications/?${String(a)}`}}},xP=(r,e,t)=>{const i=bP(r,e),n=new Headers;n.append("content-type","application/json");const a=Object.assign({},{method:"post",body:JSON.stringify(e),headers:n},t);return[i,a]},MP=(r,e,t="json")=>(i,n)=>r[t](...xP(e,i,n)),CP=(r,e)=>{var t;const i=(t=tt[r])!==null&&t!==void 0?t:r;switch(i){case tt.v2:throw new vi(r);case tt.v1:default:{const{id:n}=e,a=new URLSearchParams;return a.append("api-version",i),`/notification/${n}/?${String(a)}`}}},HP=(r,e,t)=>{const i=CP(r,e),n=new Headers;n.append("content-type","application/json");const a=Object.assign({},{method:"patch",body:JSON.stringify(e),headers:n},t);return[i,a]},kP=(r,e,t="json")=>(i,n)=>r[t](...HP(e,i,n)),EP=(r,e)=>{var t;const i=(t=tt[r])!==null&&t!==void 0?t:r;switch(i){case tt.v2:throw new vi(r);case tt.v1:default:{const{userId:n}=e,a=new URLSearchParams;return a.append("api-version",i),`/person/${n}/notifications/?${String(a)}`}}},PP=(r,e,t)=>[EP(r,e),t],AP=(r,e,t="json")=>(i,n)=>r[t](...PP(e,i,n)),VP=(r,e)=>{var t;const i=(t=tt[r])!==null&&t!==void 0?t:r;switch(i){case tt.v2:throw new vi(r);case tt.v1:default:{const{id:n}=e,a=new URLSearchParams;return a.append("api-version",i),`/notification/${n}/?${String(a)}`}}},SP=(r,e,t)=>{const i=VP(r,e),n=new Headers;n.append("content-type","application/json");const a=Object.assign({},{method:"delete",headers:n},t);return[i,a]},$P=(r,e,t="json")=>(i,n)=>r[t](...SP(e,i,n));var tt;(function(r){r.v1="1.0",r.v2="2.0"})(tt||(tt={}));const DP=(r,e)=>{var t;const i=(t=tt[r])!==null&&t!==void 0?t:r;switch(i){case tt.v2:throw new vi(r);case tt.v1:default:{const{userId:n}=e,a=new URLSearchParams;return a.append("api-version",i),`/person/${n}/notifications/settings/?${String(a)}`}}},LP=(r,e,t)=>{const i=DP(r,e),n=new Headers;n.append("content-type","application/json");const a=Object.assign({},{method:"put",body:JSON.stringify(e),headers:n},t);return[i,a]},TP=(r,e,t="json")=>(i,n)=>r[t](...LP(e,i,n)),IP=TP,RP=(r,e)=>{var t;const i=(t=tt[r])!==null&&t!==void 0?t:r;switch(i){case tt.v2:throw new vi(r);case tt.v1:default:{const{userId:n}=e,a=new URLSearchParams;return a.append("api-version",i),`/person/${n}/notifications/settings/?${String(a)}`}}},OP=(r,e,t)=>[RP(r,e),t],NP=(r,e,t="json")=>(i,n)=>r[t](...OP(e,i,n)),UP=NP;class FP{get Version(){return tt}constructor(e,t){this._client=e,this._method=t}getAll(e,...t){return AP(this._client,e,this._method)(...t)}getById(e,...t){return wP(this._client,e,this._method)(...t)}setSeenByUser(e,...t){return kP(this._client,e,this._method)(...t)}create(e,...t){return MP(this._client,e,this._method)(...t)}delete(e,...t){return $P(this._client,e,this._method)(...t)}getSettings(e,...t){return UP(this._client,e,this._method)(...t)}updateSettings(e,...t){return IP(this._client,e,this._method)(...t)}}var Nd=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};class BP{constructor({createClient:e}){this._createClientFn=e}createNotificationClient(e){return Nd(this,void 0,void 0,function*(){const t=yield this._createClientFn("notification");return new FP(t,e)})}createBookmarksClient(e){return Nd(this,void 0,void 0,function*(){const t=yield this._createClientFn("bookmarks");return new _P(t,e)})}createContextClient(e){return Nd(this,void 0,void 0,function*(){const t=yield this._createClientFn("context");return new RE(t,e)})}}var oz=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const jP="services",qP=(r,e)=>t=>oz(void 0,void 0,void 0,function*(){if(r.hasClient(t))return r.createClient(t);if(e)return e.createClient(t);throw Error(`failed to create http client for service ${t}`)}),GP={name:jP,configure:()=>new vE,initialize:({ref:r,config:e,requireInstance:t,hasModule:i})=>oz(void 0,void 0,void 0,function*(){if(!e.createClient){const n=yield t("http"),a=i("serviceDiscovery")?yield t("serviceDiscovery"):r==null?void 0:r.serviceDiscovery;e.createClient=qP(n,a)}if(!e.createClient)throw Error("missing configuration for creating API client");return new BP(e)})},KP=GP;class WP extends zC{constructor(){super([HC,W_,r6,uE,KP,aE]),this.logger=new t_("FrameworkConfigurator")}configureHttp(...e){this.addConfig(IC(...e))}configureHttpClient(...e){this.addConfig($_(...e))}configureMsal(...e){this.addConfig(QH(...e))}configureServiceDiscovery(e){this.configureHttpClient("service_discovery",e.client)}}var YP=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const QP=(r,e)=>YP(void 0,void 0,void 0,function*(){const t=yield r.initialize(e),i={modules:t};return window.Fusion=i,t.event.dispatchEvent("onFrameworkLoaded",{detail:i}),i}),sz=k.createContext(null),XP=sz.Provider;var JP=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const ZP=r=>k.lazy(()=>JP(void 0,void 0,void 0,function*(){const e=new WP;yield r(e);const t=yield QP(e);return{default:({children:i})=>G(XP,Object.assign({value:t},{children:i}))}})),Ra=()=>{let r=k.useContext(sz);return r||console.warn("could not locate fusion in context!"),r??(r=window.Fusion),r||console.error("Could not load framework, might not be initiated?"),r},eA=r=>{const e=k.useMemo(()=>ZP(r.configure),[r.configure]);return G(k.Suspense,Object.assign({fallback:r.fallback},{children:G(e,{children:r.children})}))};function Re(){return Re=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},Re.apply(this,arguments)}function no(r){return no=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},no(r)}function Ud(r){return r&&no(r)==="object"&&r.constructor===Object}function cz(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},i=t.clone?Re({},r):r;return Ud(r)&&Ud(e)&&Object.keys(e).forEach(function(n){n!=="__proto__"&&(Ud(e[n])&&n in r?i[n]=cz(r[n],e[n],t):i[n]=e[n])}),i}function tA(r,e){if(no(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(no(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function rA(r){var e=tA(r,"string");return no(e)==="symbol"?e:String(e)}var iA=typeof Symbol=="function"&&Symbol.for;const lz=iA?Symbol.for("mui.nested"):"__THEME_NESTED__";var nA=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function aA(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.disableGlobal,t=e===void 0?!1:e,i=r.productionPrefix,n=i===void 0?"jss":i,a=r.seed,o=a===void 0?"":a,s=o===""?"":"".concat(o,"-"),c=0,l=function(){return c+=1,c};return function(h,d){var u=d.options.name;if(u&&u.indexOf("Mui")===0&&!d.options.link&&!t){if(nA.indexOf(h.key)!==-1)return"Mui-".concat(h.key);var v="".concat(s).concat(u,"-").concat(h.key);return!d.options.theme[lz]||o!==""?v:"".concat(v,"-").concat(l())}return"".concat(s).concat(n).concat(l())}}var e9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},nl=(typeof window>"u"?"undefined":e9(window))==="object"&&(typeof document>"u"?"undefined":e9(document))==="object"&&document.nodeType===9;function t9(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,rA(i.key),i)}}function hz(r,e,t){return e&&t9(r.prototype,e),t&&t9(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function au(r,e){return au=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},au(r,e)}function dz(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,au(r,e)}function r9(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function uz(r,e){if(r==null)return{};var t={},i=Object.keys(r),n,a;for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&(t[n]=r[n]);return t}var oA={}.constructor;function ou(r){if(r==null||typeof r!="object")return r;if(Array.isArray(r))return r.map(ou);if(r.constructor!==oA)return r;var e={};for(var t in r)e[t]=ou(r[t]);return e}function _6(r,e,t){r===void 0&&(r="unnamed");var i=t.jss,n=ou(e),a=i.plugins.onCreateRule(r,n,t);return a||(r[0],null)}var i9=function(e,t){for(var i="",n=0;n<e.length&&e[n]!=="!important";n++)i&&(i+=t),i+=e[n];return i},xa=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var i=0;i<e.length&&e[i]!=="!important";i++)t&&(t+=", "),t+=i9(e[i]," ");else t=i9(e,", ");return e[e.length-1]==="!important"&&(t+=" !important"),t};function Ro(r){return r&&r.format===!1?{linebreak:"",space:""}:{linebreak:`
|
|
73
|
+
Error Description: `+c.message)),[2,null];case 4:return i||(this.logger.warning("The developer's authority was not found within the CloudInstanceDiscoveryMetadata returned from the network request."),this.logger.verbose("Creating custom Authority for custom domain scenario."),i=r.createCloudDiscoveryMetadataFromHost(this.hostnameAndPort)),[2,i]}})})},r.prototype.getCloudDiscoveryMetadataFromHarcodedValues=function(){return this.canonicalAuthority in _m?_m[this.canonicalAuthority]:null},r.prototype.isInKnownAuthorities=function(){var e=this,t=this.authorityOptions.knownAuthorities.filter(function(i){return ke.getDomainFromUrl(i).toLowerCase()===e.hostnameAndPort});return t.length>0},r.generateAuthority=function(e,t){var i;if(t&&t.azureCloudInstance!==Cc.None){var n=t.tenant?t.tenant:w.DEFAULT_COMMON_TENANT;i=t.azureCloudInstance+"/"+n+"/"}return i||e},r.createCloudDiscoveryMetadataFromHost=function(e){return{preferred_network:e,preferred_cache:e,aliases:[e]}},r.getCloudDiscoveryMetadataFromNetworkResponse=function(e,t){for(var i=0;i<e.length;i++){var n=e[i];if(n.aliases.indexOf(t)>-1)return n}return null},r.prototype.getPreferredCache=function(){if(this.discoveryComplete())return this.metadata.preferred_cache;throw j.createEndpointDiscoveryIncompleteError("Discovery incomplete.")},r.prototype.isAlias=function(e){return this.metadata.aliases.indexOf(e)>-1},r.isPublicCloudAuthority=function(e){return w.KNOWN_PUBLIC_CLOUDS.indexOf(e)>=0},r.buildRegionalAuthorityString=function(e,t,i){var n=new ke(e);n.validateAsUri();var a=n.getUrlComponents(),o=t+"."+a.HostNameAndPort;this.isPublicCloudAuthority(a.HostNameAndPort)&&(o=t+"."+w.REGIONAL_AUTH_PUBLIC_CLOUD_SUFFIX);var s=ke.constructAuthorityUriFromObject(Ue(Ue({},n.getUrlComponents()),{HostNameAndPort:o})).urlString;return i?s+"?"+i:s},r.replaceWithRegionalInformation=function(e,t){return e.authorization_endpoint=r.buildRegionalAuthorityString(e.authorization_endpoint,t),e.token_endpoint=r.buildRegionalAuthorityString(e.token_endpoint,t,w.REGIONAL_AUTH_NON_MSI_QUERY_STRING),e.end_session_endpoint&&(e.end_session_endpoint=r.buildRegionalAuthorityString(e.end_session_endpoint,t)),e},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var V0=function(){function r(){}return r.createDiscoveredInstance=function(e,t,i,n,a,o){return ae(this,void 0,void 0,function(){var s,c;return oe(this,function(l){switch(l.label){case 0:s=r.createInstance(e,t,i,n,a,o),l.label=1;case 1:return l.trys.push([1,3,,4]),[4,s.resolveEndpointsAsync()];case 2:return l.sent(),[2,s];case 3:throw c=l.sent(),j.createEndpointDiscoveryIncompleteError(c);case 4:return[2]}})})},r.createInstance=function(e,t,i,n,a,o){if(F.isEmpty(e))throw Qe.createUrlEmptyError();return new A0(e,t,i,n,a,o)},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var S0=function(){function r(){this.failedRequests=[],this.errors=[],this.cacheHits=0}return r.isServerTelemetryEntity=function(e,t){var i=e.indexOf(Ut.CACHE_KEY)===0,n=!0;return t&&(n=t.hasOwnProperty("failedRequests")&&t.hasOwnProperty("errors")&&t.hasOwnProperty("cacheHits")),i&&n},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var zm=function(){function r(){}return r.isThrottlingEntity=function(e,t){var i=!1;e&&(i=e.indexOf(Ws.THROTTLING_PREFIX)===0);var n=!0;return t&&(n=t.hasOwnProperty("throttleTime")),i&&n},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var oH={sendGetRequestAsync:function(){var r="Network interface - sendGetRequestAsync() has not been implemented for the Network interface.";return Promise.reject(Q.createUnexpectedError(r))},sendPostRequestAsync:function(){var r="Network interface - sendPostRequestAsync() has not been implemented for the Network interface.";return Promise.reject(Q.createUnexpectedError(r))}};/*! @azure/msal-common v9.1.1 2023-01-19 */var Kl={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."}},ym=function(r){F1(e,r);function e(t,i){var n=r.call(this,t,i)||this;return n.name="JoseHeaderError",Object.setPrototypeOf(n,e.prototype),n}return e.createMissingKidError=function(){return new e(Kl.missingKidError.code,Kl.missingKidError.desc)},e.createMissingAlgError=function(){return new e(Kl.missingAlgError.code,Kl.missingAlgError.desc)},e}(Q);/*! @azure/msal-common v9.1.1 2023-01-19 */var sH=function(){function r(e){this.typ=e.typ,this.alg=e.alg,this.kid=e.kid}return r.getShrHeaderString=function(e){if(!e.kid)throw ym.createMissingKidError();if(!e.alg)throw ym.createMissingAlgError();var t=new r({typ:e.typ||q3.Jwt,kid:e.kid,alg:e.alg});return JSON.stringify(t)},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var cH=function(){function r(e,t){this.cacheOutcome=ga.NO_CACHE_HIT,this.cacheManager=t,this.apiId=e.apiId,this.correlationId=e.correlationId,this.wrapperSKU=e.wrapperSKU||w.EMPTY_STRING,this.wrapperVer=e.wrapperVer||w.EMPTY_STRING,this.telemetryCacheKey=Ut.CACHE_KEY+T1.CACHE_KEY_SEPARATOR+e.clientId}return r.prototype.generateCurrentRequestHeaderValue=function(){var e=""+this.apiId+Ut.VALUE_SEPARATOR+this.cacheOutcome,t=[this.wrapperSKU,this.wrapperVer].join(Ut.VALUE_SEPARATOR),i=this.getRegionDiscoveryFields(),n=[e,i].join(Ut.VALUE_SEPARATOR);return[Ut.SCHEMA_VERSION,n,t].join(Ut.CATEGORY_SEPARATOR)},r.prototype.generateLastRequestHeaderValue=function(){var e=this.getLastRequests(),t=r.maxErrorsToSend(e),i=e.failedRequests.slice(0,2*t).join(Ut.VALUE_SEPARATOR),n=e.errors.slice(0,t).join(Ut.VALUE_SEPARATOR),a=e.errors.length,o=t<a?Ut.OVERFLOW_TRUE:Ut.OVERFLOW_FALSE,s=[a,o].join(Ut.VALUE_SEPARATOR);return[Ut.SCHEMA_VERSION,e.cacheHits,i,n,s].join(Ut.CATEGORY_SEPARATOR)},r.prototype.cacheFailedRequest=function(e){var t=this.getLastRequests();t.errors.length>=Ut.MAX_CACHED_ERRORS&&(t.failedRequests.shift(),t.failedRequests.shift(),t.errors.shift()),t.failedRequests.push(this.apiId,this.correlationId),F.isEmpty(e.subError)?F.isEmpty(e.errorCode)?e&&e.toString()?t.errors.push(e.toString()):t.errors.push(Ut.UNKNOWN_ERROR):t.errors.push(e.errorCode):t.errors.push(e.subError),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,t)},r.prototype.incrementCacheHits=function(){var e=this.getLastRequests();return e.cacheHits+=1,this.cacheManager.setServerTelemetry(this.telemetryCacheKey,e),e.cacheHits},r.prototype.getLastRequests=function(){var e=new S0,t=this.cacheManager.getServerTelemetry(this.telemetryCacheKey);return t||e},r.prototype.clearTelemetryCache=function(){var e=this.getLastRequests(),t=r.maxErrorsToSend(e),i=e.errors.length;if(t===i)this.cacheManager.removeItem(this.telemetryCacheKey);else{var n=new S0;n.failedRequests=e.failedRequests.slice(t*2),n.errors=e.errors.slice(t),this.cacheManager.setServerTelemetry(this.telemetryCacheKey,n)}},r.maxErrorsToSend=function(e){var t,i=0,n=0,a=e.errors.length;for(t=0;t<a;t++){var o=e.failedRequests[2*t]||w.EMPTY_STRING,s=e.failedRequests[2*t+1]||w.EMPTY_STRING,c=e.errors[t]||w.EMPTY_STRING;if(n+=o.toString().length+s.toString().length+c.length+3,n<Ut.MAX_LAST_HEADER_BYTES)i+=1;else break}return i},r.prototype.getRegionDiscoveryFields=function(){var e=[];return e.push(this.regionUsed||w.EMPTY_STRING),e.push(this.regionSource||w.EMPTY_STRING),e.push(this.regionOutcome||w.EMPTY_STRING),e.join(",")},r.prototype.updateRegionDiscoveryMetadata=function(e){this.regionUsed=e.region_used,this.regionSource=e.region_source,this.regionOutcome=e.region_outcome},r.prototype.setCacheOutcome=function(e){this.cacheOutcome=e},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var O_=function(){function r(e,t,i,n,a,o){this.authority=t,this.libraryName=n,this.libraryVersion=a,this.applicationTelemetry=o,this.clientId=e,this.logger=i,this.callbacks=new Map,this.eventsByCorrelationId=new Map,this.staticFieldsByCorrelationId=new Map,this.measurementsById=new Map,this.countersByCorrelationId=new Map}return r.prototype.startPerformanceMeasurement=function(e,t){return{}},r.prototype.startPerformanceMeasuremeant=function(e,t){return{}},r.prototype.startMeasurement=function(e,t){var i=this,n,a,o=t||this.generateId();t||this.logger.info("PerformanceClient: No correlation id provided for "+e+", generating",o),this.logger.trace("PerformanceClient: Performance measurement started for "+e,o);var s,c=this.startPerformanceMeasuremeant(e,o);if(c.startMeasurement)c.startMeasurement(),s=c;else{var l=this.startPerformanceMeasurement(e,o);l.startMeasurement(),s=l}var h={eventId:this.generateId(),status:M2.InProgress,authority:this.authority,libraryName:this.libraryName,libraryVersion:this.libraryVersion,clientId:this.clientId,name:e,startTimeMs:Date.now(),correlationId:o};this.cacheEventByCorrelationId(h);var d={appName:(n=this.applicationTelemetry)===null||n===void 0?void 0:n.appName,appVersion:(a=this.applicationTelemetry)===null||a===void 0?void 0:a.appVersion};return this.addStaticFields(d,o),this.cacheMeasurement(h,s),{endMeasurement:function(u){var v=i.endMeasurement(Ue(Ue({},h),u));return v&&i.cacheEventByCorrelationId(v),v},flushMeasurement:function(){return i.flushMeasurements(h.name,h.correlationId)},discardMeasurement:function(){return i.discardMeasurements(h.correlationId)},addStaticFields:function(u){return i.addStaticFields(u,h.correlationId)},increment:function(u){return i.increment(u,h.correlationId)},measurement:s,event:h}},r.prototype.endMeasurement=function(e){var t=this.measurementsById.get(e.eventId);if(t){this.measurementsById.delete(e.eventId),t.endMeasurement();var i=t.flushMeasurement();if(i!==null){this.logger.trace("PerformanceClient: Performance measurement ended for "+e.name+": "+i+" ms",e.correlationId);var n=Ue(Ue({durationMs:Math.round(i)},e),{status:M2.Completed});return n}else this.logger.trace("PerformanceClient: Performance measurement not taken",e.correlationId)}else this.logger.trace("PerformanceClient: Measurement not found for "+e.eventId,e.correlationId);return null},r.prototype.addStaticFields=function(e,t){var i=this.staticFieldsByCorrelationId.get(t);i?(this.logger.trace("PerformanceClient: Updating static fields"),this.staticFieldsByCorrelationId.set(t,Ue(Ue({},i),e))):(this.logger.trace("PerformanceClient: Adding static fields"),this.staticFieldsByCorrelationId.set(t,e))},r.prototype.increment=function(e,t){var i=this.countersByCorrelationId.get(t);if(!i){this.logger.trace("PerformanceClient: Setting counters"),this.countersByCorrelationId.set(t,Ue({},e));return}this.logger.trace("PerformanceClient: Updating counters");for(var n in e)i.hasOwnProperty(n)||(i[n]=0),i[n]+=e[n]},r.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.set(e.eventId,e)):(this.logger.trace("PerformanceClient: Performance measurement for "+e.name+" started",e.correlationId),this.eventsByCorrelationId.set(e.correlationId,new Map().set(e.eventId,e)))},r.prototype.cacheMeasurement=function(e,t){this.measurementsById.set(e.eventId,t)},r.prototype.flushMeasurements=function(e,t){var i=this;this.logger.trace("PerformanceClient: Performance measurements flushed for "+e,t);var n=this.eventsByCorrelationId.get(t),a=this.staticFieldsByCorrelationId.get(t),o=this.countersByCorrelationId.get(t);if(n){this.discardCache(t);var s=[];n.forEach(function(v){if(v.name!==e&&v.status!==M2.Completed){i.logger.trace("PerformanceClient: Incomplete submeasurement "+v.name+" found for "+e,t);var m=i.endMeasurement(v);m&&s.push(m)}s.push(v)});var c=s.sort(function(v,m){return v.startTimeMs-m.startTimeMs}),l=c.filter(function(v){return v.name===e&&v.status===M2.Completed});if(l.length>0){l.length>1&&this.logger.verbose("PerformanceClient: Multiple distinct top-level performance events found, using the first",t);var h=l[0];this.logger.verbose("PerformanceClient: Measurement found for "+e,t);var d=c.reduce(function(v,m){if(m.name!==e){i.logger.trace("PerformanceClient: Complete submeasurement found for "+m.name,t);var f=m.name+"DurationMs";v[f]?i.logger.verbose("PerformanceClient: Submeasurement for "+e+" already exists for "+m.name+", ignoring",t):v[f]=m.durationMs}return v},h),u=Ue(Ue(Ue({},d),a),o);this.emitEvents([u],d.correlationId)}else this.logger.verbose("PerformanceClient: No completed top-level measurements found for "+e,t)}else this.logger.verbose("PerformanceClient: No measurements found",t)},r.prototype.discardMeasurements=function(e){this.logger.trace("PerformanceClient: Performance measurements discarded",e),this.eventsByCorrelationId.delete(e)},r.prototype.discardCache=function(e){this.discardMeasurements(e),this.logger.trace("PerformanceClient: Static fields discarded",e),this.staticFieldsByCorrelationId.delete(e),this.logger.trace("PerformanceClient: Counters discarded",e),this.countersByCorrelationId.delete(e)},r.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},r.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},r.prototype.emitEvents=function(e,t){var i=this;this.logger.verbose("PerformanceClient: Emitting performance events",t),this.callbacks.forEach(function(n,a){i.logger.trace("PerformanceClient: Emitting event to callback "+a,t),n.apply(null,[e])})},r}();/*! @azure/msal-common v9.1.1 2023-01-19 */var wm=function(){function r(){}return r.prototype.startMeasurement=function(){},r.prototype.endMeasurement=function(){},r.prototype.flushMeasurement=function(){return null},r}(),lH=function(r){F1(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.generateId=function(){return"callback-id"},e.prototype.startPerformanceMeasuremeant=function(){return new wm},e.prototype.startPerformanceMeasurement=function(){return new wm},e}(O_);/*! @azure/msal-browser v2.32.2 2023-01-10 */var L={pkceNotGenerated:{code:"pkce_not_created",desc:"The PKCE code challenge and verifier could not be generated."},cryptoDoesNotExist:{code:"crypto_nonexistent",desc:"The crypto object or function is not available."},httpMethodNotImplementedError:{code:"http_method_not_implemented",desc:"The HTTP method given has not been implemented in this library."},emptyNavigateUriError:{code:"empty_navigate_uri",desc:"Navigation URI is empty. Please check stack trace for more info."},hashEmptyError:{code:"hash_empty_error",desc:"Hash value cannot be processed because it is empty. Please verify that your redirectUri is not clearing the hash. For more visit: aka.ms/msaljs/browser-errors."},hashDoesNotContainStateError:{code:"no_state_in_hash",desc:"Hash does not contain state. Please verify that the request originated from msal."},hashDoesNotContainKnownPropertiesError:{code:"hash_does_not_contain_known_properties",desc:"Hash does not contain known properites. Please verify that your redirectUri is not changing the hash. For more visit: aka.ms/msaljs/browser-errors."},unableToParseStateError:{code:"unable_to_parse_state",desc:"Unable to parse state. Please verify that the request originated from msal."},stateInteractionTypeMismatchError:{code:"state_interaction_type_mismatch",desc:"Hash contains state but the interaction type does not match the caller."},interactionInProgress:{code:"interaction_in_progress",desc:"Interaction is currently in progress. Please ensure that this interaction has been completed before calling an interactive API. For more visit: aka.ms/msaljs/browser-errors."},popupWindowError:{code:"popup_window_error",desc:"Error opening popup window. This can happen if you are using IE or if popups are blocked in the browser."},emptyWindowError:{code:"empty_window_error",desc:"window.open returned null or undefined window object."},userCancelledError:{code:"user_cancelled",desc:"User cancelled the flow."},monitorPopupTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in popup failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},monitorIframeTimeoutError:{code:"monitor_window_timeout",desc:"Token acquisition in iframe failed due to timeout. For more visit: aka.ms/msaljs/browser-errors."},redirectInIframeError:{code:"redirect_in_iframe",desc:"Redirects are not supported for iframed or brokered applications. Please ensure you are using MSAL.js in a top frame of the window if using the redirect APIs, or use the popup APIs."},blockTokenRequestsInHiddenIframeError:{code:"block_iframe_reload",desc:"Request was blocked inside an iframe because MSAL detected an authentication response. For more visit: aka.ms/msaljs/browser-errors"},blockAcquireTokenInPopupsError:{code:"block_nested_popups",desc:"Request was blocked inside a popup because MSAL detected it was running in a popup."},iframeClosedPrematurelyError:{code:"iframe_closed_prematurely",desc:"The iframe being monitored was closed prematurely."},silentLogoutUnsupportedError:{code:"silent_logout_unsupported",desc:"Silent logout not supported. Please call logoutRedirect or logoutPopup instead."},noAccountError:{code:"no_account_error",desc:"No account object provided to acquireTokenSilent and no active account has been set. Please call setActiveAccount or provide an account on the request."},silentPromptValueError:{code:"silent_prompt_value_error",desc:"The value given for the prompt value is not valid for silent requests - must be set to 'none' or 'no_session'."},noTokenRequestCacheError:{code:"no_token_request_cache_error",desc:"No token request found in cache."},unableToParseTokenRequestCacheError:{code:"unable_to_parse_token_request_cache_error",desc:"The cached token request could not be parsed."},noCachedAuthorityError:{code:"no_cached_authority_error",desc:"No cached authority found."},authRequestNotSet:{code:"auth_request_not_set_error",desc:"Auth Request not set. Please ensure initiateAuthRequest was called from the InteractionHandler"},invalidCacheType:{code:"invalid_cache_type",desc:"Invalid cache type"},notInBrowserEnvironment:{code:"non_browser_environment",desc:"Login and token requests are not supported in non-browser environments."},databaseNotOpen:{code:"database_not_open",desc:"Database is not open!"},noNetworkConnectivity:{code:"no_network_connectivity",desc:"No network connectivity. Check your internet connection."},postRequestFailed:{code:"post_request_failed",desc:"Network request failed: If the browser threw a CORS error, check that the redirectUri is registered in the Azure App Portal as type 'SPA'"},getRequestFailed:{code:"get_request_failed",desc:"Network request failed. Please check the network trace to determine root cause."},failedToParseNetworkResponse:{code:"failed_to_parse_response",desc:"Failed to parse network response. Check network trace."},unableToLoadTokenError:{code:"unable_to_load_token",desc:"Error loading token to cache."},signingKeyNotFoundInStorage:{code:"crypto_key_not_found",desc:"Cryptographic Key or Keypair not found in browser storage."},authCodeRequired:{code:"auth_code_required",desc:"An authorization code must be provided (as the `code` property on the request) to this flow."},authCodeOrNativeAccountRequired:{code:"auth_code_or_nativeAccountId_required",desc:"An authorization code or nativeAccountId must be provided to this flow."},databaseUnavailable:{code:"database_unavailable",desc:"IndexedDB, which is required for persistent cryptographic key storage, is unavailable. This may be caused by browser privacy features which block persistent storage in third-party contexts."},unableToAcquireTokenFromNativePlatform:{code:"unable_to_acquire_token_from_native_platform",desc:"Unable to acquire token from native platform. For a list of possible reasons visit aka.ms/msaljs/browser-errors."},nativeHandshakeTimeout:{code:"native_handshake_timeout",desc:"Timed out while attempting to establish connection to browser extension"},nativeExtensionNotInstalled:{code:"native_extension_not_installed",desc:"Native extension is not installed. If you think this is a mistake call the initialize function."},nativeConnectionNotEstablished:{code:"native_connection_not_established",desc:"Connection to native platform has not been established. Please install a compatible browser extension and run initialize(). For more please visit aka.ms/msaljs/browser-errors."},nativeBrokerCalledBeforeInitialize:{code:"native_broker_called_before_initialize",desc:"You must call and await the initialize function before attempting to call any other MSAL API when native brokering is enabled. For more please visit aka.ms/msaljs/browser-errors."},nativePromptNotSupported:{code:"native_prompt_not_supported",desc:"The provided prompt is not supported by the native platform. This request should be routed to the web based flow."}},R=function(r){Jt(e,r);function e(t,i){var n=r.call(this,t,i)||this;return Object.setPrototypeOf(n,e.prototype),n.name="BrowserAuthError",n}return e.createPkceNotGeneratedError=function(t){return new e(L.pkceNotGenerated.code,L.pkceNotGenerated.desc+" Detail:"+t)},e.createCryptoNotAvailableError=function(t){return new e(L.cryptoDoesNotExist.code,L.cryptoDoesNotExist.desc+" Detail:"+t)},e.createHttpMethodNotImplementedError=function(t){return new e(L.httpMethodNotImplementedError.code,L.httpMethodNotImplementedError.desc+" Given Method: "+t)},e.createEmptyNavigationUriError=function(){return new e(L.emptyNavigateUriError.code,L.emptyNavigateUriError.desc)},e.createEmptyHashError=function(t){return new e(L.hashEmptyError.code,L.hashEmptyError.desc+" Given Url: "+t)},e.createHashDoesNotContainStateError=function(){return new e(L.hashDoesNotContainStateError.code,L.hashDoesNotContainStateError.desc)},e.createHashDoesNotContainKnownPropertiesError=function(){return new e(L.hashDoesNotContainKnownPropertiesError.code,L.hashDoesNotContainKnownPropertiesError.desc)},e.createUnableToParseStateError=function(){return new e(L.unableToParseStateError.code,L.unableToParseStateError.desc)},e.createStateInteractionTypeMismatchError=function(){return new e(L.stateInteractionTypeMismatchError.code,L.stateInteractionTypeMismatchError.desc)},e.createInteractionInProgressError=function(){return new e(L.interactionInProgress.code,L.interactionInProgress.desc)},e.createPopupWindowError=function(t){var i=L.popupWindowError.desc;return i=F.isEmpty(t)?i:i+" Details: "+t,new e(L.popupWindowError.code,i)},e.createEmptyWindowCreatedError=function(){return new e(L.emptyWindowError.code,L.emptyWindowError.desc)},e.createUserCancelledError=function(){return new e(L.userCancelledError.code,L.userCancelledError.desc)},e.createMonitorPopupTimeoutError=function(){return new e(L.monitorPopupTimeoutError.code,L.monitorPopupTimeoutError.desc)},e.createMonitorIframeTimeoutError=function(){return new e(L.monitorIframeTimeoutError.code,L.monitorIframeTimeoutError.desc)},e.createRedirectInIframeError=function(t){return new e(L.redirectInIframeError.code,L.redirectInIframeError.desc+" (window.parent !== window) => "+t)},e.createBlockReloadInHiddenIframeError=function(){return new e(L.blockTokenRequestsInHiddenIframeError.code,L.blockTokenRequestsInHiddenIframeError.desc)},e.createBlockAcquireTokenInPopupsError=function(){return new e(L.blockAcquireTokenInPopupsError.code,L.blockAcquireTokenInPopupsError.desc)},e.createIframeClosedPrematurelyError=function(){return new e(L.iframeClosedPrematurelyError.code,L.iframeClosedPrematurelyError.desc)},e.createSilentLogoutUnsupportedError=function(){return new e(L.silentLogoutUnsupportedError.code,L.silentLogoutUnsupportedError.desc)},e.createNoAccountError=function(){return new e(L.noAccountError.code,L.noAccountError.desc)},e.createSilentPromptValueError=function(t){return new e(L.silentPromptValueError.code,L.silentPromptValueError.desc+" Given value: "+t)},e.createUnableToParseTokenRequestCacheError=function(){return new e(L.unableToParseTokenRequestCacheError.code,L.unableToParseTokenRequestCacheError.desc)},e.createNoTokenRequestCacheError=function(){return new e(L.noTokenRequestCacheError.code,L.noTokenRequestCacheError.desc)},e.createAuthRequestNotSetError=function(){return new e(L.authRequestNotSet.code,L.authRequestNotSet.desc)},e.createNoCachedAuthorityError=function(){return new e(L.noCachedAuthorityError.code,L.noCachedAuthorityError.desc)},e.createInvalidCacheTypeError=function(){return new e(L.invalidCacheType.code,""+L.invalidCacheType.desc)},e.createNonBrowserEnvironmentError=function(){return new e(L.notInBrowserEnvironment.code,L.notInBrowserEnvironment.desc)},e.createDatabaseNotOpenError=function(){return new e(L.databaseNotOpen.code,L.databaseNotOpen.desc)},e.createNoNetworkConnectivityError=function(){return new e(L.noNetworkConnectivity.code,L.noNetworkConnectivity.desc)},e.createPostRequestFailedError=function(t,i){return new e(L.postRequestFailed.code,L.postRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+i.split("?")[0])},e.createGetRequestFailedError=function(t,i){return new e(L.getRequestFailed.code,L.getRequestFailed.desc+" | Network client threw: "+t+" | Attempted to reach: "+i.split("?")[0])},e.createFailedToParseNetworkResponseError=function(t){return new e(L.failedToParseNetworkResponse.code,L.failedToParseNetworkResponse.desc+" | Attempted to reach: "+t.split("?")[0])},e.createUnableToLoadTokenError=function(t){return new e(L.unableToLoadTokenError.code,L.unableToLoadTokenError.desc+" | "+t)},e.createSigningKeyNotFoundInStorageError=function(t){return new e(L.signingKeyNotFoundInStorage.code,L.signingKeyNotFoundInStorage.desc+" | No match found for KeyId: "+t)},e.createAuthCodeRequiredError=function(){return new e(L.authCodeRequired.code,L.authCodeRequired.desc)},e.createAuthCodeOrNativeAccountIdRequiredError=function(){return new e(L.authCodeOrNativeAccountRequired.code,L.authCodeOrNativeAccountRequired.desc)},e.createDatabaseUnavailableError=function(){return new e(L.databaseUnavailable.code,L.databaseUnavailable.desc)},e.createUnableToAcquireTokenFromNativePlatformError=function(){return new e(L.unableToAcquireTokenFromNativePlatform.code,L.unableToAcquireTokenFromNativePlatform.desc)},e.createNativeHandshakeTimeoutError=function(){return new e(L.nativeHandshakeTimeout.code,L.nativeHandshakeTimeout.desc)},e.createNativeExtensionNotInstalledError=function(){return new e(L.nativeExtensionNotInstalled.code,L.nativeExtensionNotInstalled.desc)},e.createNativeConnectionNotEstablishedError=function(){return new e(L.nativeConnectionNotEstablished.code,L.nativeConnectionNotEstablished.desc)},e.createNativeBrokerCalledBeforeInitialize=function(){return new e(L.nativeBrokerCalledBeforeInitialize.code,L.nativeBrokerCalledBeforeInitialize.desc)},e.createNativePromptParameterNotSupportedError=function(){return new e(L.nativePromptNotSupported.code,L.nativePromptNotSupported.desc)},e}(Q);/*! @azure/msal-browser v2.32.2 2023-01-10 */var $r={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"},bs={CHANNEL_ID:"53ee284d-920a-4b59-9d30-a60315b26836",PREFERRED_EXTENSION_ID:"ppnbnpeolgkicgegkbkbjmhlideopiji",MATS_TELEMETRY:"MATS"},Si;(function(r){r.HandshakeRequest="Handshake",r.HandshakeResponse="HandshakeResponse",r.GetToken="GetToken",r.Response="Response"})(Si||(Si={}));var c1;(function(r){r.LocalStorage="localStorage",r.SessionStorage="sessionStorage",r.MemoryStorage="memoryStorage"})(c1||(c1={}));var ti;(function(r){r.GET="GET",r.POST="POST"})(ti||(ti={}));var Ce;(function(r){r.AUTHORITY="authority",r.ACQUIRE_TOKEN_ACCOUNT="acquireToken.account",r.SESSION_STATE="session.state",r.REQUEST_STATE="request.state",r.NONCE_IDTOKEN="nonce.id_token",r.ORIGIN_URI="request.origin",r.RENEW_STATUS="token.renew.status",r.URL_HASH="urlHash",r.REQUEST_PARAMS="request.params",r.SCOPES="scopes",r.INTERACTION_STATUS_KEY="interaction.status",r.CCS_CREDENTIAL="ccs.credential",r.CORRELATION_ID="request.correlationId",r.NATIVE_REQUEST="request.native",r.REDIRECT_CONTEXT="request.redirect.context"})(Ce||(Ce={}));var C2;(function(r){r.WRAPPER_SKU="wrapper.sku",r.WRAPPER_VER="wrapper.version"})(C2||(C2={}));var qe;(function(r){r[r.acquireTokenRedirect=861]="acquireTokenRedirect",r[r.acquireTokenPopup=862]="acquireTokenPopup",r[r.ssoSilent=863]="ssoSilent",r[r.acquireTokenSilent_authCode=864]="acquireTokenSilent_authCode",r[r.handleRedirectPromise=865]="handleRedirectPromise",r[r.acquireTokenByCode=866]="acquireTokenByCode",r[r.acquireTokenSilent_silentFlow=61]="acquireTokenSilent_silentFlow",r[r.logout=961]="logout",r[r.logoutPopup=962]="logoutPopup"})(qe||(qe={}));var W;(function(r){r.Redirect="redirect",r.Popup="popup",r.Silent="silent",r.None="none"})(W||(W={}));var bm;(function(r){r.Startup="startup",r.Login="login",r.Logout="logout",r.AcquireToken="acquireToken",r.SsoSilent="ssoSilent",r.HandleRedirect="handleRedirect",r.None="none"})(bm||(bm={}));var xm={scopes:rl},ro="jwk",Mm;(function(r){r.React="@azure/msal-react",r.Angular="@azure/msal-angular"})(Mm||(Mm={}));var Y3="msal.db",hH=1,dH=Y3+".keys",E1;(function(r){r[r.Default=0]="Default",r[r.AccessToken=1]="AccessToken",r[r.AccessTokenAndRefreshToken=2]="AccessTokenAndRefreshToken",r[r.RefreshToken=3]="RefreshToken",r[r.RefreshTokenAndNetwork=4]="RefreshTokenAndNetwork",r[r.Skip=5]="Skip"})(E1||(E1={}));/*! @azure/msal-browser v2.32.2 2023-01-10 */var H1={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."}},$0=function(r){Jt(e,r);function e(t,i){var n=r.call(this,t,i)||this;return n.name="BrowserConfigurationAuthError",Object.setPrototypeOf(n,e.prototype),n}return e.createRedirectUriEmptyError=function(){return new e(H1.redirectUriNotSet.code,H1.redirectUriNotSet.desc)},e.createPostLogoutRedirectUriEmptyError=function(){return new e(H1.postLogoutUriNotSet.code,H1.postLogoutUriNotSet.desc)},e.createStorageNotSupportedError=function(t){return new e(H1.storageNotSupportedError.code,H1.storageNotSupportedError.desc+" Given Location: "+t)},e.createRedirectCallbacksNotSetError=function(){return new e(H1.noRedirectCallbacksSet.code,H1.noRedirectCallbacksSet.desc)},e.createStubPcaInstanceCalledError=function(){return new e(H1.stubPcaInstanceCalled.code,H1.stubPcaInstanceCalled.desc)},e.createInMemoryRedirectUnavailableError=function(){return new e(H1.inMemRedirectUnavailable.code,H1.inMemRedirectUnavailable.desc)},e.createEntropyNotProvided=function(){return new e(H1.entropyNotProvided.code,H1.entropyNotProvided.desc)},e}(Q);/*! @azure/msal-browser v2.32.2 2023-01-10 */var Cm=function(){function r(e){this.validateWindowStorage(e),this.windowStorage=window[e]}return r.prototype.validateWindowStorage=function(e){if(e!==c1.LocalStorage&&e!==c1.SessionStorage)throw $0.createStorageNotSupportedError(e);var t=!!window[e];if(!t)throw $0.createStorageNotSupportedError(e)},r.prototype.getItem=function(e){return this.windowStorage.getItem(e)},r.prototype.setItem=function(e,t){this.windowStorage.setItem(e,t)},r.prototype.removeItem=function(e){this.windowStorage.removeItem(e)},r.prototype.getKeys=function(){return Object.keys(this.windowStorage)},r.prototype.containsKey=function(e){return this.windowStorage.hasOwnProperty(e)},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var Q3=function(){function r(){this.cache=new Map}return r.prototype.getItem=function(e){return this.cache.get(e)||null},r.prototype.setItem=function(e,t){this.cache.set(e,t)},r.prototype.removeItem=function(e){this.cache.delete(e)},r.prototype.getKeys=function(){var e=[];return this.cache.forEach(function(t,i){e.push(i)}),e},r.prototype.containsKey=function(e){return this.cache.has(e)},r.prototype.clear=function(){this.cache.clear()},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var N_=function(){function r(){}return r.extractBrowserRequestState=function(e,t){if(F.isEmpty(t))return null;try{var i=Li.parseRequestState(e,t);return i.libraryState.meta}catch(n){throw j.createInvalidStateError(t,n)}},r.parseServerResponseFromHash=function(e){if(!e)return{};var t=new ke(e);return ke.getDeserializedHash(t.getHash())},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var X3=function(r){Jt(e,r);function e(t,i,n,a){var o=r.call(this,t,n)||this;return o.COOKIE_LIFE_MULTIPLIER=24*60*60*1e3,o.cacheConfig=i,o.logger=a,o.internalStorage=new Q3,o.browserStorage=o.setupBrowserStorage(o.cacheConfig.cacheLocation),o.temporaryCacheStorage=o.setupTemporaryCacheStorage(o.cacheConfig.cacheLocation),o.migrateCacheEntries(),o}return e.prototype.setupBrowserStorage=function(t){switch(t){case c1.LocalStorage:case c1.SessionStorage:try{return new Cm(t)}catch(i){this.logger.verbose(i);break}}return this.cacheConfig.cacheLocation=c1.MemoryStorage,new Q3},e.prototype.setupTemporaryCacheStorage=function(t){switch(t){case c1.LocalStorage:case c1.SessionStorage:try{return new Cm(c1.SessionStorage)}catch(i){return this.logger.verbose(i),this.internalStorage}case c1.MemoryStorage:default:return this.internalStorage}},e.prototype.migrateCacheEntries=function(){var t=this,i=w.CACHE_PREFIX+"."+Ct.ID_TOKEN,n=w.CACHE_PREFIX+"."+Ct.CLIENT_INFO,a=w.CACHE_PREFIX+"."+Ct.ERROR,o=w.CACHE_PREFIX+"."+Ct.ERROR_DESC,s=this.browserStorage.getItem(i),c=this.browserStorage.getItem(n),l=this.browserStorage.getItem(a),h=this.browserStorage.getItem(o),d=[s,c,l,h],u=[Ct.ID_TOKEN,Ct.CLIENT_INFO,Ct.ERROR,Ct.ERROR_DESC];u.forEach(function(v,m){return t.migrateCacheEntry(v,d[m])})},e.prototype.migrateCacheEntry=function(t,i){i&&this.setTemporaryCache(t,i,!0)},e.prototype.validateAndParseJson=function(t){try{var i=JSON.parse(t);return i&&typeof i=="object"?i:null}catch{return null}},e.prototype.getItem=function(t){return this.browserStorage.getItem(t)},e.prototype.setItem=function(t,i){this.browserStorage.setItem(t,i)},e.prototype.getAccount=function(t){var i=this.getItem(t);if(!i)return null;var n=this.validateAndParseJson(i);return!n||!Wt.isAccountEntity(n)?null:Pr.toObject(new Wt,n)},e.prototype.setAccount=function(t){this.logger.trace("BrowserCacheManager.setAccount called");var i=t.generateAccountKey();this.setItem(i,JSON.stringify(t))},e.prototype.getIdTokenCredential=function(t){var i=this.getItem(t);if(!i)return this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null;var n=this.validateAndParseJson(i);return!n||!kc.isIdTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getIdTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getIdTokenCredential: cache hit"),Pr.toObject(new kc,n))},e.prototype.setIdTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setIdTokenCredential called");var i=t.generateCredentialKey();this.setItem(i,JSON.stringify(t))},e.prototype.getAccessTokenCredential=function(t){var i=this.getItem(t);if(!i)return this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null;var n=this.validateAndParseJson(i);return!n||!Ec.isAccessTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAccessTokenCredential: cache hit"),Pr.toObject(new Ec,n))},e.prototype.setAccessTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setAccessTokenCredential called");var i=t.generateCredentialKey();this.setItem(i,JSON.stringify(t))},e.prototype.getRefreshTokenCredential=function(t){var i=this.getItem(t);if(!i)return this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null;var n=this.validateAndParseJson(i);return!n||!k0.isRefreshTokenEntity(n)?(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getRefreshTokenCredential: cache hit"),Pr.toObject(new k0,n))},e.prototype.setRefreshTokenCredential=function(t){this.logger.trace("BrowserCacheManager.setRefreshTokenCredential called");var i=t.generateCredentialKey();this.setItem(i,JSON.stringify(t))},e.prototype.getAppMetadata=function(t){var i=this.getItem(t);if(!i)return this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null;var n=this.validateAndParseJson(i);return!n||!K3.isAppMetadataEntity(t,n)?(this.logger.trace("BrowserCacheManager.getAppMetadata: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getAppMetadata: cache hit"),Pr.toObject(new K3,n))},e.prototype.setAppMetadata=function(t){this.logger.trace("BrowserCacheManager.setAppMetadata called");var i=t.generateAppMetadataKey();this.setItem(i,JSON.stringify(t))},e.prototype.getServerTelemetry=function(t){var i=this.getItem(t);if(!i)return this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null;var n=this.validateAndParseJson(i);return!n||!S0.isServerTelemetryEntity(t,n)?(this.logger.trace("BrowserCacheManager.getServerTelemetry: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getServerTelemetry: cache hit"),Pr.toObject(new S0,n))},e.prototype.setServerTelemetry=function(t,i){this.logger.trace("BrowserCacheManager.setServerTelemetry called"),this.setItem(t,JSON.stringify(i))},e.prototype.getAuthorityMetadata=function(t){var i=this.internalStorage.getItem(t);if(!i)return this.logger.trace("BrowserCacheManager.getAuthorityMetadata: called, no cache hit"),null;var n=this.validateAndParseJson(i);return n&&W3.isAuthorityMetadataEntity(t,n)?(this.logger.trace("BrowserCacheManager.getAuthorityMetadata: cache hit"),Pr.toObject(new W3,n)):null},e.prototype.getAuthorityMetadataKeys=function(){var t=this,i=this.internalStorage.getKeys();return i.filter(function(n){return t.isAuthorityMetadata(n)})},e.prototype.setWrapperMetadata=function(t,i){this.internalStorage.setItem(C2.WRAPPER_SKU,t),this.internalStorage.setItem(C2.WRAPPER_VER,i)},e.prototype.getWrapperMetadata=function(){var t=this.internalStorage.getItem(C2.WRAPPER_SKU)||w.EMPTY_STRING,i=this.internalStorage.getItem(C2.WRAPPER_VER)||w.EMPTY_STRING;return[t,i]},e.prototype.setAuthorityMetadata=function(t,i){this.logger.trace("BrowserCacheManager.setAuthorityMetadata called"),this.internalStorage.setItem(t,JSON.stringify(i))},e.prototype.getActiveAccount=function(){var t=this.generateCacheKey(Ct.ACTIVE_ACCOUNT_FILTERS),i=this.getItem(t);if(!i){this.logger.trace("BrowserCacheManager.getActiveAccount: No active account filters cache schema found, looking for legacy schema");var n=this.generateCacheKey(Ct.ACTIVE_ACCOUNT),a=this.getItem(n);if(!a)return this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null;var o=this.getAccountInfoByFilter({localAccountId:a})[0]||null;return o?(this.logger.trace("BrowserCacheManager.getActiveAccount: Legacy active account cache schema found"),this.logger.trace("BrowserCacheManager.getActiveAccount: Adding active account filters cache schema"),this.setActiveAccount(o),o):null}var s=this.validateAndParseJson(i);return s?(this.logger.trace("BrowserCacheManager.getActiveAccount: Active account filters schema found"),this.getAccountInfoByFilter({homeAccountId:s.homeAccountId,localAccountId:s.localAccountId})[0]||null):(this.logger.trace("BrowserCacheManager.getActiveAccount: No active account found"),null)},e.prototype.setActiveAccount=function(t){var i=this.generateCacheKey(Ct.ACTIVE_ACCOUNT_FILTERS),n=this.generateCacheKey(Ct.ACTIVE_ACCOUNT);if(t){this.logger.verbose("setActiveAccount: Active account set");var a={homeAccountId:t.homeAccountId,localAccountId:t.localAccountId};this.browserStorage.setItem(i,JSON.stringify(a)),this.browserStorage.setItem(n,t.localAccountId)}else this.logger.verbose("setActiveAccount: No account passed, active account not set"),this.browserStorage.removeItem(i),this.browserStorage.removeItem(n)},e.prototype.getAccountInfoByFilter=function(t){var i=this.getAllAccounts();return this.logger.trace("BrowserCacheManager.getAccountInfoByFilter: total "+i.length+" accounts found"),i.filter(function(n){return!(t.username&&t.username.toLowerCase()!==n.username.toLowerCase()||t.homeAccountId&&t.homeAccountId!==n.homeAccountId||t.localAccountId&&t.localAccountId!==n.localAccountId||t.tenantId&&t.tenantId!==n.tenantId||t.environment&&t.environment!==n.environment)})},e.prototype.getAccountInfoByHints=function(t,i){var n=this.getAllAccounts().filter(function(a){if(i){var o=a.idTokenClaims&&a.idTokenClaims.sid;return i===o}return t?t===a.username:!1});if(n.length===1)return n[0];if(n.length>1)throw j.createMultipleMatchingAccountsInCacheError();return null},e.prototype.getThrottlingCache=function(t){var i=this.getItem(t);if(!i)return this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null;var n=this.validateAndParseJson(i);return!n||!zm.isThrottlingEntity(t,n)?(this.logger.trace("BrowserCacheManager.getThrottlingCache: called, no cache hit"),null):(this.logger.trace("BrowserCacheManager.getThrottlingCache: cache hit"),Pr.toObject(new zm,n))},e.prototype.setThrottlingCache=function(t,i){this.logger.trace("BrowserCacheManager.setThrottlingCache called"),this.setItem(t,JSON.stringify(i))},e.prototype.getTemporaryCache=function(t,i){var n=i?this.generateCacheKey(t):t;if(this.cacheConfig.storeAuthStateInCookie){var a=this.getItemCookie(n);if(a)return this.logger.trace("BrowserCacheManager.getTemporaryCache: storeAuthStateInCookies set to true, retrieving from cookies"),a}var o=this.temporaryCacheStorage.getItem(n);if(!o){if(this.cacheConfig.cacheLocation===c1.LocalStorage){var s=this.browserStorage.getItem(n);if(s)return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item found in local storage"),s}return this.logger.trace("BrowserCacheManager.getTemporaryCache: No cache item found in local storage"),null}return this.logger.trace("BrowserCacheManager.getTemporaryCache: Temporary cache item returned"),o},e.prototype.setTemporaryCache=function(t,i,n){var a=n?this.generateCacheKey(t):t;this.temporaryCacheStorage.setItem(a,i),this.cacheConfig.storeAuthStateInCookie&&(this.logger.trace("BrowserCacheManager.setTemporaryCache: storeAuthStateInCookie set to true, setting item cookie"),this.setItemCookie(a,i))},e.prototype.removeItem=function(t){return 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)),!0},e.prototype.containsKey=function(t){return this.browserStorage.containsKey(t)||this.temporaryCacheStorage.containsKey(t)},e.prototype.getKeys=function(){return i6(this.browserStorage.getKeys(),this.temporaryCacheStorage.getKeys())},e.prototype.clear=function(){return V(this,void 0,void 0,function(){var t=this;return S(this,function(i){switch(i.label){case 0:return[4,this.removeAllAccounts()];case 1:return i.sent(),this.removeAppMetadata(),this.getKeys().forEach(function(n){(t.browserStorage.containsKey(n)||t.temporaryCacheStorage.containsKey(n))&&(n.indexOf(w.CACHE_PREFIX)!==-1||n.indexOf(t.clientId)!==-1)&&t.removeItem(n)}),this.internalStorage.clear(),[2]}})})},e.prototype.setItemCookie=function(t,i,n){var a=encodeURIComponent(t)+"="+encodeURIComponent(i)+";path=/;SameSite=Lax;";if(n){var o=this.getCookieExpirationTime(n);a+="expires="+o+";"}this.cacheConfig.secureCookies&&(a+="Secure;"),document.cookie=a},e.prototype.getItemCookie=function(t){for(var i=encodeURIComponent(t)+"=",n=document.cookie.split(";"),a=0;a<n.length;a++){for(var o=n[a];o.charAt(0)===" ";)o=o.substring(1);if(o.indexOf(i)===0)return decodeURIComponent(o.substring(i.length,o.length))}return w.EMPTY_STRING},e.prototype.clearMsalCookies=function(){var t=this,i=w.CACHE_PREFIX+"."+this.clientId,n=document.cookie.split(";");n.forEach(function(a){for(;a.charAt(0)===" ";)a=a.substring(1);if(a.indexOf(i)===0){var o=a.split("=")[0];t.clearItemCookie(o)}})},e.prototype.clearItemCookie=function(t){this.setItemCookie(t,w.EMPTY_STRING,-1)},e.prototype.getCookieExpirationTime=function(t){var i=new Date,n=new Date(i.getTime()+t*this.COOKIE_LIFE_MULTIPLIER);return n.toUTCString()},e.prototype.getCache=function(){return this.browserStorage},e.prototype.setCache=function(){},e.prototype.generateCacheKey=function(t){var i=this.validateAndParseJson(t);return i?JSON.stringify(t):F.startsWith(t,w.CACHE_PREFIX)||F.startsWith(t,Ct.ADAL_ID_TOKEN)?t:w.CACHE_PREFIX+"."+this.clientId+"."+t},e.prototype.generateAuthorityKey=function(t){var i=Li.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(Ce.AUTHORITY+"."+i)},e.prototype.generateNonceKey=function(t){var i=Li.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(Ce.NONCE_IDTOKEN+"."+i)},e.prototype.generateStateKey=function(t){var i=Li.parseRequestState(this.cryptoImpl,t).libraryState.id;return this.generateCacheKey(Ce.REQUEST_STATE+"."+i)},e.prototype.getCachedAuthority=function(t){var i=this.generateStateKey(t),n=this.getTemporaryCache(i);if(!n)return null;var a=this.generateAuthorityKey(n);return this.getTemporaryCache(a)},e.prototype.updateCacheEntries=function(t,i,n,a,o){this.logger.trace("BrowserCacheManager.updateCacheEntries called");var s=this.generateStateKey(t);this.setTemporaryCache(s,t,!1);var c=this.generateNonceKey(t);this.setTemporaryCache(c,i,!1);var l=this.generateAuthorityKey(t);if(this.setTemporaryCache(l,n,!1),o){var h={credential:o.homeAccountId,type:Y1.HOME_ACCOUNT_ID};this.setTemporaryCache(Ce.CCS_CREDENTIAL,JSON.stringify(h),!0)}else if(!F.isEmpty(a)){var h={credential:a,type:Y1.UPN};this.setTemporaryCache(Ce.CCS_CREDENTIAL,JSON.stringify(h),!0)}},e.prototype.resetRequestCache=function(t){var i=this;this.logger.trace("BrowserCacheManager.resetRequestCache called"),F.isEmpty(t)||this.getKeys().forEach(function(n){n.indexOf(t)!==-1&&i.removeItem(n)}),t&&(this.removeItem(this.generateStateKey(t)),this.removeItem(this.generateNonceKey(t)),this.removeItem(this.generateAuthorityKey(t))),this.removeItem(this.generateCacheKey(Ce.REQUEST_PARAMS)),this.removeItem(this.generateCacheKey(Ce.ORIGIN_URI)),this.removeItem(this.generateCacheKey(Ce.URL_HASH)),this.removeItem(this.generateCacheKey(Ce.CORRELATION_ID)),this.removeItem(this.generateCacheKey(Ce.CCS_CREDENTIAL)),this.removeItem(this.generateCacheKey(Ce.NATIVE_REQUEST)),this.setInteractionInProgress(!1)},e.prototype.cleanRequestByState=function(t){if(this.logger.trace("BrowserCacheManager.cleanRequestByState called"),t){var i=this.generateStateKey(t),n=this.temporaryCacheStorage.getItem(i);this.logger.infoPii("BrowserCacheManager.cleanRequestByState: Removing temporary cache items for state: "+n),this.resetRequestCache(n||w.EMPTY_STRING)}this.clearMsalCookies()},e.prototype.cleanRequestByInteractionType=function(t){var i=this;this.logger.trace("BrowserCacheManager.cleanRequestByInteractionType called"),this.getKeys().forEach(function(n){if(n.indexOf(Ce.REQUEST_STATE)!==-1){var a=i.temporaryCacheStorage.getItem(n);if(a){var o=N_.extractBrowserRequestState(i.cryptoImpl,a);o&&o.interactionType===t&&(i.logger.infoPii("BrowserCacheManager.cleanRequestByInteractionType: Removing temporary cache items for state: "+a),i.resetRequestCache(a))}}}),this.clearMsalCookies(),this.setInteractionInProgress(!1)},e.prototype.cacheCodeRequest=function(t,i){this.logger.trace("BrowserCacheManager.cacheCodeRequest called");var n=i.base64Encode(JSON.stringify(t));this.setTemporaryCache(Ce.REQUEST_PARAMS,n,!0)},e.prototype.getCachedRequest=function(t,i){this.logger.trace("BrowserCacheManager.getCachedRequest called");var n=this.getTemporaryCache(Ce.REQUEST_PARAMS,!0);if(!n)throw R.createNoTokenRequestCacheError();var a=this.validateAndParseJson(i.base64Decode(n));if(!a)throw R.createUnableToParseTokenRequestCacheError();if(this.removeItem(this.generateCacheKey(Ce.REQUEST_PARAMS)),F.isEmpty(a.authority)){var o=this.generateAuthorityKey(t),s=this.getTemporaryCache(o);if(!s)throw R.createNoCachedAuthorityError();a.authority=s}return a},e.prototype.getCachedNativeRequest=function(){this.logger.trace("BrowserCacheManager.getCachedNativeRequest called");var t=this.getTemporaryCache(Ce.NATIVE_REQUEST,!0);if(!t)return this.logger.trace("BrowserCacheManager.getCachedNativeRequest: No cached native request found"),null;var i=this.validateAndParseJson(t);return i||(this.logger.error("BrowserCacheManager.getCachedNativeRequest: Unable to parse native request"),null)},e.prototype.isInteractionInProgress=function(t){var i=this.getInteractionInProgress();return t?i===this.clientId:!!i},e.prototype.getInteractionInProgress=function(){var t=w.CACHE_PREFIX+"."+Ce.INTERACTION_STATUS_KEY;return this.getTemporaryCache(t,!1)},e.prototype.setInteractionInProgress=function(t){var i=w.CACHE_PREFIX+"."+Ce.INTERACTION_STATUS_KEY;if(t){if(this.getInteractionInProgress())throw R.createInteractionInProgressError();this.setTemporaryCache(i,this.clientId,!1)}else!t&&this.getInteractionInProgress()===this.clientId&&this.removeItem(i)},e.prototype.getLegacyLoginHint=function(){var t=this.getTemporaryCache(Ct.ADAL_ID_TOKEN);t&&(this.browserStorage.removeItem(Ct.ADAL_ID_TOKEN),this.logger.verbose("Cached ADAL id token retrieved."));var i=this.getTemporaryCache(Ct.ID_TOKEN,!0);i&&(this.removeItem(this.generateCacheKey(Ct.ID_TOKEN)),this.logger.verbose("Cached MSAL.js v1 id token retrieved"));var n=i||t;if(n){var a=new ui(n,this.cryptoImpl);if(a.claims&&a.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"),a.claims.preferred_username;if(a.claims&&a.claims.upn)return this.logger.verbose("No SSO params used and ADAL/MSAL v1 token retrieved, setting ADAL/MSAL v1 upn as loginHint"),a.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,i){var n=i.generateCredentialKey();if(t!==n){var a=this.getItem(t);if(a)return this.removeItem(t),this.setItem(n,a),this.logger.verbose("Updated an outdated "+i.credentialType+" cache key"),n;this.logger.error("Attempted to update an outdated "+i.credentialType+" cache key but no item matching the outdated key was found in storage")}return t},e.prototype.getRedirectRequestContext=function(){return this.getTemporaryCache(Ce.REDIRECT_CONTEXT,!0)},e.prototype.setRedirectRequestContext=function(t){this.setTemporaryCache(Ce.REDIRECT_CONTEXT,t,!0)},e}(Pr),uH=function(r,e){var t={cacheLocation:c1.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1};return new X3(r,t,M0,e)};/*! @azure/msal-browser v2.32.2 2023-01-10 */var Ed="@azure/msal-browser",Ys="2.32.2";/*! @azure/msal-browser v2.32.2 2023-01-10 */var vH=function(){function r(){}return r.prototype.sendGetRequestAsync=function(e,t){return V(this,void 0,void 0,function(){var i,n,a;return S(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),[4,fetch(e,{method:ti.GET,headers:this.getFetchHeaders(t)})];case 1:return i=o.sent(),[3,3];case 2:throw n=o.sent(),window.navigator.onLine?R.createGetRequestFailedError(n,e):R.createNoNetworkConnectivityError();case 3:return o.trys.push([3,5,,6]),a={headers:this.getHeaderDict(i.headers)},[4,i.json()];case 4:return[2,(a.body=o.sent(),a.status=i.status,a)];case 5:throw o.sent(),R.createFailedToParseNetworkResponseError(e);case 6:return[2]}})})},r.prototype.sendPostRequestAsync=function(e,t){return V(this,void 0,void 0,function(){var i,n,a,o;return S(this,function(s){switch(s.label){case 0:i=t&&t.body||w.EMPTY_STRING,s.label=1;case 1:return s.trys.push([1,3,,4]),[4,fetch(e,{method:ti.POST,headers:this.getFetchHeaders(t),body:i})];case 2:return n=s.sent(),[3,4];case 3:throw a=s.sent(),window.navigator.onLine?R.createPostRequestFailedError(a,e):R.createNoNetworkConnectivityError();case 4:return s.trys.push([4,6,,7]),o={headers:this.getHeaderDict(n.headers)},[4,n.json()];case 5:return[2,(o.body=s.sent(),o.status=n.status,o)];case 6:throw s.sent(),R.createFailedToParseNetworkResponseError(e);case 7:return[2]}})})},r.prototype.getFetchHeaders=function(e){var t=new Headers;if(!(e&&e.headers))return t;var i=e.headers;return Object.keys(i).forEach(function(n){t.append(n,i[n])}),t},r.prototype.getHeaderDict=function(e){var t={};return e.forEach(function(i,n){t[n]=i}),t},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var mH=function(){function r(){}return r.prototype.sendGetRequestAsync=function(e,t){return V(this,void 0,void 0,function(){return S(this,function(i){return[2,this.sendRequestAsync(e,ti.GET,t)]})})},r.prototype.sendPostRequestAsync=function(e,t){return V(this,void 0,void 0,function(){return S(this,function(i){return[2,this.sendRequestAsync(e,ti.POST,t)]})})},r.prototype.sendRequestAsync=function(e,t,i){var n=this;return new Promise(function(a,o){var s=new XMLHttpRequest;if(s.open(t,e,!0),n.setXhrHeaders(s,i),s.onload=function(){(s.status<200||s.status>=300)&&(t===ti.POST?o(R.createPostRequestFailedError("Failed with status "+s.status,e)):o(R.createGetRequestFailedError("Failed with status "+s.status,e)));try{var c=JSON.parse(s.responseText),l={headers:n.getHeaderDict(s),body:c,status:s.status};a(l)}catch{o(R.createFailedToParseNetworkResponseError(e))}},s.onerror=function(){window.navigator.onLine?t===ti.POST?o(R.createPostRequestFailedError("Failed with status "+s.status,e)):o(R.createGetRequestFailedError("Failed with status "+s.status,e)):o(R.createNoNetworkConnectivityError())},t===ti.POST&&i&&i.body)s.send(i.body);else if(t===ti.GET)s.send();else throw R.createHttpMethodNotImplementedError(t)})},r.prototype.setXhrHeaders=function(e,t){if(t&&t.headers){var i=t.headers;Object.keys(i).forEach(function(n){e.setRequestHeader(n,i[n])})}},r.prototype.getHeaderDict=function(e){var t=e.getAllResponseHeaders(),i=t.trim().split(/[\r\n]+/),n={};return i.forEach(function(a){var o=a.split(": "),s=o.shift(),c=o.join(": ");s&&c&&(n[s]=c)}),n},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var lt=function(){function r(){}return r.clearHash=function(e){e.location.hash=w.EMPTY_STRING,typeof e.history.replaceState=="function"&&e.history.replaceState(null,w.EMPTY_STRING,""+e.location.origin+e.location.pathname+e.location.search)},r.replaceHash=function(e){var t=e.split("#");t.shift(),window.location.hash=t.length>0?t.join("#"):w.EMPTY_STRING},r.isInIframe=function(){return window.parent!==window},r.isInPopup=function(){return typeof window<"u"&&!!window.opener&&window.opener!==window&&typeof window.name=="string"&&window.name.indexOf($r.POPUP_NAME_PREFIX+".")===0},r.getCurrentUri=function(){return window.location.href.split("?")[0].split("#")[0]},r.getHomepage=function(){var e=new ke(window.location.href),t=e.getUrlComponents();return t.Protocol+"//"+t.HostNameAndPort+"/"},r.getBrowserNetworkClient=function(){return window.fetch&&window.Headers?new vH:new mH},r.blockReloadInHiddenIframes=function(){var e=ke.hashContainsKnownProperties(window.location.hash);if(e&&r.isInIframe())throw R.createBlockReloadInHiddenIframeError()},r.blockRedirectInIframe=function(e,t){var i=r.isInIframe();if(e===W.Redirect&&i&&!t)throw R.createRedirectInIframeError(i)},r.blockAcquireTokenInPopups=function(){if(r.isInPopup())throw R.createBlockAcquireTokenInPopupsError()},r.blockNonBrowserEnvironment=function(e){if(!e)throw R.createNonBrowserEnvironmentError()},r.blockNativeBrokerCalledBeforeInitialized=function(e,t){if(e&&!t)throw R.createNativeBrokerCalledBeforeInitialize()},r.detectIEOrEdge=function(){var e=window.navigator.userAgent,t=e.indexOf("MSIE "),i=e.indexOf("Trident/"),n=e.indexOf("Edge/"),a=t>0||i>0,o=n>0;return a||o},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var U_=function(){function r(e,t,i,n,a,o,s,c,l){this.config=e,this.browserStorage=t,this.browserCrypto=i,this.networkClient=this.config.system.networkClient,this.eventHandler=a,this.navigationClient=o,this.nativeMessageHandler=c,this.correlationId=l||this.browserCrypto.createNewGuid(),this.logger=n.clone($r.MSAL_SKU,Ys,this.correlationId),this.performanceClient=s}return r.prototype.clearCacheOnLogout=function(e){return V(this,void 0,void 0,function(){return S(this,function(t){switch(t.label){case 0:if(!e)return[3,5];Wt.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(Wt.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]}})})},r.prototype.initializeBaseRequest=function(e){return V(this,void 0,void 0,function(){var t,i,n,a;return S(this,function(o){switch(o.label){case 0:if(this.logger.verbose("Initializing BaseAuthRequest"),t=e.authority||this.config.auth.authority,i=i6(e&&e.scopes||[]),n=Y(Y({},e),{correlationId:this.correlationId,authority:t,scopes:i}),!n.authenticationScheme)n.authenticationScheme=Ie.BEARER,this.logger.verbose(`Authentication Scheme wasn't explicitly set in request, defaulting to "Bearer" request`);else{if(n.authenticationScheme===Ie.SSH){if(!e.sshJwk)throw Qe.createMissingSshJwkError();if(!e.sshKid)throw Qe.createMissingSshKidError()}this.logger.verbose('Authentication Scheme set to "'+n.authenticationScheme+'" as configured in Auth request')}return e.claims&&!F.isEmpty(e.claims)?(a=n,[4,this.browserCrypto.hashString(e.claims)]):[3,2];case 1:a.requestedClaimsHash=o.sent(),o.label=2;case 2:return[2,n]}})})},r.prototype.getRedirectUri=function(e){this.logger.verbose("getRedirectUri called");var t=e||this.config.auth.redirectUri||lt.getCurrentUri();return ke.getAbsoluteUrl(t,lt.getCurrentUri())},r.prototype.initializeServerTelemetryManager=function(e,t){this.logger.verbose("initializeServerTelemetryManager called");var i={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 cH(i,this.browserStorage)},r.prototype.getDiscoveredAuthority=function(e){return V(this,void 0,void 0,function(){var t;return S(this,function(i){switch(i.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,V0.createDiscoveredInstance(e,this.config.system.networkClient,this.browserStorage,t,this.logger)]):[3,2];case 1:return[2,i.sent()];case 2:return this.logger.verbose("Creating discovered authority with configured authority"),[4,V0.createDiscoveredInstance(this.config.auth.authority,this.config.system.networkClient,this.browserStorage,t,this.logger)];case 3:return[2,i.sent()]}})})},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var Lo=function(r){Jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.initializeAuthorizationCodeRequest=function(t){return V(this,void 0,void 0,function(){var i,n;return S(this,function(a){switch(a.label){case 0:return this.logger.verbose("initializeAuthorizationRequest called",t.correlationId),[4,this.browserCrypto.generatePkceCodes()];case 1:return i=a.sent(),n=Y(Y({},t),{redirectUri:t.redirectUri,code:w.EMPTY_STRING,codeVerifier:i.verifier}),t.codeChallenge=i.challenge,t.codeChallengeMethod=w.S256_CODE_CHALLENGE_METHOD,[2,n]}})})},e.prototype.initializeLogoutRequest=function(t){this.logger.verbose("initializeLogoutRequest called",t==null?void 0:t.correlationId);var i=Y({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 n=this.getLogoutHintFromIdTokenClaims(t.account);n&&(this.logger.verbose("Setting logoutHint to login_hint ID Token Claim value for the account provided"),i.logoutHint=n)}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",i.correlationId),i.postLogoutRedirectUri=ke.getAbsoluteUrl(t.postLogoutRedirectUri,lt.getCurrentUri())):this.config.auth.postLogoutRedirectUri===null?this.logger.verbose("postLogoutRedirectUri configured as null and no uri set on request, not passing post logout redirect",i.correlationId):this.config.auth.postLogoutRedirectUri?(this.logger.verbose("Setting postLogoutRedirectUri to configured uri",i.correlationId),i.postLogoutRedirectUri=ke.getAbsoluteUrl(this.config.auth.postLogoutRedirectUri,lt.getCurrentUri())):(this.logger.verbose("Setting postLogoutRedirectUri to current page",i.correlationId),i.postLogoutRedirectUri=ke.getAbsoluteUrl(lt.getCurrentUri(),lt.getCurrentUri())):this.logger.verbose("postLogoutRedirectUri passed as null, not setting post logout redirect uri",i.correlationId),i},e.prototype.getLogoutHintFromIdTokenClaims=function(t){var i=t.idTokenClaims;if(i){if(i.login_hint)return i.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,i,n){return V(this,void 0,void 0,function(){var a;return S(this,function(o){switch(o.label){case 0:return[4,this.getClientConfiguration(t,i,n)];case 1:return a=o.sent(),[2,new T_(a)]}})})},e.prototype.getClientConfiguration=function(t,i,n){return V(this,void 0,void 0,function(){var a,o;return S(this,function(s){switch(s.label){case 0:return this.logger.verbose("getClientConfiguration called",this.correlationId),[4,this.getDiscoveredAuthority(i,n)];case 1:return a=s.sent(),o=this.config.system.loggerOptions,[2,{authOptions:{clientId:this.config.auth.clientId,authority:a,clientCapabilities:this.config.auth.clientCapabilities},systemOptions:{tokenRenewalOffsetSeconds:this.config.system.tokenRenewalOffsetSeconds,preventCorsPreflight:!0},loggerOptions:{loggerCallback:o.loggerCallback,piiLoggingEnabled:o.piiLoggingEnabled,logLevel:o.logLevel,correlationId:this.correlationId},cryptoInterface:this.browserCrypto,networkInterface:this.networkClient,storageInterface:this.browserStorage,serverTelemetryManager:t,libraryInfo:{sku:$r.MSAL_SKU,version:Ys,cpu:w.EMPTY_STRING,os:w.EMPTY_STRING},telemetry:this.config.telemetry}]}})})},e.prototype.validateAndExtractStateFromHash=function(t,i,n){if(this.logger.verbose("validateAndExtractStateFromHash called",n),!t.state)throw R.createHashDoesNotContainStateError();var a=N_.extractBrowserRequestState(this.browserCrypto,t.state);if(!a)throw R.createUnableToParseStateError();if(a.interactionType!==i)throw R.createStateInteractionTypeMismatchError();return this.logger.verbose("Returning state from hash",n),t.state},e.prototype.getDiscoveredAuthority=function(t,i){var n;return V(this,void 0,void 0,function(){var a,o,s,c;return S(this,function(l){switch(l.label){case 0:return this.logger.verbose("getDiscoveredAuthority called",this.correlationId),a=(n=this.performanceClient)===null||n===void 0?void 0:n.startMeasurement(St.StandardInteractionClientGetDiscoveredAuthority,this.correlationId),o={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache},s=t||this.config.auth.authority,c=A0.generateAuthority(s,i||this.config.auth.azureCloudOptions),this.logger.verbose("Creating discovered authority with configured authority",this.correlationId),[4,V0.createDiscoveredInstance(c,this.config.system.networkClient,this.browserStorage,o,this.logger).then(function(h){return a.endMeasurement({success:!0}),h}).catch(function(h){throw a.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1}),h})];case 1:return[2,l.sent()]}})})},e.prototype.initializeAuthorizationRequest=function(t,i){return V(this,void 0,void 0,function(){var n,a,o,s,c,l,h;return S(this,function(d){switch(d.label){case 0:return this.logger.verbose("initializeAuthorizationRequest called",this.correlationId),n=this.getRedirectUri(t.redirectUri),a={interactionType:i},o=Li.setRequestState(this.browserCrypto,t&&t.state||w.EMPTY_STRING,a),c=[{}],[4,this.initializeBaseRequest(t)];case 1:return s=Y.apply(void 0,[Y.apply(void 0,c.concat([d.sent()])),{redirectUri:n,state:o,nonce:t.nonce||this.browserCrypto.createNewGuid(),responseMode:y0.FRAGMENT}]),l=t.account||this.browserStorage.getActiveAccount(),l&&(this.logger.verbose("Setting validated request account",this.correlationId),this.logger.verbosePii("Setting validated request account: "+l.homeAccountId,this.correlationId),s.account=l),F.isEmpty(s.loginHint)&&!l&&(h=this.browserStorage.getLegacyLoginHint(),h&&(s.loginHint=h)),[2,s]}})})},e}(U_);/*! @azure/msal-browser v2.32.2 2023-01-10 */var o6=function(){function r(e,t,i,n){this.authModule=e,this.browserStorage=t,this.authCodeRequest=i,this.logger=n}return r.prototype.handleCodeResponseFromHash=function(e,t,i,n){return V(this,void 0,void 0,function(){var a,o,s;return S(this,function(c){if(this.logger.verbose("InteractionHandler.handleCodeResponse called"),F.isEmpty(e))throw R.createEmptyHashError(e);if(a=this.browserStorage.generateStateKey(t),o=this.browserStorage.getTemporaryCache(a),!o)throw j.createStateNotFoundError("Cached State");try{s=this.authModule.handleFragmentResponse(e,o)}catch(l){throw l instanceof Aa&&l.subError===L.userCancelledError.code?R.createUserCancelledError():l}return[2,this.handleCodeResponseFromServer(s,t,i,n)]})})},r.prototype.handleCodeResponseFromServer=function(e,t,i,n,a){return a===void 0&&(a=!0),V(this,void 0,void 0,function(){var o,s,c,l,h,d;return S(this,function(u){switch(u.label){case 0:if(this.logger.trace("InteractionHandler.handleCodeResponseFromServer called"),o=this.browserStorage.generateStateKey(t),s=this.browserStorage.getTemporaryCache(o),!s)throw j.createStateNotFoundError("Cached State");return c=this.browserStorage.generateNonceKey(s),l=this.browserStorage.getTemporaryCache(c),this.authCodeRequest.code=e.code,e.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(e.cloud_instance_host_name,i,n)]:[3,2];case 1:u.sent(),u.label=2;case 2:return a&&(e.nonce=l||void 0),e.state=s,e.client_info?this.authCodeRequest.clientInfo=e.client_info:(h=this.checkCcsCredentials(),h&&(this.authCodeRequest.ccsCredential=h)),[4,this.authModule.acquireToken(this.authCodeRequest,e)];case 3:return d=u.sent(),this.browserStorage.cleanRequestByState(t),[2,d]}})})},r.prototype.updateTokenEndpointAuthority=function(e,t,i){return V(this,void 0,void 0,function(){var n,a;return S(this,function(o){switch(o.label){case 0:return n="https://"+e+"/"+t.tenant+"/",[4,V0.createDiscoveredInstance(n,i,this.browserStorage,t.options,this.logger)];case 1:return a=o.sent(),this.authModule.updateAuthority(a),[2]}})})},r.prototype.checkCcsCredentials=function(){var e=this.browserStorage.getTemporaryCache(Ce.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},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var Hm=function(r){Jt(e,r);function e(t,i,n,a,o){var s=r.call(this,t,i,n,a)||this;return s.browserCrypto=o,s}return e.prototype.initiateAuthRequest=function(t,i){return V(this,void 0,void 0,function(){var n,a;return S(this,function(o){switch(o.label){case 0:return this.logger.verbose("RedirectHandler.initiateAuthRequest called"),F.isEmpty(t)?[3,7]:(i.redirectStartPage&&(this.logger.verbose("RedirectHandler.initiateAuthRequest: redirectStartPage set, caching start page"),this.browserStorage.setTemporaryCache(Ce.ORIGIN_URI,i.redirectStartPage,!0)),this.browserStorage.setTemporaryCache(Ce.CORRELATION_ID,this.authCodeRequest.correlationId,!0),this.browserStorage.cacheCodeRequest(this.authCodeRequest,this.browserCrypto),this.logger.infoPii("RedirectHandler.initiateAuthRequest: Navigate to: "+t),n={apiId:qe.acquireTokenRedirect,timeout:i.redirectTimeout,noHistory:!1},typeof i.onRedirectNavigate!="function"?[3,4]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: Invoking onRedirectNavigate callback"),a=i.onRedirectNavigate(t),a===!1?[3,2]:(this.logger.verbose("RedirectHandler.initiateAuthRequest: onRedirectNavigate did not return false, navigating"),[4,i.navigationClient.navigateExternal(t,n)])));case 1:return o.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,i.navigationClient.navigateExternal(t,n)];case 5:return o.sent(),[2];case 6:return[3,8];case 7:throw this.logger.info("RedirectHandler.initiateAuthRequest: Navigate url is empty"),R.createEmptyNavigationUriError();case 8:return[2]}})})},e.prototype.handleCodeResponseFromHash=function(t,i,n,a){return V(this,void 0,void 0,function(){var o,s,c,l,h,d,u;return S(this,function(v){switch(v.label){case 0:if(this.logger.verbose("RedirectHandler.handleCodeResponse called"),F.isEmpty(t))throw R.createEmptyHashError(t);if(this.browserStorage.setInteractionInProgress(!1),o=this.browserStorage.generateStateKey(i),s=this.browserStorage.getTemporaryCache(o),!s)throw j.createStateNotFoundError("Cached State");try{c=this.authModule.handleFragmentResponse(t,s)}catch(m){throw m instanceof Aa&&m.subError===L.userCancelledError.code?R.createUserCancelledError():m}return l=this.browserStorage.generateNonceKey(s),h=this.browserStorage.getTemporaryCache(l),this.authCodeRequest.code=c.code,c.cloud_instance_host_name?[4,this.updateTokenEndpointAuthority(c.cloud_instance_host_name,n,a)]:[3,2];case 1:v.sent(),v.label=2;case 2:return c.nonce=h||void 0,c.state=s,c.client_info?this.authCodeRequest.clientInfo=c.client_info:(d=this.checkCcsCredentials(),d&&(this.authCodeRequest.ccsCredential=d)),[4,this.authModule.acquireToken(this.authCodeRequest,c)];case 3:return u=v.sent(),this.browserStorage.cleanRequestByState(i),[2,u]}})})},e}(o6);/*! @azure/msal-browser v2.32.2 2023-01-10 */var ie;(function(r){r.INITIALIZE_START="msal:initializeStart",r.INITIALIZE_END="msal:initializeEnd",r.ACCOUNT_ADDED="msal:accountAdded",r.ACCOUNT_REMOVED="msal:accountRemoved",r.LOGIN_START="msal:loginStart",r.LOGIN_SUCCESS="msal:loginSuccess",r.LOGIN_FAILURE="msal:loginFailure",r.ACQUIRE_TOKEN_START="msal:acquireTokenStart",r.ACQUIRE_TOKEN_SUCCESS="msal:acquireTokenSuccess",r.ACQUIRE_TOKEN_FAILURE="msal:acquireTokenFailure",r.ACQUIRE_TOKEN_NETWORK_START="msal:acquireTokenFromNetworkStart",r.SSO_SILENT_START="msal:ssoSilentStart",r.SSO_SILENT_SUCCESS="msal:ssoSilentSuccess",r.SSO_SILENT_FAILURE="msal:ssoSilentFailure",r.ACQUIRE_TOKEN_BY_CODE_START="msal:acquireTokenByCodeStart",r.ACQUIRE_TOKEN_BY_CODE_SUCCESS="msal:acquireTokenByCodeSuccess",r.ACQUIRE_TOKEN_BY_CODE_FAILURE="msal:acquireTokenByCodeFailure",r.HANDLE_REDIRECT_START="msal:handleRedirectStart",r.HANDLE_REDIRECT_END="msal:handleRedirectEnd",r.POPUP_OPENED="msal:popupOpened",r.LOGOUT_START="msal:logoutStart",r.LOGOUT_SUCCESS="msal:logoutSuccess",r.LOGOUT_FAILURE="msal:logoutFailure",r.LOGOUT_END="msal:logoutEnd"})(ie||(ie={}));/*! @azure/msal-browser v2.32.2 2023-01-10 */var on;(function(r){r.USER_INTERACTION_REQUIRED="USER_INTERACTION_REQUIRED",r.USER_CANCEL="USER_CANCEL",r.NO_NETWORK="NO_NETWORK",r.TRANSIENT_ERROR="TRANSIENT_ERROR",r.PERSISTENT_ERROR="PERSISTENT_ERROR",r.DISABLED="DISABLED",r.ACCOUNT_UNAVAILABLE="ACCOUNT_UNAVAILABLE"})(on||(on={}));var rs={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"}},ii=function(r){Jt(e,r);function e(t,i,n){var a=r.call(this,t,i)||this;return Object.setPrototypeOf(a,e.prototype),a.name="NativeAuthError",a.ext=n,a}return e.prototype.isFatal=function(){if(this.ext&&this.ext.status&&(this.ext.status===on.PERSISTENT_ERROR||this.ext.status===on.DISABLED))return!0;switch(this.errorCode){case rs.extensionError.code:return!0;default:return!1}},e.createError=function(t,i,n){if(n&&n.status)switch(n.status){case on.ACCOUNT_UNAVAILABLE:return Tr.createNativeAccountUnavailableError();case on.USER_INTERACTION_REQUIRED:return new Tr(t,i);case on.USER_CANCEL:return R.createUserCancelledError();case on.NO_NETWORK:return R.createNoNetworkConnectivityError()}return new e(t,i,n)},e.createUserSwitchError=function(){return new e(rs.userSwitch.code,rs.userSwitch.desc)},e.createTokensNotFoundInCacheError=function(){return new e(rs.tokensNotFoundInCache.code,rs.tokensNotFoundInCache.desc)},e}(Q);/*! @azure/msal-browser v2.32.2 2023-01-10 */var F_=function(r){Jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.acquireToken=function(t){return V(this,void 0,void 0,function(){var i,n,a,o,s;return S(this,function(c){switch(c.label){case 0:return i=this.performanceClient.startMeasurement(St.SilentCacheClientAcquireToken,t.correlationId),n=this.initializeServerTelemetryManager(qe.acquireTokenSilent_silentFlow),[4,this.createSilentFlowClient(n,t.authority,t.azureCloudOptions)];case 1:a=c.sent(),this.logger.verbose("Silent auth client created"),c.label=2;case 2:return c.trys.push([2,4,,5]),[4,a.acquireCachedToken(t)];case 3:return o=c.sent(),i.endMeasurement({success:!0,fromCache:!0}),[2,o];case 4:throw s=c.sent(),s instanceof R&&s.errorCode===L.signingKeyNotFoundInStorage.code&&this.logger.verbose("Signing keypair for bound access token not found. Refreshing bound access token and generating a new crypto keypair."),i.endMeasurement({errorCode:s instanceof Q&&s.errorCode||void 0,subErrorCode:s instanceof Q&&s.subError||void 0,success:!1}),s;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(R.createSilentLogoutUnsupportedError())},e.prototype.createSilentFlowClient=function(t,i,n){return V(this,void 0,void 0,function(){var a;return S(this,function(o){switch(o.label){case 0:return[4,this.getClientConfiguration(t,i,n)];case 1:return a=o.sent(),[2,new tH(a,this.performanceClient)]}})})},e.prototype.initializeSilentRequest=function(t,i){return V(this,void 0,void 0,function(){var n;return S(this,function(a){switch(a.label){case 0:return n=[Y({},t)],[4,this.initializeBaseRequest(t)];case 1:return[2,Y.apply(void 0,[Y.apply(void 0,n.concat([a.sent()])),{account:i,forceRefresh:t.forceRefresh||!1}])]}})})},e}(Lo);/*! @azure/msal-browser v2.32.2 2023-01-10 */var L2=function(r){Jt(e,r);function e(t,i,n,a,o,s,c,l,h,d,u,v){var m=r.call(this,t,i,n,a,o,s,l,h,v)||this;return m.apiId=c,m.accountId=d,m.nativeMessageHandler=h,m.nativeStorageManager=u,m.silentCacheClient=new F_(t,m.nativeStorageManager,n,a,o,s,l,h,v),m}return e.prototype.acquireToken=function(t){return V(this,void 0,void 0,function(){var i,n,a,o,s,c,l;return S(this,function(h){switch(h.label){case 0:return this.logger.trace("NativeInteractionClient - acquireToken called."),i=this.performanceClient.startMeasurement(St.NativeInteractionClientAcquireToken,t.correlationId),n=gr.nowSeconds(),[4,this.initializeNativeRequest(t)];case 1:a=h.sent(),h.label=2;case 2:return h.trys.push([2,4,,5]),[4,this.acquireTokensFromCache(this.accountId,a)];case 3:return o=h.sent(),i.endMeasurement({success:!0,isNativeBroker:!1,fromCache:!0}),[2,o];case 4:return h.sent(),this.logger.info("MSAL internal Cache does not contain tokens, proceed to make a native call"),[3,5];case 5:return s={method:Si.GetToken,request:a},[4,this.nativeMessageHandler.sendMessage(s)];case 6:return c=h.sent(),l=this.validateNativeResponse(c),[2,this.handleNativeResponse(l,a,n).then(function(d){return i.endMeasurement({success:!0,isNativeBroker:!0,requestId:d.requestId}),d}).catch(function(d){throw i.endMeasurement({success:!1,errorCode:d.errorCode,subErrorCode:d.subError,isNativeBroker:!0}),d})]}})})},e.prototype.createSilentCacheRequest=function(t,i){return{authority:t.authority,correlationId:this.correlationId,scopes:g1.fromString(t.scope).asArray(),account:i,forceRefresh:!1}},e.prototype.acquireTokensFromCache=function(t,i){return V(this,void 0,void 0,function(){var n,a,o,s,c;return S(this,function(l){switch(l.label){case 0:if(n=this.browserStorage.readAccountFromCacheWithNativeAccountId(t),!n)throw j.createNoAccountFoundError();a=n.getAccountInfo(),l.label=1;case 1:return l.trys.push([1,3,,4]),o=this.createSilentCacheRequest(i,a),[4,this.silentCacheClient.acquireToken(o)];case 2:return s=l.sent(),[2,s];case 3:throw c=l.sent(),c;case 4:return[2]}})})},e.prototype.acquireTokenRedirect=function(t){return V(this,void 0,void 0,function(){var i,n,a,o,s,c;return S(this,function(l){switch(l.label){case 0:return this.logger.trace("NativeInteractionClient - acquireTokenRedirect called."),[4,this.initializeNativeRequest(t)];case 1:i=l.sent(),n={method:Si.GetToken,request:i},l.label=2;case 2:return l.trys.push([2,4,,5]),[4,this.nativeMessageHandler.sendMessage(n)];case 3:return a=l.sent(),this.validateNativeResponse(a),[3,5];case 4:if(o=l.sent(),o instanceof ii&&o.isFatal())throw o;return[3,5];case 5:return this.browserStorage.setTemporaryCache(Ce.NATIVE_REQUEST,JSON.stringify(i),!0),s={apiId:qe.acquireTokenRedirect,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},c=this.config.auth.navigateToLoginRequestUrl?window.location.href:this.getRedirectUri(t.redirectUri),[4,this.navigationClient.navigateExternal(c,s)];case 6:return l.sent(),[2]}})})},e.prototype.handleRedirectPromise=function(){return V(this,void 0,void 0,function(){var t,i,n,a,o,s,c,l;return S(this,function(h){switch(h.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];i=t.prompt,n=um(t,["prompt"]),i&&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(Ce.NATIVE_REQUEST)),a={method:Si.GetToken,request:n},o=gr.nowSeconds(),h.label=1;case 1:return h.trys.push([1,3,,4]),this.logger.verbose("NativeInteractionClient - handleRedirectPromise sending message to native broker."),[4,this.nativeMessageHandler.sendMessage(a)];case 2:return s=h.sent(),this.validateNativeResponse(s),c=this.handleNativeResponse(s,n,o),this.browserStorage.setInteractionInProgress(!1),[2,c];case 3:throw l=h.sent(),this.browserStorage.setInteractionInProgress(!1),l;case 4:return[2]}})})},e.prototype.logout=function(){return this.logger.trace("NativeInteractionClient - logout called."),Promise.reject("Logout not implemented yet")},e.prototype.handleNativeResponse=function(t,i,n){return V(this,void 0,void 0,function(){var a,o,s,c,l,h,d,u,v,m,f,C,_,p,z,M,A,I,N,U,Se=this;return S(this,function(ee){switch(ee.label){case 0:if(this.logger.trace("NativeInteractionClient - handleNativeResponse called."),a=this.getMATSFromResponse(t),this.performanceClient.addStaticFields({extensionId:this.nativeMessageHandler.getExtensionId(),extensionVersion:this.nativeMessageHandler.getExtensionVersion(),matsBrokerVersion:a?a.broker_version:void 0,matsAccountJoinOnStart:a?a.account_join_on_start:void 0,matsAccountJoinOnEnd:a?a.account_join_on_end:void 0,matsDeviceJoin:a?a.device_join:void 0,matsPromptBehavior:a?a.prompt_behavior:void 0,matsApiErrorCode:a?a.api_error_code:void 0,matsUiVisible:a?a.ui_visible:void 0,matsSilentCode:a?a.silent_code:void 0,matsSilentBiSubCode:a?a.silent_bi_sub_code:void 0,matsSilentMessage:a?a.silent_message:void 0,matsSilentStatus:a?a.silent_status:void 0,matsHttpStatus:a?a.http_status:void 0,matsHttpEventCount:a?a.http_event_count:void 0},this.correlationId),t.account.id!==i.accountId)throw ii.createUserSwitchError();return o=new ui(t.id_token||w.EMPTY_STRING,this.browserCrypto),[4,this.getDiscoveredAuthority(i.authority)];case 1:switch(s=ee.sent(),c=s.getPreferredCache(),l=Wt.generateHomeAccountId(t.client_info||w.EMPTY_STRING,ur.Default,this.logger,this.browserCrypto,o),h=Wt.createAccount(t.client_info,l,o,void 0,void 0,void 0,c,t.account.id),this.browserStorage.setAccount(h),d=t.scope?g1.fromString(t.scope):g1.fromString(i.scope),u=t.account.properties||{},v=u.UID||o.claims.oid||o.claims.sub||w.EMPTY_STRING,m=u.TenantId||o.claims.tid||w.EMPTY_STRING,C=Ie.BEARER,_=i.tokenType,_){case Ie.POP:return[3,2]}return[3,4];case 2:if(C=Ie.POP,t.shr)return this.logger.trace("handleNativeServerResponse: SHR is enabled in native layer"),f=t.shr,[3,5];if(p=new to(this.browserCrypto),z={resourceRequestMethod:i.resourceRequestMethod,resourceRequestUri:i.resourceRequestUri,shrClaims:i.shrClaims,shrNonce:i.shrNonce},!i.keyId)throw j.createKeyIdMissingError();return[4,p.signPopToken(t.access_token,i.keyId,z)];case 3:return f=ee.sent(),[3,5];case 4:f=t.access_token,ee.label=5;case 5:return M={authority:s.canonicalAuthority,uniqueId:v,tenantId:m,scopes:d.asArray(),account:h.getAccountInfo(),idToken:t.id_token,idTokenClaims:o.claims,accessToken:f,fromCache:a?this.isResponseFromCache(a):!1,expiresOn:new Date(Number(n+t.expires_in)*1e3),tokenType:C,correlationId:this.correlationId,state:t.state,fromNativeBroker:!0},A=kc.createIdTokenEntity(l,i.authority,t.id_token||w.EMPTY_STRING,i.clientId,o.claims.tid||w.EMPTY_STRING),this.nativeStorageManager.setIdTokenCredential(A),I=C===Ie.POP?w.SHR_NONCE_VALIDITY:(typeof t.expires_in=="string"?parseInt(t.expires_in,10):t.expires_in)||0,N=n+I,U=Ec.createAccessTokenEntity(l,i.authority,f,i.clientId,m,d.printScopes(),N,0,this.browserCrypto),this.nativeStorageManager.setAccessTokenCredential(U),this.browserStorage.removeAccountContext(h).catch(function(Je){Se.logger.error("Error occurred while removing account context from browser storage. "+Je)}),[2,M]}})})},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 ii.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 V(this,void 0,void 0,function(){var i,n,a,o,s,c,l,h,d,u,v=this;return S(this,function(m){switch(m.label){case 0:return this.logger.trace("NativeInteractionClient - initializeNativeRequest called"),i=t.authority||this.config.auth.authority,n=new ke(i),n.validateAsUri(),a=t.scopes,o=um(t,["scopes"]),s=new g1(a||[]),s.appendScopes(rl),c=function(){switch(v.apiId){case qe.ssoSilent:case qe.acquireTokenSilent_silentFlow:return v.logger.trace("initializeNativeRequest: silent request sets prompt to none"),d1.NONE}if(!t.prompt){v.logger.trace("initializeNativeRequest: prompt was not provided");return}switch(t.prompt){case d1.NONE:case d1.CONSENT:case d1.LOGIN:return v.logger.trace("initializeNativeRequest: prompt is compatible with native flow"),t.prompt;default:throw v.logger.trace("initializeNativeRequest: prompt = "+t.prompt+" is not compatible with native flow"),R.createNativePromptParameterNotSupportedError()}},l=Y(Y({},o),{accountId:this.accountId,clientId:this.config.auth.clientId,authority:n.urlString,scope:s.printScopes(),redirectUri:this.getRedirectUri(t.redirectUri),prompt:c(),correlationId:this.correlationId,tokenType:t.authenticationScheme,windowTitleSubstring:document.title,extraParameters:Y(Y(Y({},t.extraQueryParameters),t.tokenQueryParameters),{telemetry:bs.MATS_TELEMETRY}),extendedExpiryToken:!1}),t.authenticationScheme!==Ie.POP?[3,2]:(h={resourceRequestUri:t.resourceRequestUri,resourceRequestMethod:t.resourceRequestMethod,shrClaims:t.shrClaims,shrNonce:t.shrNonce},d=new to(this.browserCrypto),[4,d.generateCnf(h)]);case 1:u=m.sent(),l.reqCnf=u.reqCnfHash,l.keyId=u.kid,m.label=2;case 2:return[2,l]}})})},e}(U_);/*! @azure/msal-browser v2.32.2 2023-01-10 */var ba=function(){function r(e,t,i){this.logger=e,this.handshakeTimeoutMs=t,this.extensionId=i,this.resolvers=new Map,this.handshakeResolvers=new Map,this.responseId=0,this.messageChannel=new MessageChannel,this.windowListener=this.onWindowMessage.bind(this)}return r.prototype.sendMessage=function(e){return V(this,void 0,void 0,function(){var t,i=this;return S(this,function(n){return this.logger.trace("NativeMessageHandler - sendMessage called."),t={channel:bs.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(a,o){i.resolvers.set(t.responseId,{resolve:a,reject:o})})]})})},r.createProvider=function(e,t){return V(this,void 0,void 0,function(){var i,n;return S(this,function(a){switch(a.label){case 0:e.trace("NativeMessageHandler - createProvider called."),a.label=1;case 1:return a.trys.push([1,3,,5]),i=new r(e,t,bs.PREFERRED_EXTENSION_ID),[4,i.sendHandshakeRequest()];case 2:return a.sent(),[2,i];case 3:return a.sent(),n=new r(e,t),[4,n.sendHandshakeRequest()];case 4:return a.sent(),[2,n];case 5:return[2]}})})},r.prototype.sendHandshakeRequest=function(){return V(this,void 0,void 0,function(){var e,t=this;return S(this,function(i){return this.logger.trace("NativeMessageHandler - sendHandshakeRequest called."),window.addEventListener("message",this.windowListener,!1),e={channel:bs.CHANNEL_ID,extensionId:this.extensionId,responseId:this.responseId++,body:{method:Si.HandshakeRequest}},this.messageChannel.port1.onmessage=function(n){t.onChannelMessage(n)},window.postMessage(e,window.origin,[this.messageChannel.port2]),[2,new Promise(function(n,a){t.handshakeResolvers.set(e.responseId,{resolve:n,reject:a}),t.timeoutId=window.setTimeout(function(){window.removeEventListener("message",t.windowListener,!1),t.messageChannel.port1.close(),t.messageChannel.port2.close(),a(R.createNativeHandshakeTimeoutError()),t.handshakeResolvers.delete(e.responseId)},t.handshakeTimeoutMs)})]})})},r.prototype.onWindowMessage=function(e){if(this.logger.trace("NativeMessageHandler - onWindowMessage called"),e.source===window){var t=e.data;if(!(!t.channel||t.channel!==bs.CHANNEL_ID)&&!(t.extensionId&&t.extensionId!==this.extensionId)&&t.body.method===Si.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 i=this.handshakeResolvers.get(t.responseId);i&&i.reject(R.createNativeExtensionNotInstalledError())}}},r.prototype.onChannelMessage=function(e){this.logger.trace("NativeMessageHandler - onChannelMessage called.");var t=e.data,i=this.resolvers.get(t.responseId),n=this.handshakeResolvers.get(t.responseId);try{var a=t.body.method;if(a===Si.Response){if(!i)return;var o=t.body.response;if(this.logger.trace("NativeMessageHandler - Received response from browser extension"),this.logger.tracePii("NativeMessageHandler - Received response from browser extension: "+JSON.stringify(o)),o.status!=="Success")i.reject(ii.createError(o.code,o.description,o.ext));else if(o.result)o.result.code&&o.result.description?i.reject(ii.createError(o.result.code,o.result.description,o.result.ext)):i.resolve(o.result);else throw Q.createUnexpectedError("Event does not contain result.");this.resolvers.delete(t.responseId)}else if(a===Si.HandshakeResponse){if(!n)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),n.resolve(),this.handshakeResolvers.delete(t.responseId)}}catch(s){this.logger.error("Error parsing response from WAM Extension"),this.logger.errorPii("Error parsing response from WAM Extension: "+s.toString()),this.logger.errorPii("Unable to parse "+e),i?i.reject(s):n&&n.reject(s)}},r.prototype.getExtensionId=function(){return this.extensionId},r.prototype.getExtensionVersion=function(){return this.extensionVersion},r.isNativeAvailable=function(e,t,i,n){if(t.trace("isNativeAvailable called"),!e.system.allowNativeBroker)return t.trace("isNativeAvailable: allowNativeBroker is not enabled, returning false"),!1;if(!i)return t.trace("isNativeAvailable: WAM extension provider is not initialized, returning false"),!1;if(n)switch(n){case Ie.BEARER:case Ie.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},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var fH=function(r){Jt(e,r);function e(t,i,n,a,o,s,c,l,h,d){var u=r.call(this,t,i,n,a,o,s,c,h,d)||this;return u.nativeStorage=l,u}return e.prototype.acquireToken=function(t){return V(this,void 0,void 0,function(){var i,n,a,o,s,c,l,h,d,u=this;return S(this,function(v){switch(v.label){case 0:return[4,this.initializeAuthorizationRequest(t,W.Redirect)];case 1:i=v.sent(),this.browserStorage.updateCacheEntries(i.state,i.nonce,i.authority,i.loginHint||w.EMPTY_STRING,i.account||null),n=this.initializeServerTelemetryManager(qe.acquireTokenRedirect),a=function(m){m.persisted&&(u.logger.verbose("Page was restored from back/forward cache. Clearing temporary cache."),u.browserStorage.cleanRequestByState(i.state))},v.label=2;case 2:return v.trys.push([2,7,,8]),[4,this.initializeAuthorizationCodeRequest(i)];case 3:return o=v.sent(),[4,this.createAuthCodeClient(n,i.authority,i.azureCloudOptions)];case 4:return s=v.sent(),this.logger.verbose("Auth code client created"),c=new Hm(s,this.browserStorage,o,this.logger,this.browserCrypto),[4,s.getAuthCodeUrl(Y(Y({},i),{nativeBroker:ba.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme)}))];case 5:return l=v.sent(),h=this.getRedirectStartPage(t.redirectStartPage),this.logger.verbosePii("Redirect start page: "+h),window.addEventListener("pageshow",a),[4,c.initiateAuthRequest(l,{navigationClient:this.navigationClient,redirectTimeout:this.config.system.redirectNavigationTimeout,redirectStartPage:h,onRedirectNavigate:t.onRedirectNavigate})];case 6:return[2,v.sent()];case 7:throw d=v.sent(),d instanceof Q&&d.setCorrelationId(this.correlationId),window.removeEventListener("pageshow",a),n.cacheFailedRequest(d),this.browserStorage.cleanRequestByState(i.state),d;case 8:return[2]}})})},e.prototype.handleRedirectPromise=function(t){return V(this,void 0,void 0,function(){var i,n,a,o,s,c,l,h,d,u,v,m;return S(this,function(f){switch(f.label){case 0:i=this.initializeServerTelemetryManager(qe.handleRedirectPromise),f.label=1;case 1:if(f.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(n=this.getRedirectResponseHash(t||window.location.hash),!n)return this.logger.info("handleRedirectPromise did not detect a response hash as a result of a redirect. Cleaning temporary cache."),this.browserStorage.cleanRequestByInteractionType(W.Redirect),[2,null];a=void 0;try{o=ke.getDeserializedHash(n),a=this.validateAndExtractStateFromHash(o,W.Redirect),this.logger.verbose("State extracted from hash")}catch(C){return this.logger.info("handleRedirectPromise was unable to extract state due to: "+C),this.browserStorage.cleanRequestByInteractionType(W.Redirect),[2,null]}return s=this.browserStorage.getTemporaryCache(Ce.ORIGIN_URI,!0)||w.EMPTY_STRING,c=ke.removeHashFromUrl(s),l=ke.removeHashFromUrl(window.location.href),c===l&&this.config.auth.navigateToLoginRequestUrl?(this.logger.verbose("Current page is loginRequestUrl, handling hash"),[4,this.handleHash(n,a,i)]):[3,3];case 2:return h=f.sent(),s.indexOf("#")>-1&<.replaceHash(s),[2,h];case 3:return this.config.auth.navigateToLoginRequestUrl?[3,4]:(this.logger.verbose("NavigateToLoginRequestUrl set to false, handling hash"),[2,this.handleHash(n,a,i)]);case 4:return!lt.isInIframe()||this.config.system.allowRedirectInIframe?(this.browserStorage.setTemporaryCache(Ce.URL_HASH,n,!0),d={apiId:qe.handleRedirectPromise,timeout:this.config.system.redirectNavigationTimeout,noHistory:!0},u=!0,!s||s==="null"?(v=lt.getHomepage(),this.browserStorage.setTemporaryCache(Ce.ORIGIN_URI,v,!0),this.logger.warning("Unable to get valid login request url from cache, redirecting to home page"),[4,this.navigationClient.navigateInternal(v,d)]):[3,6]):[3,9];case 5:return u=f.sent(),[3,8];case 6:return this.logger.verbose("Navigating to loginRequestUrl: "+s),[4,this.navigationClient.navigateInternal(s,d)];case 7:u=f.sent(),f.label=8;case 8:if(!u)return[2,this.handleHash(n,a,i)];f.label=9;case 9:return[2,null];case 10:throw m=f.sent(),m instanceof Q&&m.setCorrelationId(this.correlationId),i.cacheFailedRequest(m),this.browserStorage.cleanRequestByInteractionType(W.Redirect),m;case 11:return[2]}})})},e.prototype.getRedirectResponseHash=function(t){this.logger.verbose("getRedirectResponseHash called");var i=ke.hashContainsKnownProperties(t);if(i)return lt.clearHash(window),this.logger.verbose("Hash contains known properties, returning response hash"),t;var n=this.browserStorage.getTemporaryCache(Ce.URL_HASH,!0);return this.browserStorage.removeItem(this.browserStorage.generateCacheKey(Ce.URL_HASH)),this.logger.verbose("Hash does not contain known properties, returning cached hash"),n},e.prototype.handleHash=function(t,i,n){return V(this,void 0,void 0,function(){var a,o,s,c,l,h,d,u=this;return S(this,function(v){switch(v.label){case 0:if(a=this.browserStorage.getCachedRequest(i,this.browserCrypto),this.logger.verbose("handleHash called, retrieved cached request"),o=ke.getDeserializedHash(t),o.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw R.createNativeConnectionNotEstablishedError();return s=new L2(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,qe.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,o.accountId,this.browserStorage,a.correlationId),c=Li.parseRequestState(this.browserCrypto,i).userRequestState,[2,s.acquireToken(Y(Y({},a),{state:c,prompt:void 0})).finally(function(){u.browserStorage.cleanRequestByState(i)})]}if(l=this.browserStorage.getCachedAuthority(i),!l)throw R.createNoCachedAuthorityError();return[4,this.createAuthCodeClient(n,l)];case 1:return h=v.sent(),this.logger.verbose("Auth code client created"),H0.removeThrottle(this.browserStorage,this.config.auth.clientId,a),d=new Hm(h,this.browserStorage,a,this.logger,this.browserCrypto),[4,d.handleCodeResponseFromHash(t,i,h.authority,this.networkClient)];case 2:return[2,v.sent()]}})})},e.prototype.logout=function(t){return V(this,void 0,void 0,function(){var i,n,a,o,s,c,l;return S(this,function(h){switch(h.label){case 0:this.logger.verbose("logoutRedirect called"),i=this.initializeLogoutRequest(t),n=this.initializeServerTelemetryManager(qe.logout),h.label=1;case 1:return h.trys.push([1,10,,11]),this.eventHandler.emitEvent(ie.LOGOUT_START,W.Redirect,t),[4,this.clearCacheOnLogout(i.account)];case 2:return h.sent(),a={apiId:qe.logout,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},[4,this.createAuthCodeClient(n,t&&t.authority)];case 3:return o=h.sent(),this.logger.verbose("Auth code client created"),s=o.getLogoutUri(i),this.eventHandler.emitEvent(ie.LOGOUT_SUCCESS,W.Redirect,i),t&&typeof t.onRedirectNavigate=="function"?(c=t.onRedirectNavigate(s),c===!1?[3,5]:(this.logger.verbose("Logout onRedirectNavigate did not return false, navigating"),this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(s,a)])):[3,7];case 4:return h.sent(),[2];case 5:this.browserStorage.setInteractionInProgress(!1),this.logger.verbose("Logout onRedirectNavigate returned false, stopping navigation"),h.label=6;case 6:return[3,9];case 7:return this.browserStorage.getInteractionInProgress()||this.browserStorage.setInteractionInProgress(!0),[4,this.navigationClient.navigateExternal(s,a)];case 8:return h.sent(),[2];case 9:return[3,11];case 10:throw l=h.sent(),l instanceof Q&&l.setCorrelationId(this.correlationId),n.cacheFailedRequest(l),this.eventHandler.emitEvent(ie.LOGOUT_FAILURE,W.Redirect,null,l),this.eventHandler.emitEvent(ie.LOGOUT_END,W.Redirect),l;case 11:return this.eventHandler.emitEvent(ie.LOGOUT_END,W.Redirect),[2]}})})},e.prototype.getRedirectStartPage=function(t){var i=t||window.location.href;return ke.getAbsoluteUrl(i,lt.getCurrentUri())},e}(Lo);/*! @azure/msal-browser v2.32.2 2023-01-10 */var pH=function(r){Jt(e,r);function e(t,i,n,a,o,s,c,l,h,d){var u=r.call(this,t,i,n,a,o,s,c,h,d)||this;return u.unloadWindow=u.unloadWindow.bind(u),u.nativeStorage=l,u}return e.prototype.acquireToken=function(t){try{var i=this.generatePopupName(t.scopes||rl,t.authority||this.config.auth.authority),n=t.popupWindowAttributes||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true, acquiring token"),this.acquireTokenPopupAsync(t,i,n);this.logger.verbose("asyncPopup set to false, opening popup before acquiring token");var a=this.openSizedPopup("about:blank",i,n);return this.acquireTokenPopupAsync(t,i,n,a)}catch(o){return Promise.reject(o)}},e.prototype.logout=function(t){try{this.logger.verbose("logoutPopup called");var i=this.initializeLogoutRequest(t),n=this.generateLogoutPopupName(i),a=t&&t.authority,o=t&&t.mainWindowRedirectUri,s=(t==null?void 0:t.popupWindowAttributes)||{};if(this.config.system.asyncPopups)return this.logger.verbose("asyncPopups set to true"),this.logoutPopupAsync(i,n,s,a,void 0,o);this.logger.verbose("asyncPopup set to false, opening popup");var c=this.openSizedPopup("about:blank",n,s);return this.logoutPopupAsync(i,n,s,a,c,o)}catch(l){return Promise.reject(l)}},e.prototype.acquireTokenPopupAsync=function(t,i,n,a){return V(this,void 0,void 0,function(){var o,s,c,l,h,d,u,v,m,f,C,_,p,z,M,A,I,N=this;return S(this,function(U){switch(U.label){case 0:return this.logger.verbose("acquireTokenPopupAsync called"),o=this.initializeServerTelemetryManager(qe.acquireTokenPopup),[4,this.initializeAuthorizationRequest(t,W.Popup)];case 1:s=U.sent(),this.browserStorage.updateCacheEntries(s.state,s.nonce,s.authority,s.loginHint||w.EMPTY_STRING,s.account||null),U.label=2;case 2:return U.trys.push([2,8,,9]),[4,this.initializeAuthorizationCodeRequest(s)];case 3:return c=U.sent(),[4,this.createAuthCodeClient(o,s.authority,s.azureCloudOptions)];case 4:return l=U.sent(),this.logger.verbose("Auth code client created"),h=ba.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,t.authenticationScheme),d=void 0,h&&(d=this.performanceClient.startMeasurement(St.FetchAccountIdWithNativeBroker,t.correlationId)),[4,l.getAuthCodeUrl(Y(Y({},s),{nativeBroker:h}))];case 5:return u=U.sent(),v=new o6(l,this.browserStorage,c,this.logger),m={popup:a,popupName:i,popupWindowAttributes:n},f=this.initiateAuthRequest(u,m),this.eventHandler.emitEvent(ie.POPUP_OPENED,W.Popup,{popupWindow:f},null),[4,this.monitorPopupForHash(f)];case 6:if(C=U.sent(),_=ke.getDeserializedHash(C),p=this.validateAndExtractStateFromHash(_,W.Popup,s.correlationId),H0.removeThrottle(this.browserStorage,this.config.auth.clientId,c),_.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),d&&d.endMeasurement({success:!0,isNativeBroker:!0}),!this.nativeMessageHandler)throw R.createNativeConnectionNotEstablishedError();return z=new L2(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,qe.acquireTokenPopup,this.performanceClient,this.nativeMessageHandler,_.accountId,this.nativeStorage,s.correlationId),M=Li.parseRequestState(this.browserCrypto,p).userRequestState,[2,z.acquireToken(Y(Y({},s),{state:M,prompt:void 0})).finally(function(){N.browserStorage.cleanRequestByState(p)})]}return[4,v.handleCodeResponseFromHash(C,p,l.authority,this.networkClient)];case 7:return A=U.sent(),[2,A];case 8:throw I=U.sent(),a&&a.close(),I instanceof Q&&I.setCorrelationId(this.correlationId),o.cacheFailedRequest(I),this.browserStorage.cleanRequestByState(s.state),I;case 9:return[2]}})})},e.prototype.logoutPopupAsync=function(t,i,n,a,o,s){return V(this,void 0,void 0,function(){var c,l,h,d,u,v,m;return S(this,function(f){switch(f.label){case 0:this.logger.verbose("logoutPopupAsync called"),this.eventHandler.emitEvent(ie.LOGOUT_START,W.Popup,t),c=this.initializeServerTelemetryManager(qe.logoutPopup),f.label=1;case 1:return f.trys.push([1,5,,6]),[4,this.clearCacheOnLogout(t.account)];case 2:return f.sent(),[4,this.createAuthCodeClient(c,a)];case 3:return l=f.sent(),this.logger.verbose("Auth code client created"),h=l.getLogoutUri(t),this.eventHandler.emitEvent(ie.LOGOUT_SUCCESS,W.Popup,t),d=this.openPopup(h,{popupName:i,popupWindowAttributes:n,popup:o}),this.eventHandler.emitEvent(ie.POPUP_OPENED,W.Popup,{popupWindow:d},null),[4,this.waitForLogoutPopup(d)];case 4:return f.sent(),s?(u={apiId:qe.logoutPopup,timeout:this.config.system.redirectNavigationTimeout,noHistory:!1},v=ke.getAbsoluteUrl(s,lt.getCurrentUri()),this.logger.verbose("Redirecting main window to url specified in the request"),this.logger.verbosePii("Redirecting main window to: "+v),this.navigationClient.navigateInternal(v,u)):this.logger.verbose("No main window navigation requested"),[3,6];case 5:throw m=f.sent(),o&&o.close(),m instanceof Q&&m.setCorrelationId(this.correlationId),this.browserStorage.setInteractionInProgress(!1),this.eventHandler.emitEvent(ie.LOGOUT_FAILURE,W.Popup,null,m),this.eventHandler.emitEvent(ie.LOGOUT_END,W.Popup),c.cacheFailedRequest(m),m;case 6:return this.eventHandler.emitEvent(ie.LOGOUT_END,W.Popup),[2]}})})},e.prototype.initiateAuthRequest=function(t,i){if(F.isEmpty(t))throw this.logger.error("Navigate url is empty"),R.createEmptyNavigationUriError();return this.logger.infoPii("Navigate to: "+t),this.openPopup(t,i)},e.prototype.monitorPopupForHash=function(t){var i=this;return new Promise(function(n,a){var o=i.config.system.windowHashTimeout/i.config.system.pollIntervalMilliseconds,s=0;i.logger.verbose("PopupHandler.monitorPopupForHash - polling started");var c=setInterval(function(){if(t.closed){i.logger.error("PopupHandler.monitorPopupForHash - window closed"),i.cleanPopup(),clearInterval(c),a(R.createUserCancelledError());return}var l=w.EMPTY_STRING,h=w.EMPTY_STRING;try{l=t.location.href,h=t.location.hash}catch{}F.isEmpty(l)||l==="about:blank"||(i.logger.verbose("PopupHandler.monitorPopupForHash - popup window is on same origin as caller"),s++,h?(i.logger.verbose("PopupHandler.monitorPopupForHash - found hash in url"),clearInterval(c),i.cleanPopup(t),ke.hashContainsKnownProperties(h)?(i.logger.verbose("PopupHandler.monitorPopupForHash - hash contains known properties, returning."),n(h)):(i.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."),i.logger.errorPii("PopupHandler.monitorPopupForHash - hash found: "+h),a(R.createHashDoesNotContainKnownPropertiesError()))):s>o&&(i.logger.error("PopupHandler.monitorPopupForHash - unable to find hash in url, timing out"),clearInterval(c),a(R.createMonitorPopupTimeoutError())))},i.config.system.pollIntervalMilliseconds)})},e.prototype.waitForLogoutPopup=function(t){var i=this;return new Promise(function(n){i.logger.verbose("PopupHandler.waitForLogoutPopup - polling started");var a=setInterval(function(){t.closed&&(i.logger.error("PopupHandler.waitForLogoutPopup - window closed"),i.cleanPopup(),clearInterval(a),n());var o=w.EMPTY_STRING;try{o=t.location.href}catch{}F.isEmpty(o)||o==="about:blank"||(i.logger.verbose("PopupHandler.waitForLogoutPopup - popup window is on same origin as caller, closing."),clearInterval(a),i.cleanPopup(t),n())},i.config.system.pollIntervalMilliseconds)})},e.prototype.openPopup=function(t,i){try{var n=void 0;if(i.popup?(n=i.popup,this.logger.verbosePii("Navigating popup window to: "+t),n.location.assign(t)):typeof i.popup>"u"&&(this.logger.verbosePii("Opening popup window to: "+t),n=this.openSizedPopup(t,i.popupName,i.popupWindowAttributes)),!n)throw R.createEmptyWindowCreatedError();return n.focus&&n.focus(),this.currentWindow=n,window.addEventListener("beforeunload",this.unloadWindow),n}catch(a){throw this.logger.error("error opening popup "+a.message),this.browserStorage.setInteractionInProgress(!1),R.createPopupWindowError(a.toString())}},e.prototype.openSizedPopup=function(t,i,n){var a,o,s,c,l=window.screenLeft?window.screenLeft:window.screenX,h=window.screenTop?window.screenTop:window.screenY,d=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,u=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,v=(a=n.popupSize)===null||a===void 0?void 0:a.width,m=(o=n.popupSize)===null||o===void 0?void 0:o.height,f=(s=n.popupPosition)===null||s===void 0?void 0:s.top,C=(c=n.popupPosition)===null||c===void 0?void 0:c.left;return(!v||v<0||v>d)&&(this.logger.verbose("Default popup window width used. Window width not configured or invalid."),v=$r.POPUP_WIDTH),(!m||m<0||m>u)&&(this.logger.verbose("Default popup window height used. Window height not configured or invalid."),m=$r.POPUP_HEIGHT),(!f||f<0||f>u)&&(this.logger.verbose("Default popup window top position used. Window top not configured or invalid."),f=Math.max(0,u/2-$r.POPUP_HEIGHT/2+h)),(!C||C<0||C>d)&&(this.logger.verbose("Default popup window left position used. Window left not configured or invalid."),C=Math.max(0,d/2-$r.POPUP_WIDTH/2+l)),window.open(t,i,"width="+v+", height="+m+", top="+f+", left="+C+", scrollbars=yes")},e.prototype.unloadWindow=function(t){this.browserStorage.cleanRequestByInteractionType(W.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,i){return $r.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+t.join("-")+"."+i+"."+this.correlationId},e.prototype.generateLogoutPopupName=function(t){var i=t.account&&t.account.homeAccountId;return $r.POPUP_NAME_PREFIX+"."+this.config.auth.clientId+"."+i+"."+this.correlationId},e}(Lo);/*! @azure/msal-browser v2.32.2 2023-01-10 */var gH=function(){function r(){}return r.prototype.navigateInternal=function(e,t){return r.defaultNavigateWindow(e,t)},r.prototype.navigateExternal=function(e,t){return r.defaultNavigateWindow(e,t)},r.defaultNavigateWindow=function(e,t){return t.noHistory?window.location.replace(e):window.location.assign(e),new Promise(function(i){setTimeout(function(){i(!0)},t.timeout)})},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var _H=6e4,J3=6e3,zH=3e4,yH=2e3;function wH(r,e){var t=r.auth,i=r.cache,n=r.system,a=r.telemetry,o={clientId:w.EMPTY_STRING,authority:""+w.DEFAULT_AUTHORITY,knownAuthorities:[],cloudDiscoveryMetadata:w.EMPTY_STRING,authorityMetadata:w.EMPTY_STRING,redirectUri:w.EMPTY_STRING,postLogoutRedirectUri:w.EMPTY_STRING,navigateToLoginRequestUrl:!0,clientCapabilities:[],protocolMode:P0.AAD,azureCloudOptions:{azureCloudInstance:Cc.None,tenant:w.EMPTY_STRING},skipAuthorityMetadataCache:!1},s={cacheLocation:c1.SessionStorage,storeAuthStateInCookie:!1,secureCookies:!1},c={loggerCallback:function(){},logLevel:ot.Info,piiLoggingEnabled:!1},l=Y(Y({},L_),{loggerOptions:c,networkClient:e?lt.getBrowserNetworkClient():oH,navigationClient:new gH,loadFrameTimeout:0,windowHashTimeout:(n==null?void 0:n.loadFrameTimeout)||_H,iframeHashTimeout:(n==null?void 0:n.loadFrameTimeout)||J3,navigateFrameWait:e&<.detectIEOrEdge()?500:0,redirectNavigationTimeout:zH,asyncPopups:!1,allowRedirectInIframe:!1,allowNativeBroker:!1,nativeBrokerHandshakeTimeout:(n==null?void 0:n.nativeBrokerHandshakeTimeout)||yH,pollIntervalMilliseconds:$r.DEFAULT_POLL_INTERVAL_MS,cryptoOptions:{useMsrCrypto:!1,entropy:void 0}}),h=Y(Y({},n),{loggerOptions:(n==null?void 0:n.loggerOptions)||c}),d={application:{appName:w.EMPTY_STRING,appVersion:w.EMPTY_STRING}},u={auth:Y(Y({},o),t),cache:Y(Y({},s),i),system:Y(Y({},l),h),telemetry:Y(Y({},d),a)};return u}/*! @azure/msal-browser v2.32.2 2023-01-10 */var B_=function(r){Jt(e,r);function e(t,i,n,a,o){var s=r.call(this,t,i,n,a)||this;return s.navigateFrameWait=o.navigateFrameWait,s.pollIntervalMilliseconds=o.pollIntervalMilliseconds,s}return e.prototype.initiateAuthRequest=function(t){return V(this,void 0,void 0,function(){var i;return S(this,function(n){switch(n.label){case 0:if(F.isEmpty(t))throw this.logger.info("Navigate url is empty"),R.createEmptyNavigationUriError();return this.navigateFrameWait?[4,this.loadFrame(t)]:[3,2];case 1:return i=n.sent(),[3,3];case 2:i=this.loadFrameSync(t),n.label=3;case 3:return[2,i]}})})},e.prototype.monitorIframeForHash=function(t,i){var n=this;return new Promise(function(a,o){i<J3&&n.logger.warning("system.loadFrameTimeout or system.iframeHashTimeout set to lower ("+i+"ms) than the default ("+J3+"ms). This may result in timeouts.");var s=window.performance.now(),c=s+i,l=setInterval(function(){if(window.performance.now()>c){n.removeHiddenIframe(t),clearInterval(l),o(R.createMonitorIframeTimeoutError());return}var h=w.EMPTY_STRING,d=t.contentWindow;try{h=d?d.location.href:w.EMPTY_STRING}catch{}if(!F.isEmpty(h)){var u=d?d.location.hash:w.EMPTY_STRING;if(ke.hashContainsKnownProperties(u)){n.removeHiddenIframe(t),clearInterval(l),a(u);return}}},n.pollIntervalMilliseconds)})},e.prototype.loadFrame=function(t){var i=this;return new Promise(function(n,a){var o=i.createHiddenIframe();setTimeout(function(){if(!o){a("Unable to load iframe");return}o.src=t,n(o)},i.navigateFrameWait)})},e.prototype.loadFrameSync=function(t){var i=this.createHiddenIframe();return i.src=t,i},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}(o6);/*! @azure/msal-browser v2.32.2 2023-01-10 */var bH=function(r){Jt(e,r);function e(t,i,n,a,o,s,c,l,h,d,u){var v=r.call(this,t,i,n,a,o,s,l,d,u)||this;return v.apiId=c,v.nativeStorage=h,v}return e.prototype.acquireToken=function(t){return V(this,void 0,void 0,function(){var i,n,a,o,s;return S(this,function(c){switch(c.label){case 0:if(this.logger.verbose("acquireTokenByIframe called"),i=this.performanceClient.startMeasurement(St.SilentIframeClientAcquireToken,t.correlationId),F.isEmpty(t.loginHint)&&F.isEmpty(t.sid)&&(!t.account||F.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!==d1.NONE&&t.prompt!==d1.NO_SESSION)throw i.endMeasurement({success:!1}),R.createSilentPromptValueError(t.prompt);return[4,this.initializeAuthorizationRequest(Y(Y({},t),{prompt:t.prompt||d1.NONE}),W.Silent)];case 1:n=c.sent(),this.browserStorage.updateCacheEntries(n.state,n.nonce,n.authority,n.loginHint||w.EMPTY_STRING,n.account||null),a=this.initializeServerTelemetryManager(this.apiId),c.label=2;case 2:return c.trys.push([2,5,,6]),[4,this.createAuthCodeClient(a,n.authority,n.azureCloudOptions)];case 3:return o=c.sent(),this.logger.verbose("Auth code client created"),[4,this.silentTokenHelper(o,n).then(function(l){return i.endMeasurement({success:!0,fromCache:!1,requestId:l.requestId}),l})];case 4:return[2,c.sent()];case 5:throw s=c.sent(),s instanceof Q&&s.setCorrelationId(this.correlationId),a.cacheFailedRequest(s),this.browserStorage.cleanRequestByState(n.state),i.endMeasurement({errorCode:s instanceof Q&&s.errorCode||void 0,subErrorCode:s instanceof Q&&s.subError||void 0,success:!1}),s;case 6:return[2]}})})},e.prototype.logout=function(){return Promise.reject(R.createSilentLogoutUnsupportedError())},e.prototype.silentTokenHelper=function(t,i){return V(this,void 0,void 0,function(){var n,a,o,s,c,l,h,d,u,v=this;return S(this,function(m){switch(m.label){case 0:return[4,this.initializeAuthorizationCodeRequest(i)];case 1:return n=m.sent(),[4,t.getAuthCodeUrl(Y(Y({},i),{nativeBroker:ba.isNativeAvailable(this.config,this.logger,this.nativeMessageHandler,i.authenticationScheme)}))];case 2:return a=m.sent(),o=new B_(t,this.browserStorage,n,this.logger,this.config.system),[4,o.initiateAuthRequest(a)];case 3:return s=m.sent(),[4,o.monitorIframeForHash(s,this.config.system.iframeHashTimeout)];case 4:if(c=m.sent(),l=ke.getDeserializedHash(c),h=this.validateAndExtractStateFromHash(l,W.Silent,n.correlationId),l.accountId){if(this.logger.verbose("Account id found in hash, calling WAM for token"),!this.nativeMessageHandler)throw R.createNativeConnectionNotEstablishedError();return d=new L2(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.apiId,this.performanceClient,this.nativeMessageHandler,l.accountId,this.browserStorage,this.correlationId),u=Li.parseRequestState(this.browserCrypto,h).userRequestState,[2,d.acquireToken(Y(Y({},i),{state:u,prompt:i.prompt||d1.NONE})).finally(function(){v.browserStorage.cleanRequestByState(h)})]}return[2,o.handleCodeResponseFromHash(c,h,t.authority,this.networkClient)]}})})},e}(Lo);/*! @azure/msal-browser v2.32.2 2023-01-10 */var xH=function(r){Jt(e,r);function e(){return r!==null&&r.apply(this,arguments)||this}return e.prototype.acquireToken=function(t){return V(this,void 0,void 0,function(){var i,n,a,o,s,c=this;return S(this,function(l){switch(l.label){case 0:return n=[Y({},t)],[4,this.initializeBaseRequest(t)];case 1:return i=Y.apply(void 0,n.concat([l.sent()])),a=this.performanceClient.startMeasurement(St.SilentRefreshClientAcquireToken,i.correlationId),o=this.initializeServerTelemetryManager(qe.acquireTokenSilent_silentFlow),[4,this.createRefreshTokenClient(o,i.authority,i.azureCloudOptions)];case 2:return s=l.sent(),this.logger.verbose("Refresh token client created"),[2,s.acquireTokenByRefreshToken(i).then(function(h){return a.endMeasurement({success:!0,fromCache:h.fromCache,requestId:h.requestId}),h}).catch(function(h){throw h instanceof Q&&h.setCorrelationId(c.correlationId),o.cacheFailedRequest(h),a.endMeasurement({errorCode:h.errorCode,subErrorCode:h.subError,success:!1}),h})]}})})},e.prototype.logout=function(){return Promise.reject(R.createSilentLogoutUnsupportedError())},e.prototype.createRefreshTokenClient=function(t,i,n){return V(this,void 0,void 0,function(){var a;return S(this,function(o){switch(o.label){case 0:return[4,this.getClientConfiguration(t,i,n)];case 1:return a=o.sent(),[2,new I_(a,this.performanceClient)]}})})},e}(Lo);/*! @azure/msal-browser v2.32.2 2023-01-10 */var MH=function(){function r(e,t){this.eventCallbacks=new Map,this.logger=e,this.browserCrypto=t,this.listeningToStorageEvents=!1,this.handleAccountCacheChange=this.handleAccountCacheChange.bind(this)}return r.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},r.prototype.removeEventCallback=function(e){this.eventCallbacks.delete(e),this.logger.verbose("Event callback "+e+" removed.")},r.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)))},r.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."))},r.prototype.emitEvent=function(e,t,i,n){var a=this;if(typeof window<"u"){var o={eventType:e,interactionType:t||null,payload:i||null,error:n||null,timestamp:Date.now()};this.logger.info("Emitting event: "+e),this.eventCallbacks.forEach(function(s,c){a.logger.verbose("Emitting event to callback "+c+": "+e),s.apply(null,[o])})}},r.prototype.handleAccountCacheChange=function(e){try{var t=e.newValue||e.oldValue;if(!t)return;var i=JSON.parse(t);if(typeof i!="object"||!Wt.isAccountEntity(i))return;var n=Pr.toObject(new Wt,i),a=n.getAccountInfo();!e.oldValue&&e.newValue?(this.logger.info("Account was added to cache in a different window"),this.emitEvent(ie.ACCOUNT_ADDED,void 0,a)):!e.newValue&&e.oldValue&&(this.logger.info("Account was removed from cache in a different window"),this.emitEvent(ie.ACCOUNT_REMOVED,void 0,a))}catch{return}},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var a1=function(){function r(){}return r.decimalToHex=function(e){for(var t=e.toString(16);t.length<2;)t="0"+t;return t},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var j_=function(){function r(e){this.cryptoObj=e}return r.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,a1.decimalToHex(e[0])+a1.decimalToHex(e[1])+a1.decimalToHex(e[2])+a1.decimalToHex(e[3])+"-"+a1.decimalToHex(e[4])+a1.decimalToHex(e[5])+"-"+a1.decimalToHex(e[6])+a1.decimalToHex(e[7])+"-"+a1.decimalToHex(e[8])+a1.decimalToHex(e[9])+"-"+a1.decimalToHex(e[10])+a1.decimalToHex(e[11])+a1.decimalToHex(e[12])+a1.decimalToHex(e[13])+a1.decimalToHex(e[14])+a1.decimalToHex(e[15])}catch{for(var t="xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx",i="0123456789abcdef",n=0,a=w.EMPTY_STRING,o=0;o<36;o++)t[o]!=="-"&&t[o]!=="4"&&(n=Math.random()*16|0),t[o]==="x"?a+=i[n]:t[o]==="y"?(n&=3,n|=8,a+=i[n]):a+=t[o];return a}},r.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)},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var Ti=function(){function r(){}return r.stringToUtf8Arr=function(e){for(var t,i=0,n=e.length,a=0;a<n;a++)t=e.charCodeAt(a),i+=t<128?1:t<2048?2:t<65536?3:t<2097152?4:t<67108864?5:6;for(var o=new Uint8Array(i),s=0,c=0;s<i;c++)t=e.charCodeAt(c),t<128?o[s++]=t:t<2048?(o[s++]=192+(t>>>6),o[s++]=128+(t&63)):t<65536?(o[s++]=224+(t>>>12),o[s++]=128+(t>>>6&63),o[s++]=128+(t&63)):t<2097152?(o[s++]=240+(t>>>18),o[s++]=128+(t>>>12&63),o[s++]=128+(t>>>6&63),o[s++]=128+(t&63)):t<67108864?(o[s++]=248+(t>>>24),o[s++]=128+(t>>>18&63),o[s++]=128+(t>>>12&63),o[s++]=128+(t>>>6&63),o[s++]=128+(t&63)):(o[s++]=252+(t>>>30),o[s++]=128+(t>>>24&63),o[s++]=128+(t>>>18&63),o[s++]=128+(t>>>12&63),o[s++]=128+(t>>>6&63),o[s++]=128+(t&63));return o},r.stringToArrayBuffer=function(e){for(var t=new ArrayBuffer(e.length),i=new Uint8Array(t),n=0;n<e.length;n++)i[n]=e.charCodeAt(n);return t},r.utf8ArrToString=function(e){for(var t=w.EMPTY_STRING,i=void 0,n=e.length,a=0;a<n;a++)i=e[a],t+=String.fromCharCode(i>251&&i<254&&a+5<n?(i-252)*1073741824+(e[++a]-128<<24)+(e[++a]-128<<18)+(e[++a]-128<<12)+(e[++a]-128<<6)+e[++a]-128:i>247&&i<252&&a+4<n?(i-248<<24)+(e[++a]-128<<18)+(e[++a]-128<<12)+(e[++a]-128<<6)+e[++a]-128:i>239&&i<248&&a+3<n?(i-240<<18)+(e[++a]-128<<12)+(e[++a]-128<<6)+e[++a]-128:i>223&&i<240&&a+2<n?(i-224<<12)+(e[++a]-128<<6)+e[++a]-128:i>191&&i<224&&a+1<n?(i-192<<6)+e[++a]-128:i);return t},r.getSortedObjectString=function(e){return JSON.stringify(e,Object.keys(e).sort())},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var q_=function(){function r(){}return r.prototype.urlEncode=function(e){return encodeURIComponent(this.encode(e).replace(/=/g,w.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_"))},r.prototype.urlEncodeArr=function(e){return this.base64EncArr(e).replace(/=/g,w.EMPTY_STRING).replace(/\+/g,"-").replace(/\//g,"_")},r.prototype.encode=function(e){var t=Ti.stringToUtf8Arr(e);return this.base64EncArr(t)},r.prototype.base64EncArr=function(e){for(var t=(3-e.length%3)%3,i=w.EMPTY_STRING,n=void 0,a=e.length,o=0,s=0;s<a;s++)n=s%3,o|=e[s]<<(16>>>n&24),(n===2||e.length-s===1)&&(i+=String.fromCharCode(this.uint6ToB64(o>>>18&63),this.uint6ToB64(o>>>12&63),this.uint6ToB64(o>>>6&63),this.uint6ToB64(o&63)),o=0);return t===0?i:i.substring(0,i.length-t)+(t===1?"=":"==")},r.prototype.uint6ToB64=function(e){return e<26?e+65:e<52?e+71:e<62?e-4:e===62?43:e===63?47:65},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var CH=function(){function r(){}return r.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 i=this.base64DecToArr(t);return Ti.utf8ArrToString(i)},r.prototype.base64DecToArr=function(e,t){for(var i=e.replace(/[^A-Za-z0-9\+\/]/g,w.EMPTY_STRING),n=i.length,a=t?Math.ceil((n*3+1>>>2)/t)*t:n*3+1>>>2,o=new Uint8Array(a),s=void 0,c=void 0,l=0,h=0,d=0;d<n;d++)if(c=d&3,l|=this.b64ToUint6(i.charCodeAt(d))<<18-6*c,c===3||n-d===1){for(s=0;s<3&&h<a;s++,h++)o[h]=l>>>(16>>>s&24)&255;l=0}return o},r.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},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var HH=32,kH=function(){function r(e){this.base64Encode=new q_,this.cryptoObj=e}return r.prototype.generateCodes=function(){return V(this,void 0,void 0,function(){var e,t;return S(this,function(i){switch(i.label){case 0:return e=this.generateCodeVerifier(),[4,this.generateCodeChallengeFromVerifier(e)];case 1:return t=i.sent(),[2,{verifier:e,challenge:t}]}})})},r.prototype.generateCodeVerifier=function(){try{var e=new Uint8Array(HH);this.cryptoObj.getRandomValues(e);var t=this.base64Encode.urlEncodeArr(e);return t}catch(i){throw R.createPkceNotGeneratedError(i)}},r.prototype.generateCodeChallengeFromVerifier=function(e){return V(this,void 0,void 0,function(){var t,i;return S(this,function(n){switch(n.label){case 0:return n.trys.push([0,2,,3]),[4,this.cryptoObj.sha256Digest(e)];case 1:return t=n.sent(),[2,this.base64Encode.urlEncodeArr(new Uint8Array(t))];case 2:throw i=n.sent(),R.createPkceNotGeneratedError(i);case 3:return[2]}})})},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var EH=function(){function r(){}return r.prototype.getRandomValues=function(e){return window.crypto.getRandomValues(e)},r.prototype.generateKey=function(e,t,i){return V(this,void 0,void 0,function(){return S(this,function(n){return[2,window.crypto.subtle.generateKey(e,t,i)]})})},r.prototype.exportKey=function(e){return V(this,void 0,void 0,function(){return S(this,function(t){return[2,window.crypto.subtle.exportKey(ro,e)]})})},r.prototype.importKey=function(e,t,i,n){return V(this,void 0,void 0,function(){return S(this,function(a){return[2,window.crypto.subtle.importKey(ro,e,t,i,n)]})})},r.prototype.sign=function(e,t,i){return V(this,void 0,void 0,function(){return S(this,function(n){return[2,window.crypto.subtle.sign(e,t,i)]})})},r.prototype.digest=function(e,t){return V(this,void 0,void 0,function(){return S(this,function(i){return[2,window.crypto.subtle.digest(e,t)]})})},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var PH=function(){function r(){}return r.prototype.initPrng=function(e){return window.msrCrypto.initPrng(i6(e))},r.prototype.getRandomValues=function(e){return window.msrCrypto.getRandomValues(e)},r.prototype.generateKey=function(e,t,i){return V(this,void 0,void 0,function(){return S(this,function(n){return[2,window.msrCrypto.subtle.generateKey(e,t,i)]})})},r.prototype.exportKey=function(e){return V(this,void 0,void 0,function(){return S(this,function(t){return[2,window.msrCrypto.subtle.exportKey(ro,e)]})})},r.prototype.importKey=function(e,t,i,n){return V(this,void 0,void 0,function(){return S(this,function(a){return[2,window.msrCrypto.subtle.importKey(ro,e,t,i,n)]})})},r.prototype.sign=function(e,t,i){return V(this,void 0,void 0,function(){return S(this,function(n){return[2,window.msrCrypto.subtle.sign(e,t,i)]})})},r.prototype.digest=function(e,t){return V(this,void 0,void 0,function(){return S(this,function(i){return[2,window.msrCrypto.subtle.digest(e,t)]})})},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var AH=function(){function r(){}return r.prototype.getRandomValues=function(e){return window.msCrypto.getRandomValues(e)},r.prototype.generateKey=function(e,t,i){return V(this,void 0,void 0,function(){return S(this,function(n){return[2,new Promise(function(a,o){var s=window.msCrypto.subtle.generateKey(e,t,i);s.addEventListener("complete",function(c){a(c.target.result)}),s.addEventListener("error",function(c){o(c)})})]})})},r.prototype.exportKey=function(e){return V(this,void 0,void 0,function(){return S(this,function(t){return[2,new Promise(function(i,n){var a=window.msCrypto.subtle.exportKey(ro,e);a.addEventListener("complete",function(o){var s=o.target.result,c=Ti.utf8ArrToString(new Uint8Array(s)).replace(/\r/g,w.EMPTY_STRING).replace(/\n/g,w.EMPTY_STRING).replace(/\t/g,w.EMPTY_STRING).split(" ").join(w.EMPTY_STRING).replace("\0",w.EMPTY_STRING);try{i(JSON.parse(c))}catch(l){n(l)}}),a.addEventListener("error",function(o){n(o)})})]})})},r.prototype.importKey=function(e,t,i,n){return V(this,void 0,void 0,function(){var a,o;return S(this,function(s){return a=Ti.getSortedObjectString(e),o=Ti.stringToArrayBuffer(a),[2,new Promise(function(c,l){var h=window.msCrypto.subtle.importKey(ro,o,t,i,n);h.addEventListener("complete",function(d){c(d.target.result)}),h.addEventListener("error",function(d){l(d)})})]})})},r.prototype.sign=function(e,t,i){return V(this,void 0,void 0,function(){return S(this,function(n){return[2,new Promise(function(a,o){var s=window.msCrypto.subtle.sign(e,t,i);s.addEventListener("complete",function(c){a(c.target.result)}),s.addEventListener("error",function(c){o(c)})})]})})},r.prototype.digest=function(e,t){return V(this,void 0,void 0,function(){return S(this,function(i){return[2,new Promise(function(n,a){var o=window.msCrypto.subtle.digest(e,t.buffer);o.addEventListener("complete",function(s){n(s.target.result)}),o.addEventListener("error",function(s){a(s)})})]})})},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var VH="RSASSA-PKCS1-v1_5",km="SHA-256",SH=2048,$H=new Uint8Array([1,0,1]),G_=function(){function r(e,t){var i,n;if(this.logger=e,this.cryptoOptions=t,this.hasBrowserCrypto())this.logger.verbose("BrowserCrypto: modern crypto interface available"),this.subtleCrypto=new EH;else if(this.hasIECrypto())this.logger.verbose("BrowserCrypto: MS crypto interface available"),this.subtleCrypto=new AH;else if(this.hasMsrCrypto()&&(!((i=this.cryptoOptions)===null||i===void 0)&&i.useMsrCrypto))this.logger.verbose("BrowserCrypto: MSR crypto interface available"),this.subtleCrypto=new PH;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."),R.createCryptoNotAvailableError("Browser crypto, msCrypto, or msrCrypto interfaces not available.");if(this.subtleCrypto.initPrng){if(this.logger.verbose("BrowserCrypto: Interface requires entropy"),!(!((n=this.cryptoOptions)===null||n===void 0)&&n.entropy))throw this.logger.error("BrowserCrypto: Interface requires entropy but none provided."),$0.createEntropyNotProvided();this.logger.verbose("BrowserCrypto: Entropy provided"),this.subtleCrypto.initPrng(this.cryptoOptions.entropy)}this.keygenAlgorithmOptions={name:VH,hash:km,modulusLength:SH,publicExponent:$H}}return r.prototype.hasIECrypto=function(){return"msCrypto"in window},r.prototype.hasBrowserCrypto=function(){return"crypto"in window},r.prototype.hasMsrCrypto=function(){return"msrCrypto"in window},r.prototype.sha256Digest=function(e){return V(this,void 0,void 0,function(){var t;return S(this,function(i){return t=Ti.stringToUtf8Arr(e),[2,this.subtleCrypto.digest({name:km},t)]})})},r.prototype.getRandomValues=function(e){return this.subtleCrypto.getRandomValues(e)},r.prototype.generateKeyPair=function(e,t){return V(this,void 0,void 0,function(){return S(this,function(i){return[2,this.subtleCrypto.generateKey(this.keygenAlgorithmOptions,e,t)]})})},r.prototype.exportJwk=function(e){return V(this,void 0,void 0,function(){return S(this,function(t){return[2,this.subtleCrypto.exportKey(e)]})})},r.prototype.importJwk=function(e,t,i){return V(this,void 0,void 0,function(){return S(this,function(n){return[2,this.subtleCrypto.importKey(e,this.keygenAlgorithmOptions,t,i)]})})},r.prototype.sign=function(e,t){return V(this,void 0,void 0,function(){return S(this,function(i){return[2,this.subtleCrypto.sign(this.keygenAlgorithmOptions,e,t)]})})},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var DH=function(){function r(){this.dbName=Y3,this.version=hH,this.tableName=dH,this.dbOpen=!1}return r.prototype.open=function(){return V(this,void 0,void 0,function(){var e=this;return S(this,function(t){return[2,new Promise(function(i,n){var a=window.indexedDB.open(e.dbName,e.version);a.addEventListener("upgradeneeded",function(o){var s=o;s.target.result.createObjectStore(e.tableName)}),a.addEventListener("success",function(o){var s=o;e.db=s.target.result,e.dbOpen=!0,i()}),a.addEventListener("error",function(){return n(R.createDatabaseUnavailableError())})})]})})},r.prototype.closeConnection=function(){var e=this.db;e&&this.dbOpen&&(e.close(),this.dbOpen=!1)},r.prototype.validateDbIsOpen=function(){return V(this,void 0,void 0,function(){return S(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]}})})},r.prototype.getItem=function(e){return V(this,void 0,void 0,function(){var t=this;return S(this,function(i){switch(i.label){case 0:return[4,this.validateDbIsOpen()];case 1:return i.sent(),[2,new Promise(function(n,a){if(!t.db)return a(R.createDatabaseNotOpenError());var o=t.db.transaction([t.tableName],"readonly"),s=o.objectStore(t.tableName),c=s.get(e);c.addEventListener("success",function(l){var h=l;t.closeConnection(),n(h.target.result)}),c.addEventListener("error",function(l){t.closeConnection(),a(l)})})]}})})},r.prototype.setItem=function(e,t){return V(this,void 0,void 0,function(){var i=this;return S(this,function(n){switch(n.label){case 0:return[4,this.validateDbIsOpen()];case 1:return n.sent(),[2,new Promise(function(a,o){if(!i.db)return o(R.createDatabaseNotOpenError());var s=i.db.transaction([i.tableName],"readwrite"),c=s.objectStore(i.tableName),l=c.put(t,e);l.addEventListener("success",function(){i.closeConnection(),a()}),l.addEventListener("error",function(h){i.closeConnection(),o(h)})})]}})})},r.prototype.removeItem=function(e){return V(this,void 0,void 0,function(){var t=this;return S(this,function(i){switch(i.label){case 0:return[4,this.validateDbIsOpen()];case 1:return i.sent(),[2,new Promise(function(n,a){if(!t.db)return a(R.createDatabaseNotOpenError());var o=t.db.transaction([t.tableName],"readwrite"),s=o.objectStore(t.tableName),c=s.delete(e);c.addEventListener("success",function(){t.closeConnection(),n()}),c.addEventListener("error",function(l){t.closeConnection(),a(l)})})]}})})},r.prototype.getKeys=function(){return V(this,void 0,void 0,function(){var e=this;return S(this,function(t){switch(t.label){case 0:return[4,this.validateDbIsOpen()];case 1:return t.sent(),[2,new Promise(function(i,n){if(!e.db)return n(R.createDatabaseNotOpenError());var a=e.db.transaction([e.tableName],"readonly"),o=a.objectStore(e.tableName),s=o.getAllKeys();s.addEventListener("success",function(c){var l=c;e.closeConnection(),i(l.target.result)}),s.addEventListener("error",function(c){e.closeConnection(),n(c)})})]}})})},r.prototype.containsKey=function(e){return V(this,void 0,void 0,function(){var t=this;return S(this,function(i){switch(i.label){case 0:return[4,this.validateDbIsOpen()];case 1:return i.sent(),[2,new Promise(function(n,a){if(!t.db)return a(R.createDatabaseNotOpenError());var o=t.db.transaction([t.tableName],"readonly"),s=o.objectStore(t.tableName),c=s.count(e);c.addEventListener("success",function(l){var h=l;t.closeConnection(),n(h.target.result===1)}),c.addEventListener("error",function(l){t.closeConnection(),a(l)})})]}})})},r.prototype.deleteDatabase=function(){return V(this,void 0,void 0,function(){return S(this,function(e){return this.db&&this.dbOpen&&this.closeConnection(),[2,new Promise(function(t,i){var n=window.indexedDB.deleteDatabase(Y3);n.addEventListener("success",function(){return t(!0)}),n.addEventListener("blocked",function(){return t(!0)}),n.addEventListener("error",function(){return i(!1)})})]})})},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var Em=function(){function r(e,t){this.inMemoryCache=new Q3,this.indexedDBCache=new DH,this.logger=e,this.storeName=t}return r.prototype.handleDatabaseAccessError=function(e){if(e instanceof R&&e.errorCode===L.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},r.prototype.getItem=function(e){return V(this,void 0,void 0,function(){var t,i;return S(this,function(n){switch(n.label){case 0:if(t=this.inMemoryCache.getItem(e),t)return[3,4];n.label=1;case 1:return n.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,n.sent()];case 3:return i=n.sent(),this.handleDatabaseAccessError(i),[3,4];case 4:return[2,t]}})})},r.prototype.setItem=function(e,t){return V(this,void 0,void 0,function(){var i;return S(this,function(n){switch(n.label){case 0:this.inMemoryCache.setItem(e,t),n.label=1;case 1:return n.trys.push([1,3,,4]),[4,this.indexedDBCache.setItem(e,t)];case 2:return n.sent(),[3,4];case 3:return i=n.sent(),this.handleDatabaseAccessError(i),[3,4];case 4:return[2]}})})},r.prototype.removeItem=function(e){return V(this,void 0,void 0,function(){var t;return S(this,function(i){switch(i.label){case 0:this.inMemoryCache.removeItem(e),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.indexedDBCache.removeItem(e)];case 2:return i.sent(),[3,4];case 3:return t=i.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2]}})})},r.prototype.getKeys=function(){return V(this,void 0,void 0,function(){var e,t;return S(this,function(i){switch(i.label){case 0:if(e=this.inMemoryCache.getKeys(),e.length!==0)return[3,4];i.label=1;case 1:return i.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,i.sent()];case 3:return t=i.sent(),this.handleDatabaseAccessError(t),[3,4];case 4:return[2,e]}})})},r.prototype.containsKey=function(e){return V(this,void 0,void 0,function(){var t,i;return S(this,function(n){switch(n.label){case 0:if(t=this.inMemoryCache.containsKey(e),t)return[3,4];n.label=1;case 1:return n.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,n.sent()];case 3:return i=n.sent(),this.handleDatabaseAccessError(i),[3,4];case 4:return[2,t]}})})},r.prototype.clearInMemory=function(){this.logger.verbose("Deleting in-memory keystore "+this.storeName),this.inMemoryCache.clear(),this.logger.verbose("In-memory keystore "+this.storeName+" deleted")},r.prototype.clearPersistent=function(){return V(this,void 0,void 0,function(){var e,t;return S(this,function(i){switch(i.label){case 0:return i.trys.push([0,2,,3]),this.logger.verbose("Deleting persistent keystore"),[4,this.indexedDBCache.deleteDatabase()];case 1:return e=i.sent(),e&&this.logger.verbose("Persistent keystore deleted"),[2,e];case 2:return t=i.sent(),this.handleDatabaseAccessError(t),[2,!1];case 3:return[2]}})})},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var D0;(function(r){r.asymmetricKeys="asymmetricKeys",r.symmetricKeys="symmetricKeys"})(D0||(D0={}));var LH=function(){function r(e){this.logger=e,this.asymmetricKeys=new Em(this.logger,D0.asymmetricKeys),this.symmetricKeys=new Em(this.logger,D0.symmetricKeys)}return r.prototype.clear=function(){return V(this,void 0,void 0,function(){var e;return S(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]}})})},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var TH=function(){function r(e,t,i){this.logger=e,this.browserCrypto=new G_(this.logger,i),this.b64Encode=new q_,this.b64Decode=new CH,this.guidGenerator=new j_(this.browserCrypto),this.pkceGenerator=new kH(this.browserCrypto),this.cache=new LH(this.logger),this.performanceClient=t}return r.prototype.createNewGuid=function(){return this.guidGenerator.generateGuid()},r.prototype.base64Encode=function(e){return this.b64Encode.encode(e)},r.prototype.base64Decode=function(e){return this.b64Decode.decode(e)},r.prototype.generatePkceCodes=function(){return V(this,void 0,void 0,function(){return S(this,function(e){return[2,this.pkceGenerator.generateCodes()]})})},r.prototype.getPublicKeyThumbprint=function(e){var t;return V(this,void 0,void 0,function(){var i,n,a,o,s,c,l,h;return S(this,function(d){switch(d.label){case 0:return i=(t=this.performanceClient)===null||t===void 0?void 0:t.startMeasurement(St.CryptoOptsGetPublicKeyThumbprint,e.correlationId),[4,this.browserCrypto.generateKeyPair(r.EXTRACTABLE,r.POP_KEY_USAGES)];case 1:return n=d.sent(),[4,this.browserCrypto.exportJwk(n.publicKey)];case 2:return a=d.sent(),o={e:a.e,kty:a.kty,n:a.n},s=Ti.getSortedObjectString(o),[4,this.hashString(s)];case 3:return c=d.sent(),[4,this.browserCrypto.exportJwk(n.privateKey)];case 4:return l=d.sent(),[4,this.browserCrypto.importJwk(l,!1,["sign"])];case 5:return h=d.sent(),[4,this.cache.asymmetricKeys.setItem(c,{privateKey:h,publicKey:n.publicKey,requestMethod:e.resourceRequestMethod,requestUri:e.resourceRequestUri})];case 6:return d.sent(),i&&i.endMeasurement({success:!0}),[2,c]}})})},r.prototype.removeTokenBindingKey=function(e){return V(this,void 0,void 0,function(){var t;return S(this,function(i){switch(i.label){case 0:return[4,this.cache.asymmetricKeys.removeItem(e)];case 1:return i.sent(),[4,this.cache.asymmetricKeys.containsKey(e)];case 2:return t=i.sent(),[2,!t]}})})},r.prototype.clearKeystore=function(){return V(this,void 0,void 0,function(){return S(this,function(e){switch(e.label){case 0:return[4,this.cache.clear()];case 1:return[2,e.sent()]}})})},r.prototype.signJwt=function(e,t,i){var n;return V(this,void 0,void 0,function(){var a,o,s,c,l,h,d,u,v,m,f,C,_;return S(this,function(p){switch(p.label){case 0:return a=(n=this.performanceClient)===null||n===void 0?void 0:n.startMeasurement(St.CryptoOptsSignJwt,i),[4,this.cache.asymmetricKeys.getItem(t)];case 1:if(o=p.sent(),!o)throw R.createSigningKeyNotFoundInStorageError(t);return[4,this.browserCrypto.exportJwk(o.publicKey)];case 2:return s=p.sent(),c=Ti.getSortedObjectString(s),l=this.b64Encode.urlEncode(JSON.stringify({kid:t})),h=sH.getShrHeaderString({kid:l,alg:s.alg}),d=this.b64Encode.urlEncode(h),e.cnf={jwk:JSON.parse(c)},u=this.b64Encode.urlEncode(JSON.stringify(e)),v=d+"."+u,m=Ti.stringToArrayBuffer(v),[4,this.browserCrypto.sign(o.privateKey,m)];case 3:return f=p.sent(),C=this.b64Encode.urlEncodeArr(new Uint8Array(f)),_=v+"."+C,a&&a.endMeasurement({success:!0}),[2,_]}})})},r.prototype.hashString=function(e){return V(this,void 0,void 0,function(){var t,i;return S(this,function(n){switch(n.label){case 0:return[4,this.browserCrypto.sha256Digest(e)];case 1:return t=n.sent(),i=new Uint8Array(t),[2,this.b64Encode.urlEncodeArr(i)]}})})},r.POP_KEY_USAGES=["sign","verify"],r.EXTRACTABLE=!0,r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var IH=function(){function r(e,t,i,n){this.isBrowserEnvironment=typeof window<"u",this.config=e,this.storage=t,this.logger=i,this.cryptoObj=n}return r.prototype.loadExternalTokens=function(e,t,i){if(this.logger.info("TokenCache - loadExternalTokens called"),!t.id_token)throw R.createUnableToLoadTokenError("Please ensure server response includes id token.");var n=new ui(t.id_token,this.cryptoObj),a,o;if(e.account){var s=this.loadAccount(n,e.account.environment,void 0,void 0,e.account.homeAccountId);a=new Ch(s,this.loadIdToken(n,s.homeAccountId,e.account.environment,e.account.tenantId),this.loadAccessToken(e,t,s.homeAccountId,e.account.environment,e.account.tenantId,i),this.loadRefreshToken(e,t,s.homeAccountId,e.account.environment))}else if(e.authority){var c=A0.generateAuthority(e.authority,e.azureCloudOptions),l={protocolMode:this.config.auth.protocolMode,knownAuthorities:this.config.auth.knownAuthorities,cloudDiscoveryMetadata:this.config.auth.cloudDiscoveryMetadata,authorityMetadata:this.config.auth.authorityMetadata,skipAuthorityMetadataCache:this.config.auth.skipAuthorityMetadataCache};if(o=new A0(c,this.config.system.networkClient,this.storage,l,this.logger),i.clientInfo){this.logger.trace("TokenCache - homeAccountId from options");var s=this.loadAccount(n,o.hostnameAndPort,i.clientInfo,o.authorityType);a=new Ch(s,this.loadIdToken(n,s.homeAccountId,o.hostnameAndPort,o.tenant),this.loadAccessToken(e,t,s.homeAccountId,o.hostnameAndPort,o.tenant,i),this.loadRefreshToken(e,t,s.homeAccountId,o.hostnameAndPort))}else if(t.client_info){this.logger.trace("TokenCache - homeAccountId from response");var s=this.loadAccount(n,o.hostnameAndPort,t.client_info,o.authorityType);a=new Ch(s,this.loadIdToken(n,s.homeAccountId,o.hostnameAndPort,o.tenant),this.loadAccessToken(e,t,s.homeAccountId,o.hostnameAndPort,o.tenant,i),this.loadRefreshToken(e,t,s.homeAccountId,o.hostnameAndPort))}else throw R.createUnableToLoadTokenError("Please provide clientInfo in the response or options.")}else throw R.createUnableToLoadTokenError("Please provide a request with an account or a request with authority.");return this.generateAuthenticationResult(e,n,a,o)},r.prototype.loadAccount=function(e,t,i,n,a){var o;if(a?o=a:n!==void 0&&i&&(o=Wt.generateHomeAccountId(i,n,this.logger,this.cryptoObj,e)),!o)throw R.createUnableToLoadTokenError("Unexpected missing homeAccountId");var s=i?Wt.createAccount(i,o,e,void 0,void 0,void 0,t):Wt.createGenericAccount(o,e,void 0,void 0,void 0,t);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading account"),this.storage.setAccount(s),s;throw R.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.loadIdToken=function(e,t,i,n){var a=kc.createIdTokenEntity(t,i,e.rawToken,this.config.auth.clientId,n);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading id token"),this.storage.setIdTokenCredential(a),a;throw R.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.loadAccessToken=function(e,t,i,n,a,o){if(!t.access_token)return this.logger.verbose("TokenCache - No access token provided for caching"),null;if(!t.expires_in)throw R.createUnableToLoadTokenError("Please ensure server response includes expires_in value.");if(!o.extendedExpiresOn)throw R.createUnableToLoadTokenError("Please provide an extendedExpiresOn value in the options.");var s=new g1(e.scopes).printScopes(),c=o.expiresOn||t.expires_in+new Date().getTime()/1e3,l=o.extendedExpiresOn,h=Ec.createAccessTokenEntity(i,n,t.access_token,this.config.auth.clientId,a,s,c,l,this.cryptoObj);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading access token"),this.storage.setAccessTokenCredential(h),h;throw R.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.loadRefreshToken=function(e,t,i,n){if(!t.refresh_token)return this.logger.verbose("TokenCache - No refresh token provided for caching"),null;var a=k0.createRefreshTokenEntity(i,n,t.refresh_token,this.config.auth.clientId);if(this.isBrowserEnvironment)return this.logger.verbose("TokenCache - loading refresh token"),this.storage.setRefreshTokenCredential(a),a;throw R.createUnableToLoadTokenError("loadExternalTokens is designed to work in browser environments only.")},r.prototype.generateAuthenticationResult=function(e,t,i,n){var a,o,s,c=w.EMPTY_STRING,l=[],h=null,d;i!=null&&i.accessToken&&(c=i.accessToken.secret,l=g1.fromString(i.accessToken.target).asArray(),h=new Date(Number(i.accessToken.expiresOn)*1e3),d=new Date(Number(i.accessToken.extendedExpiresOn)*1e3));var u=(t==null?void 0:t.claims.oid)||(t==null?void 0:t.claims.sub)||w.EMPTY_STRING,v=(t==null?void 0:t.claims.tid)||w.EMPTY_STRING;return{authority:n?n.canonicalAuthority:w.EMPTY_STRING,uniqueId:u,tenantId:v,scopes:l,account:i!=null&&i.account?i.account.getAccountInfo():null,idToken:t?t.rawToken:w.EMPTY_STRING,idTokenClaims:t?t.claims:{},accessToken:c,fromCache:!0,expiresOn:h,correlationId:e.correlationId||w.EMPTY_STRING,requestId:w.EMPTY_STRING,extExpiresOn:d,familyId:w.EMPTY_STRING,tokenType:((a=i==null?void 0:i.accessToken)===null||a===void 0?void 0:a.tokenType)||w.EMPTY_STRING,state:w.EMPTY_STRING,cloudGraphHostName:((o=i==null?void 0:i.account)===null||o===void 0?void 0:o.cloudGraphHostName)||w.EMPTY_STRING,msGraphHost:((s=i==null?void 0:i.account)===null||s===void 0?void 0:s.msGraphHost)||w.EMPTY_STRING,code:void 0,fromNativeBroker:!1}},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var RH=function(r){Jt(e,r);function e(t){var i=r.call(this,t)||this;return i.includeRedirectUri=!1,i}return e}(T_);/*! @azure/msal-browser v2.32.2 2023-01-10 */var OH=function(r){Jt(e,r);function e(t,i,n,a,o,s,c,l,h,d){var u=r.call(this,t,i,n,a,o,s,l,h,d)||this;return u.apiId=c,u}return e.prototype.acquireToken=function(t){return V(this,void 0,void 0,function(){var i,n,a,o,s,c,l;return S(this,function(h){switch(h.label){case 0:if(this.logger.trace("SilentAuthCodeClient.acquireToken called"),!t.code)throw R.createAuthCodeRequiredError();return[4,this.initializeAuthorizationRequest(t,W.Silent)];case 1:i=h.sent(),this.browserStorage.updateCacheEntries(i.state,i.nonce,i.authority,i.loginHint||w.EMPTY_STRING,i.account||null),n=this.initializeServerTelemetryManager(this.apiId),h.label=2;case 2:return h.trys.push([2,4,,5]),a=Y(Y({},i),{code:t.code}),[4,this.getClientConfiguration(n,i.authority)];case 3:return o=h.sent(),s=new RH(o),this.logger.verbose("Auth code client created"),c=new B_(s,this.browserStorage,a,this.logger,this.config.system),[2,c.handleCodeResponseFromServer({code:t.code,msgraph_host:t.msGraphHost,cloud_graph_host_name:t.cloudGraphHostName,cloud_instance_host_name:t.cloudInstanceHostName},i.state,s.authority,this.networkClient,!1)];case 4:throw l=h.sent(),l instanceof Q&&l.setCorrelationId(this.correlationId),n.cacheFailedRequest(l),this.browserStorage.cleanRequestByState(i.state),l;case 5:return[2]}})})},e.prototype.logout=function(){return Promise.reject(R.createSilentLogoutUnsupportedError())},e}(Lo);/*! @azure/msal-browser v2.32.2 2023-01-10 */var NH=function(){function r(e,t){this.correlationId=t,this.measureName="msal.measure."+e+"."+this.correlationId,this.startMark="msal.start."+e+"."+this.correlationId,this.endMark="msal.end."+e+"."+this.correlationId}return r.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"},r.prototype.startMeasurement=function(){if(r.supportsBrowserPerformance())try{window.performance.mark(this.startMark)}catch{}},r.prototype.endMeasurement=function(){if(r.supportsBrowserPerformance())try{window.performance.mark(this.endMark),window.performance.measure(this.measureName,this.startMark,this.endMark)}catch{}},r.prototype.flushMeasurement=function(){if(r.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},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var UH=function(r){Jt(e,r);function e(t,i,n,a,o,s,c){var l=r.call(this,t,i,n,a,o,s)||this;return l.browserCrypto=new G_(l.logger,c),l.guidGenerator=new j_(l.browserCrypto),l}return e.prototype.startPerformanceMeasurement=function(t,i){return new NH(t,i)},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.startMeasurement=function(t,i){var n=this,a=this.getPageVisibility(),o=r.prototype.startMeasurement.call(this,t,i);return Y(Y({},o),{endMeasurement:function(s){return o.endMeasurement(Y({startPageVisibility:a,endPageVisibility:n.getPageVisibility()},s))}})},e}(O_);/*! @azure/msal-browser v2.32.2 2023-01-10 */var FH=function(){function r(e){this.isBrowserEnvironment=typeof window<"u",this.config=wH(e,this.isBrowserEnvironment),this.initialized=!1,this.logger=new n6(this.config.system.loggerOptions,Ed,Ys),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 UH(this.config.auth.clientId,this.config.auth.authority,this.logger,Ed,Ys,this.config.telemetry.application,this.config.system.cryptoOptions):new lH(this.config.auth.clientId,this.config.auth.authority,this.logger,Ed,Ys,this.config.telemetry.application),this.browserCrypto=this.isBrowserEnvironment?new TH(this.logger,this.performanceClient,this.config.system.cryptoOptions):M0,this.eventHandler=new MH(this.logger,this.browserCrypto),this.browserStorage=this.isBrowserEnvironment?new X3(this.config.auth.clientId,this.config.cache,this.browserCrypto,this.logger):uH(this.config.auth.clientId,this.logger);var t={cacheLocation:c1.MemoryStorage,storeAuthStateInCookie:!1,secureCookies:!1};this.nativeInternalStorage=new X3(this.config.auth.clientId,t,this.browserCrypto,this.logger),this.tokenCache=new IH(this.config,this.browserStorage,this.logger,this.browserCrypto)}return r.prototype.initialize=function(){return V(this,void 0,void 0,function(){var e,t;return S(this,function(i){switch(i.label){case 0:if(this.logger.trace("initialize called"),this.initialized)return this.logger.info("initialize has already been called, exiting early."),[2];if(this.eventHandler.emitEvent(ie.INITIALIZE_START),!this.config.system.allowNativeBroker)return[3,4];i.label=1;case 1:return i.trys.push([1,3,,4]),e=this,[4,ba.createProvider(this.logger,this.config.system.nativeBrokerHandshakeTimeout)];case 2:return e.nativeExtensionProvider=i.sent(),[3,4];case 3:return t=i.sent(),this.logger.verbose(t),[3,4];case 4:return this.initialized=!0,this.eventHandler.emitEvent(ie.INITIALIZE_END),[2]}})})},r.prototype.handleRedirectPromise=function(e){return V(this,void 0,void 0,function(){var t,i,n,a,o,s,c,l,h=this;return S(this,function(d){return this.logger.verbose("handleRedirectPromise called"),lt.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),t=this.getAllAccounts(),this.isBrowserEnvironment?(i=e||w.EMPTY_STRING,n=this.redirectResponse.get(i),typeof n>"u"?(this.eventHandler.emitEvent(ie.HANDLE_REDIRECT_START,W.Redirect),this.logger.verbose("handleRedirectPromise has been called for the first time, storing the promise"),a=this.browserStorage.getCachedNativeRequest(),o=void 0,a&&ba.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider)&&this.nativeExtensionProvider&&!e?(this.logger.trace("handleRedirectPromise - acquiring token from native platform"),s=new L2(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,qe.handleRedirectPromise,this.performanceClient,this.nativeExtensionProvider,a.accountId,this.nativeInternalStorage,a.correlationId),o=s.handleRedirectPromise()):(this.logger.trace("handleRedirectPromise - acquiring token from web flow"),c=this.browserStorage.getTemporaryCache(Ce.CORRELATION_ID,!0)||w.EMPTY_STRING,l=this.createRedirectClient(c),o=l.handleRedirectPromise(e)),n=o.then(function(u){if(u){var v=t.length<h.getAllAccounts().length;v?(h.eventHandler.emitEvent(ie.LOGIN_SUCCESS,W.Redirect,u),h.logger.verbose("handleRedirectResponse returned result, login success")):(h.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_SUCCESS,W.Redirect,u),h.logger.verbose("handleRedirectResponse returned result, acquire token success"))}return h.eventHandler.emitEvent(ie.HANDLE_REDIRECT_END,W.Redirect),u}).catch(function(u){throw t.length>0?h.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_FAILURE,W.Redirect,null,u):h.eventHandler.emitEvent(ie.LOGIN_FAILURE,W.Redirect,null,u),h.eventHandler.emitEvent(ie.HANDLE_REDIRECT_END,W.Redirect),u}),this.redirectResponse.set(i,n)):this.logger.verbose("handleRedirectPromise has been called previously, returning the result from the first call"),[2,n]):(this.logger.verbose("handleRedirectPromise returns null, not browser environment"),[2,null])})})},r.prototype.acquireTokenRedirect=function(e){return V(this,void 0,void 0,function(){var t,i,n,a,o,s=this;return S(this,function(c){return t=this.getRequestCorrelationId(e),this.logger.verbose("acquireTokenRedirect called",t),this.preflightBrowserEnvironmentCheck(W.Redirect),i=this.getAllAccounts().length>0,i?this.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_START,W.Redirect,e):this.eventHandler.emitEvent(ie.LOGIN_START,W.Redirect,e),this.nativeExtensionProvider&&this.canUseNative(e)?(a=new L2(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,qe.acquireTokenRedirect,this.performanceClient,this.nativeExtensionProvider,this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),n=a.acquireTokenRedirect(e).catch(function(l){if(l instanceof ii&&l.isFatal()){s.nativeExtensionProvider=void 0;var h=s.createRedirectClient(e.correlationId);return h.acquireToken(e)}else if(l instanceof Tr){s.logger.verbose("acquireTokenRedirect - Resolving interaction required error thrown by native broker by falling back to web flow");var h=s.createRedirectClient(e.correlationId);return h.acquireToken(e)}throw s.browserStorage.setInteractionInProgress(!1),l})):(o=this.createRedirectClient(e.correlationId),n=o.acquireToken(e)),[2,n.catch(function(l){throw i?s.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_FAILURE,W.Redirect,null,l):s.eventHandler.emitEvent(ie.LOGIN_FAILURE,W.Redirect,null,l),l})]})})},r.prototype.acquireTokenPopup=function(e){var t=this,i=this.getRequestCorrelationId(e),n=this.performanceClient.startMeasurement(St.AcquireTokenPopup,i);try{this.logger.verbose("acquireTokenPopup called",i),this.preflightBrowserEnvironmentCheck(W.Popup)}catch(c){return Promise.reject(c)}var a=this.getAllAccounts();a.length>0?this.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_START,W.Popup,e):this.eventHandler.emitEvent(ie.LOGIN_START,W.Popup,e);var o;if(this.canUseNative(e))o=this.acquireTokenNative(e,qe.acquireTokenPopup).then(function(c){return t.browserStorage.setInteractionInProgress(!1),n.endMeasurement({success:!0,isNativeBroker:!0,requestId:c.requestId}),n.flushMeasurement(),c}).catch(function(c){if(c instanceof ii&&c.isFatal()){t.nativeExtensionProvider=void 0;var l=t.createPopupClient(e.correlationId);return l.acquireToken(e)}else if(c instanceof Tr){t.logger.verbose("acquireTokenPopup - Resolving interaction required error thrown by native broker by falling back to web flow");var l=t.createPopupClient(e.correlationId);return l.acquireToken(e)}throw t.browserStorage.setInteractionInProgress(!1),c});else{var s=this.createPopupClient(e.correlationId);o=s.acquireToken(e)}return o.then(function(c){var l=a.length<t.getAllAccounts().length;return l?t.eventHandler.emitEvent(ie.LOGIN_SUCCESS,W.Popup,c):t.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_SUCCESS,W.Popup,c),n.addStaticFields({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),n.endMeasurement({success:!0,requestId:c.requestId}),n.flushMeasurement(),c}).catch(function(c){return a.length>0?t.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_FAILURE,W.Popup,null,c):t.eventHandler.emitEvent(ie.LOGIN_FAILURE,W.Popup,null,c),n.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),n.flushMeasurement(),Promise.reject(c)})},r.prototype.ssoSilent=function(e){return V(this,void 0,void 0,function(){var t,i,n,a,o,s=this;return S(this,function(c){return t=this.getRequestCorrelationId(e),i=Y(Y({},e),{prompt:e.prompt,correlationId:t}),this.preflightBrowserEnvironmentCheck(W.Silent),n=this.performanceClient.startMeasurement(St.SsoSilent,t),this.logger.verbose("ssoSilent called",t),this.eventHandler.emitEvent(ie.SSO_SILENT_START,W.Silent,i),this.canUseNative(i)?a=this.acquireTokenNative(i,qe.ssoSilent).catch(function(l){if(l instanceof ii&&l.isFatal()){s.nativeExtensionProvider=void 0;var h=s.createSilentIframeClient(i.correlationId);return h.acquireToken(i)}throw l}):(o=this.createSilentIframeClient(i.correlationId),a=o.acquireToken(i)),[2,a.then(function(l){return s.eventHandler.emitEvent(ie.SSO_SILENT_SUCCESS,W.Silent,l),n.addStaticFields({accessTokenSize:l.accessToken.length,idTokenSize:l.idToken.length}),n.endMeasurement({success:!0,isNativeBroker:l.fromNativeBroker,requestId:l.requestId}),n.flushMeasurement(),l}).catch(function(l){throw s.eventHandler.emitEvent(ie.SSO_SILENT_FAILURE,W.Silent,null,l),n.endMeasurement({errorCode:l.errorCode,subErrorCode:l.subError,success:!1}),n.flushMeasurement(),l})]})})},r.prototype.acquireTokenByCode=function(e){return V(this,void 0,void 0,function(){var t,i,n,a,o=this;return S(this,function(s){t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(W.Silent),this.logger.trace("acquireTokenByCode called",t),this.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_BY_CODE_START,W.Silent,e),i=this.performanceClient.startMeasurement(St.AcquireTokenByCode,e.correlationId);try{if(e.code)return n=e.code,a=this.hybridAuthCodeResponses.get(n),a?(this.logger.verbose("Existing acquireTokenByCode request found",e.correlationId),i.endMeasurement({success:!0}),i.discardMeasurement()):(this.logger.verbose("Initiating new acquireTokenByCode request",t),a=this.acquireTokenByCodeAsync(Y(Y({},e),{correlationId:t})).then(function(c){return o.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_BY_CODE_SUCCESS,W.Silent,c),o.hybridAuthCodeResponses.delete(n),i.addStaticFields({accessTokenSize:c.accessToken.length,idTokenSize:c.idToken.length}),i.endMeasurement({success:!0,isNativeBroker:c.fromNativeBroker,requestId:c.requestId}),i.flushMeasurement(),c}).catch(function(c){throw o.hybridAuthCodeResponses.delete(n),o.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_BY_CODE_FAILURE,W.Silent,null,c),i.endMeasurement({errorCode:c.errorCode,subErrorCode:c.subError,success:!1}),i.flushMeasurement(),c}),this.hybridAuthCodeResponses.set(n,a)),[2,a];if(e.nativeAccountId){if(this.canUseNative(e,e.nativeAccountId))return[2,this.acquireTokenNative(e,qe.acquireTokenByCode,e.nativeAccountId).catch(function(c){throw c instanceof ii&&c.isFatal()&&(o.nativeExtensionProvider=void 0),c})];throw R.createUnableToAcquireTokenFromNativePlatformError()}else throw R.createAuthCodeOrNativeAccountIdRequiredError()}catch(c){throw this.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_BY_CODE_FAILURE,W.Silent,null,c),i.endMeasurement({errorCode:c instanceof Q&&c.errorCode||void 0,subErrorCode:c instanceof Q&&c.subError||void 0,success:!1}),c}return[2]})})},r.prototype.acquireTokenByCodeAsync=function(e){return V(this,void 0,void 0,function(){var t,i;return S(this,function(n){switch(n.label){case 0:return this.logger.trace("acquireTokenByCodeAsync called",e.correlationId),t=this.createSilentAuthCodeClient(e.correlationId),[4,t.acquireToken(e)];case 1:return i=n.sent(),[2,i]}})})},r.prototype.acquireTokenFromCache=function(e,t,i){return V(this,void 0,void 0,function(){return S(this,function(n){switch(i.cacheLookupPolicy){case E1.Default:case E1.AccessToken:case E1.AccessTokenAndRefreshToken:return[2,e.acquireToken(t)];default:throw j.createRefreshRequiredError()}return[2]})})},r.prototype.acquireTokenByRefreshToken=function(e,t){return V(this,void 0,void 0,function(){var i;return S(this,function(n){switch(t.cacheLookupPolicy){case E1.Default:case E1.AccessTokenAndRefreshToken:case E1.RefreshToken:case E1.RefreshTokenAndNetwork:return i=this.createSilentRefreshClient(e.correlationId),[2,i.acquireToken(e)];default:throw j.createRefreshRequiredError()}return[2]})})},r.prototype.acquireTokenBySilentIframe=function(e){return V(this,void 0,void 0,function(){var t;return S(this,function(i){return t=this.createSilentIframeClient(e.correlationId),[2,t.acquireToken(e)]})})},r.prototype.logout=function(e){return V(this,void 0,void 0,function(){var t;return S(this,function(i){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(Y({correlationId:t},e))]})})},r.prototype.logoutRedirect=function(e){return V(this,void 0,void 0,function(){var t,i;return S(this,function(n){return t=this.getRequestCorrelationId(e),this.preflightBrowserEnvironmentCheck(W.Redirect),i=this.createRedirectClient(t),[2,i.logout(e)]})})},r.prototype.logoutPopup=function(e){try{var t=this.getRequestCorrelationId(e);this.preflightBrowserEnvironmentCheck(W.Popup);var i=this.createPopupClient(t);return i.logout(e)}catch(n){return Promise.reject(n)}},r.prototype.getAllAccounts=function(){return this.logger.verbose("getAllAccounts called"),this.isBrowserEnvironment?this.browserStorage.getAllAccounts():[]},r.prototype.getAccountByUsername=function(e){var t=this.getAllAccounts();return!F.isEmpty(e)&&t&&t.length?(this.logger.verbose("Account matching username found, returning"),this.logger.verbosePii("Returning signed-in accounts matching username: "+e),t.filter(function(i){return i.username.toLowerCase()===e.toLowerCase()})[0]||null):(this.logger.verbose("getAccountByUsername: No matching account found, returning null"),null)},r.prototype.getAccountByHomeId=function(e){var t=this.getAllAccounts();return!F.isEmpty(e)&&t&&t.length?(this.logger.verbose("Account matching homeAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching homeAccountId: "+e),t.filter(function(i){return i.homeAccountId===e})[0]||null):(this.logger.verbose("getAccountByHomeId: No matching account found, returning null"),null)},r.prototype.getAccountByLocalId=function(e){var t=this.getAllAccounts();return!F.isEmpty(e)&&t&&t.length?(this.logger.verbose("Account matching localAccountId found, returning"),this.logger.verbosePii("Returning signed-in accounts matching localAccountId: "+e),t.filter(function(i){return i.localAccountId===e})[0]||null):(this.logger.verbose("getAccountByLocalId: No matching account found, returning null"),null)},r.prototype.setActiveAccount=function(e){this.browserStorage.setActiveAccount(e)},r.prototype.getActiveAccount=function(){return this.browserStorage.getActiveAccount()},r.prototype.preflightBrowserEnvironmentCheck=function(e,t){if(t===void 0&&(t=!0),this.logger.verbose("preflightBrowserEnvironmentCheck started"),lt.blockNonBrowserEnvironment(this.isBrowserEnvironment),lt.blockRedirectInIframe(e,this.config.system.allowRedirectInIframe),lt.blockReloadInHiddenIframes(),lt.blockAcquireTokenInPopups(),lt.blockNativeBrokerCalledBeforeInitialized(this.config.system.allowNativeBroker,this.initialized),e===W.Redirect&&this.config.cache.cacheLocation===c1.MemoryStorage&&!this.config.cache.storeAuthStateInCookie)throw $0.createInMemoryRedirectUnavailableError();(e===W.Redirect||e===W.Popup)&&this.preflightInteractiveRequest(t)},r.prototype.preflightInteractiveRequest=function(e){this.logger.verbose("preflightInteractiveRequest called, validating app environment"),lt.blockReloadInHiddenIframes(),e&&this.browserStorage.setInteractionInProgress(!0)},r.prototype.acquireTokenNative=function(e,t,i){return V(this,void 0,void 0,function(){var n;return S(this,function(a){if(this.logger.trace("acquireTokenNative called"),!this.nativeExtensionProvider)throw R.createNativeConnectionNotEstablishedError();return n=new L2(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,t,this.performanceClient,this.nativeExtensionProvider,i||this.getNativeAccountId(e),this.nativeInternalStorage,e.correlationId),[2,n.acquireToken(e)]})})},r.prototype.canUseNative=function(e,t){if(this.logger.trace("canUseNative called"),!ba.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 d1.NONE:case d1.CONSENT:case d1.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},r.prototype.getNativeAccountId=function(e){var t=e.account||this.browserStorage.getAccountInfoByHints(e.loginHint,e.sid)||this.getActiveAccount();return t&&t.nativeAccountId||""},r.prototype.createPopupClient=function(e){return new pH(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},r.prototype.createRedirectClient=function(e){return new fH(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},r.prototype.createSilentIframeClient=function(e){return new bH(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,qe.ssoSilent,this.performanceClient,this.nativeInternalStorage,this.nativeExtensionProvider,e)},r.prototype.createSilentCacheClient=function(e){return new F_(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},r.prototype.createSilentRefreshClient=function(e){return new xH(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,this.performanceClient,this.nativeExtensionProvider,e)},r.prototype.createSilentAuthCodeClient=function(e){return new OH(this.config,this.browserStorage,this.browserCrypto,this.logger,this.eventHandler,this.navigationClient,qe.acquireTokenByCode,this.performanceClient,this.nativeExtensionProvider,e)},r.prototype.addEventCallback=function(e){return this.eventHandler.addEventCallback(e)},r.prototype.removeEventCallback=function(e){this.eventHandler.removeEventCallback(e)},r.prototype.addPerformanceCallback=function(e){return this.performanceClient.addPerformanceCallback(e)},r.prototype.removePerformanceCallback=function(e){return this.performanceClient.removePerformanceCallback(e)},r.prototype.enableAccountStorageEvents=function(){this.eventHandler.enableAccountStorageEvents()},r.prototype.disableAccountStorageEvents=function(){this.eventHandler.disableAccountStorageEvents()},r.prototype.getTokenCache=function(){return this.tokenCache},r.prototype.getLogger=function(){return this.logger},r.prototype.setLogger=function(e){this.logger=e},r.prototype.initializeWrapperLibrary=function(e,t){this.browserStorage.setWrapperMetadata(e,t)},r.prototype.setNavigationClient=function(e){this.navigationClient=e},r.prototype.getConfiguration=function(){return this.config},r.prototype.getRequestCorrelationId=function(e){return e!=null&&e.correlationId?e.correlationId:this.isBrowserEnvironment?this.browserCrypto.createNewGuid():w.EMPTY_STRING},r}();/*! @azure/msal-browser v2.32.2 2023-01-10 */var BH=function(r){Jt(e,r);function e(t){var i=r.call(this,t)||this;return i.activeSilentTokenRequests=new Map,i}return e.prototype.loginRedirect=function(t){return V(this,void 0,void 0,function(){var i;return S(this,function(n){return i=this.getRequestCorrelationId(t),this.logger.verbose("loginRedirect called",i),[2,this.acquireTokenRedirect(Y({correlationId:i},t||xm))]})})},e.prototype.loginPopup=function(t){var i=this.getRequestCorrelationId(t);return this.logger.verbose("loginPopup called",i),this.acquireTokenPopup(Y({correlationId:i},t||xm))},e.prototype.acquireTokenSilent=function(t){return V(this,void 0,void 0,function(){var i,n,a,o,s,c,l,h=this;return S(this,function(d){if(i=this.getRequestCorrelationId(t),n=this.performanceClient.startMeasurement(St.AcquireTokenSilent,i),n.addStaticFields({cacheLookupPolicy:t.cacheLookupPolicy}),this.preflightBrowserEnvironmentCheck(W.Silent),this.logger.verbose("acquireTokenSilent called",i),a=t.account||this.getActiveAccount(),!a)throw R.createNoAccountError();return o={clientId:this.config.auth.clientId,authority:t.authority||w.EMPTY_STRING,scopes:t.scopes,homeAccountIdentifier:a.homeAccountId,claims:t.claims,authenticationScheme:t.authenticationScheme,resourceRequestMethod:t.resourceRequestMethod,resourceRequestUri:t.resourceRequestUri,shrClaims:t.shrClaims,sshKid:t.sshKid},s=JSON.stringify(o),c=this.activeSilentTokenRequests.get(s),typeof c>"u"?(this.logger.verbose("acquireTokenSilent called for the first time, storing active request",i),l=this.acquireTokenSilentAsync(Y(Y({},t),{correlationId:i}),a).then(function(u){return h.activeSilentTokenRequests.delete(s),n.addStaticFields({accessTokenSize:u.accessToken.length,idTokenSize:u.idToken.length}),n.endMeasurement({success:!0,fromCache:u.fromCache,isNativeBroker:u.fromNativeBroker,cacheLookupPolicy:t.cacheLookupPolicy,requestId:u.requestId}),n.flushMeasurement(),u}).catch(function(u){throw h.activeSilentTokenRequests.delete(s),n.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),n.flushMeasurement(),u}),this.activeSilentTokenRequests.set(s,l),[2,l]):(this.logger.verbose("acquireTokenSilent has been called previously, returning the result from the first call",i),n.endMeasurement({success:!0}),n.discardMeasurement(),[2,c])})})},e.prototype.acquireTokenSilentAsync=function(t,i){return V(this,void 0,void 0,function(){var n,a,o,s,c,l,h=this;return S(this,function(d){switch(d.label){case 0:return this.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_START,W.Silent,t),n=this.performanceClient.startMeasurement(St.AcquireTokenSilentAsync,t.correlationId),ba.isNativeAvailable(this.config,this.logger,this.nativeExtensionProvider,t.authenticationScheme)&&i.nativeAccountId?(this.logger.verbose("acquireTokenSilent - attempting to acquire token from native platform"),o=Y(Y({},t),{account:i}),a=this.acquireTokenNative(o,qe.acquireTokenSilent_silentFlow).catch(function(u){return V(h,void 0,void 0,function(){var v;return S(this,function(m){if(u instanceof ii&&u.isFatal())return this.logger.verbose("acquireTokenSilent - native platform unavailable, falling back to web flow"),this.nativeExtensionProvider=void 0,v=this.createSilentIframeClient(t.correlationId),[2,v.acquireToken(t)];throw u})})}),[3,3]):[3,1];case 1:return this.logger.verbose("acquireTokenSilent - attempting to acquire token from web flow"),s=this.createSilentCacheClient(t.correlationId),[4,s.initializeSilentRequest(t,i)];case 2:c=d.sent(),l=Y(Y({},t),{cacheLookupPolicy:t.cacheLookupPolicy||E1.Default}),a=this.acquireTokenFromCache(s,c,l).catch(function(u){if(l.cacheLookupPolicy===E1.AccessToken)throw u;return lt.blockReloadInHiddenIframes(),h.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_NETWORK_START,W.Silent,c),h.acquireTokenByRefreshToken(c,l).catch(function(v){var m=v instanceof Aa,f=v instanceof Tr,C=v.errorCode===$r.INVALID_GRANT_ERROR;if((!m||!C||f||l.cacheLookupPolicy===E1.AccessTokenAndRefreshToken||l.cacheLookupPolicy===E1.RefreshToken)&&l.cacheLookupPolicy!==E1.Skip)throw v;return h.logger.verbose("Refresh token expired/invalid or CacheLookupPolicy is set to Skip, attempting acquire token by iframe.",t.correlationId),h.acquireTokenBySilentIframe(c)})}),d.label=3;case 3:return[2,a.then(function(u){return h.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_SUCCESS,W.Silent,u),n.endMeasurement({success:!0,fromCache:u.fromCache,isNativeBroker:u.fromNativeBroker,requestId:u.requestId}),u}).catch(function(u){throw h.eventHandler.emitEvent(ie.ACQUIRE_TOKEN_FAILURE,W.Silent,null,u),n.endMeasurement({errorCode:u.errorCode,subErrorCode:u.subError,success:!1}),u})]}})})},e}(FH);const Pm="redirect";var Am=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};class jH extends BH{get account(){return this.getAllAccounts().find(i=>{var n;return((n=i.idTokenClaims)===null||n===void 0?void 0:n.aud)===this.clientId})}get hasValidClaims(){var e;const t=(e=this.account)===null||e===void 0?void 0:e.idTokenClaims;if(t){const i=Math.ceil(Date.now()/1e3);return t.exp>i}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=Pm,i=!0){var n;return Am(this,void 0,void 0,function*(){const a=(e==null?void 0:e.loginHint)||((n=this.account)===null||n===void 0?void 0:n.username),o=(e==null?void 0:e.scopes)||[],s=Object.assign(Object.assign({},e),{loginHint:a,scopes:o});if(a&&i){this.logger.verbose("Attempting to login in silently");try{return yield this.ssoSilent(s)}catch{this.logger.verbose("Silent login attempt failed")}}switch(this.logger.verbose(`Attempting to login in by [${t}]`),t){case"popup":return this.loginPopup(s);case"redirect":return this.loginRedirect(s)}})}acquireToken(e={scopes:[]},t=Pm,i=!0){return Am(this,void 0,void 0,function*(){const n=yield this.account;if(i&&n){this.logger.verbose("Attempting to acquire token in silently");try{return yield this.acquireTokenSilent(Object.assign({account:n},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 qH=(r,e=window.location.origin)=>{r=r.match(/^http[s]?/)?r:e+r;const{origin:t,pathname:i}=new URL(r);return t+i.replace(/([^:]\/)\/+/g,"$1")},GH=(r,e,t,i,n)=>{const a=Object.assign({clientId:e,redirectUri:qH(t||""),navigateToLoginRequestUrl:!1,authority:`https://login.microsoftonline.com/${r}`},i==null?void 0:i.auth),o=Object.assign({cacheLocation:"localStorage"},i==null?void 0:i.cache),s=i==null?void 0:i.system;return new(n||jH)(r,{auth:a,cache:o,system:s})};class K_ extends n6{constructor(e){super({logLevel:e,loggerCallback:(...t)=>this.loggerCallback(...t)}),this.getLogType=t=>{switch(t){case ot.Error:return"error";case ot.Warning:return"warn";case ot.Info:return"info";case ot.Verbose:default:return"debug"}}}loggerCallback(e,t,i){console[this.getLogType(e)]("%c FUSION::MSAL %c %s","border: 1px solid;","border: none;",t)}}var Pd=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const KH="default";class WH{get defaultClient(){return this.getClient(KH)}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 i=GH(t.tenantId,t.clientId,t.redirectUri,t.config);return i.setLogger(new K_(0)),i}handleRedirect(){return Pd(this,void 0,void 0,function*(){const{redirectUri:e}=this.defaultConfig||{};if(window.location.pathname===e){const t=this.defaultClient,i=t.getLogger(),{requestOrigin:n}=t;yield t.handleRedirectPromise(),n===e?(i.warning(`detected callback loop from url ${e}, redirecting to root`),window.location.replace("/")):window.location.replace(n||"/")}return null})}acquireToken(e){return this.defaultClient.acquireToken(e)}acquireAccessToken(e){return Pd(this,void 0,void 0,function*(){const t=yield this.acquireToken(e);return t?t.accessToken:void 0})}login(){return Pd(this,void 0,void 0,function*(){yield this.defaultClient.login()})}}var YH=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const W_={name:"auth",configure:r=>{var e;const t=new RC;return!((e=r==null?void 0:r.auth)===null||e===void 0)&&e.defaultConfig&&t.configureDefault(r.auth.defaultConfig),t},initialize:({config:r})=>YH(void 0,void 0,void 0,function*(){const e=new WH(r);return r.requiresAuth&&(yield e.handleRedirect(),e.defaultAccount||(yield e.login())),e})},QH=(r,e)=>({module:W_,configure:t=>{t.configureDefault(r),(e==null?void 0:e.requiresAuth)!==void 0&&(t.requiresAuth=e==null?void 0:e.requiresAuth);const{clients:i}=e??{};i&&Object.entries(i).forEach(([n,a])=>t.configureClient(n,a))}});var s6=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const XH=r=>{var e;return{id:r.id,isChildType:r.isChildType,parentTypeIds:(e=r.parentTypeIds)!==null&&e!==void 0?e:[]}},c6=r=>{var e,t,i,n;return{id:r.id,externalId:(e=r.externalId)!==null&&e!==void 0?e:void 0,isActive:r.isActive,isDeleted:r.isDeleted,created:new Date(r.created),source:(t=r.source)!==null&&t!==void 0?t:void 0,title:(i=r.title)!==null&&i!==void 0?i:void 0,type:XH(r.type),value:(n=r.value)!==null&&n!==void 0?n:{}}},JH=r=>s6(void 0,void 0,void 0,function*(){const e=yield r.json();return c6(e)}),ZH=r=>s6(void 0,void 0,void 0,function*(){return(yield r.json()).map(c6)}),ek=r=>s6(void 0,void 0,void 0,function*(){return(yield r.json()).map(c6)});var tk=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},rk=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},Hh;class ik{constructor(e,t={}){this.config=t,Hh.set(this,void 0),tk(this,Hh,e,"f")}requireInstance(e){return rk(this,Hh,"f").requireInstance(e)}setContextType(e){this.config.contextType=e}setContextFilter(e){this.config.contextFilter=e}setContextParameterFn(e){this.config.contextParameterFn=e}setValidateContext(e){this.config.validateContext=e}setResolveContext(e){this.config.resolveContext=e}setContextClient(e,t=1*60*1e3){this.config.client={get:typeof e.get=="function"?{key:({id:i})=>i,client:{fn:e.get},expire:t}:e.get,query:typeof e.query=="function"?{key:i=>JSON.stringify(i),client:{fn:e.query},expire:t}:e.query},e.related&&(this.config.client.related=typeof e.related=="function"?{key:i=>JSON.stringify(i),client:{fn:e.related},expire:t}:e.related)}}Hh=new WeakMap;var Wl=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})},Vm=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},kh;class nk{constructor(){this.defaultExpireTime=1*60*1e3,kh.set(this,[])}addConfigBuilder(e){Vm(this,kh,"f").push(e)}_getServiceProvider(e){var t;return Wl(this,void 0,void 0,function*(){if(e.hasModule("services"))return e.requireInstance("services");{const i=(t=e.ref)===null||t===void 0?void 0:t.services;if(i)return i;throw Error("no service services provider configures [ServicesModule]")}})}createConfig(e){var t;return Wl(this,void 0,void 0,function*(){const i=yield Vm(this,kh,"f").reduce((n,a)=>Wl(this,void 0,void 0,function*(){const o=new ik(e,yield n);return yield Promise.resolve(a(o)),Object.assign(n,o.config)}),Promise.resolve({}));return(t=i.client)!==null&&t!==void 0||(i.client=yield(()=>Wl(this,void 0,void 0,function*(){const a=yield(yield this._getServiceProvider(e)).createContextClient("json$");return{get:{client:{fn:o=>a.get("v1",o,{selector:JH})},key:({id:o})=>o,expire:this.defaultExpireTime},query:{client:{fn:o=>a.query("v1",{query:o},{selector:ZH})},key:o=>JSON.stringify(o),expire:this.defaultExpireTime},related:{client:{fn:o=>a.related("v1",{id:o.item.id,query:{filter:o.filter}},{selector:ek})},key:o=>JSON.stringify(o),expire:this.defaultExpireTime}}}))()),i})}}kh=new WeakMap;var ak=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var i,n,a;if(Array.isArray(e)){if(i=e.length,i!=t.length)return!1;for(n=i;n--!==0;)if(!r(e[n],t[n]))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(a=Object.keys(e),i=a.length,i!==Object.keys(t).length)return!1;for(n=i;n--!==0;)if(!Object.prototype.hasOwnProperty.call(t,a[n]))return!1;for(n=i;n--!==0;){var o=a[n];if(!r(e[o],t[o]))return!1}return!0}return e!==e&&t!==t},Sm;(function(r){r.IDLE="idle",r.ACTIVE="active",r.FAILED="failed",r.CANCELED="canceled"})(Sm||(Sm={}));const ok=r=>e=>e.pipe(hC(r)),sk=r=>e=>e.pipe(di(r)),ck=r=>e=>e.pipe(L1(r)),lk=r=>r.pipe($e(e=>e.value));var Yl,hk=new Uint8Array(16);function dk(){if(!Yl&&(Yl=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Yl))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Yl(hk)}const uk=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function Y_(r){return typeof r=="string"&&uk.test(r)}var Ft=[];for(var Ad=0;Ad<256;++Ad)Ft.push((Ad+256).toString(16).substr(1));function Q_(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=(Ft[r[e+0]]+Ft[r[e+1]]+Ft[r[e+2]]+Ft[r[e+3]]+"-"+Ft[r[e+4]]+Ft[r[e+5]]+"-"+Ft[r[e+6]]+Ft[r[e+7]]+"-"+Ft[r[e+8]]+Ft[r[e+9]]+"-"+Ft[r[e+10]]+Ft[r[e+11]]+Ft[r[e+12]]+Ft[r[e+13]]+Ft[r[e+14]]+Ft[r[e+15]]).toLowerCase();if(!Y_(t))throw TypeError("Stringified UUID is invalid");return t}function vk(r){if(!Y_(r))throw TypeError("Invalid UUID");var e,t=new Uint8Array(16);return t[0]=(e=parseInt(r.slice(0,8),16))>>>24,t[1]=e>>>16&255,t[2]=e>>>8&255,t[3]=e&255,t[4]=(e=parseInt(r.slice(9,13),16))>>>8,t[5]=e&255,t[6]=(e=parseInt(r.slice(14,18),16))>>>8,t[7]=e&255,t[8]=(e=parseInt(r.slice(19,23),16))>>>8,t[9]=e&255,t[10]=(e=parseInt(r.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 mk(r){r=unescape(encodeURIComponent(r));for(var e=[],t=0;t<r.length;++t)e.push(r.charCodeAt(t));return e}var fk="6ba7b810-9dad-11d1-80b4-00c04fd430c8",pk="6ba7b811-9dad-11d1-80b4-00c04fd430c8";function gk(r,e,t){function i(n,a,o,s){if(typeof n=="string"&&(n=mk(n)),typeof a=="string"&&(a=vk(a)),a.length!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");var c=new Uint8Array(16+n.length);if(c.set(a),c.set(n,a.length),c=t(c),c[6]=c[6]&15|e,c[8]=c[8]&63|128,o){s=s||0;for(var l=0;l<16;++l)o[s+l]=c[l];return o}return Q_(c)}try{i.name=r}catch{}return i.DNS=fk,i.URL=pk,i}function X_(r,e,t){r=r||{};var i=r.random||(r.rng||dk)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,e){t=t||0;for(var n=0;n<16;++n)e[t+n]=i[n];return e}return Q_(i)}function _k(r,e,t,i){switch(r){case 0:return e&t^~e&i;case 1:return e^t^i;case 2:return e&t^e&i^t&i;case 3:return e^t^i}}function Vd(r,e){return r<<e|r>>>32-e}function zk(r){var e=[1518500249,1859775393,2400959708,3395469782],t=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof r=="string"){var i=unescape(encodeURIComponent(r));r=[];for(var n=0;n<i.length;++n)r.push(i.charCodeAt(n))}else Array.isArray(r)||(r=Array.prototype.slice.call(r));r.push(128);for(var a=r.length/4+2,o=Math.ceil(a/16),s=new Array(o),c=0;c<o;++c){for(var l=new Uint32Array(16),h=0;h<16;++h)l[h]=r[c*64+h*4]<<24|r[c*64+h*4+1]<<16|r[c*64+h*4+2]<<8|r[c*64+h*4+3];s[c]=l}s[o-1][14]=(r.length-1)*8/Math.pow(2,32),s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=(r.length-1)*8&4294967295;for(var d=0;d<o;++d){for(var u=new Uint32Array(80),v=0;v<16;++v)u[v]=s[d][v];for(var m=16;m<80;++m)u[m]=Vd(u[m-3]^u[m-8]^u[m-14]^u[m-16],1);for(var f=t[0],C=t[1],_=t[2],p=t[3],z=t[4],M=0;M<80;++M){var A=Math.floor(M/20),I=Vd(f,5)+_k(A,C,_,p)+z+e[A]+u[M]>>>0;z=p,p=_,_=Vd(C,30)>>>0,C=f,f=I}t[0]=t[0]+f>>>0,t[1]=t[1]+C>>>0,t[2]=t[2]+_>>>0,t[3]=t[3]+p>>>0,t[4]=t[4]+z>>>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]}var yk=gk("v5",80,zk);const wk=yk;class Z3 extends Error{constructor(e,t){super(t.message,{cause:t.cause}),this.type=e,this.request=t.request}}const To=(...r)=>Xt(e=>r.includes(e.type));var o1=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},bk=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},Qr,kr;class M4 extends Ee{get action$(){return o1(this,Qr,"f").asObservable()}get value(){return o1(this,kr,"f").value}get closed(){return o1(this,kr,"f").closed||o1(this,Qr,"f").closed}constructor(e,t){super(n=>o1(this,kr,"f").subscribe(n)),Qr.set(this,new Di),kr.set(this,void 0);const i="getInitialState"in e?e.getInitialState():t;bk(this,kr,new Do(i),"f"),o1(this,Qr,"f").pipe(E_(e,i),k_()).subscribe(o1(this,kr,"f")),this.reset=()=>o1(this,kr,"f").next(i)}next(e){o1(this,Qr,"f").next(e)}addEffect(e,t){const i=typeof e=="string"?this.action$.pipe(To(e)):this.action$,n=t||e;return i.pipe(di(a=>y1(new Promise((o,s)=>{try{o(n(a,this.value))}catch(c){s(c)}})).pipe(Z1(o=>(console.warn("unhandled effect",o),Fi)))),Xt(a=>!!a),_0(g0)).subscribe(o1(this,Qr,"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(Z1(i=>(console.trace("unhandled exception, epic closed!",i),Fi)),_0(g0)).subscribe(o1(this,Qr,"f"))}unsubscribe(){o1(this,Qr,"f").unsubscribe(),o1(this,kr,"f").unsubscribe()}complete(){o1(this,Qr,"f").complete(),o1(this,kr,"f").complete()}asObservable(){return o1(this,kr,"f").asObservable()}}Qr=new WeakMap,kr=new WeakMap;const J_=(r,e)=>Object.entries(r).reduce((t,[i,n])=>Object.assign(t,{[i]:typeof n=="function"?(...a)=>e.next(n(...a)):J_(n,e)}),{});function Gt(r,e){function t(...i){if(e){const n=e(...i);if(!n)throw new Error("prepareAction did not return an object");return Object.assign(Object.assign({type:r,payload:n.payload},"meta"in n&&{meta:n.meta}),"error"in n&&{error:n.error})}return{type:r,payload:i[0]}}return t.toString=()=>`${r}`,t.type=r,t.match=i=>i.type===r,t}const Eh="::",l6=r=>new RegExp(`${Eh}\\${r}$`),$m=r=>r.type.replace(l6("\\w+$"),"");function gn(r,e,t,i){const n=Gt([r,"request"].join(Eh),e);return t&&Object.assign(n,{success:Gt([r,"success"].join(Eh),t)}),i&&Object.assign(n,{failure:Gt([r,"failure"].join(Eh),i)}),n}const xk=r=>!!r.type.match(/::request$/),Mk=r=>!!r.type.match(l6("success")),Ck=r=>!!r.type.match(l6("failure")),Hk=r=>Mk(r)||Ck(r);function K1(r){for(var e=arguments.length,t=Array(e>1?e-1:0),i=1;i<e;i++)t[i-1]=arguments[i];throw Error("[Immer] minified error nr: "+r+(t.length?" "+t.map(function(n){return"'"+n+"'"}).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Sn(r){return!!r&&!!r[Pe]}function Nr(r){var e;return!!r&&(function(t){if(!t||typeof t!="object")return!1;var i=Object.getPrototypeOf(t);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Tk}(r)||Array.isArray(r)||!!r[Um]||!!(!((e=r.constructor)===null||e===void 0)&&e[Um])||h6(r)||d6(r))}function Dm(r){return Sn(r)||K1(23,r),r[Pe].t}function io(r,e,t){t===void 0&&(t=!1),Io(r)===0?(t?Object.keys:p6)(r).forEach(function(i){t&&typeof i=="symbol"||e(i,r[i],r)}):r.forEach(function(i,n){return e(n,i,r)})}function Io(r){var e=r[Pe];return e?e.i>3?e.i-4:e.i:Array.isArray(r)?1:h6(r)?2:d6(r)?3:0}function eu(r,e){return Io(r)===2?r.has(e):Object.prototype.hasOwnProperty.call(r,e)}function kk(r,e){return Io(r)===2?r.get(e):r[e]}function Z_(r,e,t){var i=Io(r);i===2?r.set(e,t):i===3?r.add(t):r[e]=t}function Ek(r,e){return r===e?r!==0||1/r==1/e:r!=r&&e!=e}function h6(r){return Dk&&r instanceof Map}function d6(r){return Lk&&r instanceof Set}function Lt(r){return r.o||r.t}function u6(r){if(Array.isArray(r))return Array.prototype.slice.call(r);var e=Ik(r);delete e[Pe];for(var t=p6(e),i=0;i<t.length;i++){var n=t[i],a=e[n];a.writable===!1&&(a.writable=!0,a.configurable=!0),(a.get||a.set)&&(e[n]={configurable:!0,writable:!0,enumerable:a.enumerable,value:r[n]})}return Object.create(Object.getPrototypeOf(r),e)}function v6(r,e){return e===void 0&&(e=!1),m6(r)||Sn(r)||!Nr(r)||(Io(r)>1&&(r.set=r.add=r.clear=r.delete=Pk),Object.freeze(r),e&&io(r,function(t,i){return v6(i,!0)},!0)),r}function Pk(){K1(2)}function m6(r){return r==null||typeof r!="object"||Object.isFrozen(r)}function li(r){var e=ru[r];return e||K1(18,r),e}function Ak(r,e){ru[r]||(ru[r]=e)}function L0(){return Ac}function Sd(r,e){e&&(li("Patches"),r.u=[],r.s=[],r.v=e)}function T0(r){tu(r),r.p.forEach(Vk),r.p=null}function tu(r){r===Ac&&(Ac=r.l)}function Lm(r){return Ac={p:[],l:Ac,h:r,m:!0,_:0}}function Vk(r){var e=r[Pe];e.i===0||e.i===1?e.j():e.O=!0}function $d(r,e){e._=e.p.length;var t=e.p[0],i=r!==void 0&&r!==t;return e.h.g||li("ES5").S(e,r,i),i?(t[Pe].P&&(T0(e),K1(4)),Nr(r)&&(r=I0(e,r),e.l||R0(e,r)),e.u&&li("Patches").M(t[Pe].t,r,e.u,e.s)):r=I0(e,t,[]),T0(e),e.u&&e.v(e.u,e.s),r!==ez?r:void 0}function I0(r,e,t){if(m6(e))return e;var i=e[Pe];if(!i)return io(e,function(s,c){return Tm(r,i,e,s,c,t)},!0),e;if(i.A!==r)return e;if(!i.P)return R0(r,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=u6(i.k):i.o,a=n,o=!1;i.i===3&&(a=new Set(n),n.clear(),o=!0),io(a,function(s,c){return Tm(r,i,n,s,c,t,o)}),R0(r,n,!1),t&&r.u&&li("Patches").N(i,t,r.u,r.s)}return i.o}function Tm(r,e,t,i,n,a,o){if(Sn(n)){var s=I0(r,n,a&&e&&e.i!==3&&!eu(e.R,i)?a.concat(i):void 0);if(Z_(t,i,s),!Sn(s))return;r.m=!1}else o&&t.add(n);if(Nr(n)&&!m6(n)){if(!r.h.D&&r._<1)return;I0(r,n),e&&e.A.l||R0(r,n)}}function R0(r,e,t){t===void 0&&(t=!1),!r.l&&r.h.D&&r.m&&v6(e,t)}function Dd(r,e){var t=r[Pe];return(t?Lt(t):r)[e]}function Im(r,e){if(e in r)for(var t=Object.getPrototypeOf(r);t;){var i=Object.getOwnPropertyDescriptor(t,e);if(i)return i;t=Object.getPrototypeOf(t)}}function Hi(r){r.P||(r.P=!0,r.l&&Hi(r.l))}function Ld(r){r.o||(r.o=u6(r.t))}function Pc(r,e,t){var i=h6(e)?li("MapSet").F(e,t):d6(e)?li("MapSet").T(e,t):r.g?function(n,a){var o=Array.isArray(n),s={i:o?1:0,A:a?a.A:L0(),P:!1,I:!1,R:{},l:a,t:n,k:null,o:null,j:null,C:!1},c=s,l=iu;o&&(c=[s],l=xs);var h=Proxy.revocable(c,l),d=h.revoke,u=h.proxy;return s.k=u,s.j=d,u}(e,t):li("ES5").J(e,t);return(t?t.A:L0()).p.push(i),i}function Sk(r){return Sn(r)||K1(22,r),function e(t){if(!Nr(t))return t;var i,n=t[Pe],a=Io(t);if(n){if(!n.P&&(n.i<4||!li("ES5").K(n)))return n.t;n.I=!0,i=Rm(t,a),n.I=!1}else i=Rm(t,a);return io(i,function(o,s){n&&kk(n.t,o)===s||Z_(i,o,e(s))}),a===3?new Set(i):i}(r)}function Rm(r,e){switch(e){case 2:return new Map(r);case 3:return Array.from(r)}return u6(r)}function $k(){function r(s,c){function l(){this.constructor=s}n(s,c),s.prototype=(l.prototype=c.prototype,new l)}function e(s){s.o||(s.R=new Map,s.o=new Map(s.t))}function t(s){s.o||(s.o=new Set,s.t.forEach(function(c){if(Nr(c)){var l=Pc(s.A.h,c,s);s.p.set(c,l),s.o.add(l)}else s.o.add(c)}))}function i(s){s.O&&K1(3,JSON.stringify(Lt(s)))}var n=function(s,c){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(l,h){l.__proto__=h}||function(l,h){for(var d in h)h.hasOwnProperty(d)&&(l[d]=h[d])})(s,c)},a=function(){function s(l,h){return this[Pe]={i:2,l:h,A:h?h.A:L0(),P:!1,I:!1,o:void 0,R:void 0,t:l,k:this,C:!1,O:!1},this}r(s,Map);var c=s.prototype;return Object.defineProperty(c,"size",{get:function(){return Lt(this[Pe]).size}}),c.has=function(l){return Lt(this[Pe]).has(l)},c.set=function(l,h){var d=this[Pe];return i(d),Lt(d).has(l)&&Lt(d).get(l)===h||(e(d),Hi(d),d.R.set(l,!0),d.o.set(l,h),d.R.set(l,!0)),this},c.delete=function(l){if(!this.has(l))return!1;var h=this[Pe];return i(h),e(h),Hi(h),h.t.has(l)?h.R.set(l,!1):h.R.delete(l),h.o.delete(l),!0},c.clear=function(){var l=this[Pe];i(l),Lt(l).size&&(e(l),Hi(l),l.R=new Map,io(l.t,function(h){l.R.set(h,!1)}),l.o.clear())},c.forEach=function(l,h){var d=this;Lt(this[Pe]).forEach(function(u,v){l.call(h,d.get(v),v,d)})},c.get=function(l){var h=this[Pe];i(h);var d=Lt(h).get(l);if(h.I||!Nr(d)||d!==h.t.get(l))return d;var u=Pc(h.A.h,d,h);return e(h),h.o.set(l,u),u},c.keys=function(){return Lt(this[Pe]).keys()},c.values=function(){var l,h=this,d=this.keys();return(l={})[Ql]=function(){return h.values()},l.next=function(){var u=d.next();return u.done?u:{done:!1,value:h.get(u.value)}},l},c.entries=function(){var l,h=this,d=this.keys();return(l={})[Ql]=function(){return h.entries()},l.next=function(){var u=d.next();if(u.done)return u;var v=h.get(u.value);return{done:!1,value:[u.value,v]}},l},c[Ql]=function(){return this.entries()},s}(),o=function(){function s(l,h){return this[Pe]={i:3,l:h,A:h?h.A:L0(),P:!1,I:!1,o:void 0,t:l,k:this,p:new Map,O:!1,C:!1},this}r(s,Set);var c=s.prototype;return Object.defineProperty(c,"size",{get:function(){return Lt(this[Pe]).size}}),c.has=function(l){var h=this[Pe];return i(h),h.o?!!h.o.has(l)||!(!h.p.has(l)||!h.o.has(h.p.get(l))):h.t.has(l)},c.add=function(l){var h=this[Pe];return i(h),this.has(l)||(t(h),Hi(h),h.o.add(l)),this},c.delete=function(l){if(!this.has(l))return!1;var h=this[Pe];return i(h),t(h),Hi(h),h.o.delete(l)||!!h.p.has(l)&&h.o.delete(h.p.get(l))},c.clear=function(){var l=this[Pe];i(l),Lt(l).size&&(t(l),Hi(l),l.o.clear())},c.values=function(){var l=this[Pe];return i(l),t(l),l.o.values()},c.entries=function(){var l=this[Pe];return i(l),t(l),l.o.entries()},c.keys=function(){return this.values()},c[Ql]=function(){return this.values()},c.forEach=function(l,h){for(var d=this.values(),u=d.next();!u.done;)l.call(h,u.value,u.value,this),u=d.next()},s}();Ak("MapSet",{F:function(s,c){return new a(s,c)},T:function(s,c){return new o(s,c)}})}var Om,Ac,f6=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Dk=typeof Map<"u",Lk=typeof Set<"u",Nm=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ez=f6?Symbol.for("immer-nothing"):((Om={})["immer-nothing"]=!0,Om),Um=f6?Symbol.for("immer-draftable"):"__$immer_draftable",Pe=f6?Symbol.for("immer-state"):"__$immer_state",Ql=typeof Symbol<"u"&&Symbol.iterator||"@@iterator",Tk=""+Object.prototype.constructor,p6=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(r){return Object.getOwnPropertyNames(r).concat(Object.getOwnPropertySymbols(r))}:Object.getOwnPropertyNames,Ik=Object.getOwnPropertyDescriptors||function(r){var e={};return p6(r).forEach(function(t){e[t]=Object.getOwnPropertyDescriptor(r,t)}),e},ru={},iu={get:function(r,e){if(e===Pe)return r;var t=Lt(r);if(!eu(t,e))return function(n,a,o){var s,c=Im(a,o);return c?"value"in c?c.value:(s=c.get)===null||s===void 0?void 0:s.call(n.k):void 0}(r,t,e);var i=t[e];return r.I||!Nr(i)?i:i===Dd(r.t,e)?(Ld(r),r.o[e]=Pc(r.A.h,i,r)):i},has:function(r,e){return e in Lt(r)},ownKeys:function(r){return Reflect.ownKeys(Lt(r))},set:function(r,e,t){var i=Im(Lt(r),e);if(i!=null&&i.set)return i.set.call(r.k,t),!0;if(!r.P){var n=Dd(Lt(r),e),a=n==null?void 0:n[Pe];if(a&&a.t===t)return r.o[e]=t,r.R[e]=!1,!0;if(Ek(t,n)&&(t!==void 0||eu(r.t,e)))return!0;Ld(r),Hi(r)}return r.o[e]===t&&(t!==void 0||e in r.o)||Number.isNaN(t)&&Number.isNaN(r.o[e])||(r.o[e]=t,r.R[e]=!0),!0},deleteProperty:function(r,e){return Dd(r.t,e)!==void 0||e in r.t?(r.R[e]=!1,Ld(r),Hi(r)):delete r.R[e],r.o&&delete r.o[e],!0},getOwnPropertyDescriptor:function(r,e){var t=Lt(r),i=Reflect.getOwnPropertyDescriptor(t,e);return i&&{writable:!0,configurable:r.i!==1||e!=="length",enumerable:i.enumerable,value:t[e]}},defineProperty:function(){K1(11)},getPrototypeOf:function(r){return Object.getPrototypeOf(r.t)},setPrototypeOf:function(){K1(12)}},xs={};io(iu,function(r,e){xs[r]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}}),xs.deleteProperty=function(r,e){return xs.set.call(this,r,e,void 0)},xs.set=function(r,e,t){return iu.set.call(this,r[0],e,t,r[0])};var Rk=function(){function r(t){var i=this;this.g=Nm,this.D=!0,this.produce=function(n,a,o){if(typeof n=="function"&&typeof a!="function"){var s=a;a=n;var c=i;return function(f){var C=this;f===void 0&&(f=s);for(var _=arguments.length,p=Array(_>1?_-1:0),z=1;z<_;z++)p[z-1]=arguments[z];return c.produce(f,function(M){var A;return(A=a).call.apply(A,[C,M].concat(p))})}}var l;if(typeof a!="function"&&K1(6),o!==void 0&&typeof o!="function"&&K1(7),Nr(n)){var h=Lm(i),d=Pc(i,n,void 0),u=!0;try{l=a(d),u=!1}finally{u?T0(h):tu(h)}return typeof Promise<"u"&&l instanceof Promise?l.then(function(f){return Sd(h,o),$d(f,h)},function(f){throw T0(h),f}):(Sd(h,o),$d(l,h))}if(!n||typeof n!="object"){if((l=a(n))===void 0&&(l=n),l===ez&&(l=void 0),i.D&&v6(l,!0),o){var v=[],m=[];li("Patches").M(n,l,v,m),o(v,m)}return l}K1(21,n)},this.produceWithPatches=function(n,a){if(typeof n=="function")return function(l){for(var h=arguments.length,d=Array(h>1?h-1:0),u=1;u<h;u++)d[u-1]=arguments[u];return i.produceWithPatches(l,function(v){return n.apply(void 0,[v].concat(d))})};var o,s,c=i.produce(n,a,function(l,h){o=l,s=h});return typeof Promise<"u"&&c instanceof Promise?c.then(function(l){return[l,o,s]}):[c,o,s]},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=r.prototype;return e.createDraft=function(t){Nr(t)||K1(8),Sn(t)&&(t=Sk(t));var i=Lm(this),n=Pc(this,t,void 0);return n[Pe].C=!0,tu(i),n},e.finishDraft=function(t,i){var n=t&&t[Pe],a=n.A;return Sd(a,i),$d(void 0,a)},e.setAutoFreeze=function(t){this.D=t},e.setUseProxies=function(t){t&&!Nm&&K1(20),this.g=t},e.applyPatches=function(t,i){var n;for(n=i.length-1;n>=0;n--){var a=i[n];if(a.path.length===0&&a.op==="replace"){t=a.value;break}}n>-1&&(i=i.slice(n+1));var o=li("Patches").$;return Sn(t)?o(t,i):this.produce(t,function(s){return o(s,i)})},r}(),er=new Rk,tz=er.produce;er.produceWithPatches.bind(er);er.setAutoFreeze.bind(er);er.setUseProxies.bind(er);er.applyPatches.bind(er);er.createDraft.bind(er);er.finishDraft.bind(er);function Fm(r){return Nr(r)?tz(r,()=>{}):r}function Ok(r){return typeof r=="function"}function il(r,e){const[t,i,n]=Nk(e);let a;if(Ok(r))a=()=>Fm(r());else{const s=Fm(r);a=()=>s}function o(s=a(),c){let l=[t[c.type],...i.filter(({matcher:h})=>h(c)).map(({reducer:h})=>h)];return l.filter(h=>!!h).length===0&&(l=[n]),l.reduce((h,d)=>{if(d)if(Sn(h)){const v=d(h,c);return v===void 0?h:v}else{if(Nr(h))return tz(h,u=>d(u,c));{const u=d(h,c);if(u===void 0){if(h===null)return h;throw Error("A case reducer on a non-draftable value must not return undefined")}return u}}return h},s)}return o.getInitialState=a,o}function Nk(r){const e={},t=[];let i;const n={addCase(a,o){const s=typeof a=="string"?a:a.type;if(s in e)throw new Error("addCase cannot be called with two reducers for the same action type");return e[s]=o,n},addMatcher(a,o){return t.push({matcher:a,reducer:o}),n},addDefaultCase(a){return i=a,n}};return r(n),[e,t,i]}function Uk(r,e){const t=typeof e=="function"?e:il(e.initial,a=>e.builder(a,r)),i=new M4(t),n=J_(r,i);return{actions:r,dispatch:n,subject:i}}const Fk=()=>({request:Gt("client/request",(e,t)=>{var i,n,a,o;return t??(t={}),(i=t.transaction)!==null&&i!==void 0||(t.transaction=X_()),(n=t.created)!==null&&n!==void 0||(t.created=Date.now()),(a=t.controller)!==null&&a!==void 0||(t.controller=new AbortController),(o=t.task)!==null&&o!==void 0||(t.task=new c_),{payload:e,meta:t}}),retry:Gt("client/retry",e=>({payload:e})),success:Gt("client/success",(e,t)=>({payload:e,meta:t})),cancel:Gt("client/cancel",e=>({payload:e})),failure:Gt("client/failure",(e,t)=>({payload:e,meta:t})),error:Gt("client/error",(e,t)=>({payload:e,meta:t}))}),gt=Fk(),rz=r=>e=>e.pipe(Xt(gt.request.match),di(t=>{const{meta:{controller:i,transaction:n}}=t;return new Ee(a=>{if(i.signal.aborted)return a.next(gt.cancel({transaction:n,reason:`request [${n}] was aborted!`})),a.complete();a.add(e.pipe(Xt(gt.cancel.match)).subscribe(o=>{o.payload.transaction===n&&(i.signal.aborted||i.abort(),a.complete())})),a.add(R3(i.signal,"abort").subscribe(()=>{a.next(gt.cancel({transaction:n,reason:`request [${n}] was aborted!`})),a.complete()})),a.add(y1(r(t)).subscribe({next:o=>a.next(o),error:o=>a.next(gt.error(o,{request:t})),complete:()=>a.complete()}))})})),Bk=r=>(r=Object.assign({},{count:0,delay:0},r),(e,t)=>e.pipe(rz(i=>e.pipe(Xt(gt.failure.match),Xt(n=>n.meta.request===i),A_(t),L1(([n,a])=>{var o,s;const{transaction:c}=i.meta,l=a[c];if(!l)return Fi;const h=(s=(o=l.retry)===null||o===void 0?void 0:o.length)!==null&&s!==void 0?s:0,d=Object.assign({},r,i.meta.retry);if(h>=d.count)throw d.count?Error("maximum retries executed!",{cause:n.payload}):n.payload;return(typeof d.delay=="function"?y1(d.delay(n.payload.cause)).pipe(Z1(v=>{throw Error("failed to resolve delay",{cause:v})})):cC(d.delay)).pipe($e(()=>gt.retry(i)))}))))),jk=r=>e=>e.pipe(rz(t=>y1(r(t.payload,t.meta.controller.signal)).pipe($e(i=>gt.success(i,{request:t})),Z1(i=>Vn(gt.failure(Error(`failed to execute request for transaction ${t.meta.transaction}`,{cause:i}),{request:t})))))),qk=r=>r.pipe(Xt(gt.retry.match),$e(e=>e.payload)),iz=()=>Xt(r=>r.status==="complete"),Gk=(r={})=>il(r,e=>e.addCase(gt.request,(t,i)=>{const{transaction:n,task:a,ref:o,created:s}=i.meta;t[n]={transaction:n,task:a,ref:o,created:s}}).addCase(gt.success,(t,i)=>{const{request:n}=i.meta,{transaction:a,ref:o}=n.meta,s=t[a];if(s){const c={status:"complete",transaction:a,ref:o,value:i.payload,args:n.payload,created:s.created,completed:Date.now()};s.task.next(c),s.task.complete()}delete t[a]}).addCase(gt.retry,(t,i)=>{var n;const{transaction:a}=i.payload.meta,o=t[a];o&&((n=o.retry)!==null&&n!==void 0||(o.retry=[]),o.retry.push(Date.now()))}).addCase(gt.cancel,(t,i)=>{const{transaction:n,reason:a}=i.payload;if(t[n]){const o=Object.assign({},Dm(t[n]));o.task.error(new Z3("abort",{request:o,message:a??"request was canceled"})),delete t[n]}}).addCase(gt.failure,(t,i)=>{var n;const{payload:a,meta:o}=i,{transaction:s}=o.request.meta,c=t[s];c&&((n=c.errors)!==null&&n!==void 0||(c.errors=[]),c.errors.push(a))}).addCase(gt.error,(t,i)=>{const{payload:n,meta:a}=i,{transaction:o}=a.request.meta;if(t[o]){const s=Object.assign({},Dm(t[o]));s.task.error(new Z3("error",{request:s,message:`failed to process task [${o}]`,cause:n.cause})),delete t[o]}}));var Kk=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})},dt=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},Bm=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},pt,sa;class jm extends Ee{get closed(){return dt(this,pt,"f").closed}get state$(){return dt(this,pt,"f")}get action$(){return dt(this,pt,"f").action$}get success$(){return this.action$.pipe(Xt(gt.success.match),$e(({payload:e})=>e))}get error$(){return this.action$.pipe(To("client/error"),A_(dt(this,pt,"f")),$e(([e,t])=>{const{payload:i,meta:n}=e,{transaction:a}=n.request.meta,o=t[e.meta.request.meta.transaction];return new Z3("error",{request:o,message:`failed to process task [${a}]`,cause:i})}))}constructor(e,t){super(a=>dt(this,pt,"f").subscribe(a)),pt.set(this,void 0),sa.set(this,void 0);const i={};Bm(this,pt,new M4(Gk(i)),"f"),Bm(this,sa,new U1(()=>dt(this,pt,"f").complete()),"f"),dt(this,sa,"f").add(dt(this,pt,"f").addFlow(jk(e))),dt(this,sa,"f").add(dt(this,pt,"f").addFlow(qk));const n=Object.assign({count:0,delay:0},t==null?void 0:t.retry);dt(this,sa,"f").add(dt(this,pt,"f").addFlow(Bk(n)))}next(e,t){const i=gt.request(e,t);return dt(this,pt,"f").next(i),i.meta}nextAsync(e,t){return Kk(this,void 0,void 0,function*(){return Lr(this.next(e,t).task.pipe(iz()))})}getTaskByTransaction(e){const t=dt(this,pt,"f").value[e];return t&&t.task}getTaskByRef(e){const t=Object.values(dt(this,pt,"f").value).find(i=>i.ref===e);return t&&t.task}cancel(e,t){if(e)e&&dt(this,pt,"f").value[e]&&(t??(t=`[${e}]: transaction canceled`),dt(this,pt,"f").next(gt.cancel({transaction:e,reason:t})));else for(const i of Object.keys(dt(this,pt,"f").value))this.cancel(i,"all transactions canceled")}on(e,t){return dt(this,pt,"f").addEffect(gt[e].type,i=>{t(i,this)})}complete(){dt(this,sa,"f").unsubscribe()}asObservable(){return dt(this,pt,"f").asObservable()}}pt=new WeakMap,sa=new WeakMap;function Wk(){return{set:Gt("cache/set",(r,e)=>({payload:{key:r,entry:e}})),remove:Gt("cache/remove",r=>({payload:r})),invalidate:Gt("cache/invalidate",r=>({payload:r})),trim:Gt("cache/trim",r=>({payload:r}))}}const Wa=Wk(),Yk=(r,e)=>{var t,i;return((t=e.updated)!==null&&t!==void 0?t:0)-((i=r.updated)!==null&&i!==void 0?i:0)};function Qk(r,e={}){return il(e,t=>t.addCase(r.set,(i,n)=>{var a;const{key:o,entry:s}=n.payload,c=i[o];c?(c.updated=Date.now(),(a=c.updates)!==null&&a!==void 0||(c.updates=0),c.updates++):i[o]=Object.assign(Object.assign({},s),{created:Date.now()})}).addCase(r.remove,(i,n)=>{delete i[n.payload]}).addCase(r.invalidate,(i,n)=>{const a=i[n.payload];a&&delete a.updated}).addCase(r.trim,(i,n)=>{var a,o;const{payload:s}=n,c=(a=s.sort)!==null&&a!==void 0?a:Yk,l=Object.keys(i),h=Object.entries(i).filter(([d,u])=>!s.validate||s.validate(u)).sort((d,u)=>c(d[1],u[1])).slice(0,(o=s.size)!==null&&o!==void 0?o:Number.MAX_SAFE_INTEGER).map(([d])=>d);if(l.length!==h.length)for(const d of l){const u=h.indexOf(d);u!==-1?h.splice(u,1):delete i[d]}}))}var Wr=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},Xk=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},q1;class qm{get state$(){return Wr(this,q1,"f").asObservable()}constructor(e){q1.set(this,void 0);const{trimming:t,initial:i}=e;Xk(this,q1,new M4(Qk(Wa,i)),"f"),t&&Wr(this,q1,"f").addEffect("cache/set",()=>Wr(this,q1,"f").next(Wa.trim(t)))}setItem(...e){Wr(this,q1,"f").next(Wa.set(...e))}getItem(e){return Wr(this,q1,"f").value[e]}removeItem(e){Wr(this,q1,"f").next(Wa.remove(e))}invalidate(e){Wr(this,q1,"f").next(Wa.invalidate(e))}trim(e){Wr(this,q1,"f").next(Wa.trim(e))}reset(){Wr(this,q1,"f").reset()}complete(){Wr(this,q1,"f").complete()}}q1=new WeakMap;var Ke=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},Ya=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},Jk=globalThis&&globalThis.__rest||function(r,e){var t={};for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&e.indexOf(i)<0&&(t[i]=r[i]);if(r!=null&&typeof Object.getOwnPropertySymbols=="function")for(var n=0,i=Object.getOwnPropertySymbols(r);n<i.length;n++)e.indexOf(i[n])<0&&Object.prototype.propertyIsEnumerable.call(r,i[n])&&(t[i[n]]=r[i[n]]);return t},ca,Er,Qi,r2,i2,Ph,nu;const Zk=(r=0)=>e=>{var t;return((t=e.updated)!==null&&t!==void 0?t:0)+r>Date.now()},eE=r=>{if(typeof r=="function")return r;switch(r){case"concat":return ok;case"merge":return sk;case"switch":default:return ck}};class h1{get client(){return Ke(this,Er,"f")}get cache(){return Ke(this,Qi,"f")}constructor(e){var t;ca.set(this,new U1),Er.set(this,void 0),Qi.set(this,void 0),r2.set(this,new Di),i2.set(this,void 0),Ph.set(this,void 0),nu.set(this,X_()),Ya(this,i2,n=>wk(e.key(n),Ke(this,nu,"f")),"f"),Ya(this,Ph,(t=e==null?void 0:e.validate)!==null&&t!==void 0?t:Zk(e==null?void 0:e.expire),"f"),e.client instanceof jm?Ya(this,Er,e.client,"f"):(Ya(this,Er,new jm(e.client.fn,e.client.options),"f"),Ke(this,ca,"f").add(()=>Ke(this,Er,"f").complete())),e.cache instanceof qm?Ya(this,Qi,e.cache,"f"):(Ya(this,Qi,new qm(e.cache||{}),"f"),Ke(this,ca,"f").add(()=>Ke(this,Qi,"f").complete()));const i=eE(e.queueOperator);Ke(this,ca,"f").add(()=>Ke(this,r2,"f").complete()),Ke(this,ca,"f").add(Ke(this,r2,"f").pipe(i(({args:n,options:a})=>new Ee(o=>{const{task:s,transaction:c}=Ke(this,Er,"f").next(n,a);o.add(s.pipe(Z1(()=>Fi)).subscribe(o)),o.add(()=>{setTimeout(()=>Ke(this,Er,"f").cancel(c))})})),iz(),P_(()=>!Ke(this,Er,"f").closed)).subscribe(n=>{const{args:a,value:o,transaction:s,ref:c}=n,l=c??Ke(this,i2,"f").call(this,a);Ke(this,Qi,"f").setItem(l,{value:o,args:a,transaction:s})}))}next(e,t){Ke(this,r2,"f").next({args:e,options:t})}query(e,t){var i;const n=Ke(this,i2,"f").call(this,e);return(i=Ke(this,Er,"f").getTaskByRef(n))!==null&&i!==void 0?i:this._createTask(n,e,t)}queryAsync(e,t){const i=t||{},{awaitResolve:n}=i,a=Jk(i,["awaitResolve"]);return(n?V1:Lr)(this._query(e,a))}complete(){Ke(this,ca,"f").unsubscribe()}_query(e,t){var i;const n=Ke(this,i2,"f").call(this,e);return(i=Ke(this,Er,"f").getTaskByRef(n))!==null&&i!==void 0?i:this._createTask(n,e,t)}_createTask(e,t,i){var n;const a=new c_,o=Ke(this,Qi,"f").getItem(e);if(o){const{value:l,args:h,created:d,updated:u,updates:v,transaction:m}=o,f={status:"cache",value:l,args:h,created:d,updated:u,updates:v,transaction:m};a.next(f)}const s=((n=i==null?void 0:i.cache)===null||n===void 0?void 0:n.validate)||Ke(this,Ph,"f");return o&&s(o,t)?a.complete():Ke(this,r2,"f").next({args:t,options:{ref:e,task:a}}),a.asObservable()}}ca=new WeakMap,Er=new WeakMap,Qi=new WeakMap,r2=new WeakMap,i2=new WeakMap,Ph=new WeakMap,nu=new WeakMap;h1.extractQueryValue=lk;var qn=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},Gm=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},Ms,Xi;class tE extends Ee{get currentContext(){return qn(this,Xi,"f").value}get currentContext$(){return qn(this,Xi,"f").asObservable()}get client(){return qn(this,Ms,"f")}constructor(e){super(t=>qn(this,Xi,"f").subscribe(t)),Ms.set(this,void 0),Xi.set(this,void 0),Gm(this,Ms,new h1(e),"f"),Gm(this,Xi,new Do(void 0),"f")}setCurrentContext(e){typeof e=="string"?this.resolveContext(e).pipe(Z1(()=>Fi)).subscribe(t=>this.setCurrentContext(t)):ak(e,qn(this,Xi,"f").value)||qn(this,Xi,"f").next(e)}resolveContext(e){return qn(this,Ms,"f").query({id:e}).pipe($e(t=>t.value))}}Ms=new WeakMap,Xi=new WeakMap;var Td=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})},je=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},Gn=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},yi,Ah,Cs,wi,n2,la,Hs,Vh;let rE=class{get contextClient(){return je(this,yi,"f")}get queryClient(){return je(this,Ah,"f")}get currentContext$(){return je(this,yi,"f").currentContext$}get currentContext(){return je(this,yi,"f").currentContext}set currentContext(e){e?this.setCurrentContext(e):this.clearCurrentContext()}constructor(e){var t,i,n;yi.set(this,void 0),Ah.set(this,void 0),Cs.set(this,void 0),wi.set(this,void 0),n2.set(this,new U1),la.set(this,void 0),Hs.set(this,void 0),Vh.set(this,void 0);const{config:a,event:o,parentContext:s}=e;a.resolveContext&&(this.resolveContext=(t=a.resolveContext)===null||t===void 0?void 0:t.bind(this)),a.validateContext&&(this.validateContext=(i=a.validateContext)===null||i===void 0?void 0:i.bind(this)),Gn(this,la,a.contextType,"f"),Gn(this,Hs,a.contextFilter,"f"),Gn(this,yi,new tE(a.client.get),"f"),Gn(this,Ah,new h1(a.client.query),"f"),a.client.related&&Gn(this,Cs,new h1(a.client.related),"f"),Gn(this,Vh,(n=a.contextParameterFn)!==null&&n!==void 0?n:c=>({search:c.search,filter:{type:c.type}}),"f"),o&&(Gn(this,wi,o,"f"),je(this,n2,"f").add(je(this,yi,"f").currentContext$.pipe(O3()).subscribe(([c,l])=>{o.dispatchEvent("onCurrentContextChanged",{source:this,canBubble:!0,detail:{previous:c,next:l}})})),je(this,n2,"f").add(o.addEventListener("onCurrentContextChanged",c=>{c.source!==this&&(this.currentContext=c.detail.next)}))),s&&je(this,n2,"f").add(s.contextClient.currentContext$.pipe(L1(c=>Td(this,void 0,void 0,function*(){var l;if(c){const h=yield(l=je(this,wi,"f"))===null||l===void 0?void 0:l.dispatchEvent("onParentContextChanged",{source:this,detail:c,cancelable:!0});return{next:c,canceled:h==null?void 0:h.canceled}}return{next:c}})),Xt(c=>!c.canceled),$e(({next:c})=>c)).subscribe(c=>Td(this,void 0,void 0,function*(){if(c)try{yield this.setCurrentContext(c,{validate:!0,resolve:!0})}catch(l){console.warn("ContextProvider::onParentContextChanged",l)}else this.clearCurrentContext()})))}setCurrentContext(e,t){var i,n,a,o,s;return Td(this,void 0,void 0,function*(){if(e===this.currentContext)return e;if(t!=null&&t.validate&&!this.validateContext(e)){if(t.resolve){const l=yield(i=je(this,wi,"f"))===null||i===void 0?void 0:i.dispatchEvent("onSetContextResolve",{source:this,cancelable:!0,detail:{context:e}});if(l!=null&&l.canceled)throw Error("resolving of context was canceled");try{const h=yield this.resolveContextAsync(e),d=yield(n=je(this,wi,"f"))===null||n===void 0?void 0:n.dispatchEvent("onSetContextResolved",{source:this,cancelable:!0,detail:{context:e,resolved:h}});if(d!=null&&d.canceled)throw Error("resolving of context was canceled");return this.setCurrentContext(h)}catch(h){console.error("failed to resolve context",e,h),(a=je(this,wi,"f"))===null||a===void 0||a.dispatchEvent("onSetContextResolveFailed",{source:this,detail:{context:e,error:h}})}}throw(o=je(this,wi,"f"))===null||o===void 0||o.dispatchEvent("onSetContextValidationFailed",{source:this,detail:{context:e}}),Error("failed to validate provided context")}const c=yield(s=je(this,wi,"f"))===null||s===void 0?void 0:s.dispatchEvent("onCurrentContextChange",{source:this,canBubble:!0,cancelable:!0,detail:{context:e}});if(c!=null&&c.canceled)throw Error("change of context was aborted");return je(this,yi,"f").setCurrentContext(e),e})}queryContext(e){const t=this.queryClient.query(je(this,Vh,"f").call(this,{search:e,type:je(this,la,"f")})).pipe($e(i=>i.value));return je(this,Hs,"f")?t.pipe($e(je(this,Hs,"f"))):t}queryContextAsync(e){return V1(this.queryContext(e))}validateContext(e){return je(this,la,"f")?je(this,la,"f").map(t=>t.toLowerCase()).includes(e.type.id.toLowerCase()):!0}resolveContext(e){return this.relatedContexts({item:e,filter:{type:je(this,la,"f")}}).pipe($e(t=>t.filter(i=>this.validateContext(i))),$e(t=>{const i=t.shift();if(!i)throw Error("failed to resolve context");return t.length&&console.warn("ContextProvider::relatedContext","multiple items found 🤣",t),i}))}resolveContextAsync(e){return V1(this.resolveContext(e))}relatedContexts(e){return je(this,Cs,"f")?je(this,Cs,"f").query(e).pipe($e(({value:t})=>t)):b_(()=>Error("ContextProvider::relatedContexts - no client defined for resolving related context"))}relatedContextsAsync(e){return V1(this.relatedContexts(e))}clearCurrentContext(){je(this,yi,"f").setCurrentContext(void 0)}dispose(){je(this,n2,"f").unsubscribe()}};yi=new WeakMap,Ah=new WeakMap,Cs=new WeakMap,wi=new WeakMap,n2=new WeakMap,la=new WeakMap,Hs=new WeakMap,Vh=new WeakMap;var iE=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const nE="context",aE={name:nE,configure:()=>new nk,initialize:r=>iE(void 0,void 0,void 0,function*(){var e;const t=yield r.config.createConfig(r),i=r.hasModule("event")?yield r.requireInstance("event"):void 0,n=(e=r.ref)===null||e===void 0?void 0:e.context;return new rE({config:t,event:i,parentContext:n})}),dispose:r=>{r.instance.dispose()}};var Km=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};class oE{constructor(e){this.clientKey=e.clientKey,this.endpoint=e.endpoint,this.clientCtor=e.clientCtor}createHttpClientClient(e){return Km(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 Km(this,void 0,void 0,function*(){if(!this.endpoint)throw Error("no endpoint defined!");return new this.clientCtor({http:e,endpoint:this.endpoint})})}}var Id=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};class sE{constructor(e,t){this._client=e,this._http=t}get environment(){return this._client.environment}resolveServices(){return this._client.fetchEnvironment()}resolveService(e){return Id(this,void 0,void 0,function*(){return this._client.resolveService(e)})}createClient(e,t){return Id(this,void 0,void 0,function*(){const i=yield this.resolveService(e);if(!i)throw Error(`Could not load configuration of service [${e}]`);return this._http.createClient(Object.assign(Object.assign({},t),{baseUri:i.uri,defaultScopes:i.defaultScopes}))})}configureClient(e,t){return Id(this,void 0,void 0,function*(){const{key:i,alias:n}=typeof e=="string"?{key:e,alias:e}:e,{uri:a,defaultScopes:o}=yield this.resolveService(i);t.addConfig($_(n,{baseUri:a,defaultScopes:o}))})}}var Rd=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})},Wm=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},cE=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},ks;const Ym="services";class lE{get environment(){var e;const t=(e=Wm(this,ks,"f").cache.getItem(Ym))===null||e===void 0?void 0:e.value;if(!t)throw Error("no cached environment found");return t}constructor({http:e,endpoint:t}){ks.set(this,void 0),this.http=e,this.endpoint=t,cE(this,ks,new h1({client:{fn:()=>e.fetch$(t,{selector:this.selector.bind(this)})},key:()=>Ym,expire:5*60*1e3}),"f")}fetchEnvironment(){return Rd(this,void 0,void 0,function*(){return Lr(h1.extractQueryValue(Wm(this,ks,"f").query(void 0,{cache:{suppressInvalid:!0}})))})}selector(e){return Rd(this,void 0,void 0,function*(){const t=yield e.json(),i=t.services.reduce((n,a)=>Object.assign(n,{[a.key]:{clientId:t.clientId,uri:a.uri,defaultScopes:[t.clientId+"/.default"]}}),{});return Object.assign(Object.assign({},t),{services:i})})}resolveService(e){return Rd(this,void 0,void 0,function*(){try{const{services:t}=yield this.fetchEnvironment();return t[e]}catch(t){throw console.error(t),t}})}}ks=new WeakMap;const hE="serviceDiscovery";var dE=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const uE={name:hE,configure:()=>new oE({clientCtor:lE,clientKey:"service_discovery",endpoint:"/_discovery/environments/current"}),initialize:({config:r,requireInstance:e})=>dE(void 0,void 0,void 0,function*(){const t=yield e("http"),i=yield r.createHttpClientClient(t),n=yield r.createClient(i);return new sE(n,t)})};class vE{}class vi extends Error{constructor(e,t){super(`unsupported version ${e}`,{cause:t}),this.version=e}}const mE=(r,e)=>{var t;const i=(t=_r[r])!==null&&t!==void 0?t:r;switch(i){case _r.v2:throw new vi(r);case _r.v1:default:{const{id:n}=e,a=new URLSearchParams;return a.append("api-version",i),`/contexts/${n}/?${String(a)}`}}},fE=(r,e,t)=>[mE(r,e),t],pE=(r,e,t="json")=>(i,n)=>r[t](...fE(e,i,n));var gE=["eq","ne","gt","ge","lt","le"],Xl=["and","or","not"],_E=["any","all"],zE=["startswith","endswith","contains"],yE=["expand","levels","select","skip","top","count","orderby","filter"],Qm=/\((.*)\)/,Xm=/(?!indexof)\((\w+)\)/,Jm;(function(r){r.sum="sum",r.min="min",r.max="max",r.average="average",r.countdistinct="countdistinct"})(Jm||(Jm={}));var _i="";function nz(r){var e=r===void 0?{}:r,t=e.select,i=e.search,n=e.skiptoken,a=e.format,o=e.top,s=e.skip,c=e.filter,l=e.transform,h=e.orderBy,d=e.key,u=e.count,v=e.expand,m=e.action,f=e.func,C="",_=[],p={};if(d!=null&&(C+="(".concat(ni(d,_),")")),(c||typeof u=="object")&&(p.$filter=Vc(typeof u=="object"?u:c,_)),l&&(p.$apply=az(l)),v&&(p.$expand=Sh(v)),h&&(p.$orderby=g6(h)),u&&(typeof u=="boolean"?p.$count=!0:C+="/$count"),typeof o=="number"&&(p.$top=o),typeof s=="number"&&(p.$skip=s),m&&(C+="/".concat(m)),f){if(typeof f=="string")C+="/".concat(f);else if(typeof f=="object"){var z=Object.keys(f)[0],M=ni(f[z],_);C+="/".concat(z),M!==""&&(C+="(".concat(M,")"))}}return _.length>0&&Object.assign(p,_.reduce(function(A,I){var N;return Object.assign(A,(N={},N["@".concat(I.name)]=ni(I.value),N))},{})),CE(C,wt({$select:t,$search:i,$skiptoken:n,$format:a},p))}function Od(r,e,t){return t===void 0&&(t=[]),"".concat(r," eq ").concat(ni(e,t))}function Vc(r,e,t){return r===void 0&&(r={}),e===void 0&&(e=[]),t===void 0&&(t=""),(Array.isArray(r)?r:[r]).reduce(function(a,o){if(o){var s=i(o,e,t);s&&a.push(s)}return a},[]).join(" and ");function i(a,o,s){a===void 0&&(a={}),o===void 0&&(o=[]),s===void 0&&(s="");var c="";if(typeof a=="string")c=a;else if(a&&typeof a=="object"){var l=Object.keys(a).reduce(function(h,d){var u=a[d];if(u===void 0)return h;var v="";if(s?d===_i?v=s:Xm.test(d)?v=d.replace(Xm,function(p,z){return z.trim()===_i?"(".concat(s,")"):"(".concat(s,"/").concat(z.trim(),")")}):Qm.test(d)?v=d.replace(Qm,function(p,z){return z.trim()===_i?"(".concat(s,")"):"(".concat(s,"/").concat(z.trim(),")")}):v="".concat(s,"/").concat(d):v=d,d===_i&&Array.isArray(u))return h.concat(u.map(function(p){return Od(v,p)}));if(["number","string","boolean"].indexOf(typeof u)!==-1||u instanceof Date||u===null)h.push(Od(v,u,o));else if(Array.isArray(u)){var m=d,f=u.map(function(p){return Vc(p,o,s)}).filter(function(p){return p}).map(function(p){return Xl.indexOf(m)!==-1?"(".concat(p,")"):p});f.length&&(Xl.indexOf(m)!==-1?f.length&&(m==="not"?h.push(Zm(f)):h.push("(".concat(f.join(" ".concat(m," ")),")"))):h.push(f.join(" ".concat(m," "))))}else if(Xl.indexOf(v)!==-1){var C=v,f=Object.keys(u).map(function(z){var M;return i((M={},M[z]=u[z],M))});f.length&&(C==="not"?h.push(Zm(f)):h.push("(".concat(f.join(" ".concat(C," ")),")")))}else if(typeof u=="object")if("type"in u)h.push(Od(v,u,o));else{var _=Object.keys(u);_.forEach(function(p){if(u[p]!==void 0)if(gE.indexOf(p)!==-1)h.push("".concat(v," ").concat(p," ").concat(ni(u[p],o)));else if(Xl.indexOf(p)!==-1)Array.isArray(u[p])?h.push(u[p].map(function(I){return"("+i(I,o,v)+")"}).join(" ".concat(p," "))):h.push("("+i(u[p],o,v)+")");else if(_E.indexOf(p)!==-1){var z=n(d.toLowerCase(),u[p],p,v);z&&h.push(z)}else if(p==="has")h.push("".concat(v," ").concat(p," ").concat(ni(u[p],o)));else if(p==="in"){var M=Array.isArray(u[p])?u[p]:u[p].value.map(function(I){return{type:u[p].type,value:I}});h.push(v+" in ("+M.map(function(I){return ni(I,o)}).join(",")+")")}else if(zE.indexOf(p)!==-1)h.push("".concat(p,"(").concat(v,",").concat(ni(u[p],o),")"));else{var A=i(u,o,v);A&&h.push(A)}})}else throw new Error("Unexpected value type: ".concat(u));return h},[]);c=l.join(" and ")}return c}function n(a,o,s,c){var l="";if(typeof o=="string"||o instanceof String)l=wE(a,o,s,c);else if(o){var h=Array.isArray(o)?o.reduce(function(u,v){return v.hasOwnProperty(_i)?(u.hasOwnProperty(_i)||(u[_i]=[]),u[_i].push(v[_i]),u):wt(wt({},u),v)},{}):o,d=i(h,e,a);l="".concat(c,"/").concat(s,"(").concat(d?"".concat(a,":").concat(d):"",")")}return l}}function wE(r,e,t,i){var n="",a=t=="all"?"ne":"eq";return n="".concat(i,"/").concat(t,"(").concat(r,": ").concat(r," ").concat(a," '").concat(e,"')"),n}function bE(r){return r=r.replace(/%/g,"%25"),r=r.replace(/\+/g,"%2B"),r=r.replace(/\//g,"%2F"),r=r.replace(/\?/g,"%3F"),r=r.replace(/#/g,"%23"),r=r.replace(/&/g,"%26"),r=r.replace(/'/g,"''"),r}function ni(r,e){if(typeof r=="string")return"'".concat(bE(r),"'");if(r instanceof Date)return r.toISOString();if(typeof r=="number")return r;if(Array.isArray(r))return"[".concat(r.map(function(t){return ni(t)}).join(","),"]");if(r===null)return r;if(typeof r=="object")switch(r.type){case"raw":case"guid":return r.value;case"duration":return"duration'".concat(r.value,"'");case"binary":return"binary'".concat(r.value,"'");case"alias":return Array.isArray(e)&&e.push(r),"@".concat(r.name);case"json":return escape(JSON.stringify(r.value));case"decimal":return"".concat(r.value,"M");default:return Object.entries(r).filter(function(t){var i=t[1];return i!==void 0}).map(function(t){var i=t[0],n=t[1];return"".concat(i,"=").concat(ni(n,e))}).join(",")}return r}function Sh(r){if(typeof r=="number")return r;if(typeof r=="string")return r.indexOf("/")===-1?r:r.split("/").reverse().reduce(function(t,i,n,a){return n===0?"$expand=".concat(i):n===a.length-1?"".concat(i,"(").concat(t,")"):"$expand=".concat(i,"(").concat(t,")")},"");if(Array.isArray(r))return"".concat(r.map(function(t){return Sh(t)}).join(","));if(typeof r=="object"){var e=Object.keys(r);return e.some(function(t){return yE.indexOf(t.toLowerCase())!==-1})?e.map(function(t){var i;switch(t){case"filter":i=Vc(r[t]);break;case"orderBy":i=g6(r[t]);break;case"levels":case"count":case"skip":case"top":i="".concat(r[t]);break;default:i=Sh(r[t])}return"$".concat(t.toLowerCase(),"=").concat(i)}).join(";"):e.map(function(t){var i=Sh(r[t]);return i?"".concat(t,"(").concat(i,")"):t}).join(",")}return""}function az(r){var e=Array.isArray(r)?r:[r],t=e.reduce(function(i,n){var a=n.aggregate,o=n.filter,s=n.groupBy,c=r_(n,["aggregate","filter","groupBy"]),l=Object.keys(c);if(l.length)throw new Error("Unsupported transform(s): ".concat(l));if(a&&i.push("aggregate(".concat(xE(a),")")),o){var h=Vc(o);h&&i.push("filter(".concat(Vc(h),")"))}return s&&i.push("groupby(".concat(ME(s),")")),i},[]);return t.join("/")||void 0}function xE(r){var e=Array.isArray(r)?r:[r];return e.map(function(t){return typeof t=="string"?t:Object.keys(t).map(function(i){var n=t[i];if(!n.with)throw new Error("'with' property required for '".concat(i,"'"));if(!n.as)throw new Error("'as' property required for '".concat(i,"'"));return"".concat(i," with ").concat(n.with," as ").concat(n.as)})}).join(",")}function ME(r){if(!r.properties)throw new Error("'properties' property required for groupBy");var e="(".concat(r.properties.join(","),")");return r.transform&&(e+=",".concat(az(r.transform))),e}function g6(r,e){return e===void 0&&(e=""),Array.isArray(r)?r.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 r=="object"?Object.entries(r).map(function(t){var i=t[0],n=t[1];return g6(n,"".concat(i,"/"))}).map(function(t){return"".concat(e).concat(t)}).join(","):"".concat(e).concat(String(r))}function CE(r,e){var t=Object.getOwnPropertyNames(e).filter(function(i){return e[i]!==void 0&&e[i]!==""}).map(function(i){return"".concat(i,"=").concat(e[i])});return t.length?"".concat(r,"?").concat(t.join("&")):r}function Zm(r){return"not(".concat(r.join(" and "),")")}const HE=r=>Object.keys(r).reduce((e,t)=>{var i;switch(t){case"type":return!((i=r[t])===null||i===void 0)&&i.length?Object.assign(Object.assign({},e),{[t]:{in:r[t]}}):e;default:return Object.assign(Object.assign({},e),{[t]:r[t]})}},{}),kE=r=>Object.entries(r).filter(([e,t])=>!!t).reduce((e,[t,i])=>{switch(t){case"filter":return Object.assign(Object.assign({},e),{[t]:HE(i)});default:return Object.assign(Object.assign({},e),{[t]:r[t]})}},{}),EE=r=>typeof r=="string"?r:nz(kE(r)),PE=(r,e)=>{var t;const i=(t=_r[r])!==null&&t!==void 0?t:r;switch(i){case _r.v2:throw new vi(r);case _r.v1:default:{const{query:n,includeDeleted:a}=e,o=new URLSearchParams(EE(n));return o.append("api-version",i),a&&o.append("includeDeleted","true"),`/contexts/?${String(o)}`}}},AE=(r,e,t)=>[PE(r,e),t],VE=(r,e,t="json")=>(i,n)=>r[t](...AE(e,i,n)),SE=r=>Object.keys(r).reduce((e,t)=>{var i;switch(t){case"type":return!((i=r[t])===null||i===void 0)&&i.length?Object.assign(Object.assign({},e),{[t]:{in:r[t]}}):e;default:return Object.assign(Object.assign({},e),{[t]:r[t]})}},{}),$E=r=>Object.entries(r).filter(([e,t])=>!!t).reduce((e,[t,i])=>{switch(t){case"filter":return Object.assign(Object.assign({},e),{[t]:SE(i)});default:return Object.assign(Object.assign({},e),{[t]:r[t]})}},{}),DE=r=>typeof r=="string"?r:nz($E(r)),LE=(r,e)=>{var t;const i=(t=_r[r])!==null&&t!==void 0?t:r;switch(i){case _r.v2:throw new vi(r);case _r.v1:default:{const{id:n,query:a}=e,o=new URLSearchParams(DE(a||""));return o.append("api-version",i),`/contexts/${n}/relations?${String(o)}`}}},TE=(r,e,t)=>[LE(r,e),t],IE=(r,e,t="json")=>(i,n)=>r[t](...TE(e,i,n));class RE{get Version(){return _r}constructor(e,t){this._client=e,this._method=t}get(e,...t){return pE(this._client,e,this._method)(...t)}query(e,...t){return VE(this._client,e,this._method)(...t)}related(e,...t){return IE(this._client,e,this._method)(...t)}}var _r;(function(r){r.v1="1.0",r.v2="2.0"})(_r||(_r={}));const OE=(r,e)=>{switch(r){case"v1":{const{id:t}=e,i=new URLSearchParams;return i.append("api-version","1.0"),`/bookmarks/${t}/?${String(i)}`}default:{const{id:t}=e,i=new URLSearchParams;return i.append("api-version",r),`/bookmarks/${t}/?${String(i)}`}}},NE=(r,e,t)=>{const i=OE(r,e),n=Object.assign({},{method:"Delete"},t);return[i,n]},UE=(r,e,t="fetch")=>(i,n)=>r[t](...NE(e,i,n)),FE=UE,BE=(r,e)=>{switch(r){case"v1":{const{id:t}=e,i=new URLSearchParams;return i.append("api-version","1.0"),`/bookmarks/${t}/?${String(i)}`}default:{const{id:t}=e,i=new URLSearchParams;return i.append("api-version",r),`/bookmarks/${t}/?${String(i)}`}}},jE=(r,e,t)=>[BE(r,e),t],qE=(r,e,t="json")=>(i,n)=>r[t](...jE(e,i,n)),GE=qE,KE=(r,e)=>{switch(r){case"v1":default:{const t=new URLSearchParams;return t.append("api-version",r),`/bookmarks?${String(t)}`}}},WE=(r,e,t)=>{const i=KE(r),n=new Headers;n.append("content-type","application/json");const a=Object.assign({},{method:"post",body:JSON.stringify(e),headers:n},t);return[i,a]},YE=(r,e,t="json")=>(i,n)=>r[t](...WE(e,i,n)),QE=YE,XE=(r,e)=>{switch(r){case"v1":default:{const t=new URLSearchParams;return t.append("api-version",r),`/bookmarks/${e.id}?${String(t)}`}}},JE=(r,e,t)=>{const i=XE(r,e),n=new Headers;n.append("content-type","application/json");const a=Object.assign({},{method:"patch",body:JSON.stringify(e),headers:n},t);return[i,a]},ZE=(r,e,t="json")=>(i,n)=>r[t](...JE(e,i,n)),eP=ZE,tP=r=>{switch(r){case"v1":default:{const e=new URLSearchParams;return e.append("api-version",r),`persons/me/bookmarks/?${String(e)}`}}},rP=(r,e)=>[tP(r),e],iP=(r,e,t="json")=>i=>r[t](...rP(e,i)),nP=iP,aP=(r,e)=>{switch(r){case"v1":default:{const t=new URLSearchParams;return t.append("api-version",r),`/persons/me/bookmarks/favorites?${String(t)}`}}},oP=(r,e,t)=>{const i=aP(r),n=new Headers;n.append("content-type","application/json");const a=Object.assign({},{method:"post",body:JSON.stringify(e),headers:n},t);return[i,a]},sP=(r,e,t="json")=>(i,n)=>r[t](...oP(e,i,n)),cP=sP,lP=(r,e)=>{switch(r){case"v1":default:{const{bookmarkId:t}=e,i=new URLSearchParams;return i.append("api-version","1.0"),`/persons/me/bookmarks/favorites/${t}/?${String(i)}`}}},hP=(r,e,t)=>{const i=lP(r,e),n=Object.assign({},{method:"Delete"},t);return[i,n]},dP=(r,e,t="fetch")=>(i,n)=>r[t](...hP(e,i,n)),uP=dP,vP=(r,e)=>{switch(r){case"v1":default:{const{bookmarkId:t}=e,i=new URLSearchParams;return i.append("api-version",r),`/persons/me/bookmarks/favorites/${t}?${String(i)}`}}},mP=(r,e,t)=>{const i=vP(r,e),n=new Headers;n.append("content-type","application/json");const a=Object.assign({},{method:"head",headers:n},t);return[i,a]},fP=(r,e,t="json")=>(i,n)=>r[t](...mP(e,i,n)),pP=fP;class gP{constructor(e,t){this._client=e,this._method=t}get(e,...t){return GE(this._client,e,this._method)(...t)}getAll(e){return nP(this._client,e,this._method)()}post(e,...t){return QE(this._client,e,this._method)(...t)}patch(e,...t){return eP(this._client,e,this._method)(...t)}delete(e,...t){return FE(this._client,e,this._method)(...t)}addFavorite(e,...t){return cP(this._client,e,this._method)(...t)}removeFavorite(e,...t){return uP(this._client,e,this._method)(...t)}verifyFavorite(e,...t){return pP(this._client,e,this._method)(...t)}}const _P=gP,zP=(r,e)=>{var t;const i=(t=tt[r])!==null&&t!==void 0?t:r;switch(i){case tt.v2:throw new vi(r);case tt.v1:default:{const{id:n}=e,a=new URLSearchParams;return a.append("api-version",i),`/notification/${n}/?${String(a)}`}}},yP=(r,e,t)=>[zP(r,e),t],wP=(r,e,t="json")=>(i,n)=>r[t](...yP(e,i,n)),bP=(r,e)=>{var t;const i=(t=tt[r])!==null&&t!==void 0?t:r;switch(i){case tt.v2:throw new vi(r);case tt.v1:default:{const{userId:n}=e,a=new URLSearchParams;return a.append("api-version",i),`/person/${n}/notifications/?${String(a)}`}}},xP=(r,e,t)=>{const i=bP(r,e),n=new Headers;n.append("content-type","application/json");const a=Object.assign({},{method:"post",body:JSON.stringify(e),headers:n},t);return[i,a]},MP=(r,e,t="json")=>(i,n)=>r[t](...xP(e,i,n)),CP=(r,e)=>{var t;const i=(t=tt[r])!==null&&t!==void 0?t:r;switch(i){case tt.v2:throw new vi(r);case tt.v1:default:{const{id:n}=e,a=new URLSearchParams;return a.append("api-version",i),`/notification/${n}/?${String(a)}`}}},HP=(r,e,t)=>{const i=CP(r,e),n=new Headers;n.append("content-type","application/json");const a=Object.assign({},{method:"patch",body:JSON.stringify(e),headers:n},t);return[i,a]},kP=(r,e,t="json")=>(i,n)=>r[t](...HP(e,i,n)),EP=(r,e)=>{var t;const i=(t=tt[r])!==null&&t!==void 0?t:r;switch(i){case tt.v2:throw new vi(r);case tt.v1:default:{const{userId:n}=e,a=new URLSearchParams;return a.append("api-version",i),`/person/${n}/notifications/?${String(a)}`}}},PP=(r,e,t)=>[EP(r,e),t],AP=(r,e,t="json")=>(i,n)=>r[t](...PP(e,i,n)),VP=(r,e)=>{var t;const i=(t=tt[r])!==null&&t!==void 0?t:r;switch(i){case tt.v2:throw new vi(r);case tt.v1:default:{const{id:n}=e,a=new URLSearchParams;return a.append("api-version",i),`/notification/${n}/?${String(a)}`}}},SP=(r,e,t)=>{const i=VP(r,e),n=new Headers;n.append("content-type","application/json");const a=Object.assign({},{method:"delete",headers:n},t);return[i,a]},$P=(r,e,t="json")=>(i,n)=>r[t](...SP(e,i,n));var tt;(function(r){r.v1="1.0",r.v2="2.0"})(tt||(tt={}));const DP=(r,e)=>{var t;const i=(t=tt[r])!==null&&t!==void 0?t:r;switch(i){case tt.v2:throw new vi(r);case tt.v1:default:{const{userId:n}=e,a=new URLSearchParams;return a.append("api-version",i),`/person/${n}/notifications/settings/?${String(a)}`}}},LP=(r,e,t)=>{const i=DP(r,e),n=new Headers;n.append("content-type","application/json");const a=Object.assign({},{method:"put",body:JSON.stringify(e),headers:n},t);return[i,a]},TP=(r,e,t="json")=>(i,n)=>r[t](...LP(e,i,n)),IP=TP,RP=(r,e)=>{var t;const i=(t=tt[r])!==null&&t!==void 0?t:r;switch(i){case tt.v2:throw new vi(r);case tt.v1:default:{const{userId:n}=e,a=new URLSearchParams;return a.append("api-version",i),`/person/${n}/notifications/settings/?${String(a)}`}}},OP=(r,e,t)=>[RP(r,e),t],NP=(r,e,t="json")=>(i,n)=>r[t](...OP(e,i,n)),UP=NP;class FP{get Version(){return tt}constructor(e,t){this._client=e,this._method=t}getAll(e,...t){return AP(this._client,e,this._method)(...t)}getById(e,...t){return wP(this._client,e,this._method)(...t)}setSeenByUser(e,...t){return kP(this._client,e,this._method)(...t)}create(e,...t){return MP(this._client,e,this._method)(...t)}delete(e,...t){return $P(this._client,e,this._method)(...t)}getSettings(e,...t){return UP(this._client,e,this._method)(...t)}updateSettings(e,...t){return IP(this._client,e,this._method)(...t)}}var Nd=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};class BP{constructor({createClient:e}){this._createClientFn=e}createNotificationClient(e){return Nd(this,void 0,void 0,function*(){const t=yield this._createClientFn("notification");return new FP(t,e)})}createBookmarksClient(e){return Nd(this,void 0,void 0,function*(){const t=yield this._createClientFn("bookmarks");return new _P(t,e)})}createContextClient(e){return Nd(this,void 0,void 0,function*(){const t=yield this._createClientFn("context");return new RE(t,e)})}}var oz=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const jP="services",qP=(r,e)=>t=>oz(void 0,void 0,void 0,function*(){if(r.hasClient(t))return r.createClient(t);if(e)return e.createClient(t);throw Error(`failed to create http client for service ${t}`)}),GP={name:jP,configure:()=>new vE,initialize:({ref:r,config:e,requireInstance:t,hasModule:i})=>oz(void 0,void 0,void 0,function*(){if(!e.createClient){const n=yield t("http"),a=i("serviceDiscovery")?yield t("serviceDiscovery"):r==null?void 0:r.serviceDiscovery;e.createClient=qP(n,a)}if(!e.createClient)throw Error("missing configuration for creating API client");return new BP(e)})},KP=GP;class WP extends zC{constructor(){super([HC,W_,r6,uE,KP,aE]),this.logger=new t_("FrameworkConfigurator")}configureHttp(...e){this.addConfig(IC(...e))}configureHttpClient(...e){this.addConfig($_(...e))}configureMsal(...e){this.addConfig(QH(...e))}configureServiceDiscovery(e){this.configureHttpClient("service_discovery",e.client)}}var YP=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const QP=(r,e)=>YP(void 0,void 0,void 0,function*(){const t=yield r.initialize(e),i={modules:t};return window.Fusion=i,t.event.dispatchEvent("onFrameworkLoaded",{detail:i}),i}),sz=k.createContext(null),XP=sz.Provider;var JP=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const ZP=r=>k.lazy(()=>JP(void 0,void 0,void 0,function*(){const e=new WP;yield r(e);const t=yield QP(e);return{default:({children:i})=>G(XP,Object.assign({value:t},{children:i}))}})),Ra=()=>{let r=k.useContext(sz);return r||console.warn("could not locate fusion in context!"),r??(r=window.Fusion),r||console.error("Could not load framework, might not be initiated?"),r},eA=r=>{const e=k.useMemo(()=>ZP(r.configure),[r.configure]);return G(k.Suspense,Object.assign({fallback:r.fallback},{children:G(e,{children:r.children})}))};function Re(){return Re=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},Re.apply(this,arguments)}function no(r){return no=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},no(r)}function Ud(r){return r&&no(r)==="object"&&r.constructor===Object}function cz(r,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{clone:!0},i=t.clone?Re({},r):r;return Ud(r)&&Ud(e)&&Object.keys(e).forEach(function(n){n!=="__proto__"&&(Ud(e[n])&&n in r?i[n]=cz(r[n],e[n],t):i[n]=e[n])}),i}function tA(r,e){if(no(r)!=="object"||r===null)return r;var t=r[Symbol.toPrimitive];if(t!==void 0){var i=t.call(r,e||"default");if(no(i)!=="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(r)}function rA(r){var e=tA(r,"string");return no(e)==="symbol"?e:String(e)}var iA=typeof Symbol=="function"&&Symbol.for;const lz=iA?Symbol.for("mui.nested"):"__THEME_NESTED__";var nA=["checked","disabled","error","focused","focusVisible","required","expanded","selected"];function aA(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.disableGlobal,t=e===void 0?!1:e,i=r.productionPrefix,n=i===void 0?"jss":i,a=r.seed,o=a===void 0?"":a,s=o===""?"":"".concat(o,"-"),c=0,l=function(){return c+=1,c};return function(h,d){var u=d.options.name;if(u&&u.indexOf("Mui")===0&&!d.options.link&&!t){if(nA.indexOf(h.key)!==-1)return"Mui-".concat(h.key);var v="".concat(s).concat(u,"-").concat(h.key);return!d.options.theme[lz]||o!==""?v:"".concat(v,"-").concat(l())}return"".concat(s).concat(n).concat(l())}}var e9=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},nl=(typeof window>"u"?"undefined":e9(window))==="object"&&(typeof document>"u"?"undefined":e9(document))==="object"&&document.nodeType===9;function t9(r,e){for(var t=0;t<e.length;t++){var i=e[t];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(r,rA(i.key),i)}}function hz(r,e,t){return e&&t9(r.prototype,e),t&&t9(r,t),Object.defineProperty(r,"prototype",{writable:!1}),r}function au(r,e){return au=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(i,n){return i.__proto__=n,i},au(r,e)}function dz(r,e){r.prototype=Object.create(e.prototype),r.prototype.constructor=r,au(r,e)}function r9(r){if(r===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return r}function uz(r,e){if(r==null)return{};var t={},i=Object.keys(r),n,a;for(a=0;a<i.length;a++)n=i[a],!(e.indexOf(n)>=0)&&(t[n]=r[n]);return t}var oA={}.constructor;function ou(r){if(r==null||typeof r!="object")return r;if(Array.isArray(r))return r.map(ou);if(r.constructor!==oA)return r;var e={};for(var t in r)e[t]=ou(r[t]);return e}function _6(r,e,t){r===void 0&&(r="unnamed");var i=t.jss,n=ou(e),a=i.plugins.onCreateRule(r,n,t);return a||(r[0],null)}var i9=function(e,t){for(var i="",n=0;n<e.length&&e[n]!=="!important";n++)i&&(i+=t),i+=e[n];return i},xa=function(e){if(!Array.isArray(e))return e;var t="";if(Array.isArray(e[0]))for(var i=0;i<e.length&&e[i]!=="!important";i++)t&&(t+=", "),t+=i9(e[i]," ");else t=i9(e,", ");return e[e.length-1]==="!important"&&(t+=" !important"),t};function Ro(r){return r&&r.format===!1?{linebreak:"",space:""}:{linebreak:`
|
|
74
74
|
`,space:" "}}function is(r,e){for(var t="",i=0;i<e;i++)t+=" ";return t+r}function Sc(r,e,t){t===void 0&&(t={});var i="";if(!e)return i;var n=t,a=n.indent,o=a===void 0?0:a,s=e.fallbacks;t.format===!1&&(o=-1/0);var c=Ro(t),l=c.linebreak,h=c.space;if(r&&o++,s)if(Array.isArray(s))for(var d=0;d<s.length;d++){var u=s[d];for(var v in u){var m=u[v];m!=null&&(i&&(i+=l),i+=is(v+":"+h+xa(m)+";",o))}}else for(var f in s){var C=s[f];C!=null&&(i&&(i+=l),i+=is(f+":"+h+xa(C)+";",o))}for(var _ in e){var p=e[_];p!=null&&_!=="fallbacks"&&(i&&(i+=l),i+=is(_+":"+h+xa(p)+";",o))}return!i&&!t.allowEmpty||!r?i:(o--,i&&(i=""+l+i+l),is(""+r+h+"{"+i,o)+is("}",o))}var sA=/([[\].#*$><+~=|^:(),"'`\s])/g,n9=typeof CSS<"u"&&CSS.escape,z6=function(r){return n9?n9(r):r.replace(sA,"\\$1")},vz=function(){function r(t,i,n){this.type="style",this.isProcessed=!1;var a=n.sheet,o=n.Renderer;this.key=t,this.options=n,this.style=i,a?this.renderer=a.renderer:o&&(this.renderer=new o)}var e=r.prototype;return e.prop=function(i,n,a){if(n===void 0)return this.style[i];var o=a?a.force:!1;if(!o&&this.style[i]===n)return this;var s=n;(!a||a.process!==!1)&&(s=this.options.jss.plugins.onChangeValue(n,i,this));var c=s==null||s===!1,l=i in this.style;if(c&&!l&&!o)return this;var h=c&&l;if(h?delete this.style[i]:this.style[i]=s,this.renderable&&this.renderer)return h?this.renderer.removeProperty(this.renderable,i):this.renderer.setProperty(this.renderable,i,s),this;var d=this.options.sheet;return d&&d.attached,this},r}(),su=function(r){dz(e,r);function e(i,n,a){var o;o=r.call(this,i,n,a)||this;var s=a.selector,c=a.scoped,l=a.sheet,h=a.generateId;return s?o.selectorText=s:c!==!1&&(o.id=h(r9(r9(o)),l),o.selectorText="."+z6(o.id)),o}var t=e.prototype;return t.applyTo=function(n){var a=this.renderer;if(a){var o=this.toJSON();for(var s in o)a.setProperty(n,s,o[s])}return this},t.toJSON=function(){var n={};for(var a in this.style){var o=this.style[a];typeof o!="object"?n[a]=o:Array.isArray(o)&&(n[a]=xa(o))}return n},t.toString=function(n){var a=this.options.sheet,o=a?a.options.link:!1,s=o?Re({},n,{allowEmpty:!0}):n;return Sc(this.selectorText,this.style,s)},hz(e,[{key:"selector",set:function(n){if(n!==this.selectorText){this.selectorText=n;var a=this.renderer,o=this.renderable;if(!(!o||!a)){var s=a.setSelector(o,n);s||a.replaceRule(o,this)}}},get:function(){return this.selectorText}}]),e}(vz),cA={onCreateRule:function(e,t,i){return e[0]==="@"||i.parent&&i.parent.type==="keyframes"?null:new su(e,t,i)}},Fd={indent:1,children:!0},lA=/@([\w-]+)/,hA=function(){function r(t,i,n){this.type="conditional",this.isProcessed=!1,this.key=t;var a=t.match(lA);this.at=a?a[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new C4(Re({},n,{parent:this}));for(var o in i)this.rules.add(o,i[o]);this.rules.process()}var e=r.prototype;return e.getRule=function(i){return this.rules.get(i)},e.indexOf=function(i){return this.rules.indexOf(i)},e.addRule=function(i,n,a){var o=this.rules.add(i,n,a);return o?(this.options.jss.plugins.onProcessRule(o),o):null},e.replaceRule=function(i,n,a){var o=this.rules.replace(i,n,a);return o&&this.options.jss.plugins.onProcessRule(o),o},e.toString=function(i){i===void 0&&(i=Fd);var n=Ro(i),a=n.linebreak;if(i.indent==null&&(i.indent=Fd.indent),i.children==null&&(i.children=Fd.children),i.children===!1)return this.query+" {}";var o=this.rules.toString(i);return o?this.query+" {"+a+o+a+"}":""},r}(),dA=/@media|@supports\s+/,uA={onCreateRule:function(e,t,i){return dA.test(e)?new hA(e,t,i):null}},Bd={indent:1,children:!0},vA=/@keyframes\s+([\w-]+)/,cu=function(){function r(t,i,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var a=t.match(vA);a&&a[1]?this.name=a[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,s=n.sheet,c=n.generateId;this.id=o===!1?this.name:z6(c(this,s)),this.rules=new C4(Re({},n,{parent:this}));for(var l in i)this.rules.add(l,i[l],Re({},n,{parent:this}));this.rules.process()}var e=r.prototype;return e.toString=function(i){i===void 0&&(i=Bd);var n=Ro(i),a=n.linebreak;if(i.indent==null&&(i.indent=Bd.indent),i.children==null&&(i.children=Bd.children),i.children===!1)return this.at+" "+this.id+" {}";var o=this.rules.toString(i);return o&&(o=""+a+o+a),this.at+" "+this.id+" {"+o+"}"},r}(),mA=/@keyframes\s+/,fA=/\$([\w-]+)/g,lu=function(e,t){return typeof e=="string"?e.replace(fA,function(i,n){return n in t?t[n]:i}):e},a9=function(e,t,i){var n=e[t],a=lu(n,i);a!==n&&(e[t]=a)},pA={onCreateRule:function(e,t,i){return typeof e=="string"&&mA.test(e)?new cu(e,t,i):null},onProcessStyle:function(e,t,i){return t.type!=="style"||!i||("animation-name"in e&&a9(e,"animation-name",i.keyframes),"animation"in e&&a9(e,"animation",i.keyframes)),e},onChangeValue:function(e,t,i){var n=i.options.sheet;if(!n)return e;switch(t){case"animation":return lu(e,n.keyframes);case"animation-name":return lu(e,n.keyframes);default:return e}}},gA=function(r){dz(e,r);function e(){return r.apply(this,arguments)||this}var t=e.prototype;return t.toString=function(n){var a=this.options.sheet,o=a?a.options.link:!1,s=o?Re({},n,{allowEmpty:!0}):n;return Sc(this.key,this.style,s)},e}(vz),_A={onCreateRule:function(e,t,i){return i.parent&&i.parent.type==="keyframes"?new gA(e,t,i):null}},zA=function(){function r(t,i,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=t,this.style=i,this.options=n}var e=r.prototype;return e.toString=function(i){var n=Ro(i),a=n.linebreak;if(Array.isArray(this.style)){for(var o="",s=0;s<this.style.length;s++)o+=Sc(this.at,this.style[s]),this.style[s+1]&&(o+=a);return o}return Sc(this.at,this.style,i)},r}(),yA=/@font-face/,wA={onCreateRule:function(e,t,i){return yA.test(e)?new zA(e,t,i):null}},bA=function(){function r(t,i,n){this.type="viewport",this.at="@viewport",this.isProcessed=!1,this.key=t,this.style=i,this.options=n}var e=r.prototype;return e.toString=function(i){return Sc(this.key,this.style,i)},r}(),xA={onCreateRule:function(e,t,i){return e==="@viewport"||e==="@-ms-viewport"?new bA(e,t,i):null}},MA=function(){function r(t,i,n){this.type="simple",this.isProcessed=!1,this.key=t,this.value=i,this.options=n}var e=r.prototype;return e.toString=function(i){if(Array.isArray(this.value)){for(var n="",a=0;a<this.value.length;a++)n+=this.key+" "+this.value[a]+";",this.value[a+1]&&(n+=`
|
|
75
75
|
`);return n}return this.key+" "+this.value+";"},r}(),CA={"@charset":!0,"@import":!0,"@namespace":!0},HA={onCreateRule:function(e,t,i){return e in CA?new MA(e,t,i):null}},o9=[cA,uA,pA,_A,wA,xA,HA],kA={process:!0},s9={force:!0,process:!0},C4=function(){function r(t){this.map={},this.raw={},this.index=[],this.counter=0,this.options=t,this.classes=t.classes,this.keyframes=t.keyframes}var e=r.prototype;return e.add=function(i,n,a){var o=this.options,s=o.parent,c=o.sheet,l=o.jss,h=o.Renderer,d=o.generateId,u=o.scoped,v=Re({classes:this.classes,parent:s,sheet:c,jss:l,Renderer:h,generateId:d,scoped:u,name:i,keyframes:this.keyframes,selector:void 0},a),m=i;i in this.raw&&(m=i+"-d"+this.counter++),this.raw[m]=n,m in this.classes&&(v.selector="."+z6(this.classes[m]));var f=_6(m,n,v);if(!f)return null;this.register(f);var C=v.index===void 0?this.index.length:v.index;return this.index.splice(C,0,f),f},e.replace=function(i,n,a){var o=this.get(i),s=this.index.indexOf(o);o&&this.remove(o);var c=a;return s!==-1&&(c=Re({},a,{index:s})),this.add(i,n,c)},e.get=function(i){return this.map[i]},e.remove=function(i){this.unregister(i),delete this.raw[i.key],this.index.splice(this.index.indexOf(i),1)},e.indexOf=function(i){return this.index.indexOf(i)},e.process=function(){var i=this.options.jss.plugins;this.index.slice(0).forEach(i.onProcessRule,i)},e.register=function(i){this.map[i.key]=i,i instanceof su?(this.map[i.selector]=i,i.id&&(this.classes[i.key]=i.id)):i instanceof cu&&this.keyframes&&(this.keyframes[i.name]=i.id)},e.unregister=function(i){delete this.map[i.key],i instanceof su?(delete this.map[i.selector],delete this.classes[i.key]):i instanceof cu&&delete this.keyframes[i.name]},e.update=function(){var i,n,a;if(typeof(arguments.length<=0?void 0:arguments[0])=="string"?(i=arguments.length<=0?void 0:arguments[0],n=arguments.length<=1?void 0:arguments[1],a=arguments.length<=2?void 0:arguments[2]):(n=arguments.length<=0?void 0:arguments[0],a=arguments.length<=1?void 0:arguments[1],i=null),i)this.updateOne(this.get(i),n,a);else for(var o=0;o<this.index.length;o++)this.updateOne(this.index[o],n,a)},e.updateOne=function(i,n,a){a===void 0&&(a=kA);var o=this.options,s=o.jss.plugins,c=o.sheet;if(i.rules instanceof r){i.rules.update(n,a);return}var l=i.style;if(s.onUpdate(n,i,c,a),a.process&&l&&l!==i.style){s.onProcessStyle(i.style,i,c);for(var h in i.style){var d=i.style[h],u=l[h];d!==u&&i.prop(h,d,s9)}for(var v in l){var m=i.style[v],f=l[v];m==null&&m!==f&&i.prop(v,null,s9)}}},e.toString=function(i){for(var n="",a=this.options.sheet,o=a?a.options.link:!1,s=Ro(i),c=s.linebreak,l=0;l<this.index.length;l++){var h=this.index[l],d=h.toString(i);!d&&!o||(n&&(n+=c),n+=d)}return n},r}(),mz=function(){function r(t,i){this.attached=!1,this.deployed=!1,this.classes={},this.keyframes={},this.options=Re({},i,{sheet:this,parent:this,classes:this.classes,keyframes:this.keyframes}),i.Renderer&&(this.renderer=new i.Renderer(this)),this.rules=new C4(this.options);for(var n in t)this.rules.add(n,t[n]);this.rules.process()}var e=r.prototype;return e.attach=function(){return this.attached?this:(this.renderer&&this.renderer.attach(),this.attached=!0,this.deployed||this.deploy(),this)},e.detach=function(){return this.attached?(this.renderer&&this.renderer.detach(),this.attached=!1,this):this},e.addRule=function(i,n,a){var o=this.queue;this.attached&&!o&&(this.queue=[]);var s=this.rules.add(i,n,a);return s?(this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&(o?o.push(s):(this.insertRule(s),this.queue&&(this.queue.forEach(this.insertRule,this),this.queue=void 0))),s):(this.deployed=!1,s)):null},e.replaceRule=function(i,n,a){var o=this.rules.get(i);if(!o)return this.addRule(i,n,a);var s=this.rules.replace(i,n,a);return s&&this.options.jss.plugins.onProcessRule(s),this.attached?(this.deployed&&this.renderer&&(s?o.renderable&&this.renderer.replaceRule(o.renderable,s):this.renderer.deleteRule(o)),s):(this.deployed=!1,s)},e.insertRule=function(i){this.renderer&&this.renderer.insertRule(i)},e.addRules=function(i,n){var a=[];for(var o in i){var s=this.addRule(o,i[o],n);s&&a.push(s)}return a},e.getRule=function(i){return this.rules.get(i)},e.deleteRule=function(i){var n=typeof i=="object"?i:this.rules.get(i);return!n||this.attached&&!n.renderable?!1:(this.rules.remove(n),this.attached&&n.renderable&&this.renderer?this.renderer.deleteRule(n.renderable):!0)},e.indexOf=function(i){return this.rules.indexOf(i)},e.deploy=function(){return this.renderer&&this.renderer.deploy(),this.deployed=!0,this},e.update=function(){var i;return(i=this.rules).update.apply(i,arguments),this},e.updateOne=function(i,n,a){return this.rules.updateOne(i,n,a),this},e.toString=function(i){return this.rules.toString(i)},r}(),EA=function(){function r(){this.plugins={internal:[],external:[]},this.registry={}}var e=r.prototype;return e.onCreateRule=function(i,n,a){for(var o=0;o<this.registry.onCreateRule.length;o++){var s=this.registry.onCreateRule[o](i,n,a);if(s)return s}return null},e.onProcessRule=function(i){if(!i.isProcessed){for(var n=i.options.sheet,a=0;a<this.registry.onProcessRule.length;a++)this.registry.onProcessRule[a](i,n);i.style&&this.onProcessStyle(i.style,i,n),i.isProcessed=!0}},e.onProcessStyle=function(i,n,a){for(var o=0;o<this.registry.onProcessStyle.length;o++)n.style=this.registry.onProcessStyle[o](n.style,n,a)},e.onProcessSheet=function(i){for(var n=0;n<this.registry.onProcessSheet.length;n++)this.registry.onProcessSheet[n](i)},e.onUpdate=function(i,n,a,o){for(var s=0;s<this.registry.onUpdate.length;s++)this.registry.onUpdate[s](i,n,a,o)},e.onChangeValue=function(i,n,a){for(var o=i,s=0;s<this.registry.onChangeValue.length;s++)o=this.registry.onChangeValue[s](o,n,a);return o},e.use=function(i,n){n===void 0&&(n={queue:"external"});var a=this.plugins[n.queue];a.indexOf(i)===-1&&(a.push(i),this.registry=[].concat(this.plugins.external,this.plugins.internal).reduce(function(o,s){for(var c in s)c in o&&o[c].push(s[c]);return o},{onCreateRule:[],onProcessRule:[],onProcessStyle:[],onProcessSheet:[],onChangeValue:[],onUpdate:[]}))},r}(),PA=function(){function r(){this.registry=[]}var e=r.prototype;return e.add=function(i){var n=this.registry,a=i.options.index;if(n.indexOf(i)===-1){if(n.length===0||a>=this.index){n.push(i);return}for(var o=0;o<n.length;o++)if(n[o].options.index>a){n.splice(o,0,i);return}}},e.reset=function(){this.registry=[]},e.remove=function(i){var n=this.registry.indexOf(i);this.registry.splice(n,1)},e.toString=function(i){for(var n=i===void 0?{}:i,a=n.attached,o=uz(n,["attached"]),s=Ro(o),c=s.linebreak,l="",h=0;h<this.registry.length;h++){var d=this.registry[h];a!=null&&d.attached!==a||(l&&(l+=c),l+=d.toString(o))}return l},hz(r,[{key:"index",get:function(){return this.registry.length===0?0:this.registry[this.registry.length-1].options.index}}]),r}(),Qs=new PA,hu=typeof globalThis<"u"?globalThis:typeof window<"u"&&window.Math===Math?window:typeof self<"u"&&self.Math===Math?self:Function("return this")(),du="2f1acc6c3a606b082e5eef5e54414ffb";hu[du]==null&&(hu[du]=0);var c9=hu[du]++,l9=function(e){e===void 0&&(e={});var t=0,i=function(a,o){t+=1;var s="",c="";return o&&(o.options.classNamePrefix&&(c=o.options.classNamePrefix),o.options.jss.id!=null&&(s=String(o.options.jss.id))),e.minify?""+(c||"c")+c9+s+t:c+a.key+"-"+c9+(s?"-"+s:"")+"-"+t};return i},fz=function(e){var t;return function(){return t||(t=e()),t}},AA=function(e,t){try{return e.attributeStyleMap?e.attributeStyleMap.get(t):e.style.getPropertyValue(t)}catch{return""}},VA=function(e,t,i){try{var n=i;if(Array.isArray(i)&&(n=xa(i)),e.attributeStyleMap)e.attributeStyleMap.set(t,n);else{var a=n?n.indexOf("!important"):-1,o=a>-1?n.substr(0,a-1):n;e.style.setProperty(t,o,a>-1?"important":"")}}catch{return!1}return!0},SA=function(e,t){try{e.attributeStyleMap?e.attributeStyleMap.delete(t):e.style.removeProperty(t)}catch{}},$A=function(e,t){return e.selectorText=t,e.selectorText===t},pz=fz(function(){return document.querySelector("head")});function DA(r,e){for(var t=0;t<r.length;t++){var i=r[t];if(i.attached&&i.options.index>e.index&&i.options.insertionPoint===e.insertionPoint)return i}return null}function LA(r,e){for(var t=r.length-1;t>=0;t--){var i=r[t];if(i.attached&&i.options.insertionPoint===e.insertionPoint)return i}return null}function TA(r){for(var e=pz(),t=0;t<e.childNodes.length;t++){var i=e.childNodes[t];if(i.nodeType===8&&i.nodeValue.trim()===r)return i}return null}function IA(r){var e=Qs.registry;if(e.length>0){var t=DA(e,r);if(t&&t.renderer)return{parent:t.renderer.element.parentNode,node:t.renderer.element};if(t=LA(e,r),t&&t.renderer)return{parent:t.renderer.element.parentNode,node:t.renderer.element.nextSibling}}var i=r.insertionPoint;if(i&&typeof i=="string"){var n=TA(i);if(n)return{parent:n.parentNode,node:n.nextSibling}}return!1}function RA(r,e){var t=e.insertionPoint,i=IA(e);if(i!==!1&&i.parent){i.parent.insertBefore(r,i.node);return}if(t&&typeof t.nodeType=="number"){var n=t,a=n.parentNode;a&&a.insertBefore(r,n.nextSibling);return}pz().appendChild(r)}var OA=fz(function(){var r=document.querySelector('meta[property="csp-nonce"]');return r?r.getAttribute("content"):null}),h9=function(e,t,i){try{"insertRule"in e?e.insertRule(t,i):"appendRule"in e&&e.appendRule(t)}catch{return!1}return e.cssRules[i]},d9=function(e,t){var i=e.cssRules.length;return t===void 0||t>i?i:t},NA=function(){var e=document.createElement("style");return e.textContent=`
|
|
76
76
|
`,e},UA=function(){function r(t){this.getPropertyValue=AA,this.setProperty=VA,this.removeProperty=SA,this.setSelector=$A,this.hasInsertedRules=!1,this.cssRules=[],t&&Qs.add(t),this.sheet=t;var i=this.sheet?this.sheet.options:{},n=i.media,a=i.meta,o=i.element;this.element=o||NA(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),a&&this.element.setAttribute("data-meta",a);var s=OA();s&&this.element.setAttribute("nonce",s)}var e=r.prototype;return e.attach=function(){if(!(this.element.parentNode||!this.sheet)){RA(this.element,this.sheet.options);var i=!!(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&i&&(this.hasInsertedRules=!1,this.deploy())}},e.detach=function(){if(this.sheet){var i=this.element.parentNode;i&&i.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent=`
|
|
@@ -82,8 +82,8 @@ Error Description: `+c.message)),[2,null];case 4:return i||(this.logger.warning(
|
|
|
82
82
|
* @copyright Oleg Isonen (Slobodskoi) / Isonen 2014-present
|
|
83
83
|
* @website https://github.com/cssinjs/jss
|
|
84
84
|
* @license MIT
|
|
85
|
-
*/gz();var zz=Date.now(),jd="fnValues"+zz,qd="fnStyle"+ ++zz,jA=function(){return{onCreateRule:function(t,i,n){if(typeof i!="function")return null;var a=_6(t,{},n);return a[qd]=i,a},onProcessStyle:function(t,i){if(jd in i||qd in i)return t;var n={};for(var a in t){var o=t[a];typeof o=="function"&&(delete t[a],n[a]=o)}return i[jd]=n,t},onUpdate:function(t,i,n,a){var o=i,s=o[qd];s&&(o.style=s(t)||{});var c=o[jd];if(c)for(var l in c)o.prop(l,c[l](t),a)}}};const qA=jA;var
|
|
86
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uV(r){return cV(r)||lV(r)||hV(r)||dV()}var Es="",mu="",xz="",Mz="",vV=nl&&"ontouchstart"in document.documentElement;if(nl){var Kd={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},mV=document.createElement("p"),Wd=mV.style,fV="Transform";for(var Yd in Kd)if(Yd+fV in Wd){Es=Yd,mu=Kd[Yd];break}Es==="Webkit"&&"msHyphens"in Wd&&(Es="ms",mu=Kd.ms,Mz="edge"),Es==="Webkit"&&"-apple-trailing-word"in Wd&&(xz="apple")}var me={js:Es,css:mu,vendor:xz,browser:Mz,isTouch:vV};function pV(r){return r[1]==="-"||me.js==="ms"?r:"@"+me.css+"keyframes"+r.substr(10)}var gV={noPrefill:["appearance"],supportedProperty:function(e){return e!=="appearance"?!1:me.js==="ms"?"-webkit-"+e:me.css+e}},_V={noPrefill:["color-adjust"],supportedProperty:function(e){return e!=="color-adjust"?!1:me.js==="Webkit"?me.css+"print-"+e:e}},zV=/[-\s]+(.)?/g;function yV(r,e){return e?e.toUpperCase():""}function w6(r){return r.replace(zV,yV)}function Sn(r){return w6("-"+r)}var wV={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if(me.js==="Webkit"){var i="mask-image";if(w6(i)in t)return e;if(me.js+Sn(i)in t)return me.css+e}return e}},bV={noPrefill:["text-orientation"],supportedProperty:function(e){return e!=="text-orientation"?!1:me.vendor==="apple"&&!me.isTouch?me.css+e:e}},xV={noPrefill:["transform"],supportedProperty:function(e,t,i){return e!=="transform"?!1:i.transform?e:me.css+e}},MV={noPrefill:["transition"],supportedProperty:function(e,t,i){return e!=="transition"?!1:i.transition?e:me.css+e}},CV={noPrefill:["writing-mode"],supportedProperty:function(e){return e!=="writing-mode"?!1:me.js==="Webkit"||me.js==="ms"&&me.browser!=="edge"?me.css+e:e}},HV={noPrefill:["user-select"],supportedProperty:function(e){return e!=="user-select"?!1:me.js==="Moz"||me.js==="ms"||me.vendor==="apple"?me.css+e:e}},kV={supportedProperty:function(e,t){if(!/^break-/.test(e))return!1;if(me.js==="Webkit"){var i="WebkitColumn"+Sn(e);return i in t?me.css+"column-"+e:!1}if(me.js==="Moz"){var n="page"+Sn(e);return n in t?"page-"+e:!1}return!1}},EV={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if(me.js==="Moz")return e;var i=e.replace("-inline","");return me.js+Sn(i)in t?me.css+i:!1}},PV={supportedProperty:function(e,t){return w6(e)in t?e:!1}},AV={supportedProperty:function(e,t){var i=Sn(e);return e[0]==="-"||e[0]==="-"&&e[1]==="-"?e:me.js+i in t?me.css+e:me.js!=="Webkit"&&"Webkit"+i in t?"-webkit-"+e:!1}},VV={supportedProperty:function(e){return e.substring(0,11)!=="scroll-snap"?!1:me.js==="ms"?""+me.css+e:e}},SV={supportedProperty:function(e){return e!=="overscroll-behavior"?!1:me.js==="ms"?me.css+"scroll-chaining":e}},$V={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},DV={supportedProperty:function(e,t){var i=$V[e];return i&&me.js+Sn(i)in t?me.css+i:!1}},Cz={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},LV=Object.keys(Cz),TV=function(e){return me.css+e},IV={supportedProperty:function(e,t,i){var n=i.multiple;if(LV.indexOf(e)>-1){var a=Cz[e];if(!Array.isArray(a))return me.js+Sn(a)in t?me.css+a:!1;if(!n)return!1;for(var o=0;o<a.length;o++)if(!(me.js+Sn(a[0])in t))return!1;return a.map(TV)}return!1}},Hz=[gV,_V,wV,bV,xV,MV,CV,HV,kV,EV,PV,AV,VV,SV,DV,IV],v9=Hz.filter(function(r){return r.supportedProperty}).map(function(r){return r.supportedProperty}),RV=Hz.filter(function(r){return r.noPrefill}).reduce(function(r,e){return r.push.apply(r,uV(e.noPrefill)),r},[]),Ps,va={};if(nl){Ps=document.createElement("p");var Qd=window.getComputedStyle(document.documentElement,"");for(var Xd in Qd)isNaN(Xd)||(va[Qd[Xd]]=Qd[Xd]);RV.forEach(function(r){return delete va[r]})}function fu(r,e){if(e===void 0&&(e={}),!Ps)return r;if(va[r]!=null)return va[r];(r==="transition"||r==="transform")&&(e[r]=r in Ps.style);for(var t=0;t<v9.length&&(va[r]=v9[t](r,Ps.style,e),!va[r]);t++);try{Ps.style[r]=""}catch{return!1}return va[r]}var Xa={},OV={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},NV=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,Xi;function UV(r,e,t){if(e==="var")return"var";if(e==="all")return"all";if(t==="all")return", all";var i=e?fu(e):", "+fu(t);return i||e||t}nl&&(Xi=document.createElement("p"));function m9(r,e){var t=e;if(!Xi||r==="content")return e;if(typeof t!="string"||!isNaN(parseInt(t,10)))return t;var i=r+t;if(Xa[i]!=null)return Xa[i];try{Xi.style[r]=t}catch{return Xa[i]=!1,!1}if(OV[r])t=t.replace(NV,UV);else if(Xi.style[r]===""&&(t=me.css+t,t==="-ms-flex"&&(Xi.style[r]="-ms-flexbox"),Xi.style[r]=t,Xi.style[r]===""))return Xa[i]=!1,!1;return Xi.style[r]="",Xa[i]=t,Xa[i]}function FV(){function r(n){if(n.type==="keyframes"){var a=n;a.at=pV(a.at)}}function e(n){for(var a in n){var o=n[a];if(a==="fallbacks"&&Array.isArray(o)){n[a]=o.map(e);continue}var s=!1,c=fu(a);c&&c!==a&&(s=!0);var l=!1,h=m9(c,xa(o));h&&h!==o&&(l=!0),(s||l)&&(s&&delete n[a],n[c||a]=h||o)}return n}function t(n,a){return a.type!=="style"?n:e(n)}function i(n,a){return m9(a,xa(n))||n}return{onProcessRule:r,onProcessStyle:t,onChangeValue:i}}function BV(){var r=function(t,i){return t.length===i.length?t>i?1:-1:t.length-i.length};return{onProcessStyle:function(t,i){if(i.type!=="style")return t;for(var n={},a=Object.keys(t).sort(r),o=0;o<a.length;o++)n[a[o]]=t[a[o]];return n}}}function jV(){return{plugins:[qA(),XA(),eV(),nV(),sV(),typeof window>"u"?null:FV(),BV()]}}function qV(r,e){if(r==null)return{};var t=uz(r,e),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);for(n=0;n<a.length;n++)i=a[n],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(r,i)&&(t[i]=r[i])}return t}function kz(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.baseClasses,t=r.newClasses;if(r.Component,!t)return e;var i=Re({},e);return Object.keys(t).forEach(function(n){t[n]&&(i[n]="".concat(e[n]," ").concat(t[n]))}),i}var GV={set:function(e,t,i,n){var a=e.get(t);a||(a=new Map,e.set(t,a)),a.set(i,n)},get:function(e,t,i){var n=e.get(t);return n?n.get(i):void 0},delete:function(e,t,i){var n=e.get(t);n.delete(i)}};const H2=GV;var KV=S1.createContext(null);const Ez=KV;function Pz(){var r=S1.useContext(Ez);return r}var WV=gz(jV()),YV=aA(),QV=new Map,XV={disableGeneration:!1,generateClassName:YV,jss:WV,sheetsCache:null,sheetsManager:QV,sheetsRegistry:null},JV=S1.createContext(XV),f9=-1e9;function ZV(){return f9+=1,f9}var eS={};const tS=eS;function rS(r){var e=typeof r=="function";return{create:function(i,n){var a;try{a=e?r(i):r}catch(c){throw c}if(!n||!i.overrides||!i.overrides[n])return a;var o=i.overrides[n],s=Re({},a);return Object.keys(o).forEach(function(c){s[c]=cz(s[c],o[c])}),s},options:{}}}function iS(r,e,t){var i=r.state,n=r.stylesOptions;if(n.disableGeneration)return e||{};i.cacheClasses||(i.cacheClasses={value:null,lastProp:null,lastJSS:{}});var a=!1;return i.classes!==i.cacheClasses.lastJSS&&(i.cacheClasses.lastJSS=i.classes,a=!0),e!==i.cacheClasses.lastProp&&(i.cacheClasses.lastProp=e,a=!0),a&&(i.cacheClasses.value=kz({baseClasses:i.cacheClasses.lastJSS,newClasses:e,Component:t})),i.cacheClasses.value}function nS(r,e){var t=r.state,i=r.theme,n=r.stylesOptions,a=r.stylesCreator,o=r.name;if(!n.disableGeneration){var s=H2.get(n.sheetsManager,a,i);s||(s={refs:0,staticSheet:null,dynamicStyles:null},H2.set(n.sheetsManager,a,i,s));var c=Re({},a.options,n,{theme:i,flip:typeof n.flip=="boolean"?n.flip:i.direction==="rtl"});c.generateId=c.serverGenerateClassName||c.generateClassName;var l=n.sheetsRegistry;if(s.refs===0){var h;n.sheetsCache&&(h=H2.get(n.sheetsCache,a,i));var d=a.create(i,o);h||(h=n.jss.createStyleSheet(d,Re({link:!1},c)),h.attach(),n.sheetsCache&&H2.set(n.sheetsCache,a,i,h)),l&&l.add(h),s.staticSheet=h,s.dynamicStyles=_z(d)}if(s.dynamicStyles){var u=n.jss.createStyleSheet(s.dynamicStyles,Re({link:!0},c));u.update(e),u.attach(),t.dynamicSheet=u,t.classes=kz({baseClasses:s.staticSheet.classes,newClasses:u.classes}),l&&l.add(u)}else t.classes=s.staticSheet.classes;s.refs+=1}}function aS(r,e){var t=r.state;t.dynamicSheet&&t.dynamicSheet.update(e)}function oS(r){var e=r.state,t=r.theme,i=r.stylesOptions,n=r.stylesCreator;if(!i.disableGeneration){var a=H2.get(i.sheetsManager,n,t);a.refs-=1;var o=i.sheetsRegistry;a.refs===0&&(H2.delete(i.sheetsManager,n,t),i.jss.removeStyleSheet(a.staticSheet),o&&o.remove(a.staticSheet)),e.dynamicSheet&&(i.jss.removeStyleSheet(e.dynamicSheet),o&&o.remove(e.dynamicSheet))}}function sS(r,e){var t=S1.useRef([]),i,n=S1.useMemo(function(){return{}},e);t.current!==n&&(t.current=n,i=r()),S1.useEffect(function(){return function(){i&&i()}},[n])}function cS(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.name,i=e.classNamePrefix,n=e.Component,a=e.defaultTheme,o=a===void 0?tS:a,s=qV(e,["name","classNamePrefix","Component","defaultTheme"]),c=rS(r),l=t||i||"makeStyles";c.options={index:ZV(),name:t,meta:l,classNamePrefix:l};var h=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},v=Pz()||o,m=Re({},S1.useContext(JV),s),f=S1.useRef(),C=S1.useRef();sS(function(){var p={name:t,state:{},stylesCreator:c,stylesOptions:m,theme:v};return nS(p,u),C.current=!1,f.current=p,function(){oS(p)}},[v,c]),S1.useEffect(function(){C.current&&aS(f.current,u),C.current=!0});var _=iS(f.current,u.classes,n);return _};return h}function Az(r){var e,t,i="";if(typeof r=="string"||typeof r=="number")i+=r;else if(typeof r=="object")if(Array.isArray(r))for(e=0;e<r.length;e++)r[e]&&(t=Az(r[e]))&&(i&&(i+=" "),i+=t);else for(e in r)r[e]&&(i&&(i+=" "),i+=e);return i}function T2(){for(var r,e,t=0,i="";t<arguments.length;)(r=arguments[t++])&&(e=Az(r))&&(i&&(i+=" "),i+=e);return i}function lS(r,e){if(typeof e=="function"){var t=e(r);return t}return Re({},r,e)}function hS(r){var e=r.children,t=r.theme,i=Pz(),n=S1.useMemo(function(){var a=i===null?t:lS(i,t);return a!=null&&(a[lz]=i!==null),a},[t,i]);return S1.createElement(Ez.Provider,{value:n},e)}const dS={jumbo__base:"88px",default__base:"48px",default__input:"56px"},uS={text:{static_icons__default:{hex:"#3d3d3d",hsla:"hsla(0, 0%, 23.9%, 1)",rgba:"rgba(61, 61, 61, 1)"},static_icons__secondary:{hex:"#565656",hsla:"hsla(0, 0%, 33.7%, 1)",rgba:"rgba(86, 86, 86, 1)"},static_icons__tertiary:{hex:"#6f6f6f",hsla:"hsla(0, 0%, 43.5%, 1)",rgba:"rgba(111, 111, 111, 1)"},static_icons__primary_white:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"}},ui:{background__default:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},background__semitransparent:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"rgba(255, 255, 255, 0.2)"},background__light:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"rgba(247, 247, 247, 1)"},background__scrim:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.4)",rgba:"rgba(0, 0, 0, 0.4)"},background__overlay:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.8)",rgba:"rgba(0, 0, 0, 0.8)"},background__medium:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"rgba(220, 220, 220, 1)"},background__info:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},background__warning:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"rgba(255, 231, 214, 1)"},background__danger:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"rgba(255, 193, 193, 1)"}},infographic:{substitute__purple_berry:{hex:"#8c1159",hsla:"hsla(325, 78.3%, 30.8%, 1)",rgba:"rgba(140, 17, 89, 1)"},substitute__pink_rose:{hex:"#e24973",hsla:"hsla(344, 72.5%, 58.6%, 1)",rgba:"rgba(226, 73, 115, 1)"},substitute__pink_salmon:{hex:"#ff92a8",hsla:"hsla(348, 100%, 78.6%, 1)",rgba:"rgba(255, 146, 168, 1)"},substitute__green_cucumber:{hex:"#005f57",hsla:"hsla(175, 100%, 18.6%, 1)",rgba:"rgba(0, 95, 87, 1)"},substitute__green_succulent:{hex:"#00977b",hsla:"hsla(169, 100%, 29.6%, 1)",rgba:"rgba(0, 151, 123, 1)"},substitute__green_mint:{hex:"#40d38f",hsla:"hsla(152, 62.6%, 53.9%, 1)",rgba:"rgba(64, 211, 143, 1)"},substitute__blue_ocean:{hex:"#004088",hsla:"hsla(212, 100%, 26.7%, 1)",rgba:"rgba(0, 64, 136, 1)"},substitute__blue_overcast:{hex:"#0084c4",hsla:"hsla(200, 100%, 38.4%, 1)",rgba:"rgba(0, 132, 196, 1)"},substitute__blue_sky:{hex:"#52c0ff",hsla:"hsla(202, 100%, 66.1%, 1)",rgba:"rgba(82, 192, 255, 1)"},primary__moss_green_100:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"rgba(0, 112, 121, 1)"},primary__moss_green_55:{hex:"#73b1b5",hsla:"hsla(184, 30.8%, 58%, 1)",rgba:"rgba(115, 177, 181, 1)"},primary__moss_green_34:{hex:"#a8ced1",hsla:"hsla(184, 30.8%, 73.9%, 1)",rgba:"rgba(168, 206, 209, 1)"},primary__moss_green_21:{hex:"#c9e0e2",hsla:"hsla(185, 30.1%, 83.7%, 1)",rgba:"rgba(201, 224, 226, 1)"},primary__moss_green_13:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"rgba(222, 237, 238, 1)"},primary__energy_red_100:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"rgba(235, 0, 55, 1)"},primary__energy_red_55:{hex:"#ff7d98",hsla:"hsla(348, 100%, 74.5%, 1)",rgba:"rgba(255, 125, 152, 1)"},primary__energy_red_34:{hex:"#ffaebf",hsla:"hsla(347, 100%, 84.1%, 1)",rgba:"rgba(255, 174, 191, 1)"},primary__energy_red_21:{hex:"#ffcdd7",hsla:"hsla(348, 100%, 90.2%, 1)",rgba:"rgba(255, 205, 215, 1)"},primary__energy_red_13:{hex:"#ffe0e7",hsla:"hsla(346, 100%, 93.9%, 1)",rgba:"rgba(255, 224, 231, 1)"},primary__weathered_red:{hex:"#7d0023",hsla:"hsla(343, 100%, 24.5%, 1)",rgba:"rgba(125, 0, 35, 1)"},primary__slate_blue:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"rgba(36, 55, 70, 1)"},primary__spruce_wood:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"rgba(255, 231, 214, 1)"},primary__mist_blue:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},primary__lichen_green:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"}},logo:{fill_positive:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"rgba(235, 0, 55, 1)"},fill_negative:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"}},interactive:{primary__selected_highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"},primary__selected_hover:{hex:"#c3f3d2",hsla:"hsla(139, 66.7%, 85.9%, 1)",rgba:"rgba(195, 243, 210, 1)"},primary__resting:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"rgba(0, 112, 121, 1)"},primary__hover:{hex:"#004f55",hsla:"hsla(184, 100%, 16.7%, 1)",rgba:"rgba(0, 79, 85, 1)"},primary__hover_alt:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"rgba(222, 237, 238, 1)"},secondary__highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},secondary__resting:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"rgba(36, 55, 70, 1)"},secondary__link_hover:{hex:"#17242f",hsla:"hsla(208, 34.3%, 13.7%, 1)",rgba:"rgba(23, 36, 47, 1)"},danger__highlight:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"rgba(255, 193, 193, 1)"},danger__resting:{hex:"#eb0000",hsla:"hsla(0, 100%, 46.1%, 1)",rgba:"rgba(235, 0, 0, 1)"},danger__hover:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"rgba(179, 13, 47, 1)"},danger__text:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"rgba(179, 13, 47, 1)"},warning__highlight:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"rgba(255, 231, 214, 1)"},warning__resting:{hex:"#ff9200",hsla:"hsla(34, 100%, 50%, 1)",rgba:"rgba(255, 146, 0, 1)"},warning__hover:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"rgba(173, 98, 0, 1)"},warning__text:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"rgba(173, 98, 0, 1)"},success__highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"},success__resting:{hex:"#4bb748",hsla:"hsla(118, 43.5%, 50%, 1)",rgba:"rgba(75, 183, 72, 1)"},success__hover:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"rgba(53, 129, 50, 1)"},success__text:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"rgba(53, 129, 50, 1)"},table__cell__fill_resting:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},table__cell__fill_hover:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"rgba(234, 234, 234, 1)"},table__cell__fill_activated:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"},table__header__fill_activated:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"rgba(234, 234, 234, 1)"},table__header__fill_hover:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"rgba(220, 220, 220, 1)"},table__header__fill_resting:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"rgba(247, 247, 247, 1)"},disabled__text:{hex:"#bebebe",hsla:"hsla(0, 0%, 74.5%, 1)",rgba:"rgba(190, 190, 190, 1)"},text_highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},focus:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"rgba(0, 112, 121, 1)"},disabled__border:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"rgba(220, 220, 220, 1)"},disabled__fill:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"rgba(234, 234, 234, 1)"},link_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},icon_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},link_in_snackbars:{hex:"#97cace",hsla:"hsla(184, 35.9%, 70%, 1)",rgba:"rgba(151, 202, 206, 1)"},pressed_overlay_dark:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.2)",rgba:"rgba(0, 0, 0, 0.2)"},pressed_overlay_light:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"rgba(255, 255, 255, 0.2)"}}},vS={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)"},mS={pressed_dark_overlay:{blendMode:"darken",pressedColor:"rgba(0, 0, 0, 0.2)"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"1px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 0.2)"}},fS={toggle_straight_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},toggle_rounded_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},circle:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},rounded:{minHeight:"40px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"48px",minWidth:"48px",borderRadius:"100px"},field:{minHeight:"56px",minWidth:"294px",borderRadius:""},straight:{minHeight:"36px",minWidth:"112px",borderRadius:""},caret:{minHeight:"8px",minWidth:"6px",borderRadius:""}},pS={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"}},gS={heading:{h1_bold:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:700,lineHeight:"1.500em",textAlign:"left"},h1:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:400,lineHeight:"1.500em",textAlign:"left"},h2:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.750rem",fontWeight:400,lineHeight:"1.429em",textAlign:"left"},h3:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.500rem",fontWeight:400,lineHeight:"1.667em",textAlign:"left"},h4:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.250rem",fontWeight:400,lineHeight:"1.600em",textAlign:"left"},h5:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"},h6:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.500em",textAlign:"left"}},navigation:{menu_title:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},menu_tabs:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},label:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},drawer_active:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,letterSpacing:"0.006em",lineHeight:"1.000em",textAlign:"left"},drawer_inactive:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},button:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb_hover:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"}},input:{label:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},text:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.025em",lineHeight:"1.500em",textAlign:"left"},text_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.063em",lineHeight:"1.500em",textAlign:"left"},helper:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"}},paragraph:{body_short_italic:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},caption:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},meta:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,lineHeight:"1.600em",textAlign:"left"},body_short:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},body_short_bold_italic:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},body_short_bold:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",textAlign:"left"},body_short_link:{color:"rgba(0, 112, 121, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textDecoration:"underline",textAlign:"left"},overline:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,letterSpacing:"0.069em",lineHeight:"1.600em",textTransform:"uppercase",textAlign:"left"},ingress:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:400,lineHeight:"1.333em",textAlign:"left"},body_long:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textAlign:"left"},body_long_link:{color:"rgba(0, 112, 121, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textDecoration:"underline",textAlign:"left"},body_long_italic:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"},body_long_bold:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",textAlign:"left"},body_long_bold_italic:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"}},table:{cell_header:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"},cell_text_bold:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text_link:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textDecoration:"underline",textAlign:"left"},cell_numeric_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"}},ui:{tooltip:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},snackbar:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},accordion_header:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,lineHeight:"1.500em",textAlign:"left"},chip__badge:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},chart:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"}}},p1={clickbounds:dS,colors:uS,elevation:vS,interactions:mS,shape:fS,spacings:pS,typography:gS},_S=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();class Be{constructor(e,t){this.name=e,this.value=t}static makeCssVar(e,t){return`--fusion-${e}__${t}`}static makeCss(e){return Object.keys(e).map(t=>`${_S(t)}: ${e[t]}`).join(";")}static makeVariable({attribute:e,value:t}){return`var(${[e,t].filter(i=>!!i).join(",")})`}static extractVariables(e){return Object.values(e).reduce((t,i)=>t.concat(i.variables),[])}get style(){const{value:e,attributes:t}=this;return{...e,...Object.keys(t).reduce((i,n)=>Object.assign(i,{[n]:Be.makeVariable(t[n])}),{})}}get css(){const{attributes:e,style:t}=this;return Be.makeCss({...t,...Object.keys(e).reduce((i,n)=>Object.assign(i,{[n]:Be.makeVariable(e[n])}),{})})}get variables(){return this.getVariables()}getAttributes(e){return Object.values(this.attributes).filter(t=>e||!t.base)}getVariable(e){return Be.makeVariable(this.attributes[e])}getVariables(e){return this.getAttributes(e).map(({attribute:t,value:i})=>[t,i].join(":"))}toString(){return this.css}}class Vz extends Be{get attributes(){const{name:e,value:{rgba:t}}=this;return{color:{attribute:Be.makeCssVar("color",e),value:t}}}get style(){return{color:this.value.rgba}}}const ns=(r,e)=>Object.keys(r).reduce((t,i)=>Object.assign(t,{[i]:new Vz(`${e}-${i}`,r[i])}),{}),Sz={infographic:ns(p1.colors.infographic,"infographic"),interactive:ns(p1.colors.interactive,"interactive"),logo:ns(p1.colors.logo,"logo"),text:ns(p1.colors.text,"text"),ui:ns(p1.colors.ui,"ui")},zS=Object.values(Sz).reduce((r,e)=>r.concat(Vz.extractVariables(e)),[]);class H4 extends Be{get attributes(){const{name:e,value:t}=this;return{shadow:{attribute:H4.makeCssVar("elevation",e),value:t}}}get style(){return{boxShadow:Be.makeVariable(this.attributes.shadow)}}}const yS=r=>new H4(r,p1.elevation[r]),wS=Object.keys(p1.elevation),$z=wS.reduce((r,e)=>Object.assign(r,{[e]:yS(e)}),{}),bS=H4.extractVariables($z);class Dz extends Be{get attributes(){const{name:e,value:t}=this;return{padding:{attribute:Be.makeCssVar("spacing",e),value:t}}}get style(){return{padding:this.value}}}const xS=(r,e)=>Object.keys(r).reduce((t,i)=>Object.assign(t,{[i]:new Dz(`${e}-${i}`,r[i])}),{}),Lz={comfortable:xS(p1.spacings.comfortable,"comfortable")},MS=Object.values(Lz).reduce((r,e)=>r.concat(Dz.extractVariables(e)),[]);class CS extends Be{get attributes(){const{name:e,value:t}=this;return{color:{attribute:Be.makeCssVar("typography",`${e}__color`),value:Be.makeVariable({attribute:Be.makeCssVar("typography","base-color"),value:t.color}),base:!0},fontFamily:{attribute:Be.makeCssVar("typography",`${e}-fontFamily`),value:t.fontFamily},fontSize:{attribute:Be.makeCssVar("typography",`${e}-fontSize`),value:t.fontSize},fontWeight:{attribute:Be.makeCssVar("typography",`${e}-fontWeight`),value:t.fontWeight},lineHeight:{attribute:Be.makeCssVar("typography",`${e}-lineHeight`),value:t.lineHeight},textAlign:{attribute:Be.makeCssVar("typography",`${e}-textAlign`),value:t.textAlign},letterSpacing:{attribute:Be.makeCssVar("typography",`${e}-letterSpacing`),value:t.letterSpacing},fontStyle:{attribute:Be.makeCssVar("typography",`${e}-fontStyle`),value:t.fontStyle},textTransform:{attribute:Be.makeCssVar("typography",`${e}-textTransform`),value:t.textTransform},textDecoration:{attribute:Be.makeCssVar("typography",`${e}-textDecoration`),value:t.textDecoration},fontFeature:{attribute:Be.makeCssVar("typography",`${e}-fontFeature`),value:t.fontFeature}}}}const Ja=(r,e)=>Object.keys(r).reduce((t,i)=>Object.assign(t,{[i]:new CS(`${e}-${i}`,r[i])}),{}),Tz={heading:Ja(p1.typography.heading,"heading"),input:Ja(p1.typography.input,"input"),navigation:Ja(p1.typography.navigation,"navigation"),paragraph:Ja(p1.typography.paragraph,"paragraph"),table:Ja(p1.typography.table,"table"),ui:Ja(p1.typography.ui,"ui")},p9={attribute:Be.makeCssVar("typography","base-color"),value:p1.colors.text.static_icons__default.rgba},HS=[...Object.values(Tz).reduce((r,e)=>r.concat(Be.extractVariables(e)),[]),[p9.attribute,p9.value].join(":")],b={colors:Sz,elevation:$z,spacing:Lz,typography:Tz};[...zS,...bS,...MS,...HS];const b6=(r,e={})=>cS(r,{defaultTheme:b,...e}),x6=r=>r,kS=(r,e)=>(window.customElements.define(r,e),e),ES=(r,e)=>{const{kind:t,elements:i}=e;return{kind:t,elements:i,finisher(n){window.customElements.define(r,n)}}},Ve=r=>e=>{if(window.customElements.get(r))console.warn(`${r} has been defined twice`);else return typeof e=="function"?kS(r,e):ES(r,e)};/**
|
|
85
|
+
*/gz();var zz=Date.now(),jd="fnValues"+zz,qd="fnStyle"+ ++zz,jA=function(){return{onCreateRule:function(t,i,n){if(typeof i!="function")return null;var a=_6(t,{},n);return a[qd]=i,a},onProcessStyle:function(t,i){if(jd in i||qd in i)return t;var n={};for(var a in t){var o=t[a];typeof o=="function"&&(delete t[a],n[a]=o)}return i[jd]=n,t},onUpdate:function(t,i,n,a){var o=i,s=o[qd];s&&(o.style=s(t)||{});var c=o[jd];if(c)for(var l in c)o.prop(l,c[l](t),a)}}};const qA=jA;var kn="@global",uu="@global ",GA=function(){function r(t,i,n){this.type="global",this.at=kn,this.isProcessed=!1,this.key=t,this.options=n,this.rules=new C4(Re({},n,{parent:this}));for(var a in i)this.rules.add(a,i[a]);this.rules.process()}var e=r.prototype;return e.getRule=function(i){return this.rules.get(i)},e.addRule=function(i,n,a){var o=this.rules.add(i,n,a);return o&&this.options.jss.plugins.onProcessRule(o),o},e.replaceRule=function(i,n,a){var o=this.rules.replace(i,n,a);return o&&this.options.jss.plugins.onProcessRule(o),o},e.indexOf=function(i){return this.rules.indexOf(i)},e.toString=function(i){return this.rules.toString(i)},r}(),KA=function(){function r(t,i,n){this.type="global",this.at=kn,this.isProcessed=!1,this.key=t,this.options=n;var a=t.substr(uu.length);this.rule=n.jss.createRule(a,i,Re({},n,{parent:this}))}var e=r.prototype;return e.toString=function(i){return this.rule?this.rule.toString(i):""},r}(),WA=/\s*,\s*/g;function yz(r,e){for(var t=r.split(WA),i="",n=0;n<t.length;n++)i+=e+" "+t[n].trim(),t[n+1]&&(i+=", ");return i}function YA(r,e){var t=r.options,i=r.style,n=i?i[kn]:null;if(n){for(var a in n)e.addRule(a,n[a],Re({},t,{selector:yz(a,r.selector)}));delete i[kn]}}function QA(r,e){var t=r.options,i=r.style;for(var n in i)if(!(n[0]!=="@"||n.substr(0,kn.length)!==kn)){var a=yz(n.substr(kn.length),r.selector);e.addRule(a,i[n],Re({},t,{selector:a})),delete i[n]}}function XA(){function r(t,i,n){if(!t)return null;if(t===kn)return new GA(t,i,n);if(t[0]==="@"&&t.substr(0,uu.length)===uu)return new KA(t,i,n);var a=n.parent;return a&&(a.type==="global"||a.options.parent&&a.options.parent.type==="global")&&(n.scoped=!1),!n.selector&&n.scoped===!1&&(n.selector=t),null}function e(t,i){t.type!=="style"||!i||(YA(t,i),QA(t,i))}return{onCreateRule:r,onProcessRule:e}}var u9=/\s*,\s*/g,JA=/&/g,ZA=/\$([\w-]+)/g;function eV(){function r(n,a){return function(o,s){var c=n.getRule(s)||a&&a.getRule(s);return c?c.selector:s}}function e(n,a){for(var o=a.split(u9),s=n.split(u9),c="",l=0;l<o.length;l++)for(var h=o[l],d=0;d<s.length;d++){var u=s[d];c&&(c+=", "),c+=u.indexOf("&")!==-1?u.replace(JA,h):h+" "+u}return c}function t(n,a,o){if(o)return Re({},o,{index:o.index+1});var s=n.options.nestingLevel;s=s===void 0?1:s+1;var c=Re({},n.options,{nestingLevel:s,index:a.indexOf(n)+1});return delete c.name,c}function i(n,a,o){if(a.type!=="style")return n;var s=a,c=s.options.parent,l,h;for(var d in n){var u=d.indexOf("&")!==-1,v=d[0]==="@";if(!(!u&&!v)){if(l=t(s,c,l),u){var m=e(d,s.selector);h||(h=r(c,o)),m=m.replace(ZA,h);var f=s.key+"-"+d;"replaceRule"in c?c.replaceRule(f,n[d],Re({},l,{selector:m})):c.addRule(f,n[d],Re({},l,{selector:m}))}else v&&c.addRule(d,{},l).addRule(s.key,n[d],{selector:s.selector});delete n[d]}}return n}return{onProcessStyle:i}}var tV=/[A-Z]/g,rV=/^ms-/,Gd={};function iV(r){return"-"+r.toLowerCase()}function wz(r){if(Gd.hasOwnProperty(r))return Gd[r];var e=r.replace(tV,iV);return Gd[r]=rV.test(e)?"-"+e:e}function O0(r){var e={};for(var t in r){var i=t.indexOf("--")===0?t:wz(t);e[i]=r[t]}return r.fallbacks&&(Array.isArray(r.fallbacks)?e.fallbacks=r.fallbacks.map(O0):e.fallbacks=O0(r.fallbacks)),e}function nV(){function r(t){if(Array.isArray(t)){for(var i=0;i<t.length;i++)t[i]=O0(t[i]);return t}return O0(t)}function e(t,i,n){if(i.indexOf("--")===0)return t;var a=wz(i);return i===a?t:(n.prop(a,t),null)}return{onProcessStyle:r,onChangeValue:e}}var E=y6&&CSS?CSS.px:"px",Jl=y6&&CSS?CSS.ms:"ms",Qa=y6&&CSS?CSS.percent:"%",aV={"animation-delay":Jl,"animation-duration":Jl,"background-position":E,"background-position-x":E,"background-position-y":E,"background-size":E,border:E,"border-bottom":E,"border-bottom-left-radius":E,"border-bottom-right-radius":E,"border-bottom-width":E,"border-left":E,"border-left-width":E,"border-radius":E,"border-right":E,"border-right-width":E,"border-top":E,"border-top-left-radius":E,"border-top-right-radius":E,"border-top-width":E,"border-width":E,"border-block":E,"border-block-end":E,"border-block-end-width":E,"border-block-start":E,"border-block-start-width":E,"border-block-width":E,"border-inline":E,"border-inline-end":E,"border-inline-end-width":E,"border-inline-start":E,"border-inline-start-width":E,"border-inline-width":E,"border-start-start-radius":E,"border-start-end-radius":E,"border-end-start-radius":E,"border-end-end-radius":E,margin:E,"margin-bottom":E,"margin-left":E,"margin-right":E,"margin-top":E,"margin-block":E,"margin-block-end":E,"margin-block-start":E,"margin-inline":E,"margin-inline-end":E,"margin-inline-start":E,padding:E,"padding-bottom":E,"padding-left":E,"padding-right":E,"padding-top":E,"padding-block":E,"padding-block-end":E,"padding-block-start":E,"padding-inline":E,"padding-inline-end":E,"padding-inline-start":E,"mask-position-x":E,"mask-position-y":E,"mask-size":E,height:E,width:E,"min-height":E,"max-height":E,"min-width":E,"max-width":E,bottom:E,left:E,top:E,right:E,inset:E,"inset-block":E,"inset-block-end":E,"inset-block-start":E,"inset-inline":E,"inset-inline-end":E,"inset-inline-start":E,"box-shadow":E,"text-shadow":E,"column-gap":E,"column-rule":E,"column-rule-width":E,"column-width":E,"font-size":E,"font-size-delta":E,"letter-spacing":E,"text-decoration-thickness":E,"text-indent":E,"text-stroke":E,"text-stroke-width":E,"word-spacing":E,motion:E,"motion-offset":E,outline:E,"outline-offset":E,"outline-width":E,perspective:E,"perspective-origin-x":Qa,"perspective-origin-y":Qa,"transform-origin":Qa,"transform-origin-x":Qa,"transform-origin-y":Qa,"transform-origin-z":Qa,"transition-delay":Jl,"transition-duration":Jl,"vertical-align":E,"flex-basis":E,"shape-margin":E,size:E,gap:E,grid:E,"grid-gap":E,"row-gap":E,"grid-row-gap":E,"grid-column-gap":E,"grid-template-rows":E,"grid-template-columns":E,"grid-auto-rows":E,"grid-auto-columns":E,"box-shadow-x":E,"box-shadow-y":E,"box-shadow-blur":E,"box-shadow-spread":E,"font-line-height":E,"text-shadow-x":E,"text-shadow-y":E,"text-shadow-blur":E};function bz(r){var e=/(-[a-z])/g,t=function(o){return o[1].toUpperCase()},i={};for(var n in r)i[n]=r[n],i[n.replace(e,t)]=r[n];return i}var oV=bz(aV);function Xs(r,e,t){if(e==null)return e;if(Array.isArray(e))for(var i=0;i<e.length;i++)e[i]=Xs(r,e[i],t);else if(typeof e=="object")if(r==="fallbacks")for(var n in e)e[n]=Xs(n,e[n],t);else for(var a in e)e[a]=Xs(r+"-"+a,e[a],t);else if(typeof e=="number"&&isNaN(e)===!1){var o=t[r]||oV[r];return o&&!(e===0&&o===E)?typeof o=="function"?o(e).toString():""+e+o:e.toString()}return e}function sV(r){r===void 0&&(r={});var e=bz(r);function t(n,a){if(a.type!=="style")return n;for(var o in n)n[o]=Xs(o,n[o],e);return n}function i(n,a){return Xs(a,n,e)}return{onProcessStyle:t,onChangeValue:i}}function vu(r,e){(e==null||e>r.length)&&(e=r.length);for(var t=0,i=new Array(e);t<e;t++)i[t]=r[t];return i}function cV(r){if(Array.isArray(r))return vu(r)}function lV(r){if(typeof Symbol<"u"&&r[Symbol.iterator]!=null||r["@@iterator"]!=null)return Array.from(r)}function hV(r,e){if(r){if(typeof r=="string")return vu(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);if(t==="Object"&&r.constructor&&(t=r.constructor.name),t==="Map"||t==="Set")return Array.from(r);if(t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return vu(r,e)}}function dV(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
86
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function uV(r){return cV(r)||lV(r)||hV(r)||dV()}var Es="",mu="",xz="",Mz="",vV=nl&&"ontouchstart"in document.documentElement;if(nl){var Kd={Moz:"-moz-",ms:"-ms-",O:"-o-",Webkit:"-webkit-"},mV=document.createElement("p"),Wd=mV.style,fV="Transform";for(var Yd in Kd)if(Yd+fV in Wd){Es=Yd,mu=Kd[Yd];break}Es==="Webkit"&&"msHyphens"in Wd&&(Es="ms",mu=Kd.ms,Mz="edge"),Es==="Webkit"&&"-apple-trailing-word"in Wd&&(xz="apple")}var me={js:Es,css:mu,vendor:xz,browser:Mz,isTouch:vV};function pV(r){return r[1]==="-"||me.js==="ms"?r:"@"+me.css+"keyframes"+r.substr(10)}var gV={noPrefill:["appearance"],supportedProperty:function(e){return e!=="appearance"?!1:me.js==="ms"?"-webkit-"+e:me.css+e}},_V={noPrefill:["color-adjust"],supportedProperty:function(e){return e!=="color-adjust"?!1:me.js==="Webkit"?me.css+"print-"+e:e}},zV=/[-\s]+(.)?/g;function yV(r,e){return e?e.toUpperCase():""}function w6(r){return r.replace(zV,yV)}function $n(r){return w6("-"+r)}var wV={noPrefill:["mask"],supportedProperty:function(e,t){if(!/^mask/.test(e))return!1;if(me.js==="Webkit"){var i="mask-image";if(w6(i)in t)return e;if(me.js+$n(i)in t)return me.css+e}return e}},bV={noPrefill:["text-orientation"],supportedProperty:function(e){return e!=="text-orientation"?!1:me.vendor==="apple"&&!me.isTouch?me.css+e:e}},xV={noPrefill:["transform"],supportedProperty:function(e,t,i){return e!=="transform"?!1:i.transform?e:me.css+e}},MV={noPrefill:["transition"],supportedProperty:function(e,t,i){return e!=="transition"?!1:i.transition?e:me.css+e}},CV={noPrefill:["writing-mode"],supportedProperty:function(e){return e!=="writing-mode"?!1:me.js==="Webkit"||me.js==="ms"&&me.browser!=="edge"?me.css+e:e}},HV={noPrefill:["user-select"],supportedProperty:function(e){return e!=="user-select"?!1:me.js==="Moz"||me.js==="ms"||me.vendor==="apple"?me.css+e:e}},kV={supportedProperty:function(e,t){if(!/^break-/.test(e))return!1;if(me.js==="Webkit"){var i="WebkitColumn"+$n(e);return i in t?me.css+"column-"+e:!1}if(me.js==="Moz"){var n="page"+$n(e);return n in t?"page-"+e:!1}return!1}},EV={supportedProperty:function(e,t){if(!/^(border|margin|padding)-inline/.test(e))return!1;if(me.js==="Moz")return e;var i=e.replace("-inline","");return me.js+$n(i)in t?me.css+i:!1}},PV={supportedProperty:function(e,t){return w6(e)in t?e:!1}},AV={supportedProperty:function(e,t){var i=$n(e);return e[0]==="-"||e[0]==="-"&&e[1]==="-"?e:me.js+i in t?me.css+e:me.js!=="Webkit"&&"Webkit"+i in t?"-webkit-"+e:!1}},VV={supportedProperty:function(e){return e.substring(0,11)!=="scroll-snap"?!1:me.js==="ms"?""+me.css+e:e}},SV={supportedProperty:function(e){return e!=="overscroll-behavior"?!1:me.js==="ms"?me.css+"scroll-chaining":e}},$V={"flex-grow":"flex-positive","flex-shrink":"flex-negative","flex-basis":"flex-preferred-size","justify-content":"flex-pack",order:"flex-order","align-items":"flex-align","align-content":"flex-line-pack"},DV={supportedProperty:function(e,t){var i=$V[e];return i&&me.js+$n(i)in t?me.css+i:!1}},Cz={flex:"box-flex","flex-grow":"box-flex","flex-direction":["box-orient","box-direction"],order:"box-ordinal-group","align-items":"box-align","flex-flow":["box-orient","box-direction"],"justify-content":"box-pack"},LV=Object.keys(Cz),TV=function(e){return me.css+e},IV={supportedProperty:function(e,t,i){var n=i.multiple;if(LV.indexOf(e)>-1){var a=Cz[e];if(!Array.isArray(a))return me.js+$n(a)in t?me.css+a:!1;if(!n)return!1;for(var o=0;o<a.length;o++)if(!(me.js+$n(a[0])in t))return!1;return a.map(TV)}return!1}},Hz=[gV,_V,wV,bV,xV,MV,CV,HV,kV,EV,PV,AV,VV,SV,DV,IV],v9=Hz.filter(function(r){return r.supportedProperty}).map(function(r){return r.supportedProperty}),RV=Hz.filter(function(r){return r.noPrefill}).reduce(function(r,e){return r.push.apply(r,uV(e.noPrefill)),r},[]),Ps,va={};if(nl){Ps=document.createElement("p");var Qd=window.getComputedStyle(document.documentElement,"");for(var Xd in Qd)isNaN(Xd)||(va[Qd[Xd]]=Qd[Xd]);RV.forEach(function(r){return delete va[r]})}function fu(r,e){if(e===void 0&&(e={}),!Ps)return r;if(va[r]!=null)return va[r];(r==="transition"||r==="transform")&&(e[r]=r in Ps.style);for(var t=0;t<v9.length&&(va[r]=v9[t](r,Ps.style,e),!va[r]);t++);try{Ps.style[r]=""}catch{return!1}return va[r]}var Xa={},OV={transition:1,"transition-property":1,"-webkit-transition":1,"-webkit-transition-property":1},NV=/(^\s*[\w-]+)|, (\s*[\w-]+)(?![^()]*\))/g,Ji;function UV(r,e,t){if(e==="var")return"var";if(e==="all")return"all";if(t==="all")return", all";var i=e?fu(e):", "+fu(t);return i||e||t}nl&&(Ji=document.createElement("p"));function m9(r,e){var t=e;if(!Ji||r==="content")return e;if(typeof t!="string"||!isNaN(parseInt(t,10)))return t;var i=r+t;if(Xa[i]!=null)return Xa[i];try{Ji.style[r]=t}catch{return Xa[i]=!1,!1}if(OV[r])t=t.replace(NV,UV);else if(Ji.style[r]===""&&(t=me.css+t,t==="-ms-flex"&&(Ji.style[r]="-ms-flexbox"),Ji.style[r]=t,Ji.style[r]===""))return Xa[i]=!1,!1;return Ji.style[r]="",Xa[i]=t,Xa[i]}function FV(){function r(n){if(n.type==="keyframes"){var a=n;a.at=pV(a.at)}}function e(n){for(var a in n){var o=n[a];if(a==="fallbacks"&&Array.isArray(o)){n[a]=o.map(e);continue}var s=!1,c=fu(a);c&&c!==a&&(s=!0);var l=!1,h=m9(c,xa(o));h&&h!==o&&(l=!0),(s||l)&&(s&&delete n[a],n[c||a]=h||o)}return n}function t(n,a){return a.type!=="style"?n:e(n)}function i(n,a){return m9(a,xa(n))||n}return{onProcessRule:r,onProcessStyle:t,onChangeValue:i}}function BV(){var r=function(t,i){return t.length===i.length?t>i?1:-1:t.length-i.length};return{onProcessStyle:function(t,i){if(i.type!=="style")return t;for(var n={},a=Object.keys(t).sort(r),o=0;o<a.length;o++)n[a[o]]=t[a[o]];return n}}}function jV(){return{plugins:[qA(),XA(),eV(),nV(),sV(),typeof window>"u"?null:FV(),BV()]}}function qV(r,e){if(r==null)return{};var t=uz(r,e),i,n;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(r);for(n=0;n<a.length;n++)i=a[n],!(e.indexOf(i)>=0)&&Object.prototype.propertyIsEnumerable.call(r,i)&&(t[i]=r[i])}return t}function kz(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=r.baseClasses,t=r.newClasses;if(r.Component,!t)return e;var i=Re({},e);return Object.keys(t).forEach(function(n){t[n]&&(i[n]="".concat(e[n]," ").concat(t[n]))}),i}var GV={set:function(e,t,i,n){var a=e.get(t);a||(a=new Map,e.set(t,a)),a.set(i,n)},get:function(e,t,i){var n=e.get(t);return n?n.get(i):void 0},delete:function(e,t,i){var n=e.get(t);n.delete(i)}};const H2=GV;var KV=S1.createContext(null);const Ez=KV;function Pz(){var r=S1.useContext(Ez);return r}var WV=gz(jV()),YV=aA(),QV=new Map,XV={disableGeneration:!1,generateClassName:YV,jss:WV,sheetsCache:null,sheetsManager:QV,sheetsRegistry:null},JV=S1.createContext(XV),f9=-1e9;function ZV(){return f9+=1,f9}var eS={};const tS=eS;function rS(r){var e=typeof r=="function";return{create:function(i,n){var a;try{a=e?r(i):r}catch(c){throw c}if(!n||!i.overrides||!i.overrides[n])return a;var o=i.overrides[n],s=Re({},a);return Object.keys(o).forEach(function(c){s[c]=cz(s[c],o[c])}),s},options:{}}}function iS(r,e,t){var i=r.state,n=r.stylesOptions;if(n.disableGeneration)return e||{};i.cacheClasses||(i.cacheClasses={value:null,lastProp:null,lastJSS:{}});var a=!1;return i.classes!==i.cacheClasses.lastJSS&&(i.cacheClasses.lastJSS=i.classes,a=!0),e!==i.cacheClasses.lastProp&&(i.cacheClasses.lastProp=e,a=!0),a&&(i.cacheClasses.value=kz({baseClasses:i.cacheClasses.lastJSS,newClasses:e,Component:t})),i.cacheClasses.value}function nS(r,e){var t=r.state,i=r.theme,n=r.stylesOptions,a=r.stylesCreator,o=r.name;if(!n.disableGeneration){var s=H2.get(n.sheetsManager,a,i);s||(s={refs:0,staticSheet:null,dynamicStyles:null},H2.set(n.sheetsManager,a,i,s));var c=Re({},a.options,n,{theme:i,flip:typeof n.flip=="boolean"?n.flip:i.direction==="rtl"});c.generateId=c.serverGenerateClassName||c.generateClassName;var l=n.sheetsRegistry;if(s.refs===0){var h;n.sheetsCache&&(h=H2.get(n.sheetsCache,a,i));var d=a.create(i,o);h||(h=n.jss.createStyleSheet(d,Re({link:!1},c)),h.attach(),n.sheetsCache&&H2.set(n.sheetsCache,a,i,h)),l&&l.add(h),s.staticSheet=h,s.dynamicStyles=_z(d)}if(s.dynamicStyles){var u=n.jss.createStyleSheet(s.dynamicStyles,Re({link:!0},c));u.update(e),u.attach(),t.dynamicSheet=u,t.classes=kz({baseClasses:s.staticSheet.classes,newClasses:u.classes}),l&&l.add(u)}else t.classes=s.staticSheet.classes;s.refs+=1}}function aS(r,e){var t=r.state;t.dynamicSheet&&t.dynamicSheet.update(e)}function oS(r){var e=r.state,t=r.theme,i=r.stylesOptions,n=r.stylesCreator;if(!i.disableGeneration){var a=H2.get(i.sheetsManager,n,t);a.refs-=1;var o=i.sheetsRegistry;a.refs===0&&(H2.delete(i.sheetsManager,n,t),i.jss.removeStyleSheet(a.staticSheet),o&&o.remove(a.staticSheet)),e.dynamicSheet&&(i.jss.removeStyleSheet(e.dynamicSheet),o&&o.remove(e.dynamicSheet))}}function sS(r,e){var t=S1.useRef([]),i,n=S1.useMemo(function(){return{}},e);t.current!==n&&(t.current=n,i=r()),S1.useEffect(function(){return function(){i&&i()}},[n])}function cS(r){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=e.name,i=e.classNamePrefix,n=e.Component,a=e.defaultTheme,o=a===void 0?tS:a,s=qV(e,["name","classNamePrefix","Component","defaultTheme"]),c=rS(r),l=t||i||"makeStyles";c.options={index:ZV(),name:t,meta:l,classNamePrefix:l};var h=function(){var u=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},v=Pz()||o,m=Re({},S1.useContext(JV),s),f=S1.useRef(),C=S1.useRef();sS(function(){var p={name:t,state:{},stylesCreator:c,stylesOptions:m,theme:v};return nS(p,u),C.current=!1,f.current=p,function(){oS(p)}},[v,c]),S1.useEffect(function(){C.current&&aS(f.current,u),C.current=!0});var _=iS(f.current,u.classes,n);return _};return h}function Az(r){var e,t,i="";if(typeof r=="string"||typeof r=="number")i+=r;else if(typeof r=="object")if(Array.isArray(r))for(e=0;e<r.length;e++)r[e]&&(t=Az(r[e]))&&(i&&(i+=" "),i+=t);else for(e in r)r[e]&&(i&&(i+=" "),i+=e);return i}function T2(){for(var r,e,t=0,i="";t<arguments.length;)(r=arguments[t++])&&(e=Az(r))&&(i&&(i+=" "),i+=e);return i}function lS(r,e){if(typeof e=="function"){var t=e(r);return t}return Re({},r,e)}function hS(r){var e=r.children,t=r.theme,i=Pz(),n=S1.useMemo(function(){var a=i===null?t:lS(i,t);return a!=null&&(a[lz]=i!==null),a},[t,i]);return S1.createElement(Ez.Provider,{value:n},e)}const dS={jumbo__base:"88px",default__base:"48px",default__input:"56px"},uS={text:{static_icons__default:{hex:"#3d3d3d",hsla:"hsla(0, 0%, 23.9%, 1)",rgba:"rgba(61, 61, 61, 1)"},static_icons__secondary:{hex:"#565656",hsla:"hsla(0, 0%, 33.7%, 1)",rgba:"rgba(86, 86, 86, 1)"},static_icons__tertiary:{hex:"#6f6f6f",hsla:"hsla(0, 0%, 43.5%, 1)",rgba:"rgba(111, 111, 111, 1)"},static_icons__primary_white:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"}},ui:{background__default:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},background__semitransparent:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"rgba(255, 255, 255, 0.2)"},background__light:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"rgba(247, 247, 247, 1)"},background__scrim:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.4)",rgba:"rgba(0, 0, 0, 0.4)"},background__overlay:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.8)",rgba:"rgba(0, 0, 0, 0.8)"},background__medium:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"rgba(220, 220, 220, 1)"},background__info:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},background__warning:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"rgba(255, 231, 214, 1)"},background__danger:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"rgba(255, 193, 193, 1)"}},infographic:{substitute__purple_berry:{hex:"#8c1159",hsla:"hsla(325, 78.3%, 30.8%, 1)",rgba:"rgba(140, 17, 89, 1)"},substitute__pink_rose:{hex:"#e24973",hsla:"hsla(344, 72.5%, 58.6%, 1)",rgba:"rgba(226, 73, 115, 1)"},substitute__pink_salmon:{hex:"#ff92a8",hsla:"hsla(348, 100%, 78.6%, 1)",rgba:"rgba(255, 146, 168, 1)"},substitute__green_cucumber:{hex:"#005f57",hsla:"hsla(175, 100%, 18.6%, 1)",rgba:"rgba(0, 95, 87, 1)"},substitute__green_succulent:{hex:"#00977b",hsla:"hsla(169, 100%, 29.6%, 1)",rgba:"rgba(0, 151, 123, 1)"},substitute__green_mint:{hex:"#40d38f",hsla:"hsla(152, 62.6%, 53.9%, 1)",rgba:"rgba(64, 211, 143, 1)"},substitute__blue_ocean:{hex:"#004088",hsla:"hsla(212, 100%, 26.7%, 1)",rgba:"rgba(0, 64, 136, 1)"},substitute__blue_overcast:{hex:"#0084c4",hsla:"hsla(200, 100%, 38.4%, 1)",rgba:"rgba(0, 132, 196, 1)"},substitute__blue_sky:{hex:"#52c0ff",hsla:"hsla(202, 100%, 66.1%, 1)",rgba:"rgba(82, 192, 255, 1)"},primary__moss_green_100:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"rgba(0, 112, 121, 1)"},primary__moss_green_55:{hex:"#73b1b5",hsla:"hsla(184, 30.8%, 58%, 1)",rgba:"rgba(115, 177, 181, 1)"},primary__moss_green_34:{hex:"#a8ced1",hsla:"hsla(184, 30.8%, 73.9%, 1)",rgba:"rgba(168, 206, 209, 1)"},primary__moss_green_21:{hex:"#c9e0e2",hsla:"hsla(185, 30.1%, 83.7%, 1)",rgba:"rgba(201, 224, 226, 1)"},primary__moss_green_13:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"rgba(222, 237, 238, 1)"},primary__energy_red_100:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"rgba(235, 0, 55, 1)"},primary__energy_red_55:{hex:"#ff7d98",hsla:"hsla(348, 100%, 74.5%, 1)",rgba:"rgba(255, 125, 152, 1)"},primary__energy_red_34:{hex:"#ffaebf",hsla:"hsla(347, 100%, 84.1%, 1)",rgba:"rgba(255, 174, 191, 1)"},primary__energy_red_21:{hex:"#ffcdd7",hsla:"hsla(348, 100%, 90.2%, 1)",rgba:"rgba(255, 205, 215, 1)"},primary__energy_red_13:{hex:"#ffe0e7",hsla:"hsla(346, 100%, 93.9%, 1)",rgba:"rgba(255, 224, 231, 1)"},primary__weathered_red:{hex:"#7d0023",hsla:"hsla(343, 100%, 24.5%, 1)",rgba:"rgba(125, 0, 35, 1)"},primary__slate_blue:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"rgba(36, 55, 70, 1)"},primary__spruce_wood:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"rgba(255, 231, 214, 1)"},primary__mist_blue:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},primary__lichen_green:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"}},logo:{fill_positive:{hex:"#eb0037",hsla:"hsla(346, 100%, 46.1%, 1)",rgba:"rgba(235, 0, 55, 1)"},fill_negative:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"}},interactive:{primary__selected_highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"},primary__selected_hover:{hex:"#c3f3d2",hsla:"hsla(139, 66.7%, 85.9%, 1)",rgba:"rgba(195, 243, 210, 1)"},primary__resting:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"rgba(0, 112, 121, 1)"},primary__hover:{hex:"#004f55",hsla:"hsla(184, 100%, 16.7%, 1)",rgba:"rgba(0, 79, 85, 1)"},primary__hover_alt:{hex:"#deedee",hsla:"hsla(184, 32%, 90.2%, 1)",rgba:"rgba(222, 237, 238, 1)"},secondary__highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},secondary__resting:{hex:"#243746",hsla:"hsla(206, 32.1%, 20.8%, 1)",rgba:"rgba(36, 55, 70, 1)"},secondary__link_hover:{hex:"#17242f",hsla:"hsla(208, 34.3%, 13.7%, 1)",rgba:"rgba(23, 36, 47, 1)"},danger__highlight:{hex:"#ffc1c1",hsla:"hsla(0, 100%, 87.8%, 1)",rgba:"rgba(255, 193, 193, 1)"},danger__resting:{hex:"#eb0000",hsla:"hsla(0, 100%, 46.1%, 1)",rgba:"rgba(235, 0, 0, 1)"},danger__hover:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"rgba(179, 13, 47, 1)"},danger__text:{hex:"#b30d2f",hsla:"hsla(348, 86.5%, 37.6%, 1)",rgba:"rgba(179, 13, 47, 1)"},warning__highlight:{hex:"#ffe7d6",hsla:"hsla(25, 100%, 92%, 1)",rgba:"rgba(255, 231, 214, 1)"},warning__resting:{hex:"#ff9200",hsla:"hsla(34, 100%, 50%, 1)",rgba:"rgba(255, 146, 0, 1)"},warning__hover:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"rgba(173, 98, 0, 1)"},warning__text:{hex:"#ad6200",hsla:"hsla(34, 100%, 33.9%, 1)",rgba:"rgba(173, 98, 0, 1)"},success__highlight:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"},success__resting:{hex:"#4bb748",hsla:"hsla(118, 43.5%, 50%, 1)",rgba:"rgba(75, 183, 72, 1)"},success__hover:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"rgba(53, 129, 50, 1)"},success__text:{hex:"#358132",hsla:"hsla(118, 44.1%, 35.1%, 1)",rgba:"rgba(53, 129, 50, 1)"},table__cell__fill_resting:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},table__cell__fill_hover:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"rgba(234, 234, 234, 1)"},table__cell__fill_activated:{hex:"#e6faec",hsla:"hsla(138, 66.7%, 94.1%, 1)",rgba:"rgba(230, 250, 236, 1)"},table__header__fill_activated:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"rgba(234, 234, 234, 1)"},table__header__fill_hover:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"rgba(220, 220, 220, 1)"},table__header__fill_resting:{hex:"#f7f7f7",hsla:"hsla(0, 0%, 96.9%, 1)",rgba:"rgba(247, 247, 247, 1)"},disabled__text:{hex:"#bebebe",hsla:"hsla(0, 0%, 74.5%, 1)",rgba:"rgba(190, 190, 190, 1)"},text_highlight:{hex:"#d5eaf4",hsla:"hsla(199, 58.5%, 89.6%, 1)",rgba:"rgba(213, 234, 244, 1)"},focus:{hex:"#007079",hsla:"hsla(184, 100%, 23.7%, 1)",rgba:"rgba(0, 112, 121, 1)"},disabled__border:{hex:"#dcdcdc",hsla:"hsla(0, 0%, 86.3%, 1)",rgba:"rgba(220, 220, 220, 1)"},disabled__fill:{hex:"#eaeaea",hsla:"hsla(0, 0%, 91.8%, 1)",rgba:"rgba(234, 234, 234, 1)"},link_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},icon_on_interactive_colors:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 1)",rgba:"rgba(255, 255, 255, 1)"},link_in_snackbars:{hex:"#97cace",hsla:"hsla(184, 35.9%, 70%, 1)",rgba:"rgba(151, 202, 206, 1)"},pressed_overlay_dark:{hex:"#000000",hsla:"hsla(0, 0%, 0%, 0.2)",rgba:"rgba(0, 0, 0, 0.2)"},pressed_overlay_light:{hex:"#ffffff",hsla:"hsla(0, 0%, 100%, 0.2)",rgba:"rgba(255, 255, 255, 0.2)"}}},vS={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)"},mS={pressed_dark_overlay:{blendMode:"darken",pressedColor:"rgba(0, 0, 0, 0.2)"},focused:{style:"dashed",color:"rgba(0, 112, 121, 1)",width:"1px"},pressed_light_overlay:{blendMode:"pass_through",pressedColor:"rgba(255, 255, 255, 0.2)"}},fS={toggle_straight_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},toggle_rounded_border:{minHeight:"36px",minWidth:"4px",borderRadius:""},circle:{minHeight:"40px",minWidth:"40px",borderRadius:"100px"},rounded:{minHeight:"40px",minWidth:"80px",borderRadius:"100px"},button:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},toggle:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},corners:{minHeight:"36px",minWidth:"112px",borderRadius:"4px"},icon_button:{minHeight:"48px",minWidth:"48px",borderRadius:"100px"},field:{minHeight:"56px",minWidth:"294px",borderRadius:""},straight:{minHeight:"36px",minWidth:"112px",borderRadius:""},caret:{minHeight:"8px",minWidth:"6px",borderRadius:""}},pS={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"}},gS={heading:{h1_bold:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:700,lineHeight:"1.500em",textAlign:"left"},h1:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"2.000rem",fontWeight:400,lineHeight:"1.500em",textAlign:"left"},h2:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.750rem",fontWeight:400,lineHeight:"1.429em",textAlign:"left"},h3:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.500rem",fontWeight:400,lineHeight:"1.667em",textAlign:"left"},h4:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.250rem",fontWeight:400,lineHeight:"1.600em",textAlign:"left"},h5:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"},h6:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.500em",textAlign:"left"}},navigation:{menu_title:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},menu_tabs:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},label:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},drawer_active:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,letterSpacing:"0.006em",lineHeight:"1.000em",textAlign:"left"},drawer_inactive:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.000em",textAlign:"left"},button:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},breadcrumb_hover:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textDecoration:"underline",textAlign:"left"}},input:{label:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},text:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.025em",lineHeight:"1.500em",textAlign:"left"},text_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,letterSpacing:"0.063em",lineHeight:"1.500em",textAlign:"left"},helper:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,letterSpacing:"0.013em",lineHeight:"1.333em",textAlign:"left"}},paragraph:{body_short_italic:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},caption:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.143em",textAlign:"left"},meta:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,lineHeight:"1.600em",textAlign:"left"},body_short:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textAlign:"left"},body_short_bold_italic:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",fontStyle:"italic",textAlign:"left"},body_short_bold:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.250em",textAlign:"left"},body_short_link:{color:"rgba(0, 112, 121, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.250em",textDecoration:"underline",textAlign:"left"},overline:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.625rem",fontWeight:500,letterSpacing:"0.069em",lineHeight:"1.600em",textTransform:"uppercase",textAlign:"left"},ingress:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.125rem",fontWeight:400,lineHeight:"1.333em",textAlign:"left"},body_long:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textAlign:"left"},body_long_link:{color:"rgba(0, 112, 121, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",textDecoration:"underline",textAlign:"left"},body_long_italic:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:400,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"},body_long_bold:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",textAlign:"left"},body_long_bold_italic:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:700,lineHeight:"1.500em",fontStyle:"italic",textAlign:"left"}},table:{cell_header:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"},cell_text_bold:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:700,lineHeight:"1.429em",textAlign:"left"},cell_text_link:{color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textDecoration:"underline",textAlign:"left"},cell_numeric_monospaced:{fontFeature:"'tnum' on,'lnum' on",color:"rgba(0, 0, 0, 1)",fontFamily:"Equinor",fontSize:"0.875rem",fontWeight:500,lineHeight:"1.429em",textAlign:"left"}},ui:{tooltip:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},snackbar:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},accordion_header:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"1.000rem",fontWeight:500,lineHeight:"1.500em",textAlign:"left"},chip__badge:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"},chart:{color:"rgba(61, 61, 61, 1)",fontFamily:"Equinor",fontSize:"0.750rem",fontWeight:500,lineHeight:"1.333em",textAlign:"left"}}},p1={clickbounds:dS,colors:uS,elevation:vS,interactions:mS,shape:fS,spacings:pS,typography:gS},_S=r=>r.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase();class Be{constructor(e,t){this.name=e,this.value=t}static makeCssVar(e,t){return`--fusion-${e}__${t}`}static makeCss(e){return Object.keys(e).map(t=>`${_S(t)}: ${e[t]}`).join(";")}static makeVariable({attribute:e,value:t}){return`var(${[e,t].filter(i=>!!i).join(",")})`}static extractVariables(e){return Object.values(e).reduce((t,i)=>t.concat(i.variables),[])}get style(){const{value:e,attributes:t}=this;return{...e,...Object.keys(t).reduce((i,n)=>Object.assign(i,{[n]:Be.makeVariable(t[n])}),{})}}get css(){const{attributes:e,style:t}=this;return Be.makeCss({...t,...Object.keys(e).reduce((i,n)=>Object.assign(i,{[n]:Be.makeVariable(e[n])}),{})})}get variables(){return this.getVariables()}getAttributes(e){return Object.values(this.attributes).filter(t=>e||!t.base)}getVariable(e){return Be.makeVariable(this.attributes[e])}getVariables(e){return this.getAttributes(e).map(({attribute:t,value:i})=>[t,i].join(":"))}toString(){return this.css}}class Vz extends Be{get attributes(){const{name:e,value:{rgba:t}}=this;return{color:{attribute:Be.makeCssVar("color",e),value:t}}}get style(){return{color:this.value.rgba}}}const ns=(r,e)=>Object.keys(r).reduce((t,i)=>Object.assign(t,{[i]:new Vz(`${e}-${i}`,r[i])}),{}),Sz={infographic:ns(p1.colors.infographic,"infographic"),interactive:ns(p1.colors.interactive,"interactive"),logo:ns(p1.colors.logo,"logo"),text:ns(p1.colors.text,"text"),ui:ns(p1.colors.ui,"ui")},zS=Object.values(Sz).reduce((r,e)=>r.concat(Vz.extractVariables(e)),[]);class H4 extends Be{get attributes(){const{name:e,value:t}=this;return{shadow:{attribute:H4.makeCssVar("elevation",e),value:t}}}get style(){return{boxShadow:Be.makeVariable(this.attributes.shadow)}}}const yS=r=>new H4(r,p1.elevation[r]),wS=Object.keys(p1.elevation),$z=wS.reduce((r,e)=>Object.assign(r,{[e]:yS(e)}),{}),bS=H4.extractVariables($z);class Dz extends Be{get attributes(){const{name:e,value:t}=this;return{padding:{attribute:Be.makeCssVar("spacing",e),value:t}}}get style(){return{padding:this.value}}}const xS=(r,e)=>Object.keys(r).reduce((t,i)=>Object.assign(t,{[i]:new Dz(`${e}-${i}`,r[i])}),{}),Lz={comfortable:xS(p1.spacings.comfortable,"comfortable")},MS=Object.values(Lz).reduce((r,e)=>r.concat(Dz.extractVariables(e)),[]);class CS extends Be{get attributes(){const{name:e,value:t}=this;return{color:{attribute:Be.makeCssVar("typography",`${e}__color`),value:Be.makeVariable({attribute:Be.makeCssVar("typography","base-color"),value:t.color}),base:!0},fontFamily:{attribute:Be.makeCssVar("typography",`${e}-fontFamily`),value:t.fontFamily},fontSize:{attribute:Be.makeCssVar("typography",`${e}-fontSize`),value:t.fontSize},fontWeight:{attribute:Be.makeCssVar("typography",`${e}-fontWeight`),value:t.fontWeight},lineHeight:{attribute:Be.makeCssVar("typography",`${e}-lineHeight`),value:t.lineHeight},textAlign:{attribute:Be.makeCssVar("typography",`${e}-textAlign`),value:t.textAlign},letterSpacing:{attribute:Be.makeCssVar("typography",`${e}-letterSpacing`),value:t.letterSpacing},fontStyle:{attribute:Be.makeCssVar("typography",`${e}-fontStyle`),value:t.fontStyle},textTransform:{attribute:Be.makeCssVar("typography",`${e}-textTransform`),value:t.textTransform},textDecoration:{attribute:Be.makeCssVar("typography",`${e}-textDecoration`),value:t.textDecoration},fontFeature:{attribute:Be.makeCssVar("typography",`${e}-fontFeature`),value:t.fontFeature}}}}const Ja=(r,e)=>Object.keys(r).reduce((t,i)=>Object.assign(t,{[i]:new CS(`${e}-${i}`,r[i])}),{}),Tz={heading:Ja(p1.typography.heading,"heading"),input:Ja(p1.typography.input,"input"),navigation:Ja(p1.typography.navigation,"navigation"),paragraph:Ja(p1.typography.paragraph,"paragraph"),table:Ja(p1.typography.table,"table"),ui:Ja(p1.typography.ui,"ui")},p9={attribute:Be.makeCssVar("typography","base-color"),value:p1.colors.text.static_icons__default.rgba},HS=[...Object.values(Tz).reduce((r,e)=>r.concat(Be.extractVariables(e)),[]),[p9.attribute,p9.value].join(":")],b={colors:Sz,elevation:$z,spacing:Lz,typography:Tz};[...zS,...bS,...MS,...HS];const b6=(r,e={})=>cS(r,{defaultTheme:b,...e}),x6=r=>r,kS=(r,e)=>(window.customElements.define(r,e),e),ES=(r,e)=>{const{kind:t,elements:i}=e;return{kind:t,elements:i,finisher(n){window.customElements.define(r,n)}}},Ve=r=>e=>{if(window.customElements.get(r))console.warn(`${r} has been defined twice`);else return typeof e=="function"?kS(r,e):ES(r,e)};/**
|
|
87
87
|
* @license
|
|
88
88
|
* Copyright 2019 Google LLC
|
|
89
89
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -95,11 +95,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
95
95
|
* @license
|
|
96
96
|
* Copyright 2017 Google LLC
|
|
97
97
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
98
|
-
*/var e5;const U0=window,ao=U0.trustedTypes,w9=ao?ao.createPolicy("lit-html",{createHTML:r=>r}):void 0,
|
|
98
|
+
*/var e5;const U0=window,ao=U0.trustedTypes,w9=ao?ao.createPolicy("lit-html",{createHTML:r=>r}):void 0,ln=`lit$${(Math.random()+"").slice(9)}$`,Rz="?"+ln,VS=`<${Rz}>`,oo=document,$c=(r="")=>oo.createComment(r),Dc=r=>r===null||typeof r!="object"&&typeof r!="function",Oz=Array.isArray,SS=r=>Oz(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",as=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,b9=/-->/g,x9=/>/g,Kn=RegExp(`>|[
|
|
99
99
|
\f\r](?:([^\\s"'>=/]+)([
|
|
100
100
|
\f\r]*=[
|
|
101
101
|
\f\r]*(?:[^
|
|
102
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),M9=/'/g,C9=/"/g,Nz=/^(?:script|style|textarea|title)$/i,Uz=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),O=Uz(1),Oo=Uz(2),fr=Symbol.for("lit-noChange"),_t=Symbol.for("lit-nothing"),H9=new WeakMap,I2=oo.createTreeWalker(oo,129,null,!1),$S=(r,e)=>{const t=r.length-1,i=[];let n,a=e===2?"<svg>":"",o=as;for(let c=0;c<t;c++){const l=r[c];let h,d,u=-1,v=0;for(;v<l.length&&(o.lastIndex=v,d=o.exec(l),d!==null);)v=o.lastIndex,o===as?d[1]==="!--"?o=b9:d[1]!==void 0?o=x9:d[2]!==void 0?(Nz.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=
|
|
102
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),M9=/'/g,C9=/"/g,Nz=/^(?:script|style|textarea|title)$/i,Uz=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),O=Uz(1),Oo=Uz(2),fr=Symbol.for("lit-noChange"),_t=Symbol.for("lit-nothing"),H9=new WeakMap,I2=oo.createTreeWalker(oo,129,null,!1),$S=(r,e)=>{const t=r.length-1,i=[];let n,a=e===2?"<svg>":"",o=as;for(let c=0;c<t;c++){const l=r[c];let h,d,u=-1,v=0;for(;v<l.length&&(o.lastIndex=v,d=o.exec(l),d!==null);)v=o.lastIndex,o===as?d[1]==="!--"?o=b9:d[1]!==void 0?o=x9:d[2]!==void 0?(Nz.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=Kn):d[3]!==void 0&&(o=Kn):o===Kn?d[0]===">"?(o=n??as,u=-1):d[1]===void 0?u=-2:(u=o.lastIndex-d[2].length,h=d[1],o=d[3]===void 0?Kn:d[3]==='"'?C9:M9):o===C9||o===M9?o=Kn:o===b9||o===x9?o=as:(o=Kn,n=void 0);const m=o===Kn&&r[c+1].startsWith("/>")?" ":"";a+=o===as?l+VS:u>=0?(i.push(h),l.slice(0,u)+"$lit$"+l.slice(u)+ln+m):l+ln+(u===-2?(i.push(void 0),c):m)}const s=a+(r[t]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[w9!==void 0?w9.createHTML(s):s,i]};let gu=class Fz{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let a=0,o=0;const s=e.length-1,c=this.parts,[l,h]=$S(e,t);if(this.el=Fz.createElement(l,i),I2.currentNode=this.el.content,t===2){const d=this.el.content,u=d.firstChild;u.remove(),d.append(...u.childNodes)}for(;(n=I2.nextNode())!==null&&c.length<s;){if(n.nodeType===1){if(n.hasAttributes()){const d=[];for(const u of n.getAttributeNames())if(u.endsWith("$lit$")||u.startsWith(ln)){const v=h[o++];if(d.push(u),v!==void 0){const m=n.getAttribute(v.toLowerCase()+"$lit$").split(ln),f=/([.?@])?(.*)/.exec(v);c.push({type:1,index:a,name:f[2],strings:m,ctor:f[1]==="."?LS:f[1]==="?"?IS:f[1]==="@"?RS:E4})}else c.push({type:6,index:a})}for(const u of d)n.removeAttribute(u)}if(Nz.test(n.tagName)){const d=n.textContent.split(ln),u=d.length-1;if(u>0){n.textContent=ao?ao.emptyScript:"";for(let v=0;v<u;v++)n.append(d[v],$c()),I2.nextNode(),c.push({type:2,index:++a});n.append(d[u],$c())}}}else if(n.nodeType===8)if(n.data===Rz)c.push({type:2,index:a});else{let d=-1;for(;(d=n.data.indexOf(ln,d+1))!==-1;)c.push({type:7,index:a}),d+=ln.length-1}a++}}static createElement(e,t){const i=oo.createElement("template");return i.innerHTML=e,i}};function so(r,e,t=r,i){var n,a,o,s;if(e===fr)return e;let c=i!==void 0?(n=t._$Co)===null||n===void 0?void 0:n[i]:t._$Cl;const l=Dc(e)?void 0:e._$litDirective$;return(c==null?void 0:c.constructor)!==l&&((a=c==null?void 0:c._$AO)===null||a===void 0||a.call(c,!1),l===void 0?c=void 0:(c=new l(r),c._$AT(r,t,i)),i!==void 0?((o=(s=t)._$Co)!==null&&o!==void 0?o:s._$Co=[])[i]=c:t._$Cl=c),c!==void 0&&(e=so(r,c._$AS(r,e.values),c,i)),e}let DS=class{constructor(e,t){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var t;const{el:{content:i},parts:n}=this._$AD,a=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:oo).importNode(i,!0);I2.currentNode=a;let o=I2.nextNode(),s=0,c=0,l=n[0];for(;l!==void 0;){if(s===l.index){let h;l.type===2?h=new H6(o,o.nextSibling,this,e):l.type===1?h=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(h=new OS(o,this,e)),this.u.push(h),l=n[++c]}s!==(l==null?void 0:l.index)&&(o=I2.nextNode(),s++)}return a}p(e){let t=0;for(const i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},H6=class Bz{constructor(e,t,i,n){var a;this.type=2,this._$AH=_t,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cm=(a=n==null?void 0:n.isConnected)===null||a===void 0||a}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cm}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&e.nodeType===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=so(this,e,t),Dc(e)?e===_t||e==null||e===""?(this._$AH!==_t&&this._$AR(),this._$AH=_t):e!==this._$AH&&e!==fr&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):SS(e)?this.k(e):this.g(e)}O(e,t=this._$AB){return this._$AA.parentNode.insertBefore(e,t)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}g(e){this._$AH!==_t&&Dc(this._$AH)?this._$AA.nextSibling.data=e:this.T(oo.createTextNode(e)),this._$AH=e}$(e){var t;const{values:i,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=gu.createElement(n.h,this.options)),n);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===a)this._$AH.p(i);else{const o=new DS(a,this),s=o.v(this.options);o.p(i),this.T(s),this._$AH=o}}_$AC(e){let t=H9.get(e.strings);return t===void 0&&H9.set(e.strings,t=new gu(e)),t}k(e){Oz(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const a of e)n===t.length?t.push(i=new Bz(this.O($c()),this.O($c()),this,this.options)):i=t[n],i._$AI(a),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,t);e&&e!==this._$AB;){const n=e.nextSibling;e.remove(),e=n}}setConnected(e){var t;this._$AM===void 0&&(this._$Cm=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}},E4=class{constructor(e,t,i,n,a){this.type=1,this._$AH=_t,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=_t}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,n){const a=this.strings;let o=!1;if(a===void 0)e=so(this,e,t,0),o=!Dc(e)||e!==this._$AH&&e!==fr,o&&(this._$AH=e);else{const s=e;let c,l;for(e=a[0],c=0;c<a.length-1;c++)l=so(this,s[i+c],t,c),l===fr&&(l=this._$AH[c]),o||(o=!Dc(l)||l!==this._$AH[c]),l===_t?e=_t:e!==_t&&(e+=(l??"")+a[c+1]),this._$AH[c]=l}o&&!n&&this.j(e)}j(e){e===_t?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},LS=class extends E4{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===_t?void 0:e}};const TS=ao?ao.emptyScript:"";let IS=class extends E4{constructor(){super(...arguments),this.type=4}j(e){e&&e!==_t?this.element.setAttribute(this.name,TS):this.element.removeAttribute(this.name)}},RS=class extends E4{constructor(e,t,i,n,a){super(e,t,i,n,a),this.type=5}_$AI(e,t=this){var i;if((e=(i=so(this,e,t,0))!==null&&i!==void 0?i:_t)===fr)return;const n=this._$AH,a=e===_t&&n!==_t||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==_t&&(n===_t||a);a&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}},OS=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){so(this,e)}};const k9=U0.litHtmlPolyfillSupport;k9==null||k9(gu,H6),((e5=U0.litHtmlVersions)!==null&&e5!==void 0?e5:U0.litHtmlVersions=[]).push("2.6.1");const NS=(r,e,t)=>{var i,n;const a=(i=t==null?void 0:t.renderBefore)!==null&&i!==void 0?i:e;let o=a._$litPart$;if(o===void 0){const s=(n=t==null?void 0:t.renderBefore)!==null&&n!==void 0?n:null;a._$litPart$=o=new H6(e.insertBefore($c(),s),s,void 0,t??{})}return o._$AI(r),o};/**
|
|
103
103
|
* @license
|
|
104
104
|
* Copyright 2017 Google LLC
|
|
105
105
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -159,7 +159,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
159
159
|
* @license
|
|
160
160
|
* Copyright 2017 Google LLC
|
|
161
161
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
162
|
-
*/function
|
|
162
|
+
*/function On(r){return ol({descriptor:e=>({async get(){var t;return await this.updateComplete,(t=this.renderRoot)===null||t===void 0?void 0:t.querySelector(r)},enumerable:!0,configurable:!0})})}/**
|
|
163
163
|
* @license
|
|
164
164
|
* Copyright 2021 Google LLC
|
|
165
165
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -407,7 +407,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
407
407
|
class="progress">
|
|
408
408
|
</circle>
|
|
409
409
|
</svg>
|
|
410
|
-
`}}g([y({type:String,reflect:!0})],ll.prototype,"size",void 0);g([y({type:String,reflect:!0})],ll.prototype,"color",void 0);ll.styles=u$;const Wz="fwc-circular-progress";let L9=class extends ll{};L9=g([Ve(Wz)],L9);const v$=B1(sl,Gz);B1(ll,Wz);B1(cl,Kz);const Yz=({children:r,text:e})=>G("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"100vw",height:"100vh",overflow:"hidden"},children:G(v$,{text:e,children:r})});var m$=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},f$=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},Dh;class p${constructor(e,t={}){this.config=t,Dh.set(this,void 0),m$(this,Dh,e,"f")}requireInstance(e){return f$(this,Dh,"f").requireInstance(e)}setAppClient(e,t=1*60*1e3){this.config.client={getAppManifest:typeof e.getAppManifest=="function"?{key:({appKey:i})=>i,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:i=>JSON.stringify(i),client:{fn:e.getAppConfig},expire:t}:e.getAppConfig}}}Dh=new WeakMap;const g$=()=>({setManifest:Gt("set_manifest",r=>({payload:r,meta:{created:Date.now()}})),fetchManifest:pn("fetch_manifest",r=>({payload:r}),r=>({payload:r}),r=>({payload:r})),setConfig:Gt("set_config",r=>({payload:r})),fetchConfig:pn("fetch_config",r=>({payload:r}),r=>({payload:r}),r=>({payload:r})),setModule:Gt("set_module",r=>({payload:r})),importApp:pn("import_app",r=>({payload:r}),r=>({payload:r}),r=>({payload:r})),setInstance:Gt("set_instance",r=>({payload:r})),initialize:pn("initialize_app",()=>({payload:null}),()=>({payload:null}),r=>({payload:r}))}),Te=g$();$k();const _$=r=>il(Object.assign(Object.assign({},r),{status:new Set}),e=>e.addCase(Te.setManifest,(t,i)=>{t.manifest=i.payload}).addCase(Te.setConfig,(t,i)=>{t.config=i.payload}).addCase(Te.setModule,(t,i)=>{t.modules=i.payload}).addCase(Te.setInstance,(t,i)=>{t.instance=i.payload}).addMatcher(xk,(t,i)=>{t.status.add($m(i))}).addMatcher(Hk,(t,i)=>{t.status.delete($m(i))})),z$="modulepreload",y$=function(r){return"/"+r},T9={},Qz=function(e,t,i){if(!t||t.length===0)return e();const n=document.getElementsByTagName("link");return Promise.all(t.map(a=>{if(a=y$(a),a in T9)return;T9[a]=!0;const o=a.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!i)for(let h=n.length-1;h>=0;h--){const d=n[h];if(d.href===a&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${s}`))return;const l=document.createElement("link");if(l.rel=o?"stylesheet":z$,o||(l.as="script",l.crossOrigin=""),l.href=a,document.head.appendChild(l),o)return new Promise((h,d)=>{l.addEventListener("load",h),l.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>e())},w$=r=>e=>e.pipe(Xt(Te.fetchManifest.match),L1(({payload:t})=>{const i=y1(r.getAppManifest(t)).pipe(Xt(n=>!!n),$e(Te.setManifest));return H_(i,i.pipe(t6(),$e(({payload:n})=>Te.fetchManifest.success(n)))).pipe(Z1(n=>An(Te.fetchManifest.failure(n))))})),b$=r=>e=>e.pipe(Xt(Te.fetchConfig.match),L1(({payload:t})=>{const i=y1(r.getAppConfig(t)).pipe($e(Te.setConfig));return H_(i,i.pipe(t6(),$e(({payload:n})=>Te.fetchConfig.success(n)))).pipe(Z1(n=>An(Te.fetchConfig.failure(n))))})),x$=()=>r=>r.pipe(Xt(Te.importApp.match),L1(({payload:e})=>y1(Qz(()=>import(e),[])).pipe($e(Te.importApp.success),Z1(t=>An(Te.importApp.failure(t)))))),M$=(r,e)=>{const t=_$(r),i=new M4(t);return i.addFlow(w$(e)),i.addFlow(b$(e)),i.addFlow(x$()),i};var C$=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})},ge=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},H$=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},_u,ve,Xz;function As(){return Xt(r=>r!=null)}class k${get manifest$(){return ge(this,ve,"f").pipe($e(({manifest:e})=>e),As())}get config$(){return ge(this,ve,"f").pipe($e(({config:e})=>e),As())}get modules$(){return ge(this,ve,"f").pipe($e(({modules:e})=>e),As())}get instance$(){return ge(this,ve,"f").pipe($e(({instance:e})=>e),As())}get state(){return ge(this,ve,"f").value}get appKey(){return ge(this,ve,"f").value.appKey}get manifest(){return this.state.manifest}get manifestAsync(){return Lr(this.manifest$)}get config(){return this.state.config}get configAsync(){return Lr(this.config$)}get instance(){return ge(this,ve,"f").value.instance}constructor(e,t){_u.add(this),ve.set(this,void 0),H$(this,ve,M$(e,t.provider),"f");const{appKey:i}=e,{event:n}=t;n&&ge(this,_u,"m",Xz).call(this,n);const a=new U1;n&&(a.add(()=>{n.dispatchEvent("onAppDispose",{detail:{appKey:i}})}),a.add(n.addEventListener("onAppModulesLoaded",o=>{o.detail.appKey===i&&ge(this,ve,"f").next(Te.setInstance(o.detail.modules))}))),this.dispose=()=>{a==null||a.unsubscribe(),ge(this,ve,"f").value.instance&&ge(this,ve,"f").value.instance.dispose(),ge(this,ve,"f").complete()}}initialize(){return new Ee(e=>{ge(this,ve,"f").next(Te.initialize()),e.add(ZM([this.getManifest(),this.getAppModule(),this.getConfig()]).subscribe({next:([t,i,n])=>e.next({manifest:t,script:i,config:n}),error:t=>{e.error(t),ge(this,ve,"f").next(Te.initialize.failure(t))},complete:()=>{ge(this,ve,"f").next(Te.initialize.success()),e.complete()}}))})}loadConfig(){ge(this,ve,"f").next(Te.fetchConfig(this.appKey))}loadManifest(){ge(this,ve,"f").next(Te.fetchManifest(this.appKey))}loadAppModule(e=!0){return C$(this,void 0,void 0,function*(){const t=yield this.getManifestAsync(e);ge(this,ve,"f").next(Te.importApp(t.entry))})}getConfig(e=!1){return new Ee(t=>{if(ge(this,ve,"f").value.config&&(t.next(ge(this,ve,"f").value.config),!e))return t.complete();t.add(ge(this,ve,"f").addEffect("set_config",({payload:i})=>{t.next(i)})),t.add(ge(this,ve,"f").addEffect("fetch_config::success",({payload:i})=>{t.next(i),t.complete()})),t.add(ge(this,ve,"f").addEffect("fetch_config::failure",({payload:i})=>{t.error(Error("failed to load application config",{cause:i}))})),this.loadConfig()})}getConfigAsync(e=!0){return(e?Lr:V1)(this.getConfig(!e))}getManifest(e=!1){return new Ee(t=>{if(ge(this,ve,"f").value.manifest&&(t.next(ge(this,ve,"f").value.manifest),!e))return t.complete();t.add(ge(this,ve,"f").addEffect("set_manifest",({payload:i})=>{t.next(i)})),t.add(ge(this,ve,"f").addEffect("fetch_manifest::success",({payload:i})=>{t.next(i),t.complete()})),t.add(ge(this,ve,"f").addEffect("fetch_manifest::failure",({payload:i})=>{t.error(Error("failed to load application manifest",{cause:i}))})),this.loadManifest()})}getManifestAsync(e=!0){return(e?Lr:V1)(this.getManifest(!e))}getAppModule(e=!1){return new Ee(t=>{if(ge(this,ve,"f").value.modules&&(t.next(ge(this,ve,"f").value.modules),!e))return t.complete();t.add(ge(this,ve,"f").addEffect("set_module",({payload:i})=>{t.next(i)})),t.add(ge(this,ve,"f").addEffect("import_app::success",({payload:i})=>{t.next(i),t.complete()})),t.add(ge(this,ve,"f").addEffect("import_app::failure",({payload:i})=>{t.error(Error("failed to load application modules from script",{cause:i}))})),t.add(this.getManifest().subscribe(i=>An(ge(this,ve,"f").next(Te.importApp(i.entry)))))})}getAppModuleAsync(e=!0){return(e?Lr:V1)(this.getAppModule(!e))}}ve=new WeakMap,_u=new WeakSet,Xz=function(e){const{appKey:t}=this;ge(this,ve,"f").addEffect(Te.fetchManifest.success.type,i=>{e.dispatchEvent("onAppManifestLoaded",{detail:{appKey:t,manifest:i.payload},source:this})}),ge(this,ve,"f").addEffect(Te.fetchConfig.success.type,i=>{e.dispatchEvent("onAppConfigLoaded",{detail:{appKey:t,manifest:i.payload},source:this})}),ge(this,ve,"f").addEffect(Te.importApp.success.type,i=>{e.dispatchEvent("onAppScriptLoaded",{detail:{appKey:t,manifest:i.payload},source:this})}),ge(this,ve,"f").addEffect(Te.initialize.type,()=>{e.dispatchEvent("onAppInitialize",{detail:{appKey:t},source:this})}),ge(this,ve,"f").addEffect(Te.initialize.success.type,()=>{e.dispatchEvent("onAppInitialized",{detail:{appKey:t},source:this})}),ge(this,ve,"f").addEffect(Te.initialize.failure.type,({payload:i})=>{e.dispatchEvent("onAppInitializeFailed",{detail:{appKey:t,error:i},source:this})})};class kn extends Error{static fromHttpResponse(e,t){switch(e.status){case 401:return new kn("unauthorized","failed to load application manifest, request not authorized",t);case 404:return new kn("not_found","application manifest not found",t)}return new kn("unknown",`failed to load application manifest, status code ${e.status}`,t)}constructor(e,t,i){super(t,i),this.type=e}}class Ma extends Error{static fromHttpResponse(e,t){switch(e.status){case 401:return new Ma("unauthorized","failed to load application config, request not authorized",t);case 404:return new Ma("not_found","application config not found",t)}return new Ma("unknown",`failed to load application config, status code ${e.status}`,t)}constructor(e,t,i){super(t,i),this.type=e}}var s1=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},Zl=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},Vs,Ss,Ji,Zi,Lh;class E${static compareAppManifest(e,t){return JSON.stringify(e)===JSON.stringify(t)}get current(){return s1(this,Ji,"f").value}get current$(){return s1(this,Ji,"f").pipe(k_((e,t)=>e&&t?e.appKey===t.appKey:e===t))}constructor(e){Vs.set(this,void 0),Ss.set(this,void 0),Ji.set(this,void 0),Zi.set(this,new U1),Lh.set(this,void 0);const{event:t,config:i}=e;Zl(this,Lh,t,"f"),Zl(this,Ji,new Do(void 0),"f"),this.appClient=new h1(i.client.getAppManifest),Zl(this,Vs,new h1(i.client.getAppManifests),"f"),Zl(this,Ss,new h1(i.client.getAppConfig),"f"),s1(this,Zi,"f").add(()=>this.appClient.complete()),s1(this,Zi,"f").add(()=>s1(this,Vs,"f").complete()),s1(this,Zi,"f").add(()=>s1(this,Ss,"f").complete()),s1(this,Zi,"f").add(this.current$.pipe(O3(),P_(()=>!!t)).subscribe(([n,a])=>{t==null||t.dispatchEvent("onCurrentAppChanged",{source:this,detail:{previous:n,next:a}})})),s1(this,Zi,"f").add(s1(this,Ji,"f").pipe(O3(),$e(([n])=>n),As()).subscribe(n=>n.dispose()))}getAppManifest(e){return h1.extractQueryValue(this.appClient.query({appKey:e}).pipe(Z1(t=>{const{cause:i}=t;throw i instanceof kn?i:i instanceof U3?kn.fromHttpResponse(i.response,{cause:i}):new kn("unknown","failed to load manifest",{cause:i})})))}getAllAppManifests(){return h1.extractQueryValue(s1(this,Vs,"f").query())}getAppConfig(e,t){return h1.extractQueryValue(s1(this,Ss,"f").query({appKey:e,tag:t}).pipe(Z1(i=>{const{cause:n}=i;throw n instanceof Ma?n:n instanceof U3?Ma.fromHttpResponse(n.response,{cause:n}):new Ma("unknown","failed to load config",{cause:n})})))}setCurrentApp(e){const t=typeof e=="string"?this.createApp({appKey:e}):e;s1(this,Ji,"f").next(t)}clearCurrentApp(){s1(this,Ji,"f").next(null)}createApp(e){return new k$(e,{provider:this,event:s1(this,Lh,"f")})}dispose(){s1(this,Zi,"f").unsubscribe()}}Vs=new WeakMap,Ss=new WeakMap,Ji=new WeakMap,Zi=new WeakMap,Lh=new WeakMap;var P$=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const zu="app",A$={name:zu,configure:()=>new V$,initialize:r=>P$(void 0,void 0,void 0,function*(){const e=yield r.config.createConfig(r),t=yield r.requireInstance("event").catch(()=>{});return new E$({config:e,event:t})}),dispose:r=>{r.instance.dispose()}};var eh=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})},I9=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},Th;class V${constructor(){this.defaultExpireTime=1*60*1e3,Th.set(this,[])}addConfigBuilder(e){I9(this,Th,"f").push(e)}_createHttpClient(e){return eh(this,void 0,void 0,function*(){const t=yield e.requireInstance("http");if(t.hasClient(zu))return t.createClient(zu);{const i=yield e.requireInstance("serviceDiscovery");try{return yield i.createClient("app")}catch{return yield i.createClient("portal")}}})}createConfig(e){var t;return eh(this,void 0,void 0,function*(){const i=yield I9(this,Th,"f").reduce((n,a)=>eh(this,void 0,void 0,function*(){const o=new p$(e,yield n);return yield Promise.resolve(a(o)),Object.assign(n,o.config)}),Promise.resolve({}));return(t=i.client)!==null&&t!==void 0||(i.client=yield(()=>eh(this,void 0,void 0,function*(){const n=yield this._createHttpClient(e);return{getAppManifest:{client:{fn:({appKey:a})=>n.json$(`/api/apps/${a}`)},key:({appKey:a})=>a,expire:this.defaultExpireTime},getAppManifests:{client:{fn:()=>n.json$("/api/apps")},key:()=>"manifests",expire:this.defaultExpireTime},getAppConfig:{client:{fn:({appKey:a,tag:o})=>n.json$(`/api/apps/${a}/config${o?`?tag=${o}`:""}`)},key:a=>JSON.stringify(a),expire:this.defaultExpireTime}}}))()),i})}}Th=new WeakMap;const S$=(r,e)=>{r.addConfig({module:A$,configure:t=>{e&&t.addConfigBuilder(e)}})},$$="bookmarkId",D$=()=>new URLSearchParams(document.location.search).get($$);var L$=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},T$=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},Ih;class I${constructor(e,t={}){this.config=t,Ih.set(this,void 0),L$(this,Ih,e,"f")}requireInstance(e){return T$(this,Ih,"f").requireInstance(e)}setSourceSystem(e){this.config.sourceSystem=e}setBookmarkIdResolver(e){this.config.resolveBookmarkId=e}serCustomBookmarkApiClient(e){this.config.clientConfiguration&&(this.config.clientConfiguration.client=e)}setContextIdResolver(e){this.config.getContextId=e}setCurrentAppIdResolver(e){this.config.getCurrentAppIdentification=e}setEventProvider(e){this.config.event=e}setBookmarkQueryClient(e){this.config.clientConfiguration&&(this.config.clientConfiguration.queryClientConfig={getAllBookmarks:typeof e.getAllBookmarks=="function"?{key:()=>"all-bookmarks",client:{fn:e.getAllBookmarks},validate:({args:i})=>i.isValid}:e.getAllBookmarks,getBookmarkById:typeof e.getBookmarkById=="function"?{key:({id:i})=>i,client:{fn:e.getBookmarkById},expire:6e4,validate:()=>!1}:e.getBookmarkById})}}Ih=new WeakMap;var Kn=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})},n5=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},yu,Rh,Jz;class R${constructor(){yu.add(this),this.defaultExpireTime=1*60*1e3,Rh.set(this,[])}addConfigBuilder(e){n5(this,Rh,"f").push(e)}createConfig(e,t){return Kn(this,void 0,void 0,function*(){const i=yield n5(this,Rh,"f").reduce((a,o)=>Kn(this,void 0,void 0,function*(){const s=new I$(e,yield a);return yield Promise.resolve(o(s)),Object.assign(a,s.config)}),Promise.resolve({})),n=yield this._getAppProvider(e);if(n5(this,yu,"m",Jz).call(this,t,i),i.resolveBookmarkId||(i.resolveBookmarkId=D$),i.getCurrentAppIdentification||(i.getCurrentAppIdentification=()=>{var a;return(a=n.current)===null||a===void 0?void 0:a.appKey}),!i.getContextId){const a=yield this._getContextProvider(e);i.getContextId=()=>{var o;return(o=a.currentContext)===null||o===void 0?void 0:o.id}}if(!i.event){const a=yield this._getEventProvider(e);i.event=a}if(i.clientConfiguration=yield this._createClientConfiguration(e,i.clientConfiguration),!i.sourceSystem)throw Error("missing sourceSystem configuration");return i})}_createClientConfiguration(e,t={}){return Kn(this,void 0,void 0,function*(){if(!t.client){const i=yield this._getServiceProvider(e);t.client=yield i.createBookmarksClient("fetch")}if(!t.queryClientConfig){const n=yield(yield this._getServiceProvider(e)).createBookmarksClient("json$");t.queryClientConfig=Object.assign({getBookmarkById:{client:{fn:a=>n.get("v1",a)},key:({id:a})=>a,expire:this.defaultExpireTime},getAllBookmarks:{client:{fn:()=>n.getAll("v1")},key:()=>"all-bookmarks",validate:({args:a})=>a.isValid,expire:this.defaultExpireTime}},n)}return t})}_getServiceProvider(e){var t;return Kn(this,void 0,void 0,function*(){if(e.hasModule("services"))return e.requireInstance("services");{const i=(t=e.ref)===null||t===void 0?void 0:t.services;if(i)return i;throw Error("[BookmarkConfigurator] No service provider configures [ServicesModule] ")}})}_getContextProvider(e){var t;return Kn(this,void 0,void 0,function*(){if(e.hasModule("context"))return e.requireInstance("context");{const i=(t=e.ref)===null||t===void 0?void 0:t.context;if(i)return i;throw Error("[BookmarkConfigurator] No context provider configures [ContextModule]")}})}_getAppProvider(e){var t;return Kn(this,void 0,void 0,function*(){if(e.hasModule("app"))return e.requireInstance("app");{const i=(t=e.ref)===null||t===void 0?void 0:t.app;if(i)return i;throw Error("[BookmarkConfigurator] No app provider configures [AppModule]")}})}_getEventProvider(e){var t;return Kn(this,void 0,void 0,function*(){if(e.hasModule("event"))return e.requireInstance("event");{const i=(t=e.ref)===null||t===void 0?void 0:t.event;if(i)return i;throw Error("[BookmarkConfigurator] No event provider configures [EventModule]")}})}}Rh=new WeakMap,yu=new WeakSet,Jz=function(e,t){e&&(t.clientConfiguration=e.config.clientConfiguration,t.sourceSystem=e.config.sourceSystem,t.getContextId=e.config.getContextId,t.getCurrentAppIdentification=e.config.getCurrentAppIdentification)};const I1={getAll:pn("getAll",r=>({payload:r}),r=>({payload:r}),r=>({payload:r})),delete:pn("delete",r=>({payload:r}),r=>({payload:r})),update:pn("update",r=>({payload:r}),r=>({payload:r})),create:pn("create",r=>({payload:r}),r=>({payload:r}),r=>({payload:r}))},O$={bookmarks:{}},N$=il(O$,r=>{r.addCase(I1.create.success,(e,{payload:t})=>{e.bookmarks[t.id]=t}).addCase(I1.getAll.success,(e,{payload:t})=>{t.forEach(i=>{e.bookmarks[i.id]=i})}).addCase(I1.delete.success,(e,{payload:t})=>{delete e.bookmarks[t]}).addCase(I1.update.success,(e,{payload:t})=>{e.bookmarks[t.id]=t})});var k6=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const U$=(r,e)=>t=>t.pipe(To(I1.getAll.type),L1(i=>r.query({isValid:i.payload}).pipe($e(n=>I1.getAll.success(n.value.filter(a=>a.sourceSystem.identifier===e))),Z1(()=>Ui)))),F$=r=>e=>e.pipe(To(I1.create.type),L1(t=>k6(void 0,void 0,void 0,function*(){const i=yield r.post("v1",t.payload);return I1.create.success(yield i.json())}))),R9=r=>e=>e.pipe(To(I1.update.type),L1(t=>k6(void 0,void 0,void 0,function*(){const i=yield r.patch("v1",t.payload);return I1.update.success(yield i.json())}))),B$=r=>e=>e.pipe(To(I1.delete.type),L1(t=>k6(void 0,void 0,void 0,function*(){return(yield r.delete("v1",{id:t.payload})).ok,I1.delete.success(t.payload)})));var Yr=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})},Wn=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},J=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},Oh,a2,F0,Dr,Zr,B0,gn,ut,Hi,Zz,ey;class j${constructor(e,t,i){Oh.add(this),a2.set(this,void 0),F0.set(this,void 0),Dr.set(this,void 0),Zr.set(this,void 0),B0.set(this,void 0),gn.set(this,void 0),ut.set(this,void 0),Hi.set(this,new U1),Wn(this,Zr,new Do(void 0),"f"),Wn(this,Dr,e.client,"f"),Wn(this,a2,new h1(e.queryClientConfig.getBookmarkById),"f"),Wn(this,F0,new h1(e.queryClientConfig.getAllBookmarks),"f"),Wn(this,B0,t,"f"),Wn(this,gn,i,"f"),Wn(this,ut,Uk(I1,N$),"f"),J(this,Oh,"m",ey).call(this),J(this,Oh,"m",Zz).call(this),i&&J(this,Hi,"f").add(J(this,Zr,"f").subscribe(n=>{i.dispatchEvent("onBookmarkChanged",{detail:n,canBubble:!0,source:this})}))}get currentBookmark$(){return J(this,Zr,"f").asObservable()}get bookmarks$(){return J(this,ut,"f").subject.pipe($e(e=>Object.values(e.bookmarks).map(t=>t)))}setCurrentBookmark(e){return Yr(this,void 0,void 0,function*(){if(!e)return J(this,Zr,"f").next(void 0);if(typeof e=="string"){const t=yield this.resolverBookmarkAsync(e);return this.setBookmark(t)}else if(e!==J(this,Zr,"f").value)return this.setBookmark(e)})}setBookmark(e){return Yr(this,void 0,void 0,function*(){J(this,gn,"f")?(yield J(this,gn,"f").dispatchEvent("onBookmarkChange",{detail:e,cancelable:!0,canBubble:!0,source:this})).canceled||J(this,Zr,"f").next(e):J(this,Zr,"f").next(e)})}resolverBookmark(e){return J(this,a2,"f").query({id:e}).pipe($e(t=>t.value))}resolverBookmarkAsync(e){return V1(this.resolverBookmark(e))}getAllBookmarks(e={isValid:!1}){const{isValid:t}=e;return new Ee(i=>{J(this,ut,"f").dispatch.getAll(t),i.add(J(this,ut,"f").subject.addEffect("getAll::success",n=>{i.next(n.payload),i.complete()}))})}getAllBookmarksAsync(e={isValid:!1}){return Yr(this,void 0,void 0,function*(){return V1(this.getAllBookmarks(e))})}getBookmarkById(e){return Yr(this,void 0,void 0,function*(){return yield(yield J(this,Dr,"f").get("v1",{id:e})).json()})}createBookmark(e){return new Ee(t=>{J(this,ut,"f").dispatch.create(e),t.add(J(this,ut,"f").subject.addEffect("create::success",i=>{t.next(i.payload),t.complete()})),t.add(J(this,ut,"f").subject.addEffect("create::failure",i=>{t.error(i.payload)}))})}createBookmarkAsync(e){return Yr(this,void 0,void 0,function*(){return V1(this.createBookmark(e))})}updateBookmark(e){return new Ee(t=>{J(this,ut,"f").dispatch.update(e),t.add(J(this,ut,"f").subject.addEffect("update::success",i=>{t.next(i.payload),t.complete(),J(this,a2,"f").cache.invalidate(i.payload.id)}))})}updateBookmarkAsync(e){return Yr(this,void 0,void 0,function*(){return V1(this.updateBookmark(e))})}deleteBookmarkById(e){return new Ee(t=>{J(this,ut,"f").dispatch.delete(e),t.add(J(this,ut,"f").subject.addEffect("delete::success",i=>{t.next(i.payload),t.complete(),J(this,a2,"f").cache.invalidate(i.payload)}))})}deleteBookmarkByIdAsync(e){return Yr(this,void 0,void 0,function*(){return V1(this.deleteBookmarkById(e))})}addBookmarkFavoriteAsync(e){return Yr(this,void 0,void 0,function*(){J(this,Dr,"f").addFavorite("v1",{bookmarkId:e})})}removeBookmarkFavoriteAsync(e){return Yr(this,void 0,void 0,function*(){J(this,Dr,"f").removeFavorite("v1",{bookmarkId:e})})}verifyBookmarkFavoriteAsync(e){return Yr(this,void 0,void 0,function*(){return!!(yield J(this,Dr,"f").verifyFavorite("v1",{bookmarkId:e})).ok})}dispose(){J(this,Hi,"f").unsubscribe()}}a2=new WeakMap,F0=new WeakMap,Dr=new WeakMap,Zr=new WeakMap,B0=new WeakMap,gn=new WeakMap,ut=new WeakMap,Hi=new WeakMap,Oh=new WeakSet,Zz=function(){J(this,ut,"f").subject.addEffect("create::success",e=>{var t;J(this,Zr,"f").next(e.payload),(t=J(this,gn,"f"))===null||t===void 0||t.dispatchEvent("onBookmarkCreated",{detail:e.payload,canBubble:!0,source:this})}),J(this,ut,"f").subject.addEffect("delete::success",e=>{var t;(t=J(this,gn,"f"))===null||t===void 0||t.dispatchEvent("onBookmarkDeleted",{detail:e.payload,canBubble:!0,source:this})}),J(this,ut,"f").subject.addEffect("update::success",e=>{var t;(t=J(this,gn,"f"))===null||t===void 0||t.dispatchEvent("onBookmarkUpdated",{detail:e.payload,canBubble:!0,source:this})})},ey=function(){J(this,Hi,"f").add(J(this,ut,"f").subject.addFlow(U$(J(this,F0,"f"),J(this,B0,"f").identifier))),J(this,Hi,"f").add(J(this,ut,"f").subject.addFlow(F$(J(this,Dr,"f")))),J(this,Hi,"f").add(J(this,ut,"f").subject.addFlow(B$(J(this,Dr,"f")))),J(this,Hi,"f").add(J(this,ut,"f").subject.addFlow(R9(J(this,Dr,"f")))),J(this,Hi,"f").add(J(this,ut,"f").subject.addFlow(R9(J(this,Dr,"f"))))};var ei=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})},q$=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},Hr=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},o2,ha,Nh,wu,bu,xu;class G${get currentBookmark$(){return this._bookmarkClient.currentBookmark$}get bookmarks$(){return this._bookmarkClient.bookmarks$}constructor(e,t){o2.add(this),ha.set(this,void 0),Nh.set(this,new U1),this.bookmarkCreators={},wu.set(this,()=>{this.bookmarkCreators={}}),this.config=e,q$(this,ha,e.event,"f"),this._bookmarkClient=t?t._bookmarkClient:new j$(e.clientConfiguration,e.sourceSystem,e.event);const i=e.resolveBookmarkId&&e.resolveBookmarkId();i&&this._bookmarkClient.setCurrentBookmark(i),Hr(this,ha,"f")&&Hr(this,Nh,"f").add(Hr(this,ha,"f").addEventListener("onCurrentAppChanged",Hr(this,wu,"f")))}getBookmarkById(e){return ei(this,void 0,void 0,function*(){return yield this._bookmarkClient.getBookmarkById(e)})}setCurrentBookmark(e){return ei(this,void 0,void 0,function*(){this._bookmarkClient.setCurrentBookmark(e)})}getAllBookmarks(){return this._bookmarkClient.getAllBookmarks()}getAllBookmarksAsync(){return ei(this,void 0,void 0,function*(){return this._bookmarkClient.getAllBookmarksAsync()})}updateBookmark(e){return this._bookmarkClient.updateBookmark(e)}updateBookmarkAsync(e,t){return ei(this,void 0,void 0,function*(){if(Hr(this,o2,"m",xu).call(this)===e.appKey)return t!=null&&t.updatePayload&&(e.payload=yield Hr(this,o2,"m",bu).call(this)),this._bookmarkClient.updateBookmarkAsync(e)})}deleteBookmarkById(e){return this._bookmarkClient.deleteBookmarkById(e)}deleteBookmarkByIdAsync(e){return this._bookmarkClient.deleteBookmarkByIdAsync(e)}addBookmarkFavoriteAsync(e){return ei(this,void 0,void 0,function*(){yield this._bookmarkClient.addBookmarkFavoriteAsync(e)})}removeBookmarkFavoriteAsync(e){return ei(this,void 0,void 0,function*(){yield this._bookmarkClient.removeBookmarkFavoriteAsync(e)})}verifyBookmarkFavoriteAsync(e){return ei(this,void 0,void 0,function*(){return yield this._bookmarkClient.verifyBookmarkFavoriteAsync(e)})}addStateCreator(e,t){var i;const n=t||"#creator";return Hr(this,ha,"f")&&((i=Hr(this,ha,"f"))===null||i===void 0||i.dispatchEvent("onAddCreator",{source:this,canBubble:!0,detail:{key:t,cb:e}})),this.bookmarkCreators[n]=e,()=>{delete this.bookmarkCreators[n]}}createBookmark(e){return ei(this,void 0,void 0,function*(){const t=yield Hr(this,o2,"m",bu).call(this),i=this.config.getContextId&&this.config.getContextId(),n=Hr(this,o2,"m",xu).call(this),a=Object.assign(Object.assign({},e),{appKey:n,contextId:i,sourceSystem:this.config.sourceSystem,payload:t});return this._bookmarkClient.createBookmarkAsync(a)})}dispose(){Hr(this,Nh,"f").unsubscribe(),this._bookmarkClient.dispose()}}ha=new WeakMap,Nh=new WeakMap,wu=new WeakMap,o2=new WeakSet,bu=function(){return ei(this,void 0,void 0,function*(){const e=this.bookmarkCreators;if(!e||Object.keys(e).length===0)throw Error("No creator registered on this BookmarkProvider");return typeof e["#creator"]=="function"?e["#creator"]():yield Object.entries(e).reduce((t,[i,n])=>ei(this,void 0,void 0,function*(){return Object.assign(yield t,{[i]:yield n()})}),Promise.resolve({}))})},xu=function(){const e=this.config.getCurrentAppIdentification&&this.config.getCurrentAppIdentification();if(!e)throw new Error("There is noe current application selected, can't create bookmark.");return e};var K$=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const W$="bookmark",Y$={name:W$,configure:()=>new R$,initialize:r=>K$(void 0,void 0,void 0,function*(){var e;const t=(e=r.ref)===null||e===void 0?void 0:e.bookmark,i=yield r.config.createConfig(r,t);return new G$(i,t)}),dispose:r=>{r.instance.dispose()}},Q$=(r,e)=>{r.addConfig({module:Y$,configure:t=>{e&&t.addConfigBuilder(e)}})};class X${}/**
|
|
410
|
+
`}}g([y({type:String,reflect:!0})],ll.prototype,"size",void 0);g([y({type:String,reflect:!0})],ll.prototype,"color",void 0);ll.styles=u$;const Wz="fwc-circular-progress";let L9=class extends ll{};L9=g([Ve(Wz)],L9);const v$=B1(sl,Gz);B1(ll,Wz);B1(cl,Kz);const Yz=({children:r,text:e})=>G("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",width:"100vw",height:"100vh",overflow:"hidden"},children:G(v$,{text:e,children:r})});var m$=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},f$=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},Dh;class p${constructor(e,t={}){this.config=t,Dh.set(this,void 0),m$(this,Dh,e,"f")}requireInstance(e){return f$(this,Dh,"f").requireInstance(e)}setAppClient(e,t=1*60*1e3){this.config.client={getAppManifest:typeof e.getAppManifest=="function"?{key:({appKey:i})=>i,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:i=>JSON.stringify(i),client:{fn:e.getAppConfig},expire:t}:e.getAppConfig}}}Dh=new WeakMap;const g$=()=>({setManifest:Gt("set_manifest",r=>({payload:r,meta:{created:Date.now()}})),fetchManifest:gn("fetch_manifest",r=>({payload:r}),r=>({payload:r}),r=>({payload:r})),setConfig:Gt("set_config",r=>({payload:r})),fetchConfig:gn("fetch_config",r=>({payload:r}),r=>({payload:r}),r=>({payload:r})),setModule:Gt("set_module",r=>({payload:r})),importApp:gn("import_app",r=>({payload:r}),r=>({payload:r}),r=>({payload:r})),setInstance:Gt("set_instance",r=>({payload:r})),initialize:gn("initialize_app",()=>({payload:null}),()=>({payload:null}),r=>({payload:r}))}),Te=g$();$k();const _$=r=>il(Object.assign(Object.assign({},r),{status:new Set}),e=>e.addCase(Te.setManifest,(t,i)=>{t.manifest=i.payload}).addCase(Te.setConfig,(t,i)=>{t.config=i.payload}).addCase(Te.setModule,(t,i)=>{t.modules=i.payload}).addCase(Te.setInstance,(t,i)=>{t.instance=i.payload}).addMatcher(xk,(t,i)=>{t.status.add($m(i))}).addMatcher(Hk,(t,i)=>{t.status.delete($m(i))})),z$="modulepreload",y$=function(r){return"/"+r},T9={},Qz=function(e,t,i){if(!t||t.length===0)return e();const n=document.getElementsByTagName("link");return Promise.all(t.map(a=>{if(a=y$(a),a in T9)return;T9[a]=!0;const o=a.endsWith(".css"),s=o?'[rel="stylesheet"]':"";if(!!i)for(let h=n.length-1;h>=0;h--){const d=n[h];if(d.href===a&&(!o||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${a}"]${s}`))return;const l=document.createElement("link");if(l.rel=o?"stylesheet":z$,o||(l.as="script",l.crossOrigin=""),l.href=a,document.head.appendChild(l),o)return new Promise((h,d)=>{l.addEventListener("load",h),l.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${a}`)))})})).then(()=>e())},w$=r=>e=>e.pipe(Xt(Te.fetchManifest.match),L1(({payload:t})=>{const i=y1(r.getAppManifest(t)).pipe(Xt(n=>!!n),$e(Te.setManifest));return H_(i,i.pipe(t6(),$e(({payload:n})=>Te.fetchManifest.success(n)))).pipe(Z1(n=>Vn(Te.fetchManifest.failure(n))))})),b$=r=>e=>e.pipe(Xt(Te.fetchConfig.match),L1(({payload:t})=>{const i=y1(r.getAppConfig(t)).pipe($e(Te.setConfig));return H_(i,i.pipe(t6(),$e(({payload:n})=>Te.fetchConfig.success(n)))).pipe(Z1(n=>Vn(Te.fetchConfig.failure(n))))})),x$=()=>r=>r.pipe(Xt(Te.importApp.match),L1(({payload:e})=>y1(Qz(()=>import(e),[])).pipe($e(Te.importApp.success),Z1(t=>Vn(Te.importApp.failure(t)))))),M$=(r,e)=>{const t=_$(r),i=new M4(t);return i.addFlow(w$(e)),i.addFlow(b$(e)),i.addFlow(x$()),i};var C$=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})},ge=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},H$=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},_u,ve,Xz;function As(){return Xt(r=>r!=null)}class k${get manifest$(){return ge(this,ve,"f").pipe($e(({manifest:e})=>e),As())}get config$(){return ge(this,ve,"f").pipe($e(({config:e})=>e),As())}get modules$(){return ge(this,ve,"f").pipe($e(({modules:e})=>e),As())}get instance$(){return ge(this,ve,"f").pipe($e(({instance:e})=>e),As())}get state(){return ge(this,ve,"f").value}get appKey(){return ge(this,ve,"f").value.appKey}get manifest(){return this.state.manifest}get manifestAsync(){return Lr(this.manifest$)}get config(){return this.state.config}get configAsync(){return Lr(this.config$)}get instance(){return ge(this,ve,"f").value.instance}constructor(e,t){_u.add(this),ve.set(this,void 0),H$(this,ve,M$(e,t.provider),"f");const{appKey:i}=e,{event:n}=t;n&&ge(this,_u,"m",Xz).call(this,n);const a=new U1;n&&(a.add(()=>{n.dispatchEvent("onAppDispose",{detail:{appKey:i}})}),a.add(n.addEventListener("onAppModulesLoaded",o=>{o.detail.appKey===i&&ge(this,ve,"f").next(Te.setInstance(o.detail.modules))}))),this.dispose=()=>{a==null||a.unsubscribe(),ge(this,ve,"f").value.instance&&ge(this,ve,"f").value.instance.dispose(),ge(this,ve,"f").complete()}}initialize(){return new Ee(e=>{ge(this,ve,"f").next(Te.initialize()),e.add(ZM([this.getManifest(),this.getAppModule(),this.getConfig()]).subscribe({next:([t,i,n])=>e.next({manifest:t,script:i,config:n}),error:t=>{e.error(t),ge(this,ve,"f").next(Te.initialize.failure(t))},complete:()=>{ge(this,ve,"f").next(Te.initialize.success()),e.complete()}}))})}loadConfig(){ge(this,ve,"f").next(Te.fetchConfig(this.appKey))}loadManifest(){ge(this,ve,"f").next(Te.fetchManifest(this.appKey))}loadAppModule(e=!0){return C$(this,void 0,void 0,function*(){const t=yield this.getManifestAsync(e);ge(this,ve,"f").next(Te.importApp(t.entry))})}getConfig(e=!1){return new Ee(t=>{if(ge(this,ve,"f").value.config&&(t.next(ge(this,ve,"f").value.config),!e))return t.complete();t.add(ge(this,ve,"f").addEffect("set_config",({payload:i})=>{t.next(i)})),t.add(ge(this,ve,"f").addEffect("fetch_config::success",({payload:i})=>{t.next(i),t.complete()})),t.add(ge(this,ve,"f").addEffect("fetch_config::failure",({payload:i})=>{t.error(Error("failed to load application config",{cause:i}))})),this.loadConfig()})}getConfigAsync(e=!0){return(e?Lr:V1)(this.getConfig(!e))}getManifest(e=!1){return new Ee(t=>{if(ge(this,ve,"f").value.manifest&&(t.next(ge(this,ve,"f").value.manifest),!e))return t.complete();t.add(ge(this,ve,"f").addEffect("set_manifest",({payload:i})=>{t.next(i)})),t.add(ge(this,ve,"f").addEffect("fetch_manifest::success",({payload:i})=>{t.next(i),t.complete()})),t.add(ge(this,ve,"f").addEffect("fetch_manifest::failure",({payload:i})=>{t.error(Error("failed to load application manifest",{cause:i}))})),this.loadManifest()})}getManifestAsync(e=!0){return(e?Lr:V1)(this.getManifest(!e))}getAppModule(e=!1){return new Ee(t=>{if(ge(this,ve,"f").value.modules&&(t.next(ge(this,ve,"f").value.modules),!e))return t.complete();t.add(ge(this,ve,"f").addEffect("set_module",({payload:i})=>{t.next(i)})),t.add(ge(this,ve,"f").addEffect("import_app::success",({payload:i})=>{t.next(i),t.complete()})),t.add(ge(this,ve,"f").addEffect("import_app::failure",({payload:i})=>{t.error(Error("failed to load application modules from script",{cause:i}))})),t.add(this.getManifest().subscribe(i=>Vn(ge(this,ve,"f").next(Te.importApp(i.entry)))))})}getAppModuleAsync(e=!0){return(e?Lr:V1)(this.getAppModule(!e))}}ve=new WeakMap,_u=new WeakSet,Xz=function(e){const{appKey:t}=this;ge(this,ve,"f").addEffect(Te.fetchManifest.success.type,i=>{e.dispatchEvent("onAppManifestLoaded",{detail:{appKey:t,manifest:i.payload},source:this})}),ge(this,ve,"f").addEffect(Te.fetchConfig.success.type,i=>{e.dispatchEvent("onAppConfigLoaded",{detail:{appKey:t,manifest:i.payload},source:this})}),ge(this,ve,"f").addEffect(Te.importApp.success.type,i=>{e.dispatchEvent("onAppScriptLoaded",{detail:{appKey:t,manifest:i.payload},source:this})}),ge(this,ve,"f").addEffect(Te.initialize.type,()=>{e.dispatchEvent("onAppInitialize",{detail:{appKey:t},source:this})}),ge(this,ve,"f").addEffect(Te.initialize.success.type,()=>{e.dispatchEvent("onAppInitialized",{detail:{appKey:t},source:this})}),ge(this,ve,"f").addEffect(Te.initialize.failure.type,({payload:i})=>{e.dispatchEvent("onAppInitializeFailed",{detail:{appKey:t,error:i},source:this})})};class En extends Error{static fromHttpResponse(e,t){switch(e.status){case 401:return new En("unauthorized","failed to load application manifest, request not authorized",t);case 404:return new En("not_found","application manifest not found",t)}return new En("unknown",`failed to load application manifest, status code ${e.status}`,t)}constructor(e,t,i){super(t,i),this.type=e}}class Ma extends Error{static fromHttpResponse(e,t){switch(e.status){case 401:return new Ma("unauthorized","failed to load application config, request not authorized",t);case 404:return new Ma("not_found","application config not found",t)}return new Ma("unknown",`failed to load application config, status code ${e.status}`,t)}constructor(e,t,i){super(t,i),this.type=e}}var s1=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},Zl=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},Vs,Ss,Zi,en,Lh;class E${static compareAppManifest(e,t){return JSON.stringify(e)===JSON.stringify(t)}get current(){return s1(this,Zi,"f").value}get current$(){return s1(this,Zi,"f").pipe(k_((e,t)=>e&&t?e.appKey===t.appKey:e===t))}constructor(e){Vs.set(this,void 0),Ss.set(this,void 0),Zi.set(this,void 0),en.set(this,new U1),Lh.set(this,void 0);const{event:t,config:i}=e;Zl(this,Lh,t,"f"),Zl(this,Zi,new Do(void 0),"f"),this.appClient=new h1(i.client.getAppManifest),Zl(this,Vs,new h1(i.client.getAppManifests),"f"),Zl(this,Ss,new h1(i.client.getAppConfig),"f"),s1(this,en,"f").add(()=>this.appClient.complete()),s1(this,en,"f").add(()=>s1(this,Vs,"f").complete()),s1(this,en,"f").add(()=>s1(this,Ss,"f").complete()),s1(this,en,"f").add(this.current$.pipe(O3(),P_(()=>!!t)).subscribe(([n,a])=>{t==null||t.dispatchEvent("onCurrentAppChanged",{source:this,detail:{previous:n,next:a}})})),s1(this,en,"f").add(s1(this,Zi,"f").pipe(O3(),$e(([n])=>n),As()).subscribe(n=>n.dispose()))}getAppManifest(e){return h1.extractQueryValue(this.appClient.query({appKey:e}).pipe(Z1(t=>{const{cause:i}=t;throw i instanceof En?i:i instanceof U3?En.fromHttpResponse(i.response,{cause:i}):new En("unknown","failed to load manifest",{cause:i})})))}getAllAppManifests(){return h1.extractQueryValue(s1(this,Vs,"f").query())}getAppConfig(e,t){return h1.extractQueryValue(s1(this,Ss,"f").query({appKey:e,tag:t}).pipe(Z1(i=>{const{cause:n}=i;throw n instanceof Ma?n:n instanceof U3?Ma.fromHttpResponse(n.response,{cause:n}):new Ma("unknown","failed to load config",{cause:n})})))}setCurrentApp(e){const t=typeof e=="string"?this.createApp({appKey:e}):e;s1(this,Zi,"f").next(t)}clearCurrentApp(){s1(this,Zi,"f").next(null)}createApp(e){return new k$(e,{provider:this,event:s1(this,Lh,"f")})}dispose(){s1(this,en,"f").unsubscribe()}}Vs=new WeakMap,Ss=new WeakMap,Zi=new WeakMap,en=new WeakMap,Lh=new WeakMap;var P$=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const zu="app",A$={name:zu,configure:()=>new V$,initialize:r=>P$(void 0,void 0,void 0,function*(){const e=yield r.config.createConfig(r),t=yield r.requireInstance("event").catch(()=>{});return new E$({config:e,event:t})}),dispose:r=>{r.instance.dispose()}};var eh=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})},I9=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},Th;class V${constructor(){this.defaultExpireTime=1*60*1e3,Th.set(this,[])}addConfigBuilder(e){I9(this,Th,"f").push(e)}_createHttpClient(e){return eh(this,void 0,void 0,function*(){const t=yield e.requireInstance("http");if(t.hasClient(zu))return t.createClient(zu);{const i=yield e.requireInstance("serviceDiscovery");try{return yield i.createClient("app")}catch{return yield i.createClient("portal")}}})}createConfig(e){var t;return eh(this,void 0,void 0,function*(){const i=yield I9(this,Th,"f").reduce((n,a)=>eh(this,void 0,void 0,function*(){const o=new p$(e,yield n);return yield Promise.resolve(a(o)),Object.assign(n,o.config)}),Promise.resolve({}));return(t=i.client)!==null&&t!==void 0||(i.client=yield(()=>eh(this,void 0,void 0,function*(){const n=yield this._createHttpClient(e);return{getAppManifest:{client:{fn:({appKey:a})=>n.json$(`/api/apps/${a}`)},key:({appKey:a})=>a,expire:this.defaultExpireTime},getAppManifests:{client:{fn:()=>n.json$("/api/apps")},key:()=>"manifests",expire:this.defaultExpireTime},getAppConfig:{client:{fn:({appKey:a,tag:o})=>n.json$(`/api/apps/${a}/config${o?`?tag=${o}`:""}`)},key:a=>JSON.stringify(a),expire:this.defaultExpireTime}}}))()),i})}}Th=new WeakMap;const S$=(r,e)=>{r.addConfig({module:A$,configure:t=>{e&&t.addConfigBuilder(e)}})},$$="bookmarkId",D$=()=>new URLSearchParams(document.location.search).get($$);var L$=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},T$=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},Ih;class I${constructor(e,t={}){this.config=t,Ih.set(this,void 0),L$(this,Ih,e,"f")}requireInstance(e){return T$(this,Ih,"f").requireInstance(e)}setSourceSystem(e){this.config.sourceSystem=e}setBookmarkIdResolver(e){this.config.resolveBookmarkId=e}serCustomBookmarkApiClient(e){this.config.clientConfiguration&&(this.config.clientConfiguration.client=e)}setContextIdResolver(e){this.config.getContextId=e}setCurrentAppIdResolver(e){this.config.getCurrentAppIdentification=e}setEventProvider(e){this.config.event=e}setBookmarkQueryClient(e){this.config.clientConfiguration&&(this.config.clientConfiguration.queryClientConfig={getAllBookmarks:typeof e.getAllBookmarks=="function"?{key:()=>"all-bookmarks",client:{fn:e.getAllBookmarks},validate:({args:i})=>i.isValid}:e.getAllBookmarks,getBookmarkById:typeof e.getBookmarkById=="function"?{key:({id:i})=>i,client:{fn:e.getBookmarkById},expire:6e4,validate:()=>!1}:e.getBookmarkById})}}Ih=new WeakMap;var Wn=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})},n5=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},yu,Rh,Jz;class R${constructor(){yu.add(this),this.defaultExpireTime=1*60*1e3,Rh.set(this,[])}addConfigBuilder(e){n5(this,Rh,"f").push(e)}createConfig(e,t){return Wn(this,void 0,void 0,function*(){const i=yield n5(this,Rh,"f").reduce((a,o)=>Wn(this,void 0,void 0,function*(){const s=new I$(e,yield a);return yield Promise.resolve(o(s)),Object.assign(a,s.config)}),Promise.resolve({})),n=yield this._getAppProvider(e);if(n5(this,yu,"m",Jz).call(this,t,i),i.resolveBookmarkId||(i.resolveBookmarkId=D$),i.getCurrentAppIdentification||(i.getCurrentAppIdentification=()=>{var a;return(a=n.current)===null||a===void 0?void 0:a.appKey}),!i.getContextId){const a=yield this._getContextProvider(e);i.getContextId=()=>{var o;return(o=a.currentContext)===null||o===void 0?void 0:o.id}}if(!i.event){const a=yield this._getEventProvider(e);i.event=a}if(i.clientConfiguration=yield this._createClientConfiguration(e,i.clientConfiguration),!i.sourceSystem)throw Error("missing sourceSystem configuration");return i})}_createClientConfiguration(e,t={}){return Wn(this,void 0,void 0,function*(){if(!t.client){const i=yield this._getServiceProvider(e);t.client=yield i.createBookmarksClient("fetch")}if(!t.queryClientConfig){const n=yield(yield this._getServiceProvider(e)).createBookmarksClient("json$");t.queryClientConfig=Object.assign({getBookmarkById:{client:{fn:a=>n.get("v1",a)},key:({id:a})=>a,expire:this.defaultExpireTime},getAllBookmarks:{client:{fn:()=>n.getAll("v1")},key:()=>"all-bookmarks",validate:({args:a})=>a.isValid,expire:this.defaultExpireTime}},n)}return t})}_getServiceProvider(e){var t;return Wn(this,void 0,void 0,function*(){if(e.hasModule("services"))return e.requireInstance("services");{const i=(t=e.ref)===null||t===void 0?void 0:t.services;if(i)return i;throw Error("[BookmarkConfigurator] No service provider configures [ServicesModule] ")}})}_getContextProvider(e){var t;return Wn(this,void 0,void 0,function*(){if(e.hasModule("context"))return e.requireInstance("context");{const i=(t=e.ref)===null||t===void 0?void 0:t.context;if(i)return i;throw Error("[BookmarkConfigurator] No context provider configures [ContextModule]")}})}_getAppProvider(e){var t;return Wn(this,void 0,void 0,function*(){if(e.hasModule("app"))return e.requireInstance("app");{const i=(t=e.ref)===null||t===void 0?void 0:t.app;if(i)return i;throw Error("[BookmarkConfigurator] No app provider configures [AppModule]")}})}_getEventProvider(e){var t;return Wn(this,void 0,void 0,function*(){if(e.hasModule("event"))return e.requireInstance("event");{const i=(t=e.ref)===null||t===void 0?void 0:t.event;if(i)return i;throw Error("[BookmarkConfigurator] No event provider configures [EventModule]")}})}}Rh=new WeakMap,yu=new WeakSet,Jz=function(e,t){e&&(t.clientConfiguration=e.config.clientConfiguration,t.sourceSystem=e.config.sourceSystem,t.getContextId=e.config.getContextId,t.getCurrentAppIdentification=e.config.getCurrentAppIdentification)};const I1={getAll:gn("getAll",r=>({payload:r}),r=>({payload:r}),r=>({payload:r})),delete:gn("delete",r=>({payload:r}),r=>({payload:r})),update:gn("update",r=>({payload:r}),r=>({payload:r})),create:gn("create",r=>({payload:r}),r=>({payload:r}),r=>({payload:r}))},O$={bookmarks:{}},N$=il(O$,r=>{r.addCase(I1.create.success,(e,{payload:t})=>{e.bookmarks[t.id]=t}).addCase(I1.getAll.success,(e,{payload:t})=>{t.forEach(i=>{e.bookmarks[i.id]=i})}).addCase(I1.delete.success,(e,{payload:t})=>{delete e.bookmarks[t]}).addCase(I1.update.success,(e,{payload:t})=>{e.bookmarks[t.id]=t})});var k6=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const U$=(r,e)=>t=>t.pipe(To(I1.getAll.type),L1(i=>r.query({isValid:i.payload}).pipe($e(n=>I1.getAll.success(n.value.filter(a=>a.sourceSystem.identifier===e))),Z1(()=>Fi)))),F$=r=>e=>e.pipe(To(I1.create.type),L1(t=>k6(void 0,void 0,void 0,function*(){const i=yield r.post("v1",t.payload);return I1.create.success(yield i.json())}))),R9=r=>e=>e.pipe(To(I1.update.type),L1(t=>k6(void 0,void 0,void 0,function*(){const i=yield r.patch("v1",t.payload);return I1.update.success(yield i.json())}))),B$=r=>e=>e.pipe(To(I1.delete.type),L1(t=>k6(void 0,void 0,void 0,function*(){return(yield r.delete("v1",{id:t.payload})).ok,I1.delete.success(t.payload)})));var Yr=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})},Yn=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},J=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},Oh,a2,F0,Dr,Zr,B0,_n,ut,ki,Zz,ey;class j${constructor(e,t,i){Oh.add(this),a2.set(this,void 0),F0.set(this,void 0),Dr.set(this,void 0),Zr.set(this,void 0),B0.set(this,void 0),_n.set(this,void 0),ut.set(this,void 0),ki.set(this,new U1),Yn(this,Zr,new Do(void 0),"f"),Yn(this,Dr,e.client,"f"),Yn(this,a2,new h1(e.queryClientConfig.getBookmarkById),"f"),Yn(this,F0,new h1(e.queryClientConfig.getAllBookmarks),"f"),Yn(this,B0,t,"f"),Yn(this,_n,i,"f"),Yn(this,ut,Uk(I1,N$),"f"),J(this,Oh,"m",ey).call(this),J(this,Oh,"m",Zz).call(this),i&&J(this,ki,"f").add(J(this,Zr,"f").subscribe(n=>{i.dispatchEvent("onBookmarkChanged",{detail:n,canBubble:!0,source:this})}))}get currentBookmark$(){return J(this,Zr,"f").asObservable()}get bookmarks$(){return J(this,ut,"f").subject.pipe($e(e=>Object.values(e.bookmarks).map(t=>t)))}setCurrentBookmark(e){return Yr(this,void 0,void 0,function*(){if(!e)return J(this,Zr,"f").next(void 0);if(typeof e=="string"){const t=yield this.resolverBookmarkAsync(e);return this.setBookmark(t)}else if(e!==J(this,Zr,"f").value)return this.setBookmark(e)})}setBookmark(e){return Yr(this,void 0,void 0,function*(){J(this,_n,"f")?(yield J(this,_n,"f").dispatchEvent("onBookmarkChange",{detail:e,cancelable:!0,canBubble:!0,source:this})).canceled||J(this,Zr,"f").next(e):J(this,Zr,"f").next(e)})}resolverBookmark(e){return J(this,a2,"f").query({id:e}).pipe($e(t=>t.value))}resolverBookmarkAsync(e){return V1(this.resolverBookmark(e))}getAllBookmarks(e={isValid:!1}){const{isValid:t}=e;return new Ee(i=>{J(this,ut,"f").dispatch.getAll(t),i.add(J(this,ut,"f").subject.addEffect("getAll::success",n=>{i.next(n.payload),i.complete()}))})}getAllBookmarksAsync(e={isValid:!1}){return Yr(this,void 0,void 0,function*(){return V1(this.getAllBookmarks(e))})}getBookmarkById(e){return Yr(this,void 0,void 0,function*(){return yield(yield J(this,Dr,"f").get("v1",{id:e})).json()})}createBookmark(e){return new Ee(t=>{J(this,ut,"f").dispatch.create(e),t.add(J(this,ut,"f").subject.addEffect("create::success",i=>{t.next(i.payload),t.complete()})),t.add(J(this,ut,"f").subject.addEffect("create::failure",i=>{t.error(i.payload)}))})}createBookmarkAsync(e){return Yr(this,void 0,void 0,function*(){return V1(this.createBookmark(e))})}updateBookmark(e){return new Ee(t=>{J(this,ut,"f").dispatch.update(e),t.add(J(this,ut,"f").subject.addEffect("update::success",i=>{t.next(i.payload),t.complete(),J(this,a2,"f").cache.invalidate(i.payload.id)}))})}updateBookmarkAsync(e){return Yr(this,void 0,void 0,function*(){return V1(this.updateBookmark(e))})}deleteBookmarkById(e){return new Ee(t=>{J(this,ut,"f").dispatch.delete(e),t.add(J(this,ut,"f").subject.addEffect("delete::success",i=>{t.next(i.payload),t.complete(),J(this,a2,"f").cache.invalidate(i.payload)}))})}deleteBookmarkByIdAsync(e){return Yr(this,void 0,void 0,function*(){return V1(this.deleteBookmarkById(e))})}addBookmarkFavoriteAsync(e){return Yr(this,void 0,void 0,function*(){J(this,Dr,"f").addFavorite("v1",{bookmarkId:e})})}removeBookmarkFavoriteAsync(e){return Yr(this,void 0,void 0,function*(){J(this,Dr,"f").removeFavorite("v1",{bookmarkId:e})})}verifyBookmarkFavoriteAsync(e){return Yr(this,void 0,void 0,function*(){return!!(yield J(this,Dr,"f").verifyFavorite("v1",{bookmarkId:e})).ok})}dispose(){J(this,ki,"f").unsubscribe()}}a2=new WeakMap,F0=new WeakMap,Dr=new WeakMap,Zr=new WeakMap,B0=new WeakMap,_n=new WeakMap,ut=new WeakMap,ki=new WeakMap,Oh=new WeakSet,Zz=function(){J(this,ut,"f").subject.addEffect("create::success",e=>{var t;J(this,Zr,"f").next(e.payload),(t=J(this,_n,"f"))===null||t===void 0||t.dispatchEvent("onBookmarkCreated",{detail:e.payload,canBubble:!0,source:this})}),J(this,ut,"f").subject.addEffect("delete::success",e=>{var t;(t=J(this,_n,"f"))===null||t===void 0||t.dispatchEvent("onBookmarkDeleted",{detail:e.payload,canBubble:!0,source:this})}),J(this,ut,"f").subject.addEffect("update::success",e=>{var t;(t=J(this,_n,"f"))===null||t===void 0||t.dispatchEvent("onBookmarkUpdated",{detail:e.payload,canBubble:!0,source:this})})},ey=function(){J(this,ki,"f").add(J(this,ut,"f").subject.addFlow(U$(J(this,F0,"f"),J(this,B0,"f").identifier))),J(this,ki,"f").add(J(this,ut,"f").subject.addFlow(F$(J(this,Dr,"f")))),J(this,ki,"f").add(J(this,ut,"f").subject.addFlow(B$(J(this,Dr,"f")))),J(this,ki,"f").add(J(this,ut,"f").subject.addFlow(R9(J(this,Dr,"f")))),J(this,ki,"f").add(J(this,ut,"f").subject.addFlow(R9(J(this,Dr,"f"))))};var ei=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})},q$=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},Hr=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},o2,ha,Nh,wu,bu,xu;class G${get currentBookmark$(){return this._bookmarkClient.currentBookmark$}get bookmarks$(){return this._bookmarkClient.bookmarks$}constructor(e,t){o2.add(this),ha.set(this,void 0),Nh.set(this,new U1),this.bookmarkCreators={},wu.set(this,()=>{this.bookmarkCreators={}}),this.config=e,q$(this,ha,e.event,"f"),this._bookmarkClient=t?t._bookmarkClient:new j$(e.clientConfiguration,e.sourceSystem,e.event);const i=e.resolveBookmarkId&&e.resolveBookmarkId();i&&this._bookmarkClient.setCurrentBookmark(i),Hr(this,ha,"f")&&Hr(this,Nh,"f").add(Hr(this,ha,"f").addEventListener("onCurrentAppChanged",Hr(this,wu,"f")))}getBookmarkById(e){return ei(this,void 0,void 0,function*(){return yield this._bookmarkClient.getBookmarkById(e)})}setCurrentBookmark(e){return ei(this,void 0,void 0,function*(){this._bookmarkClient.setCurrentBookmark(e)})}getAllBookmarks(){return this._bookmarkClient.getAllBookmarks()}getAllBookmarksAsync(){return ei(this,void 0,void 0,function*(){return this._bookmarkClient.getAllBookmarksAsync()})}updateBookmark(e){return this._bookmarkClient.updateBookmark(e)}updateBookmarkAsync(e,t){return ei(this,void 0,void 0,function*(){if(Hr(this,o2,"m",xu).call(this)===e.appKey)return t!=null&&t.updatePayload&&(e.payload=yield Hr(this,o2,"m",bu).call(this)),this._bookmarkClient.updateBookmarkAsync(e)})}deleteBookmarkById(e){return this._bookmarkClient.deleteBookmarkById(e)}deleteBookmarkByIdAsync(e){return this._bookmarkClient.deleteBookmarkByIdAsync(e)}addBookmarkFavoriteAsync(e){return ei(this,void 0,void 0,function*(){yield this._bookmarkClient.addBookmarkFavoriteAsync(e)})}removeBookmarkFavoriteAsync(e){return ei(this,void 0,void 0,function*(){yield this._bookmarkClient.removeBookmarkFavoriteAsync(e)})}verifyBookmarkFavoriteAsync(e){return ei(this,void 0,void 0,function*(){return yield this._bookmarkClient.verifyBookmarkFavoriteAsync(e)})}addStateCreator(e,t){var i;const n=t||"#creator";return Hr(this,ha,"f")&&((i=Hr(this,ha,"f"))===null||i===void 0||i.dispatchEvent("onAddCreator",{source:this,canBubble:!0,detail:{key:t,cb:e}})),this.bookmarkCreators[n]=e,()=>{delete this.bookmarkCreators[n]}}createBookmark(e){return ei(this,void 0,void 0,function*(){const t=yield Hr(this,o2,"m",bu).call(this),i=this.config.getContextId&&this.config.getContextId(),n=Hr(this,o2,"m",xu).call(this),a=Object.assign(Object.assign({},e),{appKey:n,contextId:i,sourceSystem:this.config.sourceSystem,payload:t});return this._bookmarkClient.createBookmarkAsync(a)})}dispose(){Hr(this,Nh,"f").unsubscribe(),this._bookmarkClient.dispose()}}ha=new WeakMap,Nh=new WeakMap,wu=new WeakMap,o2=new WeakSet,bu=function(){return ei(this,void 0,void 0,function*(){const e=this.bookmarkCreators;if(!e||Object.keys(e).length===0)throw Error("No creator registered on this BookmarkProvider");return typeof e["#creator"]=="function"?e["#creator"]():yield Object.entries(e).reduce((t,[i,n])=>ei(this,void 0,void 0,function*(){return Object.assign(yield t,{[i]:yield n()})}),Promise.resolve({}))})},xu=function(){const e=this.config.getCurrentAppIdentification&&this.config.getCurrentAppIdentification();if(!e)throw new Error("There is noe current application selected, can't create bookmark.");return e};var K$=globalThis&&globalThis.__awaiter||function(r,e,t,i){function n(a){return a instanceof t?a:new t(function(o){o(a)})}return new(t||(t=Promise))(function(a,o){function s(h){try{l(i.next(h))}catch(d){o(d)}}function c(h){try{l(i.throw(h))}catch(d){o(d)}}function l(h){h.done?a(h.value):n(h.value).then(s,c)}l((i=i.apply(r,e||[])).next())})};const W$="bookmark",Y$={name:W$,configure:()=>new R$,initialize:r=>K$(void 0,void 0,void 0,function*(){var e;const t=(e=r.ref)===null||e===void 0?void 0:e.bookmark,i=yield r.config.createConfig(r,t);return new G$(i,t)}),dispose:r=>{r.instance.dispose()}},Q$=(r,e)=>{r.addConfig({module:Y$,configure:t=>{e&&t.addConfigBuilder(e)}})};class X${}/**
|
|
411
411
|
* @remix-run/router v1.3.1
|
|
412
412
|
*
|
|
413
413
|
* Copyright (c) Remix Software Inc.
|
|
@@ -416,7 +416,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
416
416
|
* LICENSE.md file in the root directory of this source tree.
|
|
417
417
|
*
|
|
418
418
|
* @license MIT
|
|
419
|
-
*/function Ae(){return Ae=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},Ae.apply(this,arguments)}var st;(function(r){r.Pop="POP",r.Push="PUSH",r.Replace="REPLACE"})(st||(st={}));const O9="popstate";function J$(r){r===void 0&&(r={});let{initialEntries:e=["/"],initialIndex:t,v5Compat:i=!1}=r,n;n=e.map((v,m)=>h(v,typeof v=="string"?null:v.state,m===0?"default":void 0));let a=c(t??n.length-1),o=st.Pop,s=null;function c(v){return Math.min(Math.max(v,0),n.length-1)}function l(){return n[a]}function h(v,m,f){m===void 0&&(m=null);let C=Va(n?l().pathname:"/",v,m,f);return ty(C.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(v)),C}function d(v){return typeof v=="string"?v:Fi(v)}return{get index(){return a},get action(){return o},get location(){return l()},createHref:d,createURL(v){return new URL(d(v),"http://localhost")},encodeLocation(v){let m=typeof v=="string"?ji(v):v;return{pathname:m.pathname||"",search:m.search||"",hash:m.hash||""}},push(v,m){o=st.Push;let f=h(v,m);a+=1,n.splice(a,n.length,f),i&&s&&s({action:o,location:f,delta:1})},replace(v,m){o=st.Replace;let f=h(v,m);n[a]=f,i&&s&&s({action:o,location:f,delta:0})},go(v){o=st.Pop;let m=c(a+v),f=n[m];a=m,s&&s({action:o,location:f,delta:v})},listen(v){return s=v,()=>{s=null}}}}function Z$(r){r===void 0&&(r={});function e(i,n){let{pathname:a,search:o,hash:s}=i.location;return Va("",{pathname:a,search:o,hash:s},n.state&&n.state.usr||null,n.state&&n.state.key||"default")}function t(i,n){return typeof n=="string"?n:Fi(n)}return ry(e,t,null,r)}function eD(r){r===void 0&&(r={});function e(n,a){let{pathname:o="/",search:s="",hash:c=""}=ji(n.location.hash.substr(1));return Va("",{pathname:o,search:s,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function t(n,a){let o=n.document.querySelector("base"),s="";if(o&&o.getAttribute("href")){let c=n.location.href,l=c.indexOf("#");s=l===-1?c:c.slice(0,l)}return s+"#"+(typeof a=="string"?a:Fi(a))}function i(n,a){ty(n.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(a)+")")}return ry(e,t,i,r)}function Fe(r,e){if(r===!1||r===null||typeof r>"u")throw new Error(e)}function ty(r,e){if(!r){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function tD(){return Math.random().toString(36).substr(2,8)}function N9(r,e){return{usr:r.state,key:r.key,idx:e}}function Va(r,e,t,i){return t===void 0&&(t=null),Ae({pathname:typeof r=="string"?r:r.pathname,search:"",hash:""},typeof e=="string"?ji(e):e,{state:t,key:e&&e.key||i||tD()})}function Fi(r){let{pathname:e="/",search:t="",hash:i=""}=r;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function ji(r){let e={};if(r){let t=r.indexOf("#");t>=0&&(e.hash=r.substr(t),r=r.substr(0,t));let i=r.indexOf("?");i>=0&&(e.search=r.substr(i),r=r.substr(0,i)),r&&(e.pathname=r)}return e}function ry(r,e,t,i){i===void 0&&(i={});let{window:n=document.defaultView,v5Compat:a=!1}=i,o=n.history,s=st.Pop,c=null,l=h();l==null&&(l=0,o.replaceState(Ae({},o.state,{idx:l}),""));function h(){return(o.state||{idx:null}).idx}function d(){s=st.Pop;let C=h(),_=C==null?null:C-l;l=C,c&&c({action:s,location:f.location,delta:_})}function u(C,_){s=st.Push;let p=Va(f.location,C,_);t&&t(p,C),l=h()+1;let z=N9(p,l),M=f.createHref(p);try{o.pushState(z,"",M)}catch{n.location.assign(M)}a&&c&&c({action:s,location:f.location,delta:1})}function v(C,_){s=st.Replace;let p=Va(f.location,C,_);t&&t(p,C),l=h();let z=N9(p,l),M=f.createHref(p);o.replaceState(z,"",M),a&&c&&c({action:s,location:f.location,delta:0})}function m(C){let _=n.location.origin!=="null"?n.location.origin:n.location.href,p=typeof C=="string"?C:Fi(C);return Fe(_,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,_)}let f={get action(){return s},get location(){return r(n,o)},listen(C){if(c)throw new Error("A history only accepts one active listener");return n.addEventListener(O9,d),c=C,()=>{n.removeEventListener(O9,d),c=null}},createHref(C){return e(n,C)},createURL:m,encodeLocation(C){let _=m(C);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:u,replace:v,go(C){return o.go(C)}};return f}var qt;(function(r){r.data="data",r.deferred="deferred",r.redirect="redirect",r.error="error"})(qt||(qt={}));function rD(r){return r.index===!0}function iy(r,e,t){return e===void 0&&(e=[]),t===void 0&&(t=new Set),r.map((i,n)=>{let a=[...e,n],o=typeof i.id=="string"?i.id:a.join("-");return Fe(i.index!==!0||!i.children,"Cannot specify children on an index route"),Fe(!t.has(o),'Found a route id collision on id "'+o+`". Route id's must be globally unique within Data Router usages`),t.add(o),rD(i)?Ae({},i,{id:o}):Ae({},i,{id:o,children:i.children?iy(i.children,a,t):void 0})})}function th(r,e,t){t===void 0&&(t="/");let i=typeof e=="string"?ji(e):e,n=gD(i.pathname||"/",t);if(n==null)return null;let a=ny(r);iD(a);let o=null;for(let s=0;o==null&&s<a.length;++s)o=uD(a[s],fD(n));return o}function ny(r,e,t,i){e===void 0&&(e=[]),t===void 0&&(t=[]),i===void 0&&(i="");let n=(a,o,s)=>{let c={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};c.relativePath.startsWith("/")&&(Fe(c.relativePath.startsWith(i),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(i.length));let l=Js([i,c.relativePath]),h=t.concat(c);a.children&&a.children.length>0&&(Fe(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),ny(a.children,e,h,l)),!(a.path==null&&!a.index)&&e.push({path:l,score:hD(l,a.index),routesMeta:h})};return r.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))n(a,o);else for(let c of ay(a.path))n(a,o,c)}),e}function ay(r){let e=r.split("/");if(e.length===0)return[];let[t,...i]=e,n=t.endsWith("?"),a=t.replace(/\?$/,"");if(i.length===0)return n?[a,""]:[a];let o=ay(i.join("/")),s=[];return s.push(...o.map(c=>c===""?a:[a,c].join("/"))),n&&s.push(...o),s.map(c=>r.startsWith("/")&&c===""?"/":c)}function iD(r){r.sort((e,t)=>e.score!==t.score?t.score-e.score:dD(e.routesMeta.map(i=>i.childrenIndex),t.routesMeta.map(i=>i.childrenIndex)))}const nD=/^:\w+$/,aD=3,oD=2,sD=1,cD=10,lD=-2,U9=r=>r==="*";function hD(r,e){let t=r.split("/"),i=t.length;return t.some(U9)&&(i+=lD),e&&(i+=oD),t.filter(n=>!U9(n)).reduce((n,a)=>n+(nD.test(a)?aD:a===""?sD:cD),i)}function dD(r,e){return r.length===e.length&&r.slice(0,-1).every((i,n)=>i===e[n])?r[r.length-1]-e[e.length-1]:0}function uD(r,e){let{routesMeta:t}=r,i={},n="/",a=[];for(let o=0;o<t.length;++o){let s=t[o],c=o===t.length-1,l=n==="/"?e:e.slice(n.length)||"/",h=vD({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l);if(!h)return null;Object.assign(i,h.params);let d=s.route;a.push({params:i,pathname:Js([n,h.pathname]),pathnameBase:wD(Js([n,h.pathnameBase])),route:d}),h.pathnameBase!=="/"&&(n=Js([n,h.pathnameBase]))}return a}function vD(r,e){typeof r=="string"&&(r={path:r,caseSensitive:!1,end:!0});let[t,i]=mD(r.path,r.caseSensitive,r.end),n=e.match(t);if(!n)return null;let a=n[0],o=a.replace(/(.)\/+$/,"$1"),s=n.slice(1);return{params:i.reduce((l,h,d)=>{if(h==="*"){let u=s[d]||"";o=a.slice(0,a.length-u.length).replace(/(.)\/+$/,"$1")}return l[h]=pD(s[d]||"",h),l},{}),pathname:a,pathnameBase:o,pattern:r}}function mD(r,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),Lc(r==="*"||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were '+('"'+r.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+r.replace(/\*$/,"/*")+'".'));let i=[],n="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(i.push(s),"/([^\\/]+)"));return r.endsWith("*")?(i.push("*"),n+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?n+="\\/*$":r!==""&&r!=="/"&&(n+="(?:(?=\\/|$))"),[new RegExp(n,e?void 0:"i"),i]}function fD(r){try{return decodeURI(r)}catch(e){return Lc(!1,'The URL path "'+r+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),r}}function pD(r,e){try{return decodeURIComponent(r)}catch(t){return Lc(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+r+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),r}}function gD(r,e){if(e==="/")return r;if(!r.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,i=r.charAt(t);return i&&i!=="/"?null:r.slice(t)||"/"}function Lc(r,e){if(!r){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function _D(r,e){e===void 0&&(e="/");let{pathname:t,search:i="",hash:n=""}=typeof r=="string"?ji(r):r;return{pathname:t?t.startsWith("/")?t:zD(t,e):e,search:bD(i),hash:xD(n)}}function zD(r,e){let t=e.replace(/\/+$/,"").split("/");return r.split("/").forEach(n=>{n===".."?t.length>1&&t.pop():n!=="."&&t.push(n)}),t.length>1?t.join("/"):"/"}function a5(r,e,t,i){return"Cannot include a '"+r+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(i)+"]. 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 oy(r){return r.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function yD(r,e,t,i){i===void 0&&(i=!1);let n;typeof r=="string"?n=ji(r):(n=Ae({},r),Fe(!n.pathname||!n.pathname.includes("?"),a5("?","pathname","search",n)),Fe(!n.pathname||!n.pathname.includes("#"),a5("#","pathname","hash",n)),Fe(!n.search||!n.search.includes("#"),a5("#","search","hash",n)));let a=r===""||n.pathname==="",o=a?"/":n.pathname,s;if(i||o==null)s=t;else{let d=e.length-1;if(o.startsWith("..")){let u=o.split("/");for(;u[0]==="..";)u.shift(),d-=1;n.pathname=u.join("/")}s=d>=0?e[d]:"/"}let c=_D(n,s),l=o&&o!=="/"&&o.endsWith("/"),h=(a||o===".")&&t.endsWith("/");return!c.pathname.endsWith("/")&&(l||h)&&(c.pathname+="/"),c}const Js=r=>r.join("/").replace(/\/\/+/g,"/"),wD=r=>r.replace(/\/+$/,"").replace(/^\/*/,"/"),bD=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,xD=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r;class F9 extends Error{}class MD{constructor(e,t){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],Fe(e&&typeof e=="object"&&!Array.isArray(e),"defer() only accepts plain objects");let i;this.abortPromise=new Promise((a,o)=>i=o),this.controller=new AbortController;let n=()=>i(new F9("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce((a,o)=>{let[s,c]=o;return Object.assign(a,{[s]:this.trackPromise(s,c)})},{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let i=Promise.race([t,this.abortPromise]).then(n=>this.onSettle(i,e,null,n),n=>this.onSettle(i,e,n));return i.catch(()=>{}),Object.defineProperty(i,"_tracked",{get:()=>!0}),i}onSettle(e,t,i,n){return this.controller.signal.aborted&&i instanceof F9?(this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>i}),Promise.reject(i)):(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),i?(Object.defineProperty(e,"_error",{get:()=>i}),this.emit(!1,t),Promise.reject(i)):(Object.defineProperty(e,"_data",{get:()=>n}),this.emit(!1,t),n))}emit(e,t){this.subscribers.forEach(i=>i(e,t))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,t)=>this.pendingKeysSet.delete(t)),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let i=()=>this.cancel();e.addEventListener("abort",i),t=await new Promise(n=>{this.subscribe(a=>{e.removeEventListener("abort",i),(a||this.done)&&n(a)})})}return t}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return Fe(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,t)=>{let[i,n]=t;return Object.assign(e,{[i]:HD(n)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function CD(r){return r instanceof Promise&&r._tracked===!0}function HD(r){if(!CD(r))return r;if(r._error)throw r._error;return r._data}class sy{constructor(e,t,i,n){n===void 0&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}}function kD(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}const cy=["post","put","patch","delete"],ED=new Set(cy),PD=["get",...cy],AD=new Set(PD),VD=new Set([301,302,303,307,308]),SD=new Set([307,308]),o5={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},$D={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},B9={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ly=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",DD=!ly;function LD(r){Fe(r.routes.length>0,"You must provide a non-empty routes array to createRouter");let e=iy(r.routes),t=null,i=new Set,n=null,a=null,o=null,s=r.hydrationData!=null,c=th(e,r.history.location,r.basename),l=null;if(c==null){let H=en(404,{pathname:r.history.location.pathname}),{matches:P,route:$}=Y9(e);c=P,l={[$.id]:H}}let h=!c.some(H=>H.route.loader)||r.hydrationData!=null,d,u={historyAction:r.history.action,location:r.history.location,matches:c,initialized:h,navigation:o5,restoreScrollPosition:r.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:r.hydrationData&&r.hydrationData.loaderData||{},actionData:r.hydrationData&&r.hydrationData.actionData||null,errors:r.hydrationData&&r.hydrationData.errors||l,fetchers:new Map,blockers:new Map},v=st.Pop,m=!1,f,C=!1,_=!1,p=[],z=[],M=new Map,A=0,I=-1,N=new Map,U=new Set,Se=new Map,ee=new Map,Xe=null,br=new Map,fi=!1;function bl(){return t=r.history.listen(H=>{let{action:P,location:$,delta:X}=H;if(fi){fi=!1;return}Lc(Xe!=null&&X===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 K=j6({currentLocation:u.location,nextLocation:$,historyAction:P});if(K&&X!=null){fi=!0,r.history.go(X*-1),Ml(K,{state:"blocked",location:$,proceed(){Ml(K,{state:"proceeding",proceed:void 0,reset:void 0,location:$}),r.history.go(X)},reset(){Go(K),mt({blockers:new Map(d.state.blockers)})}});return}return Le(P,$)}),u.initialized||Le(st.Pop,u.location),d}function q4(){t&&t(),i.clear(),f&&f.abort(),u.fetchers.forEach((H,P)=>W4(P)),u.blockers.forEach((H,P)=>Go(P))}function Bo(H){return i.add(H),()=>i.delete(H)}function mt(H){u=Ae({},u,H),i.forEach(P=>P(u))}function B(H,P){var $,X;let K=u.actionData!=null&&u.navigation.formMethod!=null&&xi(u.navigation.formMethod)&&u.navigation.state==="loading"&&(($=H.state)==null?void 0:$._isRedirect)!==!0,ue;P.actionData?Object.keys(P.actionData).length>0?ue=P.actionData:ue=null:K?ue=u.actionData:ue=null;let se=P.loaderData?W9(u.loaderData,P.loaderData,P.matches||[],P.errors):u.loaderData;for(let[te]of br)Go(te);let be=m===!0||u.navigation.formMethod!=null&&xi(u.navigation.formMethod)&&((X=H.state)==null?void 0:X._isRedirect)!==!0;mt(Ae({},P,{actionData:ue,loaderData:se,historyAction:v,location:H,initialized:!0,navigation:o5,revalidation:"idle",restoreScrollPosition:q6(H,P.matches||u.matches),preventScrollReset:be,blockers:new Map(u.blockers)})),C||v===st.Pop||(v===st.Push?r.history.push(H,H.state):v===st.Replace&&r.history.replace(H,H.state)),v=st.Pop,m=!1,C=!1,_=!1,p=[],z=[]}async function le(H,P){if(typeof H=="number"){r.history.go(H);return}let{path:$,submission:X,error:K}=j9(H,P),ue=u.location,se=Va(u.location,$,P&&P.state);se=Ae({},se,r.history.encodeLocation(se));let be=P&&P.replace!=null?P.replace:void 0,te=st.Push;be===!0?te=st.Replace:be===!1||X!=null&&xi(X.formMethod)&&X.formAction===u.location.pathname+u.location.search&&(te=st.Replace);let m1=P&&"preventScrollReset"in P?P.preventScrollReset===!0:void 0,we=j6({currentLocation:ue,nextLocation:se,historyAction:te});if(we){Ml(we,{state:"blocked",location:se,proceed(){Ml(we,{state:"proceeding",proceed:void 0,reset:void 0,location:se}),le(H,P)},reset(){Go(we),mt({blockers:new Map(u.blockers)})}});return}return await Le(te,se,{submission:X,pendingError:K,preventScrollReset:m1,replace:P&&P.replace})}function pe(){if(G4(),mt({revalidation:"loading"}),u.navigation.state!=="submitting"){if(u.navigation.state==="idle"){Le(u.historyAction,u.location,{startUninterruptedRevalidation:!0});return}Le(v||u.historyAction,u.navigation.location,{overrideNavigation:u.navigation})}}async function Le(H,P,$){f&&f.abort(),f=null,v=H,C=($&&$.startUninterruptedRevalidation)===!0,Vw(u.location,u.matches),m=($&&$.preventScrollReset)===!0;let X=$&&$.overrideNavigation,K=th(e,P,r.basename);if(!K){let at=en(404,{pathname:P.pathname}),{matches:xr,route:Mr}=Y9(e);Y4(),B(P,{matches:xr,loaderData:{},errors:{[Mr.id]:at}});return}if(ND(u.location,P)&&!($&&$.submission&&xi($.submission.formMethod))){B(P,{matches:K});return}f=new AbortController;let ue=ss(r.history,P,f.signal,$&&$.submission),se,be;if($&&$.pendingError)be={[k2(K).route.id]:$.pendingError};else if($&&$.submission&&xi($.submission.formMethod)){let at=await ft(ue,P,$.submission,K,{replace:$.replace});if(at.shortCircuited)return;se=at.pendingActionData,be=at.pendingActionError,X=Ae({state:"loading",location:P},$.submission),ue=new Request(ue.url,{signal:ue.signal})}let{shortCircuited:te,loaderData:m1,errors:we}=await Ba(ue,P,K,X,$&&$.submission,$&&$.replace,se,be);te||(f=null,B(P,Ae({matches:K},se?{actionData:se}:{},{loaderData:m1,errors:we})))}async function ft(H,P,$,X,K){G4();let ue=Ae({state:"submitting",location:P},$);mt({navigation:ue});let se,be=Z9(X,P);if(!be.route.action)se={type:qt.error,error:en(405,{method:H.method,pathname:P.pathname,routeId:be.route.id})};else if(se=await os("action",H,be,X,d.basename),H.signal.aborted)return{shortCircuited:!0};if(R2(se)){let te;return K&&K.replace!=null?te=K.replace:te=se.location===u.location.pathname+u.location.search,await qo(u,se,{submission:$,replace:te}),{shortCircuited:!0}}if(Zs(se)){let te=k2(X,be.route.id);return(K&&K.replace)!==!0&&(v=st.Push),{pendingActionData:{},pendingActionError:{[te.route.id]:se.error}}}if(_a(se))throw en(400,{type:"defer-action"});return{pendingActionData:{[be.route.id]:se.data}}}async function Ba(H,P,$,X,K,ue,se,be){let te=X;te||(te=Ae({state:"loading",location:P,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},K));let m1=K||(te.formMethod&&te.formAction&&te.formData&&te.formEncType?{formMethod:te.formMethod,formAction:te.formAction,formData:te.formData,formEncType:te.formEncType}:void 0),[we,at]=q9(r.history,u,$,m1,P,_,p,z,se,be,Se);if(Y4(r1=>!($&&$.some(qr=>qr.route.id===r1))||we&&we.some(qr=>qr.route.id===r1)),we.length===0&&at.length===0)return B(P,Ae({matches:$,loaderData:{},errors:be||null},se?{actionData:se}:{})),{shortCircuited:!0};if(!C){at.forEach(qr=>{let Fn=u.fetchers.get(qr.key),kl={state:"loading",data:Fn&&Fn.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};u.fetchers.set(qr.key,kl)});let r1=se||u.actionData;mt(Ae({navigation:te},r1?Object.keys(r1).length===0?{actionData:null}:{actionData:r1}:{},at.length>0?{fetchers:new Map(u.fetchers)}:{}))}I=++A,at.forEach(r1=>M.set(r1.key,f));let{results:xr,loaderResults:Mr,fetcherResults:Ko}=await U6(u.matches,$,we,at,H);if(H.signal.aborted)return{shortCircuited:!0};at.forEach(r1=>M.delete(r1.key));let Cl=Q9(xr);if(Cl)return await qo(u,Cl,{replace:ue}),{shortCircuited:!0};let{loaderData:Hl,errors:qa}=K9(u,$,we,Mr,be,at,Ko,ee);ee.forEach((r1,qr)=>{r1.subscribe(Fn=>{(Fn||r1.done)&&ee.delete(qr)})}),Ew();let Q4=B6(I);return Ae({loaderData:Hl,errors:qa},Q4||at.length>0?{fetchers:new Map(u.fetchers)}:{})}function jr(H){return u.fetchers.get(H)||$D}function jo(H,P,$,X){if(DD)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.");M.has(H)&&xl(H);let K=th(e,$,r.basename);if(!K){K4(H,P,en(404,{pathname:$}));return}let{path:ue,submission:se}=j9($,X,!0),be=Z9(K,ue);if(m=(X&&X.preventScrollReset)===!0,se&&xi(se.formMethod)){pi(H,P,ue,be,K,se);return}Se.set(H,{routeId:P,path:ue,match:be,matches:K}),ja(H,P,ue,be,K,se)}async function pi(H,P,$,X,K,ue){if(G4(),Se.delete(H),!X.route.action){let gi=en(405,{method:ue.formMethod,pathname:$,routeId:P});K4(H,P,gi);return}let se=u.fetchers.get(H),be=Ae({state:"submitting"},ue,{data:se&&se.data," _hasFetcherDoneAnything ":!0});u.fetchers.set(H,be),mt({fetchers:new Map(u.fetchers)});let te=new AbortController,m1=ss(r.history,$,te.signal,ue);M.set(H,te);let we=await os("action",m1,X,K,d.basename);if(m1.signal.aborted){M.get(H)===te&&M.delete(H);return}if(R2(we)){M.delete(H),U.add(H);let gi=Ae({state:"loading"},ue,{data:void 0," _hasFetcherDoneAnything ":!0});return u.fetchers.set(H,gi),mt({fetchers:new Map(u.fetchers)}),qo(u,we,{isFetchActionRedirect:!0})}if(Zs(we)){K4(H,P,we.error);return}if(_a(we))throw en(400,{type:"defer-action"});let at=u.navigation.location||u.location,xr=ss(r.history,at,te.signal),Mr=u.navigation.state!=="idle"?th(e,u.navigation.location,r.basename):u.matches;Fe(Mr,"Didn't find any matches after fetcher action");let Ko=++A;N.set(H,Ko);let Cl=Ae({state:"loading",data:we.data},ue,{" _hasFetcherDoneAnything ":!0});u.fetchers.set(H,Cl);let[Hl,qa]=q9(r.history,u,Mr,ue,at,_,p,z,{[X.route.id]:we.data},void 0,Se);qa.filter(gi=>gi.key!==H).forEach(gi=>{let J4=gi.key,G6=u.fetchers.get(J4),Dw={state:"loading",data:G6&&G6.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};u.fetchers.set(J4,Dw),M.set(J4,te)}),mt({fetchers:new Map(u.fetchers)});let{results:Q4,loaderResults:r1,fetcherResults:qr}=await U6(u.matches,Mr,Hl,qa,xr);if(te.signal.aborted)return;N.delete(H),M.delete(H),qa.forEach(gi=>M.delete(gi.key));let Fn=Q9(Q4);if(Fn)return qo(u,Fn);let{loaderData:kl,errors:X4}=K9(u,u.matches,Hl,r1,void 0,qa,qr,ee),Sw={state:"idle",data:we.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};u.fetchers.set(H,Sw);let $w=B6(Ko);u.navigation.state==="loading"&&Ko>I?(Fe(v,"Expected pending action"),f&&f.abort(),B(u.navigation.location,{matches:Mr,loaderData:kl,errors:X4,fetchers:new Map(u.fetchers)})):(mt(Ae({errors:X4,loaderData:W9(u.loaderData,kl,Mr,X4)},$w?{fetchers:new Map(u.fetchers)}:{})),_=!1)}async function ja(H,P,$,X,K,ue){let se=u.fetchers.get(H),be=Ae({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},ue,{data:se&&se.data," _hasFetcherDoneAnything ":!0});u.fetchers.set(H,be),mt({fetchers:new Map(u.fetchers)});let te=new AbortController,m1=ss(r.history,$,te.signal);M.set(H,te);let we=await os("loader",m1,X,K,d.basename);if(_a(we)&&(we=await vy(we,m1.signal,!0)||we),M.get(H)===te&&M.delete(H),m1.signal.aborted)return;if(R2(we)){await qo(u,we);return}if(Zs(we)){let xr=k2(u.matches,P);u.fetchers.delete(H),mt({fetchers:new Map(u.fetchers),errors:{[xr.route.id]:we.error}});return}Fe(!_a(we),"Unhandled fetcher deferred data");let at={state:"idle",data:we.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};u.fetchers.set(H,at),mt({fetchers:new Map(u.fetchers)})}async function qo(H,P,$){var X;let{submission:K,replace:ue,isFetchActionRedirect:se}=$===void 0?{}:$;P.revalidate&&(_=!0);let be=Va(H.location,P.location,Ae({_isRedirect:!0},se?{_isFetchActionRedirect:!0}:{}));if(Fe(be,"Expected a location on the redirect navigation"),ly&&typeof((X=window)==null?void 0:X.location)<"u"){let Mr=r.history.createURL(P.location).origin;if(window.location.origin!==Mr){ue?window.location.replace(P.location):window.location.assign(P.location);return}}f=null;let te=ue===!0?st.Replace:st.Push,{formMethod:m1,formAction:we,formEncType:at,formData:xr}=H.navigation;!K&&m1&&we&&xr&&at&&(K={formMethod:m1,formAction:we,formEncType:at,formData:xr}),SD.has(P.status)&&K&&xi(K.formMethod)?await Le(te,be,{submission:Ae({},K,{formAction:P.location}),preventScrollReset:m}):await Le(te,be,{overrideNavigation:{state:"loading",location:be,formMethod:K?K.formMethod:void 0,formAction:K?K.formAction:void 0,formEncType:K?K.formEncType:void 0,formData:K?K.formData:void 0},preventScrollReset:m})}async function U6(H,P,$,X,K){let ue=await Promise.all([...$.map(te=>os("loader",K,te,P,d.basename)),...X.map(te=>os("loader",ss(r.history,te.path,K.signal),te.match,te.matches,d.basename))]),se=ue.slice(0,$.length),be=ue.slice($.length);return await Promise.all([X9(H,$,se,K.signal,!1,u.loaderData),X9(H,X.map(te=>te.match),be,K.signal,!0)]),{results:ue,loaderResults:se,fetcherResults:be}}function G4(){_=!0,p.push(...Y4()),Se.forEach((H,P)=>{M.has(P)&&(z.push(P),xl(P))})}function K4(H,P,$){let X=k2(u.matches,P);W4(H),mt({errors:{[X.route.id]:$},fetchers:new Map(u.fetchers)})}function W4(H){M.has(H)&&xl(H),Se.delete(H),N.delete(H),U.delete(H),u.fetchers.delete(H)}function xl(H){let P=M.get(H);Fe(P,"Expected fetch controller: "+H),P.abort(),M.delete(H)}function F6(H){for(let P of H){let X={state:"idle",data:jr(P).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};u.fetchers.set(P,X)}}function Ew(){let H=[];for(let P of U){let $=u.fetchers.get(P);Fe($,"Expected fetcher: "+P),$.state==="loading"&&(U.delete(P),H.push(P))}F6(H)}function B6(H){let P=[];for(let[$,X]of N)if(X<H){let K=u.fetchers.get($);Fe(K,"Expected fetcher: "+$),K.state==="loading"&&(xl($),N.delete($),P.push($))}return F6(P),P.length>0}function Pw(H,P){let $=u.blockers.get(H)||B9;return br.get(H)!==P&&(br.set(H,P),Xe==null?Xe=H:H!==Xe&&Lc(!1,"A router only supports one blocker at a time")),$}function Go(H){u.blockers.delete(H),br.delete(H),Xe===H&&(Xe=null)}function Ml(H,P){let $=u.blockers.get(H)||B9;Fe($.state==="unblocked"&&P.state==="blocked"||$.state==="blocked"&&P.state==="blocked"||$.state==="blocked"&&P.state==="proceeding"||$.state==="blocked"&&P.state==="unblocked"||$.state==="proceeding"&&P.state==="unblocked","Invalid blocker state transition: "+$.state+" -> "+P.state),u.blockers.set(H,P),mt({blockers:new Map(u.blockers)})}function j6(H){let{currentLocation:P,nextLocation:$,historyAction:X}=H;if(Xe==null)return;let K=br.get(Xe);Fe(K,"Could not find a function for the active blocker");let ue=u.blockers.get(Xe);if(!(ue&&ue.state==="proceeding")&&K({currentLocation:P,nextLocation:$,historyAction:X}))return Xe}function Y4(H){let P=[];return ee.forEach(($,X)=>{(!H||H(X))&&($.cancel(),P.push(X),ee.delete(X))}),P}function Aw(H,P,$){if(n=H,o=P,a=$||(X=>X.key),!s&&u.navigation===o5){s=!0;let X=q6(u.location,u.matches);X!=null&&mt({restoreScrollPosition:X})}return()=>{n=null,o=null,a=null}}function Vw(H,P){if(n&&a&&o){let $=P.map(K=>J9(K,u.loaderData)),X=a(H,$)||H.key;n[X]=o()}}function q6(H,P){if(n&&a&&o){let $=P.map(ue=>J9(ue,u.loaderData)),X=a(H,$)||H.key,K=n[X];if(typeof K=="number")return K}return null}return d={get basename(){return r.basename},get state(){return u},get routes(){return e},initialize:bl,subscribe:Bo,enableScrollRestoration:Aw,navigate:le,fetch:jo,revalidate:pe,createHref:H=>r.history.createHref(H),encodeLocation:H=>r.history.encodeLocation(H),getFetcher:jr,deleteFetcher:W4,dispose:q4,getBlocker:Pw,deleteBlocker:Go,_internalFetchControllers:M,_internalActiveDeferreds:ee},d}function TD(r){return r!=null&&"formData"in r}function j9(r,e,t){t===void 0&&(t=!1);let i=typeof r=="string"?r:Fi(r);if(!e||!TD(e))return{path:i};if(e.formMethod&&!FD(e.formMethod))return{path:i,error:en(405,{method:e.formMethod})};let n;if(e.formData&&(n={formMethod:e.formMethod||"get",formAction:uy(i),formEncType:e&&e.formEncType||"application/x-www-form-urlencoded",formData:e.formData},xi(n.formMethod)))return{path:i,submission:n};let a=ji(i),o=dy(e.formData);return t&&a.search&&my(a.search)&&o.append("index",""),a.search="?"+o,{path:Fi(a),submission:n}}function ID(r,e){let t=r;if(e){let i=r.findIndex(n=>n.route.id===e);i>=0&&(t=r.slice(0,i))}return t}function q9(r,e,t,i,n,a,o,s,c,l,h){let d=l?Object.values(l)[0]:c?Object.values(c)[0]:void 0,u=r.createURL(e.location),v=r.createURL(n),m=a||u.toString()===v.toString()||u.search!==v.search,f=l?Object.keys(l)[0]:void 0,_=ID(t,f).filter((z,M)=>{if(z.route.loader==null)return!1;if(RD(e.loaderData,e.matches[M],z)||o.some(N=>N===z.route.id))return!0;let A=e.matches[M],I=z;return G9(z,Ae({currentUrl:u,currentParams:A.params,nextUrl:v,nextParams:I.params},i,{actionResult:d,defaultShouldRevalidate:m||hy(A,I)}))}),p=[];return h&&h.forEach((z,M)=>{if(t.some(A=>A.route.id===z.routeId))s.includes(M)?p.push(Ae({key:M},z)):G9(z.match,Ae({currentUrl:u,currentParams:e.matches[e.matches.length-1].params,nextUrl:v,nextParams:t[t.length-1].params},i,{actionResult:d,defaultShouldRevalidate:m}))&&p.push(Ae({key:M},z));else return}),[_,p]}function RD(r,e,t){let i=!e||t.route.id!==e.route.id,n=r[t.route.id]===void 0;return i||n}function hy(r,e){let t=r.route.path;return r.pathname!==e.pathname||t!=null&&t.endsWith("*")&&r.params["*"]!==e.params["*"]}function G9(r,e){if(r.route.shouldRevalidate){let t=r.route.shouldRevalidate(e);if(typeof t=="boolean")return t}return e.defaultShouldRevalidate}async function os(r,e,t,i,n,a,o,s){n===void 0&&(n="/"),a===void 0&&(a=!1),o===void 0&&(o=!1);let c,l,h,d=new Promise((v,m)=>h=m),u=()=>h();e.signal.addEventListener("abort",u);try{let v=t.route[r];Fe(v,"Could not find the "+r+' to run on the "'+t.route.id+'" route'),l=await Promise.race([v({request:e,params:t.params,context:s}),d]),Fe(l!==void 0,"You defined "+(r==="action"?"an action":"a loader")+" for route "+('"'+t.route.id+"\" but didn't return anything from your `"+r+"` ")+"function. Please return a value or `null`.")}catch(v){c=qt.error,l=v}finally{e.signal.removeEventListener("abort",u)}if(UD(l)){let v=l.status;if(VD.has(v)){let C=l.headers.get("Location");if(Fe(C,"Redirects returned/thrown from loaders/actions must have a Location header"),/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(C)){if(!a){let p=new URL(e.url),z=C.startsWith("//")?new URL(p.protocol+C):new URL(C);z.origin===p.origin&&(C=z.pathname+z.search+z.hash)}}else{let p=i.slice(0,i.indexOf(t)+1),z=oy(p).map(A=>A.pathnameBase),M=yD(C,z,new URL(e.url).pathname);if(Fe(Fi(M),"Unable to resolve redirect location: "+C),n){let A=M.pathname;M.pathname=A==="/"?n:Js([n,A])}C=Fi(M)}if(a)throw l.headers.set("Location",C),l;return{type:qt.redirect,status:v,location:C,revalidate:l.headers.get("X-Remix-Revalidate")!==null}}if(o)throw{type:c||qt.data,response:l};let m,f=l.headers.get("Content-Type");return f&&/\bapplication\/json\b/.test(f)?m=await l.json():m=await l.text(),c===qt.error?{type:c,error:new sy(v,l.statusText,m),headers:l.headers}:{type:qt.data,data:m,statusCode:l.status,headers:l.headers}}return c===qt.error?{type:c,error:l}:l instanceof MD?{type:qt.deferred,deferredData:l}:{type:qt.data,data:l}}function ss(r,e,t,i){let n=r.createURL(uy(e)).toString(),a={signal:t};if(i&&xi(i.formMethod)){let{formMethod:o,formEncType:s,formData:c}=i;a.method=o.toUpperCase(),a.body=s==="application/x-www-form-urlencoded"?dy(c):c}return new Request(n,a)}function dy(r){let e=new URLSearchParams;for(let[t,i]of r.entries())e.append(t,i instanceof File?i.name:i);return e}function OD(r,e,t,i,n){let a={},o=null,s,c=!1,l={};return t.forEach((h,d)=>{let u=e[d].route.id;if(Fe(!R2(h),"Cannot handle redirect results in processLoaderData"),Zs(h)){let v=k2(r,u),m=h.error;i&&(m=Object.values(i)[0],i=void 0),o=o||{},o[v.route.id]==null&&(o[v.route.id]=m),a[u]=void 0,c||(c=!0,s=kD(h.error)?h.error.status:500),h.headers&&(l[u]=h.headers)}else _a(h)?(n.set(u,h.deferredData),a[u]=h.deferredData.data):a[u]=h.data,h.statusCode!=null&&h.statusCode!==200&&!c&&(s=h.statusCode),h.headers&&(l[u]=h.headers)}),i&&(o=i,a[Object.keys(i)[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function K9(r,e,t,i,n,a,o,s){let{loaderData:c,errors:l}=OD(e,t,i,n,s);for(let h=0;h<a.length;h++){let{key:d,match:u}=a[h];Fe(o!==void 0&&o[h]!==void 0,"Did not find corresponding fetcher result");let v=o[h];if(Zs(v)){let m=k2(r.matches,u.route.id);l&&l[m.route.id]||(l=Ae({},l,{[m.route.id]:v.error})),r.fetchers.delete(d)}else if(R2(v))Fe(!1,"Unhandled fetcher revalidation redirect");else if(_a(v))Fe(!1,"Unhandled fetcher deferred data");else{let m={state:"idle",data:v.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};r.fetchers.set(d,m)}}return{loaderData:c,errors:l}}function W9(r,e,t,i){let n=Ae({},e);for(let a of t){let o=a.route.id;if(e.hasOwnProperty(o)?e[o]!==void 0&&(n[o]=e[o]):r[o]!==void 0&&(n[o]=r[o]),i&&i.hasOwnProperty(o))break}return n}function k2(r,e){return(e?r.slice(0,r.findIndex(i=>i.route.id===e)+1):[...r]).reverse().find(i=>i.route.hasErrorBoundary===!0)||r[0]}function Y9(r){let e=r.find(t=>t.index||!t.path||t.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function en(r,e){let{pathname:t,routeId:i,method:n,type:a}=e===void 0?{}:e,o="Unknown Server Error",s="Unknown @remix-run/router error";return r===400?(o="Bad Request",n&&t&&i?s="You made a "+n+' request to "'+t+'" but '+('did not provide a `loader` for route "'+i+'", ')+"so there is no way to handle the request.":a==="defer-action"&&(s="defer() is not supported in actions")):r===403?(o="Forbidden",s='Route "'+i+'" does not match URL "'+t+'"'):r===404?(o="Not Found",s='No route matches URL "'+t+'"'):r===405&&(o="Method Not Allowed",n&&t&&i?s="You made a "+n.toUpperCase()+' request to "'+t+'" but '+('did not provide an `action` for route "'+i+'", ')+"so there is no way to handle the request.":n&&(s='Invalid request method "'+n.toUpperCase()+'"')),new sy(r||500,o,new Error(s),!0)}function Q9(r){for(let e=r.length-1;e>=0;e--){let t=r[e];if(R2(t))return t}}function uy(r){let e=typeof r=="string"?ji(r):r;return Fi(Ae({},e,{hash:""}))}function ND(r,e){return r.pathname===e.pathname&&r.search===e.search&&r.hash!==e.hash}function _a(r){return r.type===qt.deferred}function Zs(r){return r.type===qt.error}function R2(r){return(r&&r.type)===qt.redirect}function UD(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.headers=="object"&&typeof r.body<"u"}function FD(r){return AD.has(r)}function xi(r){return ED.has(r)}async function X9(r,e,t,i,n,a){for(let o=0;o<t.length;o++){let s=t[o],c=e[o],l=r.find(d=>d.route.id===c.route.id),h=l!=null&&!hy(l,c)&&(a&&a[c.route.id])!==void 0;_a(s)&&(n||h)&&await vy(s,i,n).then(d=>{d&&(t[o]=d||t[o])})}}async function vy(r,e,t){if(t===void 0&&(t=!1),!await r.deferredData.resolveData(e)){if(t)try{return{type:qt.data,data:r.deferredData.unwrappedData}}catch(n){return{type:qt.error,error:n}}return{type:qt.data,data:r.deferredData.data}}}function my(r){return new URLSearchParams(r).getAll("index").some(e=>e==="")}function J9(r,e){let{route:t,pathname:i,params:n}=r;return{id:t.id,pathname:i,params:n,data:e[t.id],handle:t.handle}}function Z9(r,e){let t=typeof e=="string"?ji(e).search:e.search;if(r[r.length-1].route.index&&my(t||""))return r[r.length-1];let i=oy(r);return i[i.length-1]}var Ze=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},rh=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},sr,Uh,Mu,Fh,Xr,da;class BD extends Ee{get basename(){return Ze(this,Uh,"f")}get origin(){return Ze(this,Mu,"f")}get state(){return Ze(this,Xr,"f").asObservable()}get value(){return Ze(this,Xr,"f").value}get location(){return this.value.location}get action(){return this.value.action}constructor(e){super(n=>Ze(this,Xr,"f").subscribe(n)),sr.set(this,void 0),Uh.set(this,void 0),Mu.set(this,window.location.origin),Fh.set(this,new U1),Xr.set(this,void 0),da.set(this,void 0);const{basename:t,history:i}=e;rh(this,da,e.logger||console,"f"),rh(this,Uh,t,"f"),rh(this,sr,i,"f"),rh(this,Xr,new Do({action:Ze(this,sr,"f").action,location:Ze(this,sr,"f").location,delta:null}),"f"),Ze(this,Fh,"f").add(Ze(this,sr,"f").listen(n=>{n.location.key!==Ze(this,Xr,"f").value.location.key&&(Ze(this,da,"f").debug("Navigator::constructor","history changed",n,Ze(this,Xr,"f").value),Ze(this,Xr,"f").next(n))}))}encodeLocation(e){return Ze(this,sr,"f").encodeLocation(e)}listen(e){Ze(this,da,"f").debug("Navigator::listen",e);const t=Ze(this,Xr,"f").subscribe(i=>{Ze(this,da,"f").debug("Navigator::listen[onchange]",i),e(i)});return()=>(Ze(this,da,"f").debug("Navigator::listen[unsubscribe]"),t.unsubscribe())}createHref(e){return Ze(this,sr,"f").createHref(e)}go(e){Ze(this,sr,"f").go(e)}push(e,t){return Ze(this,sr,"f").push(e,t)}replace(e,t){return Ze(this,sr,"f").replace(e,t)}createURL(e){return Ze(this,sr,"f").createURL(e)}dispose(){Ze(this,Fh,"f").unsubscribe()}}sr=new WeakMap,Uh=new WeakMap,Mu=new WeakMap,Fh=new WeakMap,Xr=new WeakMap,da=new WeakMap;var s5=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},jD=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},s2;class qD{get navigator(){return s5(this,s2,"f")}constructor(e){s2.set(this,void 0);const{config:{basename:t,history:i}}=e;if(!i)throw Error("no history provided!");jD(this,s2,new BD({basename:t,history:i}),"f")}createRouter(e){const t=s5(this,s2,"f");console.debug("NavigationProvider::createRouter",t,e);const i=LD({basename:t.basename,history:t,routes:e});return i.initialize(),i}dispose(){s5(this,s2,"f").dispose()}}s2=new WeakMap;const GD=r=>{switch(r){case"hash":return eD({v5Compat:!0});case"memory":return J$({v5Compat:!0});case"browser":default:return Z$({v5Compat:!0})}},KD="navigation",WD={name:KD,configure:r=>{const e=new X$;return r&&(e.history=r.navigation.navigator),e},initialize:({config:r})=>{var e;return(e=r.history)!==null&&e!==void 0||(r.history=GD()),new qD({config:r})},dispose({instance:r}){r.dispose()}},YD=(r,e)=>{const t=typeof e=="string"?{configure:i=>{i.basename=e}}:e;r.addConfig(Object.assign({module:WD},t))},QD=async r=>{r.logger.level=0,r.configureServiceDiscovery({client:{baseUri:import.meta.url,defaultScopes:["5a842df8-3238-415d-b168-9f16a6a6031b/.default"]}}),r.configureMsal({tenantId:"3aa4a235-b6e2-48d5-9195-7fcf05b459b0",clientId:"9b707e3a-3e90-41ed-a47e-652a1e3b53d0",redirectUri:"/authentication/login-callback"},{requiresAuth:!0}),S$(r),YD(r),Q$(r,e=>{e.setSourceSystem({subSystem:"CLI",identifier:"fusion-cli",name:"Fusion CLI"})}),r.onConfigured(()=>{console.log("framework config done")}),r.onInitialized(async e=>{e.auth.defaultClient.setLogger(new K_(0)),console.debug("📒 subscribing to all events")})},XD="bookmarkId",JD=r=>{const{event:e,context:t,navigation:{navigator:i}}=Ra().modules;k.useLayoutEffect(()=>e.addEventListener("onBookmarkChanged",a=>{var o;const{appKey:s,context:c}=a.detail,l=r.resolveAppPath(s);if(i.location.pathname!==l){const{hash:h,search:d}=i.location,u={pathname:l,search:ZD(d),hash:h};i.push(u)}c&&((o=t.contextClient.currentContext)===null||o===void 0?void 0:o.id)!==c.id&&t.contextClient.setCurrentContext(c.id)}),[r,t,e,i])};function ZD(r){const e=new URLSearchParams(r);return e.delete(XD),`?${e.toString()}`}const eL=()=>{const r=Ra().modules.event,[e,t]=k.useState(!1);return k.useEffect(()=>{const i=r.addEventListener("onBookmarkChanged",()=>{t(!1)}),n=r.addEventListener("onAddCreator",()=>{t(!0)});return()=>{i(),n()}},[r]),e};/**
|
|
419
|
+
*/function Ae(){return Ae=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},Ae.apply(this,arguments)}var st;(function(r){r.Pop="POP",r.Push="PUSH",r.Replace="REPLACE"})(st||(st={}));const O9="popstate";function J$(r){r===void 0&&(r={});let{initialEntries:e=["/"],initialIndex:t,v5Compat:i=!1}=r,n;n=e.map((v,m)=>h(v,typeof v=="string"?null:v.state,m===0?"default":void 0));let a=c(t??n.length-1),o=st.Pop,s=null;function c(v){return Math.min(Math.max(v,0),n.length-1)}function l(){return n[a]}function h(v,m,f){m===void 0&&(m=null);let C=Va(n?l().pathname:"/",v,m,f);return ty(C.pathname.charAt(0)==="/","relative pathnames are not supported in memory history: "+JSON.stringify(v)),C}function d(v){return typeof v=="string"?v:Bi(v)}return{get index(){return a},get action(){return o},get location(){return l()},createHref:d,createURL(v){return new URL(d(v),"http://localhost")},encodeLocation(v){let m=typeof v=="string"?qi(v):v;return{pathname:m.pathname||"",search:m.search||"",hash:m.hash||""}},push(v,m){o=st.Push;let f=h(v,m);a+=1,n.splice(a,n.length,f),i&&s&&s({action:o,location:f,delta:1})},replace(v,m){o=st.Replace;let f=h(v,m);n[a]=f,i&&s&&s({action:o,location:f,delta:0})},go(v){o=st.Pop;let m=c(a+v),f=n[m];a=m,s&&s({action:o,location:f,delta:v})},listen(v){return s=v,()=>{s=null}}}}function Z$(r){r===void 0&&(r={});function e(i,n){let{pathname:a,search:o,hash:s}=i.location;return Va("",{pathname:a,search:o,hash:s},n.state&&n.state.usr||null,n.state&&n.state.key||"default")}function t(i,n){return typeof n=="string"?n:Bi(n)}return ry(e,t,null,r)}function eD(r){r===void 0&&(r={});function e(n,a){let{pathname:o="/",search:s="",hash:c=""}=qi(n.location.hash.substr(1));return Va("",{pathname:o,search:s,hash:c},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function t(n,a){let o=n.document.querySelector("base"),s="";if(o&&o.getAttribute("href")){let c=n.location.href,l=c.indexOf("#");s=l===-1?c:c.slice(0,l)}return s+"#"+(typeof a=="string"?a:Bi(a))}function i(n,a){ty(n.pathname.charAt(0)==="/","relative pathnames are not supported in hash history.push("+JSON.stringify(a)+")")}return ry(e,t,i,r)}function Fe(r,e){if(r===!1||r===null||typeof r>"u")throw new Error(e)}function ty(r,e){if(!r){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function tD(){return Math.random().toString(36).substr(2,8)}function N9(r,e){return{usr:r.state,key:r.key,idx:e}}function Va(r,e,t,i){return t===void 0&&(t=null),Ae({pathname:typeof r=="string"?r:r.pathname,search:"",hash:""},typeof e=="string"?qi(e):e,{state:t,key:e&&e.key||i||tD()})}function Bi(r){let{pathname:e="/",search:t="",hash:i=""}=r;return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),i&&i!=="#"&&(e+=i.charAt(0)==="#"?i:"#"+i),e}function qi(r){let e={};if(r){let t=r.indexOf("#");t>=0&&(e.hash=r.substr(t),r=r.substr(0,t));let i=r.indexOf("?");i>=0&&(e.search=r.substr(i),r=r.substr(0,i)),r&&(e.pathname=r)}return e}function ry(r,e,t,i){i===void 0&&(i={});let{window:n=document.defaultView,v5Compat:a=!1}=i,o=n.history,s=st.Pop,c=null,l=h();l==null&&(l=0,o.replaceState(Ae({},o.state,{idx:l}),""));function h(){return(o.state||{idx:null}).idx}function d(){s=st.Pop;let C=h(),_=C==null?null:C-l;l=C,c&&c({action:s,location:f.location,delta:_})}function u(C,_){s=st.Push;let p=Va(f.location,C,_);t&&t(p,C),l=h()+1;let z=N9(p,l),M=f.createHref(p);try{o.pushState(z,"",M)}catch{n.location.assign(M)}a&&c&&c({action:s,location:f.location,delta:1})}function v(C,_){s=st.Replace;let p=Va(f.location,C,_);t&&t(p,C),l=h();let z=N9(p,l),M=f.createHref(p);o.replaceState(z,"",M),a&&c&&c({action:s,location:f.location,delta:0})}function m(C){let _=n.location.origin!=="null"?n.location.origin:n.location.href,p=typeof C=="string"?C:Bi(C);return Fe(_,"No window.location.(origin|href) available to create URL for href: "+p),new URL(p,_)}let f={get action(){return s},get location(){return r(n,o)},listen(C){if(c)throw new Error("A history only accepts one active listener");return n.addEventListener(O9,d),c=C,()=>{n.removeEventListener(O9,d),c=null}},createHref(C){return e(n,C)},createURL:m,encodeLocation(C){let _=m(C);return{pathname:_.pathname,search:_.search,hash:_.hash}},push:u,replace:v,go(C){return o.go(C)}};return f}var qt;(function(r){r.data="data",r.deferred="deferred",r.redirect="redirect",r.error="error"})(qt||(qt={}));function rD(r){return r.index===!0}function iy(r,e,t){return e===void 0&&(e=[]),t===void 0&&(t=new Set),r.map((i,n)=>{let a=[...e,n],o=typeof i.id=="string"?i.id:a.join("-");return Fe(i.index!==!0||!i.children,"Cannot specify children on an index route"),Fe(!t.has(o),'Found a route id collision on id "'+o+`". Route id's must be globally unique within Data Router usages`),t.add(o),rD(i)?Ae({},i,{id:o}):Ae({},i,{id:o,children:i.children?iy(i.children,a,t):void 0})})}function th(r,e,t){t===void 0&&(t="/");let i=typeof e=="string"?qi(e):e,n=gD(i.pathname||"/",t);if(n==null)return null;let a=ny(r);iD(a);let o=null;for(let s=0;o==null&&s<a.length;++s)o=uD(a[s],fD(n));return o}function ny(r,e,t,i){e===void 0&&(e=[]),t===void 0&&(t=[]),i===void 0&&(i="");let n=(a,o,s)=>{let c={relativePath:s===void 0?a.path||"":s,caseSensitive:a.caseSensitive===!0,childrenIndex:o,route:a};c.relativePath.startsWith("/")&&(Fe(c.relativePath.startsWith(i),'Absolute route path "'+c.relativePath+'" nested under path '+('"'+i+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),c.relativePath=c.relativePath.slice(i.length));let l=Js([i,c.relativePath]),h=t.concat(c);a.children&&a.children.length>0&&(Fe(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+l+'".')),ny(a.children,e,h,l)),!(a.path==null&&!a.index)&&e.push({path:l,score:hD(l,a.index),routesMeta:h})};return r.forEach((a,o)=>{var s;if(a.path===""||!((s=a.path)!=null&&s.includes("?")))n(a,o);else for(let c of ay(a.path))n(a,o,c)}),e}function ay(r){let e=r.split("/");if(e.length===0)return[];let[t,...i]=e,n=t.endsWith("?"),a=t.replace(/\?$/,"");if(i.length===0)return n?[a,""]:[a];let o=ay(i.join("/")),s=[];return s.push(...o.map(c=>c===""?a:[a,c].join("/"))),n&&s.push(...o),s.map(c=>r.startsWith("/")&&c===""?"/":c)}function iD(r){r.sort((e,t)=>e.score!==t.score?t.score-e.score:dD(e.routesMeta.map(i=>i.childrenIndex),t.routesMeta.map(i=>i.childrenIndex)))}const nD=/^:\w+$/,aD=3,oD=2,sD=1,cD=10,lD=-2,U9=r=>r==="*";function hD(r,e){let t=r.split("/"),i=t.length;return t.some(U9)&&(i+=lD),e&&(i+=oD),t.filter(n=>!U9(n)).reduce((n,a)=>n+(nD.test(a)?aD:a===""?sD:cD),i)}function dD(r,e){return r.length===e.length&&r.slice(0,-1).every((i,n)=>i===e[n])?r[r.length-1]-e[e.length-1]:0}function uD(r,e){let{routesMeta:t}=r,i={},n="/",a=[];for(let o=0;o<t.length;++o){let s=t[o],c=o===t.length-1,l=n==="/"?e:e.slice(n.length)||"/",h=vD({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l);if(!h)return null;Object.assign(i,h.params);let d=s.route;a.push({params:i,pathname:Js([n,h.pathname]),pathnameBase:wD(Js([n,h.pathnameBase])),route:d}),h.pathnameBase!=="/"&&(n=Js([n,h.pathnameBase]))}return a}function vD(r,e){typeof r=="string"&&(r={path:r,caseSensitive:!1,end:!0});let[t,i]=mD(r.path,r.caseSensitive,r.end),n=e.match(t);if(!n)return null;let a=n[0],o=a.replace(/(.)\/+$/,"$1"),s=n.slice(1);return{params:i.reduce((l,h,d)=>{if(h==="*"){let u=s[d]||"";o=a.slice(0,a.length-u.length).replace(/(.)\/+$/,"$1")}return l[h]=pD(s[d]||"",h),l},{}),pathname:a,pathnameBase:o,pattern:r}}function mD(r,e,t){e===void 0&&(e=!1),t===void 0&&(t=!0),Lc(r==="*"||!r.endsWith("*")||r.endsWith("/*"),'Route path "'+r+'" will be treated as if it were '+('"'+r.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+r.replace(/\*$/,"/*")+'".'));let i=[],n="^"+r.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^$?{}|()[\]]/g,"\\$&").replace(/\/:(\w+)/g,(o,s)=>(i.push(s),"/([^\\/]+)"));return r.endsWith("*")?(i.push("*"),n+=r==="*"||r==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?n+="\\/*$":r!==""&&r!=="/"&&(n+="(?:(?=\\/|$))"),[new RegExp(n,e?void 0:"i"),i]}function fD(r){try{return decodeURI(r)}catch(e){return Lc(!1,'The URL path "'+r+'" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent '+("encoding ("+e+").")),r}}function pD(r,e){try{return decodeURIComponent(r)}catch(t){return Lc(!1,'The value for the URL param "'+e+'" will not be decoded because'+(' the string "'+r+'" is a malformed URL segment. This is probably')+(" due to a bad percent encoding ("+t+").")),r}}function gD(r,e){if(e==="/")return r;if(!r.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,i=r.charAt(t);return i&&i!=="/"?null:r.slice(t)||"/"}function Lc(r,e){if(!r){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function _D(r,e){e===void 0&&(e="/");let{pathname:t,search:i="",hash:n=""}=typeof r=="string"?qi(r):r;return{pathname:t?t.startsWith("/")?t:zD(t,e):e,search:bD(i),hash:xD(n)}}function zD(r,e){let t=e.replace(/\/+$/,"").split("/");return r.split("/").forEach(n=>{n===".."?t.length>1&&t.pop():n!=="."&&t.push(n)}),t.length>1?t.join("/"):"/"}function a5(r,e,t,i){return"Cannot include a '"+r+"' character in a manually specified "+("`to."+e+"` field ["+JSON.stringify(i)+"]. 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 oy(r){return r.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function yD(r,e,t,i){i===void 0&&(i=!1);let n;typeof r=="string"?n=qi(r):(n=Ae({},r),Fe(!n.pathname||!n.pathname.includes("?"),a5("?","pathname","search",n)),Fe(!n.pathname||!n.pathname.includes("#"),a5("#","pathname","hash",n)),Fe(!n.search||!n.search.includes("#"),a5("#","search","hash",n)));let a=r===""||n.pathname==="",o=a?"/":n.pathname,s;if(i||o==null)s=t;else{let d=e.length-1;if(o.startsWith("..")){let u=o.split("/");for(;u[0]==="..";)u.shift(),d-=1;n.pathname=u.join("/")}s=d>=0?e[d]:"/"}let c=_D(n,s),l=o&&o!=="/"&&o.endsWith("/"),h=(a||o===".")&&t.endsWith("/");return!c.pathname.endsWith("/")&&(l||h)&&(c.pathname+="/"),c}const Js=r=>r.join("/").replace(/\/\/+/g,"/"),wD=r=>r.replace(/\/+$/,"").replace(/^\/*/,"/"),bD=r=>!r||r==="?"?"":r.startsWith("?")?r:"?"+r,xD=r=>!r||r==="#"?"":r.startsWith("#")?r:"#"+r;class F9 extends Error{}class MD{constructor(e,t){this.pendingKeysSet=new Set,this.subscribers=new Set,this.deferredKeys=[],Fe(e&&typeof e=="object"&&!Array.isArray(e),"defer() only accepts plain objects");let i;this.abortPromise=new Promise((a,o)=>i=o),this.controller=new AbortController;let n=()=>i(new F9("Deferred data aborted"));this.unlistenAbortSignal=()=>this.controller.signal.removeEventListener("abort",n),this.controller.signal.addEventListener("abort",n),this.data=Object.entries(e).reduce((a,o)=>{let[s,c]=o;return Object.assign(a,{[s]:this.trackPromise(s,c)})},{}),this.done&&this.unlistenAbortSignal(),this.init=t}trackPromise(e,t){if(!(t instanceof Promise))return t;this.deferredKeys.push(e),this.pendingKeysSet.add(e);let i=Promise.race([t,this.abortPromise]).then(n=>this.onSettle(i,e,null,n),n=>this.onSettle(i,e,n));return i.catch(()=>{}),Object.defineProperty(i,"_tracked",{get:()=>!0}),i}onSettle(e,t,i,n){return this.controller.signal.aborted&&i instanceof F9?(this.unlistenAbortSignal(),Object.defineProperty(e,"_error",{get:()=>i}),Promise.reject(i)):(this.pendingKeysSet.delete(t),this.done&&this.unlistenAbortSignal(),i?(Object.defineProperty(e,"_error",{get:()=>i}),this.emit(!1,t),Promise.reject(i)):(Object.defineProperty(e,"_data",{get:()=>n}),this.emit(!1,t),n))}emit(e,t){this.subscribers.forEach(i=>i(e,t))}subscribe(e){return this.subscribers.add(e),()=>this.subscribers.delete(e)}cancel(){this.controller.abort(),this.pendingKeysSet.forEach((e,t)=>this.pendingKeysSet.delete(t)),this.emit(!0)}async resolveData(e){let t=!1;if(!this.done){let i=()=>this.cancel();e.addEventListener("abort",i),t=await new Promise(n=>{this.subscribe(a=>{e.removeEventListener("abort",i),(a||this.done)&&n(a)})})}return t}get done(){return this.pendingKeysSet.size===0}get unwrappedData(){return Fe(this.data!==null&&this.done,"Can only unwrap data on initialized and settled deferreds"),Object.entries(this.data).reduce((e,t)=>{let[i,n]=t;return Object.assign(e,{[i]:HD(n)})},{})}get pendingKeys(){return Array.from(this.pendingKeysSet)}}function CD(r){return r instanceof Promise&&r._tracked===!0}function HD(r){if(!CD(r))return r;if(r._error)throw r._error;return r._data}class sy{constructor(e,t,i,n){n===void 0&&(n=!1),this.status=e,this.statusText=t||"",this.internal=n,i instanceof Error?(this.data=i.toString(),this.error=i):this.data=i}}function kD(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.internal=="boolean"&&"data"in r}const cy=["post","put","patch","delete"],ED=new Set(cy),PD=["get",...cy],AD=new Set(PD),VD=new Set([301,302,303,307,308]),SD=new Set([307,308]),o5={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},$D={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},B9={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},ly=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",DD=!ly;function LD(r){Fe(r.routes.length>0,"You must provide a non-empty routes array to createRouter");let e=iy(r.routes),t=null,i=new Set,n=null,a=null,o=null,s=r.hydrationData!=null,c=th(e,r.history.location,r.basename),l=null;if(c==null){let H=tn(404,{pathname:r.history.location.pathname}),{matches:P,route:$}=Y9(e);c=P,l={[$.id]:H}}let h=!c.some(H=>H.route.loader)||r.hydrationData!=null,d,u={historyAction:r.history.action,location:r.history.location,matches:c,initialized:h,navigation:o5,restoreScrollPosition:r.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:r.hydrationData&&r.hydrationData.loaderData||{},actionData:r.hydrationData&&r.hydrationData.actionData||null,errors:r.hydrationData&&r.hydrationData.errors||l,fetchers:new Map,blockers:new Map},v=st.Pop,m=!1,f,C=!1,_=!1,p=[],z=[],M=new Map,A=0,I=-1,N=new Map,U=new Set,Se=new Map,ee=new Map,Je=null,br=new Map,fi=!1;function bl(){return t=r.history.listen(H=>{let{action:P,location:$,delta:X}=H;if(fi){fi=!1;return}Lc(Je!=null&&X===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 K=j6({currentLocation:u.location,nextLocation:$,historyAction:P});if(K&&X!=null){fi=!0,r.history.go(X*-1),Ml(K,{state:"blocked",location:$,proceed(){Ml(K,{state:"proceeding",proceed:void 0,reset:void 0,location:$}),r.history.go(X)},reset(){Go(K),mt({blockers:new Map(d.state.blockers)})}});return}return Le(P,$)}),u.initialized||Le(st.Pop,u.location),d}function q4(){t&&t(),i.clear(),f&&f.abort(),u.fetchers.forEach((H,P)=>W4(P)),u.blockers.forEach((H,P)=>Go(P))}function Bo(H){return i.add(H),()=>i.delete(H)}function mt(H){u=Ae({},u,H),i.forEach(P=>P(u))}function B(H,P){var $,X;let K=u.actionData!=null&&u.navigation.formMethod!=null&&Mi(u.navigation.formMethod)&&u.navigation.state==="loading"&&(($=H.state)==null?void 0:$._isRedirect)!==!0,ue;P.actionData?Object.keys(P.actionData).length>0?ue=P.actionData:ue=null:K?ue=u.actionData:ue=null;let se=P.loaderData?W9(u.loaderData,P.loaderData,P.matches||[],P.errors):u.loaderData;for(let[te]of br)Go(te);let be=m===!0||u.navigation.formMethod!=null&&Mi(u.navigation.formMethod)&&((X=H.state)==null?void 0:X._isRedirect)!==!0;mt(Ae({},P,{actionData:ue,loaderData:se,historyAction:v,location:H,initialized:!0,navigation:o5,revalidation:"idle",restoreScrollPosition:q6(H,P.matches||u.matches),preventScrollReset:be,blockers:new Map(u.blockers)})),C||v===st.Pop||(v===st.Push?r.history.push(H,H.state):v===st.Replace&&r.history.replace(H,H.state)),v=st.Pop,m=!1,C=!1,_=!1,p=[],z=[]}async function le(H,P){if(typeof H=="number"){r.history.go(H);return}let{path:$,submission:X,error:K}=j9(H,P),ue=u.location,se=Va(u.location,$,P&&P.state);se=Ae({},se,r.history.encodeLocation(se));let be=P&&P.replace!=null?P.replace:void 0,te=st.Push;be===!0?te=st.Replace:be===!1||X!=null&&Mi(X.formMethod)&&X.formAction===u.location.pathname+u.location.search&&(te=st.Replace);let m1=P&&"preventScrollReset"in P?P.preventScrollReset===!0:void 0,we=j6({currentLocation:ue,nextLocation:se,historyAction:te});if(we){Ml(we,{state:"blocked",location:se,proceed(){Ml(we,{state:"proceeding",proceed:void 0,reset:void 0,location:se}),le(H,P)},reset(){Go(we),mt({blockers:new Map(u.blockers)})}});return}return await Le(te,se,{submission:X,pendingError:K,preventScrollReset:m1,replace:P&&P.replace})}function pe(){if(G4(),mt({revalidation:"loading"}),u.navigation.state!=="submitting"){if(u.navigation.state==="idle"){Le(u.historyAction,u.location,{startUninterruptedRevalidation:!0});return}Le(v||u.historyAction,u.navigation.location,{overrideNavigation:u.navigation})}}async function Le(H,P,$){f&&f.abort(),f=null,v=H,C=($&&$.startUninterruptedRevalidation)===!0,Vw(u.location,u.matches),m=($&&$.preventScrollReset)===!0;let X=$&&$.overrideNavigation,K=th(e,P,r.basename);if(!K){let at=tn(404,{pathname:P.pathname}),{matches:xr,route:Mr}=Y9(e);Y4(),B(P,{matches:xr,loaderData:{},errors:{[Mr.id]:at}});return}if(ND(u.location,P)&&!($&&$.submission&&Mi($.submission.formMethod))){B(P,{matches:K});return}f=new AbortController;let ue=ss(r.history,P,f.signal,$&&$.submission),se,be;if($&&$.pendingError)be={[k2(K).route.id]:$.pendingError};else if($&&$.submission&&Mi($.submission.formMethod)){let at=await ft(ue,P,$.submission,K,{replace:$.replace});if(at.shortCircuited)return;se=at.pendingActionData,be=at.pendingActionError,X=Ae({state:"loading",location:P},$.submission),ue=new Request(ue.url,{signal:ue.signal})}let{shortCircuited:te,loaderData:m1,errors:we}=await Ba(ue,P,K,X,$&&$.submission,$&&$.replace,se,be);te||(f=null,B(P,Ae({matches:K},se?{actionData:se}:{},{loaderData:m1,errors:we})))}async function ft(H,P,$,X,K){G4();let ue=Ae({state:"submitting",location:P},$);mt({navigation:ue});let se,be=Z9(X,P);if(!be.route.action)se={type:qt.error,error:tn(405,{method:H.method,pathname:P.pathname,routeId:be.route.id})};else if(se=await os("action",H,be,X,d.basename),H.signal.aborted)return{shortCircuited:!0};if(R2(se)){let te;return K&&K.replace!=null?te=K.replace:te=se.location===u.location.pathname+u.location.search,await qo(u,se,{submission:$,replace:te}),{shortCircuited:!0}}if(Zs(se)){let te=k2(X,be.route.id);return(K&&K.replace)!==!0&&(v=st.Push),{pendingActionData:{},pendingActionError:{[te.route.id]:se.error}}}if(_a(se))throw tn(400,{type:"defer-action"});return{pendingActionData:{[be.route.id]:se.data}}}async function Ba(H,P,$,X,K,ue,se,be){let te=X;te||(te=Ae({state:"loading",location:P,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},K));let m1=K||(te.formMethod&&te.formAction&&te.formData&&te.formEncType?{formMethod:te.formMethod,formAction:te.formAction,formData:te.formData,formEncType:te.formEncType}:void 0),[we,at]=q9(r.history,u,$,m1,P,_,p,z,se,be,Se);if(Y4(r1=>!($&&$.some(qr=>qr.route.id===r1))||we&&we.some(qr=>qr.route.id===r1)),we.length===0&&at.length===0)return B(P,Ae({matches:$,loaderData:{},errors:be||null},se?{actionData:se}:{})),{shortCircuited:!0};if(!C){at.forEach(qr=>{let Bn=u.fetchers.get(qr.key),kl={state:"loading",data:Bn&&Bn.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};u.fetchers.set(qr.key,kl)});let r1=se||u.actionData;mt(Ae({navigation:te},r1?Object.keys(r1).length===0?{actionData:null}:{actionData:r1}:{},at.length>0?{fetchers:new Map(u.fetchers)}:{}))}I=++A,at.forEach(r1=>M.set(r1.key,f));let{results:xr,loaderResults:Mr,fetcherResults:Ko}=await U6(u.matches,$,we,at,H);if(H.signal.aborted)return{shortCircuited:!0};at.forEach(r1=>M.delete(r1.key));let Cl=Q9(xr);if(Cl)return await qo(u,Cl,{replace:ue}),{shortCircuited:!0};let{loaderData:Hl,errors:qa}=K9(u,$,we,Mr,be,at,Ko,ee);ee.forEach((r1,qr)=>{r1.subscribe(Bn=>{(Bn||r1.done)&&ee.delete(qr)})}),Ew();let Q4=B6(I);return Ae({loaderData:Hl,errors:qa},Q4||at.length>0?{fetchers:new Map(u.fetchers)}:{})}function jr(H){return u.fetchers.get(H)||$D}function jo(H,P,$,X){if(DD)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.");M.has(H)&&xl(H);let K=th(e,$,r.basename);if(!K){K4(H,P,tn(404,{pathname:$}));return}let{path:ue,submission:se}=j9($,X,!0),be=Z9(K,ue);if(m=(X&&X.preventScrollReset)===!0,se&&Mi(se.formMethod)){pi(H,P,ue,be,K,se);return}Se.set(H,{routeId:P,path:ue,match:be,matches:K}),ja(H,P,ue,be,K,se)}async function pi(H,P,$,X,K,ue){if(G4(),Se.delete(H),!X.route.action){let gi=tn(405,{method:ue.formMethod,pathname:$,routeId:P});K4(H,P,gi);return}let se=u.fetchers.get(H),be=Ae({state:"submitting"},ue,{data:se&&se.data," _hasFetcherDoneAnything ":!0});u.fetchers.set(H,be),mt({fetchers:new Map(u.fetchers)});let te=new AbortController,m1=ss(r.history,$,te.signal,ue);M.set(H,te);let we=await os("action",m1,X,K,d.basename);if(m1.signal.aborted){M.get(H)===te&&M.delete(H);return}if(R2(we)){M.delete(H),U.add(H);let gi=Ae({state:"loading"},ue,{data:void 0," _hasFetcherDoneAnything ":!0});return u.fetchers.set(H,gi),mt({fetchers:new Map(u.fetchers)}),qo(u,we,{isFetchActionRedirect:!0})}if(Zs(we)){K4(H,P,we.error);return}if(_a(we))throw tn(400,{type:"defer-action"});let at=u.navigation.location||u.location,xr=ss(r.history,at,te.signal),Mr=u.navigation.state!=="idle"?th(e,u.navigation.location,r.basename):u.matches;Fe(Mr,"Didn't find any matches after fetcher action");let Ko=++A;N.set(H,Ko);let Cl=Ae({state:"loading",data:we.data},ue,{" _hasFetcherDoneAnything ":!0});u.fetchers.set(H,Cl);let[Hl,qa]=q9(r.history,u,Mr,ue,at,_,p,z,{[X.route.id]:we.data},void 0,Se);qa.filter(gi=>gi.key!==H).forEach(gi=>{let J4=gi.key,G6=u.fetchers.get(J4),Dw={state:"loading",data:G6&&G6.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};u.fetchers.set(J4,Dw),M.set(J4,te)}),mt({fetchers:new Map(u.fetchers)});let{results:Q4,loaderResults:r1,fetcherResults:qr}=await U6(u.matches,Mr,Hl,qa,xr);if(te.signal.aborted)return;N.delete(H),M.delete(H),qa.forEach(gi=>M.delete(gi.key));let Bn=Q9(Q4);if(Bn)return qo(u,Bn);let{loaderData:kl,errors:X4}=K9(u,u.matches,Hl,r1,void 0,qa,qr,ee),Sw={state:"idle",data:we.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};u.fetchers.set(H,Sw);let $w=B6(Ko);u.navigation.state==="loading"&&Ko>I?(Fe(v,"Expected pending action"),f&&f.abort(),B(u.navigation.location,{matches:Mr,loaderData:kl,errors:X4,fetchers:new Map(u.fetchers)})):(mt(Ae({errors:X4,loaderData:W9(u.loaderData,kl,Mr,X4)},$w?{fetchers:new Map(u.fetchers)}:{})),_=!1)}async function ja(H,P,$,X,K,ue){let se=u.fetchers.get(H),be=Ae({state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0},ue,{data:se&&se.data," _hasFetcherDoneAnything ":!0});u.fetchers.set(H,be),mt({fetchers:new Map(u.fetchers)});let te=new AbortController,m1=ss(r.history,$,te.signal);M.set(H,te);let we=await os("loader",m1,X,K,d.basename);if(_a(we)&&(we=await vy(we,m1.signal,!0)||we),M.get(H)===te&&M.delete(H),m1.signal.aborted)return;if(R2(we)){await qo(u,we);return}if(Zs(we)){let xr=k2(u.matches,P);u.fetchers.delete(H),mt({fetchers:new Map(u.fetchers),errors:{[xr.route.id]:we.error}});return}Fe(!_a(we),"Unhandled fetcher deferred data");let at={state:"idle",data:we.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};u.fetchers.set(H,at),mt({fetchers:new Map(u.fetchers)})}async function qo(H,P,$){var X;let{submission:K,replace:ue,isFetchActionRedirect:se}=$===void 0?{}:$;P.revalidate&&(_=!0);let be=Va(H.location,P.location,Ae({_isRedirect:!0},se?{_isFetchActionRedirect:!0}:{}));if(Fe(be,"Expected a location on the redirect navigation"),ly&&typeof((X=window)==null?void 0:X.location)<"u"){let Mr=r.history.createURL(P.location).origin;if(window.location.origin!==Mr){ue?window.location.replace(P.location):window.location.assign(P.location);return}}f=null;let te=ue===!0?st.Replace:st.Push,{formMethod:m1,formAction:we,formEncType:at,formData:xr}=H.navigation;!K&&m1&&we&&xr&&at&&(K={formMethod:m1,formAction:we,formEncType:at,formData:xr}),SD.has(P.status)&&K&&Mi(K.formMethod)?await Le(te,be,{submission:Ae({},K,{formAction:P.location}),preventScrollReset:m}):await Le(te,be,{overrideNavigation:{state:"loading",location:be,formMethod:K?K.formMethod:void 0,formAction:K?K.formAction:void 0,formEncType:K?K.formEncType:void 0,formData:K?K.formData:void 0},preventScrollReset:m})}async function U6(H,P,$,X,K){let ue=await Promise.all([...$.map(te=>os("loader",K,te,P,d.basename)),...X.map(te=>os("loader",ss(r.history,te.path,K.signal),te.match,te.matches,d.basename))]),se=ue.slice(0,$.length),be=ue.slice($.length);return await Promise.all([X9(H,$,se,K.signal,!1,u.loaderData),X9(H,X.map(te=>te.match),be,K.signal,!0)]),{results:ue,loaderResults:se,fetcherResults:be}}function G4(){_=!0,p.push(...Y4()),Se.forEach((H,P)=>{M.has(P)&&(z.push(P),xl(P))})}function K4(H,P,$){let X=k2(u.matches,P);W4(H),mt({errors:{[X.route.id]:$},fetchers:new Map(u.fetchers)})}function W4(H){M.has(H)&&xl(H),Se.delete(H),N.delete(H),U.delete(H),u.fetchers.delete(H)}function xl(H){let P=M.get(H);Fe(P,"Expected fetch controller: "+H),P.abort(),M.delete(H)}function F6(H){for(let P of H){let X={state:"idle",data:jr(P).data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};u.fetchers.set(P,X)}}function Ew(){let H=[];for(let P of U){let $=u.fetchers.get(P);Fe($,"Expected fetcher: "+P),$.state==="loading"&&(U.delete(P),H.push(P))}F6(H)}function B6(H){let P=[];for(let[$,X]of N)if(X<H){let K=u.fetchers.get($);Fe(K,"Expected fetcher: "+$),K.state==="loading"&&(xl($),N.delete($),P.push($))}return F6(P),P.length>0}function Pw(H,P){let $=u.blockers.get(H)||B9;return br.get(H)!==P&&(br.set(H,P),Je==null?Je=H:H!==Je&&Lc(!1,"A router only supports one blocker at a time")),$}function Go(H){u.blockers.delete(H),br.delete(H),Je===H&&(Je=null)}function Ml(H,P){let $=u.blockers.get(H)||B9;Fe($.state==="unblocked"&&P.state==="blocked"||$.state==="blocked"&&P.state==="blocked"||$.state==="blocked"&&P.state==="proceeding"||$.state==="blocked"&&P.state==="unblocked"||$.state==="proceeding"&&P.state==="unblocked","Invalid blocker state transition: "+$.state+" -> "+P.state),u.blockers.set(H,P),mt({blockers:new Map(u.blockers)})}function j6(H){let{currentLocation:P,nextLocation:$,historyAction:X}=H;if(Je==null)return;let K=br.get(Je);Fe(K,"Could not find a function for the active blocker");let ue=u.blockers.get(Je);if(!(ue&&ue.state==="proceeding")&&K({currentLocation:P,nextLocation:$,historyAction:X}))return Je}function Y4(H){let P=[];return ee.forEach(($,X)=>{(!H||H(X))&&($.cancel(),P.push(X),ee.delete(X))}),P}function Aw(H,P,$){if(n=H,o=P,a=$||(X=>X.key),!s&&u.navigation===o5){s=!0;let X=q6(u.location,u.matches);X!=null&&mt({restoreScrollPosition:X})}return()=>{n=null,o=null,a=null}}function Vw(H,P){if(n&&a&&o){let $=P.map(K=>J9(K,u.loaderData)),X=a(H,$)||H.key;n[X]=o()}}function q6(H,P){if(n&&a&&o){let $=P.map(ue=>J9(ue,u.loaderData)),X=a(H,$)||H.key,K=n[X];if(typeof K=="number")return K}return null}return d={get basename(){return r.basename},get state(){return u},get routes(){return e},initialize:bl,subscribe:Bo,enableScrollRestoration:Aw,navigate:le,fetch:jo,revalidate:pe,createHref:H=>r.history.createHref(H),encodeLocation:H=>r.history.encodeLocation(H),getFetcher:jr,deleteFetcher:W4,dispose:q4,getBlocker:Pw,deleteBlocker:Go,_internalFetchControllers:M,_internalActiveDeferreds:ee},d}function TD(r){return r!=null&&"formData"in r}function j9(r,e,t){t===void 0&&(t=!1);let i=typeof r=="string"?r:Bi(r);if(!e||!TD(e))return{path:i};if(e.formMethod&&!FD(e.formMethod))return{path:i,error:tn(405,{method:e.formMethod})};let n;if(e.formData&&(n={formMethod:e.formMethod||"get",formAction:uy(i),formEncType:e&&e.formEncType||"application/x-www-form-urlencoded",formData:e.formData},Mi(n.formMethod)))return{path:i,submission:n};let a=qi(i),o=dy(e.formData);return t&&a.search&&my(a.search)&&o.append("index",""),a.search="?"+o,{path:Bi(a),submission:n}}function ID(r,e){let t=r;if(e){let i=r.findIndex(n=>n.route.id===e);i>=0&&(t=r.slice(0,i))}return t}function q9(r,e,t,i,n,a,o,s,c,l,h){let d=l?Object.values(l)[0]:c?Object.values(c)[0]:void 0,u=r.createURL(e.location),v=r.createURL(n),m=a||u.toString()===v.toString()||u.search!==v.search,f=l?Object.keys(l)[0]:void 0,_=ID(t,f).filter((z,M)=>{if(z.route.loader==null)return!1;if(RD(e.loaderData,e.matches[M],z)||o.some(N=>N===z.route.id))return!0;let A=e.matches[M],I=z;return G9(z,Ae({currentUrl:u,currentParams:A.params,nextUrl:v,nextParams:I.params},i,{actionResult:d,defaultShouldRevalidate:m||hy(A,I)}))}),p=[];return h&&h.forEach((z,M)=>{if(t.some(A=>A.route.id===z.routeId))s.includes(M)?p.push(Ae({key:M},z)):G9(z.match,Ae({currentUrl:u,currentParams:e.matches[e.matches.length-1].params,nextUrl:v,nextParams:t[t.length-1].params},i,{actionResult:d,defaultShouldRevalidate:m}))&&p.push(Ae({key:M},z));else return}),[_,p]}function RD(r,e,t){let i=!e||t.route.id!==e.route.id,n=r[t.route.id]===void 0;return i||n}function hy(r,e){let t=r.route.path;return r.pathname!==e.pathname||t!=null&&t.endsWith("*")&&r.params["*"]!==e.params["*"]}function G9(r,e){if(r.route.shouldRevalidate){let t=r.route.shouldRevalidate(e);if(typeof t=="boolean")return t}return e.defaultShouldRevalidate}async function os(r,e,t,i,n,a,o,s){n===void 0&&(n="/"),a===void 0&&(a=!1),o===void 0&&(o=!1);let c,l,h,d=new Promise((v,m)=>h=m),u=()=>h();e.signal.addEventListener("abort",u);try{let v=t.route[r];Fe(v,"Could not find the "+r+' to run on the "'+t.route.id+'" route'),l=await Promise.race([v({request:e,params:t.params,context:s}),d]),Fe(l!==void 0,"You defined "+(r==="action"?"an action":"a loader")+" for route "+('"'+t.route.id+"\" but didn't return anything from your `"+r+"` ")+"function. Please return a value or `null`.")}catch(v){c=qt.error,l=v}finally{e.signal.removeEventListener("abort",u)}if(UD(l)){let v=l.status;if(VD.has(v)){let C=l.headers.get("Location");if(Fe(C,"Redirects returned/thrown from loaders/actions must have a Location header"),/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i.test(C)){if(!a){let p=new URL(e.url),z=C.startsWith("//")?new URL(p.protocol+C):new URL(C);z.origin===p.origin&&(C=z.pathname+z.search+z.hash)}}else{let p=i.slice(0,i.indexOf(t)+1),z=oy(p).map(A=>A.pathnameBase),M=yD(C,z,new URL(e.url).pathname);if(Fe(Bi(M),"Unable to resolve redirect location: "+C),n){let A=M.pathname;M.pathname=A==="/"?n:Js([n,A])}C=Bi(M)}if(a)throw l.headers.set("Location",C),l;return{type:qt.redirect,status:v,location:C,revalidate:l.headers.get("X-Remix-Revalidate")!==null}}if(o)throw{type:c||qt.data,response:l};let m,f=l.headers.get("Content-Type");return f&&/\bapplication\/json\b/.test(f)?m=await l.json():m=await l.text(),c===qt.error?{type:c,error:new sy(v,l.statusText,m),headers:l.headers}:{type:qt.data,data:m,statusCode:l.status,headers:l.headers}}return c===qt.error?{type:c,error:l}:l instanceof MD?{type:qt.deferred,deferredData:l}:{type:qt.data,data:l}}function ss(r,e,t,i){let n=r.createURL(uy(e)).toString(),a={signal:t};if(i&&Mi(i.formMethod)){let{formMethod:o,formEncType:s,formData:c}=i;a.method=o.toUpperCase(),a.body=s==="application/x-www-form-urlencoded"?dy(c):c}return new Request(n,a)}function dy(r){let e=new URLSearchParams;for(let[t,i]of r.entries())e.append(t,i instanceof File?i.name:i);return e}function OD(r,e,t,i,n){let a={},o=null,s,c=!1,l={};return t.forEach((h,d)=>{let u=e[d].route.id;if(Fe(!R2(h),"Cannot handle redirect results in processLoaderData"),Zs(h)){let v=k2(r,u),m=h.error;i&&(m=Object.values(i)[0],i=void 0),o=o||{},o[v.route.id]==null&&(o[v.route.id]=m),a[u]=void 0,c||(c=!0,s=kD(h.error)?h.error.status:500),h.headers&&(l[u]=h.headers)}else _a(h)?(n.set(u,h.deferredData),a[u]=h.deferredData.data):a[u]=h.data,h.statusCode!=null&&h.statusCode!==200&&!c&&(s=h.statusCode),h.headers&&(l[u]=h.headers)}),i&&(o=i,a[Object.keys(i)[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function K9(r,e,t,i,n,a,o,s){let{loaderData:c,errors:l}=OD(e,t,i,n,s);for(let h=0;h<a.length;h++){let{key:d,match:u}=a[h];Fe(o!==void 0&&o[h]!==void 0,"Did not find corresponding fetcher result");let v=o[h];if(Zs(v)){let m=k2(r.matches,u.route.id);l&&l[m.route.id]||(l=Ae({},l,{[m.route.id]:v.error})),r.fetchers.delete(d)}else if(R2(v))Fe(!1,"Unhandled fetcher revalidation redirect");else if(_a(v))Fe(!1,"Unhandled fetcher deferred data");else{let m={state:"idle",data:v.data,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0," _hasFetcherDoneAnything ":!0};r.fetchers.set(d,m)}}return{loaderData:c,errors:l}}function W9(r,e,t,i){let n=Ae({},e);for(let a of t){let o=a.route.id;if(e.hasOwnProperty(o)?e[o]!==void 0&&(n[o]=e[o]):r[o]!==void 0&&(n[o]=r[o]),i&&i.hasOwnProperty(o))break}return n}function k2(r,e){return(e?r.slice(0,r.findIndex(i=>i.route.id===e)+1):[...r]).reverse().find(i=>i.route.hasErrorBoundary===!0)||r[0]}function Y9(r){let e=r.find(t=>t.index||!t.path||t.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:e}],route:e}}function tn(r,e){let{pathname:t,routeId:i,method:n,type:a}=e===void 0?{}:e,o="Unknown Server Error",s="Unknown @remix-run/router error";return r===400?(o="Bad Request",n&&t&&i?s="You made a "+n+' request to "'+t+'" but '+('did not provide a `loader` for route "'+i+'", ')+"so there is no way to handle the request.":a==="defer-action"&&(s="defer() is not supported in actions")):r===403?(o="Forbidden",s='Route "'+i+'" does not match URL "'+t+'"'):r===404?(o="Not Found",s='No route matches URL "'+t+'"'):r===405&&(o="Method Not Allowed",n&&t&&i?s="You made a "+n.toUpperCase()+' request to "'+t+'" but '+('did not provide an `action` for route "'+i+'", ')+"so there is no way to handle the request.":n&&(s='Invalid request method "'+n.toUpperCase()+'"')),new sy(r||500,o,new Error(s),!0)}function Q9(r){for(let e=r.length-1;e>=0;e--){let t=r[e];if(R2(t))return t}}function uy(r){let e=typeof r=="string"?qi(r):r;return Bi(Ae({},e,{hash:""}))}function ND(r,e){return r.pathname===e.pathname&&r.search===e.search&&r.hash!==e.hash}function _a(r){return r.type===qt.deferred}function Zs(r){return r.type===qt.error}function R2(r){return(r&&r.type)===qt.redirect}function UD(r){return r!=null&&typeof r.status=="number"&&typeof r.statusText=="string"&&typeof r.headers=="object"&&typeof r.body<"u"}function FD(r){return AD.has(r)}function Mi(r){return ED.has(r)}async function X9(r,e,t,i,n,a){for(let o=0;o<t.length;o++){let s=t[o],c=e[o],l=r.find(d=>d.route.id===c.route.id),h=l!=null&&!hy(l,c)&&(a&&a[c.route.id])!==void 0;_a(s)&&(n||h)&&await vy(s,i,n).then(d=>{d&&(t[o]=d||t[o])})}}async function vy(r,e,t){if(t===void 0&&(t=!1),!await r.deferredData.resolveData(e)){if(t)try{return{type:qt.data,data:r.deferredData.unwrappedData}}catch(n){return{type:qt.error,error:n}}return{type:qt.data,data:r.deferredData.data}}}function my(r){return new URLSearchParams(r).getAll("index").some(e=>e==="")}function J9(r,e){let{route:t,pathname:i,params:n}=r;return{id:t.id,pathname:i,params:n,data:e[t.id],handle:t.handle}}function Z9(r,e){let t=typeof e=="string"?qi(e).search:e.search;if(r[r.length-1].route.index&&my(t||""))return r[r.length-1];let i=oy(r);return i[i.length-1]}var Ze=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},rh=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},sr,Uh,Mu,Fh,Xr,da;class BD extends Ee{get basename(){return Ze(this,Uh,"f")}get origin(){return Ze(this,Mu,"f")}get state(){return Ze(this,Xr,"f").asObservable()}get value(){return Ze(this,Xr,"f").value}get location(){return this.value.location}get action(){return this.value.action}constructor(e){super(n=>Ze(this,Xr,"f").subscribe(n)),sr.set(this,void 0),Uh.set(this,void 0),Mu.set(this,window.location.origin),Fh.set(this,new U1),Xr.set(this,void 0),da.set(this,void 0);const{basename:t,history:i}=e;rh(this,da,e.logger||console,"f"),rh(this,Uh,t,"f"),rh(this,sr,i,"f"),rh(this,Xr,new Do({action:Ze(this,sr,"f").action,location:Ze(this,sr,"f").location,delta:null}),"f"),Ze(this,Fh,"f").add(Ze(this,sr,"f").listen(n=>{n.location.key!==Ze(this,Xr,"f").value.location.key&&(Ze(this,da,"f").debug("Navigator::constructor","history changed",n,Ze(this,Xr,"f").value),Ze(this,Xr,"f").next(n))}))}encodeLocation(e){return Ze(this,sr,"f").encodeLocation(e)}listen(e){Ze(this,da,"f").debug("Navigator::listen",e);const t=Ze(this,Xr,"f").subscribe(i=>{Ze(this,da,"f").debug("Navigator::listen[onchange]",i),e(i)});return()=>(Ze(this,da,"f").debug("Navigator::listen[unsubscribe]"),t.unsubscribe())}createHref(e){return Ze(this,sr,"f").createHref(e)}go(e){Ze(this,sr,"f").go(e)}push(e,t){return Ze(this,sr,"f").push(e,t)}replace(e,t){return Ze(this,sr,"f").replace(e,t)}createURL(e){return Ze(this,sr,"f").createURL(e)}dispose(){Ze(this,Fh,"f").unsubscribe()}}sr=new WeakMap,Uh=new WeakMap,Mu=new WeakMap,Fh=new WeakMap,Xr=new WeakMap,da=new WeakMap;var s5=globalThis&&globalThis.__classPrivateFieldGet||function(r,e,t,i){if(t==="a"&&!i)throw new TypeError("Private accessor was defined without a getter");if(typeof e=="function"?r!==e||!i:!e.has(r))throw new TypeError("Cannot read private member from an object whose class did not declare it");return t==="m"?i:t==="a"?i.call(r):i?i.value:e.get(r)},jD=globalThis&&globalThis.__classPrivateFieldSet||function(r,e,t,i,n){if(i==="m")throw new TypeError("Private method is not writable");if(i==="a"&&!n)throw new TypeError("Private accessor was defined without a setter");if(typeof e=="function"?r!==e||!n:!e.has(r))throw new TypeError("Cannot write private member to an object whose class did not declare it");return i==="a"?n.call(r,t):n?n.value=t:e.set(r,t),t},s2;class qD{get navigator(){return s5(this,s2,"f")}constructor(e){s2.set(this,void 0);const{config:{basename:t,history:i}}=e;if(!i)throw Error("no history provided!");jD(this,s2,new BD({basename:t,history:i}),"f")}createRouter(e){const t=s5(this,s2,"f");console.debug("NavigationProvider::createRouter",t,e);const i=LD({basename:t.basename,history:t,routes:e});return i.initialize(),i}dispose(){s5(this,s2,"f").dispose()}}s2=new WeakMap;const GD=r=>{switch(r){case"hash":return eD({v5Compat:!0});case"memory":return J$({v5Compat:!0});case"browser":default:return Z$({v5Compat:!0})}},KD="navigation",WD={name:KD,configure:r=>{const e=new X$;return r&&(e.history=r.navigation.navigator),e},initialize:({config:r})=>{var e;return(e=r.history)!==null&&e!==void 0||(r.history=GD()),new qD({config:r})},dispose({instance:r}){r.dispose()}},YD=(r,e)=>{const t=typeof e=="string"?{configure:i=>{i.basename=e}}:e;r.addConfig(Object.assign({module:WD},t))},QD=async r=>{r.logger.level=0,r.configureServiceDiscovery({client:{baseUri:import.meta.url,defaultScopes:["5a842df8-3238-415d-b168-9f16a6a6031b/.default"]}}),r.configureMsal({tenantId:"3aa4a235-b6e2-48d5-9195-7fcf05b459b0",clientId:"9b707e3a-3e90-41ed-a47e-652a1e3b53d0",redirectUri:"/authentication/login-callback"},{requiresAuth:!0}),S$(r),YD(r),Q$(r,e=>{e.setSourceSystem({subSystem:"CLI",identifier:"fusion-cli",name:"Fusion CLI"})}),r.onConfigured(()=>{console.log("framework config done")}),r.onInitialized(async e=>{e.auth.defaultClient.setLogger(new K_(0)),console.debug("📒 subscribing to all events")})},XD="bookmarkId",JD=r=>{const{event:e,context:t,navigation:{navigator:i}}=Ra().modules;k.useLayoutEffect(()=>e.addEventListener("onBookmarkChanged",a=>{var o;const{appKey:s,context:c}=a.detail,l=r.resolveAppPath(s);if(i.location.pathname!==l){const{hash:h,search:d}=i.location,u={pathname:l,search:ZD(d),hash:h};i.push(u)}c&&((o=t.contextClient.currentContext)===null||o===void 0?void 0:o.id)!==c.id&&t.contextClient.setCurrentContext(c.id)}),[r,t,e,i])};function ZD(r){const e=new URLSearchParams(r);return e.delete(XD),`?${e.toString()}`}const eL=()=>{const r=Ra().modules.event,[e,t]=k.useState(!1);return k.useEffect(()=>{const i=r.addEventListener("onBookmarkChanged",()=>{t(!1)}),n=r.addEventListener("onAddCreator",()=>{t(!0)});return()=>{i(),n()}},[r]),e};/**
|
|
420
420
|
* @remix-run/router v1.5.0
|
|
421
421
|
*
|
|
422
422
|
* Copyright (c) Remix Software Inc.
|
|
@@ -434,7 +434,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
434
434
|
* LICENSE.md file in the root directory of this source tree.
|
|
435
435
|
*
|
|
436
436
|
* @license MIT
|
|
437
|
-
*/function _L(r,e){return r===e&&(r!==0||1/r===1/e)||r!==r&&e!==e}const zL=typeof Object.is=="function"?Object.is:_L,{useState:yL,useEffect:wL,useLayoutEffect:bL,useDebugValue:xL}=N5;function ML(r,e,t){const i=e(),[{inst:n},a]=yL({inst:{value:i,getSnapshot:e}});return bL(()=>{n.value=i,n.getSnapshot=e,c5(n)&&a({inst:n})},[r,i,e]),wL(()=>(c5(n)&&a({inst:n}),r(()=>{c5(n)&&a({inst:n})})),[r]),xL(i),i}function c5(r){const e=r.getSnapshot,t=r.value;try{const i=e();return!zL(t,i)}catch{return!0}}function CL(r,e,t){return e()}const HL=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kL=!HL,EL=kL?CL:ML,PL="useSyncExternalStore"in N5?(r=>r.useSyncExternalStore)(N5):EL,A6=k.createContext(null),V6=k.createContext(null),_y=k.createContext(null),A4=k.createContext(null),No=k.createContext({outlet:null,matches:[]}),zy=k.createContext(null);function Cu(){return Cu=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},Cu.apply(this,arguments)}function S6(){return k.useContext(A4)!=null}function AL(){return S6()||tr(!1),k.useContext(A4).location}const VL=k.createContext(null);function SL(r){let e=k.useContext(No).outlet;return e&&k.createElement(VL.Provider,{value:r},e)}function $L(){let{matches:r}=k.useContext(No),e=r[r.length-1];return e?e.params:{}}function DL(r,e){S6()||tr(!1);let{navigator:t}=k.useContext(_y),i=k.useContext(V6),{matches:n}=k.useContext(No),a=n[n.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let c=AL(),l;if(e){var h;let f=typeof e=="string"?P6(e):e;s==="/"||(h=f.pathname)!=null&&h.startsWith(s)||tr(!1),l=f}else l=c;let d=l.pathname||"/",u=s==="/"?d:d.slice(s.length)||"/",v=tL(r,{pathname:u}),m=RL(v&&v.map(f=>Object.assign({},f,{params:Object.assign({},o,f.params),pathname:O2([s,t.encodeLocation?t.encodeLocation(f.pathname).pathname:f.pathname]),pathnameBase:f.pathnameBase==="/"?s:O2([s,t.encodeLocation?t.encodeLocation(f.pathnameBase).pathname:f.pathnameBase])})),n,i||void 0);return e&&m?k.createElement(A4.Provider,{value:{location:Cu({pathname:"/",search:"",hash:"",state:null,key:"default"},l),navigationType:j0.Pop}},m):m}function LL(){let r=FL(),e=gL(r)?r.status+" "+r.statusText:r instanceof Error?r.message:JSON.stringify(r),t=r instanceof Error?r.stack:null,n={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},e),t?k.createElement("pre",{style:n},t):null,a)}class TL extends k.Component{constructor(e){super(e),this.state={location:e.location,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:e.error,location:e.location}:{error:e.error||t.error,location:t.location}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?k.createElement(No.Provider,{value:this.props.routeContext},k.createElement(zy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function IL(r){let{routeContext:e,match:t,children:i}=r,n=k.useContext(A6);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),k.createElement(No.Provider,{value:e},i)}function RL(r,e,t){if(e===void 0&&(e=[]),r==null)if(t!=null&&t.errors)r=t.matches;else return null;let i=r,n=t==null?void 0:t.errors;if(n!=null){let a=i.findIndex(o=>o.route.id&&(n==null?void 0:n[o.route.id]));a>=0||tr(!1),i=i.slice(0,Math.min(i.length,a+1))}return i.reduceRight((a,o,s)=>{let c=o.route.id?n==null?void 0:n[o.route.id]:null,l=null;t&&(o.route.ErrorBoundary?l=k.createElement(o.route.ErrorBoundary,null):o.route.errorElement?l=o.route.errorElement:l=k.createElement(LL,null));let h=e.concat(i.slice(0,s+1)),d=()=>{let u=a;return c?u=l:o.route.Component?u=k.createElement(o.route.Component,null):o.route.element&&(u=o.route.element),k.createElement(IL,{match:o,routeContext:{outlet:a,matches:h},children:u})};return t&&(o.route.ErrorBoundary||o.route.errorElement||s===0)?k.createElement(TL,{location:t.location,component:l,error:c,children:d(),routeContext:{outlet:null,matches:h}}):d()},null)}var rf;(function(r){r.UseBlocker="useBlocker",r.UseRevalidator="useRevalidator"})(rf||(rf={}));var q0;(function(r){r.UseBlocker="useBlocker",r.UseLoaderData="useLoaderData",r.UseActionData="useActionData",r.UseRouteError="useRouteError",r.UseNavigation="useNavigation",r.UseRouteLoaderData="useRouteLoaderData",r.UseMatches="useMatches",r.UseRevalidator="useRevalidator"})(q0||(q0={}));function OL(r){let e=k.useContext(V6);return e||tr(!1),e}function NL(r){let e=k.useContext(No);return e||tr(!1),e}function UL(r){let e=NL(),t=e.matches[e.matches.length-1];return t.route.id||tr(!1),t.route.id}function FL(){var r;let e=k.useContext(zy),t=OL(q0.UseRouteError),i=UL(q0.UseRouteError);return e||((r=t.errors)==null?void 0:r[i])}function BL(r){let{fallbackElement:e,router:t}=r,i=k.useCallback(()=>t.state,[t]),n=PL(t.subscribe,i,i),a=k.useMemo(()=>({createHref:t.createHref,encodeLocation:t.encodeLocation,go:c=>t.navigate(c),push:(c,l,h)=>t.navigate(c,{state:l,preventScrollReset:h==null?void 0:h.preventScrollReset}),replace:(c,l,h)=>t.navigate(c,{replace:!0,state:l,preventScrollReset:h==null?void 0:h.preventScrollReset})}),[t]),o=t.basename||"/",s=k.useMemo(()=>({router:t,navigator:a,static:!1,basename:o}),[t,a,o]);return k.createElement(k.Fragment,null,k.createElement(A6.Provider,{value:s},k.createElement(V6.Provider,{value:n},k.createElement(GL,{basename:t.basename,location:t.state.location,navigationType:t.state.historyAction,navigator:a},t.state.initialized?k.createElement(KL,null):e))),null)}function jL(r){return SL(r.context)}function qL(r){tr(!1)}function GL(r){let{basename:e="/",children:t=null,location:i,navigationType:n=j0.Pop,navigator:a,static:o=!1}=r;S6()&&tr(!1);let s=e.replace(/^\/*/,"/"),c=k.useMemo(()=>({basename:s,navigator:a,static:o}),[s,a,o]);typeof i=="string"&&(i=P6(i));let{pathname:l="/",search:h="",hash:d="",state:u=null,key:v="default"}=i,m=k.useMemo(()=>{let f=gy(l,s);return f==null?null:{location:{pathname:f,search:h,hash:d,state:u,key:v},navigationType:n}},[s,l,h,d,u,v,n]);return m==null?null:k.createElement(_y.Provider,{value:c},k.createElement(A4.Provider,{children:t,value:m}))}function KL(r){let{children:e,location:t}=r,i=k.useContext(A6),n=i&&!e?i.router.routes:Hu(e);return DL(n,t)}var nf;(function(r){r[r.pending=0]="pending",r[r.success=1]="success",r[r.error=2]="error"})(nf||(nf={}));new Promise(()=>{});function Hu(r,e){e===void 0&&(e=[]);let t=[];return k.Children.forEach(r,(i,n)=>{if(!k.isValidElement(i))return;let a=[...e,n];if(i.type===k.Fragment){t.push.apply(t,Hu(i.props.children,a));return}i.type!==qL&&tr(!1),!i.props.index||!i.props.children||tr(!1);let o={id:i.props.id||a.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(o.children=Hu(i.props.children,a)),t.push(o)}),t}const WL=(r,e,t)=>{k.useEffect(()=>{const i=r.subscribe(e);return i.add(t),()=>i.unsubscribe()},[r,e])},YL=(r,e,t)=>{k.useLayoutEffect(()=>{const i=r.subscribe(e);return i.add(t),()=>i.unsubscribe()},[r,e])};function $6(r,e){const[t]=k.useState(e==null?void 0:e.initial),[i,n]=k.useState(t),[a,o]=k.useState(null),[s,c]=k.useState(!1),l=k.useCallback(()=>{o(null),n(t),c(!1)},[n,o,c,t]);k.useLayoutEffect(()=>{const d=r.value;return d&&n(d),l},[n,l,r]);const h=k.useMemo(()=>({next:n,error:o,complete:()=>c(!0)}),[n,o,c]);return YL(r,h,e==null?void 0:e.teardown),{value:i,error:a,complete:s}}const ku=({error:r})=>$1(ab,{children:[$1("div",{style:{marginTop:20,border:"1px solid"},children:[G("h4",{style:{backgroundColor:"rgb(153, 0, 37)",color:"white",padding:10,margin:0},children:r.message}),G("section",{style:{padding:10},children:r.stack&&G("pre",{children:r.stack})})]}),r.cause&&G(ku,{error:r.cause})]}),QL=r=>{const{appKey:e}=r,t=Ra(),i=k.useRef(null),[n,a]=k.useState(!1),[o,s]=k.useState(),{value:c}=$6(k.useMemo(()=>t.modules.app.current$,[t.modules.app]));return k.useEffect(()=>{t.modules.app.setCurrentApp(e)},[e,t]),k.useEffect(()=>{a(!0),s(void 0);const l=new U1;return l.add(c==null?void 0:c.initialize().subscribe({next:({manifest:h,script:d,config:u})=>{const[v]=window.location.pathname.match(/\/?apps\/[a-z|-]+(\/)?/g)??[""],m=document.createElement("div");if(m.style.height="100%",!i.current)throw Error("Missing application mounting point");i.current.appendChild(m),i.current.style.height="100%";const f=d.renderApp??d.default;l.add(f(m,{fusion:t,env:{basename:v,config:u,manifest:h}})),l.add(()=>m.remove())},complete:()=>{a(!1)},error:h=>{s(h)}})),()=>l.unsubscribe()},[t,c,i]),o?o.cause instanceof kn?$1("div",{children:[G("h2",{children:"🔥 Failed to load application manifest 🤬"}),G("h3",{children:o.cause.type}),G(ku,{error:o}),";"]}):$1("div",{children:[G("h2",{children:"🔥 Failed to load application 🤬"}),G(ku,{error:o}),";"]}):G("section",{ref:i,children:n&&G(Yz,{text:"Loading Application"})})},XL=()=>{const r=Ra().modules.app;if(!r)throw Error("Current framework does not have AppModule configured");const e=k.useMemo(()=>r.current$,[r]),{value:t}=$6(e);return{currentApp:t,setCurrentApp:k.useMemo(()=>r.setCurrentApp.bind(r),[r]),clearCurrentApp:k.useMemo(()=>r.clearCurrentApp.bind(r),[r])}};class V4 extends CustomEvent{constructor(e){super(V4.eventName,e)}}V4.eventName="select";class co extends CustomEvent{constructor(e){super(co.eventName,e)}}co.eventName="fwc-searchabledropdown-controller-connect";var $s;class yy extends bt{constructor(){super(...arguments),this.resolverCallbacks=[],$s.set(this,void 0)}createRenderRoot(){return this}connectResolver(e){t2(this,$s,e,"f"),this.resolverCallbacks.forEach(t=>{t(e)})}removeResolver(){this.resolverCallbacks.forEach(e=>{e()})}connectedCallback(){super.connectedCallback(),this.addEventListener(co.eventName,this.handleElementConnect)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(co.eventName,this.handleElementConnect)}handleElementConnect(e){const{disconnectedCallback:t,updateResolver:i}=e.detail;t(()=>{this.resolverCallbacks.filter(n=>n!==i)}),_e(this,$s,"f")&&i(_e(this,$s,"f")),this.resolverCallbacks.push(i),e.preventDefault(),e.stopPropagation()}}$s=new WeakMap;/**
|
|
437
|
+
*/function _L(r,e){return r===e&&(r!==0||1/r===1/e)||r!==r&&e!==e}const zL=typeof Object.is=="function"?Object.is:_L,{useState:yL,useEffect:wL,useLayoutEffect:bL,useDebugValue:xL}=N5;function ML(r,e,t){const i=e(),[{inst:n},a]=yL({inst:{value:i,getSnapshot:e}});return bL(()=>{n.value=i,n.getSnapshot=e,c5(n)&&a({inst:n})},[r,i,e]),wL(()=>(c5(n)&&a({inst:n}),r(()=>{c5(n)&&a({inst:n})})),[r]),xL(i),i}function c5(r){const e=r.getSnapshot,t=r.value;try{const i=e();return!zL(t,i)}catch{return!0}}function CL(r,e,t){return e()}const HL=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",kL=!HL,EL=kL?CL:ML,PL="useSyncExternalStore"in N5?(r=>r.useSyncExternalStore)(N5):EL,A6=k.createContext(null),V6=k.createContext(null),_y=k.createContext(null),A4=k.createContext(null),No=k.createContext({outlet:null,matches:[]}),zy=k.createContext(null);function Cu(){return Cu=Object.assign?Object.assign.bind():function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=t[i])}return r},Cu.apply(this,arguments)}function S6(){return k.useContext(A4)!=null}function AL(){return S6()||tr(!1),k.useContext(A4).location}const VL=k.createContext(null);function SL(r){let e=k.useContext(No).outlet;return e&&k.createElement(VL.Provider,{value:r},e)}function $L(){let{matches:r}=k.useContext(No),e=r[r.length-1];return e?e.params:{}}function DL(r,e){S6()||tr(!1);let{navigator:t}=k.useContext(_y),i=k.useContext(V6),{matches:n}=k.useContext(No),a=n[n.length-1],o=a?a.params:{};a&&a.pathname;let s=a?a.pathnameBase:"/";a&&a.route;let c=AL(),l;if(e){var h;let f=typeof e=="string"?P6(e):e;s==="/"||(h=f.pathname)!=null&&h.startsWith(s)||tr(!1),l=f}else l=c;let d=l.pathname||"/",u=s==="/"?d:d.slice(s.length)||"/",v=tL(r,{pathname:u}),m=RL(v&&v.map(f=>Object.assign({},f,{params:Object.assign({},o,f.params),pathname:O2([s,t.encodeLocation?t.encodeLocation(f.pathname).pathname:f.pathname]),pathnameBase:f.pathnameBase==="/"?s:O2([s,t.encodeLocation?t.encodeLocation(f.pathnameBase).pathname:f.pathnameBase])})),n,i||void 0);return e&&m?k.createElement(A4.Provider,{value:{location:Cu({pathname:"/",search:"",hash:"",state:null,key:"default"},l),navigationType:j0.Pop}},m):m}function LL(){let r=FL(),e=gL(r)?r.status+" "+r.statusText:r instanceof Error?r.message:JSON.stringify(r),t=r instanceof Error?r.stack:null,n={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"},a=null;return k.createElement(k.Fragment,null,k.createElement("h2",null,"Unexpected Application Error!"),k.createElement("h3",{style:{fontStyle:"italic"}},e),t?k.createElement("pre",{style:n},t):null,a)}class TL extends k.Component{constructor(e){super(e),this.state={location:e.location,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location?{error:e.error,location:e.location}:{error:e.error||t.error,location:t.location}}componentDidCatch(e,t){console.error("React Router caught the following error during render",e,t)}render(){return this.state.error?k.createElement(No.Provider,{value:this.props.routeContext},k.createElement(zy.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function IL(r){let{routeContext:e,match:t,children:i}=r,n=k.useContext(A6);return n&&n.static&&n.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(n.staticContext._deepestRenderedBoundaryId=t.route.id),k.createElement(No.Provider,{value:e},i)}function RL(r,e,t){if(e===void 0&&(e=[]),r==null)if(t!=null&&t.errors)r=t.matches;else return null;let i=r,n=t==null?void 0:t.errors;if(n!=null){let a=i.findIndex(o=>o.route.id&&(n==null?void 0:n[o.route.id]));a>=0||tr(!1),i=i.slice(0,Math.min(i.length,a+1))}return i.reduceRight((a,o,s)=>{let c=o.route.id?n==null?void 0:n[o.route.id]:null,l=null;t&&(o.route.ErrorBoundary?l=k.createElement(o.route.ErrorBoundary,null):o.route.errorElement?l=o.route.errorElement:l=k.createElement(LL,null));let h=e.concat(i.slice(0,s+1)),d=()=>{let u=a;return c?u=l:o.route.Component?u=k.createElement(o.route.Component,null):o.route.element&&(u=o.route.element),k.createElement(IL,{match:o,routeContext:{outlet:a,matches:h},children:u})};return t&&(o.route.ErrorBoundary||o.route.errorElement||s===0)?k.createElement(TL,{location:t.location,component:l,error:c,children:d(),routeContext:{outlet:null,matches:h}}):d()},null)}var rf;(function(r){r.UseBlocker="useBlocker",r.UseRevalidator="useRevalidator"})(rf||(rf={}));var q0;(function(r){r.UseBlocker="useBlocker",r.UseLoaderData="useLoaderData",r.UseActionData="useActionData",r.UseRouteError="useRouteError",r.UseNavigation="useNavigation",r.UseRouteLoaderData="useRouteLoaderData",r.UseMatches="useMatches",r.UseRevalidator="useRevalidator"})(q0||(q0={}));function OL(r){let e=k.useContext(V6);return e||tr(!1),e}function NL(r){let e=k.useContext(No);return e||tr(!1),e}function UL(r){let e=NL(),t=e.matches[e.matches.length-1];return t.route.id||tr(!1),t.route.id}function FL(){var r;let e=k.useContext(zy),t=OL(q0.UseRouteError),i=UL(q0.UseRouteError);return e||((r=t.errors)==null?void 0:r[i])}function BL(r){let{fallbackElement:e,router:t}=r,i=k.useCallback(()=>t.state,[t]),n=PL(t.subscribe,i,i),a=k.useMemo(()=>({createHref:t.createHref,encodeLocation:t.encodeLocation,go:c=>t.navigate(c),push:(c,l,h)=>t.navigate(c,{state:l,preventScrollReset:h==null?void 0:h.preventScrollReset}),replace:(c,l,h)=>t.navigate(c,{replace:!0,state:l,preventScrollReset:h==null?void 0:h.preventScrollReset})}),[t]),o=t.basename||"/",s=k.useMemo(()=>({router:t,navigator:a,static:!1,basename:o}),[t,a,o]);return k.createElement(k.Fragment,null,k.createElement(A6.Provider,{value:s},k.createElement(V6.Provider,{value:n},k.createElement(GL,{basename:t.basename,location:t.state.location,navigationType:t.state.historyAction,navigator:a},t.state.initialized?k.createElement(KL,null):e))),null)}function jL(r){return SL(r.context)}function qL(r){tr(!1)}function GL(r){let{basename:e="/",children:t=null,location:i,navigationType:n=j0.Pop,navigator:a,static:o=!1}=r;S6()&&tr(!1);let s=e.replace(/^\/*/,"/"),c=k.useMemo(()=>({basename:s,navigator:a,static:o}),[s,a,o]);typeof i=="string"&&(i=P6(i));let{pathname:l="/",search:h="",hash:d="",state:u=null,key:v="default"}=i,m=k.useMemo(()=>{let f=gy(l,s);return f==null?null:{location:{pathname:f,search:h,hash:d,state:u,key:v},navigationType:n}},[s,l,h,d,u,v,n]);return m==null?null:k.createElement(_y.Provider,{value:c},k.createElement(A4.Provider,{children:t,value:m}))}function KL(r){let{children:e,location:t}=r,i=k.useContext(A6),n=i&&!e?i.router.routes:Hu(e);return DL(n,t)}var nf;(function(r){r[r.pending=0]="pending",r[r.success=1]="success",r[r.error=2]="error"})(nf||(nf={}));new Promise(()=>{});function Hu(r,e){e===void 0&&(e=[]);let t=[];return k.Children.forEach(r,(i,n)=>{if(!k.isValidElement(i))return;let a=[...e,n];if(i.type===k.Fragment){t.push.apply(t,Hu(i.props.children,a));return}i.type!==qL&&tr(!1),!i.props.index||!i.props.children||tr(!1);let o={id:i.props.id||a.join("-"),caseSensitive:i.props.caseSensitive,element:i.props.element,Component:i.props.Component,index:i.props.index,path:i.props.path,loader:i.props.loader,action:i.props.action,errorElement:i.props.errorElement,ErrorBoundary:i.props.ErrorBoundary,hasErrorBoundary:i.props.ErrorBoundary!=null||i.props.errorElement!=null,shouldRevalidate:i.props.shouldRevalidate,handle:i.props.handle,lazy:i.props.lazy};i.props.children&&(o.children=Hu(i.props.children,a)),t.push(o)}),t}const WL=(r,e,t)=>{k.useEffect(()=>{const i=r.subscribe(e);return i.add(t),()=>i.unsubscribe()},[r,e])},YL=(r,e,t)=>{k.useLayoutEffect(()=>{const i=r.subscribe(e);return i.add(t),()=>i.unsubscribe()},[r,e])};function $6(r,e){const[t]=k.useState(e==null?void 0:e.initial),[i,n]=k.useState(t),[a,o]=k.useState(null),[s,c]=k.useState(!1),l=k.useCallback(()=>{o(null),n(t),c(!1)},[n,o,c,t]);k.useLayoutEffect(()=>{const d=r.value;return d&&n(d),l},[n,l,r]);const h=k.useMemo(()=>({next:n,error:o,complete:()=>c(!0)}),[n,o,c]);return YL(r,h,e==null?void 0:e.teardown),{value:i,error:a,complete:s}}const ku=({error:r})=>$1(ab,{children:[$1("div",{style:{marginTop:20,border:"1px solid"},children:[G("h4",{style:{backgroundColor:"rgb(153, 0, 37)",color:"white",padding:10,margin:0},children:r.message}),G("section",{style:{padding:10},children:r.stack&&G("pre",{children:r.stack})})]}),r.cause&&G(ku,{error:r.cause})]}),QL=r=>{const{appKey:e}=r,t=Ra(),i=k.useRef(null),[n,a]=k.useState(!1),[o,s]=k.useState(),{value:c}=$6(k.useMemo(()=>t.modules.app.current$,[t.modules.app]));return k.useEffect(()=>{t.modules.app.setCurrentApp(e)},[e,t]),k.useEffect(()=>{a(!0),s(void 0);const l=new U1;return l.add(c==null?void 0:c.initialize().subscribe({next:({manifest:h,script:d,config:u})=>{const[v]=window.location.pathname.match(/\/?apps\/[a-z|-]+(\/)?/g)??[""],m=document.createElement("div");if(m.style.height="100%",!i.current)throw Error("Missing application mounting point");i.current.appendChild(m),i.current.style.height="100%";const f=d.renderApp??d.default;l.add(f(m,{fusion:t,env:{basename:v,config:u,manifest:h}})),l.add(()=>m.remove())},complete:()=>{a(!1)},error:h=>{s(h)}})),()=>l.unsubscribe()},[t,c,i]),o?o.cause instanceof En?$1("div",{children:[G("h2",{children:"🔥 Failed to load application manifest 🤬"}),G("h3",{children:o.cause.type}),G(ku,{error:o}),";"]}):$1("div",{children:[G("h2",{children:"🔥 Failed to load application 🤬"}),G(ku,{error:o}),";"]}):G("section",{ref:i,children:n&&G(Yz,{text:"Loading Application"})})},XL=()=>{const r=Ra().modules.app;if(!r)throw Error("Current framework does not have AppModule configured");const e=k.useMemo(()=>r.current$,[r]),{value:t}=$6(e);return{currentApp:t,setCurrentApp:k.useMemo(()=>r.setCurrentApp.bind(r),[r]),clearCurrentApp:k.useMemo(()=>r.clearCurrentApp.bind(r),[r])}};class V4 extends CustomEvent{constructor(e){super(V4.eventName,e)}}V4.eventName="select";class co extends CustomEvent{constructor(e){super(co.eventName,e)}}co.eventName="fwc-searchabledropdown-controller-connect";var $s;class yy extends bt{constructor(){super(...arguments),this.resolverCallbacks=[],$s.set(this,void 0)}createRenderRoot(){return this}connectResolver(e){t2(this,$s,e,"f"),this.resolverCallbacks.forEach(t=>{t(e)})}removeResolver(){this.resolverCallbacks.forEach(e=>{e()})}connectedCallback(){super.connectedCallback(),this.addEventListener(co.eventName,this.handleElementConnect)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener(co.eventName,this.handleElementConnect)}handleElementConnect(e){const{disconnectedCallback:t,updateResolver:i}=e.detail;t(()=>{this.resolverCallbacks.filter(n=>n!==i)}),_e(this,$s,"f")&&i(_e(this,$s,"f")),this.resolverCallbacks.push(i),e.preventDefault(),e.stopPropagation()}}$s=new WeakMap;/**
|
|
438
438
|
* @license
|
|
439
439
|
* Copyright 2017 Google LLC
|
|
440
440
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -568,11 +568,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
568
568
|
* @license
|
|
569
569
|
* Copyright 2020 Google LLC
|
|
570
570
|
* SPDX-License-Identifier: Apache-2.0
|
|
571
|
-
*/class
|
|
571
|
+
*/class Nn{constructor(e){this.startPress=t=>{e().then(i=>{i&&i.startPress(t)})},this.endPress=()=>{e().then(t=>{t&&t.endPress()})},this.startFocus=()=>{e().then(t=>{t&&t.startFocus()})},this.endFocus=()=>{e().then(t=>{t&&t.endFocus()})},this.startHover=()=>{e().then(t=>{t&&t.startHover()})},this.endHover=()=>{e().then(t=>{t&&t.endHover()})}}}/**
|
|
572
572
|
* @license
|
|
573
573
|
* Copyright 2020 Google LLC
|
|
574
574
|
* SPDX-License-Identifier: Apache-2.0
|
|
575
|
-
*/class Zt extends bt{constructor(){super(...arguments),this.value="",this.group=null,this.tabindex=-1,this.disabled=!1,this.twoline=!1,this.activated=!1,this.graphic=null,this.multipleGraphics=!1,this.hasMeta=!1,this.noninteractive=!1,this.selected=!1,this.shouldRenderRipple=!1,this._managingList=null,this.boundOnClick=this.onClick.bind(this),this._firstChanged=!0,this._skipPropRequest=!1,this.rippleHandlers=new
|
|
575
|
+
*/class Zt extends bt{constructor(){super(...arguments),this.value="",this.group=null,this.tabindex=-1,this.disabled=!1,this.twoline=!1,this.activated=!1,this.graphic=null,this.multipleGraphics=!1,this.hasMeta=!1,this.noninteractive=!1,this.selected=!1,this.shouldRenderRipple=!1,this._managingList=null,this.boundOnClick=this.onClick.bind(this),this._firstChanged=!0,this._skipPropRequest=!1,this.rippleHandlers=new Nn(()=>(this.shouldRenderRipple=!0,this.ripple)),this.listeners=[{target:this,eventNames:["click"],cb:()=>{this.onClick()}},{target:this,eventNames:["mouseenter"],cb:this.rippleHandlers.startHover},{target:this,eventNames:["mouseleave"],cb:this.rippleHandlers.endHover},{target:this,eventNames:["focus"],cb:this.rippleHandlers.startFocus},{target:this,eventNames:["blur"],cb:this.rippleHandlers.endFocus},{target:this,eventNames:["mousedown","touchstart"],cb:e=>{const t=e.type;this.onDown(t==="mousedown"?"mouseup":"touchend",e)}}]}get text(){const e=this.textContent;return e?e.trim():""}render(){const e=this.renderText(),t=this.graphic?this.renderGraphic():O``,i=this.hasMeta?this.renderMeta():O``;return O`
|
|
576
576
|
${this.renderRipple()}
|
|
577
577
|
${t}
|
|
578
578
|
${e}
|
|
@@ -595,7 +595,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
595
595
|
<span class="mdc-deprecated-list-item__secondary-text">
|
|
596
596
|
<slot name="secondary"></slot>
|
|
597
597
|
</span>
|
|
598
|
-
`}onClick(){this.fireRequestSelected(!this.selected,"interaction")}onDown(e,t){const i=()=>{window.removeEventListener(e,i),this.rippleHandlers.endPress()};window.addEventListener(e,i),this.rippleHandlers.startPress(t)}fireRequestSelected(e,t){if(this.noninteractive)return;const i=new CustomEvent("request-selected",{bubbles:!0,composed:!0,detail:{source:t,selected:e}});this.dispatchEvent(i)}connectedCallback(){super.connectedCallback(),this.noninteractive||this.setAttribute("mwc-list-item","");for(const e of this.listeners)for(const t of e.eventNames)e.target.addEventListener(t,e.cb,{passive:!0})}disconnectedCallback(){super.disconnectedCallback();for(const e of this.listeners)for(const t of e.eventNames)e.target.removeEventListener(t,e.cb);this._managingList&&(this._managingList.debouncedLayout?this._managingList.debouncedLayout(!0):this._managingList.layout(!0))}firstUpdated(){const e=new Event("list-item-rendered",{bubbles:!0,composed:!0});this.dispatchEvent(e)}}g([xt("slot")],Zt.prototype,"slotElement",void 0);g([
|
|
598
|
+
`}onClick(){this.fireRequestSelected(!this.selected,"interaction")}onDown(e,t){const i=()=>{window.removeEventListener(e,i),this.rippleHandlers.endPress()};window.addEventListener(e,i),this.rippleHandlers.startPress(t)}fireRequestSelected(e,t){if(this.noninteractive)return;const i=new CustomEvent("request-selected",{bubbles:!0,composed:!0,detail:{source:t,selected:e}});this.dispatchEvent(i)}connectedCallback(){super.connectedCallback(),this.noninteractive||this.setAttribute("mwc-list-item","");for(const e of this.listeners)for(const t of e.eventNames)e.target.addEventListener(t,e.cb,{passive:!0})}disconnectedCallback(){super.disconnectedCallback();for(const e of this.listeners)for(const t of e.eventNames)e.target.removeEventListener(t,e.cb);this._managingList&&(this._managingList.debouncedLayout?this._managingList.debouncedLayout(!0):this._managingList.layout(!0))}firstUpdated(){const e=new Event("list-item-rendered",{bubbles:!0,composed:!0});this.dispatchEvent(e)}}g([xt("slot")],Zt.prototype,"slotElement",void 0);g([On("mwc-ripple")],Zt.prototype,"ripple",void 0);g([y({type:String})],Zt.prototype,"value",void 0);g([y({type:String,reflect:!0})],Zt.prototype,"group",void 0);g([y({type:Number,reflect:!0})],Zt.prototype,"tabindex",void 0);g([y({type:Boolean,reflect:!0}),wr(function(r){r?this.setAttribute("aria-disabled","true"):this.setAttribute("aria-disabled","false")})],Zt.prototype,"disabled",void 0);g([y({type:Boolean,reflect:!0})],Zt.prototype,"twoline",void 0);g([y({type:Boolean,reflect:!0})],Zt.prototype,"activated",void 0);g([y({type:String,reflect:!0})],Zt.prototype,"graphic",void 0);g([y({type:Boolean})],Zt.prototype,"multipleGraphics",void 0);g([y({type:Boolean})],Zt.prototype,"hasMeta",void 0);g([y({type:Boolean,reflect:!0}),wr(function(r){r?(this.removeAttribute("aria-checked"),this.removeAttribute("mwc-list-item"),this.selected=!1,this.activated=!1,this.tabIndex=-1):this.setAttribute("mwc-list-item","")})],Zt.prototype,"noninteractive",void 0);g([y({type:Boolean,reflect:!0}),wr(function(r){const e=this.getAttribute("role"),t=e==="gridcell"||e==="option"||e==="row"||e==="tab";if(t&&r?this.setAttribute("aria-selected","true"):t&&this.setAttribute("aria-selected","false"),this._firstChanged){this._firstChanged=!1;return}this._skipPropRequest||this.fireRequestSelected(r,"property")})],Zt.prototype,"selected",void 0);g([Ne()],Zt.prototype,"shouldRenderRipple",void 0);g([Ne()],Zt.prototype,"_managingList",void 0);/**
|
|
599
599
|
* @license
|
|
600
600
|
* Copyright 2021 Google LLC
|
|
601
601
|
* SPDX-LIcense-Identifier: Apache-2.0
|
|
@@ -624,7 +624,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
624
624
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
625
625
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
626
626
|
* THE SOFTWARE.
|
|
627
|
-
*/var ze={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"},x1=new Set;x1.add(ze.BACKSPACE);x1.add(ze.ENTER);x1.add(ze.SPACEBAR);x1.add(ze.PAGE_UP);x1.add(ze.PAGE_DOWN);x1.add(ze.END);x1.add(ze.HOME);x1.add(ze.ARROW_LEFT);x1.add(ze.ARROW_UP);x1.add(ze.ARROW_RIGHT);x1.add(ze.ARROW_DOWN);x1.add(ze.DELETE);x1.add(ze.ESCAPE);x1.add(ze.TAB);var j1={BACKSPACE:8,ENTER:13,SPACEBAR:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46,ESCAPE:27,TAB:9},M1=new Map;M1.set(j1.BACKSPACE,ze.BACKSPACE);M1.set(j1.ENTER,ze.ENTER);M1.set(j1.SPACEBAR,ze.SPACEBAR);M1.set(j1.PAGE_UP,ze.PAGE_UP);M1.set(j1.PAGE_DOWN,ze.PAGE_DOWN);M1.set(j1.END,ze.END);M1.set(j1.HOME,ze.HOME);M1.set(j1.ARROW_LEFT,ze.ARROW_LEFT);M1.set(j1.ARROW_UP,ze.ARROW_UP);M1.set(j1.ARROW_RIGHT,ze.ARROW_RIGHT);M1.set(j1.ARROW_DOWN,ze.ARROW_DOWN);M1.set(j1.DELETE,ze.DELETE);M1.set(j1.ESCAPE,ze.ESCAPE);M1.set(j1.TAB,ze.TAB);var
|
|
627
|
+
*/var ze={UNKNOWN:"Unknown",BACKSPACE:"Backspace",ENTER:"Enter",SPACEBAR:"Spacebar",PAGE_UP:"PageUp",PAGE_DOWN:"PageDown",END:"End",HOME:"Home",ARROW_LEFT:"ArrowLeft",ARROW_UP:"ArrowUp",ARROW_RIGHT:"ArrowRight",ARROW_DOWN:"ArrowDown",DELETE:"Delete",ESCAPE:"Escape",TAB:"Tab"},x1=new Set;x1.add(ze.BACKSPACE);x1.add(ze.ENTER);x1.add(ze.SPACEBAR);x1.add(ze.PAGE_UP);x1.add(ze.PAGE_DOWN);x1.add(ze.END);x1.add(ze.HOME);x1.add(ze.ARROW_LEFT);x1.add(ze.ARROW_UP);x1.add(ze.ARROW_RIGHT);x1.add(ze.ARROW_DOWN);x1.add(ze.DELETE);x1.add(ze.ESCAPE);x1.add(ze.TAB);var j1={BACKSPACE:8,ENTER:13,SPACEBAR:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,ARROW_LEFT:37,ARROW_UP:38,ARROW_RIGHT:39,ARROW_DOWN:40,DELETE:46,ESCAPE:27,TAB:9},M1=new Map;M1.set(j1.BACKSPACE,ze.BACKSPACE);M1.set(j1.ENTER,ze.ENTER);M1.set(j1.SPACEBAR,ze.SPACEBAR);M1.set(j1.PAGE_UP,ze.PAGE_UP);M1.set(j1.PAGE_DOWN,ze.PAGE_DOWN);M1.set(j1.END,ze.END);M1.set(j1.HOME,ze.HOME);M1.set(j1.ARROW_LEFT,ze.ARROW_LEFT);M1.set(j1.ARROW_UP,ze.ARROW_UP);M1.set(j1.ARROW_RIGHT,ze.ARROW_RIGHT);M1.set(j1.ARROW_DOWN,ze.ARROW_DOWN);M1.set(j1.DELETE,ze.DELETE);M1.set(j1.ESCAPE,ze.ESCAPE);M1.set(j1.TAB,ze.TAB);var Un=new Set;Un.add(ze.PAGE_UP);Un.add(ze.PAGE_DOWN);Un.add(ze.END);Un.add(ze.HOME);Un.add(ze.ARROW_LEFT);Un.add(ze.ARROW_UP);Un.add(ze.ARROW_RIGHT);Un.add(ze.ARROW_DOWN);function Wi(r){var e=r.key;if(x1.has(e))return e;var t=M1.get(r.keyCode);return t||ze.UNKNOWN}/**
|
|
628
628
|
* @license
|
|
629
629
|
* Copyright 2018 Google Inc.
|
|
630
630
|
*
|
|
@@ -645,25 +645,25 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
645
645
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
646
646
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
647
647
|
* THE SOFTWARE.
|
|
648
|
-
*/var
|
|
649
|
-
.`+
|
|
650
|
-
.`+
|
|
651
|
-
.`+Za[
|
|
652
|
-
.`+Za[
|
|
648
|
+
*/var Yi,zi,Ye={LIST_ITEM_ACTIVATED_CLASS:"mdc-list-item--activated",LIST_ITEM_CLASS:"mdc-list-item",LIST_ITEM_DISABLED_CLASS:"mdc-list-item--disabled",LIST_ITEM_SELECTED_CLASS:"mdc-list-item--selected",LIST_ITEM_TEXT_CLASS:"mdc-list-item__text",LIST_ITEM_PRIMARY_TEXT_CLASS:"mdc-list-item__primary-text",ROOT:"mdc-list"};Yi={},Yi[""+Ye.LIST_ITEM_ACTIVATED_CLASS]="mdc-list-item--activated",Yi[""+Ye.LIST_ITEM_CLASS]="mdc-list-item",Yi[""+Ye.LIST_ITEM_DISABLED_CLASS]="mdc-list-item--disabled",Yi[""+Ye.LIST_ITEM_SELECTED_CLASS]="mdc-list-item--selected",Yi[""+Ye.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-list-item__primary-text",Yi[""+Ye.ROOT]="mdc-list";var Za=(zi={},zi[""+Ye.LIST_ITEM_ACTIVATED_CLASS]="mdc-deprecated-list-item--activated",zi[""+Ye.LIST_ITEM_CLASS]="mdc-deprecated-list-item",zi[""+Ye.LIST_ITEM_DISABLED_CLASS]="mdc-deprecated-list-item--disabled",zi[""+Ye.LIST_ITEM_SELECTED_CLASS]="mdc-deprecated-list-item--selected",zi[""+Ye.LIST_ITEM_TEXT_CLASS]="mdc-deprecated-list-item__text",zi[""+Ye.LIST_ITEM_PRIMARY_TEXT_CLASS]="mdc-deprecated-list-item__primary-text",zi[""+Ye.ROOT]="mdc-deprecated-list",zi),ah={ACTION_EVENT:"MDCList:action",SELECTION_CHANGE_EVENT:"MDCList:selectionChange",ARIA_CHECKED:"aria-checked",ARIA_CHECKED_CHECKBOX_SELECTOR:'[role="checkbox"][aria-checked="true"]',ARIA_CHECKED_RADIO_SELECTOR:'[role="radio"][aria-checked="true"]',ARIA_CURRENT:"aria-current",ARIA_DISABLED:"aria-disabled",ARIA_ORIENTATION:"aria-orientation",ARIA_ORIENTATION_HORIZONTAL:"horizontal",ARIA_ROLE_CHECKBOX_SELECTOR:'[role="checkbox"]',ARIA_SELECTED:"aria-selected",ARIA_INTERACTIVE_ROLES_SELECTOR:'[role="listbox"], [role="menu"]',ARIA_MULTI_SELECTABLE_SELECTOR:'[aria-multiselectable="true"]',CHECKBOX_RADIO_SELECTOR:'input[type="checkbox"], input[type="radio"]',CHECKBOX_SELECTOR:'input[type="checkbox"]',CHILD_ELEMENTS_TO_TOGGLE_TABINDEX:`
|
|
649
|
+
.`+Ye.LIST_ITEM_CLASS+` button:not(:disabled),
|
|
650
|
+
.`+Ye.LIST_ITEM_CLASS+` a,
|
|
651
|
+
.`+Za[Ye.LIST_ITEM_CLASS]+` button:not(:disabled),
|
|
652
|
+
.`+Za[Ye.LIST_ITEM_CLASS]+` a
|
|
653
653
|
`,DEPRECATED_SELECTOR:".mdc-deprecated-list",FOCUSABLE_CHILD_ELEMENTS:`
|
|
654
|
-
.`+
|
|
655
|
-
.`+
|
|
656
|
-
.`+
|
|
657
|
-
.`+
|
|
658
|
-
.`+Za[
|
|
659
|
-
.`+Za[
|
|
660
|
-
.`+Za[
|
|
661
|
-
.`+Za[
|
|
654
|
+
.`+Ye.LIST_ITEM_CLASS+` button:not(:disabled),
|
|
655
|
+
.`+Ye.LIST_ITEM_CLASS+` a,
|
|
656
|
+
.`+Ye.LIST_ITEM_CLASS+` input[type="radio"]:not(:disabled),
|
|
657
|
+
.`+Ye.LIST_ITEM_CLASS+` input[type="checkbox"]:not(:disabled),
|
|
658
|
+
.`+Za[Ye.LIST_ITEM_CLASS]+` button:not(:disabled),
|
|
659
|
+
.`+Za[Ye.LIST_ITEM_CLASS]+` a,
|
|
660
|
+
.`+Za[Ye.LIST_ITEM_CLASS]+` input[type="radio"]:not(:disabled),
|
|
661
|
+
.`+Za[Ye.LIST_ITEM_CLASS]+` input[type="checkbox"]:not(:disabled)
|
|
662
662
|
`,RADIO_SELECTOR:'input[type="radio"]',SELECTED_ITEM_SELECTOR:'[aria-selected="true"], [aria-current="true"]'},k1={UNSET_INDEX:-1,TYPEAHEAD_BUFFER_CLEAR_TIMEOUT_MS:300};/**
|
|
663
663
|
* @license
|
|
664
664
|
* Copyright 2020 Google LLC
|
|
665
665
|
* SPDX-License-Identifier: Apache-2.0
|
|
666
|
-
*/const Au=(r,e)=>r-e,pT=(r,e)=>{const t=Array.from(r),i=Array.from(e),n={added:[],removed:[]},a=t.sort(Au),o=i.sort(Au);let s=0,c=0;for(;s<a.length||c<o.length;){const l=a[s],h=o[c];if(l===h){s++,c++;continue}if(l!==void 0&&(h===void 0||l<h)){n.removed.push(l),s++;continue}if(h!==void 0&&(l===void 0||h<l)){n.added.push(h),c++;continue}}return n},gT=["input","button","textarea","select"];function ec(r){return r instanceof Set}const l5=r=>{const e=r===k1.UNSET_INDEX?new Set:r;return ec(e)?new Set(e):new Set([e])};class D6 extends Oa{constructor(e){super(Object.assign(Object.assign({},D6.defaultAdapter),e)),this.isMulti_=!1,this.wrapFocus_=!1,this.isVertical_=!0,this.selectedIndex_=k1.UNSET_INDEX,this.focusedItemIndex_=k1.UNSET_INDEX,this.useActivatedClass_=!1,this.ariaCurrentAttrValue_=null}static get strings(){return ah}static get numbers(){return k1}static get defaultAdapter(){return{focusItemAtIndex:()=>{},getFocusedElementIndex:()=>0,getListItemCount:()=>0,isFocusInsideList:()=>!1,isRootFocused:()=>!1,notifyAction:()=>{},notifySelected:()=>{},getSelectedStateForElementIndex:()=>!1,setDisabledStateForElementIndex:()=>{},getDisabledStateForElementIndex:()=>!1,setSelectedStateForElementIndex:()=>{},setActivatedStateForElementIndex:()=>{},setTabIndexForElementIndex:()=>{},setAttributeForElementIndex:()=>{},getAttributeForElementIndex:()=>null}}setWrapFocus(e){this.wrapFocus_=e}setMulti(e){this.isMulti_=e;const t=this.selectedIndex_;if(e){if(!ec(t)){const i=t===k1.UNSET_INDEX;this.selectedIndex_=i?new Set:new Set([t])}}else if(ec(t))if(t.size){const i=Array.from(t).sort(Au);this.selectedIndex_=i[0]}else this.selectedIndex_=k1.UNSET_INDEX}setVerticalOrientation(e){this.isVertical_=e}setUseActivatedClass(e){this.useActivatedClass_=e}getSelectedIndex(){return this.selectedIndex_}setSelectedIndex(e){this.isIndexValid_(e)&&(this.isMulti_?this.setMultiSelectionAtIndex_(l5(e)):this.setSingleSelectionAtIndex_(e))}handleFocusIn(e,t){t>=0&&this.adapter.setTabIndexForElementIndex(t,0)}handleFocusOut(e,t){t>=0&&this.adapter.setTabIndexForElementIndex(t,-1),setTimeout(()=>{this.adapter.isFocusInsideList()||this.setTabindexToFirstSelectedItem_()},0)}handleKeydown(e,t,i){const n=
|
|
666
|
+
*/const Au=(r,e)=>r-e,pT=(r,e)=>{const t=Array.from(r),i=Array.from(e),n={added:[],removed:[]},a=t.sort(Au),o=i.sort(Au);let s=0,c=0;for(;s<a.length||c<o.length;){const l=a[s],h=o[c];if(l===h){s++,c++;continue}if(l!==void 0&&(h===void 0||l<h)){n.removed.push(l),s++;continue}if(h!==void 0&&(l===void 0||h<l)){n.added.push(h),c++;continue}}return n},gT=["input","button","textarea","select"];function ec(r){return r instanceof Set}const l5=r=>{const e=r===k1.UNSET_INDEX?new Set:r;return ec(e)?new Set(e):new Set([e])};class D6 extends Oa{constructor(e){super(Object.assign(Object.assign({},D6.defaultAdapter),e)),this.isMulti_=!1,this.wrapFocus_=!1,this.isVertical_=!0,this.selectedIndex_=k1.UNSET_INDEX,this.focusedItemIndex_=k1.UNSET_INDEX,this.useActivatedClass_=!1,this.ariaCurrentAttrValue_=null}static get strings(){return ah}static get numbers(){return k1}static get defaultAdapter(){return{focusItemAtIndex:()=>{},getFocusedElementIndex:()=>0,getListItemCount:()=>0,isFocusInsideList:()=>!1,isRootFocused:()=>!1,notifyAction:()=>{},notifySelected:()=>{},getSelectedStateForElementIndex:()=>!1,setDisabledStateForElementIndex:()=>{},getDisabledStateForElementIndex:()=>!1,setSelectedStateForElementIndex:()=>{},setActivatedStateForElementIndex:()=>{},setTabIndexForElementIndex:()=>{},setAttributeForElementIndex:()=>{},getAttributeForElementIndex:()=>null}}setWrapFocus(e){this.wrapFocus_=e}setMulti(e){this.isMulti_=e;const t=this.selectedIndex_;if(e){if(!ec(t)){const i=t===k1.UNSET_INDEX;this.selectedIndex_=i?new Set:new Set([t])}}else if(ec(t))if(t.size){const i=Array.from(t).sort(Au);this.selectedIndex_=i[0]}else this.selectedIndex_=k1.UNSET_INDEX}setVerticalOrientation(e){this.isVertical_=e}setUseActivatedClass(e){this.useActivatedClass_=e}getSelectedIndex(){return this.selectedIndex_}setSelectedIndex(e){this.isIndexValid_(e)&&(this.isMulti_?this.setMultiSelectionAtIndex_(l5(e)):this.setSingleSelectionAtIndex_(e))}handleFocusIn(e,t){t>=0&&this.adapter.setTabIndexForElementIndex(t,0)}handleFocusOut(e,t){t>=0&&this.adapter.setTabIndexForElementIndex(t,-1),setTimeout(()=>{this.adapter.isFocusInsideList()||this.setTabindexToFirstSelectedItem_()},0)}handleKeydown(e,t,i){const n=Wi(e)==="ArrowLeft",a=Wi(e)==="ArrowUp",o=Wi(e)==="ArrowRight",s=Wi(e)==="ArrowDown",c=Wi(e)==="Home",l=Wi(e)==="End",h=Wi(e)==="Enter",d=Wi(e)==="Spacebar";if(this.adapter.isRootFocused()){a||l?(e.preventDefault(),this.focusLastElement()):(s||c)&&(e.preventDefault(),this.focusFirstElement());return}let u=this.adapter.getFocusedElementIndex();if(u===-1&&(u=i,u<0))return;let v;if(this.isVertical_&&s||!this.isVertical_&&o)this.preventDefaultEvent(e),v=this.focusNextElement(u);else if(this.isVertical_&&a||!this.isVertical_&&n)this.preventDefaultEvent(e),v=this.focusPrevElement(u);else if(c)this.preventDefaultEvent(e),v=this.focusFirstElement();else if(l)this.preventDefaultEvent(e),v=this.focusLastElement();else if((h||d)&&t){const m=e.target;if(m&&m.tagName==="A"&&h)return;this.preventDefaultEvent(e),this.setSelectedIndexOnAction_(u,!0)}this.focusedItemIndex_=u,v!==void 0&&(this.setTabindexAtIndex_(v),this.focusedItemIndex_=v)}handleSingleSelection(e,t,i){e!==k1.UNSET_INDEX&&(this.setSelectedIndexOnAction_(e,t,i),this.setTabindexAtIndex_(e),this.focusedItemIndex_=e)}focusNextElement(e){const t=this.adapter.getListItemCount();let i=e+1;if(i>=t)if(this.wrapFocus_)i=0;else return e;return this.adapter.focusItemAtIndex(i),i}focusPrevElement(e){let t=e-1;if(t<0)if(this.wrapFocus_)t=this.adapter.getListItemCount()-1;else return e;return this.adapter.focusItemAtIndex(t),t}focusFirstElement(){return this.adapter.focusItemAtIndex(0),0}focusLastElement(){const e=this.adapter.getListItemCount()-1;return this.adapter.focusItemAtIndex(e),e}setEnabled(e,t){this.isIndexValid_(e)&&this.adapter.setDisabledStateForElementIndex(e,!t)}preventDefaultEvent(e){const i=`${e.target.tagName}`.toLowerCase();gT.indexOf(i)===-1&&e.preventDefault()}setSingleSelectionAtIndex_(e,t=!0){this.selectedIndex_!==e&&(this.selectedIndex_!==k1.UNSET_INDEX&&(this.adapter.setSelectedStateForElementIndex(this.selectedIndex_,!1),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(this.selectedIndex_,!1)),t&&this.adapter.setSelectedStateForElementIndex(e,!0),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(e,!0),this.setAriaForSingleSelectionAtIndex_(e),this.selectedIndex_=e,this.adapter.notifySelected(e))}setMultiSelectionAtIndex_(e,t=!0){const i=l5(this.selectedIndex_),n=pT(i,e);if(!(!n.removed.length&&!n.added.length)){for(const a of n.removed)t&&this.adapter.setSelectedStateForElementIndex(a,!1),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(a,!1);for(const a of n.added)t&&this.adapter.setSelectedStateForElementIndex(a,!0),this.useActivatedClass_&&this.adapter.setActivatedStateForElementIndex(a,!0);this.selectedIndex_=e,this.adapter.notifySelected(e,n)}}setAriaForSingleSelectionAtIndex_(e){this.selectedIndex_===k1.UNSET_INDEX&&(this.ariaCurrentAttrValue_=this.adapter.getAttributeForElementIndex(e,ah.ARIA_CURRENT));const t=this.ariaCurrentAttrValue_!==null,i=t?ah.ARIA_CURRENT:ah.ARIA_SELECTED;this.selectedIndex_!==k1.UNSET_INDEX&&this.adapter.setAttributeForElementIndex(this.selectedIndex_,i,"false");const n=t?this.ariaCurrentAttrValue_:"true";this.adapter.setAttributeForElementIndex(e,i,n)}setTabindexAtIndex_(e){this.focusedItemIndex_===k1.UNSET_INDEX&&e!==0?this.adapter.setTabIndexForElementIndex(0,-1):this.focusedItemIndex_>=0&&this.focusedItemIndex_!==e&&this.adapter.setTabIndexForElementIndex(this.focusedItemIndex_,-1),this.adapter.setTabIndexForElementIndex(e,0)}setTabindexToFirstSelectedItem_(){let e=0;typeof this.selectedIndex_=="number"&&this.selectedIndex_!==k1.UNSET_INDEX?e=this.selectedIndex_:ec(this.selectedIndex_)&&this.selectedIndex_.size>0&&(e=Math.min(...this.selectedIndex_)),this.setTabindexAtIndex_(e)}isIndexValid_(e){if(e instanceof Set){if(!this.isMulti_)throw new Error("MDCListFoundation: Array of index is only supported for checkbox based list");if(e.size===0)return!0;{let t=!1;for(const i of e)if(t=this.isIndexInRange_(i),t)break;return t}}else if(typeof e=="number"){if(this.isMulti_)throw new Error("MDCListFoundation: Expected array of index for checkbox based list but got number: "+e);return e===k1.UNSET_INDEX||this.isIndexInRange_(e)}else return!1}isIndexInRange_(e){const t=this.adapter.getListItemCount();return e>=0&&e<t}setSelectedIndexOnAction_(e,t,i){if(this.adapter.getDisabledStateForElementIndex(e))return;let n=e;this.isMulti_&&(n=new Set([e])),this.isIndexValid_(n)&&(this.isMulti_?this.toggleMultiAtIndex(e,i,t):t||i?this.setSingleSelectionAtIndex_(e,t):this.selectedIndex_===e&&this.setSingleSelectionAtIndex_(k1.UNSET_INDEX),t&&this.adapter.notifyAction(e))}toggleMultiAtIndex(e,t,i=!0){let n=!1;t===void 0?n=!this.adapter.getSelectedStateForElementIndex(e):n=t;const a=l5(this.selectedIndex_);n?a.add(e):a.delete(e),this.setMultiSelectionAtIndex_(a,i)}}/**
|
|
667
667
|
* @license
|
|
668
668
|
* Copyright 2020 Google LLC
|
|
669
669
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -701,7 +701,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
701
701
|
* @license
|
|
702
702
|
* Copyright 2021 Google LLC
|
|
703
703
|
* SPDX-License-Identifier: Apache-2.0
|
|
704
|
-
*/function bT(r,e,t){const i=r.constructor;if(!t){const s=`__${e}`;if(t=i.getPropertyDescriptor(e,s),!t)throw new Error("@ariaProperty must be used after a @property decorator")}const n=t;let a="";if(!n.set)throw new Error(`@ariaProperty requires a setter for ${e}`);if(r.dispatchWizEvent)return t;const o={configurable:!0,enumerable:!0,set(s){if(a===""){const c=i.getPropertyOptions(e);a=typeof c.attribute=="string"?c.attribute:e}this.hasAttribute(a)&&this.removeAttribute(a),n.set.call(this,s)}};return n.get&&(o.get=function(){return n.get.call(this)}),o}function
|
|
704
|
+
*/function bT(r,e,t){const i=r.constructor;if(!t){const s=`__${e}`;if(t=i.getPropertyDescriptor(e,s),!t)throw new Error("@ariaProperty must be used after a @property decorator")}const n=t;let a="";if(!n.set)throw new Error(`@ariaProperty requires a setter for ${e}`);if(r.dispatchWizEvent)return t;const o={configurable:!0,enumerable:!0,set(s){if(a===""){const c=i.getPropertyOptions(e);a=typeof c.attribute=="string"?c.attribute:e}this.hasAttribute(a)&&this.removeAttribute(a),n.set.call(this,s)}};return n.get&&(o.get=function(){return n.get.call(this)}),o}function Gi(r,e,t){if(e!==void 0)return bT(r,e,t);throw new Error("@ariaProperty only supports TypeScript Decorators")}/**
|
|
705
705
|
* @license
|
|
706
706
|
* Copyright 2018 Google LLC
|
|
707
707
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -709,7 +709,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
709
709
|
* @license
|
|
710
710
|
* Copyright 2019 Google LLC
|
|
711
711
|
* SPDX-License-Identifier: Apache-2.0
|
|
712
|
-
*/class e1 extends ul{constructor(){super(...arguments),this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.name="",this.value="on",this.reducedTouchTarget=!1,this.animationClass="",this.shouldRenderRipple=!1,this.focused=!1,this.mdcFoundationClass=void 0,this.mdcFoundation=void 0,this.rippleElement=null,this.rippleHandlers=new
|
|
712
|
+
*/class e1 extends ul{constructor(){super(...arguments),this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.name="",this.value="on",this.reducedTouchTarget=!1,this.animationClass="",this.shouldRenderRipple=!1,this.focused=!1,this.mdcFoundationClass=void 0,this.mdcFoundation=void 0,this.rippleElement=null,this.rippleHandlers=new Nn(()=>(this.shouldRenderRipple=!0,this.ripple.then(e=>this.rippleElement=e),this.ripple))}createAdapter(){return{}}update(e){const t=e.get("indeterminate"),i=e.get("checked"),n=e.get("disabled");if(t!==void 0||i!==void 0||n!==void 0){const a=this.calculateAnimationStateName(!!i,!!t,!!n),o=this.calculateAnimationStateName(this.checked,this.indeterminate,this.disabled);this.animationClass=`${a}-${o}`}super.update(e)}calculateAnimationStateName(e,t,i){return i?"disabled":t?"indeterminate":e?"checked":"unchecked"}renderRipple(){return this.shouldRenderRipple?this.renderRippleTemplate():""}renderRippleTemplate(){return O`<mwc-ripple
|
|
713
713
|
.disabled="${this.disabled}"
|
|
714
714
|
unbounded></mwc-ripple>`}render(){const e=this.indeterminate||this.checked,t={"mdc-checkbox--disabled":this.disabled,"mdc-checkbox--selected":e,"mdc-checkbox--touch":!this.reducedTouchTarget,"mdc-ripple-upgraded--background-focused":this.focused,"mdc-checkbox--anim-checked-indeterminate":this.animationClass=="checked-indeterminate","mdc-checkbox--anim-checked-unchecked":this.animationClass=="checked-unchecked","mdc-checkbox--anim-indeterminate-checked":this.animationClass=="indeterminate-checked","mdc-checkbox--anim-indeterminate-unchecked":this.animationClass=="indeterminate-unchecked","mdc-checkbox--anim-unchecked-checked":this.animationClass=="unchecked-checked","mdc-checkbox--anim-unchecked-indeterminate":this.animationClass=="unchecked-indeterminate"},i=this.indeterminate?"mixed":void 0;return O`
|
|
715
715
|
<div class="mdc-checkbox mdc-checkbox--upgraded ${yt(t)}">
|
|
@@ -745,7 +745,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
745
745
|
<div class="mdc-checkbox__mixedmark"></div>
|
|
746
746
|
</div>
|
|
747
747
|
${this.renderRipple()}
|
|
748
|
-
</div>`}setFormData(e){this.name&&this.checked&&e.append(this.name,this.value)}handleFocus(){this.focused=!0,this.handleRippleFocus()}handleBlur(){this.focused=!1,this.handleRippleBlur()}handleRippleMouseDown(e){const t=()=>{window.removeEventListener("mouseup",t),this.handleRippleDeactivate()};window.addEventListener("mouseup",t),this.rippleHandlers.startPress(e)}handleRippleTouchStart(e){this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}handleChange(){this.checked=this.formElement.checked,this.indeterminate=this.formElement.indeterminate}resetAnimationClass(){this.animationClass=""}get isRippleActive(){var e;return((e=this.rippleElement)===null||e===void 0?void 0:e.isActive)||!1}}g([xt(".mdc-checkbox")],e1.prototype,"mdcRoot",void 0);g([xt("input")],e1.prototype,"formElement",void 0);g([y({type:Boolean,reflect:!0})],e1.prototype,"checked",void 0);g([y({type:Boolean})],e1.prototype,"indeterminate",void 0);g([y({type:Boolean,reflect:!0})],e1.prototype,"disabled",void 0);g([y({type:String,reflect:!0})],e1.prototype,"name",void 0);g([y({type:String})],e1.prototype,"value",void 0);g([
|
|
748
|
+
</div>`}setFormData(e){this.name&&this.checked&&e.append(this.name,this.value)}handleFocus(){this.focused=!0,this.handleRippleFocus()}handleBlur(){this.focused=!1,this.handleRippleBlur()}handleRippleMouseDown(e){const t=()=>{window.removeEventListener("mouseup",t),this.handleRippleDeactivate()};window.addEventListener("mouseup",t),this.rippleHandlers.startPress(e)}handleRippleTouchStart(e){this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}handleChange(){this.checked=this.formElement.checked,this.indeterminate=this.formElement.indeterminate}resetAnimationClass(){this.animationClass=""}get isRippleActive(){var e;return((e=this.rippleElement)===null||e===void 0?void 0:e.isActive)||!1}}g([xt(".mdc-checkbox")],e1.prototype,"mdcRoot",void 0);g([xt("input")],e1.prototype,"formElement",void 0);g([y({type:Boolean,reflect:!0})],e1.prototype,"checked",void 0);g([y({type:Boolean})],e1.prototype,"indeterminate",void 0);g([y({type:Boolean,reflect:!0})],e1.prototype,"disabled",void 0);g([y({type:String,reflect:!0})],e1.prototype,"name",void 0);g([y({type:String})],e1.prototype,"value",void 0);g([Gi,y({type:String,attribute:"aria-label"})],e1.prototype,"ariaLabel",void 0);g([Gi,y({type:String,attribute:"aria-labelledby"})],e1.prototype,"ariaLabelledBy",void 0);g([Gi,y({type:String,attribute:"aria-describedby"})],e1.prototype,"ariaDescribedBy",void 0);g([y({type:Boolean})],e1.prototype,"reducedTouchTarget",void 0);g([Ne()],e1.prototype,"animationClass",void 0);g([Ne()],e1.prototype,"shouldRenderRipple",void 0);g([Ne()],e1.prototype,"focused",void 0);g([On("mwc-ripple")],e1.prototype,"ripple",void 0);g([Ur({passive:!0})],e1.prototype,"handleRippleTouchStart",null);/**
|
|
749
749
|
* @license
|
|
750
750
|
* Copyright 2021 Google LLC
|
|
751
751
|
* SPDX-LIcense-Identifier: Apache-2.0
|
|
@@ -922,7 +922,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
922
922
|
* @license
|
|
923
923
|
* Copyright 2018 Google LLC
|
|
924
924
|
* SPDX-License-Identifier: Apache-2.0
|
|
925
|
-
*/class t1 extends ul{constructor(){super(...arguments),this._checked=!1,this.useStateLayerCustomProperties=!1,this.global=!1,this.disabled=!1,this.value="on",this.name="",this.reducedTouchTarget=!1,this.mdcFoundationClass=IT,this.formElementTabIndex=0,this.focused=!1,this.shouldRenderRipple=!1,this.rippleElement=null,this.rippleHandlers=new
|
|
925
|
+
*/class t1 extends ul{constructor(){super(...arguments),this._checked=!1,this.useStateLayerCustomProperties=!1,this.global=!1,this.disabled=!1,this.value="on",this.name="",this.reducedTouchTarget=!1,this.mdcFoundationClass=IT,this.formElementTabIndex=0,this.focused=!1,this.shouldRenderRipple=!1,this.rippleElement=null,this.rippleHandlers=new Nn(()=>(this.shouldRenderRipple=!0,this.ripple.then(e=>{this.rippleElement=e}),this.ripple))}get checked(){return this._checked}set checked(e){var t,i;const n=this._checked;e!==n&&(this._checked=e,this.formElement&&(this.formElement.checked=e),(t=this._selectionController)===null||t===void 0||t.update(this),e===!1&&((i=this.formElement)===null||i===void 0||i.blur()),this.requestUpdate("checked",n),this.dispatchEvent(new Event("checked",{bubbles:!0,composed:!0})))}_handleUpdatedValue(e){this.formElement.value=e}renderRipple(){return this.shouldRenderRipple?O`<mwc-ripple unbounded accent
|
|
926
926
|
.internalUseStateLayerCustomProperties="${this.useStateLayerCustomProperties}"
|
|
927
927
|
.disabled="${this.disabled}"></mwc-ripple>`:""}get isRippleActive(){var e;return((e=this.rippleElement)===null||e===void 0?void 0:e.isActive)||!1}connectedCallback(){super.connectedCallback(),this._selectionController=L6.getController(this),this._selectionController.register(this),this._selectionController.update(this)}disconnectedCallback(){this._selectionController.unregister(this),this._selectionController=void 0}focus(){this.formElement.focus()}createAdapter(){return Object.assign(Object.assign({},wy(this.mdcRoot)),{setNativeControlDisabled:e=>{this.formElement.disabled=e}})}handleFocus(){this.focused=!0,this.handleRippleFocus()}handleClick(){this.formElement.focus()}handleBlur(){this.focused=!1,this.formElement.blur(),this.rippleHandlers.endFocus()}setFormData(e){this.name&&this.checked&&e.append(this.name,this.value)}render(){const e={"mdc-radio--touch":!this.reducedTouchTarget,"mdc-ripple-upgraded--background-focused":this.focused,"mdc-radio--disabled":this.disabled};return O`
|
|
928
928
|
<div class="mdc-radio ${yt(e)}">
|
|
@@ -951,7 +951,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
951
951
|
<div class="mdc-radio__inner-circle"></div>
|
|
952
952
|
</div>
|
|
953
953
|
${this.renderRipple()}
|
|
954
|
-
</div>`}handleRippleMouseDown(e){const t=()=>{window.removeEventListener("mouseup",t),this.handleRippleDeactivate()};window.addEventListener("mouseup",t),this.rippleHandlers.startPress(e)}handleRippleTouchStart(e){this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}changeHandler(){this.checked=this.formElement.checked}}g([xt(".mdc-radio")],t1.prototype,"mdcRoot",void 0);g([xt("input")],t1.prototype,"formElement",void 0);g([Ne()],t1.prototype,"useStateLayerCustomProperties",void 0);g([y({type:Boolean})],t1.prototype,"global",void 0);g([y({type:Boolean,reflect:!0})],t1.prototype,"checked",null);g([y({type:Boolean}),wr(function(r){this.mdcFoundation.setDisabled(r)})],t1.prototype,"disabled",void 0);g([y({type:String}),wr(function(r){this._handleUpdatedValue(r)})],t1.prototype,"value",void 0);g([y({type:String})],t1.prototype,"name",void 0);g([y({type:Boolean})],t1.prototype,"reducedTouchTarget",void 0);g([y({type:Number})],t1.prototype,"formElementTabIndex",void 0);g([Ne()],t1.prototype,"focused",void 0);g([Ne()],t1.prototype,"shouldRenderRipple",void 0);g([
|
|
954
|
+
</div>`}handleRippleMouseDown(e){const t=()=>{window.removeEventListener("mouseup",t),this.handleRippleDeactivate()};window.addEventListener("mouseup",t),this.rippleHandlers.startPress(e)}handleRippleTouchStart(e){this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}changeHandler(){this.checked=this.formElement.checked}}g([xt(".mdc-radio")],t1.prototype,"mdcRoot",void 0);g([xt("input")],t1.prototype,"formElement",void 0);g([Ne()],t1.prototype,"useStateLayerCustomProperties",void 0);g([y({type:Boolean})],t1.prototype,"global",void 0);g([y({type:Boolean,reflect:!0})],t1.prototype,"checked",null);g([y({type:Boolean}),wr(function(r){this.mdcFoundation.setDisabled(r)})],t1.prototype,"disabled",void 0);g([y({type:String}),wr(function(r){this._handleUpdatedValue(r)})],t1.prototype,"value",void 0);g([y({type:String})],t1.prototype,"name",void 0);g([y({type:Boolean})],t1.prototype,"reducedTouchTarget",void 0);g([y({type:Number})],t1.prototype,"formElementTabIndex",void 0);g([Ne()],t1.prototype,"focused",void 0);g([Ne()],t1.prototype,"shouldRenderRipple",void 0);g([On("mwc-ripple")],t1.prototype,"ripple",void 0);g([Gi,y({attribute:"aria-label"})],t1.prototype,"ariaLabel",void 0);g([Gi,y({attribute:"aria-labelledby"})],t1.prototype,"ariaLabelledBy",void 0);g([Ur({passive:!0})],t1.prototype,"handleRippleTouchStart",null);/**
|
|
955
955
|
* @license
|
|
956
956
|
* Copyright 2021 Google LLC
|
|
957
957
|
* SPDX-LIcense-Identifier: Apache-2.0
|
|
@@ -1177,7 +1177,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1177
1177
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1178
1178
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1179
1179
|
* THE SOFTWARE.
|
|
1180
|
-
*/var
|
|
1180
|
+
*/var Qn={LINE_RIPPLE_ACTIVE:"mdc-line-ripple--active",LINE_RIPPLE_DEACTIVATING:"mdc-line-ripple--deactivating"};/**
|
|
1181
1181
|
* @license
|
|
1182
1182
|
* Copyright 2018 Google Inc.
|
|
1183
1183
|
*
|
|
@@ -1198,7 +1198,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1198
1198
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
1199
1199
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
1200
1200
|
* THE SOFTWARE.
|
|
1201
|
-
*/var ZY=function(r){v1(e,r);function e(t){var i=r.call(this,wt(wt({},e.defaultAdapter),t))||this;return i.transitionEndHandler=function(n){i.handleTransitionEnd(n)},i}return Object.defineProperty(e,"cssClasses",{get:function(){return
|
|
1201
|
+
*/var ZY=function(r){v1(e,r);function e(t){var i=r.call(this,wt(wt({},e.defaultAdapter),t))||this;return i.transitionEndHandler=function(n){i.handleTransitionEnd(n)},i}return Object.defineProperty(e,"cssClasses",{get:function(){return Qn},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setStyle:function(){},registerEventHandler:function(){},deregisterEventHandler:function(){}}},enumerable:!1,configurable:!0}),e.prototype.init=function(){this.adapter.registerEventHandler("transitionend",this.transitionEndHandler)},e.prototype.destroy=function(){this.adapter.deregisterEventHandler("transitionend",this.transitionEndHandler)},e.prototype.activate=function(){this.adapter.removeClass(Qn.LINE_RIPPLE_DEACTIVATING),this.adapter.addClass(Qn.LINE_RIPPLE_ACTIVE)},e.prototype.setRippleCenter=function(t){this.adapter.setStyle("transform-origin",t+"px center")},e.prototype.deactivate=function(){this.adapter.addClass(Qn.LINE_RIPPLE_DEACTIVATING)},e.prototype.handleTransitionEnd=function(t){var i=this.adapter.hasClass(Qn.LINE_RIPPLE_DEACTIVATING);t.propertyName==="opacity"&&i&&(this.adapter.removeClass(Qn.LINE_RIPPLE_ACTIVE),this.adapter.removeClass(Qn.LINE_RIPPLE_DEACTIVATING))},e}(Oa);/**
|
|
1202
1202
|
* @license
|
|
1203
1203
|
* Copyright 2019 Google LLC
|
|
1204
1204
|
* SPDX-License-Identifier: Apache-2.0
|
|
@@ -1737,7 +1737,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1737
1737
|
width: auto;
|
|
1738
1738
|
fill: currentColor;
|
|
1739
1739
|
}
|
|
1740
|
-
`;let T4=class extends bt{render(){return this.icon?mse(this.icon):null}};T4.styles=[fse];g([y()],T4.prototype,"icon",void 0);g([y()],T4.prototype,"type",void 0);const Vy="fwc-icon";let Iu=class extends T4{};Iu=g([Ve(Vy)],Iu);const pse=Iu,kf=B1(pse,Vy),gse=b6(r=>x6({root:{position:"relative",width:"100%",margin:"0",color:r.colors.text.static_icons__default.getVariable("color")},icon:{display:"flex",justifyContent:"center",alignItems:"center",width:"35px",fontWeight:400},closeBtn:{width:"100%",height:"100%",background:"none",border:"1px solid transparent",borderRadius:"var(--mdc-shape-small, 4px)",color:r.colors.interactive.primary__resting.getVariable("color"),padding:0,"&:hover":{borderColor:r.colors.interactive.primary__resting.getVariable("color")}},context:{display:"flex",justifyContent:"space-between",alignItems:"stretch"},titleBlock:{flex:"1 1 auto",display:"flex",flexDirection:"column",alignItems:"flex-start",fontSize:"0.9em",border:"1px solid transparent",borderRadius:"var(--mdc-shape-small, 4px)",padding:"0.25em","&:hover":{borderColor:r.colors.interactive.primary__resting.getVariable("color")}},title:{fontSize:"1em",fontWeight:"bold"},subTitle:{fontSize:"0.8em",fontStyle:"italic"},ctxSelector:{position:"absolute",top:0,left:0,width:"100%",opacity:1,zIndex:-1,"&.active":{zIndex:1}},hidden:{opacity:0}}),{name:"fusion-header-context-selector"}),Ef={id:"temp-dev-id",title:"Select Context",subTitle:"Context",graphic:"list",isDisabled:!0},_se=({children:r,onSelect:e,previewItem:t,onClearContext:i,...n})=>{const a=t??Ef,o=k.useRef(null),[s,c]=k.useState(a),[l,h]=k.useState(!1),d=gse(),[u,v]=k.useState(null);k.useMemo(()=>{t&&c(t)},[t]);const m=k.useCallback(()=>{u&&requestAnimationFrame(()=>{var z;(z=u.textInputElement)==null||z.focus()}),h(!l)},[l,u]),f=k.useCallback(z=>{(z.key==="Enter"||z.key===" ")&&m()},[m]),C=k.useCallback(z=>{const M=z.nativeEvent.detail.selected[0];c(M),h(!1),e&&e(z)},[c,e]),_=k.useCallback(z=>{c(Ef),u&&u.controller.closeClick(new Event("click")),i&&i(z)},[i,u]),p=k.useCallback(z=>{var M,A;z.key==="Escape"&&h(!1),(z.key===" "||z.key==="Enter")&&(((M=z.target)==null?void 0:M.className.indexOf("titleBlock"))>0?h(!0):((A=z.target)==null?void 0:A.className.indexOf("closeBtn"))>0&&_(z),z.stopPropagation(),z.preventDefault())},[_]);return k.useEffect(()=>(window.addEventListener("keyup",p),()=>{window.removeEventListener("keyup",p)}),[p]),k.useEffect(()=>{const z=o.current;return z&&(v(z.querySelector("fwc-searchable-dropdown")),z.addEventListener("dropdownClosed",()=>{h(!1)}),document.documentElement.addEventListener("click",M=>{M.target.contains(o.current)&&h(!1)})),()=>{z&&z.removeEventListener("dropdownClosed",()=>null)}},[o,u]),k.useEffect(()=>{u&&l&&u.focus()},[l,u]),$1("div",{ref:o,className:d.root,children:[G("div",{className:T2(l&&d.hidden),children:$1("div",{className:d.context,onKeyUp:()=>p,children:[G("div",{className:d.icon,children:(s==null?void 0:s.graphic)&&G(kf,{icon:s.graphic})}),$1("div",{tabIndex:0,className:d.titleBlock,onClick:m,onKeyDown:f,children:[G("span",{className:d.title,children:s==null?void 0:s.title}),G("span",{className:d.subTitle,children:s==null?void 0:s.subTitle})]}),G("div",{className:d.icon,children:s&&!s.isDisabled&&G("button",{className:T2(d.closeBtn),onClick:_,children:G(kf,{icon:"close"})})})]})}),G("div",{className:T2(d.ctxSelector,l?"active":d.hidden),children:G(EQ,{...n,onSelect:C,children:r})})]})},Pf=r=>r.map(e=>{var t,i;return{id:e.id,title:e.title,subTitle:(t=e.type)==null?void 0:t.id,graphic:((i=e.type)==null?void 0:i.id)==="OrgChart"?"list":void 0}}),Af=r=>Object.assign({id:"no-such-item",title:"Change me"},r),zse=[],yse=()=>{const r=Ra(),{value:e}=$6(k.useMemo(()=>r.modules.context.currentContext$,[r.modules.context])),t=k.useMemo(()=>e?Pf([e]):zse,[e]),[i,n]=k.useState(null),{currentApp:a}=XL(),o=k.useMemo(()=>(a==null?void 0:a.instance$)||
|
|
1740
|
+
`;let T4=class extends bt{render(){return this.icon?mse(this.icon):null}};T4.styles=[fse];g([y()],T4.prototype,"icon",void 0);g([y()],T4.prototype,"type",void 0);const Vy="fwc-icon";let Iu=class extends T4{};Iu=g([Ve(Vy)],Iu);const pse=Iu,kf=B1(pse,Vy),gse=b6(r=>x6({root:{position:"relative",width:"100%",margin:"0",color:r.colors.text.static_icons__default.getVariable("color")},icon:{display:"flex",justifyContent:"center",alignItems:"center",width:"35px",fontWeight:400},closeBtn:{width:"100%",height:"100%",background:"none",border:"1px solid transparent",borderRadius:"var(--mdc-shape-small, 4px)",color:r.colors.interactive.primary__resting.getVariable("color"),padding:0,"&:hover":{borderColor:r.colors.interactive.primary__resting.getVariable("color")}},context:{display:"flex",justifyContent:"space-between",alignItems:"stretch"},titleBlock:{flex:"1 1 auto",display:"flex",flexDirection:"column",alignItems:"flex-start",fontSize:"0.9em",border:"1px solid transparent",borderRadius:"var(--mdc-shape-small, 4px)",padding:"0.25em","&:hover":{borderColor:r.colors.interactive.primary__resting.getVariable("color")}},title:{fontSize:"1em",fontWeight:"bold"},subTitle:{fontSize:"0.8em",fontStyle:"italic"},ctxSelector:{position:"absolute",top:0,left:0,width:"100%",opacity:1,zIndex:-1,"&.active":{zIndex:1}},hidden:{opacity:0}}),{name:"fusion-header-context-selector"}),Ef={id:"temp-dev-id",title:"Select Context",subTitle:"Context",graphic:"list",isDisabled:!0},_se=({children:r,onSelect:e,previewItem:t,onClearContext:i,...n})=>{const a=t??Ef,o=k.useRef(null),[s,c]=k.useState(a),[l,h]=k.useState(!1),d=gse(),[u,v]=k.useState(null);k.useMemo(()=>{t&&c(t)},[t]);const m=k.useCallback(()=>{u&&requestAnimationFrame(()=>{var z;(z=u.textInputElement)==null||z.focus()}),h(!l)},[l,u]),f=k.useCallback(z=>{(z.key==="Enter"||z.key===" ")&&m()},[m]),C=k.useCallback(z=>{const M=z.nativeEvent.detail.selected[0];c(M),h(!1),e&&e(z)},[c,e]),_=k.useCallback(z=>{c(Ef),u&&u.controller.closeClick(new Event("click")),i&&i(z)},[i,u]),p=k.useCallback(z=>{var M,A;z.key==="Escape"&&h(!1),(z.key===" "||z.key==="Enter")&&(((M=z.target)==null?void 0:M.className.indexOf("titleBlock"))>0?h(!0):((A=z.target)==null?void 0:A.className.indexOf("closeBtn"))>0&&_(z),z.stopPropagation(),z.preventDefault())},[_]);return k.useEffect(()=>(window.addEventListener("keyup",p),()=>{window.removeEventListener("keyup",p)}),[p]),k.useEffect(()=>{const z=o.current;return z&&(v(z.querySelector("fwc-searchable-dropdown")),z.addEventListener("dropdownClosed",()=>{h(!1)}),document.documentElement.addEventListener("click",M=>{M.target.contains(o.current)&&h(!1)})),()=>{z&&z.removeEventListener("dropdownClosed",()=>null)}},[o,u]),k.useEffect(()=>{u&&l&&u.focus()},[l,u]),$1("div",{ref:o,className:d.root,children:[G("div",{className:T2(l&&d.hidden),children:$1("div",{className:d.context,onKeyUp:()=>p,children:[G("div",{className:d.icon,children:(s==null?void 0:s.graphic)&&G(kf,{icon:s.graphic})}),$1("div",{tabIndex:0,className:d.titleBlock,onClick:m,onKeyDown:f,children:[G("span",{className:d.title,children:s==null?void 0:s.title}),G("span",{className:d.subTitle,children:s==null?void 0:s.subTitle})]}),G("div",{className:d.icon,children:s&&!s.isDisabled&&G("button",{className:T2(d.closeBtn),onClick:_,children:G(kf,{icon:"close"})})})]})}),G("div",{className:T2(d.ctxSelector,l?"active":d.hidden),children:G(EQ,{...n,onSelect:C,children:r})})]})},Pf=r=>r.map(e=>{var t,i;return{id:e.id,title:e.title,subTitle:(t=e.type)==null?void 0:t.id,graphic:((i=e.type)==null?void 0:i.id)==="OrgChart"?"list":void 0}}),Af=r=>Object.assign({id:"no-such-item",title:"Change me"},r),zse=[],yse=()=>{const r=Ra(),{value:e}=$6(k.useMemo(()=>r.modules.context.currentContext$,[r.modules.context])),t=k.useMemo(()=>e?Pf([e]):zse,[e]),[i,n]=k.useState(null),{currentApp:a}=XL(),o=k.useMemo(()=>(a==null?void 0:a.instance$)||Fi,[a]),s=k.useCallback(v=>{const m=v.context;m&&n(m)},[n]),c=k.useCallback(()=>n(null),[n]);WL(o,s,c);const l=3,h=k.useMemo(()=>({searchQuery:async v=>{if(!i)return[];if(v.length<l)return[Af({id:"min-length",title:`Type ${l-v.length} more chars to search`,isDisabled:!0})];try{const m=await i.queryContextAsync(v);return m.length?Pf(m):[Af({id:"no-results",title:"No results found",isDisabled:!0})]}catch{return console.log("ContextResolver query was cancelled"),[]}},initialResult:t}),[i,t]),d=k.useCallback(v=>{var m;(m=v.nativeEvent.detail)!=null&&m.selected.length&&r.modules.context.contextClient.setCurrentContext(v.nativeEvent.detail.selected[0].id)},[r]),u=k.useCallback(()=>{r&&r.modules.context.clearCurrentContext()},[r]);return[h,d,t==null?void 0:t[0],u]},wse=()=>{const[r,e,t,i]=yse();return G(kQ,{resolver:r,children:G(_se,{id:"context-selector-header",placeholder:"Search for context",initialText:"Start typing to search",dropdownHeight:"300px",variant:"header",onSelect:e,autofocus:!0,onClearContext:i,previewItem:t??null,value:t==null?void 0:t.title,selectedId:t==null?void 0:t.title})})},bse=({scale:r=1})=>$1("svg",{width:"50",height:"35",viewBox:"0 0 50 35",fill:"none",style:{transform:`scale(${r})`},children:[G("path",{d:"M0 2V23.1776L7.05405 16.1235V7.05405H16.1235L23.1776 0H2C0.895431 0 0 0.89543 0 2Z",transform:"translate(50 17.5) scale(0.92727 1.06779) rotate(135)",fill:"url(#paint0_linear)"}),G("path",{d:"M0 2V23.1776L7.05405 16.1235V7.05405H16.1235L23.1776 0H2C0.895431 0 0 0.89543 0 2Z",transform:"translate(0 17.5) scale(0.92727 1.06779) rotate(-45)",fill:"url(#paint1_linear)"}),G("path",{d:"M9.61965 36.6972L2.60087 29.6784L1.96135 22.3809L8.42623 22.9069L9.61965 36.6972Z",transform:"translate(33.8887 34.9863) scale(0.92727 -1.06779) rotate(45)",fill:"#990025"}),G("path",{d:"M7.05434 7.05434L0 0L1.21096 13.8183L7.68846 14.3818L7.05434 7.05434Z",transform:"translate(33.8887 34.9863) scale(0.92727 -1.06779) rotate(45)",fill:"#990025"}),G("path",{d:"M0 0L2.49398 29.5715L9.61965 36.6972L7.01878 7.01878L0 0Z",transform:"translate(33.8887 0.015625) scale(0.92727 1.06779) rotate(45)",fill:"#FF1243"}),$1("defs",{children:[$1("linearGradient",{id:"paint0_linear",x2:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(-13.5478 9.01983 -12.9578 -13.5478 18.0677 6.77391)",children:[G("stop",{offset:"0.508287",stopColor:"#DC002E"}),G("stop",{offset:"0.508387",stopColor:"#FF1243"})]}),$1("linearGradient",{id:"paint1_linear",x2:"1",gradientUnits:"userSpaceOnUse",gradientTransform:"matrix(-13.5478 9.01983 -12.9578 -13.5478 18.0677 6.77391)",children:[G("stop",{offset:"0.508287",stopColor:"#DC002E"}),G("stop",{offset:"0.508387",stopColor:"#FF1243"})]})]})]});/**
|
|
1741
1741
|
* @license
|
|
1742
1742
|
* Copyright 2021 Google LLC
|
|
1743
1743
|
* SPDX-LIcense-Identifier: Apache-2.0
|
|
@@ -1749,7 +1749,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1749
1749
|
* @license
|
|
1750
1750
|
* Copyright 2019 Google LLC
|
|
1751
1751
|
* SPDX-License-Identifier: Apache-2.0
|
|
1752
|
-
*/class Nt extends bt{constructor(){super(...arguments),this.raised=!1,this.unelevated=!1,this.outlined=!1,this.dense=!1,this.disabled=!1,this.trailingIcon=!1,this.fullwidth=!1,this.icon="",this.label="",this.expandContent=!1,this.shouldRenderRipple=!1,this.rippleHandlers=new
|
|
1752
|
+
*/class Nt extends bt{constructor(){super(...arguments),this.raised=!1,this.unelevated=!1,this.outlined=!1,this.dense=!1,this.disabled=!1,this.trailingIcon=!1,this.fullwidth=!1,this.icon="",this.label="",this.expandContent=!1,this.shouldRenderRipple=!1,this.rippleHandlers=new Nn(()=>(this.shouldRenderRipple=!0,this.ripple))}renderOverlay(){return O``}renderRipple(){const e=this.raised||this.unelevated;return this.shouldRenderRipple?O`<mwc-ripple class="ripple" .primary="${!e}" .disabled="${this.disabled}"></mwc-ripple>`:""}focus(){const e=this.buttonElement;e&&(this.rippleHandlers.startFocus(),e.focus())}blur(){const e=this.buttonElement;e&&(this.rippleHandlers.endFocus(),e.blur())}getRenderClasses(){return{"mdc-button--raised":this.raised,"mdc-button--unelevated":this.unelevated,"mdc-button--outlined":this.outlined,"mdc-button--dense":this.dense}}render(){return O`
|
|
1753
1753
|
<button
|
|
1754
1754
|
id="button"
|
|
1755
1755
|
class="mdc-button ${yt(this.getRenderClasses())}"
|
|
@@ -1783,7 +1783,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1783
1783
|
</button>`}renderIcon(){return O`
|
|
1784
1784
|
<mwc-icon class="mdc-button__icon">
|
|
1785
1785
|
${this.icon}
|
|
1786
|
-
</mwc-icon>`}handleRippleActivate(e){const t=()=>{window.removeEventListener("mouseup",t),this.handleRippleDeactivate()};window.addEventListener("mouseup",t),this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}}Nt.shadowRootOptions={mode:"open",delegatesFocus:!0};g([
|
|
1786
|
+
</mwc-icon>`}handleRippleActivate(e){const t=()=>{window.removeEventListener("mouseup",t),this.handleRippleDeactivate()};window.addEventListener("mouseup",t),this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}}Nt.shadowRootOptions={mode:"open",delegatesFocus:!0};g([Gi,y({type:String,attribute:"aria-haspopup"})],Nt.prototype,"ariaHasPopup",void 0);g([y({type:Boolean,reflect:!0})],Nt.prototype,"raised",void 0);g([y({type:Boolean,reflect:!0})],Nt.prototype,"unelevated",void 0);g([y({type:Boolean,reflect:!0})],Nt.prototype,"outlined",void 0);g([y({type:Boolean})],Nt.prototype,"dense",void 0);g([y({type:Boolean,reflect:!0})],Nt.prototype,"disabled",void 0);g([y({type:Boolean,attribute:"trailingicon"})],Nt.prototype,"trailingIcon",void 0);g([y({type:Boolean,reflect:!0})],Nt.prototype,"fullwidth",void 0);g([y({type:String})],Nt.prototype,"icon",void 0);g([y({type:String})],Nt.prototype,"label",void 0);g([y({type:Boolean})],Nt.prototype,"expandContent",void 0);g([xt("#button")],Nt.prototype,"buttonElement",void 0);g([On("mwc-ripple")],Nt.prototype,"ripple",void 0);g([Ne()],Nt.prototype,"shouldRenderRipple",void 0);g([Ur({passive:!0})],Nt.prototype,"handleRippleActivate",null);/**
|
|
1787
1787
|
* @license
|
|
1788
1788
|
* Copyright 2021 Google LLC
|
|
1789
1789
|
* SPDX-LIcense-Identifier: Apache-2.0
|
|
@@ -1927,7 +1927,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1927
1927
|
* @license
|
|
1928
1928
|
* Copyright 2018 Google LLC
|
|
1929
1929
|
* SPDX-License-Identifier: Apache-2.0
|
|
1930
|
-
*/class mi extends bt{constructor(){super(...arguments),this.disabled=!1,this.icon="",this.shouldRenderRipple=!1,this.rippleHandlers=new
|
|
1930
|
+
*/class mi extends bt{constructor(){super(...arguments),this.disabled=!1,this.icon="",this.shouldRenderRipple=!1,this.rippleHandlers=new Nn(()=>(this.shouldRenderRipple=!0,this.ripple))}renderRipple(){return this.shouldRenderRipple?O`
|
|
1931
1931
|
<mwc-ripple
|
|
1932
1932
|
.disabled="${this.disabled}"
|
|
1933
1933
|
unbounded>
|
|
@@ -1949,11 +1949,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1949
1949
|
<span
|
|
1950
1950
|
><slot></slot
|
|
1951
1951
|
></span>
|
|
1952
|
-
</button>`}handleRippleMouseDown(e){const t=()=>{window.removeEventListener("mouseup",t),this.handleRippleDeactivate()};window.addEventListener("mouseup",t),this.rippleHandlers.startPress(e)}handleRippleTouchStart(e){this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}}g([y({type:Boolean,reflect:!0})],mi.prototype,"disabled",void 0);g([y({type:String})],mi.prototype,"icon",void 0);g([
|
|
1952
|
+
</button>`}handleRippleMouseDown(e){const t=()=>{window.removeEventListener("mouseup",t),this.handleRippleDeactivate()};window.addEventListener("mouseup",t),this.rippleHandlers.startPress(e)}handleRippleTouchStart(e){this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}}g([y({type:Boolean,reflect:!0})],mi.prototype,"disabled",void 0);g([y({type:String})],mi.prototype,"icon",void 0);g([Gi,y({type:String,attribute:"aria-label"})],mi.prototype,"ariaLabel",void 0);g([Gi,y({type:String,attribute:"aria-haspopup"})],mi.prototype,"ariaHasPopup",void 0);g([xt("button")],mi.prototype,"buttonElement",void 0);g([On("mwc-ripple")],mi.prototype,"ripple",void 0);g([Ne()],mi.prototype,"shouldRenderRipple",void 0);g([Ur({passive:!0})],mi.prototype,"handleRippleMouseDown",null);g([Ur({passive:!0})],mi.prototype,"handleRippleTouchStart",null);/**
|
|
1953
1953
|
* @license
|
|
1954
1954
|
* Copyright 2021 Google LLC
|
|
1955
1955
|
* SPDX-LIcense-Identifier: Apache-2.0
|
|
1956
|
-
*/const Ly=Z`.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{display:none}.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block;max-height:48px;max-width:48px}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}}@media screen and (forced-colors: active)and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}}@media screen and (forced-colors: active)and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button.mdc-icon-button--reduced-size:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-disabled-on-light, rgba(0, 0, 0, 0.38))}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}:host{display:inline-block;outline:none}:host([disabled]){pointer-events:none}.mdc-icon-button i,.mdc-icon-button svg,.mdc-icon-button img,.mdc-icon-button ::slotted(*){display:block}:host{--mdc-ripple-color: currentcolor;-webkit-tap-highlight-color:transparent}:host,.mdc-icon-button{vertical-align:top}.mdc-icon-button{width:var(--mdc-icon-button-size, 48px);height:var(--mdc-icon-button-size, 48px);padding:calc( (var(--mdc-icon-button-size, 48px) - var(--mdc-icon-size, 24px)) / 2 )}.mdc-icon-button i,.mdc-icon-button svg,.mdc-icon-button img,.mdc-icon-button ::slotted(*){display:block;width:var(--mdc-icon-size, 24px);height:var(--mdc-icon-size, 24px)}`;var W0;(function(r){r.XSmall="x-small",r.Small="small",r.Medium="medium",r.Large="large",r.XLarge="x-large"})(W0||(W0={}));var Ic;(function(r){r.Primary="primary",r.Secondary="secondary",r.Success="success",r.Danger="danger",r.Warning="warning",r.Disabled="disabled"})(Ic||(Ic={}));class
|
|
1956
|
+
*/const Ly=Z`.material-icons{font-family:var(--mdc-icon-font, "Material Icons");font-weight:normal;font-style:normal;font-size:var(--mdc-icon-size, 24px);line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;-moz-osx-font-smoothing:grayscale;font-feature-settings:"liga"}.mdc-icon-button{font-size:24px;width:48px;height:48px;padding:12px}.mdc-icon-button .mdc-icon-button__focus-ring{display:none}.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{display:block;max-height:48px;max-width:48px}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{pointer-events:none;border:2px solid transparent;border-radius:6px;box-sizing:content-box;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:100%;width:100%}}@media screen and (forced-colors: active)and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{border-color:CanvasText}}@media screen and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{content:"";border:2px solid transparent;border-radius:8px;display:block;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);height:calc(100% + 4px);width:calc(100% + 4px)}}@media screen and (forced-colors: active)and (forced-colors: active){.mdc-icon-button.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring::after,.mdc-icon-button:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring::after{border-color:CanvasText}}.mdc-icon-button.mdc-icon-button--reduced-size .mdc-icon-button__ripple{width:40px;height:40px;margin-top:4px;margin-bottom:4px;margin-right:4px;margin-left:4px}.mdc-icon-button.mdc-icon-button--reduced-size.mdc-ripple-upgraded--background-focused .mdc-icon-button__focus-ring,.mdc-icon-button.mdc-icon-button--reduced-size:not(.mdc-ripple-upgraded):focus .mdc-icon-button__focus-ring{max-height:40px;max-width:40px}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{color:rgba(0, 0, 0, 0.38);color:var(--mdc-theme-text-disabled-on-light, rgba(0, 0, 0, 0.38))}.mdc-icon-button svg,.mdc-icon-button img{width:24px;height:24px}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}.mdc-icon-button{display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:transparent;fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;user-select:none;z-index:0;overflow:visible}.mdc-icon-button .mdc-icon-button__touch{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%)}.mdc-icon-button:disabled{cursor:default;pointer-events:none}.mdc-icon-button--display-flex{align-items:center;display:inline-flex;justify-content:center}.mdc-icon-button__icon{display:inline-block}.mdc-icon-button__icon.mdc-icon-button__icon--on{display:none}.mdc-icon-button--on .mdc-icon-button__icon{display:none}.mdc-icon-button--on .mdc-icon-button__icon.mdc-icon-button__icon--on{display:inline-block}.mdc-icon-button__link{height:100%;left:0;outline:none;position:absolute;top:0;width:100%}:host{display:inline-block;outline:none}:host([disabled]){pointer-events:none}.mdc-icon-button i,.mdc-icon-button svg,.mdc-icon-button img,.mdc-icon-button ::slotted(*){display:block}:host{--mdc-ripple-color: currentcolor;-webkit-tap-highlight-color:transparent}:host,.mdc-icon-button{vertical-align:top}.mdc-icon-button{width:var(--mdc-icon-button-size, 48px);height:var(--mdc-icon-button-size, 48px);padding:calc( (var(--mdc-icon-button-size, 48px) - var(--mdc-icon-size, 24px)) / 2 )}.mdc-icon-button i,.mdc-icon-button svg,.mdc-icon-button img,.mdc-icon-button ::slotted(*){display:block;width:var(--mdc-icon-size, 24px);height:var(--mdc-icon-size, 24px)}`;var W0;(function(r){r.XSmall="x-small",r.Small="small",r.Medium="medium",r.Large="large",r.XLarge="x-large"})(W0||(W0={}));var Ic;(function(r){r.Primary="primary",r.Secondary="secondary",r.Success="success",r.Danger="danger",r.Warning="warning",r.Disabled="disabled"})(Ic||(Ic={}));class Fn extends mi{constructor(){super(...arguments),this.color=Ic.Primary,this.size=W0.Medium,this.icon=""}renderRipple(){return this.shouldRenderRipple?O` <mwc-ripple .disabled="${this.disabled}" .unbounded="${this.rounded}"> </mwc-ripple>`:""}render(){return O`<a
|
|
1957
1957
|
class="mdc-icon-button mdc-icon-button--display-flex"
|
|
1958
1958
|
href="${ce(this.href)}"
|
|
1959
1959
|
target="${ce(this.target)}"
|
|
@@ -1972,7 +1972,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
1972
1972
|
${this.renderRipple()}
|
|
1973
1973
|
${this.icon?O`<fwc-icon class="mdc-icon-button__icon" .icon=${this.icon}></fwc-icon>`:""}
|
|
1974
1974
|
<span><slot></slot></span>
|
|
1975
|
-
</a>`}}
|
|
1975
|
+
</a>`}}Fn.styles=[Ese,Ly];g([y({type:String})],Fn.prototype,"href",void 0);g([y({type:String})],Fn.prototype,"target",void 0);g([y({type:String})],Fn.prototype,"color",void 0);g([y({type:String})],Fn.prototype,"size",void 0);g([y({type:Boolean})],Fn.prototype,"rounded",void 0);const Ty="fwc-icon-button";let $f=class extends Fn{};$f=g([Ve(Ty)],$f);const Pse=Z`
|
|
1976
1976
|
:host {
|
|
1977
1977
|
font-size: calc(
|
|
1978
1978
|
${x(b.typography.paragraph.body_long.getVariable("fontSize"))} * var(--content-resize, 1)
|
|
@@ -2063,7 +2063,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2063
2063
|
* @license
|
|
2064
2064
|
* Copyright 2019 Google LLC
|
|
2065
2065
|
* SPDX-License-Identifier: Apache-2.0
|
|
2066
|
-
*/class or extends bt{constructor(){super(...arguments),this.disabled=!1,this.onIcon="",this.offIcon="",this.on=!1,this.shouldRenderRipple=!1,this.rippleHandlers=new
|
|
2066
|
+
*/class or extends bt{constructor(){super(...arguments),this.disabled=!1,this.onIcon="",this.offIcon="",this.on=!1,this.shouldRenderRipple=!1,this.rippleHandlers=new Nn(()=>(this.shouldRenderRipple=!0,this.ripple))}handleClick(){this.on=!this.on,this.dispatchEvent(new CustomEvent("icon-button-toggle-change",{detail:{isOn:this.on},bubbles:!0}))}click(){this.mdcRoot.focus(),this.mdcRoot.click()}focus(){this.rippleHandlers.startFocus(),this.mdcRoot.focus()}blur(){this.rippleHandlers.endFocus(),this.mdcRoot.blur()}renderRipple(){return this.shouldRenderRipple?O`
|
|
2067
2067
|
<mwc-ripple
|
|
2068
2068
|
.disabled="${this.disabled}"
|
|
2069
2069
|
unbounded>
|
|
@@ -2092,7 +2092,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2092
2092
|
><i class="material-icons">${this.onIcon}</i
|
|
2093
2093
|
></slot
|
|
2094
2094
|
></span>
|
|
2095
|
-
</button>`}handleRippleMouseDown(e){const t=()=>{window.removeEventListener("mouseup",t),this.handleRippleDeactivate()};window.addEventListener("mouseup",t),this.rippleHandlers.startPress(e)}handleRippleTouchStart(e){this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}}g([xt(".mdc-icon-button")],or.prototype,"mdcRoot",void 0);g([
|
|
2095
|
+
</button>`}handleRippleMouseDown(e){const t=()=>{window.removeEventListener("mouseup",t),this.handleRippleDeactivate()};window.addEventListener("mouseup",t),this.rippleHandlers.startPress(e)}handleRippleTouchStart(e){this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}}g([xt(".mdc-icon-button")],or.prototype,"mdcRoot",void 0);g([Gi,y({type:String,attribute:"aria-label"})],or.prototype,"ariaLabel",void 0);g([y({type:Boolean,reflect:!0})],or.prototype,"disabled",void 0);g([y({type:String})],or.prototype,"onIcon",void 0);g([y({type:String})],or.prototype,"offIcon",void 0);g([y({type:String})],or.prototype,"ariaLabelOn",void 0);g([y({type:String})],or.prototype,"ariaLabelOff",void 0);g([y({type:Boolean,reflect:!0})],or.prototype,"on",void 0);g([On("mwc-ripple")],or.prototype,"ripple",void 0);g([Ne()],or.prototype,"shouldRenderRipple",void 0);g([Ur({passive:!0})],or.prototype,"handleRippleMouseDown",null);g([Ur({passive:!0})],or.prototype,"handleRippleTouchStart",null);class Ua extends or{constructor(){super(...arguments),this.onColor=Ic.Primary,this.offColor=Ic.Primary,this.size=W0.Medium,this.onIcon="",this.offIcon=""}renderRipple(){return this.shouldRenderRipple?O` <mwc-ripple .disabled="${this.disabled}" .unbounded="${this.rounded}"> </mwc-ripple>`:""}render(){const e={"mdc-icon-button--on":this.on},t=this.ariaLabelOn!==void 0&&this.ariaLabelOff!==void 0,i=t?void 0:this.on,n=t?this.on?this.ariaLabelOn:this.ariaLabelOff:this.ariaLabel;return O`<button
|
|
2096
2096
|
class="mdc-icon-button mdc-icon-button--display-flex ${yt(e)}"
|
|
2097
2097
|
aria-pressed="${ce(i)}"
|
|
2098
2098
|
aria-label="${ce(n)}"
|
|
@@ -2129,13 +2129,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2129
2129
|
width: auto;
|
|
2130
2130
|
fill: currentColor;
|
|
2131
2131
|
}
|
|
2132
|
-
`;class I4 extends bt{render(){return this.icon?fme(this.icon):null}}I4.styles=[pme];g([y()],I4.prototype,"icon",void 0);g([y()],I4.prototype,"type",void 0);const Ry="fwc-icon";let Ou=class extends I4{};Ou=g([Ve(Ry)],Ou);const gme=Ou;B1(
|
|
2132
|
+
`;class I4 extends bt{render(){return this.icon?fme(this.icon):null}}I4.styles=[pme];g([y()],I4.prototype,"icon",void 0);g([y()],I4.prototype,"type",void 0);const Ry="fwc-icon";let Ou=class extends I4{};Ou=g([Ve(Ry)],Ou);const gme=Ou;B1(Fn,Ty);B1(Ua,Iy);const If=B1(gme,Ry),_me=b6(x6({header:{padding:"0 1em"},center:{display:"flex",justifyContent:"flex-start",alignItems:"center"},wrapper:{display:"flex",justifyContent:"space-between",alignItems:"center"},contextselector:{width:"100%",maxWidth:"420px",marginLeft:"1em"}}),{name:"contextselector-styles"}),zme=()=>{const r=_me(),e=k.useRef(null),[t,i]=k.useState(!1),n=eL();return G(qz,{theme:b,children:$1("header",{className:T2(r.header,r.wrapper),children:[$1("div",{className:T2(r.center),children:[G(Lf,{ref:e,onClick:()=>i(!t),variant:"ghost",children:G(If,{icon:"menu"})}),G(bse,{scale:.7}),G("div",{className:T2(r.contextselector),children:G(wse,{})})]}),G("div",{children:n&&G(Lf,{ref:e,onClick:()=>console.info("Bookmark is enabled!"),variant:"ghost",children:G(If,{icon:"tag"})})})]})})};/**
|
|
2133
2133
|
* @license
|
|
2134
2134
|
* Copyright 2017 Google LLC
|
|
2135
2135
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2136
|
-
*/var v5;const Q0=window,lo=Q0.trustedTypes,Rf=lo?lo.createPolicy("lit-html",{createHTML:r=>r}):void 0,Nu="$lit$",
|
|
2137
|
-
\f\r]`,cs=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Of=/-->/g,Nf=/>/g,
|
|
2138
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Uf=/'/g,Ff=/"/g,Uy=/^(?:script|style|textarea|title)$/i,bme=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),re=bme(1),Sa=Symbol.for("lit-noChange"),It=Symbol.for("lit-nothing"),Bf=new WeakMap,N2=ho.createTreeWalker(ho,129,null,!1),xme=(r,e)=>{const t=r.length-1,i=[];let n,a=e===2?"<svg>":"",o=cs;for(let c=0;c<t;c++){const l=r[c];let h,d,u=-1,v=0;for(;v<l.length&&(o.lastIndex=v,d=o.exec(l),d!==null);)v=o.lastIndex,o===cs?d[1]==="!--"?o=Of:d[1]!==void 0?o=Nf:d[2]!==void 0?(Uy.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=
|
|
2136
|
+
*/var v5;const Q0=window,lo=Q0.trustedTypes,Rf=lo?lo.createPolicy("lit-html",{createHTML:r=>r}):void 0,Nu="$lit$",hn=`lit$${(Math.random()+"").slice(9)}$`,Oy="?"+hn,yme=`<${Oy}>`,ho=document,Rc=()=>ho.createComment(""),Oc=r=>r===null||typeof r!="object"&&typeof r!="function",Ny=Array.isArray,wme=r=>Ny(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",m5=`[
|
|
2137
|
+
\f\r]`,cs=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Of=/-->/g,Nf=/>/g,Xn=RegExp(`>|${m5}(?:([^\\s"'>=/]+)(${m5}*=${m5}*(?:[^
|
|
2138
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Uf=/'/g,Ff=/"/g,Uy=/^(?:script|style|textarea|title)$/i,bme=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),re=bme(1),Sa=Symbol.for("lit-noChange"),It=Symbol.for("lit-nothing"),Bf=new WeakMap,N2=ho.createTreeWalker(ho,129,null,!1),xme=(r,e)=>{const t=r.length-1,i=[];let n,a=e===2?"<svg>":"",o=cs;for(let c=0;c<t;c++){const l=r[c];let h,d,u=-1,v=0;for(;v<l.length&&(o.lastIndex=v,d=o.exec(l),d!==null);)v=o.lastIndex,o===cs?d[1]==="!--"?o=Of:d[1]!==void 0?o=Nf:d[2]!==void 0?(Uy.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=Xn):d[3]!==void 0&&(o=Xn):o===Xn?d[0]===">"?(o=n??cs,u=-1):d[1]===void 0?u=-2:(u=o.lastIndex-d[2].length,h=d[1],o=d[3]===void 0?Xn:d[3]==='"'?Ff:Uf):o===Ff||o===Uf?o=Xn:o===Of||o===Nf?o=cs:(o=Xn,n=void 0);const m=o===Xn&&r[c+1].startsWith("/>")?" ":"";a+=o===cs?l+yme:u>=0?(i.push(h),l.slice(0,u)+Nu+l.slice(u)+hn+m):l+hn+(u===-2?(i.push(void 0),c):m)}const s=a+(r[t]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Rf!==void 0?Rf.createHTML(s):s,i]};let Uu=class Fy{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let a=0,o=0;const s=e.length-1,c=this.parts,[l,h]=xme(e,t);if(this.el=Fy.createElement(l,i),N2.currentNode=this.el.content,t===2){const d=this.el.content,u=d.firstChild;u.remove(),d.append(...u.childNodes)}for(;(n=N2.nextNode())!==null&&c.length<s;){if(n.nodeType===1){if(n.hasAttributes()){const d=[];for(const u of n.getAttributeNames())if(u.endsWith(Nu)||u.startsWith(hn)){const v=h[o++];if(d.push(u),v!==void 0){const m=n.getAttribute(v.toLowerCase()+Nu).split(hn),f=/([.?@])?(.*)/.exec(v);c.push({type:1,index:a,name:f[2],strings:m,ctor:f[1]==="."?Cme:f[1]==="?"?kme:f[1]==="@"?Eme:R4})}else c.push({type:6,index:a})}for(const u of d)n.removeAttribute(u)}if(Uy.test(n.tagName)){const d=n.textContent.split(hn),u=d.length-1;if(u>0){n.textContent=lo?lo.emptyScript:"";for(let v=0;v<u;v++)n.append(d[v],Rc()),N2.nextNode(),c.push({type:2,index:++a});n.append(d[u],Rc())}}}else if(n.nodeType===8)if(n.data===Oy)c.push({type:2,index:a});else{let d=-1;for(;(d=n.data.indexOf(hn,d+1))!==-1;)c.push({type:7,index:a}),d+=hn.length-1}a++}}static createElement(e,t){const i=ho.createElement("template");return i.innerHTML=e,i}};function uo(r,e,t=r,i){var n,a,o,s;if(e===Sa)return e;let c=i!==void 0?(n=t._$Co)===null||n===void 0?void 0:n[i]:t._$Cl;const l=Oc(e)?void 0:e._$litDirective$;return(c==null?void 0:c.constructor)!==l&&((a=c==null?void 0:c._$AO)===null||a===void 0||a.call(c,!1),l===void 0?c=void 0:(c=new l(r),c._$AT(r,t,i)),i!==void 0?((o=(s=t)._$Co)!==null&&o!==void 0?o:s._$Co=[])[i]=c:t._$Cl=c),c!==void 0&&(e=uo(r,c._$AS(r,e.values),c,i)),e}let Mme=class{constructor(e,t){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var t;const{el:{content:i},parts:n}=this._$AD,a=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:ho).importNode(i,!0);N2.currentNode=a;let o=N2.nextNode(),s=0,c=0,l=n[0];for(;l!==void 0;){if(s===l.index){let h;l.type===2?h=new T6(o,o.nextSibling,this,e):l.type===1?h=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(h=new Pme(o,this,e)),this.u.push(h),l=n[++c]}s!==(l==null?void 0:l.index)&&(o=N2.nextNode(),s++)}return a}p(e){let t=0;for(const i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},T6=class By{constructor(e,t,i,n){var a;this.type=2,this._$AH=It,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cm=(a=n==null?void 0:n.isConnected)===null||a===void 0||a}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cm}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=uo(this,e,t),Oc(e)?e===It||e==null||e===""?(this._$AH!==It&&this._$AR(),this._$AH=It):e!==this._$AH&&e!==Sa&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):wme(e)?this.k(e):this.g(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}g(e){this._$AH!==It&&Oc(this._$AH)?this._$AA.nextSibling.data=e:this.T(ho.createTextNode(e)),this._$AH=e}$(e){var t;const{values:i,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Uu.createElement(n.h,this.options)),n);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===a)this._$AH.p(i);else{const o=new Mme(a,this),s=o.v(this.options);o.p(i),this.T(s),this._$AH=o}}_$AC(e){let t=Bf.get(e.strings);return t===void 0&&Bf.set(e.strings,t=new Uu(e)),t}k(e){Ny(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const a of e)n===t.length?t.push(i=new By(this.S(Rc()),this.S(Rc()),this,this.options)):i=t[n],i._$AI(a),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,t);e&&e!==this._$AB;){const n=e.nextSibling;e.remove(),e=n}}setConnected(e){var t;this._$AM===void 0&&(this._$Cm=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}},R4=class{constructor(e,t,i,n,a){this.type=1,this._$AH=It,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=It}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,n){const a=this.strings;let o=!1;if(a===void 0)e=uo(this,e,t,0),o=!Oc(e)||e!==this._$AH&&e!==Sa,o&&(this._$AH=e);else{const s=e;let c,l;for(e=a[0],c=0;c<a.length-1;c++)l=uo(this,s[i+c],t,c),l===Sa&&(l=this._$AH[c]),o||(o=!Oc(l)||l!==this._$AH[c]),l===It?e=It:e!==It&&(e+=(l??"")+a[c+1]),this._$AH[c]=l}o&&!n&&this.j(e)}j(e){e===It?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Cme=class extends R4{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===It?void 0:e}};const Hme=lo?lo.emptyScript:"";let kme=class extends R4{constructor(){super(...arguments),this.type=4}j(e){e&&e!==It?this.element.setAttribute(this.name,Hme):this.element.removeAttribute(this.name)}},Eme=class extends R4{constructor(e,t,i,n,a){super(e,t,i,n,a),this.type=5}_$AI(e,t=this){var i;if((e=(i=uo(this,e,t,0))!==null&&i!==void 0?i:It)===Sa)return;const n=this._$AH,a=e===It&&n!==It||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==It&&(n===It||a);a&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}},Pme=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){uo(this,e)}};const jf=Q0.litHtmlPolyfillSupport;jf==null||jf(Uu,T6),((v5=Q0.litHtmlVersions)!==null&&v5!==void 0?v5:Q0.litHtmlVersions=[]).push("2.7.0");const Ame=(r,e,t)=>{var i,n;const a=(i=t==null?void 0:t.renderBefore)!==null&&i!==void 0?i:e;let o=a._$litPart$;if(o===void 0){const s=(n=t==null?void 0:t.renderBefore)!==null&&n!==void 0?n:null;a._$litPart$=o=new T6(e.insertBefore(Rc(),s),s,void 0,t??{})}return o._$AI(r),o};/**
|
|
2139
2139
|
* @license
|
|
2140
2140
|
* Copyright 2017 Google LLC
|
|
2141
2141
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -2155,9 +2155,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2155
2155
|
* @license
|
|
2156
2156
|
* Copyright 2017 Google LLC
|
|
2157
2157
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2158
|
-
*/var g5;const X0=window,mo=X0.trustedTypes,Wf=mo?mo.createPolicy("lit-html",{createHTML:r=>r}):void 0,Fu="$lit$",
|
|
2159
|
-
\f\r]`,ls=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Yf=/-->/g,Qf=/>/g,
|
|
2160
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Xf=/'/g,Jf=/"/g,Gy=/^(?:script|style|textarea|title)$/i,Ume=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),sh=Ume(1),po=Symbol.for("lit-noChange"),kt=Symbol.for("lit-nothing"),Zf=new WeakMap,F2=fo.createTreeWalker(fo,129,null,!1),Fme=(r,e)=>{const t=r.length-1,i=[];let n,a=e===2?"<svg>":"",o=ls;for(let c=0;c<t;c++){const l=r[c];let h,d,u=-1,v=0;for(;v<l.length&&(o.lastIndex=v,d=o.exec(l),d!==null);)v=o.lastIndex,o===ls?d[1]==="!--"?o=Yf:d[1]!==void 0?o=Qf:d[2]!==void 0?(Gy.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=
|
|
2158
|
+
*/var g5;const X0=window,mo=X0.trustedTypes,Wf=mo?mo.createPolicy("lit-html",{createHTML:r=>r}):void 0,Fu="$lit$",dn=`lit$${(Math.random()+"").slice(9)}$`,jy="?"+dn,Ome=`<${jy}>`,fo=document,Nc=()=>fo.createComment(""),Uc=r=>r===null||typeof r!="object"&&typeof r!="function",qy=Array.isArray,Nme=r=>qy(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",_5=`[
|
|
2159
|
+
\f\r]`,ls=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Yf=/-->/g,Qf=/>/g,Jn=RegExp(`>|${_5}(?:([^\\s"'>=/]+)(${_5}*=${_5}*(?:[^
|
|
2160
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Xf=/'/g,Jf=/"/g,Gy=/^(?:script|style|textarea|title)$/i,Ume=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),sh=Ume(1),po=Symbol.for("lit-noChange"),kt=Symbol.for("lit-nothing"),Zf=new WeakMap,F2=fo.createTreeWalker(fo,129,null,!1),Fme=(r,e)=>{const t=r.length-1,i=[];let n,a=e===2?"<svg>":"",o=ls;for(let c=0;c<t;c++){const l=r[c];let h,d,u=-1,v=0;for(;v<l.length&&(o.lastIndex=v,d=o.exec(l),d!==null);)v=o.lastIndex,o===ls?d[1]==="!--"?o=Yf:d[1]!==void 0?o=Qf:d[2]!==void 0?(Gy.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=Jn):d[3]!==void 0&&(o=Jn):o===Jn?d[0]===">"?(o=n??ls,u=-1):d[1]===void 0?u=-2:(u=o.lastIndex-d[2].length,h=d[1],o=d[3]===void 0?Jn:d[3]==='"'?Jf:Xf):o===Jf||o===Xf?o=Jn:o===Yf||o===Qf?o=ls:(o=Jn,n=void 0);const m=o===Jn&&r[c+1].startsWith("/>")?" ":"";a+=o===ls?l+Ome:u>=0?(i.push(h),l.slice(0,u)+Fu+l.slice(u)+dn+m):l+dn+(u===-2?(i.push(void 0),c):m)}const s=a+(r[t]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Wf!==void 0?Wf.createHTML(s):s,i]};let Bu=class Ky{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let a=0,o=0;const s=e.length-1,c=this.parts,[l,h]=Fme(e,t);if(this.el=Ky.createElement(l,i),F2.currentNode=this.el.content,t===2){const d=this.el.content,u=d.firstChild;u.remove(),d.append(...u.childNodes)}for(;(n=F2.nextNode())!==null&&c.length<s;){if(n.nodeType===1){if(n.hasAttributes()){const d=[];for(const u of n.getAttributeNames())if(u.endsWith(Fu)||u.startsWith(dn)){const v=h[o++];if(d.push(u),v!==void 0){const m=n.getAttribute(v.toLowerCase()+Fu).split(dn),f=/([.?@])?(.*)/.exec(v);c.push({type:1,index:a,name:f[2],strings:m,ctor:f[1]==="."?jme:f[1]==="?"?Gme:f[1]==="@"?Kme:O4})}else c.push({type:6,index:a})}for(const u of d)n.removeAttribute(u)}if(Gy.test(n.tagName)){const d=n.textContent.split(dn),u=d.length-1;if(u>0){n.textContent=mo?mo.emptyScript:"";for(let v=0;v<u;v++)n.append(d[v],Nc()),F2.nextNode(),c.push({type:2,index:++a});n.append(d[u],Nc())}}}else if(n.nodeType===8)if(n.data===jy)c.push({type:2,index:a});else{let d=-1;for(;(d=n.data.indexOf(dn,d+1))!==-1;)c.push({type:7,index:a}),d+=dn.length-1}a++}}static createElement(e,t){const i=fo.createElement("template");return i.innerHTML=e,i}};function go(r,e,t=r,i){var n,a,o,s;if(e===po)return e;let c=i!==void 0?(n=t._$Co)===null||n===void 0?void 0:n[i]:t._$Cl;const l=Uc(e)?void 0:e._$litDirective$;return(c==null?void 0:c.constructor)!==l&&((a=c==null?void 0:c._$AO)===null||a===void 0||a.call(c,!1),l===void 0?c=void 0:(c=new l(r),c._$AT(r,t,i)),i!==void 0?((o=(s=t)._$Co)!==null&&o!==void 0?o:s._$Co=[])[i]=c:t._$Cl=c),c!==void 0&&(e=go(r,c._$AS(r,e.values),c,i)),e}let Bme=class{constructor(e,t){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var t;const{el:{content:i},parts:n}=this._$AD,a=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:fo).importNode(i,!0);F2.currentNode=a;let o=F2.nextNode(),s=0,c=0,l=n[0];for(;l!==void 0;){if(s===l.index){let h;l.type===2?h=new I6(o,o.nextSibling,this,e):l.type===1?h=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(h=new Wme(o,this,e)),this.u.push(h),l=n[++c]}s!==(l==null?void 0:l.index)&&(o=F2.nextNode(),s++)}return a}p(e){let t=0;for(const i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},I6=class Wy{constructor(e,t,i,n){var a;this.type=2,this._$AH=kt,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cm=(a=n==null?void 0:n.isConnected)===null||a===void 0||a}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cm}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=go(this,e,t),Uc(e)?e===kt||e==null||e===""?(this._$AH!==kt&&this._$AR(),this._$AH=kt):e!==this._$AH&&e!==po&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Nme(e)?this.k(e):this.g(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}g(e){this._$AH!==kt&&Uc(this._$AH)?this._$AA.nextSibling.data=e:this.T(fo.createTextNode(e)),this._$AH=e}$(e){var t;const{values:i,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Bu.createElement(n.h,this.options)),n);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===a)this._$AH.p(i);else{const o=new Bme(a,this),s=o.v(this.options);o.p(i),this.T(s),this._$AH=o}}_$AC(e){let t=Zf.get(e.strings);return t===void 0&&Zf.set(e.strings,t=new Bu(e)),t}k(e){qy(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const a of e)n===t.length?t.push(i=new Wy(this.S(Nc()),this.S(Nc()),this,this.options)):i=t[n],i._$AI(a),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,t);e&&e!==this._$AB;){const n=e.nextSibling;e.remove(),e=n}}setConnected(e){var t;this._$AM===void 0&&(this._$Cm=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}},O4=class{constructor(e,t,i,n,a){this.type=1,this._$AH=kt,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=kt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,n){const a=this.strings;let o=!1;if(a===void 0)e=go(this,e,t,0),o=!Uc(e)||e!==this._$AH&&e!==po,o&&(this._$AH=e);else{const s=e;let c,l;for(e=a[0],c=0;c<a.length-1;c++)l=go(this,s[i+c],t,c),l===po&&(l=this._$AH[c]),o||(o=!Uc(l)||l!==this._$AH[c]),l===kt?e=kt:e!==kt&&(e+=(l??"")+a[c+1]),this._$AH[c]=l}o&&!n&&this.j(e)}j(e){e===kt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},jme=class extends O4{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===kt?void 0:e}};const qme=mo?mo.emptyScript:"";let Gme=class extends O4{constructor(){super(...arguments),this.type=4}j(e){e&&e!==kt?this.element.setAttribute(this.name,qme):this.element.removeAttribute(this.name)}},Kme=class extends O4{constructor(e,t,i,n,a){super(e,t,i,n,a),this.type=5}_$AI(e,t=this){var i;if((e=(i=go(this,e,t,0))!==null&&i!==void 0?i:kt)===po)return;const n=this._$AH,a=e===kt&&n!==kt||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==kt&&(n===kt||a);a&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}},Wme=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){go(this,e)}};const ep=X0.litHtmlPolyfillSupport;ep==null||ep(Bu,I6),((g5=X0.litHtmlVersions)!==null&&g5!==void 0?g5:X0.litHtmlVersions=[]).push("2.7.0");const Yme=(r,e,t)=>{var i,n;const a=(i=t==null?void 0:t.renderBefore)!==null&&i!==void 0?i:e;let o=a._$litPart$;if(o===void 0){const s=(n=t==null?void 0:t.renderBefore)!==null&&n!==void 0?n:null;a._$litPart$=o=new I6(e.insertBefore(Nc(),s),s,void 0,t??{})}return o._$AI(r),o};/**
|
|
2161
2161
|
* @license
|
|
2162
2162
|
* Copyright 2017 Google LLC
|
|
2163
2163
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -2348,9 +2348,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2348
2348
|
* @license
|
|
2349
2349
|
* Copyright 2017 Google LLC
|
|
2350
2350
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2351
|
-
*/var w5;const J0=window,_o=J0.trustedTypes,ip=_o?_o.createPolicy("lit-html",{createHTML:r=>r}):void 0,ju="$lit$",
|
|
2352
|
-
\f\r]`,hs=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,np=/-->/g,ap=/>/g,
|
|
2353
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),op=/'/g,sp=/"/g,Xy=/^(?:script|style|textarea|title)$/i,t9e=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),ch=t9e(1),yo=Symbol.for("lit-noChange"),Et=Symbol.for("lit-nothing"),cp=new WeakMap,j2=zo.createTreeWalker(zo,129,null,!1),r9e=(r,e)=>{const t=r.length-1,i=[];let n,a=e===2?"<svg>":"",o=hs;for(let c=0;c<t;c++){const l=r[c];let h,d,u=-1,v=0;for(;v<l.length&&(o.lastIndex=v,d=o.exec(l),d!==null);)v=o.lastIndex,o===hs?d[1]==="!--"?o=np:d[1]!==void 0?o=ap:d[2]!==void 0?(Xy.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=
|
|
2351
|
+
*/var w5;const J0=window,_o=J0.trustedTypes,ip=_o?_o.createPolicy("lit-html",{createHTML:r=>r}):void 0,ju="$lit$",un=`lit$${(Math.random()+"").slice(9)}$`,Yy="?"+un,Zme=`<${Yy}>`,zo=document,Fc=()=>zo.createComment(""),Bc=r=>r===null||typeof r!="object"&&typeof r!="function",Qy=Array.isArray,e9e=r=>Qy(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",b5=`[
|
|
2352
|
+
\f\r]`,hs=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,np=/-->/g,ap=/>/g,Zn=RegExp(`>|${b5}(?:([^\\s"'>=/]+)(${b5}*=${b5}*(?:[^
|
|
2353
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),op=/'/g,sp=/"/g,Xy=/^(?:script|style|textarea|title)$/i,t9e=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),ch=t9e(1),yo=Symbol.for("lit-noChange"),Et=Symbol.for("lit-nothing"),cp=new WeakMap,j2=zo.createTreeWalker(zo,129,null,!1),r9e=(r,e)=>{const t=r.length-1,i=[];let n,a=e===2?"<svg>":"",o=hs;for(let c=0;c<t;c++){const l=r[c];let h,d,u=-1,v=0;for(;v<l.length&&(o.lastIndex=v,d=o.exec(l),d!==null);)v=o.lastIndex,o===hs?d[1]==="!--"?o=np:d[1]!==void 0?o=ap:d[2]!==void 0?(Xy.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=Zn):d[3]!==void 0&&(o=Zn):o===Zn?d[0]===">"?(o=n??hs,u=-1):d[1]===void 0?u=-2:(u=o.lastIndex-d[2].length,h=d[1],o=d[3]===void 0?Zn:d[3]==='"'?sp:op):o===sp||o===op?o=Zn:o===np||o===ap?o=hs:(o=Zn,n=void 0);const m=o===Zn&&r[c+1].startsWith("/>")?" ":"";a+=o===hs?l+Zme:u>=0?(i.push(h),l.slice(0,u)+ju+l.slice(u)+un+m):l+un+(u===-2?(i.push(void 0),c):m)}const s=a+(r[t]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[ip!==void 0?ip.createHTML(s):s,i]};let qu=class Jy{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let a=0,o=0;const s=e.length-1,c=this.parts,[l,h]=r9e(e,t);if(this.el=Jy.createElement(l,i),j2.currentNode=this.el.content,t===2){const d=this.el.content,u=d.firstChild;u.remove(),d.append(...u.childNodes)}for(;(n=j2.nextNode())!==null&&c.length<s;){if(n.nodeType===1){if(n.hasAttributes()){const d=[];for(const u of n.getAttributeNames())if(u.endsWith(ju)||u.startsWith(un)){const v=h[o++];if(d.push(u),v!==void 0){const m=n.getAttribute(v.toLowerCase()+ju).split(un),f=/([.?@])?(.*)/.exec(v);c.push({type:1,index:a,name:f[2],strings:m,ctor:f[1]==="."?n9e:f[1]==="?"?o9e:f[1]==="@"?s9e:U4})}else c.push({type:6,index:a})}for(const u of d)n.removeAttribute(u)}if(Xy.test(n.tagName)){const d=n.textContent.split(un),u=d.length-1;if(u>0){n.textContent=_o?_o.emptyScript:"";for(let v=0;v<u;v++)n.append(d[v],Fc()),j2.nextNode(),c.push({type:2,index:++a});n.append(d[u],Fc())}}}else if(n.nodeType===8)if(n.data===Yy)c.push({type:2,index:a});else{let d=-1;for(;(d=n.data.indexOf(un,d+1))!==-1;)c.push({type:7,index:a}),d+=un.length-1}a++}}static createElement(e,t){const i=zo.createElement("template");return i.innerHTML=e,i}};function wo(r,e,t=r,i){var n,a,o,s;if(e===yo)return e;let c=i!==void 0?(n=t._$Co)===null||n===void 0?void 0:n[i]:t._$Cl;const l=Bc(e)?void 0:e._$litDirective$;return(c==null?void 0:c.constructor)!==l&&((a=c==null?void 0:c._$AO)===null||a===void 0||a.call(c,!1),l===void 0?c=void 0:(c=new l(r),c._$AT(r,t,i)),i!==void 0?((o=(s=t)._$Co)!==null&&o!==void 0?o:s._$Co=[])[i]=c:t._$Cl=c),c!==void 0&&(e=wo(r,c._$AS(r,e.values),c,i)),e}let i9e=class{constructor(e,t){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var t;const{el:{content:i},parts:n}=this._$AD,a=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:zo).importNode(i,!0);j2.currentNode=a;let o=j2.nextNode(),s=0,c=0,l=n[0];for(;l!==void 0;){if(s===l.index){let h;l.type===2?h=new R6(o,o.nextSibling,this,e):l.type===1?h=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(h=new c9e(o,this,e)),this.u.push(h),l=n[++c]}s!==(l==null?void 0:l.index)&&(o=j2.nextNode(),s++)}return a}p(e){let t=0;for(const i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},R6=class Zy{constructor(e,t,i,n){var a;this.type=2,this._$AH=Et,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cm=(a=n==null?void 0:n.isConnected)===null||a===void 0||a}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cm}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=wo(this,e,t),Bc(e)?e===Et||e==null||e===""?(this._$AH!==Et&&this._$AR(),this._$AH=Et):e!==this._$AH&&e!==yo&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):e9e(e)?this.k(e):this.g(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}g(e){this._$AH!==Et&&Bc(this._$AH)?this._$AA.nextSibling.data=e:this.T(zo.createTextNode(e)),this._$AH=e}$(e){var t;const{values:i,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=qu.createElement(n.h,this.options)),n);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===a)this._$AH.p(i);else{const o=new i9e(a,this),s=o.v(this.options);o.p(i),this.T(s),this._$AH=o}}_$AC(e){let t=cp.get(e.strings);return t===void 0&&cp.set(e.strings,t=new qu(e)),t}k(e){Qy(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const a of e)n===t.length?t.push(i=new Zy(this.S(Fc()),this.S(Fc()),this,this.options)):i=t[n],i._$AI(a),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,t);e&&e!==this._$AB;){const n=e.nextSibling;e.remove(),e=n}}setConnected(e){var t;this._$AM===void 0&&(this._$Cm=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}},U4=class{constructor(e,t,i,n,a){this.type=1,this._$AH=Et,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Et}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,n){const a=this.strings;let o=!1;if(a===void 0)e=wo(this,e,t,0),o=!Bc(e)||e!==this._$AH&&e!==yo,o&&(this._$AH=e);else{const s=e;let c,l;for(e=a[0],c=0;c<a.length-1;c++)l=wo(this,s[i+c],t,c),l===yo&&(l=this._$AH[c]),o||(o=!Bc(l)||l!==this._$AH[c]),l===Et?e=Et:e!==Et&&(e+=(l??"")+a[c+1]),this._$AH[c]=l}o&&!n&&this.j(e)}j(e){e===Et?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},n9e=class extends U4{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Et?void 0:e}};const a9e=_o?_o.emptyScript:"";let o9e=class extends U4{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Et?this.element.setAttribute(this.name,a9e):this.element.removeAttribute(this.name)}},s9e=class extends U4{constructor(e,t,i,n,a){super(e,t,i,n,a),this.type=5}_$AI(e,t=this){var i;if((e=(i=wo(this,e,t,0))!==null&&i!==void 0?i:Et)===yo)return;const n=this._$AH,a=e===Et&&n!==Et||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==Et&&(n===Et||a);a&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}},c9e=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){wo(this,e)}};const lp=J0.litHtmlPolyfillSupport;lp==null||lp(qu,R6),((w5=J0.litHtmlVersions)!==null&&w5!==void 0?w5:J0.litHtmlVersions=[]).push("2.7.0");const l9e=(r,e,t)=>{var i,n;const a=(i=t==null?void 0:t.renderBefore)!==null&&i!==void 0?i:e;let o=a._$litPart$;if(o===void 0){const s=(n=t==null?void 0:t.renderBefore)!==null&&n!==void 0?n:null;a._$litPart$=o=new R6(e.insertBefore(Fc(),s),s,void 0,t??{})}return o._$AI(r),o};/**
|
|
2354
2354
|
* @license
|
|
2355
2355
|
* Copyright 2017 Google LLC
|
|
2356
2356
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -2487,7 +2487,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2487
2487
|
:host([clickable]:not([disabled]):hover) {
|
|
2488
2488
|
cursor: pointer;
|
|
2489
2489
|
}
|
|
2490
|
-
`;class C1 extends rc{constructor(){super(...arguments),this.size=ic.Medium,this.position=Gu.TopRight,this.color=Kt.Secondary,this.rippleHandlers=new
|
|
2490
|
+
`;class C1 extends rc{constructor(){super(...arguments),this.size=ic.Medium,this.position=Gu.TopRight,this.color=Kt.Secondary,this.rippleHandlers=new Nn(()=>this.ripple)}updated(e){super.updated(e),e.has("disabled")&&this.disabled&&(this.clickable=!1,this.color=Kt.Disabled,this.requestUpdate("clickable"),this.requestUpdate("color"))}renderIcon(){if(this.size!==ic.XSmall&&(this.icon||this.iconSlot&&this.iconSlot.length>0))return ch`<slot name="icon" class="fwc-badge__icon"><fwc-icon icon=${dp(this.icon)}></fwc-icon></slot>`}renderValue(){if(this.size!==ic.XSmall&&(this.value||this.valueSlot&&this.valueSlot.length>0))return ch`<slot name="value" class="fwc-badge__value">${this.value}</slot>`}renderRipple(){return this.clickable?ch`<fwc-ripple class="fwc-badge__ripple" disabled="${dp(this.disabled)}" unbounded></fwc-ripple>`:""}render(){var e;const t=(e=this.renderIcon())!==null&&e!==void 0?e:this.renderValue();return ch`<span
|
|
2491
2491
|
class="fwc-badge__container"
|
|
2492
2492
|
@click=${this.handleOnClick}
|
|
2493
2493
|
@focus="${this.handleRippleFocus}"
|
|
@@ -2499,13 +2499,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2499
2499
|
@touchend="${this.handleRippleDeactivate}"
|
|
2500
2500
|
@touchcancel="${this.handleRippleDeactivate}"
|
|
2501
2501
|
>${t}</span
|
|
2502
|
-
>${this.renderRipple()}`}handleRippleActivate(e){const t=()=>{window.removeEventListener("mouseup",t),this.handleRippleDeactivate()};window.addEventListener("mouseup",t),this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}handleOnClick(e){this.clickable&&!this.disabled&&this.dispatchEvent(new PointerEvent("click",e))}}g([y({type:String,reflect:!0})],C1.prototype,"size",void 0);g([y({type:String,reflect:!0})],C1.prototype,"position",void 0);g([y({type:String,reflect:!0})],C1.prototype,"color",void 0);g([y({type:String})],C1.prototype,"value",void 0);g([y({type:String,reflect:!0})],C1.prototype,"icon",void 0);g([y({type:Boolean,reflect:!0})],C1.prototype,"circular",void 0);g([y({type:String})],C1.prototype,"tooltip",void 0);g([y({type:Boolean,reflect:!0})],C1.prototype,"clickable",void 0);g([y({type:Boolean,reflect:!0})],C1.prototype,"disabled",void 0);g([
|
|
2502
|
+
>${this.renderRipple()}`}handleRippleActivate(e){const t=()=>{window.removeEventListener("mouseup",t),this.handleRippleDeactivate()};window.addEventListener("mouseup",t),this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}handleOnClick(e){this.clickable&&!this.disabled&&this.dispatchEvent(new PointerEvent("click",e))}}g([y({type:String,reflect:!0})],C1.prototype,"size",void 0);g([y({type:String,reflect:!0})],C1.prototype,"position",void 0);g([y({type:String,reflect:!0})],C1.prototype,"color",void 0);g([y({type:String})],C1.prototype,"value",void 0);g([y({type:String,reflect:!0})],C1.prototype,"icon",void 0);g([y({type:Boolean,reflect:!0})],C1.prototype,"circular",void 0);g([y({type:String})],C1.prototype,"tooltip",void 0);g([y({type:Boolean,reflect:!0})],C1.prototype,"clickable",void 0);g([y({type:Boolean,reflect:!0})],C1.prototype,"disabled",void 0);g([On("fwc-ripple")],C1.prototype,"ripple",void 0);g([P4("icon")],C1.prototype,"iconSlot",void 0);g([P4("value")],C1.prototype,"valueSlot",void 0);g([Ur({passive:!0})],C1.prototype,"handleRippleActivate",null);C1.styles=[d9e];const u9e="fwc-badge";let vp=class extends C1{};vp=g([Ve(u9e)],vp);/**
|
|
2503
2503
|
* @license
|
|
2504
2504
|
* Copyright 2017 Google LLC
|
|
2505
2505
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2506
|
-
*/var C5;const Z0=window,bo=Z0.trustedTypes,mp=bo?bo.createPolicy("lit-html",{createHTML:r=>r}):void 0,Ku="$lit$",
|
|
2507
|
-
\f\r]`,ds=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fp=/-->/g,pp=/>/g,
|
|
2508
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),gp=/'/g,_p=/"/g,iw=/^(?:script|style|textarea|title)$/i,f9e=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),e2=f9e(1),Mo=Symbol.for("lit-noChange"),Pt=Symbol.for("lit-nothing"),zp=new WeakMap,q2=xo.createTreeWalker(xo,129,null,!1),p9e=(r,e)=>{const t=r.length-1,i=[];let n,a=e===2?"<svg>":"",o=ds;for(let c=0;c<t;c++){const l=r[c];let h,d,u=-1,v=0;for(;v<l.length&&(o.lastIndex=v,d=o.exec(l),d!==null);)v=o.lastIndex,o===ds?d[1]==="!--"?o=fp:d[1]!==void 0?o=pp:d[2]!==void 0?(iw.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=
|
|
2506
|
+
*/var C5;const Z0=window,bo=Z0.trustedTypes,mp=bo?bo.createPolicy("lit-html",{createHTML:r=>r}):void 0,Ku="$lit$",vn=`lit$${(Math.random()+"").slice(9)}$`,tw="?"+vn,v9e=`<${tw}>`,xo=document,jc=()=>xo.createComment(""),qc=r=>r===null||typeof r!="object"&&typeof r!="function",rw=Array.isArray,m9e=r=>rw(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",H5=`[
|
|
2507
|
+
\f\r]`,ds=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fp=/-->/g,pp=/>/g,ea=RegExp(`>|${H5}(?:([^\\s"'>=/]+)(${H5}*=${H5}*(?:[^
|
|
2508
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),gp=/'/g,_p=/"/g,iw=/^(?:script|style|textarea|title)$/i,f9e=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),e2=f9e(1),Mo=Symbol.for("lit-noChange"),Pt=Symbol.for("lit-nothing"),zp=new WeakMap,q2=xo.createTreeWalker(xo,129,null,!1),p9e=(r,e)=>{const t=r.length-1,i=[];let n,a=e===2?"<svg>":"",o=ds;for(let c=0;c<t;c++){const l=r[c];let h,d,u=-1,v=0;for(;v<l.length&&(o.lastIndex=v,d=o.exec(l),d!==null);)v=o.lastIndex,o===ds?d[1]==="!--"?o=fp:d[1]!==void 0?o=pp:d[2]!==void 0?(iw.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=ea):d[3]!==void 0&&(o=ea):o===ea?d[0]===">"?(o=n??ds,u=-1):d[1]===void 0?u=-2:(u=o.lastIndex-d[2].length,h=d[1],o=d[3]===void 0?ea:d[3]==='"'?_p:gp):o===_p||o===gp?o=ea:o===fp||o===pp?o=ds:(o=ea,n=void 0);const m=o===ea&&r[c+1].startsWith("/>")?" ":"";a+=o===ds?l+v9e:u>=0?(i.push(h),l.slice(0,u)+Ku+l.slice(u)+vn+m):l+vn+(u===-2?(i.push(void 0),c):m)}const s=a+(r[t]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[mp!==void 0?mp.createHTML(s):s,i]};let Wu=class nw{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let a=0,o=0;const s=e.length-1,c=this.parts,[l,h]=p9e(e,t);if(this.el=nw.createElement(l,i),q2.currentNode=this.el.content,t===2){const d=this.el.content,u=d.firstChild;u.remove(),d.append(...u.childNodes)}for(;(n=q2.nextNode())!==null&&c.length<s;){if(n.nodeType===1){if(n.hasAttributes()){const d=[];for(const u of n.getAttributeNames())if(u.endsWith(Ku)||u.startsWith(vn)){const v=h[o++];if(d.push(u),v!==void 0){const m=n.getAttribute(v.toLowerCase()+Ku).split(vn),f=/([.?@])?(.*)/.exec(v);c.push({type:1,index:a,name:f[2],strings:m,ctor:f[1]==="."?_9e:f[1]==="?"?y9e:f[1]==="@"?w9e:F4})}else c.push({type:6,index:a})}for(const u of d)n.removeAttribute(u)}if(iw.test(n.tagName)){const d=n.textContent.split(vn),u=d.length-1;if(u>0){n.textContent=bo?bo.emptyScript:"";for(let v=0;v<u;v++)n.append(d[v],jc()),q2.nextNode(),c.push({type:2,index:++a});n.append(d[u],jc())}}}else if(n.nodeType===8)if(n.data===tw)c.push({type:2,index:a});else{let d=-1;for(;(d=n.data.indexOf(vn,d+1))!==-1;)c.push({type:7,index:a}),d+=vn.length-1}a++}}static createElement(e,t){const i=xo.createElement("template");return i.innerHTML=e,i}};function Co(r,e,t=r,i){var n,a,o,s;if(e===Mo)return e;let c=i!==void 0?(n=t._$Co)===null||n===void 0?void 0:n[i]:t._$Cl;const l=qc(e)?void 0:e._$litDirective$;return(c==null?void 0:c.constructor)!==l&&((a=c==null?void 0:c._$AO)===null||a===void 0||a.call(c,!1),l===void 0?c=void 0:(c=new l(r),c._$AT(r,t,i)),i!==void 0?((o=(s=t)._$Co)!==null&&o!==void 0?o:s._$Co=[])[i]=c:t._$Cl=c),c!==void 0&&(e=Co(r,c._$AS(r,e.values),c,i)),e}let g9e=class{constructor(e,t){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var t;const{el:{content:i},parts:n}=this._$AD,a=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:xo).importNode(i,!0);q2.currentNode=a;let o=q2.nextNode(),s=0,c=0,l=n[0];for(;l!==void 0;){if(s===l.index){let h;l.type===2?h=new O6(o,o.nextSibling,this,e):l.type===1?h=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(h=new b9e(o,this,e)),this.u.push(h),l=n[++c]}s!==(l==null?void 0:l.index)&&(o=q2.nextNode(),s++)}return a}p(e){let t=0;for(const i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},O6=class aw{constructor(e,t,i,n){var a;this.type=2,this._$AH=Pt,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cm=(a=n==null?void 0:n.isConnected)===null||a===void 0||a}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cm}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Co(this,e,t),qc(e)?e===Pt||e==null||e===""?(this._$AH!==Pt&&this._$AR(),this._$AH=Pt):e!==this._$AH&&e!==Mo&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):m9e(e)?this.k(e):this.g(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}g(e){this._$AH!==Pt&&qc(this._$AH)?this._$AA.nextSibling.data=e:this.T(xo.createTextNode(e)),this._$AH=e}$(e){var t;const{values:i,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Wu.createElement(n.h,this.options)),n);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===a)this._$AH.p(i);else{const o=new g9e(a,this),s=o.v(this.options);o.p(i),this.T(s),this._$AH=o}}_$AC(e){let t=zp.get(e.strings);return t===void 0&&zp.set(e.strings,t=new Wu(e)),t}k(e){rw(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const a of e)n===t.length?t.push(i=new aw(this.S(jc()),this.S(jc()),this,this.options)):i=t[n],i._$AI(a),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,t);e&&e!==this._$AB;){const n=e.nextSibling;e.remove(),e=n}}setConnected(e){var t;this._$AM===void 0&&(this._$Cm=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}},F4=class{constructor(e,t,i,n,a){this.type=1,this._$AH=Pt,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Pt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,n){const a=this.strings;let o=!1;if(a===void 0)e=Co(this,e,t,0),o=!qc(e)||e!==this._$AH&&e!==Mo,o&&(this._$AH=e);else{const s=e;let c,l;for(e=a[0],c=0;c<a.length-1;c++)l=Co(this,s[i+c],t,c),l===Mo&&(l=this._$AH[c]),o||(o=!qc(l)||l!==this._$AH[c]),l===Pt?e=Pt:e!==Pt&&(e+=(l??"")+a[c+1]),this._$AH[c]=l}o&&!n&&this.j(e)}j(e){e===Pt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},_9e=class extends F4{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Pt?void 0:e}};const z9e=bo?bo.emptyScript:"";let y9e=class extends F4{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Pt?this.element.setAttribute(this.name,z9e):this.element.removeAttribute(this.name)}},w9e=class extends F4{constructor(e,t,i,n,a){super(e,t,i,n,a),this.type=5}_$AI(e,t=this){var i;if((e=(i=Co(this,e,t,0))!==null&&i!==void 0?i:Pt)===Mo)return;const n=this._$AH,a=e===Pt&&n!==Pt||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==Pt&&(n===Pt||a);a&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}},b9e=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Co(this,e)}};const yp=Z0.litHtmlPolyfillSupport;yp==null||yp(Wu,O6),((C5=Z0.litHtmlVersions)!==null&&C5!==void 0?C5:Z0.litHtmlVersions=[]).push("2.7.0");const x9e=(r,e,t)=>{var i,n;const a=(i=t==null?void 0:t.renderBefore)!==null&&i!==void 0?i:e;let o=a._$litPart$;if(o===void 0){const s=(n=t==null?void 0:t.renderBefore)!==null&&n!==void 0?n:null;a._$litPart$=o=new O6(e.insertBefore(jc(),s),s,void 0,t??{})}return o._$AI(r),o};/**
|
|
2509
2509
|
* @license
|
|
2510
2510
|
* Copyright 2017 Google LLC
|
|
2511
2511
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -2517,13 +2517,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2517
2517
|
* @license
|
|
2518
2518
|
* Copyright 2017 Google LLC
|
|
2519
2519
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2520
|
-
*/var P5;const t4=window,Ho=t4.trustedTypes,xp=Ho?Ho.createPolicy("lit-html",{createHTML:r=>r}):void 0,r4="$lit$",
|
|
2521
|
-
\f\r]`,us=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mp=/-->/g,Cp=/>/g,
|
|
2522
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Hp=/'/g,kp=/"/g,cw=/^(?:script|style|textarea|title)$/i,C9e=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),V5=C9e(1)
|
|
2520
|
+
*/var P5;const t4=window,Ho=t4.trustedTypes,xp=Ho?Ho.createPolicy("lit-html",{createHTML:r=>r}):void 0,r4="$lit$",Ei=`lit$${(Math.random()+"").slice(9)}$`,N6="?"+Ei,M9e=`<${N6}>`,ko=document,Gc=()=>ko.createComment(""),Kc=r=>r===null||typeof r!="object"&&typeof r!="function",ow=Array.isArray,sw=r=>ow(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",A5=`[
|
|
2521
|
+
\f\r]`,us=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Mp=/-->/g,Cp=/>/g,ta=RegExp(`>|${A5}(?:([^\\s"'>=/]+)(${A5}*=${A5}*(?:[^
|
|
2522
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Hp=/'/g,kp=/"/g,cw=/^(?:script|style|textarea|title)$/i,C9e=r=>(e,...t)=>({_$litType$:r,strings:e,values:t}),V5=C9e(1),Dn=Symbol.for("lit-noChange"),At=Symbol.for("lit-nothing"),Ep=new WeakMap,G2=ko.createTreeWalker(ko,129,null,!1),lw=(r,e)=>{const t=r.length-1,i=[];let n,a=e===2?"<svg>":"",o=us;for(let c=0;c<t;c++){const l=r[c];let h,d,u=-1,v=0;for(;v<l.length&&(o.lastIndex=v,d=o.exec(l),d!==null);)v=o.lastIndex,o===us?d[1]==="!--"?o=Mp:d[1]!==void 0?o=Cp:d[2]!==void 0?(cw.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=ta):d[3]!==void 0&&(o=ta):o===ta?d[0]===">"?(o=n??us,u=-1):d[1]===void 0?u=-2:(u=o.lastIndex-d[2].length,h=d[1],o=d[3]===void 0?ta:d[3]==='"'?kp:Hp):o===kp||o===Hp?o=ta:o===Mp||o===Cp?o=us:(o=ta,n=void 0);const m=o===ta&&r[c+1].startsWith("/>")?" ":"";a+=o===us?l+M9e:u>=0?(i.push(h),l.slice(0,u)+r4+l.slice(u)+Ei+m):l+Ei+(u===-2?(i.push(void 0),c):m)}const s=a+(r[t]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[xp!==void 0?xp.createHTML(s):s,i]};let Qu=class hw{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let a=0,o=0;const s=e.length-1,c=this.parts,[l,h]=lw(e,t);if(this.el=hw.createElement(l,i),G2.currentNode=this.el.content,t===2){const d=this.el.content,u=d.firstChild;u.remove(),d.append(...u.childNodes)}for(;(n=G2.nextNode())!==null&&c.length<s;){if(n.nodeType===1){if(n.hasAttributes()){const d=[];for(const u of n.getAttributeNames())if(u.endsWith(r4)||u.startsWith(Ei)){const v=h[o++];if(d.push(u),v!==void 0){const m=n.getAttribute(v.toLowerCase()+r4).split(Ei),f=/([.?@])?(.*)/.exec(v);c.push({type:1,index:a,name:f[2],strings:m,ctor:f[1]==="."?vw:f[1]==="?"?mw:f[1]==="@"?fw:_l})}else c.push({type:6,index:a})}for(const u of d)n.removeAttribute(u)}if(cw.test(n.tagName)){const d=n.textContent.split(Ei),u=d.length-1;if(u>0){n.textContent=Ho?Ho.emptyScript:"";for(let v=0;v<u;v++)n.append(d[v],Gc()),G2.nextNode(),c.push({type:2,index:++a});n.append(d[u],Gc())}}}else if(n.nodeType===8)if(n.data===N6)c.push({type:2,index:a});else{let d=-1;for(;(d=n.data.indexOf(Ei,d+1))!==-1;)c.push({type:7,index:a}),d+=Ei.length-1}a++}}static createElement(e,t){const i=ko.createElement("template");return i.innerHTML=e,i}};function $a(r,e,t=r,i){var n,a,o,s;if(e===Dn)return e;let c=i!==void 0?(n=t._$Co)===null||n===void 0?void 0:n[i]:t._$Cl;const l=Kc(e)?void 0:e._$litDirective$;return(c==null?void 0:c.constructor)!==l&&((a=c==null?void 0:c._$AO)===null||a===void 0||a.call(c,!1),l===void 0?c=void 0:(c=new l(r),c._$AT(r,t,i)),i!==void 0?((o=(s=t)._$Co)!==null&&o!==void 0?o:s._$Co=[])[i]=c:t._$Cl=c),c!==void 0&&(e=$a(r,c._$AS(r,e.values),c,i)),e}let dw=class{constructor(e,t){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var t;const{el:{content:i},parts:n}=this._$AD,a=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:ko).importNode(i,!0);G2.currentNode=a;let o=G2.nextNode(),s=0,c=0,l=n[0];for(;l!==void 0;){if(s===l.index){let h;l.type===2?h=new B4(o,o.nextSibling,this,e):l.type===1?h=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(h=new pw(o,this,e)),this.u.push(h),l=n[++c]}s!==(l==null?void 0:l.index)&&(o=G2.nextNode(),s++)}return a}p(e){let t=0;for(const i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}},B4=class uw{constructor(e,t,i,n){var a;this.type=2,this._$AH=At,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cm=(a=n==null?void 0:n.isConnected)===null||a===void 0||a}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cm}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=$a(this,e,t),Kc(e)?e===At||e==null||e===""?(this._$AH!==At&&this._$AR(),this._$AH=At):e!==this._$AH&&e!==Dn&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):sw(e)?this.k(e):this.g(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}g(e){this._$AH!==At&&Kc(this._$AH)?this._$AA.nextSibling.data=e:this.T(ko.createTextNode(e)),this._$AH=e}$(e){var t;const{values:i,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Qu.createElement(n.h,this.options)),n);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===a)this._$AH.p(i);else{const o=new dw(a,this),s=o.v(this.options);o.p(i),this.T(s),this._$AH=o}}_$AC(e){let t=Ep.get(e.strings);return t===void 0&&Ep.set(e.strings,t=new Qu(e)),t}k(e){ow(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const a of e)n===t.length?t.push(i=new uw(this.S(Gc()),this.S(Gc()),this,this.options)):i=t[n],i._$AI(a),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,t);e&&e!==this._$AB;){const n=e.nextSibling;e.remove(),e=n}}setConnected(e){var t;this._$AM===void 0&&(this._$Cm=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}},_l=class{constructor(e,t,i,n,a){this.type=1,this._$AH=At,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=At}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,n){const a=this.strings;let o=!1;if(a===void 0)e=$a(this,e,t,0),o=!Kc(e)||e!==this._$AH&&e!==Dn,o&&(this._$AH=e);else{const s=e;let c,l;for(e=a[0],c=0;c<a.length-1;c++)l=$a(this,s[i+c],t,c),l===Dn&&(l=this._$AH[c]),o||(o=!Kc(l)||l!==this._$AH[c]),l===At?e=At:e!==At&&(e+=(l??"")+a[c+1]),this._$AH[c]=l}o&&!n&&this.j(e)}j(e){e===At?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},vw=class extends _l{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===At?void 0:e}};const H9e=Ho?Ho.emptyScript:"";let mw=class extends _l{constructor(){super(...arguments),this.type=4}j(e){e&&e!==At?this.element.setAttribute(this.name,H9e):this.element.removeAttribute(this.name)}},fw=class extends _l{constructor(e,t,i,n,a){super(e,t,i,n,a),this.type=5}_$AI(e,t=this){var i;if((e=(i=$a(this,e,t,0))!==null&&i!==void 0?i:At)===Dn)return;const n=this._$AH,a=e===At&&n!==At||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==At&&(n===At||a);a&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}},pw=class{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){$a(this,e)}};const k9e={P:r4,A:Ei,M:N6,C:1,L:lw,D:dw,R:sw,V:$a,I:B4,H:_l,N:mw,U:fw,F:vw,B:pw},Pp=t4.litHtmlPolyfillSupport;Pp==null||Pp(Qu,B4),((P5=t4.litHtmlVersions)!==null&&P5!==void 0?P5:t4.litHtmlVersions=[]).push("2.7.0");const E9e=(r,e,t)=>{var i,n;const a=(i=t==null?void 0:t.renderBefore)!==null&&i!==void 0?i:e;let o=a._$litPart$;if(o===void 0){const s=(n=t==null?void 0:t.renderBefore)!==null&&n!==void 0?n:null;a._$litPart$=o=new B4(e.insertBefore(Gc(),s),s,void 0,t??{})}return o._$AI(r),o};/**
|
|
2523
2523
|
* @license
|
|
2524
2524
|
* Copyright 2017 Google LLC
|
|
2525
2525
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2526
|
-
*/var S5,$5;let ac=class extends vr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=E9e(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return
|
|
2526
|
+
*/var S5,$5;let ac=class extends vr{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,t;const i=super.createRenderRoot();return(e=(t=this.renderOptions).renderBefore)!==null&&e!==void 0||(t.renderBefore=i.firstChild),i}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=E9e(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)===null||e===void 0||e.setConnected(!1)}render(){return Dn}};ac.finalized=!0,ac._$litElement$=!0,(S5=globalThis.litElementHydrateSupport)===null||S5===void 0||S5.call(globalThis,{LitElement:ac});const Ap=globalThis.litElementPolyfillSupport;Ap==null||Ap({LitElement:ac});(($5=globalThis.litElementVersions)!==null&&$5!==void 0?$5:globalThis.litElementVersions=[]).push("3.3.0");/**
|
|
2527
2527
|
* @license
|
|
2528
2528
|
* Copyright 2017 Google LLC
|
|
2529
2529
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -2531,15 +2531,15 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2531
2531
|
* @license
|
|
2532
2532
|
* Copyright 2018 Google LLC
|
|
2533
2533
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2534
|
-
*/const P9e=_w(class extends zw{constructor(r){var e;if(super(r),r.type!==gw.ATTRIBUTE||r.name!=="style"||((e=r.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((e,t)=>{const i=r[t];return i==null?e:e+`${t=t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(r,[e]){const{style:t}=r.element;if(this.vt===void 0){this.vt=new Set;for(const i in e)this.vt.add(i);return this.render(e)}this.vt.forEach(i=>{e[i]==null&&(this.vt.delete(i),i.includes("-")?t.removeProperty(i):t[i]="")});for(const i in e){const n=e[i];n!=null&&(this.vt.add(i),i.includes("-")?t.setProperty(i,n):t[i]=n)}return
|
|
2534
|
+
*/const P9e=_w(class extends zw{constructor(r){var e;if(super(r),r.type!==gw.ATTRIBUTE||r.name!=="style"||((e=r.strings)===null||e===void 0?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(r){return Object.keys(r).reduce((e,t)=>{const i=r[t];return i==null?e:e+`${t=t.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`},"")}update(r,[e]){const{style:t}=r.element;if(this.vt===void 0){this.vt=new Set;for(const i in e)this.vt.add(i);return this.render(e)}this.vt.forEach(i=>{e[i]==null&&(this.vt.delete(i),i.includes("-")?t.removeProperty(i):t[i]="")});for(const i in e){const n=e[i];n!=null&&(this.vt.add(i),i.includes("-")?t.setProperty(i,n):t[i]=n)}return Dn}});/**
|
|
2535
2535
|
* @license
|
|
2536
2536
|
* Copyright 2020 Google LLC
|
|
2537
2537
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2538
|
-
*/const{I:A9e}=k9e,Vp=()=>document.createComment(""),vs=(r,e,t)=>{var i;const n=r._$AA.parentNode,a=e===void 0?r._$AB:e._$AA;if(t===void 0){const o=n.insertBefore(Vp(),a),s=n.insertBefore(Vp(),a);t=new A9e(o,s,r,r.options)}else{const o=t._$AB.nextSibling,s=t._$AM,c=s!==r;if(c){let l;(i=t._$AQ)===null||i===void 0||i.call(t,r),t._$AM=r,t._$AP!==void 0&&(l=r._$AU)!==s._$AU&&t._$AP(l)}if(o!==a||c){let l=t._$AA;for(;l!==o;){const h=l.nextSibling;n.insertBefore(l,a),l=h}}}return t},
|
|
2538
|
+
*/const{I:A9e}=k9e,Vp=()=>document.createComment(""),vs=(r,e,t)=>{var i;const n=r._$AA.parentNode,a=e===void 0?r._$AB:e._$AA;if(t===void 0){const o=n.insertBefore(Vp(),a),s=n.insertBefore(Vp(),a);t=new A9e(o,s,r,r.options)}else{const o=t._$AB.nextSibling,s=t._$AM,c=s!==r;if(c){let l;(i=t._$AQ)===null||i===void 0||i.call(t,r),t._$AM=r,t._$AP!==void 0&&(l=r._$AU)!==s._$AU&&t._$AP(l)}if(o!==a||c){let l=t._$AA;for(;l!==o;){const h=l.nextSibling;n.insertBefore(l,a),l=h}}}return t},ra=(r,e,t=r)=>(r._$AI(e,t),r),V9e={},S9e=(r,e=V9e)=>r._$AH=e,$9e=r=>r._$AH,D5=r=>{var e;(e=r._$AP)===null||e===void 0||e.call(r,!1,!0);let t=r._$AA;const i=r._$AB.nextSibling;for(;t!==i;){const n=t.nextSibling;t.remove(),t=n}};/**
|
|
2539
2539
|
* @license
|
|
2540
2540
|
* Copyright 2017 Google LLC
|
|
2541
2541
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2542
|
-
*/const Sp=(r,e,t)=>{const i=new Map;for(let n=e;n<=t;n++)i.set(r[n],n);return i},D9e=_w(class extends zw{constructor(r){if(super(r),r.type!==gw.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,e,t){let i;t===void 0?t=e:e!==void 0&&(i=e);const n=[],a=[];let o=0;for(const s of r)n[o]=i?i(s,o):o,a[o]=t(s,o),o++;return{values:a,keys:n}}render(r,e,t){return this.ht(r,e,t).values}update(r,[e,t,i]){var n;const a=$9e(r),{values:o,keys:s}=this.ht(e,t,i);if(!Array.isArray(a))return this.ut=s,o;const c=(n=this.ut)!==null&&n!==void 0?n:this.ut=[],l=[];let h,d,u=0,v=a.length-1,m=0,f=o.length-1;for(;u<=v&&m<=f;)if(a[u]===null)u++;else if(a[v]===null)v--;else if(c[u]===s[m])l[m]=
|
|
2542
|
+
*/const Sp=(r,e,t)=>{const i=new Map;for(let n=e;n<=t;n++)i.set(r[n],n);return i},D9e=_w(class extends zw{constructor(r){if(super(r),r.type!==gw.CHILD)throw Error("repeat() can only be used in text expressions")}ht(r,e,t){let i;t===void 0?t=e:e!==void 0&&(i=e);const n=[],a=[];let o=0;for(const s of r)n[o]=i?i(s,o):o,a[o]=t(s,o),o++;return{values:a,keys:n}}render(r,e,t){return this.ht(r,e,t).values}update(r,[e,t,i]){var n;const a=$9e(r),{values:o,keys:s}=this.ht(e,t,i);if(!Array.isArray(a))return this.ut=s,o;const c=(n=this.ut)!==null&&n!==void 0?n:this.ut=[],l=[];let h,d,u=0,v=a.length-1,m=0,f=o.length-1;for(;u<=v&&m<=f;)if(a[u]===null)u++;else if(a[v]===null)v--;else if(c[u]===s[m])l[m]=ra(a[u],o[m]),u++,m++;else if(c[v]===s[f])l[f]=ra(a[v],o[f]),v--,f--;else if(c[u]===s[f])l[f]=ra(a[u],o[f]),vs(r,l[f+1],a[u]),u++,f--;else if(c[v]===s[m])l[m]=ra(a[v],o[m]),vs(r,a[u],a[v]),v--,m++;else if(h===void 0&&(h=Sp(s,m,f),d=Sp(c,u,v)),h.has(c[u]))if(h.has(c[v])){const C=d.get(s[m]),_=C!==void 0?a[C]:null;if(_===null){const p=vs(r,a[u]);ra(p,o[m]),l[m]=p}else l[m]=ra(_,o[m]),vs(r,a[u],_),a[C]=null;m++}else D5(a[v]),v--;else D5(a[u]),u++;for(;m<=f;){const C=vs(r,l[f+1]);ra(C,o[m]),l[m++]=C}for(;u<=v;){const C=a[u++];C!==null&&D5(C)}return this.ut=s,S9e(r,l),Dn}});/**
|
|
2543
2543
|
* @license
|
|
2544
2544
|
* Copyright 2018 Google LLC
|
|
2545
2545
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -2547,9 +2547,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2547
2547
|
* @license
|
|
2548
2548
|
* Copyright 2017 Google LLC
|
|
2549
2549
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2550
|
-
*/var L5;const i4=window,Eo=i4.trustedTypes,Dp=Eo?Eo.createPolicy("lit-html",{createHTML:r=>r}):void 0,Xu="$lit$",
|
|
2551
|
-
\f\r]`,ms=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Lp=/-->/g,Tp=/>/g,
|
|
2552
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ip=/'/g,Rp=/"/g,bw=/^(?:script|style|textarea|title)$/i,Da=Symbol.for("lit-noChange"),Rt=Symbol.for("lit-nothing"),Op=new WeakMap,K2=Po.createTreeWalker(Po,129,null,!1),I9e=(r,e)=>{const t=r.length-1,i=[];let n,a=e===2?"<svg>":"",o=ms;for(let c=0;c<t;c++){const l=r[c];let h,d,u=-1,v=0;for(;v<l.length&&(o.lastIndex=v,d=o.exec(l),d!==null);)v=o.lastIndex,o===ms?d[1]==="!--"?o=Lp:d[1]!==void 0?o=Tp:d[2]!==void 0?(bw.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=
|
|
2550
|
+
*/var L5;const i4=window,Eo=i4.trustedTypes,Dp=Eo?Eo.createPolicy("lit-html",{createHTML:r=>r}):void 0,Xu="$lit$",mn=`lit$${(Math.random()+"").slice(9)}$`,yw="?"+mn,L9e=`<${yw}>`,Po=document,Wc=()=>Po.createComment(""),Yc=r=>r===null||typeof r!="object"&&typeof r!="function",ww=Array.isArray,T9e=r=>ww(r)||typeof(r==null?void 0:r[Symbol.iterator])=="function",T5=`[
|
|
2551
|
+
\f\r]`,ms=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Lp=/-->/g,Tp=/>/g,ia=RegExp(`>|${T5}(?:([^\\s"'>=/]+)(${T5}*=${T5}*(?:[^
|
|
2552
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Ip=/'/g,Rp=/"/g,bw=/^(?:script|style|textarea|title)$/i,Da=Symbol.for("lit-noChange"),Rt=Symbol.for("lit-nothing"),Op=new WeakMap,K2=Po.createTreeWalker(Po,129,null,!1),I9e=(r,e)=>{const t=r.length-1,i=[];let n,a=e===2?"<svg>":"",o=ms;for(let c=0;c<t;c++){const l=r[c];let h,d,u=-1,v=0;for(;v<l.length&&(o.lastIndex=v,d=o.exec(l),d!==null);)v=o.lastIndex,o===ms?d[1]==="!--"?o=Lp:d[1]!==void 0?o=Tp:d[2]!==void 0?(bw.test(d[2])&&(n=RegExp("</"+d[2],"g")),o=ia):d[3]!==void 0&&(o=ia):o===ia?d[0]===">"?(o=n??ms,u=-1):d[1]===void 0?u=-2:(u=o.lastIndex-d[2].length,h=d[1],o=d[3]===void 0?ia:d[3]==='"'?Rp:Ip):o===Rp||o===Ip?o=ia:o===Lp||o===Tp?o=ms:(o=ia,n=void 0);const m=o===ia&&r[c+1].startsWith("/>")?" ":"";a+=o===ms?l+L9e:u>=0?(i.push(h),l.slice(0,u)+Xu+l.slice(u)+mn+m):l+mn+(u===-2?(i.push(void 0),c):m)}const s=a+(r[t]||"<?>")+(e===2?"</svg>":"");if(!Array.isArray(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return[Dp!==void 0?Dp.createHTML(s):s,i]};class Qc{constructor({strings:e,_$litType$:t},i){let n;this.parts=[];let a=0,o=0;const s=e.length-1,c=this.parts,[l,h]=I9e(e,t);if(this.el=Qc.createElement(l,i),K2.currentNode=this.el.content,t===2){const d=this.el.content,u=d.firstChild;u.remove(),d.append(...u.childNodes)}for(;(n=K2.nextNode())!==null&&c.length<s;){if(n.nodeType===1){if(n.hasAttributes()){const d=[];for(const u of n.getAttributeNames())if(u.endsWith(Xu)||u.startsWith(mn)){const v=h[o++];if(d.push(u),v!==void 0){const m=n.getAttribute(v.toLowerCase()+Xu).split(mn),f=/([.?@])?(.*)/.exec(v);c.push({type:1,index:a,name:f[2],strings:m,ctor:f[1]==="."?O9e:f[1]==="?"?U9e:f[1]==="@"?F9e:j4})}else c.push({type:6,index:a})}for(const u of d)n.removeAttribute(u)}if(bw.test(n.tagName)){const d=n.textContent.split(mn),u=d.length-1;if(u>0){n.textContent=Eo?Eo.emptyScript:"";for(let v=0;v<u;v++)n.append(d[v],Wc()),K2.nextNode(),c.push({type:2,index:++a});n.append(d[u],Wc())}}}else if(n.nodeType===8)if(n.data===yw)c.push({type:2,index:a});else{let d=-1;for(;(d=n.data.indexOf(mn,d+1))!==-1;)c.push({type:7,index:a}),d+=mn.length-1}a++}}static createElement(e,t){const i=Po.createElement("template");return i.innerHTML=e,i}}function Ao(r,e,t=r,i){var n,a,o,s;if(e===Da)return e;let c=i!==void 0?(n=t._$Co)===null||n===void 0?void 0:n[i]:t._$Cl;const l=Yc(e)?void 0:e._$litDirective$;return(c==null?void 0:c.constructor)!==l&&((a=c==null?void 0:c._$AO)===null||a===void 0||a.call(c,!1),l===void 0?c=void 0:(c=new l(r),c._$AT(r,t,i)),i!==void 0?((o=(s=t)._$Co)!==null&&o!==void 0?o:s._$Co=[])[i]=c:t._$Cl=c),c!==void 0&&(e=Ao(r,c._$AS(r,e.values),c,i)),e}class R9e{constructor(e,t){this.u=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(e){var t;const{el:{content:i},parts:n}=this._$AD,a=((t=e==null?void 0:e.creationScope)!==null&&t!==void 0?t:Po).importNode(i,!0);K2.currentNode=a;let o=K2.nextNode(),s=0,c=0,l=n[0];for(;l!==void 0;){if(s===l.index){let h;l.type===2?h=new zl(o,o.nextSibling,this,e):l.type===1?h=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(h=new B9e(o,this,e)),this.u.push(h),l=n[++c]}s!==(l==null?void 0:l.index)&&(o=K2.nextNode(),s++)}return a}p(e){let t=0;for(const i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class zl{constructor(e,t,i,n){var a;this.type=2,this._$AH=Rt,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=n,this._$Cm=(a=n==null?void 0:n.isConnected)===null||a===void 0||a}get _$AU(){var e,t;return(t=(e=this._$AM)===null||e===void 0?void 0:e._$AU)!==null&&t!==void 0?t:this._$Cm}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ao(this,e,t),Yc(e)?e===Rt||e==null||e===""?(this._$AH!==Rt&&this._$AR(),this._$AH=Rt):e!==this._$AH&&e!==Da&&this.g(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):T9e(e)?this.k(e):this.g(e)}S(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.S(e))}g(e){this._$AH!==Rt&&Yc(this._$AH)?this._$AA.nextSibling.data=e:this.T(Po.createTextNode(e)),this._$AH=e}$(e){var t;const{values:i,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Qc.createElement(n.h,this.options)),n);if(((t=this._$AH)===null||t===void 0?void 0:t._$AD)===a)this._$AH.p(i);else{const o=new R9e(a,this),s=o.v(this.options);o.p(i),this.T(s),this._$AH=o}}_$AC(e){let t=Op.get(e.strings);return t===void 0&&Op.set(e.strings,t=new Qc(e)),t}k(e){ww(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,n=0;for(const a of e)n===t.length?t.push(i=new zl(this.S(Wc()),this.S(Wc()),this,this.options)):i=t[n],i._$AI(a),n++;n<t.length&&(this._$AR(i&&i._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,t);e&&e!==this._$AB;){const n=e.nextSibling;e.remove(),e=n}}setConnected(e){var t;this._$AM===void 0&&(this._$Cm=e,(t=this._$AP)===null||t===void 0||t.call(this,e))}}class j4{constructor(e,t,i,n,a){this.type=1,this._$AH=Rt,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=a,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Rt}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(e,t=this,i,n){const a=this.strings;let o=!1;if(a===void 0)e=Ao(this,e,t,0),o=!Yc(e)||e!==this._$AH&&e!==Da,o&&(this._$AH=e);else{const s=e;let c,l;for(e=a[0],c=0;c<a.length-1;c++)l=Ao(this,s[i+c],t,c),l===Da&&(l=this._$AH[c]),o||(o=!Yc(l)||l!==this._$AH[c]),l===Rt?e=Rt:e!==Rt&&(e+=(l??"")+a[c+1]),this._$AH[c]=l}o&&!n&&this.j(e)}j(e){e===Rt?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}}class O9e extends j4{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Rt?void 0:e}}const N9e=Eo?Eo.emptyScript:"";class U9e extends j4{constructor(){super(...arguments),this.type=4}j(e){e&&e!==Rt?this.element.setAttribute(this.name,N9e):this.element.removeAttribute(this.name)}}class F9e extends j4{constructor(e,t,i,n,a){super(e,t,i,n,a),this.type=5}_$AI(e,t=this){var i;if((e=(i=Ao(this,e,t,0))!==null&&i!==void 0?i:Rt)===Da)return;const n=this._$AH,a=e===Rt&&n!==Rt||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,o=e!==Rt&&(n===Rt||a);a&&this.element.removeEventListener(this.name,this,n),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)===null||t===void 0?void 0:t.host)!==null&&i!==void 0?i:this.element,e):this._$AH.handleEvent(e)}}class B9e{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){Ao(this,e)}}const Np=i4.litHtmlPolyfillSupport;Np==null||Np(Qc,zl),((L5=i4.litHtmlVersions)!==null&&L5!==void 0?L5:i4.litHtmlVersions=[]).push("2.7.0");const j9e=(r,e,t)=>{var i,n;const a=(i=t==null?void 0:t.renderBefore)!==null&&i!==void 0?i:e;let o=a._$litPart$;if(o===void 0){const s=(n=t==null?void 0:t.renderBefore)!==null&&n!==void 0?n:null;a._$litPart$=o=new zl(e.insertBefore(Wc(),s),s,void 0,t??{})}return o._$AI(r),o};/**
|
|
2553
2553
|
* @license
|
|
2554
2554
|
* Copyright 2017 Google LLC
|
|
2555
2555
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -2695,7 +2695,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2695
2695
|
:host([clickable]:hover) .fwc-avatar__container {
|
|
2696
2696
|
cursor: pointer;
|
|
2697
2697
|
}
|
|
2698
|
-
`;class Br extends nc{constructor(){super(...arguments),this.size=e4.Medium,this.rippleHandlers=new
|
|
2698
|
+
`;class Br extends nc{constructor(){super(...arguments),this.size=e4.Medium,this.rippleHandlers=new Nn(()=>this.ripple)}updated(e){super.updated(e),e.has("disabled")&&(this.disabled&&(this.color=Yu.Disabled,this.clickable=!1),this.requestUpdate())}renderPicture(){return e2`<div class="fwc-avatar__picture-container">
|
|
2699
2699
|
<fwc-picture class="fwc-avatar__picture" src=${bp(this.src)} cover></fwc-picture>
|
|
2700
2700
|
</div>`}renderValue(){return e2`<span class="fwc-avatar__value">${this.value}</span>`}renderBadge(){return e2`<slot name="badge"></slot>`}renderContent(){const e=this.src?this.renderPicture():this.value?this.renderValue():void 0;return e2`<slot name="content">${e}</slot>`}render(){return e2`<span
|
|
2701
2701
|
class="fwc-avatar__container"
|
|
@@ -2709,7 +2709,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
2709
2709
|
@touchend="${this.handleRippleDeactivate}"
|
|
2710
2710
|
@touchcancel="${this.handleRippleDeactivate}"
|
|
2711
2711
|
>${this.renderRipple()}${this.renderBadge()}${this.renderContent()}</span
|
|
2712
|
-
>`}renderRipple(){return this.clickable?e2`<fwc-ripple class="fwc-avatar__ripple" disabled="${bp(this.disabled)}" unbounded></fwc-ripple>`:""}handleRippleActivate(e){const t=()=>{window.removeEventListener("mouseup",t),this.handleRippleDeactivate()};window.addEventListener("mouseup",t),this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}handleOnClick(e){this.clickable&&this.dispatchEvent(new PointerEvent("click",e))}}g([y({type:String,reflect:!0})],Br.prototype,"size",void 0);g([y({type:String,reflect:!0})],Br.prototype,"color",void 0);g([y({type:String})],Br.prototype,"value",void 0);g([y({type:String})],Br.prototype,"src",void 0);g([y({type:Boolean,reflect:!0})],Br.prototype,"clickable",void 0);g([y({type:Boolean,reflect:!0})],Br.prototype,"border",void 0);g([y({type:Boolean,reflect:!0})],Br.prototype,"disabled",void 0);g([
|
|
2712
|
+
>`}renderRipple(){return this.clickable?e2`<fwc-ripple class="fwc-avatar__ripple" disabled="${bp(this.disabled)}" unbounded></fwc-ripple>`:""}handleRippleActivate(e){const t=()=>{window.removeEventListener("mouseup",t),this.handleRippleDeactivate()};window.addEventListener("mouseup",t),this.rippleHandlers.startPress(e)}handleRippleDeactivate(){this.rippleHandlers.endPress()}handleRippleMouseEnter(){this.rippleHandlers.startHover()}handleRippleMouseLeave(){this.rippleHandlers.endHover()}handleRippleFocus(){this.rippleHandlers.startFocus()}handleRippleBlur(){this.rippleHandlers.endFocus()}handleOnClick(e){this.clickable&&this.dispatchEvent(new PointerEvent("click",e))}}g([y({type:String,reflect:!0})],Br.prototype,"size",void 0);g([y({type:String,reflect:!0})],Br.prototype,"color",void 0);g([y({type:String})],Br.prototype,"value",void 0);g([y({type:String})],Br.prototype,"src",void 0);g([y({type:Boolean,reflect:!0})],Br.prototype,"clickable",void 0);g([y({type:Boolean,reflect:!0})],Br.prototype,"border",void 0);g([y({type:Boolean,reflect:!0})],Br.prototype,"disabled",void 0);g([On("fwc-ripple")],Br.prototype,"ripple",void 0);g([Ur({passive:!0})],Br.prototype,"handleRippleActivate",null);Br.styles=[afe];const ofe="fwc-avatar";let qp=class extends Br{};qp=g([Ve(ofe)],qp);const sfe=Z`
|
|
2713
2713
|
:host(:not([disabled])) .fwc-person-avatar__employee {
|
|
2714
2714
|
--fwc-avatar-base-color: #771fdd;
|
|
2715
2715
|
--fwc-avatar-ink-color: #fff;
|